@vellumai/web 0.11.2-dev.202608071521.2d2f93e → 0.11.2-dev.202608071719.8f7a9f1

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 (442) hide show
  1. package/dist/assets/{AnimatePresence-D41IKJOi.js → AnimatePresence-CYvFNYFW.js} +1 -1
  2. package/dist/assets/{BundleConfirmPage-DHRlNzkr.js → BundleConfirmPage-ZdFbPrLI.js} +1 -1
  3. package/dist/assets/{a2a-invite-DPoues5o.js → a2a-invite-CreUYZWg.js} +1 -1
  4. package/dist/assets/{about-page-XEhyTfeX.js → about-page-BO01eetK.js} +1 -1
  5. package/dist/assets/access-CaYx3wya.js +1 -0
  6. package/dist/assets/{account-page-CJcaQRVZ.js → account-page-BECrZ9so.js} +1 -1
  7. package/dist/assets/{account-shell-BwGiy59u.js → account-shell-2FI8vinG.js} +1 -1
  8. package/dist/assets/{acp-run-actions-BtRROeN9.js → acp-run-actions-Bp8bnCNG.js} +1 -1
  9. package/dist/assets/{acp-run-detail-panel-C-0xWEWQ.js → acp-run-detail-panel-CnJ1Cf6d.js} +1 -1
  10. package/dist/assets/{acp-run-store-DAOLku4B.js → acp-run-store-CH22VLgw.js} +1 -1
  11. package/dist/assets/{activity-steps-panel-BvEYjERR.js → activity-steps-panel-Dvtmo3LA.js} +1 -1
  12. package/dist/assets/{add-credential-modal-DKu25tMg.js → add-credential-modal-BY_WeyOd.js} +1 -1
  13. package/dist/assets/{add-credits-modal-By-fOtYT.js → add-credits-modal-BxmB3Ie8.js} +1 -1
  14. package/dist/assets/{ai-page-DhNlfBCZ.js → ai-page-BheBO1-4.js} +1 -1
  15. package/dist/assets/{animate-CEUNjqNk.js → animate-BaeuY2BJ.js} +1 -1
  16. package/dist/assets/{animated-avatar-COfAYU4u.js → animated-avatar-B2UY-Rgr.js} +1 -1
  17. package/dist/assets/{api-DwULK0El.js → api-Ba6UrYzs.js} +1 -1
  18. package/dist/assets/{api-JA_IDAQk.js → api-jZrikeMQ.js} +1 -1
  19. package/dist/assets/{api-key-screen-D1j3oper.js → api-key-screen-uGk86pe1.js} +1 -1
  20. package/dist/assets/app-card-DCf6nfgA.js +1 -0
  21. package/dist/assets/{app-info-Du9AiJU5.js → app-info-CipaSe3I.js} +1 -1
  22. package/dist/assets/{archive-redirect-page-CjgJ5540.js → archive-redirect-page-D5g7j4sD.js} +1 -1
  23. package/dist/assets/{assistant-feature-flag-store-BxlEzeud.js → assistant-feature-flag-store-daTHZVhs.js} +1 -1
  24. package/dist/assets/{assistant-identity-store-nE-e8KQw.js → assistant-identity-store-C7vGdp0n.js} +1 -1
  25. package/dist/assets/{assistant-status-panel-CQewRojv.js → assistant-status-panel-BeixNA97.js} +1 -1
  26. package/dist/assets/{auth-store-CZH40qFL.js → auth-store-aW3pSe7k.js} +2 -2
  27. package/dist/assets/{avatar-random-BHVo9v-a.js → avatar-random-urU4KnzY.js} +1 -1
  28. package/dist/assets/{avatar-renderer-CsRuhhXn.js → avatar-renderer-Bw3AcPKc.js} +1 -1
  29. package/dist/assets/{background-task-actions-NhVu8iWU.js → background-task-actions-C98mUGO0.js} +1 -1
  30. package/dist/assets/{background-task-detail-panel-BkuNa3PD.js → background-task-detail-panel-CS2Efstc.js} +1 -1
  31. package/dist/assets/{background-task-store-B1MUU_bh.js → background-task-store-CVOHl9CG.js} +1 -1
  32. package/dist/assets/{billing-page-BVCzesB9.js → billing-page-CIqgRWfk.js} +3 -3
  33. package/dist/assets/{billing-redirect-page-DLQofdpS.js → billing-redirect-page-C2CDJQvN.js} +1 -1
  34. package/dist/assets/{bookmarks-page-Bas2IX2d.js → bookmarks-page-DEOkK8bq.js} +1 -1
  35. package/dist/assets/{browser-RCTP76Hm.js → browser-Ccs48f8E.js} +2 -2
  36. package/dist/assets/{build-state-CPgG3H93.js → build-state-BiXFuwlo.js} +1 -1
  37. package/dist/assets/{capture-error-Cw5vs0Ef.js → capture-error-BJ9lxRkr.js} +1 -1
  38. package/dist/assets/channels-page-route-eceoXxyu.js +9 -0
  39. package/dist/assets/chat-BTZQrV_d.js +1 -0
  40. package/dist/assets/{chat-avatar-BPhNOZzd.js → chat-avatar-C8hg4XjI.js} +1 -1
  41. package/dist/assets/{chat-layout-slots-store-N_sabTbs.js → chat-layout-slots-store-C3K_SWQg.js} +1 -1
  42. package/dist/assets/{chat-markdown-message-hc0CFGBS.js → chat-markdown-message-DY1kKw31.js} +1 -1
  43. package/dist/assets/checkout-continuation-B7zzYuI5.js +1 -0
  44. package/dist/assets/{checkout-page-CK97Qfz8.js → checkout-page-_kS6IrwQ.js} +1 -1
  45. package/dist/assets/checkout-return-target-CbFIbSyE.js +1 -0
  46. package/dist/assets/{client-feature-flag-store-C8ieIAKe.js → client-feature-flag-store-BCe_rK7W.js} +1 -1
  47. package/dist/assets/{client-perf-C-xVLAvQ.js → client-perf-6CjHx0Dz.js} +1 -1
  48. package/dist/assets/{command-palette-DjHOOk8U.js → command-palette-COnCgNc_.js} +1 -1
  49. package/dist/assets/{command-palette-window-page-DZ2TSHAB.js → command-palette-window-page-DmrSs4Td.js} +1 -1
  50. package/dist/assets/{community-page-_nLQvozN.js → community-page-9NFwzFY_.js} +1 -1
  51. package/dist/assets/{companion-surface-page-qd2dSp0Y.js → companion-surface-page-S6Q-SXF7.js} +1 -1
  52. package/dist/assets/{composer-settings-veIRzcPS.js → composer-settings-a01OIbEa.js} +1 -1
  53. package/dist/assets/{confirm-dialog-zx8L9sUi.js → confirm-dialog-D5z2wwOp.js} +1 -1
  54. package/dist/assets/{connect-page-BzWCxwjD.js → connect-page-PJITS_Zj.js} +1 -1
  55. package/dist/assets/consent-CGYG_2jM.js +1 -0
  56. package/dist/assets/{consent-controls-SQ8G-LrA.js → consent-controls-DaDSFVzo.js} +1 -1
  57. package/dist/assets/{contacts-gateway-DPG7UdgG.js → contacts-gateway-Dycu8YyF.js} +1 -1
  58. package/dist/assets/{contacts-page-route-Bk6drNxc.js → contacts-page-route-D_VnPuF5.js} +1 -1
  59. package/dist/assets/{conversation-cache-BmhpM_P6.js → conversation-cache-DPZ3pgU9.js} +1 -1
  60. package/dist/assets/{conversation-list-fetchers-D3FmANI4.js → conversation-list-fetchers-CW5MYuyS.js} +1 -1
  61. package/dist/assets/{conversation-navigation-bIL5t6Zb.js → conversation-navigation-DNNoTsE3.js} +1 -1
  62. package/dist/assets/{conversation-queries-veAd_2G4.js → conversation-queries-CHkExS7b.js} +1 -1
  63. package/dist/assets/{conversation-selection-DXYpE4U8.js → conversation-selection-Csok1E-s.js} +1 -1
  64. package/dist/assets/{conversation-store-D4pZBwP5.js → conversation-store-DujkfhX7.js} +1 -1
  65. package/dist/assets/{copy-to-clipboard-DnJHokIa.js → copy-to-clipboard-CJzrhCuq.js} +1 -1
  66. package/dist/assets/{credential-entry-page-FApfdSCG.js → credential-entry-page-vMr9ap3R.js} +1 -1
  67. package/dist/assets/{credentials-page-W1rPVydF.js → credentials-page-Wpv8BdIW.js} +1 -1
  68. package/dist/assets/{csv-preview-Crel8fKb.js → csv-preview-DIKeWsIj.js} +1 -1
  69. package/dist/assets/{danger-zone-redirect-page-DkeBpzCP.js → danger-zone-redirect-page-CKnxyxUR.js} +1 -1
  70. package/dist/assets/{debug-page-DTV5-AJ8.js → debug-page-DwE3FeYd.js} +2 -2
  71. package/dist/assets/{deploy-dialogs-DFcRGSpV.js → deploy-dialogs-BvbwXDT3.js} +1 -1
  72. package/dist/assets/{deploy-store-B_HZ2plk.js → deploy-store-0bBYdzST.js} +1 -1
  73. package/dist/assets/{desktop-voice-activity-C53ZhMf7.js → desktop-voice-activity-Bq5rOAnf.js} +1 -1
  74. package/dist/assets/{detail-card-CmSV969e.js → detail-card-DqxijwLW.js} +1 -1
  75. package/dist/assets/{detail-drawer-Dnd-PkL4.js → detail-drawer-Dhv6ZwAH.js} +1 -1
  76. package/dist/assets/{detail-panel-stop-button-DV6U5A7y.js → detail-panel-stop-button-C2FYAgLV.js} +1 -1
  77. package/dist/assets/{detail-shell-rL601Rqo.js → detail-shell-CDNt1a2M.js} +1 -1
  78. package/dist/assets/{developer-page-DH0EQrrp.js → developer-page-Cannsv4u.js} +1 -1
  79. package/dist/assets/{devices-redirect-page-BrHGOXjp.js → devices-redirect-page-BaloV0nH.js} +1 -1
  80. package/dist/assets/{diagnostics-6dSlxnyU.js → diagnostics-4sqYFA1t.js} +1 -1
  81. package/dist/assets/{dictation-overlay-DQnD0C9N.js → dictation-overlay-EHyPXXgF.js} +1 -1
  82. package/dist/assets/{dictation-overlay-page-14QkB_bU.js → dictation-overlay-page-CZ5flyli.js} +1 -1
  83. package/dist/assets/{dist-DlYszVmN.js → dist-QWtLx5IO.js} +1 -1
  84. package/dist/assets/{doctor-handoff-store-DeQSIF5u.js → doctor-handoff-store-P0-PxaS6.js} +1 -1
  85. package/dist/assets/{document-viewer-container-BkKmz-ar.js → document-viewer-container-BeuXw8gd.js} +2 -2
  86. package/dist/assets/{document-viewer-page-C48cei6Q.js → document-viewer-page-JxSi4oG1.js} +1 -1
  87. package/dist/assets/{edge-swipe-arbiter-store-aOM60mqn.js → edge-swipe-arbiter-store-S1o4Reon.js} +1 -1
  88. package/dist/assets/effective-timezone-DBwB177O.js +1 -0
  89. package/dist/assets/{emails-page-VHHDjCvP.js → emails-page-D1BVlcyW.js} +1 -1
  90. package/dist/assets/{environment-store-BqxgYk0H.js → environment-store-BrcuU2uV.js} +1 -1
  91. package/dist/assets/esm-B1NIsmTB.js +2 -0
  92. package/dist/assets/{esm-3lT1JASB.js → esm-BRdtpLiG.js} +1 -1
  93. package/dist/assets/esm-C0-xaJDZ.js +2 -0
  94. package/dist/assets/{esm-BKKC0uzb.js → esm-D2R8lTBc.js} +2 -2
  95. package/dist/assets/esm-DWvr9SGK.js +2 -0
  96. package/dist/assets/esm-LMERFzdn.js +2 -0
  97. package/dist/assets/esm-YFxJsQ_j.js +2 -0
  98. package/dist/assets/{esm-CS1-eFe6.js → esm-lLK6dyL0.js} +2 -2
  99. package/dist/assets/esm-wgyGiLzS.js +1 -0
  100. package/dist/assets/{file-editor-BQUkusyI.js → file-editor-ClzkqVJB.js} +1 -1
  101. package/dist/assets/{file-markdown-DMq6D4CV.js → file-markdown-WEoW70dR.js} +1 -1
  102. package/dist/assets/{first-run-scope-CFIf9Enb.js → first-run-scope-D5GIPkBL.js} +1 -1
  103. package/dist/assets/{funnel-events-BU99LZEM.js → funnel-events-BH5HUlOY.js} +1 -1
  104. package/dist/assets/{general-page-DXDT2SlQ.js → general-page-fYyASKcc.js} +1 -1
  105. package/dist/assets/{get-memory-stats-CgfjHhot.js → get-memory-stats-D1HmPbvC.js} +1 -1
  106. package/dist/assets/{haptics-cgQRUcWp.js → haptics-0eSQTNH1.js} +2 -2
  107. package/dist/assets/{hatching-screen-Djflq2Al.js → hatching-screen-CDFqHuoD.js} +1 -1
  108. package/dist/assets/{home-page-route-CTmGZ-E7.js → home-page-route-VE7nTRpC.js} +1 -1
  109. package/dist/assets/{home-tool-permission-card-PwGnCyaz.js → home-tool-permission-card-CU0D4nTd.js} +1 -1
  110. package/dist/assets/{hosting-screen-sguL15DZ.js → hosting-screen-D6-Clqr6.js} +1 -1
  111. package/dist/assets/i18n-DzUb8IcF.js +4 -0
  112. package/dist/assets/identity-BAuwSvTF.js +1 -0
  113. package/dist/assets/identity-page-route-UQhjWJLA.js +7 -0
  114. package/dist/assets/{index-BQGQo9af.js → index-DNP4ixrt.js} +3 -3
  115. package/dist/assets/index-Q1K0w5kB.css +2 -0
  116. package/dist/assets/{ingest-Cv1Pem27.js → ingest-D8OGpGXB.js} +1 -1
  117. package/dist/assets/{input-DmHXRXaB.js → input-BBRukT0E.js} +1 -1
  118. package/dist/assets/{inspect-page-Nv8wJO6h.js → inspect-page-DRFSsxjq.js} +3 -3
  119. package/dist/assets/{installed-plugins-query-CIcohCho.js → installed-plugins-query-Lh3AARs3.js} +1 -1
  120. package/dist/assets/integration-icon-aZUhHOFY.js +1 -0
  121. package/dist/assets/{integrations-page-BwGx5UKW.js → integrations-page-D733LpjV.js} +1 -1
  122. package/dist/assets/{intelligence-layout-DOTYC75R.js → intelligence-layout-BWSI-LKI.js} +1 -1
  123. package/dist/assets/{invalidate-memory-queries-CdJoJc7n.js → invalidate-memory-queries-BKgONPU3.js} +1 -1
  124. package/dist/assets/{invalidate-plugin-queries-zbCn3jP3.js → invalidate-plugin-queries-BwkYPjKY.js} +1 -1
  125. package/dist/assets/{keyboard-shortcuts-redirect-page-DzVyPwbO.js → keyboard-shortcuts-redirect-page-_JvKF_Hj.js} +1 -1
  126. package/dist/assets/{latest-assistant-text-Daw8nrLO.js → latest-assistant-text-B_65Gew1.js} +1 -1
  127. package/dist/assets/{library-detail-page-CvQyaeNK.js → library-detail-page-Xt_dycRH.js} +1 -1
  128. package/dist/assets/{library-page-BmTMsCnB.js → library-page-C_mujrf_.js} +1 -1
  129. package/dist/assets/{local-mode-BfEgOekp.js → local-mode-3uqCVSdR.js} +1 -1
  130. package/dist/assets/{local-runtime-upgrade-BsY9RgSO.js → local-runtime-upgrade-DI1v215J.js} +1 -1
  131. package/dist/assets/{login-flow-L6j1TUUS.js → login-flow-CGVMA4oj.js} +1 -1
  132. package/dist/assets/{login-page-Cgjh0mPA.js → login-page-D8PFLBXr.js} +1 -1
  133. package/dist/assets/{logout-page-5lzwjL72.js → logout-page-BoInue43.js} +1 -1
  134. package/dist/assets/{logs-layout-CLlBqKd2.js → logs-layout-D919FUbP.js} +1 -1
  135. package/dist/assets/{media-preview-DVQJVzX3.js → media-preview-C1y2H6OK.js} +1 -1
  136. package/dist/assets/{memory-page-route-D0eNzLPw.js → memory-page-route-DJjlpcRr.js} +1 -1
  137. package/dist/assets/{memory-router-playground-page-lHprhiur.js → memory-router-playground-page-pfpcmVTg.js} +1 -1
  138. package/dist/assets/{menu-DKE_-iVc.js → menu-DvkwQ4tD.js} +1 -1
  139. package/dist/assets/message-content-BeZU6aXb.js +1 -0
  140. package/dist/assets/{message-files-panel-DTx3MiAE.js → message-files-panel-MJ3yb6xf.js} +1 -1
  141. package/dist/assets/{messages-DtpDKFeZ.js → messages-Cvl0WJ-g.js} +1 -1
  142. package/dist/assets/{metric-card-Ba-Ju2sO.js → metric-card-LCioOQ1j.js} +1 -1
  143. package/dist/assets/{mobile-sidebar-drawer-BWVw3X2D.js → mobile-sidebar-drawer-Diysc6nT.js} +1 -1
  144. package/dist/assets/{modal-DI63s9MQ.js → modal-RvuckaS5.js} +1 -1
  145. package/dist/assets/{multi-activity-group-DFn_MmIL.js → multi-activity-group-jhAkq0gu.js} +1 -1
  146. package/dist/assets/native-anchor-DsaAGBhB.js +1 -0
  147. package/dist/assets/{native-auth-error-B9Iha2zU.js → native-auth-error-B8bb6uzQ.js} +1 -1
  148. package/dist/assets/{native-file-BK_N5IfV.js → native-file-CrcL_CB9.js} +2 -2
  149. package/dist/assets/{navigation-resolver-DrNVOkMu.js → navigation-resolver-C0dGAU7D.js} +1 -1
  150. package/dist/assets/not-found-C5RvPpGA.js +1 -0
  151. package/dist/assets/{notice-C0ifrvvJ.js → notice-CaWDgTdK.js} +1 -1
  152. package/dist/assets/{notifications-BWIFowwh.js → notifications-CQGuVwFz.js} +1 -1
  153. package/dist/assets/{notifications-page-D-UIXHhJ.js → notifications-page-LZsUZ6Ro.js} +1 -1
  154. package/dist/assets/{oauth-complete-page-CfuABbuw.js → oauth-complete-page-DwXSxY_d.js} +1 -1
  155. package/dist/assets/{oauth-connection-utils-CPrZGY1J.js → oauth-connection-utils-DH5UKTsi.js} +1 -1
  156. package/dist/assets/{oauth-popup-complete-page-C4obhyly.js → oauth-popup-complete-page-9Khhpt3r.js} +1 -1
  157. package/dist/assets/{onboarding-layout-C534GRct.js → onboarding-layout-EhfsoqTe.js} +1 -1
  158. package/dist/assets/{onboarding-store-_SsI8JK5.js → onboarding-store-DThPnFbF.js} +1 -1
  159. package/dist/assets/open-workspace-file-B36TWwyY.js +2 -0
  160. package/dist/assets/{page-shell-DH240m1W.js → page-shell-B29TRXSH.js} +1 -1
  161. package/dist/assets/{page-surface-store-CNB4IeOj.js → page-surface-store-BHHWFcXi.js} +1 -1
  162. package/dist/assets/{pairing-page-CyaQItu-.js → pairing-page-BK6lBFjK.js} +1 -1
  163. package/dist/assets/{password-reset-page-DPLHUy40.js → password-reset-page-C3KDnYRS.js} +1 -1
  164. package/dist/assets/{pdf-file-preview-aamRp74U.js → pdf-file-preview-DhivRhyt.js} +1 -1
  165. package/dist/assets/{pdf-preview-BCOApSsH.js → pdf-preview-ClCg4Sdt.js} +2 -2
  166. package/dist/assets/{personality-page-B1BQNH7w.js → personality-page-DInOyCuL.js} +1 -1
  167. package/dist/assets/{plans-page-CmrTummN.js → plans-page-i4Z81Zfo.js} +1 -1
  168. package/dist/assets/{platform-detection-C_TK32Dw.js → platform-detection-CC6UYgBe.js} +1 -1
  169. package/dist/assets/{platform-login-notice-xUd5GNrs.js → platform-login-notice-D4dj6EZ2.js} +1 -1
  170. package/dist/assets/{platform-loopback-page-B3V62nF1.js → platform-loopback-page-B4Ng5FJx.js} +1 -1
  171. package/dist/assets/plug-CmjogTDL.js +1 -0
  172. package/dist/assets/{plugin-detail-page-BrrXgSIx.js → plugin-detail-page-CNjhsZfY.js} +1 -1
  173. package/dist/assets/{plugins-page-DN9FdRf7.js → plugins-page-6S86z85Y.js} +1 -1
  174. package/dist/assets/plugins-surface-C66fo2rr.js +1 -0
  175. package/dist/assets/{popover-CAbJ9178.js → popover-CmXa0Jfk.js} +1 -1
  176. package/dist/assets/{prefs-CrbuxuNI.js → prefs-B7npVtCI.js} +1 -1
  177. package/dist/assets/{preview-error-Di5TH4XQ.js → preview-error-Dm3elLKo.js} +1 -1
  178. package/dist/assets/{preview-skeleton-DsTQ51Kh.js → preview-skeleton-CO6sUMYs.js} +1 -1
  179. package/dist/assets/{privacy-page-KPHfKCc-.js → privacy-page-DXs4CWbO.js} +1 -1
  180. package/dist/assets/{privacy-screen-C96Q8WNl.js → privacy-screen-D-41dpFO.js} +1 -1
  181. package/dist/assets/{profile-pickers-BSDVzs_G.js → profile-pickers-BLB-Ag9I.js} +1 -1
  182. package/dist/assets/{provider-callback-page-Cujz467v.js → provider-callback-page-CGPKL4UB.js} +1 -1
  183. package/dist/assets/{provider-key-C9asexKh.js → provider-key-HdSSgBez.js} +1 -1
  184. package/dist/assets/{provider-signup-page-FrBJ6jWd.js → provider-signup-page-BlyPietJ.js} +1 -1
  185. package/dist/assets/{provisioning-targets-BQdyCh_j.js → provisioning-targets-WW63TJUF.js} +1 -1
  186. package/dist/assets/{proxy-B4sTDdE4.js → proxy-BR7U6lRJ.js} +1 -1
  187. package/dist/assets/{push-registration-armbqyKu.js → push-registration-CODOGtR6.js} +2 -2
  188. package/dist/assets/{quick-input-page-BSDKtVff.js → quick-input-page-DWDCnDuD.js} +1 -1
  189. package/dist/assets/{react-query.gen-DKb3mEwJ.js → react-query.gen-DAG3-aXW.js} +1 -1
  190. package/dist/assets/{react-query.gen-DxjuNs-5.js → react-query.gen-DfH8CP-D.js} +1 -1
  191. package/dist/assets/{remote-gateway-session-CgDx1fv1.js → remote-gateway-session-DosfrG-S.js} +1 -1
  192. package/dist/assets/{remove-from-device-dialog-CcKMkfna.js → remove-from-device-dialog-3XLmZox-.js} +1 -1
  193. package/dist/assets/{research-facts-xV6xeZTm.js → research-facts-BCrefNPF.js} +1 -1
  194. package/dist/assets/{research-mock-page-EswkjK_L.js → research-mock-page-ClkxpYjq.js} +1 -1
  195. package/dist/assets/{research-onboarding-persistence-CiHHjoc-.js → research-onboarding-persistence-DNs64Lns.js} +1 -1
  196. package/dist/assets/{research-onboarding-route-BONCzs3I.js → research-onboarding-route-BNOtrqeY.js} +1 -1
  197. package/dist/assets/{research-results-view-CBP6WMg5.js → research-results-view-TaFcAZ84.js} +1 -1
  198. package/dist/assets/{resolved-assistants-store-BFI9c7ip.js → resolved-assistants-store-C8LHpp8e.js} +1 -1
  199. package/dist/assets/{retire-confirm-dialog-D1r3-9eW.js → retire-confirm-dialog-Bx5qQzxm.js} +1 -1
  200. package/dist/assets/{review-terms-screen-PS2WD_1Q.js → review-terms-screen-OtBYnC4k.js} +1 -1
  201. package/dist/assets/routes-CNLIOSW9.js +23 -0
  202. package/dist/assets/{routes-iipg2wkc.js → routes-CuLukUZB.js} +1 -1
  203. package/dist/assets/{runtime-upgrade-banner-Cb-05YWX.js → runtime-upgrade-banner-3hS3-ryA.js} +2 -2
  204. package/dist/assets/{sandbox-bridge-BCBI2xp5.js → sandbox-bridge-BcrnwvKh.js} +1 -1
  205. package/dist/assets/{schedules-CMISpWUM.js → schedules-CGIYvCb6.js} +1 -1
  206. package/dist/assets/schedules-page-MAze9r-T.js +1 -0
  207. package/dist/assets/schedules-vBJkl5Ev.js +1 -0
  208. package/dist/assets/{schedules-kVuR00ra.js → schedules-vgLiVUeu.js} +1 -1
  209. package/dist/assets/{sdk.gen-DKYWIHI7.js → sdk.gen-BuK52Py3.js} +1 -1
  210. package/dist/assets/{security-redirect-page-C4GE6lY-.js → security-redirect-page-Bhg3cN1w.js} +1 -1
  211. package/dist/assets/{select-B8-i-CZ4.js → select-DLhMJTau.js} +1 -1
  212. package/dist/assets/{select-assistant-screen-MVnLdEXo.js → select-assistant-screen-B6jS7pKk.js} +1 -1
  213. package/dist/assets/{self-hosted-servers-BkKnL6mg.js → self-hosted-servers-Cjfz28yF.js} +1 -1
  214. package/dist/assets/{setting-row-Be421VTJ.js → setting-row-DUbOoepV.js} +1 -1
  215. package/dist/assets/{settings-divider-CQsbe-Nu.js → settings-divider-DuJtyRRQ.js} +1 -1
  216. package/dist/assets/{settings-layout--oNfvqDM.js → settings-layout-C69glBZM.js} +1 -1
  217. package/dist/assets/{settings-navigation-BRTWWcNm.js → settings-navigation-D7fv1jKU.js} +1 -1
  218. package/dist/assets/{share-feedback-modal-ByD-3dJw.js → share-feedback-modal-DMoQmimN.js} +2 -2
  219. package/dist/assets/{sidebar-tree-BLyFJ2Ia.js → sidebar-tree-FSDY0jC5.js} +1 -1
  220. package/dist/assets/{signup-page-B33BBhv7.js → signup-page-BOz1Ce2f.js} +1 -1
  221. package/dist/assets/{signup-shell-B_xxhiVU.js → signup-shell-D9jnmdw2.js} +1 -1
  222. package/dist/assets/site-favicon-DTc3BKU4.js +1 -0
  223. package/dist/assets/{skill-detail-page-C2jGD6qa.js → skill-detail-page-JfyJtnDm.js} +1 -1
  224. package/dist/assets/{skill-detail-panel-BOPQ16Vg.js → skill-detail-panel-Cr8ErIU-.js} +1 -1
  225. package/dist/assets/{skills-C2mjxWRN.js → skills-BMWxjSqw.js} +1 -1
  226. package/dist/assets/{skills-page-BIFWyp46.js → skills-page-D-HE420_.js} +1 -1
  227. package/dist/assets/{sound-manager-jVvPdZzE.js → sound-manager-DBz9jxuc.js} +1 -1
  228. package/dist/assets/{sounds-page-BthAI7lQ.js → sounds-page-BuChPms_.js} +1 -1
  229. package/dist/assets/{src-BMRW2yQf.js → src-ChRrrEkW.js} +2 -2
  230. package/dist/assets/{start-screen-CXUDtHbL.js → start-screen-D-E7M8uV.js} +1 -1
  231. package/dist/assets/{stt-language-picker-modal-hAnfeTJt.js → stt-language-picker-modal-BQMCqAzg.js} +1 -1
  232. package/dist/assets/{subagent-detail-panel-C6YLPQYX.js → subagent-detail-panel-But6Xe8A.js} +2 -2
  233. package/dist/assets/{subagent-store-BOpi4xxB.js → subagent-store-BaV8197B.js} +1 -1
  234. package/dist/assets/{superpowers-page-bOpdIXSO.js → superpowers-page-BNwvTF-w.js} +1 -1
  235. package/dist/assets/{system-events-page-CpKkkew3.js → system-events-page-CczoA_vq.js} +1 -1
  236. package/dist/assets/{system-events-redirect-page-DDWTp-ZX.js → system-events-redirect-page-Do2IIU7l.js} +1 -1
  237. package/dist/assets/{tag-DeMzQvCo.js → tag-Cg97RqBa.js} +1 -1
  238. package/dist/assets/{telegram-setup-wizard-C-S2zVyB.js → telegram-setup-wizard-CwlrGOg0.js} +1 -1
  239. package/dist/assets/{text-preview-CPYq3og6.js → text-preview-C3jgPNwo.js} +1 -1
  240. package/dist/assets/{theme-stage-page-B6C95R4X.js → theme-stage-page-DL8WX6m8.js} +1 -1
  241. package/dist/assets/{threshold-presets-C1XDtWCG.js → threshold-presets-BNTGL40j.js} +1 -1
  242. package/dist/assets/{tiptap-document-editor-By4wlOTs.js → tiptap-document-editor-KjaFzytc.js} +1 -1
  243. package/dist/assets/{toast-BpuLSxyt.js → toast-CEOMJr4U.js} +1 -1
  244. package/dist/assets/tool-detail-panel-CCXUfcwe.js +2 -0
  245. package/dist/assets/{trust-rules-api-DHjXosMd.js → trust-rules-api-qSSxY6hx.js} +1 -1
  246. package/dist/assets/{upgrade-cancel-page-CNib5Lvx.js → upgrade-cancel-page-q4O6GCEf.js} +1 -1
  247. package/dist/assets/{upgrade-success-page-ChbMMjxu.js → upgrade-success-page-BNIaAAXs.js} +1 -1
  248. package/dist/assets/{usage-redirect-page-B4weibcd.js → usage-redirect-page-_oKmQ55v.js} +1 -1
  249. package/dist/assets/{use-active-assistant-id-BvHP5Ojg.js → use-active-assistant-id-DkoTKGju.js} +1 -1
  250. package/dist/assets/{use-app-theme-CV9AULGm.js → use-app-theme-DMNEfj51.js} +1 -1
  251. package/dist/assets/{use-assistant-avatar-Dk975wdP.js → use-assistant-avatar-brE97EmT.js} +1 -1
  252. package/dist/assets/{use-assistant-capability-y4ML0NOY.js → use-assistant-capability-CRiG7ywW.js} +1 -1
  253. package/dist/assets/{use-assistant-identity-details-DyvMGaA7.js → use-assistant-identity-details-Bg1PIfsI.js} +1 -1
  254. package/dist/assets/{use-attachment-preview-DARvChRY.js → use-attachment-preview-Dz7kee3J.js} +2 -2
  255. package/dist/assets/{use-attachment-squares-CcXCoP6m.js → use-attachment-squares-CbbcwC3L.js} +1 -1
  256. package/dist/assets/{use-avatar-accent-var-B7jzoU_Q.js → use-avatar-accent-var-C7nCFu0z.js} +1 -1
  257. package/dist/assets/{use-bookmarks-Wg8ueMhb.js → use-bookmarks-CCEF-6mV.js} +1 -1
  258. package/dist/assets/{use-bundled-avatar-components-CJR9zw0E.js → use-bundled-avatar-components-DmmrfpeB.js} +2 -2
  259. package/dist/assets/{use-bus-subscription-0lId9jya.js → use-bus-subscription-DN1VJhJf.js} +1 -1
  260. package/dist/assets/{use-checkout-dismiss-refresh-DxhJc-yl.js → use-checkout-dismiss-refresh-C5uV-_tQ.js} +1 -1
  261. package/dist/assets/{use-command-palette-sections-D7Qovubs.js → use-command-palette-sections-Bi_b8W4j.js} +1 -1
  262. package/dist/assets/{use-copy-to-clipboard-CT4aISCf.js → use-copy-to-clipboard-Dyj2bgSR.js} +1 -1
  263. package/dist/assets/{use-discord-nudge-BxJE92fj.js → use-discord-nudge-C6sdJKWC.js} +1 -1
  264. package/dist/assets/{use-edge-swipe-DcVcZWQR.js → use-edge-swipe-Dw05UAZP.js} +1 -1
  265. package/dist/assets/use-edge-swipe-back-zgbytpl0.js +2 -0
  266. package/dist/assets/{use-edit-app-BHvbZ_E2.js → use-edit-app-yMacZaTQ.js} +1 -1
  267. package/dist/assets/{use-effective-timezone-BZgsy8ZD.js → use-effective-timezone-ByVtBper.js} +1 -1
  268. package/dist/assets/{use-invite-link-dialog-DT7Dh_Rn.js → use-invite-link-dialog-XnzN0Bxn.js} +1 -1
  269. package/dist/assets/{use-is-org-ready-C1dNTCCr.js → use-is-org-ready-DEnshgih.js} +1 -1
  270. package/dist/assets/{use-local-file-info-2nORgZPN.js → use-local-file-info-129DUnoO.js} +1 -1
  271. package/dist/assets/{use-onboarding-login-jD1GTpYj.js → use-onboarding-login-Dxh2Ii8f.js} +1 -1
  272. package/dist/assets/{use-platform-assistant-id-HjP6fAHq.js → use-platform-assistant-id-BxJ7UfnC.js} +1 -1
  273. package/dist/assets/{use-platform-gate-Bl6Zz9YT.js → use-platform-gate-DjONJHgb.js} +1 -1
  274. package/dist/assets/{use-reduced-motion-CaGZSwLZ.js → use-reduced-motion-B1sUjZS8.js} +1 -1
  275. package/dist/assets/{use-return-to-short-circuit-BAlinZIj.js → use-return-to-short-circuit-DWDI-4Pq.js} +1 -1
  276. package/dist/assets/{use-save-twilio-credentials-DRq4mjuJ.js → use-save-twilio-credentials-D1ZfTQwU.js} +1 -1
  277. package/dist/assets/{use-skill-actions-kLsl5L01.js → use-skill-actions-CyvyjYhI.js} +1 -1
  278. package/dist/assets/{use-skill-detail-files-DUcVEycw.js → use-skill-detail-files-Dh0Wr3wJ.js} +1 -1
  279. package/dist/assets/{use-sticky-profiles-DNj-sXhm.js → use-sticky-profiles-CqXxXl_b.js} +1 -1
  280. package/dist/assets/{use-subagent-card-data-BeUTFQdm.js → use-subagent-card-data-DCRnhKgE.js} +1 -1
  281. package/dist/assets/{use-supports-bookmarks-FmvOAxKu.js → use-supports-bookmarks-DI-PUKzi.js} +1 -1
  282. package/dist/assets/use-supports-credentials-settings-m8VVzZ55.js +1 -0
  283. package/dist/assets/use-supports-schedule-profile-moves-CEHXjCy6.js +1 -0
  284. package/dist/assets/{use-swipe-engine-DVg4KDko.js → use-swipe-engine-B1IxHFUH.js} +1 -1
  285. package/dist/assets/use-transcript-message-by-id-DqjWqoVB.js +1 -0
  286. package/dist/assets/{use-transcript-messages-D10aKU4Y.js → use-transcript-messages-B5NjTxie.js} +1 -1
  287. package/dist/assets/{use-voice-sample-preview-C0rMlgfo.js → use-voice-sample-preview-CtiIYyyV.js} +1 -1
  288. package/dist/assets/{utils-CAZUrJMu.js → utils-umfxHwDT.js} +1 -1
  289. package/dist/assets/{viewer-store-CBJIJrgI.js → viewer-store-UG_6NKuW.js} +1 -1
  290. package/dist/assets/{voice-list-NJK9A5-9.js → voice-list-CUicBLrE.js} +1 -1
  291. package/dist/assets/{voice-page-DUhcEyO3.js → voice-page-D-fIUYrA.js} +1 -1
  292. package/dist/assets/{voice-providers-note-DC4nbaBx.js → voice-providers-note-CDpgLY-K.js} +1 -1
  293. package/dist/assets/{weather-forecast-display-CJR2u0Gd.js → weather-forecast-display-C63zwGpV.js} +1 -1
  294. package/dist/assets/{web-CKF5Z71t.js → web-8FEvMizM.js} +1 -1
  295. package/dist/assets/{web-PH_o876t.js → web-B5-dgnmB.js} +1 -1
  296. package/dist/assets/{web-BGEDzBTj.js → web-CR35G2uY.js} +1 -1
  297. package/dist/assets/{web-DgdrqCBD.js → web-D2MCE5ed.js} +1 -1
  298. package/dist/assets/{web-DdfrjRFj.js → web-DAXSreF1.js} +1 -1
  299. package/dist/assets/{web-XWcudotj.js → web-DAmhIzM2.js} +1 -1
  300. package/dist/assets/{web-CZ7SJVPm.js → web-DN3jsmT9.js} +1 -1
  301. package/dist/assets/{web-DpTL4tjO.js → web-yak2MriP.js} +1 -1
  302. package/dist/assets/{welcome-screen-CCc75ZA7.js → welcome-screen-ZsGOIMye.js} +1 -1
  303. package/dist/assets/{workflow-detail-panel-Bf6rP5UH.js → workflow-detail-panel-MCk1ORVp.js} +1 -1
  304. package/dist/assets/{workflow-store-D0DBQy44.js → workflow-store-DrBICjxP.js} +1 -1
  305. package/dist/assets/{workspace-page-CPvOaHpr.js → workspace-page-DWK6c0op.js} +1 -1
  306. package/dist/assets/{workspace-tree-query-C1cr1bD9.js → workspace-tree-query-y1oZ-k_0.js} +1 -1
  307. package/dist/images/integrations/ATTRIBUTION.md +72 -0
  308. package/dist/images/integrations/airtable.svg +1 -0
  309. package/dist/images/integrations/asana.svg +1 -0
  310. package/dist/images/integrations/discord.svg +1 -0
  311. package/dist/images/integrations/dropbox.svg +1 -0
  312. package/dist/images/integrations/hubspot.svg +1 -0
  313. package/dist/images/integrations/salesforce.svg +5 -0
  314. package/dist/images/integrations/sanity.svg +1 -0
  315. package/dist/images/integrations/spotify.svg +1 -0
  316. package/dist/images/integrations/telegram.svg +1 -0
  317. package/dist/images/integrations/todoist.svg +1 -0
  318. package/dist/images/integrations/x.svg +1 -0
  319. package/dist/index.html +225 -223
  320. package/package.json +1 -1
  321. package/dist/assets/access-BOq4DW2C.js +0 -1
  322. package/dist/assets/app-card-BC0v4M9v.js +0 -1
  323. package/dist/assets/channels-page-route-zhDwKh3G.js +0 -9
  324. package/dist/assets/chat-ChR1Wltq.js +0 -1
  325. package/dist/assets/checkout-continuation-GOQDBt2E.js +0 -1
  326. package/dist/assets/checkout-return-target-nwJqTLu3.js +0 -1
  327. package/dist/assets/consent-C4SGGEiM.js +0 -1
  328. package/dist/assets/effective-timezone-CjGPHJlt.js +0 -1
  329. package/dist/assets/esm-BQVPeBND.js +0 -2
  330. package/dist/assets/esm-CJOBAGRZ.js +0 -1
  331. package/dist/assets/esm-DQmqYI6w.js +0 -2
  332. package/dist/assets/esm-DTQ1PkY5.js +0 -2
  333. package/dist/assets/esm-DZYmsDJe.js +0 -2
  334. package/dist/assets/esm-Djxt7414.js +0 -2
  335. package/dist/assets/identity-DTcIPrCK.js +0 -1
  336. package/dist/assets/identity-page-route-CnBwVa-8.js +0 -7
  337. package/dist/assets/index-BgAZwIxC.css +0 -2
  338. package/dist/assets/integration-icon-BaoRF0qI.js +0 -1
  339. package/dist/assets/message-content-Beh5mR15.js +0 -1
  340. package/dist/assets/native-anchor-pG2n_Kd9.js +0 -1
  341. package/dist/assets/not-found-CLavSfSA.js +0 -4
  342. package/dist/assets/open-workspace-file-wAC625zZ.js +0 -2
  343. package/dist/assets/plugins-surface-B4NuEVD_.js +0 -1
  344. package/dist/assets/routes-DHFaI0p_.js +0 -23
  345. package/dist/assets/schedules-page-CwCMyl6v.js +0 -1
  346. package/dist/assets/site-favicon-B5ilr8wL.js +0 -1
  347. package/dist/assets/tool-detail-panel-lyfh5reN.js +0 -2
  348. package/dist/assets/use-edge-swipe-back-CrIwZOYm.js +0 -2
  349. package/dist/assets/use-supports-credentials-settings-DL3XdESq.js +0 -1
  350. package/dist/assets/use-supports-schedule-profile-moves-DeGSINt5.js +0 -1
  351. package/dist/assets/use-transcript-message-by-id-CFToiLxW.js +0 -1
  352. /package/dist/assets/{Combination-BswM2qVy.js → Combination-CZCRM_nS.js} +0 -0
  353. /package/dist/assets/{android-consumption-only-BkXIkXls.js → android-consumption-only-2v7d1ft4.js} +0 -0
  354. /package/dist/assets/{api-errors-BQX1Pzcm.js → api-errors-BePw2zjj.js} +0 -0
  355. /package/dist/assets/{app-types-BvcxXy_T.js → app-types-CqBNsQUL.js} +0 -0
  356. /package/dist/assets/{apple-logo-Dz_HmP0n.js → apple-logo-CtKiAMXT.js} +0 -0
  357. /package/dist/assets/{avatar-bundled-components-BCCi2IoG.js → avatar-bundled-components-BQL9MV7B.js} +0 -0
  358. /package/dist/assets/{avatar-subagent-CvC1Sf9s.js → avatar-subagent-V67BkekT.js} +0 -0
  359. /package/dist/assets/{avatar-svg-compositor-BOadabHt.js → avatar-svg-compositor-BQBrTeQs.js} +0 -0
  360. /package/dist/assets/{avatar-tone-D1ZiIRxb.js → avatar-tone-Cv_t2BEe.js} +0 -0
  361. /package/dist/assets/{browser-timezone-DM1QmwES.js → browser-timezone-wbv9GuNI.js} +0 -0
  362. /package/dist/assets/{build.umd-BC7nU_MA.js → build.umd-agX5x_N-.js} +0 -0
  363. /package/dist/assets/{by-tool-use-id-index-xzJzBHo0.js → by-tool-use-id-index-DxDmG0lS.js} +0 -0
  364. /package/dist/assets/{chat-DYLliWTB.js → chat-xsa3JU8_.js} +0 -0
  365. /package/dist/assets/{client.gen-C854VG5x.js → client.gen-C1q6uU7x.js} +0 -0
  366. /package/dist/assets/{common-iR56ePu0.js → common-Brml0BY3.js} +0 -0
  367. /package/dist/assets/{create-selectors-DBgi9gD3.js → create-selectors-BiwSQ06u.js} +0 -0
  368. /package/dist/assets/{definitions-DsnF3fmE.js → definitions-BELMdL6o.js} +0 -0
  369. /package/dist/assets/{definitions-DOWspEJE.js → definitions-yXgHOQ0q.js} +0 -0
  370. /package/dist/assets/{dist-C5_d6Zkz.js → dist-8oesoRzW.js} +0 -0
  371. /package/dist/assets/{dist-Br0LBu8Y.js → dist-D6NTChCy.js} +0 -0
  372. /package/dist/assets/{dist-BA9prIz1.js → dist-DBUqjtfj.js} +0 -0
  373. /package/dist/assets/{domains-Cmw6F6mt.js → domains-CM1rZd4j.js} +0 -0
  374. /package/dist/assets/{edit-chat-session-DKBzd1lH.js → edit-chat-session-Bdm9ZLKa.js} +0 -0
  375. /package/dist/assets/{emoji-catalog-data-B4mXD1kH.js → emoji-catalog-data-BRXjZrZo.js} +0 -0
  376. /package/dist/assets/{event-bus-Cy8AzL-G.js → event-bus-D1uy-Old.js} +0 -0
  377. /package/dist/assets/{external-urls-EO9DXoFH.js → external-urls-BhQHT_9u.js} +0 -0
  378. /package/dist/assets/{eye-bbox-hZoek1Q5.js → eye-bbox-Cu8gT0cU.js} +0 -0
  379. /package/dist/assets/{feature-flag-catalog-BOqgTYGM.js → feature-flag-catalog-DqRwJjQh.js} +0 -0
  380. /package/dist/assets/{field-Dq8jxCGe.js → field-3WTC6Gb3.js} +0 -0
  381. /package/dist/assets/{format-date-Bi9Bsv-w.js → format-date-zRDd0TJO.js} +0 -0
  382. /package/dist/assets/{format-file-size-CimvYM_C.js → format-file-size-BMZgXE_y.js} +0 -0
  383. /package/dist/assets/{hard-navigate-BrsAH6PB.js → hard-navigate-D4JQb1ef.js} +0 -0
  384. /package/dist/assets/{is-electron-BHXrkjI3.js → is-electron-COZbF3PI.js} +0 -0
  385. /package/dist/assets/{link-click-DVtp4tRV.js → link-click-ChYs4a2O.js} +0 -0
  386. /package/dist/assets/{machine-sizes-B2_svsFw.js → machine-sizes-C0a5p3nN.js} +0 -0
  387. /package/dist/assets/{misc-Z0jXGGeY.js → misc-BgYDv5Z5.js} +0 -0
  388. /package/dist/assets/{native-deep-link-CiI89I5P.js → native-deep-link-DWuDAe4g.js} +0 -0
  389. /package/dist/assets/{oauth-popup-CBMOU7CT.js → oauth-popup-p3JwMHYn.js} +0 -0
  390. /package/dist/assets/{onboarding-step-layout-Cpow6WLp.js → onboarding-step-layout-TQ-TJ4DL.js} +0 -0
  391. /package/dist/assets/{optimistic-lifecycle-y2tCk6TM.js → optimistic-lifecycle-sRH5zmVf.js} +0 -0
  392. /package/dist/assets/{page-empty-state-Cew9C-yU.js → page-empty-state-D4Mts7va.js} +0 -0
  393. /package/dist/assets/{pdf-BxxMt9T0.js → pdf-Cz02heWZ.js} +0 -0
  394. /package/dist/assets/{plugin-attribution-Cu32SvNF.js → plugin-attribution-DtBmiuTV.js} +0 -0
  395. /package/dist/assets/{plus-DnH9Pjq4.js → plus-BYxxpGuo.js} +0 -0
  396. /package/dist/assets/{pointer-CmipOtDe.js → pointer-CaNxNM-I.js} +0 -0
  397. /package/dist/assets/{prechat-CXmfuQt3.js → prechat-B7GJFxNK.js} +0 -0
  398. /package/dist/assets/{profile-metadata-DgH7VoVU.js → profile-metadata-Fd5cHsNq.js} +0 -0
  399. /package/dist/assets/{progress-bar-CrrJKpWm.js → progress-bar-IQu8a5jw.js} +0 -0
  400. /package/dist/assets/{public-asset-CZ7NhuGg.js → public-asset-CKHJXRP4.js} +0 -0
  401. /package/dist/assets/{puzzle-CIWAeBs0.js → puzzle-CPUEnSvC.js} +0 -0
  402. /package/dist/assets/{radio-card-nav-B1BF1G_V.js → radio-card-nav-DVVajJ4X.js} +0 -0
  403. /package/dist/assets/{reduced-motion-DiWTepDn.js → reduced-motion-UbKacUud.js} +0 -0
  404. /package/dist/assets/{refresh-cw-DV6tvYxO.js → refresh-cw-DsQNt7Mf.js} +0 -0
  405. /package/dist/assets/{repeat-BvvxRT2U.js → repeat-C5hEKB2H.js} +0 -0
  406. /package/dist/assets/{rotate-ccw-Dcfo4EC8.js → rotate-ccw-DsGxZIAg.js} +0 -0
  407. /package/dist/assets/{sdk.gen-CBPZ2IdN.js → sdk.gen-CRqU0Sdn.js} +0 -0
  408. /package/dist/assets/{sdk.gen-3yYjcJ2l.js → sdk.gen-DU2xVh0r.js} +0 -0
  409. /package/dist/assets/{search-D2xMZu1P.js → search-BSUupeAI.js} +0 -0
  410. /package/dist/assets/{semver-7PiLMufW.js → semver-1nYZhWRt.js} +0 -0
  411. /package/dist/assets/{send-BlX2px_R.js → send-U5mjCA0w.js} +0 -0
  412. /package/dist/assets/{settings-751LDGs_.js → settings-C6b2wh56.js} +0 -0
  413. /package/dist/assets/{shield-CCHFIJHf.js → shield-BWZBU6wj.js} +0 -0
  414. /package/dist/assets/{shield-check-zaoUwOKj.js → shield-check-8-GDXt8x.js} +0 -0
  415. /package/dist/assets/{shim-DQit20z4.js → shim-CPAWAVyj.js} +0 -0
  416. /package/dist/assets/{skeleton-CJJwPIil.js → skeleton-EuUO-r4i.js} +0 -0
  417. /package/dist/assets/{sliders-horizontal-Dd2oGqSf.js → sliders-horizontal-CdYkJOse.js} +0 -0
  418. /package/dist/assets/{smartphone-BTdDwse2.js → smartphone-CLL_DNLZ.js} +0 -0
  419. /package/dist/assets/{sparkles-B94iNYGJ.js → sparkles-BE7ouxCu.js} +0 -0
  420. /package/dist/assets/{square-CE8V_WXJ.js → square-DV5QmiXs.js} +0 -0
  421. /package/dist/assets/{status-badge-pill---iRVZ8q.js → status-badge-pill-BSr0QWw4.js} +0 -0
  422. /package/dist/assets/{sun-DnK4LisT.js → sun-Ga7CWLyW.js} +0 -0
  423. /package/dist/assets/{terminal-CkQ9DSF2.js → terminal-DQ8ba9tG.js} +0 -0
  424. /package/dist/assets/{theme-preferences-5grl-uOq.js → theme-preferences-CPHbp1nE.js} +0 -0
  425. /package/dist/assets/{three-dot-indicator-BQxSg8G2.js → three-dot-indicator-dTKY7u8e.js} +0 -0
  426. /package/dist/assets/{toggle-C-v4x7_A.js → toggle-BK7kOn0t.js} +0 -0
  427. /package/dist/assets/{trash-2-BKXSi5Tj.js → trash-2-Dspkb7sv.js} +0 -0
  428. /package/dist/assets/{triangle-alert-CB4pJgCL.js → triangle-alert-BdnWU2cF.js} +0 -0
  429. /package/dist/assets/{typed-storage-UYklH-m5.js → typed-storage-DKrGXxEW.js} +0 -0
  430. /package/dist/assets/{use-is-mobile-BP8UePsY.js → use-is-mobile-lEDNsCdt.js} +0 -0
  431. /package/dist/assets/{user-Djte2CiZ.js → user-BX4JxD8k.js} +0 -0
  432. /package/dist/assets/{user-plus-DAap8I1c.js → user-plus-Gc92TQsa.js} +0 -0
  433. /package/dist/assets/{users-XI0CRYkf.js → users-DtFCP5jO.js} +0 -0
  434. /package/dist/assets/{volume-2-CyoXrHNM.js → volume-2-D4ppxKF0.js} +0 -0
  435. /package/dist/assets/{workflow-CXyPzVz4.js → workflow-DAU_0KJd.js} +0 -0
  436. /package/dist/assets/{workflow-status-AIHLnh_i.js → workflow-status-49Qlsthd.js} +0 -0
  437. /package/dist/assets/{workspace-path-links-Dal5QJ_L.js → workspace-path-links-0wzODGwz.js} +0 -0
  438. /package/dist/assets/{workspace-theme-tokens-D_dTwxiM.js → workspace-theme-tokens-BXGCR-lo.js} +0 -0
  439. /package/dist/assets/{wrench-BIRk4-Cp.js → wrench-C_bzLJKM.js} +0 -0
  440. /package/dist/assets/{x-338EsJDP.js → x-DcjZaQsQ.js} +0 -0
  441. /package/dist/assets/{xterm-BFy8KW7v.js → xterm-BkCtzp2H.js} +0 -0
  442. /package/dist/assets/{xterm-addon-fit-B1JiDvqa.js → xterm-addon-fit-CfEreWFl.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{B as r,R as i,V as a,i as o,p as s,r as c,z as l}from"./proxy-B4sTDdE4.js";var u=n(),d=e(t(),1);function f(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():f(e[t],null)}}}}function m(...e){return d.useCallback(p(...e),e)}var h=class extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(s(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=s(e)&&e.offsetWidth||0,r=s(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function g({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let s=(0,d.useId)(),c=(0,d.useRef)(null),l=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:f}=(0,d.useContext)(o),p=m(c,e.props?.ref??e?.ref);return(0,d.useInsertionEffect)(()=>{let{width:e,height:o,top:u,left:d,right:p,bottom:m,direction:h}=l.current;if(t||a===!1||!c.current||!e||!o)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${d}`:g?`left: ${d}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${u}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);f&&(y.nonce=f);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{B as r,R as i,V as a,i as o,p as s,r as c,z as l}from"./proxy-BR7U6lRJ.js";var u=n(),d=e(t(),1);function f(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():f(e[t],null)}}}}function m(...e){return d.useCallback(p(...e),e)}var h=class extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(s(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=s(e)&&e.offsetWidth||0,r=s(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function g({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let s=(0,d.useId)(),c=(0,d.useRef)(null),l=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:f}=(0,d.useContext)(o),p=m(c,e.props?.ref??e?.ref);return(0,d.useInsertionEffect)(()=>{let{width:e,height:o,top:u,left:d,right:p,bottom:m,direction:h}=l.current;if(t||a===!1||!c.current||!e||!o)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${d}`:g?`left: ${d}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${u}`;c.current.dataset.motionPopId=s;let y=document.createElement(`style`);f&&(y.nonce=f);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
2
2
  [data-motion-pop-id="${s}"] {
3
3
  position: absolute !important;
4
4
  width: ${e}px !important;
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./misc-Z0jXGGeY.js";import{t as i}from"./format-file-size-CimvYM_C.js";var a=e(t(),1),o=n(),s={verified:{label:`Verified`,className:`bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`},signed:{label:`Signed`,className:`bg-[var(--system-info-weak)] text-[var(--system-info-strong)]`},unsigned:{label:`Unsigned`,className:`bg-[var(--surface-active)] text-[var(--content-secondary)]`},tampered:{label:`Tampered — signature invalid`,className:`bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`}};function c(){let[e,t]=(0,a.useState)(null),[n,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{window.vellum?.bundleConfirm?.getData().then(e=>{e&&t(e)})},[]),!e)return(0,o.jsx)(`div`,{className:`flex h-svh w-screen items-center justify-center bg-background text-muted-foreground select-none`,children:`Loading...`});let{manifest:l,scanResult:u,signatureResult:d,bundleSizeBytes:f}=e,p=s[d.trustTier],m=d.trustTier===`tampered`,h=u.warnings;return(0,o.jsxs)(`div`,{className:`flex h-svh w-screen flex-col bg-background px-6 pt-14 pb-6 text-foreground select-none`,children:[(0,o.jsxs)(`div`,{className:`flex items-start gap-3`,children:[l.icon?(0,o.jsx)(`span`,{className:`text-5xl leading-none`,children:l.icon}):(0,o.jsx)(`span`,{className:`text-5xl leading-none`,children:`📦`}),(0,o.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,o.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:l.name}),l.description&&(0,o.jsx)(`p`,{className:`text-muted-foreground mt-0.5 text-sm leading-snug`,children:l.description})]})]}),(0,o.jsxs)(`div`,{className:`mt-4 flex items-center gap-2`,children:[(0,o.jsx)(`span`,{className:r(`inline-block rounded-full px-2.5 py-0.5 text-xs font-medium`,p.className),children:p.label}),d.trustTier===`signed`&&d.signerDisplayName&&(0,o.jsxs)(`span`,{className:`text-muted-foreground text-xs`,children:[`by `,d.signerDisplayName]})]}),(0,o.jsxs)(`dl`,{className:`mt-4 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1.5 text-sm`,children:[(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Size`}),(0,o.jsx)(`dd`,{children:i(f)}),(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Created by`}),(0,o.jsx)(`dd`,{className:`truncate`,children:l.created_by}),l.capabilities.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Capabilities`}),(0,o.jsx)(`dd`,{className:`truncate`,children:l.capabilities.join(`, `)})]})]}),h.length>0&&(0,o.jsxs)(`div`,{className:`mt-4`,children:[(0,o.jsxs)(`button`,{type:`button`,className:`text-muted-foreground text-xs font-medium hover:underline`,onClick:()=>c(e=>!e),children:[n?`Hide`:`Show`,` Warnings (`,h.length,`)`]}),n&&(0,o.jsx)(`ul`,{className:`mt-1.5 space-y-1 text-xs`,children:h.map((e,t)=>(0,o.jsx)(`li`,{className:`rounded bg-[var(--system-mid-weak)] px-2 py-1 text-[var(--system-mid-strong)]`,children:e},t))})]}),(0,o.jsxs)(`div`,{className:`mt-auto flex items-center justify-end gap-3 pt-4`,children:[(0,o.jsx)(`button`,{type:`button`,className:`rounded-md border border-border px-4 py-1.5 text-sm font-medium text-foreground hover:bg-muted`,onClick:()=>window.vellum?.bundleConfirm?.respond(!1),children:`Cancel`}),(0,o.jsx)(`button`,{type:`button`,className:r(`rounded-md px-4 py-1.5 text-sm font-medium text-white`,m?`bg-red-600 hover:bg-red-700`:`bg-primary hover:bg-primary/90`),onClick:()=>window.vellum?.bundleConfirm?.respond(!0),children:m?`Install Anyway`:`Install`})]})]})}export{c as BundleConfirmPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./misc-BgYDv5Z5.js";import{t as i}from"./format-file-size-BMZgXE_y.js";var a=e(t(),1),o=n(),s={verified:{label:`Verified`,className:`bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`},signed:{label:`Signed`,className:`bg-[var(--system-info-weak)] text-[var(--system-info-strong)]`},unsigned:{label:`Unsigned`,className:`bg-[var(--surface-active)] text-[var(--content-secondary)]`},tampered:{label:`Tampered — signature invalid`,className:`bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`}};function c(){let[e,t]=(0,a.useState)(null),[n,c]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{window.vellum?.bundleConfirm?.getData().then(e=>{e&&t(e)})},[]),!e)return(0,o.jsx)(`div`,{className:`flex h-svh w-screen items-center justify-center bg-background text-muted-foreground select-none`,children:`Loading...`});let{manifest:l,scanResult:u,signatureResult:d,bundleSizeBytes:f}=e,p=s[d.trustTier],m=d.trustTier===`tampered`,h=u.warnings;return(0,o.jsxs)(`div`,{className:`flex h-svh w-screen flex-col bg-background px-6 pt-14 pb-6 text-foreground select-none`,children:[(0,o.jsxs)(`div`,{className:`flex items-start gap-3`,children:[l.icon?(0,o.jsx)(`span`,{className:`text-5xl leading-none`,children:l.icon}):(0,o.jsx)(`span`,{className:`text-5xl leading-none`,children:`📦`}),(0,o.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,o.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:l.name}),l.description&&(0,o.jsx)(`p`,{className:`text-muted-foreground mt-0.5 text-sm leading-snug`,children:l.description})]})]}),(0,o.jsxs)(`div`,{className:`mt-4 flex items-center gap-2`,children:[(0,o.jsx)(`span`,{className:r(`inline-block rounded-full px-2.5 py-0.5 text-xs font-medium`,p.className),children:p.label}),d.trustTier===`signed`&&d.signerDisplayName&&(0,o.jsxs)(`span`,{className:`text-muted-foreground text-xs`,children:[`by `,d.signerDisplayName]})]}),(0,o.jsxs)(`dl`,{className:`mt-4 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1.5 text-sm`,children:[(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Size`}),(0,o.jsx)(`dd`,{children:i(f)}),(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Created by`}),(0,o.jsx)(`dd`,{className:`truncate`,children:l.created_by}),l.capabilities.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`dt`,{className:`text-muted-foreground`,children:`Capabilities`}),(0,o.jsx)(`dd`,{className:`truncate`,children:l.capabilities.join(`, `)})]})]}),h.length>0&&(0,o.jsxs)(`div`,{className:`mt-4`,children:[(0,o.jsxs)(`button`,{type:`button`,className:`text-muted-foreground text-xs font-medium hover:underline`,onClick:()=>c(e=>!e),children:[n?`Hide`:`Show`,` Warnings (`,h.length,`)`]}),n&&(0,o.jsx)(`ul`,{className:`mt-1.5 space-y-1 text-xs`,children:h.map((e,t)=>(0,o.jsx)(`li`,{className:`rounded bg-[var(--system-mid-weak)] px-2 py-1 text-[var(--system-mid-strong)]`,children:e},t))})]}),(0,o.jsxs)(`div`,{className:`mt-auto flex items-center justify-end gap-3 pt-4`,children:[(0,o.jsx)(`button`,{type:`button`,className:`rounded-md border border-border px-4 py-1.5 text-sm font-medium text-foreground hover:bg-muted`,onClick:()=>window.vellum?.bundleConfirm?.respond(!1),children:`Cancel`}),(0,o.jsx)(`button`,{type:`button`,className:r(`rounded-md px-4 py-1.5 text-sm font-medium text-white`,m?`bg-red-600 hover:bg-red-700`:`bg-primary hover:bg-primary/90`),onClick:()=>window.vellum?.bundleConfirm?.respond(!0),children:m?`Install Anyway`:`Install`})]})]})}export{c as BundleConfirmPage};
@@ -1 +1 @@
1
- import{d as e}from"./routes-iipg2wkc.js";function t(t){let n=typeof window<`u`?window.location.origin:``,r=new URLSearchParams({senderAssistantId:t.senderAssistantId,token:t.token});return`${n}${e.connect}?${r.toString()}`}function n(e){let t=e.get(`senderAssistantId`)?.trim(),n=e.get(`token`)?.trim();return!t||!n?null:{senderAssistantId:t,token:n}}export{n,t};
1
+ import{d as e}from"./routes-CuLukUZB.js";function t(t){let n=typeof window<`u`?window.location.origin:``,r=new URLSearchParams({senderAssistantId:t.senderAssistantId,token:t.token});return`${n}${e.connect}?${r.toString()}`}function n(e){let t=e.get(`senderAssistantId`)?.trim(),n=e.get(`token`)?.trim();return!t||!n?null:{senderAssistantId:t,token:n}}export{n,t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./is-electron-BHXrkjI3.js";import{n as i,t as a}from"./app-info-Du9AiJU5.js";var o=e(t(),1),s=n();function c(){let[e,t]=(0,o.useState)(null);(0,o.useEffect)(()=>{a().then(t)},[]);let n=e??l;return(0,s.jsxs)(`div`,{className:`flex h-svh w-screen flex-col items-center justify-center bg-background px-8 pt-14 pb-8 text-center text-foreground select-none`,children:[(0,s.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:n.appName}),(0,s.jsx)(`p`,{className:`text-muted-foreground mt-1 mb-7 text-xs`,children:`AI assistant for your Mac`}),(0,s.jsxs)(`dl`,{className:`mb-7 grid grid-cols-[auto_auto] gap-x-4 gap-y-1.5 text-sm`,children:[(0,s.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:`Version`}),(0,s.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:n.version}),(0,s.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:`Build`}),(0,s.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:n.commitSha})]}),(0,s.jsx)(`a`,{href:n.website,className:`text-primary text-sm hover:underline`,onClick:e=>{r()&&(e.preventDefault(),i())},children:new URL(n.website).host}),(0,s.jsx)(`div`,{className:`text-muted-foreground mt-auto pt-6 text-[11px]`,children:n.copyright})]})}var l={appName:`Vellum`,version:`—`,commitSha:`—`,copyright:`© ${new Date().getFullYear()} Vellum`,website:`https://vellum.ai`};export{c as AboutPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./is-electron-COZbF3PI.js";import{n as i,t as a}from"./app-info-CipaSe3I.js";var o=e(t(),1),s=n();function c(){let[e,t]=(0,o.useState)(null);(0,o.useEffect)(()=>{a().then(t)},[]);let n=e??l;return(0,s.jsxs)(`div`,{className:`flex h-svh w-screen flex-col items-center justify-center bg-background px-8 pt-14 pb-8 text-center text-foreground select-none`,children:[(0,s.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:n.appName}),(0,s.jsx)(`p`,{className:`text-muted-foreground mt-1 mb-7 text-xs`,children:`AI assistant for your Mac`}),(0,s.jsxs)(`dl`,{className:`mb-7 grid grid-cols-[auto_auto] gap-x-4 gap-y-1.5 text-sm`,children:[(0,s.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:`Version`}),(0,s.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:n.version}),(0,s.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:`Build`}),(0,s.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:n.commitSha})]}),(0,s.jsx)(`a`,{href:n.website,className:`text-primary text-sm hover:underline`,onClick:e=>{r()&&(e.preventDefault(),i())},children:new URL(n.website).host}),(0,s.jsx)(`div`,{className:`text-muted-foreground mt-auto pt-6 text-[11px]`,children:n.copyright})]})}var l={appName:`Vellum`,version:`—`,commitSha:`—`,copyright:`© ${new Date().getFullYear()} Vellum`,website:`https://vellum.ai`};export{c as AboutPage};
@@ -0,0 +1 @@
1
+ import{n as e}from"./auth-store-aW3pSe7k.js";import{t}from"./assistant-feature-flag-store-daTHZVhs.js";function n(e,t){return t||e?.isStaff===!0||e?.email?.toLowerCase().endsWith(`@vellum.ai`)===!0}function r(){return n(e.use.user(),t.use.settingsDeveloperNav()===!0)}export{r as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./chunk-5KNZJZUH-BUqIilZr.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{a as i,n as a,s as o}from"./auth-store-CZH40qFL.js";import{E as s}from"./platform-detection-C_TK32Dw.js";import{d as c}from"./routes-iipg2wkc.js";import{t as l}from"./hard-navigate-BrsAH6PB.js";import{n as u,t as d}from"./login-flow-L6j1TUUS.js";import{r as f,t as p}from"./account-shell-BwGiy59u.js";var m=e(t(),1),h=r();function g(){let e=i(),t=o(),r=a.use.user(),g=a.use.logout(),[_,v]=(0,m.useState)(null),[y,b]=(0,m.useState)(!1),x=async()=>{v(null),b(!0);try{await s(u,d)}catch(e){console.error(`[account] auth flow failed:`,e),v(`Something went wrong. Please try again.`),b(!1)}};return t?(0,h.jsx)(p,{children:(0,h.jsx)(f,{title:`Loading...`})}):e?(0,h.jsxs)(p,{children:[(0,h.jsx)(f,{title:`Welcome${r?.username?`, ${r.username}`:``}!`,subtitle:`You are signed in.`}),(0,h.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,h.jsx)(n,{to:c.assistant,className:`inline-flex w-full 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:`Go to your assistant`}),(0,h.jsx)(`button`,{type:`button`,onClick:async()=>{await g(),l(c.account.login)},className:`cursor-pointer bg-transparent text-sm font-normal text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:`Sign out`})]})]}):(0,h.jsxs)(p,{children:[(0,h.jsx)(f,{title:`Welcome to Vellum`,subtitle:`Sign in to get started.`}),_&&(0,h.jsx)(`p`,{className:`text-center text-sm text-[var(--system-negative-strong)]`,children:_}),(0,h.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,h.jsx)(`button`,{type:`button`,onClick:()=>void x(),disabled:y,className:`inline-flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] transition-colors hover:bg-[var(--primary-hover)] disabled:opacity-50`,children:`Sign in`})})]})}export{g as AccountPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./chunk-5KNZJZUH-BUqIilZr.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{a as i,n as a,s as o}from"./auth-store-aW3pSe7k.js";import{E as s}from"./platform-detection-CC6UYgBe.js";import{d as c}from"./routes-CuLukUZB.js";import{t as l}from"./hard-navigate-D4JQb1ef.js";import{n as u,t as d}from"./login-flow-CGVMA4oj.js";import{r as f,t as p}from"./account-shell-2FI8vinG.js";var m=e(t(),1),h=r();function g(){let e=i(),t=o(),r=a.use.user(),g=a.use.logout(),[_,v]=(0,m.useState)(null),[y,b]=(0,m.useState)(!1),x=async()=>{v(null),b(!0);try{await s(u,d)}catch(e){console.error(`[account] auth flow failed:`,e),v(`Something went wrong. Please try again.`),b(!1)}};return t?(0,h.jsx)(p,{children:(0,h.jsx)(f,{title:`Loading...`})}):e?(0,h.jsxs)(p,{children:[(0,h.jsx)(f,{title:`Welcome${r?.username?`, ${r.username}`:``}!`,subtitle:`You are signed in.`}),(0,h.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,h.jsx)(n,{to:c.assistant,className:`inline-flex w-full 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:`Go to your assistant`}),(0,h.jsx)(`button`,{type:`button`,onClick:async()=>{await g(),l(c.account.login)},className:`cursor-pointer bg-transparent text-sm font-normal text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:`Sign out`})]})]}):(0,h.jsxs)(p,{children:[(0,h.jsx)(f,{title:`Welcome to Vellum`,subtitle:`Sign in to get started.`}),_&&(0,h.jsx)(`p`,{className:`text-center text-sm text-[var(--system-negative-strong)]`,children:_}),(0,h.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,h.jsx)(`button`,{type:`button`,onClick:()=>void x(),disabled:y,className:`inline-flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] transition-colors hover:bg-[var(--primary-hover)] disabled:opacity-50`,children:`Sign in`})})]})}export{g as AccountPage};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-D3ZM-ToX.js";import"./src-BMRW2yQf.js";import{t}from"./notice-C0ifrvvJ.js";var n=e(),r=(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M7.5 15L12.5 10L7.5 5`,stroke:`currentColor`,strokeWidth:`1.67`,strokeLinecap:`round`,strokeLinejoin:`round`})});function i({onSubmit:e,error:i,children:a,submitLabel:o,submittingLabel:s,isSubmitting:c,footer:l}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`form`,{onSubmit:e,className:`flex flex-col gap-4`,children:[i&&(0,n.jsx)(t,{tone:`error`,children:i}),(0,n.jsx)(`div`,{className:`flex flex-col gap-3`,children:a}),(0,n.jsxs)(`button`,{type:`submit`,disabled:c,className:`mt-2 inline-flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] transition-colors hover:bg-[var(--primary-hover)] disabled:cursor-wait disabled:opacity-50`,children:[c?s:o,r]})]}),l&&(0,n.jsx)(`div`,{className:`mt-8 text-center`,children:l})]})}function a(e){return(0,n.jsx)(`input`,{...e,className:`w-full rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] px-4 py-3 text-sm text-[var(--content-default)] outline-none placeholder:text-[var(--content-tertiary)] focus:border-[var(--primary-base)]/50`})}function o({title:e,subtitle:t}){return(0,n.jsxs)(`div`,{className:`mb-8 text-center`,children:[(0,n.jsx)(`h1`,{className:`mb-2 font-serif text-[2rem] font-bold italic text-[var(--content-default)]`,children:e}),t&&(0,n.jsx)(`p`,{className:`text-sm text-[var(--content-secondary)]`,children:t})]})}function s({children:e}){return(0,n.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)]`,children:(0,n.jsx)(`div`,{className:`w-full max-w-[480px] px-6`,children:(0,n.jsx)(`div`,{className:`flex flex-col items-center gap-10`,children:(0,n.jsx)(`div`,{className:`w-full`,children:e})})})})}export{a as i,i as n,o as r,s as t};
1
+ import{t as e}from"./jsx-runtime-D3ZM-ToX.js";import"./src-ChRrrEkW.js";import{t}from"./notice-CaWDgTdK.js";var n=e(),r=(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M7.5 15L12.5 10L7.5 5`,stroke:`currentColor`,strokeWidth:`1.67`,strokeLinecap:`round`,strokeLinejoin:`round`})});function i({onSubmit:e,error:i,children:a,submitLabel:o,submittingLabel:s,isSubmitting:c,footer:l}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`form`,{onSubmit:e,className:`flex flex-col gap-4`,children:[i&&(0,n.jsx)(t,{tone:`error`,children:i}),(0,n.jsx)(`div`,{className:`flex flex-col gap-3`,children:a}),(0,n.jsxs)(`button`,{type:`submit`,disabled:c,className:`mt-2 inline-flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] transition-colors hover:bg-[var(--primary-hover)] disabled:cursor-wait disabled:opacity-50`,children:[c?s:o,r]})]}),l&&(0,n.jsx)(`div`,{className:`mt-8 text-center`,children:l})]})}function a(e){return(0,n.jsx)(`input`,{...e,className:`w-full rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] px-4 py-3 text-sm text-[var(--content-default)] outline-none placeholder:text-[var(--content-tertiary)] focus:border-[var(--primary-base)]/50`})}function o({title:e,subtitle:t}){return(0,n.jsxs)(`div`,{className:`mb-8 text-center`,children:[(0,n.jsx)(`h1`,{className:`mb-2 font-serif text-[2rem] font-bold italic text-[var(--content-default)]`,children:e}),t&&(0,n.jsx)(`p`,{className:`text-sm text-[var(--content-secondary)]`,children:t})]})}function s({children:e}){return(0,n.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)]`,children:(0,n.jsx)(`div`,{className:`w-full max-w-[480px] px-6`,children:(0,n.jsx)(`div`,{className:`flex flex-col items-center gap-10`,children:(0,n.jsx)(`div`,{className:`w-full`,children:e})})})})}export{a as i,i as n,o as r,s as t};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-D3ZM-ToX.js";import{t}from"./createLucideIcon-C1mdGPB9.js";import{t as n}from"./code-DwZ6Mhdw.js";import{n as r}from"./resolved-assistants-store-BFI9c7ip.js";import{Qr as i}from"./sdk.gen-CBPZ2IdN.js";import{t as a}from"./public-asset-CZ7NhuGg.js";import{r as o}from"./acp-run-store-DAOLku4B.js";var s=t(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),c=t(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),l=t(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),u=e();function d(e){let t=e.toLowerCase();if(t.includes(`claude`))return`/images/prior-assistants/claude.svg`;if(t.includes(`codex`)||t.includes(`openai`)||t.includes(`gpt`))return`/images/prior-assistants/chatgpt.svg`;if(t.includes(`copilot`))return`/images/prior-assistants/copilot.svg`}function f({agent:e,className:t=`h-4 w-4 shrink-0`}){let r=e?d(e):void 0;return r?(0,u.jsx)(`img`,{src:a(r),alt:``,"aria-hidden":!0,"data-testid":`acp-agent-icon-brand`,className:t}):(0,u.jsx)(n,{className:`${t} text-[var(--content-secondary)]`,"aria-hidden":!0})}function p(){let e=r.getState().activeAssistantId;if(!e)throw Error(`No active assistant`);return e}async function m(e){let t=p(),n=o.getState(),r=n.byId[e]?.status;n.cancelRun({acpSessionId:e,completedAt:Date.now()});try{let{response:n}=await i.post({url:`/v1/assistants/{assistant_id}/acp/{id}/cancel`,path:{assistant_id:t,id:e},body:{}});if(!n?.ok)throw Error(`Failed to stop ACP run: ${n?.status}`)}catch(t){throw r!==void 0&&o.getState().restoreRunStatus({acpSessionId:e,status:r}),t}}async function h(e,t){let{data:n,response:r}=await i.post({url:`/v1/assistants/{assistant_id}/acp/{id}/steer`,path:{assistant_id:p(),id:e},body:{instruction:t}});if(!r?.ok)throw Error(`Failed to steer ACP run: ${r?.status}`);return n}export{c as a,l as i,m as n,s as o,f as r,h as t};
1
+ import{t as e}from"./jsx-runtime-D3ZM-ToX.js";import{t}from"./createLucideIcon-C1mdGPB9.js";import{t as n}from"./code-DwZ6Mhdw.js";import{n as r}from"./resolved-assistants-store-C8LHpp8e.js";import{Qr as i}from"./sdk.gen-CRqU0Sdn.js";import{t as a}from"./public-asset-CKHJXRP4.js";import{r as o}from"./acp-run-store-CH22VLgw.js";var s=t(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),c=t(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),l=t(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),u=e();function d(e){let t=e.toLowerCase();if(t.includes(`claude`))return`/images/prior-assistants/claude.svg`;if(t.includes(`codex`)||t.includes(`openai`)||t.includes(`gpt`))return`/images/prior-assistants/chatgpt.svg`;if(t.includes(`copilot`))return`/images/prior-assistants/copilot.svg`}function f({agent:e,className:t=`h-4 w-4 shrink-0`}){let r=e?d(e):void 0;return r?(0,u.jsx)(`img`,{src:a(r),alt:``,"aria-hidden":!0,"data-testid":`acp-agent-icon-brand`,className:t}):(0,u.jsx)(n,{className:`${t} text-[var(--content-secondary)]`,"aria-hidden":!0})}function p(){let e=r.getState().activeAssistantId;if(!e)throw Error(`No active assistant`);return e}async function m(e){let t=p(),n=o.getState(),r=n.byId[e]?.status;n.cancelRun({acpSessionId:e,completedAt:Date.now()});try{let{response:n}=await i.post({url:`/v1/assistants/{assistant_id}/acp/{id}/cancel`,path:{assistant_id:t,id:e},body:{}});if(!n?.ok)throw Error(`Failed to stop ACP run: ${n?.status}`)}catch(t){throw r!==void 0&&o.getState().restoreRunStatus({acpSessionId:e,status:r}),t}}async function h(e,t){let{data:n,response:r}=await i.post({url:`/v1/assistants/{assistant_id}/acp/{id}/steer`,path:{assistant_id:p(),id:e},body:{instruction:t}});if(!r?.ok)throw Error(`Failed to steer ACP run: ${r?.status}`);return n}export{c as a,l as i,m as n,s as o,f as r,h as t};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Cw5vs0Ef.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-BENY-yx_.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{t as a}from"./typography-BeUa5Fd-.js";import{t as o}from"./createLucideIcon-C1mdGPB9.js";import{a as s,i as c,n as l,o as u,r as d,t as f}from"./acp-run-actions-BtRROeN9.js";import{t as p}from"./arrow-left-BikDV6F2.js";import{t as m}from"./brain-ZiC0HCCF.js";import{t as h}from"./chevron-down-CrFV6lfm.js";import{t as g}from"./chevron-right-DBGgpEiZ.js";import{t as _}from"./circle-check-q8BVdbgw.js";import{t as v}from"./circle-minus-Y3lFnfyL.js";import{w as y}from"./menu-DKE_-iVc.js";import{t as b}from"./code-DwZ6Mhdw.js";import"./src-BMRW2yQf.js";import{t as x}from"./file-text-DDbRSMUn.js";import{t as S}from"./globe-COk-NH9x.js";import{t as C}from"./chat-markdown-message-hc0CFGBS.js";import{t as ee}from"./repeat-BvvxRT2U.js";import{t as te}from"./search-D2xMZu1P.js";import{t as ne}from"./send-BlX2px_R.js";import{t as w}from"./square-CE8V_WXJ.js";import{t as T}from"./terminal-CkQ9DSF2.js";import{t as re}from"./trash-2-BKXSi5Tj.js";import{t as ie}from"./triangle-alert-CB4pJgCL.js";import{t as ae}from"./x-338EsJDP.js";import{t as oe}from"./tag-DeMzQvCo.js";import{a as E,i as se,n as D,r as O}from"./acp-run-store-DAOLku4B.js";import{t as k}from"./three-dot-indicator-BQxSg8G2.js";import{t as ce}from"./status-badge-pill---iRVZ8q.js";var le=o(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),A=e(n(),1),j=``;function M(e,t){switch(e){case`complete`:case`completed`:return`completed`;case`failed`:case`error`:return`error`;case void 0:return t;default:return`running`}}function ue(e){return(e.messageId?.startsWith(`local-marker-`)??!1)||(e.content?.startsWith(`↻ Steering: `)??!1)}function N(e){let t=e??``;return t.startsWith(`↻ Steering: `)?t.slice(D.length):t}function P(e){let t=e[e.length-1];t&&(t.kind===`agent`||t.kind===`thinking`)&&!t.isComplete&&(e[e.length-1]={...t,isComplete:!0})}function F(e,t){if(t.updateType===`agent_message_chunk`&&ue(t)){P(e),e.push({kind:`user`,id:t.messageId??`steer-${e.length}`,content:N(t.content)});return}switch(t.updateType){case`user_message_chunk`:{let n=t.messageId??j,r=N(t.content),i=e[e.length-1];i&&i.kind===`user`&&i.id===n?e[e.length-1]={...i,content:i.content+r}:(P(e),e.push({kind:`user`,id:n,content:r}));let a=e[e.length-1].content;for(let t=0;t<e.length-1;t++){let n=e[t];if(n.kind===`user`&&n.id.startsWith(`local-marker-`)&&n.content===a){e.splice(t,1);break}}return}case`agent_message_chunk`:{let n=t.messageId??j,r=e[e.length-1];if(r&&r.kind===`agent`&&r.messageId===n){e[e.length-1]={...r,content:r.content+(t.content??``)};return}if(n!==j&&r&&r.kind===`agent`&&r.messageId===j&&!r.isComplete&&r.content===(t.content??``)){e[e.length-1]={...r,messageId:n};return}P(e),e.push({kind:`agent`,messageId:n,content:t.content??``,isComplete:!1});return}case`agent_thought_chunk`:{let n=t.messageId??j,r=e[e.length-1];if(r&&r.kind===`thinking`&&r.messageId===n){e[e.length-1]={...r,content:r.content+(t.content??``)};return}P(e),e.push({kind:`thinking`,messageId:n,content:t.content??``,isComplete:!1});return}case`tool_call`:{let n=t.toolCallId;if(n===void 0)return;P(e),e.push({kind:`tool`,toolCallId:n,title:t.toolTitle??``,toolKind:t.toolKind,status:M(t.toolStatus,`running`),content:t.content,locations:I(t),rawInput:t.rawInput,rawOutput:t.rawOutput});return}case`tool_call_update`:{let n=t.toolCallId;if(n===void 0)return;let r=e.findIndex(e=>e.kind===`tool`&&e.toolCallId===n);if(r===-1)return;let i=e[r],a=I(t);e[r]={...i,title:t.toolTitle??i.title,toolKind:t.toolKind??i.toolKind,status:M(t.toolStatus,i.status),content:t.content??i.content,locations:a??i.locations,rawInput:t.rawInput===void 0?i.rawInput:t.rawInput,rawOutput:t.rawOutput===void 0?i.rawOutput:t.rawOutput};return}case`plan`:{let n=de(t.content);if(n===null)return;let r=e.findIndex(e=>e.kind===`plan`),i={kind:`plan`,entries:n};r===-1?(P(e),e.push(i)):e[r]=i;return}}}function I(e){let t=e.locations;if(!Array.isArray(t))return;let n=[];for(let e of t){let t=e??{};typeof t.path==`string`&&n.push(typeof t.line==`number`?{path:t.path,line:t.line}:{path:t.path})}return n}function de(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}let n=Array.isArray(t)?t:Array.isArray(t?.entries)?t.entries:null;return n===null?null:n.map(e=>{let t=e??{},n=t.content??t.label??``;return{label:typeof n==`string`?n:String(n),checked:t.checked===!0||t.status===`completed`}})}function fe(e){let t=[];for(let n of e)F(t,n);return t}function pe(e,t){if(e===t)return{kind:`identity`};if(e===null)return{kind:`first`};if(t.length<e.length)return{kind:`fallback`};for(let n=0;n<e.length;n++)if(e[n]!==t[n])return n===e.length-1&&t.length===e.length?{kind:`mutate-last`}:{kind:`fallback`};return t.length===e.length?{kind:`identity`}:{kind:`append`,from:e.length}}function me(){let e=null,t=[];function n(n){return t=fe(n),e=n,t}function r(r){let i=pe(e,r);switch(i.kind){case`identity`:return t;case`first`:return n(r);case`append`:{let n=t.slice();for(let e=i.from;e<r.length;e++)F(n,r[e]);return e=r,t=n,t}case`mutate-last`:case`fallback`:return n(r)}}return{project:r}}function L(e){let t=(0,A.useRef)(null);return t.current??=me(),t.current.project(e)}function R(e){if(!e)return[];let t;try{t=JSON.parse(e)}catch{let t=e.trimStart();return t.startsWith(`{`)||t.startsWith(`[`)?[]:[{type:`content`,text:e}]}let n=Array.isArray(t)?t:[t],r=[];for(let e of n){let t=z(e);t&&r.push(t)}return r}function z(e){if(typeof e!=`object`||!e)return null;let t=e;switch(t.type){case`content`:return{type:`content`,text:he(t.content)};case`diff`:return typeof t.path!=`string`||typeof t.newText!=`string`?null:{type:`diff`,path:t.path,newText:t.newText,...typeof t.oldText==`string`?{oldText:t.oldText}:{}};case`terminal`:{let e=ge(t);return e===void 0?{type:`terminal`}:{type:`terminal`,text:e}}default:return null}}function he(e){if(typeof e==`string`)return e;if(typeof e==`object`&&e){let t=e.text;if(typeof t==`string`)return t}return``}function ge(e){if(typeof e.text==`string`)return e.text;if(typeof e.output==`string`)return e.output;if(typeof e.content==`string`)return e.content;if(typeof e.content==`object`&&e.content!==null){let t=e.content.text;if(typeof t==`string`)return t}}function B(e){if(typeof e!=`object`||!e)return;let t=e.command;return typeof t==`string`?t:void 0}function V(e){return R(e).filter(e=>e.type===`content`||e.type===`terminal`).map(e=>`text`in e?e.text??``:``).filter(e=>e.length>0).join(`
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-BJ9lxRkr.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-BENY-yx_.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{t as a}from"./typography-BeUa5Fd-.js";import{t as o}from"./createLucideIcon-C1mdGPB9.js";import{a as s,i as c,n as l,o as u,r as d,t as f}from"./acp-run-actions-Bp8bnCNG.js";import{t as p}from"./arrow-left-BikDV6F2.js";import{t as m}from"./brain-ZiC0HCCF.js";import{t as h}from"./chevron-down-CrFV6lfm.js";import{t as g}from"./chevron-right-DBGgpEiZ.js";import{t as _}from"./circle-check-q8BVdbgw.js";import{t as v}from"./circle-minus-Y3lFnfyL.js";import{w as y}from"./menu-DvkwQ4tD.js";import{t as b}from"./code-DwZ6Mhdw.js";import"./src-ChRrrEkW.js";import{t as x}from"./file-text-DDbRSMUn.js";import{t as S}from"./globe-COk-NH9x.js";import{t as C}from"./chat-markdown-message-DY1kKw31.js";import{t as ee}from"./repeat-C5hEKB2H.js";import{t as te}from"./search-BSUupeAI.js";import{t as ne}from"./send-U5mjCA0w.js";import{t as w}from"./square-DV5QmiXs.js";import{t as T}from"./terminal-DQ8ba9tG.js";import{t as re}from"./trash-2-Dspkb7sv.js";import{t as ie}from"./triangle-alert-BdnWU2cF.js";import{t as ae}from"./x-DcjZaQsQ.js";import{t as oe}from"./tag-Cg97RqBa.js";import{a as E,i as se,n as D,r as O}from"./acp-run-store-CH22VLgw.js";import{t as k}from"./three-dot-indicator-dTKY7u8e.js";import{t as ce}from"./status-badge-pill-BSr0QWw4.js";var le=o(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),A=e(n(),1),j=``;function M(e,t){switch(e){case`complete`:case`completed`:return`completed`;case`failed`:case`error`:return`error`;case void 0:return t;default:return`running`}}function ue(e){return(e.messageId?.startsWith(`local-marker-`)??!1)||(e.content?.startsWith(`↻ Steering: `)??!1)}function N(e){let t=e??``;return t.startsWith(`↻ Steering: `)?t.slice(D.length):t}function P(e){let t=e[e.length-1];t&&(t.kind===`agent`||t.kind===`thinking`)&&!t.isComplete&&(e[e.length-1]={...t,isComplete:!0})}function F(e,t){if(t.updateType===`agent_message_chunk`&&ue(t)){P(e),e.push({kind:`user`,id:t.messageId??`steer-${e.length}`,content:N(t.content)});return}switch(t.updateType){case`user_message_chunk`:{let n=t.messageId??j,r=N(t.content),i=e[e.length-1];i&&i.kind===`user`&&i.id===n?e[e.length-1]={...i,content:i.content+r}:(P(e),e.push({kind:`user`,id:n,content:r}));let a=e[e.length-1].content;for(let t=0;t<e.length-1;t++){let n=e[t];if(n.kind===`user`&&n.id.startsWith(`local-marker-`)&&n.content===a){e.splice(t,1);break}}return}case`agent_message_chunk`:{let n=t.messageId??j,r=e[e.length-1];if(r&&r.kind===`agent`&&r.messageId===n){e[e.length-1]={...r,content:r.content+(t.content??``)};return}if(n!==j&&r&&r.kind===`agent`&&r.messageId===j&&!r.isComplete&&r.content===(t.content??``)){e[e.length-1]={...r,messageId:n};return}P(e),e.push({kind:`agent`,messageId:n,content:t.content??``,isComplete:!1});return}case`agent_thought_chunk`:{let n=t.messageId??j,r=e[e.length-1];if(r&&r.kind===`thinking`&&r.messageId===n){e[e.length-1]={...r,content:r.content+(t.content??``)};return}P(e),e.push({kind:`thinking`,messageId:n,content:t.content??``,isComplete:!1});return}case`tool_call`:{let n=t.toolCallId;if(n===void 0)return;P(e),e.push({kind:`tool`,toolCallId:n,title:t.toolTitle??``,toolKind:t.toolKind,status:M(t.toolStatus,`running`),content:t.content,locations:I(t),rawInput:t.rawInput,rawOutput:t.rawOutput});return}case`tool_call_update`:{let n=t.toolCallId;if(n===void 0)return;let r=e.findIndex(e=>e.kind===`tool`&&e.toolCallId===n);if(r===-1)return;let i=e[r],a=I(t);e[r]={...i,title:t.toolTitle??i.title,toolKind:t.toolKind??i.toolKind,status:M(t.toolStatus,i.status),content:t.content??i.content,locations:a??i.locations,rawInput:t.rawInput===void 0?i.rawInput:t.rawInput,rawOutput:t.rawOutput===void 0?i.rawOutput:t.rawOutput};return}case`plan`:{let n=de(t.content);if(n===null)return;let r=e.findIndex(e=>e.kind===`plan`),i={kind:`plan`,entries:n};r===-1?(P(e),e.push(i)):e[r]=i;return}}}function I(e){let t=e.locations;if(!Array.isArray(t))return;let n=[];for(let e of t){let t=e??{};typeof t.path==`string`&&n.push(typeof t.line==`number`?{path:t.path,line:t.line}:{path:t.path})}return n}function de(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}let n=Array.isArray(t)?t:Array.isArray(t?.entries)?t.entries:null;return n===null?null:n.map(e=>{let t=e??{},n=t.content??t.label??``;return{label:typeof n==`string`?n:String(n),checked:t.checked===!0||t.status===`completed`}})}function fe(e){let t=[];for(let n of e)F(t,n);return t}function pe(e,t){if(e===t)return{kind:`identity`};if(e===null)return{kind:`first`};if(t.length<e.length)return{kind:`fallback`};for(let n=0;n<e.length;n++)if(e[n]!==t[n])return n===e.length-1&&t.length===e.length?{kind:`mutate-last`}:{kind:`fallback`};return t.length===e.length?{kind:`identity`}:{kind:`append`,from:e.length}}function me(){let e=null,t=[];function n(n){return t=fe(n),e=n,t}function r(r){let i=pe(e,r);switch(i.kind){case`identity`:return t;case`first`:return n(r);case`append`:{let n=t.slice();for(let e=i.from;e<r.length;e++)F(n,r[e]);return e=r,t=n,t}case`mutate-last`:case`fallback`:return n(r)}}return{project:r}}function L(e){let t=(0,A.useRef)(null);return t.current??=me(),t.current.project(e)}function R(e){if(!e)return[];let t;try{t=JSON.parse(e)}catch{let t=e.trimStart();return t.startsWith(`{`)||t.startsWith(`[`)?[]:[{type:`content`,text:e}]}let n=Array.isArray(t)?t:[t],r=[];for(let e of n){let t=z(e);t&&r.push(t)}return r}function z(e){if(typeof e!=`object`||!e)return null;let t=e;switch(t.type){case`content`:return{type:`content`,text:he(t.content)};case`diff`:return typeof t.path!=`string`||typeof t.newText!=`string`?null:{type:`diff`,path:t.path,newText:t.newText,...typeof t.oldText==`string`?{oldText:t.oldText}:{}};case`terminal`:{let e=ge(t);return e===void 0?{type:`terminal`}:{type:`terminal`,text:e}}default:return null}}function he(e){if(typeof e==`string`)return e;if(typeof e==`object`&&e){let t=e.text;if(typeof t==`string`)return t}return``}function ge(e){if(typeof e.text==`string`)return e.text;if(typeof e.output==`string`)return e.output;if(typeof e.content==`string`)return e.content;if(typeof e.content==`object`&&e.content!==null){let t=e.content.text;if(typeof t==`string`)return t}}function B(e){if(typeof e!=`object`||!e)return;let t=e.command;return typeof t==`string`?t:void 0}function V(e){return R(e).filter(e=>e.type===`content`||e.type===`terminal`).map(e=>`text`in e?e.text??``:``).filter(e=>e.length>0).join(`
2
2
  `)}function H(e){if(e!=null){if(typeof e==`string`)return e;if(typeof e==`object`)try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)}}function U(e,t){let n=new Map;for(let t of e)t.type===`diff`&&n.set(t.path,{path:t.path,newText:t.newText,...t.oldText===void 0?{}:{oldText:t.oldText}});for(let e of t??[])n.has(e.path)||n.set(e.path,{path:e.path});return Array.from(n.values())}var W=i();function _e({content:e,isComplete:t,assistantId:n}){return(0,W.jsxs)(`div`,{"data-testid":`acp-chat-agent-message`,className:`flex w-full flex-col items-start text-chat text-[var(--content-default)]`,children:[(0,W.jsx)(C,{content:e,assistantId:n}),!t&&(0,W.jsx)(k,{className:`mt-1`,"data-testid":`acp-chat-agent-streaming`})]})}function ve({entries:e}){return e.length===0?null:(0,W.jsxs)(`div`,{"data-testid":`acp-chat-plan-block`,className:`w-full rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] p-3`,children:[(0,W.jsxs)(`div`,{className:`mb-2 flex items-center gap-1.5 text-[var(--content-tertiary)]`,children:[(0,W.jsx)(c,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}),(0,W.jsx)(a,{variant:`body-small-emphasised`,className:`text-inherit`,children:`Plan`})]}),(0,W.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:e.map((e,t)=>(0,W.jsxs)(`li`,{"data-testid":`acp-chat-plan-entry`,"data-checked":e.checked,className:`flex items-start gap-2`,children:[e.checked?(0,W.jsx)(_,{"aria-hidden":!0,className:`mt-0.5 h-4 w-4 shrink-0 text-[var(--system-positive-strong)]`}):(0,W.jsx)(y,{"aria-hidden":!0,className:`mt-0.5 h-4 w-4 shrink-0 text-[var(--content-disabled)]`}),(0,W.jsx)(`span`,{className:e.checked?`text-body-small-default text-[var(--content-tertiary)] line-through`:`text-body-small-default text-[var(--content-default)]`,children:e.label})]},t))})]})}function ye(e){switch(e){case`max_tokens`:case`max_turn_requests`:return`Stopped: limit reached`;case`refusal`:return`Refused`;case`cancelled`:return`Cancelled`;default:return`Completed`}}function be(e){return new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function G({completedAt:e}){return e===void 0?null:(0,W.jsxs)(`span`,{"data-testid":`acp-chat-terminal-time`,children:[`at `,be(e)]})}function xe({status:e,stopReason:t,error:n,completedAt:r}){if(E(e))return null;if(e===`failed`)return(0,W.jsxs)(`div`,{"data-testid":`acp-chat-terminal-block`,"data-terminal-kind":`failed`,className:`flex items-start gap-2 rounded-lg bg-[var(--system-negative-weak)] px-3 py-2 text-body-small-default text-[var(--system-negative-strong)]`,children:[(0,W.jsx)(`span`,{"aria-hidden":!0,"data-testid":`acp-chat-terminal-failed-icon`,className:`flex h-[12px] w-4 shrink-0 items-center justify-center`,children:(0,W.jsx)(ie,{className:`h-4 w-4`})}),(0,W.jsx)(`span`,{children:n??`Run failed`})]});if(e===`cancelled`)return(0,W.jsxs)(`div`,{"data-testid":`acp-chat-terminal-block`,"data-terminal-kind":`cancelled`,className:`flex items-center gap-2 text-body-small-default text-[var(--content-tertiary)]`,children:[(0,W.jsx)(v,{"aria-hidden":!0,className:`h-4 w-4 shrink-0`}),(0,W.jsx)(`span`,{children:`Cancelled`}),(0,W.jsx)(G,{completedAt:r})]});let i=ye(t);return(0,W.jsxs)(`div`,{"data-testid":`acp-chat-terminal-block`,"data-terminal-kind":`completed`,className:`flex items-center gap-2 text-body-small-default text-[var(--content-tertiary)]`,children:[(0,W.jsx)(_,{"aria-hidden":!0,className:`h-4 w-4 shrink-0 text-[var(--system-positive-strong)]`}),(0,W.jsx)(`span`,{children:i}),(0,W.jsx)(G,{completedAt:r})]})}function Se({showDot:e,isLast:t,children:n}){return(0,W.jsxs)(`div`,{className:`relative flex items-start gap-2${t?``:` pb-4`}`,children:[!t&&(0,W.jsx)(`div`,{"aria-hidden":!0,className:`absolute bottom-0 left-[6.5px] w-px bg-[var(--border-element)] ${e?`top-[16px]`:`top-0`}`}),e?(0,W.jsx)(`span`,{"aria-hidden":!0,"data-testid":`acp-chat-timeline-dot`,className:`flex h-[14px] w-[14px] shrink-0 items-center justify-center`,children:(0,W.jsx)(`span`,{className:`h-[5px] w-[5px] rounded-full bg-[var(--content-disabled)]`})}):(0,W.jsx)(`span`,{"aria-hidden":!0,className:`h-[14px] w-[14px] shrink-0`}),(0,W.jsx)(`div`,{className:`min-w-0 flex-1`,children:n})]})}function Ce({content:e,isComplete:t,assistantId:n}){let[r,i]=(0,A.useState)(null),a=r??!t,o=e.trim().length>0,s=t?`Thought process`:`Thinking`,c=t?(0,W.jsx)(m,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}):(0,W.jsx)(k,{dotSize:5,className:`shrink-0`,"data-testid":`acp-chat-thinking-streaming`});return o?(0,W.jsxs)(`div`,{"data-testid":`acp-chat-thinking-block`,className:`w-full`,children:[(0,W.jsxs)(`button`,{type:`button`,"aria-expanded":a,onClick:()=>i(!a),"data-testid":`acp-chat-thinking-toggle`,className:`flex w-full items-center gap-1.5 text-body-small-default text-[var(--content-tertiary)] transition-colors hover:text-[var(--content-secondary)]`,children:[a?(0,W.jsx)(h,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}):(0,W.jsx)(g,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}),c,(0,W.jsx)(`span`,{children:s})]}),a&&(0,W.jsx)(`div`,{"data-testid":`acp-chat-thinking-body`,className:`mt-1.5 border-l-2 border-[var(--border-base)] pl-3 text-body-small-default text-[var(--content-tertiary)]`,children:(0,W.jsx)(C,{content:e,assistantId:n})})]}):(0,W.jsx)(`div`,{"data-testid":`acp-chat-thinking-block`,className:`w-full`,children:(0,W.jsxs)(`div`,{className:`flex w-full items-center gap-1.5 text-body-small-default text-[var(--content-tertiary)]`,children:[c,(0,W.jsx)(`span`,{children:s})]})})}var we={running:`neutral`,completed:`positive`,error:`negative`,ended:`neutral`},Te={running:`Running`,completed:`Completed`,error:`Failed`,ended:`Ended`},Ee={read:`Read file`,edit:`Edit file`,delete:`Delete file`,move:`Move file`,search:`Search`,execute:`Run command`,think:`Thinking`,fetch:`Fetch`,switch_mode:`Switch mode`},De=`Tool call`,Oe={read:x,edit:le,delete:re,move:s,search:te,execute:T,think:m,fetch:S,switch_mode:ee},ke=new Set([`read`,`edit`,`delete`,`move`]);function Ae({toolKind:e}){return(0,W.jsx)(e&&Oe[e]||b,{"aria-hidden":!0,className:`h-4 w-4 shrink-0 text-[var(--content-tertiary)]`})}function K({label:e,value:t,testId:n}){return(0,W.jsxs)(`div`,{"data-testid":n,children:[(0,W.jsx)(`div`,{className:`mb-1 text-body-small-default text-[var(--content-tertiary)]`,children:e}),(0,W.jsx)(`pre`,{className:`max-h-60 overflow-auto rounded-md border border-[var(--border-element)] bg-[var(--surface-base)] p-2.5 font-mono text-body-small-default text-[var(--content-secondary)]`,children:t})]})}function je({block:e,isTerminal:t=!1,onOpenDiff:n,onOpenOutput:r}){let[i,o]=(0,A.useState)(!1),s=(0,A.useMemo)(()=>R(e.content),[e.content]),c=(0,A.useMemo)(()=>V(e.content),[e.content]),l=(0,A.useMemo)(()=>c.split(`
3
3
  `).map(e=>e.trim()).find(e=>e.length>0&&!e.startsWith("```"))||`View output`,[c]),u=(0,A.useMemo)(()=>U(s,e.locations),[s,e.locations]),d=t&&e.status===`running`?`ended`:e.status,f=d===`running`,p=e.toolKind&&Ee[e.toolKind]||De,m=B(e.rawInput)??e.title,_=m&&m!==p&&(!ke.has(e.toolKind??``)||u.length===0)?m:null,v=H(e.rawInput),y=H(e.rawOutput),b=v!==void 0||y!==void 0;return(0,W.jsxs)(`div`,{"data-testid":`acp-chat-tool-card`,"data-status":e.status,className:`w-full rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] p-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(Ae,{toolKind:e.toolKind}),(0,W.jsx)(a,{variant:`body-small-emphasised`,className:`min-w-0 flex-1 truncate text-[var(--content-default)]`,title:e.title,children:p}),(0,W.jsx)(oe,{tone:we[d],"data-testid":`acp-chat-tool-status`,children:Te[d]}),f&&(0,W.jsx)(k,{className:`shrink-0`,"data-testid":`acp-chat-tool-running`})]}),_&&(0,W.jsx)(`div`,{"data-testid":`acp-chat-tool-detail`,className:`mt-1.5 font-mono text-body-small-default whitespace-pre-wrap break-words text-[var(--content-secondary)]`,children:_}),u.length>0&&(0,W.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:u.map(t=>{let r=t.oldText!==void 0||t.newText!==void 0,i=`flex max-w-full items-center gap-1.5 rounded-md border border-[var(--border-base)] bg-[var(--surface-base)] px-2 py-1 text-body-small-default text-[var(--content-secondary)]`;return r?(0,W.jsxs)(`button`,{type:`button`,"data-testid":`acp-chat-tool-file-chip`,onClick:()=>n(e.toolCallId,t),title:t.path,className:`${i} cursor-pointer transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--border-focus)]`,children:[(0,W.jsx)(x,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}),(0,W.jsx)(`span`,{className:`truncate font-mono`,children:t.path})]},t.path):(0,W.jsxs)(`span`,{"data-testid":`acp-chat-tool-file-ref`,title:t.path,className:i,children:[(0,W.jsx)(x,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}),(0,W.jsx)(`span`,{className:`truncate font-mono`,children:t.path})]},t.path)})}),c.length>0&&(0,W.jsxs)(`button`,{type:`button`,"data-testid":`acp-chat-tool-output-open`,onClick:()=>r?.(e.toolCallId),className:`mt-2 flex w-full items-center gap-2 rounded-md border border-[var(--border-element)] bg-[var(--surface-base)] px-2.5 py-2 text-left transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--border-focus)]`,children:[(0,W.jsx)(T,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0 text-[var(--content-tertiary)]`}),(0,W.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:l}),(0,W.jsx)(g,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0 text-[var(--content-tertiary)]`})]}),b&&(0,W.jsxs)(`div`,{className:`mt-2`,"data-testid":`acp-chat-tool-raw`,children:[(0,W.jsxs)(`button`,{type:`button`,"data-testid":`acp-chat-tool-raw-toggle`,"aria-expanded":i,onClick:()=>o(e=>!e),className:`flex items-center gap-1 text-body-small-default text-[var(--content-tertiary)] transition-colors hover:text-[var(--content-default)]`,children:[i?(0,W.jsx)(h,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}):(0,W.jsx)(g,{"aria-hidden":!0,className:`h-3.5 w-3.5 shrink-0`}),(0,W.jsx)(`span`,{children:i?`Hide raw input/output`:`Show raw input/output`})]}),i&&(0,W.jsxs)(`div`,{className:`mt-1.5 flex flex-col gap-2`,children:[v!==void 0&&(0,W.jsx)(K,{label:`Raw input`,value:v,testId:`acp-chat-tool-raw-input`}),y!==void 0&&(0,W.jsx)(K,{label:`Raw output`,value:y,testId:`acp-chat-tool-raw-output`})]})]})]})}function Me({content:e}){return(0,W.jsx)(`div`,{"data-testid":`acp-chat-user-turn`,className:`flex w-full justify-end`,children:(0,W.jsx)(`div`,{className:`max-w-[80%] rounded-lg bg-[var(--surface-lift)] px-4 py-3 whitespace-pre-wrap text-chat text-[var(--content-default)]`,children:e})})}function Ne(e,t){let n=e=>new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(e);return e>0&&e<.01?`<${n(.01)}`:n(e)}var q=new Intl.NumberFormat(`en-US`);function J({label:e,value:t}){return(0,W.jsxs)(`div`,{className:`flex items-baseline gap-1`,"data-usage-stat":e.toLowerCase(),children:[(0,W.jsx)(a,{variant:`label-small-default`,className:`text-[var(--content-tertiary)]`,children:e}),(0,W.jsx)(a,{variant:`body-small-default`,className:`text-[var(--content-secondary)] tabular-nums`,children:t})]})}function Pe({entry:e}){let{inputTokens:t,outputTokens:n,costAmount:r,costCurrency:i}=e;if(t===void 0&&n===void 0)return null;let a=t??0,o=n??0,s=r!=null&&i!=null;return(0,W.jsxs)(`div`,{className:`flex items-center gap-3`,"data-testid":`acp-usage-meter`,children:[(0,W.jsx)(J,{label:`Input`,value:q.format(a)}),(0,W.jsx)(J,{label:`Output`,value:q.format(o)}),s&&(0,W.jsx)(J,{label:`Cost`,value:Ne(r,i)})]})}function Fe({content:e,assistantId:t}){return(0,W.jsx)(`div`,{"data-testid":`acp-chat-command-output`,className:`rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] p-3 [&_pre]:!max-h-none`,children:(0,W.jsx)(C,{content:V(e),hardLineBreaks:!0,assistantId:t})})}var Y=2e3;function X(e){if(e===``)return[];let t=e.split(`
4
4
  `);return e.endsWith(`
@@ -1 +1 @@
1
- import{n as e,t}from"./create-selectors-DBgi9gD3.js";import{t as n}from"./by-tool-use-id-index-xzJzBHo0.js";import{a as r,i,n as a,r as o,t as s}from"./optimistic-lifecycle-y2tCk6TM.js";function c(e){return e===`initializing`||e===`running`}function l(e){switch(e){case`completed`:return`var(--system-positive-strong)`;case`failed`:case`cancelled`:return`var(--system-negative-strong)`;default:return`var(--primary-base)`}}function u(e){switch(e){case`initializing`:return`Initializing`;case`running`:return`Running`;case`completed`:return`Completed`;case`failed`:return`Failed`;case`cancelled`:return`Cancelled`;default:return`Unknown`}}function d(e,t){return e===`completed`&&t===`cancelled`?{label:`Cancelled`,color:`var(--system-mid-strong)`}:{label:u(e),color:l(e)}}var f=`↻ Steering: `,p=`local-marker-`,m={byId:{},orderedIds:[],byToolUseId:new Map,highWaterMark:new Map};function h(e,t){return[...e,t]}function g(e,t){let n=new Map,r=[];for(let i of[...e,...t]){if(typeof i.seq!=`number`){r.push(i);continue}n.has(i.seq)||n.set(i.seq,i)}let i=Array.from(n.values()).sort((e,t)=>(e.seq??0)-(t.seq??0));return r.length?[...i,...r]:i}function _(e,t){let n=g(e.events,t.events),r=i(e.status,t.status,c);return{...e,events:n,status:r,stopReason:t.stopReason??e.stopReason,error:t.error??e.error,completedAt:t.completedAt??e.completedAt,usedTokens:t.usedTokens||e.usedTokens,contextSize:t.contextSize||e.contextSize,inputTokens:t.inputTokens??e.inputTokens,outputTokens:t.outputTokens??e.outputTokens,costAmount:t.costAmount??e.costAmount,costCurrency:t.costCurrency??e.costCurrency,task:e.task??t.task,parentToolUseId:e.parentToolUseId??t.parentToolUseId}}function v(e,t,n){if(typeof n!=`number`)return e;let r=e.get(t);return r!==void 0&&r>=n?e:new Map(e).set(t,n)}function y(e,t){return{getStatus:e=>e.status,isActive:c,cancelledStatus:`cancelled`,applyCancel:t=>({...t,status:`cancelled`,completedAt:e}),applyRestore:(e,t)=>({...e,status:t,completedAt:void 0}),applyRetire:n=>({...n,status:`cancelled`,stopReason:t,completedAt:e})}}var b=t(e()((e,t)=>({...m,spawnRun:r=>{let{byId:i,orderedIds:a,byToolUseId:o}=t(),s=i[r.acpSessionId];if(s){if(c(s.status))return;let t={...s,status:`running`,stopReason:void 0,error:void 0,completedAt:void 0,task:s.task??r.task,parentToolUseId:s.parentToolUseId??r.parentToolUseId},a=s.parentToolUseId?o:n(o,r.parentToolUseId,r.acpSessionId);e({byId:{...i,[r.acpSessionId]:t},byToolUseId:a});return}let l={acpSessionId:r.acpSessionId,agent:r.agent,parentConversationId:r.parentConversationId,task:r.task,status:`running`,startedAt:r.startedAt,parentToolUseId:r.parentToolUseId,usedTokens:0,contextSize:0,events:[]},u=n(o,r.parentToolUseId,r.acpSessionId);e({byId:{...i,[r.acpSessionId]:l},orderedIds:[...a,r.acpSessionId],byToolUseId:u})},receiveEvent:n=>{let{byId:r,highWaterMark:i}=t(),a=r[n.acpSessionId];a&&e({byId:{...r,[n.acpSessionId]:{...a,events:h(a.events,n.event)}},highWaterMark:v(i,n.acpSessionId,n.event.seq)})},appendLocalMarker:n=>{let{byId:r}=t(),i=r[n.acpSessionId];if(!i)return null;let a=i.events.reduce((e,t)=>typeof t.seq==`number`&&t.seq>e?t.seq:e,0),o=`${p}${i.events.length}`,s={seq:a+.5,updateType:`agent_message_chunk`,messageId:o,content:n.content};return e({byId:{...r,[n.acpSessionId]:{...i,events:[...i.events,s]}}}),o},removeLocalMarker:n=>{let{byId:r}=t(),i=r[n.acpSessionId];if(!i)return;let a=i.events.filter(e=>e.messageId!==n.markerId);a.length!==i.events.length&&e({byId:{...r,[n.acpSessionId]:{...i,events:a}}})},setTerminal:n=>{let{byId:r}=t(),i=r[n.acpSessionId];i&&e({byId:{...r,[n.acpSessionId]:{...i,status:n.status,stopReason:n.stopReason??i.stopReason,error:n.error??i.error,completedAt:n.completedAt}}})},cancelRun:n=>{let{byId:r}=t(),i=s(r[n.acpSessionId],y(n.completedAt));i&&e({byId:{...r,[n.acpSessionId]:i}})},restoreRunStatus:n=>{let{byId:r}=t(),i=a(r[n.acpSessionId],n.status,y());i&&e({byId:{...r,[n.acpSessionId]:i}})},retireMissingRuns:n=>{let{byId:r}=t(),i=y(n.completedAt,`daemon_restarted`),a=!1,s={...r};for(let e of n.acpSessionIds){let t=o(s[e],i);t&&(s[e]=t,a=!0)}a&&e({byId:s})},updateUsage:n=>{let{byId:r}=t(),i=r[n.acpSessionId];i&&e({byId:{...r,[n.acpSessionId]:{...i,usedTokens:n.usedTokens,contextSize:n.contextSize,inputTokens:n.inputTokens??i.inputTokens,outputTokens:n.outputTokens??i.outputTokens,costAmount:n.costAmount??i.costAmount,costCurrency:n.costCurrency??i.costCurrency}}})},seedFromHistory:i=>{let{byId:a,orderedIds:o,byToolUseId:s,highWaterMark:c}=t(),{byId:l,orderedIds:u}=r({entries:i,byId:a,orderedIds:o,idOf:e=>e.acpSessionId,merge:_}),d=s,f=c;for(let e of i){d=n(d,e.parentToolUseId,e.acpSessionId);for(let t of l[e.acpSessionId].events)typeof t.seq==`number`&&(f=v(f,e.acpSessionId,t.seq))}e({byId:l,orderedIds:u,byToolUseId:d,highWaterMark:f})},reset:()=>e({byId:{},orderedIds:[],byToolUseId:new Map,highWaterMark:new Map})})));export{c as a,d as i,f as n,b as r,p as t};
1
+ import{n as e,t}from"./create-selectors-BiwSQ06u.js";import{t as n}from"./by-tool-use-id-index-DxDmG0lS.js";import{a as r,i,n as a,r as o,t as s}from"./optimistic-lifecycle-sRH5zmVf.js";function c(e){return e===`initializing`||e===`running`}function l(e){switch(e){case`completed`:return`var(--system-positive-strong)`;case`failed`:case`cancelled`:return`var(--system-negative-strong)`;default:return`var(--primary-base)`}}function u(e){switch(e){case`initializing`:return`Initializing`;case`running`:return`Running`;case`completed`:return`Completed`;case`failed`:return`Failed`;case`cancelled`:return`Cancelled`;default:return`Unknown`}}function d(e,t){return e===`completed`&&t===`cancelled`?{label:`Cancelled`,color:`var(--system-mid-strong)`}:{label:u(e),color:l(e)}}var f=`↻ Steering: `,p=`local-marker-`,m={byId:{},orderedIds:[],byToolUseId:new Map,highWaterMark:new Map};function h(e,t){return[...e,t]}function g(e,t){let n=new Map,r=[];for(let i of[...e,...t]){if(typeof i.seq!=`number`){r.push(i);continue}n.has(i.seq)||n.set(i.seq,i)}let i=Array.from(n.values()).sort((e,t)=>(e.seq??0)-(t.seq??0));return r.length?[...i,...r]:i}function _(e,t){let n=g(e.events,t.events),r=i(e.status,t.status,c);return{...e,events:n,status:r,stopReason:t.stopReason??e.stopReason,error:t.error??e.error,completedAt:t.completedAt??e.completedAt,usedTokens:t.usedTokens||e.usedTokens,contextSize:t.contextSize||e.contextSize,inputTokens:t.inputTokens??e.inputTokens,outputTokens:t.outputTokens??e.outputTokens,costAmount:t.costAmount??e.costAmount,costCurrency:t.costCurrency??e.costCurrency,task:e.task??t.task,parentToolUseId:e.parentToolUseId??t.parentToolUseId}}function v(e,t,n){if(typeof n!=`number`)return e;let r=e.get(t);return r!==void 0&&r>=n?e:new Map(e).set(t,n)}function y(e,t){return{getStatus:e=>e.status,isActive:c,cancelledStatus:`cancelled`,applyCancel:t=>({...t,status:`cancelled`,completedAt:e}),applyRestore:(e,t)=>({...e,status:t,completedAt:void 0}),applyRetire:n=>({...n,status:`cancelled`,stopReason:t,completedAt:e})}}var b=t(e()((e,t)=>({...m,spawnRun:r=>{let{byId:i,orderedIds:a,byToolUseId:o}=t(),s=i[r.acpSessionId];if(s){if(c(s.status))return;let t={...s,status:`running`,stopReason:void 0,error:void 0,completedAt:void 0,task:s.task??r.task,parentToolUseId:s.parentToolUseId??r.parentToolUseId},a=s.parentToolUseId?o:n(o,r.parentToolUseId,r.acpSessionId);e({byId:{...i,[r.acpSessionId]:t},byToolUseId:a});return}let l={acpSessionId:r.acpSessionId,agent:r.agent,parentConversationId:r.parentConversationId,task:r.task,status:`running`,startedAt:r.startedAt,parentToolUseId:r.parentToolUseId,usedTokens:0,contextSize:0,events:[]},u=n(o,r.parentToolUseId,r.acpSessionId);e({byId:{...i,[r.acpSessionId]:l},orderedIds:[...a,r.acpSessionId],byToolUseId:u})},receiveEvent:n=>{let{byId:r,highWaterMark:i}=t(),a=r[n.acpSessionId];a&&e({byId:{...r,[n.acpSessionId]:{...a,events:h(a.events,n.event)}},highWaterMark:v(i,n.acpSessionId,n.event.seq)})},appendLocalMarker:n=>{let{byId:r}=t(),i=r[n.acpSessionId];if(!i)return null;let a=i.events.reduce((e,t)=>typeof t.seq==`number`&&t.seq>e?t.seq:e,0),o=`${p}${i.events.length}`,s={seq:a+.5,updateType:`agent_message_chunk`,messageId:o,content:n.content};return e({byId:{...r,[n.acpSessionId]:{...i,events:[...i.events,s]}}}),o},removeLocalMarker:n=>{let{byId:r}=t(),i=r[n.acpSessionId];if(!i)return;let a=i.events.filter(e=>e.messageId!==n.markerId);a.length!==i.events.length&&e({byId:{...r,[n.acpSessionId]:{...i,events:a}}})},setTerminal:n=>{let{byId:r}=t(),i=r[n.acpSessionId];i&&e({byId:{...r,[n.acpSessionId]:{...i,status:n.status,stopReason:n.stopReason??i.stopReason,error:n.error??i.error,completedAt:n.completedAt}}})},cancelRun:n=>{let{byId:r}=t(),i=s(r[n.acpSessionId],y(n.completedAt));i&&e({byId:{...r,[n.acpSessionId]:i}})},restoreRunStatus:n=>{let{byId:r}=t(),i=a(r[n.acpSessionId],n.status,y());i&&e({byId:{...r,[n.acpSessionId]:i}})},retireMissingRuns:n=>{let{byId:r}=t(),i=y(n.completedAt,`daemon_restarted`),a=!1,s={...r};for(let e of n.acpSessionIds){let t=o(s[e],i);t&&(s[e]=t,a=!0)}a&&e({byId:s})},updateUsage:n=>{let{byId:r}=t(),i=r[n.acpSessionId];i&&e({byId:{...r,[n.acpSessionId]:{...i,usedTokens:n.usedTokens,contextSize:n.contextSize,inputTokens:n.inputTokens??i.inputTokens,outputTokens:n.outputTokens??i.outputTokens,costAmount:n.costAmount??i.costAmount,costCurrency:n.costCurrency??i.costCurrency}}})},seedFromHistory:i=>{let{byId:a,orderedIds:o,byToolUseId:s,highWaterMark:c}=t(),{byId:l,orderedIds:u}=r({entries:i,byId:a,orderedIds:o,idOf:e=>e.acpSessionId,merge:_}),d=s,f=c;for(let e of i){d=n(d,e.parentToolUseId,e.acpSessionId);for(let t of l[e.acpSessionId].events)typeof t.seq==`number`&&(f=v(f,e.acpSessionId,t.seq))}e({byId:l,orderedIds:u,byToolUseId:d,highWaterMark:f})},reset:()=>e({byId:{},orderedIds:[],byToolUseId:new Map,highWaterMark:new Map})})));export{c as a,d as i,f as n,b as r,p as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-BENY-yx_.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{t as i}from"./typography-BeUa5Fd-.js";import{m as a,n as o,t as s}from"./message-content-Beh5mR15.js";import{a as c,d as l,f as u,i as d,n as f,r as p,u as m,x as h}from"./multi-activity-group-DFn_MmIL.js";import{t as g}from"./chevron-left-D-pnIQax.js";import"./src-BMRW2yQf.js";import{t as _}from"./chat-markdown-message-hc0CFGBS.js";import{t as v}from"./workflow-store-D0DBQy44.js";import{t as y}from"./background-task-store-B1MUU_bh.js";import{r as b}from"./acp-run-store-DAOLku4B.js";import{a as x,g as S,i as C,n as w,r as T,s as E,w as D,x as O}from"./site-favicon-B5ilr8wL.js";import{t as k}from"./detail-shell-rL601Rqo.js";import{t as A}from"./use-transcript-message-by-id-CFToiLxW.js";import{ToolDetailBody as j,t as M}from"./tool-detail-panel-lyfh5reN.js";var N=e(t(),1);function P(e,t,n){let r=l(t,n.workflow),i=e=>{let t=h(e,n.workflow.byToolUseId);if(t!==null&&r.has(t))return!0;let i=m(e,n.acpByToolUseId);if(i!==null&&n.acpById[i]!==void 0)return!0;let a=u(e);return a!==void 0&&n.backgroundTaskById[a]!==void 0},a=t.filter(e=>!i(e));if(a.length===t.length)return{items:e,toolCalls:t};let o=new Set(a.map(e=>e.id));return{items:e.filter(e=>e.kind!==`toolCall`||o.has(e.toolCall.id)),toolCalls:a}}function F(e,t){let n=A(e),r=v.use.byId(),i=v.use.byToolUseId(),a=v.use.notFoundRunIds(),c=v.use.hydrationFailedRunIds(),l=b.use.byId(),u=b.use.byToolUseId(),d=y.use.byId();return(0,N.useMemo)(()=>{if(!n||t==null)return null;let e=o(n.contentBlocks??[],{splitInlineThinking:n.role!==`user`})[t];if(!e||e.type!==`activity`)return null;let{cardItems:f,toolCalls:p}=s(e.items);return P(f,p,{workflow:{byId:r,byToolUseId:i,notFoundRunIds:a,hydrationFailedRunIds:c},acpById:l,acpByToolUseId:u,backgroundTaskById:d})},[n,t,r,i,a,c,l,u,d])}var I=r(),L=60;function R({payload:e,onClose:t,assistantId:r}){let[a,o]=(0,N.useState)(null),s=F(e.messageId,e.groupIndex),l=s?.items??e.items,u=s?.toolCalls??e.toolCalls,m=c(l),h=p(m.steps),_=d(m.state,m.steps),v=_===`loading`,y=f(_,m.totalDurationLabel??``,h.failed),b=v&&m.currentStepTitle||y,x=new Map(u.map(e=>[e.id,e])),C=a?a.kind===`thinking`?`Thinking`:a.activity||a.title:``;return(0,I.jsx)(k,{titleNode:a?(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 py-0.5`,children:[(0,I.jsx)(n,{variant:`ghost`,iconOnly:(0,I.jsx)(g,{}),"aria-label":`Back to all steps`,tooltip:`All steps`,onClick:()=>o(null),className:`-ml-2.5 shrink-0`}),(0,I.jsx)(i,{variant:`title-medium`,className:`min-w-0 shrink truncate leading-snug text-[var(--content-default)]`,children:C})]}):(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 py-0.5`,children:[(0,I.jsx)(i,{variant:`title-medium`,className:`min-w-0 shrink truncate leading-snug text-[var(--content-default)]`,children:v?(0,I.jsx)(S,{children:b}):b}),m.stepCount?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{"aria-hidden":!0,className:`size-[3px] shrink-0 rounded-full bg-[var(--content-tertiary)]`}),(0,I.jsx)(i,{variant:`title-medium`,className:`shrink-0 whitespace-nowrap leading-snug text-[var(--content-secondary)]`,children:m.stepCount})]}):null]}),closeLabel:`Close steps`,onClose:t,children:a?(0,I.jsx)(B,{detail:a,assistantId:r}):(0,I.jsx)(E,{steps:m.steps,timeline:!0,renderStep:t=>(0,I.jsx)(z,{step:t,activeDetail:a,onOpenDetail:o,lookupToolCall:e=>x.get(e),messageId:e.messageId,groupIndex:e.groupIndex})})})}function z({step:e,activeDetail:t,onOpenDetail:n,lookupToolCall:r,messageId:i,groupIndex:o}){if(e.kind===`thinking`){let t=i!=null&&e.thinkingItemIndex!=null?{messageId:i,thinkingGroupIndex:o,thinkingItemIndex:e.thinkingItemIndex}:{};return(0,I.jsx)(C,{iconName:`brain`,label:a(D(e.text),L),ariaLabel:`View thinking`,active:!1,onClick:()=>n({kind:`thinking`,toolCallId:``,toolName:``,title:`Thinking`,activity:``,input:{},status:`completed`,thinkingText:e.text,...t})})}if(e.kind===`web_search`)return(0,I.jsx)(T,{step:e});if(e.kind===`web_search_error`)return(0,I.jsx)(w,{step:e});if(e.kind!==`tool`)return(0,I.jsx)(x,{step:e});let s=r(e.toolCallId);return(0,I.jsx)(C,{iconName:e.iconName,label:e.activity||e.info||e.title,active:t?.toolCallId===e.toolCallId,onClick:()=>{s&&n(O(s))}})}function B({detail:e,assistantId:t}){let n=M(e.kind===`thinking`?e.messageId:void 0,e.thinkingGroupIndex,e.thinkingItemIndex);return(0,I.jsx)(`div`,{className:`flex flex-col gap-4`,children:e.kind===`thinking`?(0,I.jsx)(_,{content:n??e.thinkingText??``,hardLineBreaks:!0,assistantId:t}):(0,I.jsx)(j,{detail:e})})}export{R as ActivityStepsPanel};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-BENY-yx_.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{t as i}from"./typography-BeUa5Fd-.js";import{m as a,n as o,t as s}from"./message-content-BeZU6aXb.js";import{a as c,d as l,f as u,i as d,n as f,r as p,u as m,x as h}from"./multi-activity-group-jhAkq0gu.js";import{t as g}from"./chevron-left-D-pnIQax.js";import"./src-ChRrrEkW.js";import{t as _}from"./chat-markdown-message-DY1kKw31.js";import{t as v}from"./workflow-store-DrBICjxP.js";import{t as y}from"./background-task-store-CVOHl9CG.js";import{r as b}from"./acp-run-store-CH22VLgw.js";import{a as x,g as S,i as C,n as w,r as T,s as E,w as D,x as O}from"./site-favicon-DTc3BKU4.js";import{t as k}from"./detail-shell-CDNt1a2M.js";import{t as A}from"./use-transcript-message-by-id-DqjWqoVB.js";import{ToolDetailBody as j,t as M}from"./tool-detail-panel-CCXUfcwe.js";var N=e(t(),1);function P(e,t,n){let r=l(t,n.workflow),i=e=>{let t=h(e,n.workflow.byToolUseId);if(t!==null&&r.has(t))return!0;let i=m(e,n.acpByToolUseId);if(i!==null&&n.acpById[i]!==void 0)return!0;let a=u(e);return a!==void 0&&n.backgroundTaskById[a]!==void 0},a=t.filter(e=>!i(e));if(a.length===t.length)return{items:e,toolCalls:t};let o=new Set(a.map(e=>e.id));return{items:e.filter(e=>e.kind!==`toolCall`||o.has(e.toolCall.id)),toolCalls:a}}function F(e,t){let n=A(e),r=v.use.byId(),i=v.use.byToolUseId(),a=v.use.notFoundRunIds(),c=v.use.hydrationFailedRunIds(),l=b.use.byId(),u=b.use.byToolUseId(),d=y.use.byId();return(0,N.useMemo)(()=>{if(!n||t==null)return null;let e=o(n.contentBlocks??[],{splitInlineThinking:n.role!==`user`})[t];if(!e||e.type!==`activity`)return null;let{cardItems:f,toolCalls:p}=s(e.items);return P(f,p,{workflow:{byId:r,byToolUseId:i,notFoundRunIds:a,hydrationFailedRunIds:c},acpById:l,acpByToolUseId:u,backgroundTaskById:d})},[n,t,r,i,a,c,l,u,d])}var I=r(),L=60;function R({payload:e,onClose:t,assistantId:r}){let[a,o]=(0,N.useState)(null),s=F(e.messageId,e.groupIndex),l=s?.items??e.items,u=s?.toolCalls??e.toolCalls,m=c(l),h=p(m.steps),_=d(m.state,m.steps),v=_===`loading`,y=f(_,m.totalDurationLabel??``,h.failed),b=v&&m.currentStepTitle||y,x=new Map(u.map(e=>[e.id,e])),C=a?a.kind===`thinking`?`Thinking`:a.activity||a.title:``;return(0,I.jsx)(k,{titleNode:a?(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 py-0.5`,children:[(0,I.jsx)(n,{variant:`ghost`,iconOnly:(0,I.jsx)(g,{}),"aria-label":`Back to all steps`,tooltip:`All steps`,onClick:()=>o(null),className:`-ml-2.5 shrink-0`}),(0,I.jsx)(i,{variant:`title-medium`,className:`min-w-0 shrink truncate leading-snug text-[var(--content-default)]`,children:C})]}):(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 py-0.5`,children:[(0,I.jsx)(i,{variant:`title-medium`,className:`min-w-0 shrink truncate leading-snug text-[var(--content-default)]`,children:v?(0,I.jsx)(S,{children:b}):b}),m.stepCount?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{"aria-hidden":!0,className:`size-[3px] shrink-0 rounded-full bg-[var(--content-tertiary)]`}),(0,I.jsx)(i,{variant:`title-medium`,className:`shrink-0 whitespace-nowrap leading-snug text-[var(--content-secondary)]`,children:m.stepCount})]}):null]}),closeLabel:`Close steps`,onClose:t,children:a?(0,I.jsx)(B,{detail:a,assistantId:r}):(0,I.jsx)(E,{steps:m.steps,timeline:!0,renderStep:t=>(0,I.jsx)(z,{step:t,activeDetail:a,onOpenDetail:o,lookupToolCall:e=>x.get(e),messageId:e.messageId,groupIndex:e.groupIndex})})})}function z({step:e,activeDetail:t,onOpenDetail:n,lookupToolCall:r,messageId:i,groupIndex:o}){if(e.kind===`thinking`){let t=i!=null&&e.thinkingItemIndex!=null?{messageId:i,thinkingGroupIndex:o,thinkingItemIndex:e.thinkingItemIndex}:{};return(0,I.jsx)(C,{iconName:`brain`,label:a(D(e.text),L),ariaLabel:`View thinking`,active:!1,onClick:()=>n({kind:`thinking`,toolCallId:``,toolName:``,title:`Thinking`,activity:``,input:{},status:`completed`,thinkingText:e.text,...t})})}if(e.kind===`web_search`)return(0,I.jsx)(T,{step:e});if(e.kind===`web_search_error`)return(0,I.jsx)(w,{step:e});if(e.kind!==`tool`)return(0,I.jsx)(x,{step:e});let s=r(e.toolCallId);return(0,I.jsx)(C,{iconName:e.iconName,label:e.activity||e.info||e.title,active:t?.toolCallId===e.toolCallId,onClick:()=>{s&&n(O(s))}})}function B({detail:e,assistantId:t}){let n=M(e.kind===`thinking`?e.messageId:void 0,e.thinkingGroupIndex,e.thinkingItemIndex);return(0,I.jsx)(`div`,{className:`flex flex-col gap-4`,children:e.kind===`thinking`?(0,I.jsx)(_,{content:n??e.thinkingText??``,hardLineBreaks:!0,assistantId:t}):(0,I.jsx)(j,{detail:e})})}export{R as ActivityStepsPanel};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-BENY-yx_.js";import{n as r}from"./QueryClientProvider-CMu7CkQU.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{t as a}from"./key-round-B-C1Qgxd.js";import{t as o}from"./loader-circle-DOtGXcds.js";import{t as s}from"./input-DmHXRXaB.js";import{t as c}from"./modal-DI63s9MQ.js";import{n as l}from"./toast-BpuLSxyt.js";import{en as u}from"./react-query.gen-DxjuNs-5.js";import{t as d}from"./use-active-assistant-id-BvHP5Ojg.js";var f=e(t(),1),p=i();function m(e){return[`credentials-list`,e]}function h({open:e,onClose:t,onSaved:i,initialValues:h,successToastMessage:g=`Credential saved.`}){let _=d(),v=r(),[y,b]=(0,f.useState)(h?.service??``),[x,S]=(0,f.useState)(h?.field??``),[C,w]=(0,f.useState)(h?.value??``),[T,E]=(0,f.useState)(h?.label??``),D=(0,f.useRef)(h);(0,f.useLayoutEffect)(()=>{D.current=h},[h]),(0,f.useEffect)(()=>{if(e){let e=D.current;b(e?.service??``),S(e?.field??``),w(e?.value??``),E(e?.label??``)}},[e]);let O=u({onError:e=>{l.error(e.message||`Failed to save credential`)}}),k=O.isPending,A=()=>{b(``),S(``),w(``),E(``),t()};return(0,p.jsx)(c.Root,{open:e,onOpenChange:e=>{!e&&!k&&A()},children:(0,p.jsx)(c.Content,{size:`sm`,children:(0,p.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let t=y.trim(),n=x.trim();if(!t||!n||!C.trim())return;let r=T.trim()||void 0;O.mutate({path:{assistant_id:_},body:{service:t,field:n,value:C,label:r}},{onSuccess:()=>{v.invalidateQueries({queryKey:m(_)}),l.success(g),i?.({service:t,field:n,label:r}),A()}})},children:[(0,p.jsxs)(c.Header,{children:[(0,p.jsx)(c.Title,{icon:a,children:`Add credential`}),(0,p.jsx)(c.Description,{children:`Add an API key or token to let tools and integrations use it.`})]}),(0,p.jsxs)(c.Body,{className:`flex flex-col gap-3`,children:[(0,p.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row`,children:[(0,p.jsx)(s,{label:`Service`,type:`text`,value:y,onChange:e=>b(e.target.value),placeholder:`e.g. github`,autoFocus:!0,fullWidth:!0}),(0,p.jsx)(s,{label:`Field`,type:`text`,value:x,onChange:e=>S(e.target.value),placeholder:`e.g. api_token`,fullWidth:!0})]}),(0,p.jsx)(s,{label:`Value`,type:`password`,value:C,onChange:e=>w(e.target.value),placeholder:`Enter the secret value`,fullWidth:!0}),(0,p.jsx)(s,{label:`Label (optional)`,type:`text`,value:T,onChange:e=>E(e.target.value),placeholder:`e.g. GitHub personal access token`,fullWidth:!0})]}),(0,p.jsxs)(c.Footer,{children:[(0,p.jsx)(n,{type:`button`,variant:`outlined`,onClick:A,disabled:k,children:`Cancel`}),(0,p.jsx)(n,{type:`submit`,variant:`primary`,disabled:k||!y.trim()||!x.trim()||!C.trim(),leftIcon:k?(0,p.jsx)(o,{className:`animate-spin`,"aria-hidden":!0}):void 0,children:`Save`})]})]})})})}export{m as n,h as t};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-BENY-yx_.js";import{n as r}from"./QueryClientProvider-CMu7CkQU.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{t as a}from"./key-round-B-C1Qgxd.js";import{t as o}from"./loader-circle-DOtGXcds.js";import{t as s}from"./input-BBRukT0E.js";import{t as c}from"./modal-RvuckaS5.js";import{n as l}from"./toast-CEOMJr4U.js";import{en as u}from"./react-query.gen-DfH8CP-D.js";import{t as d}from"./use-active-assistant-id-DkoTKGju.js";var f=e(t(),1),p=i();function m(e){return[`credentials-list`,e]}function h({open:e,onClose:t,onSaved:i,initialValues:h,successToastMessage:g=`Credential saved.`}){let _=d(),v=r(),[y,b]=(0,f.useState)(h?.service??``),[x,S]=(0,f.useState)(h?.field??``),[C,w]=(0,f.useState)(h?.value??``),[T,E]=(0,f.useState)(h?.label??``),D=(0,f.useRef)(h);(0,f.useLayoutEffect)(()=>{D.current=h},[h]),(0,f.useEffect)(()=>{if(e){let e=D.current;b(e?.service??``),S(e?.field??``),w(e?.value??``),E(e?.label??``)}},[e]);let O=u({onError:e=>{l.error(e.message||`Failed to save credential`)}}),k=O.isPending,A=()=>{b(``),S(``),w(``),E(``),t()};return(0,p.jsx)(c.Root,{open:e,onOpenChange:e=>{!e&&!k&&A()},children:(0,p.jsx)(c.Content,{size:`sm`,children:(0,p.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let t=y.trim(),n=x.trim();if(!t||!n||!C.trim())return;let r=T.trim()||void 0;O.mutate({path:{assistant_id:_},body:{service:t,field:n,value:C,label:r}},{onSuccess:()=>{v.invalidateQueries({queryKey:m(_)}),l.success(g),i?.({service:t,field:n,label:r}),A()}})},children:[(0,p.jsxs)(c.Header,{children:[(0,p.jsx)(c.Title,{icon:a,children:`Add credential`}),(0,p.jsx)(c.Description,{children:`Add an API key or token to let tools and integrations use it.`})]}),(0,p.jsxs)(c.Body,{className:`flex flex-col gap-3`,children:[(0,p.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row`,children:[(0,p.jsx)(s,{label:`Service`,type:`text`,value:y,onChange:e=>b(e.target.value),placeholder:`e.g. github`,autoFocus:!0,fullWidth:!0}),(0,p.jsx)(s,{label:`Field`,type:`text`,value:x,onChange:e=>S(e.target.value),placeholder:`e.g. api_token`,fullWidth:!0})]}),(0,p.jsx)(s,{label:`Value`,type:`password`,value:C,onChange:e=>w(e.target.value),placeholder:`Enter the secret value`,fullWidth:!0}),(0,p.jsx)(s,{label:`Label (optional)`,type:`text`,value:T,onChange:e=>E(e.target.value),placeholder:`e.g. GitHub personal access token`,fullWidth:!0})]}),(0,p.jsxs)(c.Footer,{children:[(0,p.jsx)(n,{type:`button`,variant:`outlined`,onClick:A,disabled:k,children:`Cancel`}),(0,p.jsx)(n,{type:`submit`,variant:`primary`,disabled:k||!y.trim()||!x.trim()||!C.trim(),leftIcon:k?(0,p.jsx)(o,{className:`animate-spin`,"aria-hidden":!0}):void 0,children:`Save`})]})]})})})}export{m as n,h as t};
@@ -1 +1 @@
1
- import{o as e,r as t}from"./chunk-jRWAZmH_.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-BENY-yx_.js";import{h as i,t as a,u as o}from"./chunk-5KNZJZUH-BUqIilZr.js";import{n as s}from"./QueryClientProvider-CMu7CkQU.js";import{t as c}from"./useQuery-Bz-fbQ-m.js";import{t as l}from"./useMutation-CXGTrp4W.js";import{t as u}from"./jsx-runtime-D3ZM-ToX.js";import{t as d}from"./chevron-right-DBGgpEiZ.js";import{t as f}from"./circle-alert-De9q5FVd.js";import{t as p}from"./loader-circle-DOtGXcds.js";import{t as m}from"./modal-DI63s9MQ.js";import{t as h}from"./select-B8-i-CZ4.js";import{f as g}from"./platform-detection-C_TK32Dw.js";import{d as _}from"./routes-iipg2wkc.js";import{n as v,r as y}from"./browser-RCTP76Hm.js";import{ht as b,pt as x}from"./react-query.gen-DKb3mEwJ.js";import{t as S}from"./android-consumption-only-BkXIkXls.js";var C=t({AddCreditsModal:()=>A}),w=e(n(),1),T=u(),E=[`10.00`,`20.00`,`30.00`,`40.00`,`50.00`,`60.00`,`70.00`,`80.00`,`90.00`,`100.00`];function D(e){let t=parseFloat(e);if(Number.isNaN(t))return`0 credits`;let n=t.toLocaleString(`en-US`,{minimumFractionDigits:2,maximumFractionDigits:2});return`${n.endsWith(`.00`)?n.slice(0,-3):n} credits`}function O(e){if(e&&typeof e==`object`){let t=e.amount;if(Array.isArray(t)&&typeof t[0]==`string`)return t[0]}return`Failed to create checkout session. Please try again.`}function k({open:e,onOpenChange:t}){let n=s(),{pathname:u}=o(),[g]=i(),S=g.toString()?`${u}?${g.toString()}`:u,{data:C,isLoading:k}=c(x()),A=C?.allowed_top_up_amounts?.length?C.allowed_top_up_amounts:E,[j,M]=(0,w.useState)(null),N=j&&A.includes(j)?j:A[0]??E[0],P=l(b());return(0,w.useEffect)(()=>y(()=>{t(!1),n.invalidateQueries(x())}),[t,n]),(0,T.jsx)(m.Root,{open:e,onOpenChange:t,children:(0,T.jsxs)(m.Content,{size:`sm`,children:[(0,T.jsxs)(m.Header,{children:[(0,T.jsx)(m.Title,{children:`Add Credits`}),(0,T.jsx)(m.Description,{children:`You'll be redirected to Stripe to complete the payment.`})]}),(0,T.jsx)(m.Body,{children:(0,T.jsxs)(`div`,{className:`space-y-4`,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`label`,{htmlFor:`add-credits-amount`,className:`block text-body-small-default text-[var(--content-tertiary)]`,children:`Amount`}),(0,T.jsx)(h,{id:`add-credits-amount`,value:N,onChange:e=>{M(e),P.isError&&P.reset()},disabled:k||!C,options:A.map(e=>({value:e,label:D(e)}))})]}),P.isError&&(0,T.jsxs)(`div`,{className:`flex items-center gap-2 text-body-small-default text-[var(--system-negative-strong)]`,children:[(0,T.jsx)(f,{className:`h-3.5 w-3.5 shrink-0`}),O(P.error)]}),(0,T.jsxs)(a,{to:_.settings.usageBillingConfigureTopUps,className:`flex items-center gap-1 text-body-small-default text-[var(--content-tertiary)] hover:text-[var(--content-secondary)]`,onClick:()=>t(!1),children:[`Configure Automatic Top-Ups`,(0,T.jsx)(d,{className:`size-4`})]}),(0,T.jsx)(`div`,{className:`h-px w-full bg-[var(--border-subtle)]`})]})}),(0,T.jsxs)(m.Footer,{children:[(0,T.jsx)(m.Close,{asChild:!0,children:(0,T.jsx)(r,{variant:`outlined`,children:`Cancel`})}),(0,T.jsx)(r,{variant:`primary`,leftIcon:P.isPending?(0,T.jsx)(p,{className:`animate-spin`}):void 0,onClick:()=>{P.isPending||P.mutate({body:{amount:N,return_path:S}},{onSuccess:e=>{v(e.checkout_url)}})},disabled:P.isPending||k||!C,children:`Continue`})]})]})})}function A(e){return g()?(0,T.jsx)(m.Root,{open:e.open,onOpenChange:e.onOpenChange,children:(0,T.jsxs)(m.Content,{size:`sm`,children:[(0,T.jsxs)(m.Header,{children:[(0,T.jsx)(m.Title,{children:`Billing`}),(0,T.jsx)(m.Description,{children:S})]}),(0,T.jsx)(m.Footer,{children:(0,T.jsx)(m.Close,{asChild:!0,children:(0,T.jsx)(r,{variant:`outlined`,children:`Close`})})})]})}):(0,T.jsx)(k,{...e})}export{C as n,A as t};
1
+ import{o as e,r as t}from"./chunk-jRWAZmH_.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-BENY-yx_.js";import{h as i,t as a,u as o}from"./chunk-5KNZJZUH-BUqIilZr.js";import{n as s}from"./QueryClientProvider-CMu7CkQU.js";import{t as c}from"./useQuery-Bz-fbQ-m.js";import{t as l}from"./useMutation-CXGTrp4W.js";import{t as u}from"./jsx-runtime-D3ZM-ToX.js";import{t as d}from"./chevron-right-DBGgpEiZ.js";import{t as f}from"./circle-alert-De9q5FVd.js";import{t as p}from"./loader-circle-DOtGXcds.js";import{t as m}from"./modal-RvuckaS5.js";import{t as h}from"./select-DLhMJTau.js";import{f as g}from"./platform-detection-CC6UYgBe.js";import{d as _}from"./routes-CuLukUZB.js";import{n as v,r as y}from"./browser-Ccs48f8E.js";import{ht as b,pt as x}from"./react-query.gen-DAG3-aXW.js";import{t as S}from"./android-consumption-only-2v7d1ft4.js";var C=t({AddCreditsModal:()=>A}),w=e(n(),1),T=u(),E=[`10.00`,`20.00`,`30.00`,`40.00`,`50.00`,`60.00`,`70.00`,`80.00`,`90.00`,`100.00`];function D(e){let t=parseFloat(e);if(Number.isNaN(t))return`0 credits`;let n=t.toLocaleString(`en-US`,{minimumFractionDigits:2,maximumFractionDigits:2});return`${n.endsWith(`.00`)?n.slice(0,-3):n} credits`}function O(e){if(e&&typeof e==`object`){let t=e.amount;if(Array.isArray(t)&&typeof t[0]==`string`)return t[0]}return`Failed to create checkout session. Please try again.`}function k({open:e,onOpenChange:t}){let n=s(),{pathname:u}=o(),[g]=i(),S=g.toString()?`${u}?${g.toString()}`:u,{data:C,isLoading:k}=c(x()),A=C?.allowed_top_up_amounts?.length?C.allowed_top_up_amounts:E,[j,M]=(0,w.useState)(null),N=j&&A.includes(j)?j:A[0]??E[0],P=l(b());return(0,w.useEffect)(()=>y(()=>{t(!1),n.invalidateQueries(x())}),[t,n]),(0,T.jsx)(m.Root,{open:e,onOpenChange:t,children:(0,T.jsxs)(m.Content,{size:`sm`,children:[(0,T.jsxs)(m.Header,{children:[(0,T.jsx)(m.Title,{children:`Add Credits`}),(0,T.jsx)(m.Description,{children:`You'll be redirected to Stripe to complete the payment.`})]}),(0,T.jsx)(m.Body,{children:(0,T.jsxs)(`div`,{className:`space-y-4`,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`label`,{htmlFor:`add-credits-amount`,className:`block text-body-small-default text-[var(--content-tertiary)]`,children:`Amount`}),(0,T.jsx)(h,{id:`add-credits-amount`,value:N,onChange:e=>{M(e),P.isError&&P.reset()},disabled:k||!C,options:A.map(e=>({value:e,label:D(e)}))})]}),P.isError&&(0,T.jsxs)(`div`,{className:`flex items-center gap-2 text-body-small-default text-[var(--system-negative-strong)]`,children:[(0,T.jsx)(f,{className:`h-3.5 w-3.5 shrink-0`}),O(P.error)]}),(0,T.jsxs)(a,{to:_.settings.usageBillingConfigureTopUps,className:`flex items-center gap-1 text-body-small-default text-[var(--content-tertiary)] hover:text-[var(--content-secondary)]`,onClick:()=>t(!1),children:[`Configure Automatic Top-Ups`,(0,T.jsx)(d,{className:`size-4`})]}),(0,T.jsx)(`div`,{className:`h-px w-full bg-[var(--border-subtle)]`})]})}),(0,T.jsxs)(m.Footer,{children:[(0,T.jsx)(m.Close,{asChild:!0,children:(0,T.jsx)(r,{variant:`outlined`,children:`Cancel`})}),(0,T.jsx)(r,{variant:`primary`,leftIcon:P.isPending?(0,T.jsx)(p,{className:`animate-spin`}):void 0,onClick:()=>{P.isPending||P.mutate({body:{amount:N,return_path:S}},{onSuccess:e=>{v(e.checkout_url)}})},disabled:P.isPending||k||!C,children:`Continue`})]})]})})}function A(e){return g()?(0,T.jsx)(m.Root,{open:e.open,onOpenChange:e.onOpenChange,children:(0,T.jsxs)(m.Content,{size:`sm`,children:[(0,T.jsxs)(m.Header,{children:[(0,T.jsx)(m.Title,{children:`Billing`}),(0,T.jsx)(m.Description,{children:S})]}),(0,T.jsx)(m.Footer,{children:(0,T.jsx)(m.Close,{asChild:!0,children:(0,T.jsx)(r,{variant:`outlined`,children:`Close`})})})]})}):(0,T.jsx)(k,{...e})}export{C as n,A as t};