@vellumai/web 0.10.1-staging.2 → 0.10.1-staging.4

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 (170) hide show
  1. package/dist/assets/{about-page-CW4mH7w7.js → about-page-B-yNJBih.js} +1 -1
  2. package/dist/assets/{account-page-va3jsKG3.js → account-page-CHiDb1yX.js} +1 -1
  3. package/dist/assets/{add-credits-modal-BJQfpHmv.js → add-credits-modal-GSsxaybq.js} +1 -1
  4. package/dist/assets/{advanced-page-BQEEMqUJ.js → advanced-page-9dJbjOiT.js} +1 -1
  5. package/dist/assets/ai-page-Du6k7XV_.js +1 -0
  6. package/dist/assets/api-CjVG_nMi.js +1 -0
  7. package/dist/assets/{api-key-screen-D3pD0rPG.js → api-key-screen-BBajxzG8.js} +1 -1
  8. package/dist/assets/{archive-D-fnxeQf.js → archive-BFILUl9x.js} +1 -1
  9. package/dist/assets/{archive-page-CDaGKTY2.js → archive-page-DDar_tND.js} +1 -1
  10. package/dist/assets/arrow-left-CP-EhDNF.js +1 -0
  11. package/dist/assets/arrow-up-nBfZxfhi.js +1 -0
  12. package/dist/assets/assistant-api-BX_B1xSC.js +1 -0
  13. package/dist/assets/{assistant-status-panel-Byd6c2GD.js → assistant-status-panel-CFhkAfJY.js} +1 -1
  14. package/dist/assets/auth-store-CbVvQiBR.js +7 -0
  15. package/dist/assets/ban-BpBuRCKI.js +1 -0
  16. package/dist/assets/{bell-tEVVOFRL.js → bell-DB1SrBre.js} +1 -1
  17. package/dist/assets/{billing-page-GeeUd8nR.js → billing-page-BByuYpJa.js} +1 -1
  18. package/dist/assets/{bookmark-Bw04OiC7.js → bookmark-C8arQ3wm.js} +1 -1
  19. package/dist/assets/{bookmarks-page-vJb4HXNp.js → bookmarks-page-DyjSZPPW.js} +1 -1
  20. package/dist/assets/{bug-Dyqld0Aa.js → bug-BuL3O3_2.js} +1 -1
  21. package/dist/assets/build-state-CMpEWWjf.js +1 -0
  22. package/dist/assets/{cable-CYB4K1nY.js → cable-C0pEWbc5.js} +1 -1
  23. package/dist/assets/{calendar-DUv7hzHD.js → calendar-BCNBN7PC.js} +1 -1
  24. package/dist/assets/{capture-error-CN7ObyIk.js → capture-error-AoUURkgi.js} +1 -1
  25. package/dist/assets/chevron-left-o_oJAd6A.js +1 -0
  26. package/dist/assets/chevron-right-BNHlGCTg.js +1 -0
  27. package/dist/assets/{chevron-up-BT6xIbCo.js → chevron-up-BnW-hcOL.js} +1 -1
  28. package/dist/assets/{circle-alert-D58pfVBz.js → circle-alert-bz1ccYRI.js} +1 -1
  29. package/dist/assets/circle-check-DBzb54Kz.js +1 -0
  30. package/dist/assets/{cloud-off-DfVAWu4D.js → cloud-off-BWmMU3G-.js} +1 -1
  31. package/dist/assets/code-Bju_p7d-.js +1 -0
  32. package/dist/assets/{command-palette-K6nK6F7f.js → command-palette-DJgHXop1.js} +1 -1
  33. package/dist/assets/command-palette-window-page-CSaRzD87.js +1 -0
  34. package/dist/assets/{community-page-UxhAQFV9.js → community-page-BuuYKT7i.js} +1 -1
  35. package/dist/assets/{connect-page-BgPgIb-F.js → connect-page-B0Pym3dJ.js} +1 -1
  36. package/dist/assets/{consent-controls-Bk8etO5C.js → consent-controls-o06cSwWt.js} +1 -1
  37. package/dist/assets/{contacts-gateway-CZMULd7Z.js → contacts-gateway-11r4y5pQ.js} +1 -1
  38. package/dist/assets/{contacts-page-route-CM06poQB.js → contacts-page-route-YQf7Dxxo.js} +1 -1
  39. package/dist/assets/{conversation-queries-Bm61s1He.js → conversation-queries-DF1Lujnm.js} +1 -1
  40. package/dist/assets/{cpu-fIfNq834.js → cpu-DpzMm9_m.js} +1 -1
  41. package/dist/assets/{credit-card-CcU-1-nT.js → credit-card-CN7yFHhB.js} +1 -1
  42. package/dist/assets/{danger-zone-redirect-page-BsyYvQrZ.js → danger-zone-redirect-page-iCmRnyei.js} +1 -1
  43. package/dist/assets/debug-page-CXi6rNhS.js +2 -0
  44. package/dist/assets/{deploy-dialogs-BJI2X201.js → deploy-dialogs-DygUf1og.js} +1 -1
  45. package/dist/assets/{developer-page-9X_iqAuN.js → developer-page-C5desNav.js} +1 -1
  46. package/dist/assets/{devices-page-Byr7kUNa.js → devices-page-mF5RECdQ.js} +1 -1
  47. package/dist/assets/{dictation-overlay-page-CN6yGveG.js → dictation-overlay-page-DL5K7HYW.js} +1 -1
  48. package/dist/assets/{document-viewer-page-CRnBN1cE.js → document-viewer-page-C2oFS1wI.js} +1 -1
  49. package/dist/assets/{dollar-sign-Bi1OUcqU.js → dollar-sign-D_XmiHA-.js} +1 -1
  50. package/dist/assets/{domain-field-BqCbfaBb.js → domain-field-ChoXVdlk.js} +1 -1
  51. package/dist/assets/{earn-credits-modal-DevPS5jN.js → earn-credits-modal-DsuqrJTY.js} +1 -1
  52. package/dist/assets/{emails-page-B0dZDuR-.js → emails-page-Duy9jhr6.js} +1 -1
  53. package/dist/assets/{external-link-CyRCaWBE.js → external-link-DAovIsxF.js} +1 -1
  54. package/dist/assets/{file-editor-DqNMJEa4.js → file-editor-n2sYGdD-.js} +1 -1
  55. package/dist/assets/{general-page-B83wb3Tj.js → general-page-BSdbq26O.js} +1 -1
  56. package/dist/assets/{globe-CiNEZj-J.js → globe-CfKniRIP.js} +1 -1
  57. package/dist/assets/{hard-drive-BbaHN7Gp.js → hard-drive-DggmyfjR.js} +1 -1
  58. package/dist/assets/{hatching-screen-Cok0yK9s.js → hatching-screen-BRgjqSLd.js} +1 -1
  59. package/dist/assets/{home-page-route-C_dx1nVl.js → home-page-route-CV_mh2wJ.js} +1 -1
  60. package/dist/assets/{hosting-screen-CsavWom3.js → hosting-screen--kBc2JgZ.js} +1 -1
  61. package/dist/assets/identity-page-route-CDcFNfWw.js +1 -0
  62. package/dist/assets/index-Cx6vyW7T.js +155 -0
  63. package/dist/assets/{info-CUuJWmsF.js → info-DXbzDupm.js} +1 -1
  64. package/dist/assets/{inspect-page-C_hXwcho.js → inspect-page-D03CXXMs.js} +3 -3
  65. package/dist/assets/{install-Gyq-nEic.js → install-JGbHHiCV.js} +1 -1
  66. package/dist/assets/{integrations-page-Dz67PdC8.js → integrations-page-BFPmyQdR.js} +1 -1
  67. package/dist/assets/{intelligence-layout-CgcnfjDK.js → intelligence-layout-DgkmPrJl.js} +1 -1
  68. package/dist/assets/{keyboard-shortcuts-page-BhTucwGW.js → keyboard-shortcuts-page-waVolRQN.js} +1 -1
  69. package/dist/assets/{library-detail-page-DK89d-u4.js → library-detail-page-eMzOqx_B.js} +1 -1
  70. package/dist/assets/{library-page-vrFk-Rt1.js → library-page-BwoQ9K34.js} +1 -1
  71. package/dist/assets/{link-2-C6BJ3RH_.js → link-2-Dmka5LJV.js} +1 -1
  72. package/dist/assets/loader-circle-Cw1KvvLK.js +1 -0
  73. package/dist/assets/{local-mode-Bg6wpc5q.js → local-mode-BD2zqd9I.js} +3 -3
  74. package/dist/assets/{log-in-BPJxI98d.js → log-in-CUDpYpYW.js} +1 -1
  75. package/dist/assets/{login-flow-CzPVmpoB.js → login-flow-DVsR7fEC.js} +1 -1
  76. package/dist/assets/{login-page-Csy9gwOa.js → login-page-DYLjbG5w.js} +1 -1
  77. package/dist/assets/{logout-page-Dz800OIa.js → logout-page-DRRS14hP.js} +1 -1
  78. package/dist/assets/{logs-layout-BwgQ_S4K.js → logs-layout-CSvew4_d.js} +1 -1
  79. package/dist/assets/{mcp-page-5PXJCl5X.js → mcp-page-CUehr_wQ.js} +1 -1
  80. package/dist/assets/{memory-router-playground-page-BVhLOinh.js → memory-router-playground-page-A2zlGskJ.js} +1 -1
  81. package/dist/assets/{metric-card-DxrlxUKS.js → metric-card-CgO1F06f.js} +1 -1
  82. package/dist/assets/{minimize-2-BFkjQhB_.js → minimize-2-CPmn1RIm.js} +1 -1
  83. package/dist/assets/{mobile-sidebar-drawer-rYD2VIdb.js → mobile-sidebar-drawer-R6nyuXZ1.js} +1 -1
  84. package/dist/assets/{moon-D-eeNLvA.js → moon-Be4Pgk5X.js} +1 -1
  85. package/dist/assets/{notifications-page-CVB7NSmc.js → notifications-page-DcIQm_jh.js} +1 -1
  86. package/dist/assets/{oauth-complete-page-CzvAQxVm.js → oauth-complete-page-BJudfLeY.js} +1 -1
  87. package/dist/assets/{oauth-popup-complete-page-e67O6LPS.js → oauth-popup-complete-page-HRhzTWe_.js} +1 -1
  88. package/dist/assets/{pairing-page-B6gfw_Dk.js → pairing-page-DS3k_UyF.js} +1 -1
  89. package/dist/assets/{password-reset-page-BD2oysNq.js → password-reset-page-CDvLTa8S.js} +1 -1
  90. package/dist/assets/{pencil-Cyrr5VNX.js → pencil-Dm2eFMe3.js} +1 -1
  91. package/dist/assets/{platform-loopback-page-BtfoD3mE.js → platform-loopback-page-CKI-92-q.js} +1 -1
  92. package/dist/assets/plugin-detail-page-THfWbuJx.js +1 -0
  93. package/dist/assets/{plugins-page-CVnC0QSh.js → plugins-page-BxfKs2Np.js} +1 -1
  94. package/dist/assets/{prechat-route-y6KNH7Qp.js → prechat-route-uavNUOzg.js} +1 -1
  95. package/dist/assets/{prefs-BQY2Hl9H.js → prefs-DP4g-Qgi.js} +1 -1
  96. package/dist/assets/{privacy-page-Bbc8BtbS.js → privacy-page-Vq50i0Wv.js} +1 -1
  97. package/dist/assets/{privacy-screen-CEH2JNQv.js → privacy-screen-1ITDKJ6D.js} +1 -1
  98. package/dist/assets/{provider-callback-page-C7misZDP.js → provider-callback-page-tWLMyImI.js} +1 -1
  99. package/dist/assets/{provider-key-CK_U6Kex.js → provider-key-g87caUSW.js} +1 -1
  100. package/dist/assets/{provider-signup-page-PWsQh0Yg.js → provider-signup-page-CBPV-1Ih.js} +1 -1
  101. package/dist/assets/{quick-input-page-B8bRJhco.js → quick-input-page-CEPPTVs7.js} +1 -1
  102. package/dist/assets/{react-query.gen-DfnbKPpc.js → react-query.gen-4ZMhZ-fj.js} +1 -1
  103. package/dist/assets/{refresh-cw-C7wug6Q3.js → refresh-cw-YXbpNg95.js} +1 -1
  104. package/dist/assets/{research-mock-page-C9A3-fDP.js → research-mock-page-Dln6TeKV.js} +1 -1
  105. package/dist/assets/{research-onboarding-route-efpyR7DJ.js → research-onboarding-route-HWXEnr-H.js} +1 -1
  106. package/dist/assets/{resize-errors-D0YsLvoI.js → resize-errors-CXz-pd2h.js} +1 -1
  107. package/dist/assets/{resolved-assistants-store-lkSgU__i.js → resolved-assistants-store-DLNFVaZL.js} +1 -1
  108. package/dist/assets/{return-to-BcgKmS7W.js → return-to-DxTXKF-C.js} +1 -1
  109. package/dist/assets/{review-terms-screen-CDfWU0ZO.js → review-terms-screen-DuORfqOE.js} +1 -1
  110. package/dist/assets/{routes-BLyehs4B.js → routes-B9xcBuuC.js} +1 -1
  111. package/dist/assets/{save-DdguSDQ1.js → save-CQ2-kSlv.js} +1 -1
  112. package/dist/assets/{schedules-Dbclu3k6.js → schedules-MF0cMAPX.js} +1 -1
  113. package/dist/assets/{sdk.gen-W0KlW-sG.js → sdk.gen-DtKkd6hs.js} +1 -1
  114. package/dist/assets/{select-assistant-screen-ZJ9IYyUk.js → select-assistant-screen-C2pCQCeh.js} +1 -1
  115. package/dist/assets/{settings-layout-Cp1jKtid.js → settings-layout-Co57Zw8f.js} +1 -1
  116. package/dist/assets/{share-feedback-modal-pEDXaPEK.js → share-feedback-modal-C4yo471J.js} +1 -1
  117. package/dist/assets/{sidebar-tree-B24zaatU.js → sidebar-tree-D0lNnpA6.js} +1 -1
  118. package/dist/assets/{signup-page-Bf1Etxe9.js → signup-page-P4juei29.js} +1 -1
  119. package/dist/assets/{skills-page-A9JPglEX.js → skills-page-KI_k-igb.js} +1 -1
  120. package/dist/assets/{sound-manager-BJ26N0gf.js → sound-manager-RQj5g2kL.js} +1 -1
  121. package/dist/assets/{sounds-page-D9PLU10T.js → sounds-page-DFXhvf_o.js} +1 -1
  122. package/dist/assets/{sparkles-BoIJjAXt.js → sparkles-C8hCShdb.js} +1 -1
  123. package/dist/assets/{step-indicator-dots-CE4dEV3k.js → step-indicator-dots-Bx_0xTIr.js} +1 -1
  124. package/dist/assets/{subagent-detail-panel-DdynnGgr.js → subagent-detail-panel-eXMmoVu4.js} +2 -2
  125. package/dist/assets/{system-events-page-CapsfcLj.js → system-events-page-BJJteZri.js} +1 -1
  126. package/dist/assets/{system-events-redirect-page-DygqxqRr.js → system-events-redirect-page-CheSz42h.js} +1 -1
  127. package/dist/assets/{tiptap-document-editor-Bmxs-PZ9.js → tiptap-document-editor-C8FlNAsc.js} +1 -1
  128. package/dist/assets/{tool-detail-panel-BqCxmSox.js → tool-detail-panel-DgVn-kKw.js} +2 -2
  129. package/dist/assets/{trace-page-CniuHbEK.js → trace-page-CZICq31J.js} +1 -1
  130. package/dist/assets/{triangle-alert-CoIDviBm.js → triangle-alert-AqQQTwUZ.js} +1 -1
  131. package/dist/assets/{upgrade-cancel-page-DBjzADY1.js → upgrade-cancel-page-BQJOrigy.js} +1 -1
  132. package/dist/assets/{upgrade-success-page-VewnS1PS.js → upgrade-success-page-BPRZMLDu.js} +1 -1
  133. package/dist/assets/{usage-page-XZramSoz.js → usage-page-DU36h2RZ.js} +1 -1
  134. package/dist/assets/{use-active-assistant-id-DTsVl8b7.js → use-active-assistant-id-BlwRimQH.js} +1 -1
  135. package/dist/assets/use-is-org-ready-CRkh60tU.js +1 -0
  136. package/dist/assets/{use-onboarding-login-vAFdm7Pu.js → use-onboarding-login-BZ4ismb6.js} +1 -1
  137. package/dist/assets/{use-plugin-drift-B5uLDuHi.js → use-plugin-drift-C3gz_rng.js} +1 -1
  138. package/dist/assets/{viewer-store-CTNS5BCs.js → viewer-store-9Ag85lFC.js} +1 -1
  139. package/dist/assets/{voice-page-DiP4QkZU.js → voice-page-DB2h9uqJ.js} +1 -1
  140. package/dist/assets/{weather-forecast-display-3wTH0LJ0.js → weather-forecast-display-DoCG5fqI.js} +1 -1
  141. package/dist/assets/{welcome-screen-DVEKTxnJ.js → welcome-screen-z3RULgvo.js} +1 -1
  142. package/dist/assets/{workflow-detail-panel-Djzb5VDE.js → workflow-detail-panel-uiydoHie.js} +1 -1
  143. package/dist/assets/{workspace-page-DvdkgVub.js → workspace-page-9B98Z90n.js} +1 -1
  144. package/dist/assets/x-BeVbiDS2.js +1 -0
  145. package/dist/index.html +54 -54
  146. package/package.json +1 -1
  147. package/dist/assets/ai-page-C2gOM0fO.js +0 -1
  148. package/dist/assets/api-kMnfZUPa.js +0 -1
  149. package/dist/assets/arrow-left-CEu7Dsda.js +0 -1
  150. package/dist/assets/arrow-up-BHPaHiHe.js +0 -1
  151. package/dist/assets/assistant-api-c0d65GPi.js +0 -1
  152. package/dist/assets/auth-store-Cc0c0sQk.js +0 -7
  153. package/dist/assets/ban-DOB4wT-M.js +0 -1
  154. package/dist/assets/build-state-WKs9Ht8_.js +0 -1
  155. package/dist/assets/chevron-left-BFX62ERI.js +0 -1
  156. package/dist/assets/chevron-right-Cc3NZhAF.js +0 -1
  157. package/dist/assets/circle-check-BKkxjdE1.js +0 -1
  158. package/dist/assets/code-CfKv4BKJ.js +0 -1
  159. package/dist/assets/command-palette-window-page-BTGDdcg4.js +0 -1
  160. package/dist/assets/debug-page-BVMoMpUg.js +0 -2
  161. package/dist/assets/identity-page-route-Bly29wqM.js +0 -1
  162. package/dist/assets/index-DhxGhfwI.js +0 -155
  163. package/dist/assets/loader-circle-YAV9sMh_.js +0 -1
  164. package/dist/assets/plugin-detail-page-CTQIvdhJ.js +0 -1
  165. package/dist/assets/use-is-org-ready-BL-GcZZw.js +0 -1
  166. package/dist/assets/x-b3o2p6YU.js +0 -1
  167. /package/dist/assets/{api-errors-C3sAdlZQ.js → api-errors-D3EsNrwn.js} +0 -0
  168. /package/dist/assets/{client.gen-Bx3pJMXa.js → client.gen-0CkwJ2Ya.js} +0 -0
  169. /package/dist/assets/{createLucideIcon-KBgJOpms.js → createLucideIcon-BlMXrA59.js} +0 -0
  170. /package/dist/assets/{is-electron-CcgCla1v.js → is-electron-C_ZTVhv8.js} +0 -0
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{a as t,n,o as r,r as i,s as a}from"./device-settings-BBwtGKJb.js";import{t as o}from"./react-DJZBPgpf.js";import{O as s,t as c}from"./button-D7s2Q_uG.js";import{n as l}from"./QueryClientProvider-DKhXIxGb.js";import{t as u}from"./useQuery-B45lW1Kk.js";import{t as d}from"./useMutation-Lj4VunQV.js";import{t as f}from"./jsx-runtime-CVSDxk6A.js";import{t as p}from"./cn-DvW5mxZR.js";import{t as m}from"./card-BibIM9x3.js";import{t as h}from"./dropdown-yOV5eJnU.js";import"./src-BJj2O5XB.js";import{t as g}from"./confirm-dialog-SpCsmAdG.js";import{t as _}from"./notice-CynJKEow.js";import{t as v}from"./tag-CE_o2aao.js";import{t as y}from"./input-Ch7OC6ME.js";import{t as b}from"./toggle-95p73HGd.js";import{n as x}from"./toast-CxaZ5f1d.js";import{t as S}from"./chevron-right-Cc3NZhAF.js";import{t as C}from"./loader-circle-YAV9sMh_.js";import{t as w}from"./pencil-Cyrr5VNX.js";import{t as T}from"./x-b3o2p6YU.js";import{n as E,r as D,t as O}from"./api-errors-C3sAdlZQ.js";import{A as k,D as A,E as ee,F as te,O as ne,T as re,h as j,j as ie,k as M,n as ae,r as oe}from"./auth-store-Cc0c0sQk.js";import{t as N}from"./client.gen-DzaL5PKF.js";import{t as se}from"./sdk.gen-0RzHFsEa.js";import{a as ce,i as le}from"./routes-BLyehs4B.js";import{t as ue}from"./assistant-feature-flag-store-BD9zTDcP.js";import{n as de,t as fe}from"./react-query.gen-CRARj4mG.js";import{Bt as pe,F as me,Hr as P,Jt as F,Kt as he,N as ge,Nr as _e,P as I,Qt as ve,Ur as ye,Xt as be,Zt as xe,g as Se,h as Ce,m as L,p as R,qt as we,ta as Te,x as Ee}from"./index-DhxGhfwI.js";import{t as z}from"./use-active-assistant-id-DTsVl8b7.js";import{t as B}from"./detail-card-QPVpO5cj.js";import{t as V}from"./setting-row-BHlMSre_.js";var H=e(o(),1),U=[`no_one`,`guardian_only`,`trusted_contacts`,`any_contact`,`strangers`],De=new Set([`platform`,`a2a`]),Oe=new Set([`vellum`,`whatsapp`]);function ke(e){return Oe.has(e)}var Ae={no_one:`No one (kill switch)`,guardian_only:`Guardian only`,trusted_contacts:`Trusted contacts`,any_contact:`Any contact`,strangers:`Strangers`},je={no_one:`Hard-deny every inbound message on this channel.`,guardian_only:`Only messages from the guardian are admitted.`,trusted_contacts:`Admit verified contacts and the guardian; deny everyone else.`,any_contact:`Admit any matched contact (verified or pending) and the guardian.`,strangers:`Admit everyone, including unrecognised senders.`};function Me(e){return typeof e==`string`&&U.includes(e)}function W(e){return De.has(e)}async function Ne(e){let{data:t,error:n,response:r}=await N.get({url:`/v1/assistants/{assistant_id}/channel-admission-policy/`,path:{assistant_id:e},throwOnError:!1});if(E(r,n,`Failed to load channel policies.`),!r.ok)throw new O(r.status,D(n,r,`Failed to load channel policies.`));return(t?.policies??[]).filter(e=>!W(e.channelType)&&!ke(e.channelType)).map(e=>({...e,policy:Me(e.policy)?e.policy:`trusted_contacts`}))}async function Pe(e,t,n,r){if(W(t))throw new O(403,`Channel "${t}" is internal and is not user-configurable.`);let{data:i,error:a,response:o}=await N.put({url:`/v1/assistants/{assistant_id}/channel-admission-policy/{channel_type}`,path:{assistant_id:e,channel_type:t},body:{policy:n,note:r??null},headers:{"Content-Type":`application/json`},throwOnError:!1});if(E(o,a,`Failed to save channel policy.`),!o.ok)throw new O(o.status,D(a,o,`Failed to save channel policy.`));if(!i?.policy)throw new O(500,`Gateway returned no policy in response.`);return i.policy}var G=f(),Fe=U.map(e=>({value:e,label:Ae[e]}));function K(e){return{telegram:`Telegram`,phone:`Phone`,whatsapp:`WhatsApp`,slack:`Slack`,email:`Email`}[e]??e.charAt(0).toUpperCase()+e.slice(1)}function Ie(){let e=z(),[t,n]=(0,H.useState)(null),[r,i]=(0,H.useState)(!0),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null),d=(0,H.useCallback)(async()=>{i(!0),o(null);try{n(await Ne(e))}catch(e){o(e instanceof O?e.message:`Failed to load channel policies.`)}finally{i(!1)}},[e]);(0,H.useEffect)(()=>{d()},[d]);let f=(0,H.useCallback)(async(t,r)=>{c(t),o(null),n(e=>e&&e.map(e=>e.channelType===t?{...e,policy:r}:e));try{let i=await Pe(e,t,r);n(e=>e&&e.map(e=>e.channelType===t?i:e))}catch(e){o(e instanceof O?e.message:`Failed to save channel policy.`),await d()}finally{c(null)}},[e,d]),p=(0,H.useCallback)((e,t)=>{if(t===`no_one`){u({channelType:e,label:K(e)});return}f(e,t)},[f]),_=(0,H.useCallback)(()=>{if(!l)return;let{channelType:e}=l;u(null),f(e,`no_one`)},[l,f]),v=(0,H.useCallback)(()=>{u(null)},[]),y=(0,H.useMemo)(()=>t??[],[t]);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(ye,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Channel Trust Floors`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Choose who can reach the assistant on each channel. Internal channels are managed automatically and not shown here.`})]})]}),a&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-[var(--border-negative)] bg-[var(--surface-negative-subtle)] px-3 py-2 text-body-small-default text-[var(--content-negative)]`,children:a}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-3`,"data-testid":`channel-policy-list`,children:[r&&!t&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`Loading…`}),!r&&y.length===0&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`No client-controllable channels found.`}),y.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,"data-testid":`channel-policy-row-${e.channelType}`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:K(e.channelType)}),(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:je[e.policy]})]}),(0,G.jsx)(`div`,{style:{minWidth:220},children:(0,G.jsx)(h,{value:e.policy,onChange:t=>p(e.channelType,t),options:Fe,disabled:s===e.channelType,"aria-label":`Floor for ${K(e.channelType)}`,"data-testid":`channel-policy-dropdown-${e.channelType}`})})]},e.channelType))]}),(0,G.jsx)(g,{open:l!==null,title:`Block all inbound messages?`,message:l?`Setting ${l.label} to "No one" will hard-deny every inbound message on this channel. You can reverse this at any time.`:``,confirmLabel:`Block all`,destructive:!0,onConfirm:_,onCancel:v})]})}var q=[{id:`accessibility`,type:`system`,sourceKind:`accessibility`,label:`Accessibility`,description:`Allows your assistant to click, type, and control apps on your behalf.`},{id:`screen`,type:`system`,sourceKind:`screen`,label:`Screen Recording`,description:`Allows your assistant to capture screen context during computer-use tasks.`},{id:`microphone`,type:`system`,sourceKind:`microphone`,label:`Microphone`,description:`Allows your assistant to capture audio for voice input and recordings.`},{id:`speechRecognition`,type:`system`,sourceKind:`speechRecognition`,label:`Speech Recognition`,description:`Allows your assistant to transcribe your speech into text on-device.`},{id:`notifications`,type:`system`,sourceKind:`notifications`,label:`Notifications`,description:`Allows your assistant to send macOS alerts for approvals, messages, and task updates.`}],Le=[{id:`notificationBadges`,type:`local`,label:`Notification Badges`,description:`Allows your assistant to show unseen conversation counts on the Dock icon.`}];function Re(){let[e,t]=(0,H.useState)(null);return{pendingKind:e,run:async(e,n)=>{t(e);try{await n()}catch{}finally{t(t=>t===e?null:t)}}}}function ze(){let[e,r]=(0,H.useState)(()=>n(`dockBadgesEnabled`,!0));return(0,H.useEffect)(()=>a(`dockBadgesEnabled`,()=>{r(n(`dockBadgesEnabled`,!0))}),[]),[e,e=>{r(e),t(`dockBadgesEnabled`,e),e||pe(0)}]}function Be({row:e,onToggle:t}){return(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(b,{checked:e.checked,disabled:e.disabled,"aria-label":e.label,onChange:()=>t(e.id)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>t(e.id),className:p(`block w-full text-left`,e.disabled?`cursor-not-allowed`:`cursor-pointer`),children:[(0,G.jsx)(`span`,{className:`block text-[14px] font-semibold leading-[18px] text-[var(--content-emphasised)]`,children:e.label}),(0,G.jsx)(`span`,{className:`mt-1 block text-[13px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:e.description})]}),e.error&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:e.error})]})]})}function Ve(){return(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`h-4 w-4 animate-spin rounded-full border-2 border-[var(--border-base)] border-t-[var(--content-tertiary)]`})}function He({compact:e=!1}){let{state:t,loading:n,error:r,supported:i,refresh:a}=ve(),{pendingKind:o,run:s}=Re(),[c,l]=ze(),u=(0,H.useMemo)(()=>{let e=new Map;if(!t)return e;for(let n of q){let r=t[n.sourceKind];r&&e.set(n.id,{meta:n,item:r})}return e},[t]),d=(0,H.useMemo)(()=>{let e=q.map(e=>{let t=u.get(e.id)?.item;return t?{id:e.id,label:e.label,description:e.description,checked:t.status===`granted`,disabled:o===e.id||t.status===`restricted`,...t.error?{error:t.error}:{}}:null}).filter(Boolean),t=Le.map(e=>({id:e.id,label:e.label,description:e.description,checked:c,disabled:o===e.id}));return[...e,...t]},[c,o,u]);if(!i)return null;let f=async(e,t)=>{t.status===`granted`||t.status===`denied`||!t.canRequest?await be(e.sourceKind):await xe(e.sourceKind),await a()},p=e=>{let t=u.get(e);if(t){s(e,()=>f(t.meta,t.item));return}e===`notificationBadges`&&s(e,async()=>{l(!c)})};return(0,G.jsxs)(`section`,{className:`w-full rounded-[20px] border border-[var(--border-hover)] bg-[var(--surface-lift)] px-4 pb-3 pt-5`,children:[(0,G.jsx)(`h2`,{className:`text-[18px] font-semibold leading-[22px] text-[var(--content-emphasised)]`,children:`System Permissions`}),n&&d.length===0?(0,G.jsxs)(`div`,{className:`mt-6 flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,G.jsx)(Ve,{}),`Checking permissions...`]}):(0,G.jsx)(`div`,{className:`mt-3 space-y-2`,children:d.map(e=>(0,G.jsx)(Be,{row:e,onToggle:p},e.id))}),r&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-6 rounded-lg border border-[color-mix(in_srgb,var(--system-negative-strong)_25%,transparent)] bg-[var(--system-negative-weak)] p-3 text-body-medium-lighter text-[var(--content-secondary)]`,children:r})]})}function Ue(){let e=F({platformHostedOnly:!0}),t=he(),n=we(),r=l(),{data:i,isLoading:a,isError:o}=u({...fe(),enabled:e===`full`&&t}),s=d({mutationFn:async e=>{let{data:t}=await se({body:{access_consented:e},throwOnError:!0});return t},onSuccess:e=>{de(r,void 0,e),x.success(e?.access_consented?`Admin data access enabled.`:`Admin data access disabled.`)},onError:()=>{x.error(`Failed to update log access consent.`)}});if(e===`gated`)return null;let c=e===`full`&&n,f=i?.access_consented??!1,p=e!==`full`||!t||a||o||s.isPending;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Allow admin access to assistant data`}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`Lets Vellum administrators reach privileged data on your assistant pod for debugging — today this means tailing the daily assistant log at`,` `,(0,G.jsx)(`code`,{className:`rounded bg-[var(--surface-base)] px-1.5 font-mono text-[var(--content-secondary)] dark:bg-[var(--surface-lift)] dark:text-[var(--content-default)]`,children:`/workspace/data/logs/assistant-YYYY-MM-DD.log`}),`. Off by default. Turn on temporarily when asking support to investigate an issue, then turn off when you're done.`]}),e===`full`&&o&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:`Failed to load consent setting.`})]}),(0,G.jsx)(`div`,{className:`flex items-center gap-2`,children:e===`disabled`?null:(0,G.jsxs)(G.Fragment,{children:[(s.isPending||c)&&(0,G.jsx)(C,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,G.jsx)(b,{checked:f,disabled:p,onChange:()=>s.mutate(!f)})]})})]}),e===`disabled`&&(0,G.jsx)(Ee,{className:`mt-3`,children:`Log in to the Vellum platform to manage admin data access.`})]})}function We(){let e=te(),[t,n]=(0,H.useState)(()=>ne()),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(`Face ID`),[s,c]=(0,H.useState)(!1);if((0,H.useEffect)(()=>{e&&(A().then(i),ee().then(o))},[e]),!e||!r)return null;let l=async()=>{c(!0);try{if(t)M(!1),await re(),n(!1);else{let e=ie();e&&await k(e),M(!0),n(!0)}}finally{c(!1)}};return(0,G.jsx)(B,{title:`Security`,children:(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsxs)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:[`Use `,a,` for sign-in`]}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`When your session expires, verify with `,a,` or your device passcode instead of signing in again.`]})]}),(0,G.jsx)(b,{checked:t,onChange:()=>void l(),disabled:s})]})})}function J(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}var Y=R.map(e=>({value:e.id,label:e.label,icon:(0,G.jsx)(e.icon,{className:`h-3.5 w-3.5`})}));function X(){let e=z(),t=l(),{data:n,isError:r}=u({queryKey:[`thresholds`,e],queryFn:()=>Ce(e),staleTime:3e4}),[i,a]=(0,H.useState)(`relaxed`),[o,s]=(0,H.useState)(`conservative`),[c,d]=(0,H.useState)(`strict`),[f,p]=(0,H.useState)(!1),g=(0,H.useRef)(!1),[_,v]=(0,H.useState)(!1),y=(0,H.useRef)(null),b=(0,H.useRef)(null);(0,H.useEffect)(()=>{!n||g.current||(a(L(n.interactive).id),s(L(n.autonomous).id),d(L(n.headless).id),v(!0))},[n]),(0,H.useEffect)(()=>()=>{y.current!==null&&(clearTimeout(y.current),y.current=null,b.current?.(),b.current=null)},[]);let x=(0,H.useCallback)((n,r,i)=>{if(!e||!_)return;let a=R.find(e=>e.id===n)?.riskThreshold,o=R.find(e=>e.id===r)?.riskThreshold,s=R.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||Se(e,{interactive:a,autonomous:o,headless:s}).then(()=>{t.invalidateQueries({queryKey:[`thresholds`,e]})}).catch(()=>{})},[e,_,t]),C=(0,H.useCallback)((e,t,n)=>{y.current!==null&&clearTimeout(y.current),b.current=()=>x(e,t,n),y.current=setTimeout(()=>{b.current?.(),y.current=null,b.current=null},500)},[x]),w=(0,H.useCallback)(e=>{g.current=!0,a(e),C(e,o,c)},[o,c,C]),T=(0,H.useCallback)(e=>{g.current=!0,s(e),C(i,e,c)},[i,c,C]),E=(0,H.useCallback)(e=>{g.current=!0,d(e),C(i,o,e)},[i,o,C]),D=R.find(e=>e.id===i),O=R.find(e=>e.id===o),k=R.find(e=>e.id===c),A=!e||!_;return(0,G.jsxs)(m,{children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Risk Tolerance`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Control which actions your assistant can take without asking first. Each action is classified by risk level — your tolerance determines which levels auto-approve.`}),r&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--system-negative-strong)]`,children:`Could not load threshold settings. Check your connection and reload.`}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Conversations`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When you're chatting with your assistant directly.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:i,onChange:w,options:Y,disabled:A})}),D&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:D.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>p(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":f,children:[f?(0,G.jsx)(Te,{className:`h-4 w-4`}):(0,G.jsx)(S,{className:`h-4 w-4`}),(0,G.jsx)(`span`,{className:`text-body-medium-default`,children:`Advanced`})]}),(0,G.jsxs)(`div`,{className:f?`mt-4 space-y-4`:`hidden`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Background`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When your assistant acts without you — scheduled tasks, background jobs, and external triggers.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:o,onChange:T,options:Y,disabled:A})}),O&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:O.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Headless`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When triggered externally with no interactive client.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:c,onChange:E,options:Y,disabled:A})}),k&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:k.description})]})]})]})]})]})}var Z=e(s(),1),Ge=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`],Ke=[{value:`low`,label:`Low`,description:`Auto-approve without prompting`},{value:`medium`,label:`Medium`,description:`Prompt before executing`},{value:`high`,label:`High`,description:`Always require explicit approval`}];function qe({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let i=(0,H.useRef)(null),[a,o]=(0,H.useState)(t.tool),[s,c]=(0,H.useState)(t.pattern),[l,u]=(0,H.useState)(t.risk),[d,f]=(0,H.useState)(t.description??``),[p,m]=(0,H.useState)(!1),[g,v]=(0,H.useState)(null),b=s.trim(),x=b.length>0&&!p,S=(0,H.useCallback)(async n=>{if(n.preventDefault(),!x)return;let i=d.trim()||`${a} — ${b}`;m(!0),v(null);try{await me(e,t.id,{risk:l,description:i}),r()}catch(e){v(e instanceof Error?e.message:`Failed to save trust rule.`)}finally{m(!1)}},[e,x,d,t,r,l,a,b]);return(0,Z.createPortal)((0,G.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&n()},[n]),onClick:(0,H.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Edit Trust Rule`}),(0,G.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Close`,className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(T,{className:`h-4 w-4`})})]}),(0,G.jsxs)(`form`,{onSubmit:e=>void S(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[g&&(0,G.jsx)(_,{tone:`error`,children:g}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`Tool`}),(0,G.jsx)(`div`,{className:`mt-1`,children:(0,G.jsx)(h,{value:a,onChange:o,disabled:!0,options:Ge.map(e=>({value:e,label:e}))})})]}),(0,G.jsx)(y,{label:`Pattern`,type:`text`,value:s,onChange:e=>c(e.target.value),placeholder:`e.g., git *`,disabled:!0}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:`Risk Level`}),(0,G.jsx)(`div`,{className:`mt-2 flex gap-2`,children:Ke.map(e=>(0,G.jsxs)(`button`,{type:`button`,onClick:()=>u(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${l===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`div`,{children:e.label}),(0,G.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,G.jsx)(y,{label:`Description (optional)`,type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`${a} — ${b||`pattern`}`}),(0,G.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:`Cancel`}),(0,G.jsx)(`button`,{type:`submit`,disabled:!x,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:p?`Saving…`:`Save`})]})]})]})}),document.body)}function Je(e){return e.origin===`default`&&!e.userModified}function Ye(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function Xe(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ze({assistantId:e,onClose:t}){let n=(0,H.useRef)(null),[r,i]=(0,H.useState)([]),[a,o]=(0,H.useState)(!0),[s,l]=(0,H.useState)(null),[u,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(null),[m,h]=(0,H.useState)(!1),y=(0,H.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([I(e),I(e,{origin:`default`})]);return Ye(t,n)}return I(e)},[e]),x=(0,H.useCallback)(async()=>{o(!0);try{i(await y(m)),l(null)}catch(e){l(e instanceof Error?e.message:`Failed to load trust rules.`)}finally{o(!1)}},[y,m]);(0,H.useEffect)(()=>{let e=!1;return(async()=>{o(!0);try{let t=await y(m);e||(i(t),l(null))}catch(t){e||l(t instanceof Error?t.message:`Failed to load trust rules.`)}finally{e||o(!1)}})(),()=>{e=!0}},[y,m]);let S=(0,H.useCallback)(async()=>{if(f)try{await ge(e,f.id),x()}catch(e){l(e instanceof Error?e.message:`Failed to delete trust rule.`)}finally{p(null)}},[e,f,x]);return(0,Z.createPortal)((0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:n,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&t()},[t]),onClick:(0,H.useCallback)(e=>{e.target===n.current&&t()},[t]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(b,{checked:m,onChange:h,label:`Show all defaults`}),(0,G.jsx)(c,{variant:`outlined`,onClick:t,children:`Done`})]})]}),(0,G.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[s&&(0,G.jsx)(`div`,{className:`mb-3`,children:(0,G.jsx)(_,{tone:`error`,children:s})}),a?(0,G.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Loading…`}):r.length===0?(0,G.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,G.jsx)(P,{className:`h-8 w-8`}),(0,G.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:`No trust rules yet. Rules are created when you classify actions from permission prompts.`})]}):(0,G.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:r.map(e=>{let t=Je(e);return(0,G.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,G.jsx)(v,{tone:Xe(e.risk),children:Q(e.risk)}),e.origin===`default`&&(0,G.jsx)(v,{tone:`neutral`,children:`Default`}),e.userModified&&(0,G.jsx)(v,{tone:`warning`,children:`Modified`})]}),(0,G.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,G.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,G.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Edit ${e.tool} rule`,onClick:()=>d(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(w,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Delete ${e.tool} rule`,onClick:()=>p(e),className:`rounded-lg p-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:(0,G.jsx)(_e,{className:`h-4 w-4`})})]})]},e.id)})})]})]})}),u&&(0,G.jsx)(qe,{assistantId:e,existingRule:u,onClose:()=>d(null),onSaved:()=>{d(null),x()}}),(0,G.jsx)(g,{open:f!==null,title:`Delete Trust Rule?`,message:f?`Remove the ${Q(f.risk).toLowerCase()}-risk rule for ${f.tool} matching "${f.pattern}"?`:``,confirmLabel:`Delete`,cancelLabel:`Cancel`,destructive:!0,onConfirm:()=>void S(),onCancel:()=>p(null)})]}),document.body)}function Qe(){let e=z(),[t,n]=(0,H.useState)(!1);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(P,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Manage per-tool rules that control which actions auto-approve and which require your explicit permission.`})]}),(0,G.jsx)(c,{variant:`outlined`,onClick:()=>n(!0),children:`Manage`})]}),t&&(0,G.jsx)(Ze,{assistantId:e,onClose:()=>n(!1)})]})}var $e=[{value:`dontRetain`,label:`Don't retain`},{value:`oneHour`,label:`1 hour`},{value:`oneDay`,label:`1 day`},{value:`sevenDays`,label:`7 days`},{value:`thirtyDays`,label:`30 days`},{value:`ninetyDays`,label:`90 days`},{value:`keepForever`,label:`Keep forever`}],et=`thirtyDays`;function $(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function tt(){let e=F({platformHostedOnly:!0}),t=ue.use.channelTrustFloors(),a=oe(),o=a,s=ae.use.user()?.id??null,[c,l]=(0,H.useState)(()=>n(`shareAnalytics`,!0)),[u,d]=(0,H.useState)(()=>n(`shareDiagnostics`,!0)),[f,p]=(0,H.useState)(()=>i(`llmLogRetention`,et));return(0,G.jsxs)(`div`,{className:`space-y-4`,children:[(0,G.jsx)(We,{}),(0,G.jsx)(He,{}),(0,G.jsx)(Qe,{}),t&&(0,G.jsx)(Ie,{}),(0,G.jsx)(X,{}),(0,G.jsx)(B,{title:`Privacy`,subtitle:a?(0,G.jsxs)(G.Fragment,{children:[`View details about what data we collect and how it's used in our`,` `,(0,G.jsx)(`a`,{href:le(ce.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`privacy policy`}),`.`]}):void 0,children:(0,G.jsxs)(`div`,{className:`space-y-4`,children:[o&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(V,{label:`Share Analytics`,helperText:`Send aggregated product usage data`,checked:c,onChange:()=>{let e=!c;l(e),j(`share_analytics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{}),(0,G.jsx)(V,{label:`Share Diagnostics`,helperText:`Send crash reports, conversation traces, and session replay data`,checked:u,onChange:()=>{let e=!u;d(e),j(`share_diagnostics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{})]}),(0,G.jsx)(Ue,{}),e!==`gated`&&(0,G.jsx)($,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`LLM Request Log Retention`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:f,onChange:e=>{p(e),r(`llmLogRetention`,e)},options:$e})}),(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:`How long to keep LLM request and response logs on this device. These logs record the prompts and completions sent to model providers and are used for debugging. Shorter retention improves privacy; longer retention helps troubleshoot issues.`})]})]})})]})}export{tt as PrivacyPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{a as t,n,o as r,r as i,s as a}from"./device-settings-BBwtGKJb.js";import{t as o}from"./react-DJZBPgpf.js";import{O as s,t as c}from"./button-D7s2Q_uG.js";import{n as l}from"./QueryClientProvider-DKhXIxGb.js";import{t as u}from"./useQuery-B45lW1Kk.js";import{t as d}from"./useMutation-Lj4VunQV.js";import{t as f}from"./jsx-runtime-CVSDxk6A.js";import{t as p}from"./cn-DvW5mxZR.js";import{t as m}from"./card-BibIM9x3.js";import{t as h}from"./dropdown-yOV5eJnU.js";import"./src-BJj2O5XB.js";import{t as g}from"./confirm-dialog-SpCsmAdG.js";import{t as _}from"./notice-CynJKEow.js";import{t as v}from"./tag-CE_o2aao.js";import{t as y}from"./input-Ch7OC6ME.js";import{t as b}from"./toggle-95p73HGd.js";import{n as x}from"./toast-CxaZ5f1d.js";import{t as S}from"./chevron-right-BNHlGCTg.js";import{t as C}from"./loader-circle-Cw1KvvLK.js";import{t as w}from"./pencil-Dm2eFMe3.js";import{t as T}from"./x-BeVbiDS2.js";import{n as E,r as D,t as O}from"./api-errors-D3EsNrwn.js";import{A as k,D as A,E as ee,F as te,O as ne,T as re,h as j,j as ie,k as M,n as ae,r as oe}from"./auth-store-CbVvQiBR.js";import{t as N}from"./client.gen-DzaL5PKF.js";import{t as se}from"./sdk.gen-0RzHFsEa.js";import{a as ce,i as le}from"./routes-B9xcBuuC.js";import{t as ue}from"./assistant-feature-flag-store-BD9zTDcP.js";import{n as de,t as fe}from"./react-query.gen-CRARj4mG.js";import{Bt as pe,F as P,Hr as F,I as me,Jt as I,Kt as he,Nr as ge,P as _e,Qt as ve,Ur as ye,Xt as be,Zt as xe,g as Se,h as Ce,m as L,p as R,qt as we,ta as Te,x as Ee}from"./index-Cx6vyW7T.js";import{t as z}from"./use-active-assistant-id-BlwRimQH.js";import{t as B}from"./detail-card-QPVpO5cj.js";import{t as V}from"./setting-row-BHlMSre_.js";var H=e(o(),1),U=[`no_one`,`guardian_only`,`trusted_contacts`,`any_contact`,`strangers`],De=new Set([`platform`,`a2a`]),Oe=new Set([`vellum`,`whatsapp`]);function ke(e){return Oe.has(e)}var Ae={no_one:`No one (kill switch)`,guardian_only:`Guardian only`,trusted_contacts:`Trusted contacts`,any_contact:`Any contact`,strangers:`Strangers`},je={no_one:`Hard-deny every inbound message on this channel.`,guardian_only:`Only messages from the guardian are admitted.`,trusted_contacts:`Admit verified contacts and the guardian; deny everyone else.`,any_contact:`Admit any matched contact (verified or pending) and the guardian.`,strangers:`Admit everyone, including unrecognised senders.`};function Me(e){return typeof e==`string`&&U.includes(e)}function W(e){return De.has(e)}async function Ne(e){let{data:t,error:n,response:r}=await N.get({url:`/v1/assistants/{assistant_id}/channel-admission-policy/`,path:{assistant_id:e},throwOnError:!1});if(E(r,n,`Failed to load channel policies.`),!r.ok)throw new O(r.status,D(n,r,`Failed to load channel policies.`));return(t?.policies??[]).filter(e=>!W(e.channelType)&&!ke(e.channelType)).map(e=>({...e,policy:Me(e.policy)?e.policy:`trusted_contacts`}))}async function Pe(e,t,n,r){if(W(t))throw new O(403,`Channel "${t}" is internal and is not user-configurable.`);let{data:i,error:a,response:o}=await N.put({url:`/v1/assistants/{assistant_id}/channel-admission-policy/{channel_type}`,path:{assistant_id:e,channel_type:t},body:{policy:n,note:r??null},headers:{"Content-Type":`application/json`},throwOnError:!1});if(E(o,a,`Failed to save channel policy.`),!o.ok)throw new O(o.status,D(a,o,`Failed to save channel policy.`));if(!i?.policy)throw new O(500,`Gateway returned no policy in response.`);return i.policy}var G=f(),Fe=U.map(e=>({value:e,label:Ae[e]}));function K(e){return{telegram:`Telegram`,phone:`Phone`,whatsapp:`WhatsApp`,slack:`Slack`,email:`Email`}[e]??e.charAt(0).toUpperCase()+e.slice(1)}function Ie(){let e=z(),[t,n]=(0,H.useState)(null),[r,i]=(0,H.useState)(!0),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null),d=(0,H.useCallback)(async()=>{i(!0),o(null);try{n(await Ne(e))}catch(e){o(e instanceof O?e.message:`Failed to load channel policies.`)}finally{i(!1)}},[e]);(0,H.useEffect)(()=>{d()},[d]);let f=(0,H.useCallback)(async(t,r)=>{c(t),o(null),n(e=>e&&e.map(e=>e.channelType===t?{...e,policy:r}:e));try{let i=await Pe(e,t,r);n(e=>e&&e.map(e=>e.channelType===t?i:e))}catch(e){o(e instanceof O?e.message:`Failed to save channel policy.`),await d()}finally{c(null)}},[e,d]),p=(0,H.useCallback)((e,t)=>{if(t===`no_one`){u({channelType:e,label:K(e)});return}f(e,t)},[f]),_=(0,H.useCallback)(()=>{if(!l)return;let{channelType:e}=l;u(null),f(e,`no_one`)},[l,f]),v=(0,H.useCallback)(()=>{u(null)},[]),y=(0,H.useMemo)(()=>t??[],[t]);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(ye,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Channel Trust Floors`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Choose who can reach the assistant on each channel. Internal channels are managed automatically and not shown here.`})]})]}),a&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-[var(--border-negative)] bg-[var(--surface-negative-subtle)] px-3 py-2 text-body-small-default text-[var(--content-negative)]`,children:a}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-3`,"data-testid":`channel-policy-list`,children:[r&&!t&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`Loading…`}),!r&&y.length===0&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`No client-controllable channels found.`}),y.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,"data-testid":`channel-policy-row-${e.channelType}`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:K(e.channelType)}),(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:je[e.policy]})]}),(0,G.jsx)(`div`,{style:{minWidth:220},children:(0,G.jsx)(h,{value:e.policy,onChange:t=>p(e.channelType,t),options:Fe,disabled:s===e.channelType,"aria-label":`Floor for ${K(e.channelType)}`,"data-testid":`channel-policy-dropdown-${e.channelType}`})})]},e.channelType))]}),(0,G.jsx)(g,{open:l!==null,title:`Block all inbound messages?`,message:l?`Setting ${l.label} to "No one" will hard-deny every inbound message on this channel. You can reverse this at any time.`:``,confirmLabel:`Block all`,destructive:!0,onConfirm:_,onCancel:v})]})}var q=[{id:`accessibility`,type:`system`,sourceKind:`accessibility`,label:`Accessibility`,description:`Allows your assistant to click, type, and control apps on your behalf.`},{id:`screen`,type:`system`,sourceKind:`screen`,label:`Screen Recording`,description:`Allows your assistant to capture screen context during computer-use tasks.`},{id:`microphone`,type:`system`,sourceKind:`microphone`,label:`Microphone`,description:`Allows your assistant to capture audio for voice input and recordings.`},{id:`speechRecognition`,type:`system`,sourceKind:`speechRecognition`,label:`Speech Recognition`,description:`Allows your assistant to transcribe your speech into text on-device.`},{id:`notifications`,type:`system`,sourceKind:`notifications`,label:`Notifications`,description:`Allows your assistant to send macOS alerts for approvals, messages, and task updates.`}],Le=[{id:`notificationBadges`,type:`local`,label:`Notification Badges`,description:`Allows your assistant to show unseen conversation counts on the Dock icon.`}];function Re(){let[e,t]=(0,H.useState)(null);return{pendingKind:e,run:async(e,n)=>{t(e);try{await n()}catch{}finally{t(t=>t===e?null:t)}}}}function ze(){let[e,r]=(0,H.useState)(()=>n(`dockBadgesEnabled`,!0));return(0,H.useEffect)(()=>a(`dockBadgesEnabled`,()=>{r(n(`dockBadgesEnabled`,!0))}),[]),[e,e=>{r(e),t(`dockBadgesEnabled`,e),e||pe(0)}]}function Be({row:e,onToggle:t}){return(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(b,{checked:e.checked,disabled:e.disabled,"aria-label":e.label,onChange:()=>t(e.id)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>t(e.id),className:p(`block w-full text-left`,e.disabled?`cursor-not-allowed`:`cursor-pointer`),children:[(0,G.jsx)(`span`,{className:`block text-[14px] font-semibold leading-[18px] text-[var(--content-emphasised)]`,children:e.label}),(0,G.jsx)(`span`,{className:`mt-1 block text-[13px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:e.description})]}),e.error&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:e.error})]})]})}function Ve(){return(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`h-4 w-4 animate-spin rounded-full border-2 border-[var(--border-base)] border-t-[var(--content-tertiary)]`})}function He({compact:e=!1}){let{state:t,loading:n,error:r,supported:i,refresh:a}=ve(),{pendingKind:o,run:s}=Re(),[c,l]=ze(),u=(0,H.useMemo)(()=>{let e=new Map;if(!t)return e;for(let n of q){let r=t[n.sourceKind];r&&e.set(n.id,{meta:n,item:r})}return e},[t]),d=(0,H.useMemo)(()=>{let e=q.map(e=>{let t=u.get(e.id)?.item;return t?{id:e.id,label:e.label,description:e.description,checked:t.status===`granted`,disabled:o===e.id||t.status===`restricted`,...t.error?{error:t.error}:{}}:null}).filter(Boolean),t=Le.map(e=>({id:e.id,label:e.label,description:e.description,checked:c,disabled:o===e.id}));return[...e,...t]},[c,o,u]);if(!i)return null;let f=async(e,t)=>{t.status===`granted`||t.status===`denied`||!t.canRequest?await be(e.sourceKind):await xe(e.sourceKind),await a()},p=e=>{let t=u.get(e);if(t){s(e,()=>f(t.meta,t.item));return}e===`notificationBadges`&&s(e,async()=>{l(!c)})};return(0,G.jsxs)(`section`,{className:`w-full rounded-[20px] border border-[var(--border-hover)] bg-[var(--surface-lift)] px-4 pb-3 pt-5`,children:[(0,G.jsx)(`h2`,{className:`text-[18px] font-semibold leading-[22px] text-[var(--content-emphasised)]`,children:`System Permissions`}),n&&d.length===0?(0,G.jsxs)(`div`,{className:`mt-6 flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,G.jsx)(Ve,{}),`Checking permissions...`]}):(0,G.jsx)(`div`,{className:`mt-3 space-y-2`,children:d.map(e=>(0,G.jsx)(Be,{row:e,onToggle:p},e.id))}),r&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-6 rounded-lg border border-[color-mix(in_srgb,var(--system-negative-strong)_25%,transparent)] bg-[var(--system-negative-weak)] p-3 text-body-medium-lighter text-[var(--content-secondary)]`,children:r})]})}function Ue(){let e=I({platformHostedOnly:!0}),t=he(),n=we(),r=l(),{data:i,isLoading:a,isError:o}=u({...fe(),enabled:e===`full`&&t}),s=d({mutationFn:async e=>{let{data:t}=await se({body:{access_consented:e},throwOnError:!0});return t},onSuccess:e=>{de(r,void 0,e),x.success(e?.access_consented?`Admin data access enabled.`:`Admin data access disabled.`)},onError:()=>{x.error(`Failed to update log access consent.`)}});if(e===`gated`)return null;let c=e===`full`&&n,f=i?.access_consented??!1,p=e!==`full`||!t||a||o||s.isPending;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Allow admin access to assistant data`}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`Lets Vellum administrators reach privileged data on your assistant pod for debugging — today this means tailing the daily assistant log at`,` `,(0,G.jsx)(`code`,{className:`rounded bg-[var(--surface-base)] px-1.5 font-mono text-[var(--content-secondary)] dark:bg-[var(--surface-lift)] dark:text-[var(--content-default)]`,children:`/workspace/data/logs/assistant-YYYY-MM-DD.log`}),`. Off by default. Turn on temporarily when asking support to investigate an issue, then turn off when you're done.`]}),e===`full`&&o&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:`Failed to load consent setting.`})]}),(0,G.jsx)(`div`,{className:`flex items-center gap-2`,children:e===`disabled`?null:(0,G.jsxs)(G.Fragment,{children:[(s.isPending||c)&&(0,G.jsx)(C,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,G.jsx)(b,{checked:f,disabled:p,onChange:()=>s.mutate(!f)})]})})]}),e===`disabled`&&(0,G.jsx)(Ee,{className:`mt-3`,children:`Log in to the Vellum platform to manage admin data access.`})]})}function We(){let e=te(),[t,n]=(0,H.useState)(()=>ne()),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(`Face ID`),[s,c]=(0,H.useState)(!1);if((0,H.useEffect)(()=>{e&&(A().then(i),ee().then(o))},[e]),!e||!r)return null;let l=async()=>{c(!0);try{if(t)M(!1),await re(),n(!1);else{let e=ie();e&&await k(e),M(!0),n(!0)}}finally{c(!1)}};return(0,G.jsx)(B,{title:`Security`,children:(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsxs)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:[`Use `,a,` for sign-in`]}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`When your session expires, verify with `,a,` or your device passcode instead of signing in again.`]})]}),(0,G.jsx)(b,{checked:t,onChange:()=>void l(),disabled:s})]})})}function J(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}var Y=R.map(e=>({value:e.id,label:e.label,icon:(0,G.jsx)(e.icon,{className:`h-3.5 w-3.5`})}));function X(){let e=z(),t=l(),{data:n,isError:r}=u({queryKey:[`thresholds`,e],queryFn:()=>Ce(e),staleTime:3e4}),[i,a]=(0,H.useState)(`relaxed`),[o,s]=(0,H.useState)(`conservative`),[c,d]=(0,H.useState)(`strict`),[f,p]=(0,H.useState)(!1),g=(0,H.useRef)(!1),[_,v]=(0,H.useState)(!1),y=(0,H.useRef)(null),b=(0,H.useRef)(null);(0,H.useEffect)(()=>{!n||g.current||(a(L(n.interactive).id),s(L(n.autonomous).id),d(L(n.headless).id),v(!0))},[n]),(0,H.useEffect)(()=>()=>{y.current!==null&&(clearTimeout(y.current),y.current=null,b.current?.(),b.current=null)},[]);let x=(0,H.useCallback)((n,r,i)=>{if(!e||!_)return;let a=R.find(e=>e.id===n)?.riskThreshold,o=R.find(e=>e.id===r)?.riskThreshold,s=R.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||Se(e,{interactive:a,autonomous:o,headless:s}).then(()=>{t.invalidateQueries({queryKey:[`thresholds`,e]})}).catch(()=>{})},[e,_,t]),C=(0,H.useCallback)((e,t,n)=>{y.current!==null&&clearTimeout(y.current),b.current=()=>x(e,t,n),y.current=setTimeout(()=>{b.current?.(),y.current=null,b.current=null},500)},[x]),w=(0,H.useCallback)(e=>{g.current=!0,a(e),C(e,o,c)},[o,c,C]),T=(0,H.useCallback)(e=>{g.current=!0,s(e),C(i,e,c)},[i,c,C]),E=(0,H.useCallback)(e=>{g.current=!0,d(e),C(i,o,e)},[i,o,C]),D=R.find(e=>e.id===i),O=R.find(e=>e.id===o),k=R.find(e=>e.id===c),A=!e||!_;return(0,G.jsxs)(m,{children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Risk Tolerance`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Control which actions your assistant can take without asking first. Each action is classified by risk level — your tolerance determines which levels auto-approve.`}),r&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--system-negative-strong)]`,children:`Could not load threshold settings. Check your connection and reload.`}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Conversations`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When you're chatting with your assistant directly.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:i,onChange:w,options:Y,disabled:A})}),D&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:D.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>p(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":f,children:[f?(0,G.jsx)(Te,{className:`h-4 w-4`}):(0,G.jsx)(S,{className:`h-4 w-4`}),(0,G.jsx)(`span`,{className:`text-body-medium-default`,children:`Advanced`})]}),(0,G.jsxs)(`div`,{className:f?`mt-4 space-y-4`:`hidden`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Background`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When your assistant acts without you — scheduled tasks, background jobs, and external triggers.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:o,onChange:T,options:Y,disabled:A})}),O&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:O.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Headless`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When triggered externally with no interactive client.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:c,onChange:E,options:Y,disabled:A})}),k&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:k.description})]})]})]})]})]})}var Z=e(s(),1),Ge=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`],Ke=[{value:`low`,label:`Low`,description:`Auto-approve without prompting`},{value:`medium`,label:`Medium`,description:`Prompt before executing`},{value:`high`,label:`High`,description:`Always require explicit approval`}];function qe({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let i=(0,H.useRef)(null),[a,o]=(0,H.useState)(t.tool),[s,c]=(0,H.useState)(t.pattern),[l,u]=(0,H.useState)(t.risk),[d,f]=(0,H.useState)(t.description??``),[p,m]=(0,H.useState)(!1),[g,v]=(0,H.useState)(null),b=s.trim(),x=b.length>0&&!p,S=(0,H.useCallback)(async n=>{if(n.preventDefault(),!x)return;let i=d.trim()||`${a} — ${b}`;m(!0),v(null);try{await me(e,t.id,{risk:l,description:i}),r()}catch(e){v(e instanceof Error?e.message:`Failed to save trust rule.`)}finally{m(!1)}},[e,x,d,t,r,l,a,b]);return(0,Z.createPortal)((0,G.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&n()},[n]),onClick:(0,H.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Edit Trust Rule`}),(0,G.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Close`,className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(T,{className:`h-4 w-4`})})]}),(0,G.jsxs)(`form`,{onSubmit:e=>void S(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[g&&(0,G.jsx)(_,{tone:`error`,children:g}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`Tool`}),(0,G.jsx)(`div`,{className:`mt-1`,children:(0,G.jsx)(h,{value:a,onChange:o,disabled:!0,options:Ge.map(e=>({value:e,label:e}))})})]}),(0,G.jsx)(y,{label:`Pattern`,type:`text`,value:s,onChange:e=>c(e.target.value),placeholder:`e.g., git *`,disabled:!0}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:`Risk Level`}),(0,G.jsx)(`div`,{className:`mt-2 flex gap-2`,children:Ke.map(e=>(0,G.jsxs)(`button`,{type:`button`,onClick:()=>u(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${l===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`div`,{children:e.label}),(0,G.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,G.jsx)(y,{label:`Description (optional)`,type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`${a} — ${b||`pattern`}`}),(0,G.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:`Cancel`}),(0,G.jsx)(`button`,{type:`submit`,disabled:!x,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:p?`Saving…`:`Save`})]})]})]})}),document.body)}function Je(e){return e.origin===`default`&&!e.userModified}function Ye(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function Xe(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ze({assistantId:e,onClose:t}){let n=(0,H.useRef)(null),[r,i]=(0,H.useState)([]),[a,o]=(0,H.useState)(!0),[s,l]=(0,H.useState)(null),[u,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(null),[m,h]=(0,H.useState)(!1),y=(0,H.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([P(e),P(e,{origin:`default`})]);return Ye(t,n)}return P(e)},[e]),x=(0,H.useCallback)(async()=>{o(!0);try{i(await y(m)),l(null)}catch(e){l(e instanceof Error?e.message:`Failed to load trust rules.`)}finally{o(!1)}},[y,m]);(0,H.useEffect)(()=>{let e=!1;return(async()=>{o(!0);try{let t=await y(m);e||(i(t),l(null))}catch(t){e||l(t instanceof Error?t.message:`Failed to load trust rules.`)}finally{e||o(!1)}})(),()=>{e=!0}},[y,m]);let S=(0,H.useCallback)(async()=>{if(f)try{await _e(e,f.id),x()}catch(e){l(e instanceof Error?e.message:`Failed to delete trust rule.`)}finally{p(null)}},[e,f,x]);return(0,Z.createPortal)((0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:n,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&t()},[t]),onClick:(0,H.useCallback)(e=>{e.target===n.current&&t()},[t]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(b,{checked:m,onChange:h,label:`Show all defaults`}),(0,G.jsx)(c,{variant:`outlined`,onClick:t,children:`Done`})]})]}),(0,G.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[s&&(0,G.jsx)(`div`,{className:`mb-3`,children:(0,G.jsx)(_,{tone:`error`,children:s})}),a?(0,G.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Loading…`}):r.length===0?(0,G.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,G.jsx)(F,{className:`h-8 w-8`}),(0,G.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:`No trust rules yet. Rules are created when you classify actions from permission prompts.`})]}):(0,G.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:r.map(e=>{let t=Je(e);return(0,G.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,G.jsx)(v,{tone:Xe(e.risk),children:Q(e.risk)}),e.origin===`default`&&(0,G.jsx)(v,{tone:`neutral`,children:`Default`}),e.userModified&&(0,G.jsx)(v,{tone:`warning`,children:`Modified`})]}),(0,G.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,G.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,G.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Edit ${e.tool} rule`,onClick:()=>d(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(w,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Delete ${e.tool} rule`,onClick:()=>p(e),className:`rounded-lg p-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:(0,G.jsx)(ge,{className:`h-4 w-4`})})]})]},e.id)})})]})]})}),u&&(0,G.jsx)(qe,{assistantId:e,existingRule:u,onClose:()=>d(null),onSaved:()=>{d(null),x()}}),(0,G.jsx)(g,{open:f!==null,title:`Delete Trust Rule?`,message:f?`Remove the ${Q(f.risk).toLowerCase()}-risk rule for ${f.tool} matching "${f.pattern}"?`:``,confirmLabel:`Delete`,cancelLabel:`Cancel`,destructive:!0,onConfirm:()=>void S(),onCancel:()=>p(null)})]}),document.body)}function Qe(){let e=z(),[t,n]=(0,H.useState)(!1);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(F,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Manage per-tool rules that control which actions auto-approve and which require your explicit permission.`})]}),(0,G.jsx)(c,{variant:`outlined`,onClick:()=>n(!0),children:`Manage`})]}),t&&(0,G.jsx)(Ze,{assistantId:e,onClose:()=>n(!1)})]})}var $e=[{value:`dontRetain`,label:`Don't retain`},{value:`oneHour`,label:`1 hour`},{value:`oneDay`,label:`1 day`},{value:`sevenDays`,label:`7 days`},{value:`thirtyDays`,label:`30 days`},{value:`ninetyDays`,label:`90 days`},{value:`keepForever`,label:`Keep forever`}],et=`thirtyDays`;function $(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function tt(){let e=I({platformHostedOnly:!0}),t=ue.use.channelTrustFloors(),a=oe(),o=a,s=ae.use.user()?.id??null,[c,l]=(0,H.useState)(()=>n(`shareAnalytics`,!0)),[u,d]=(0,H.useState)(()=>n(`shareDiagnostics`,!0)),[f,p]=(0,H.useState)(()=>i(`llmLogRetention`,et));return(0,G.jsxs)(`div`,{className:`space-y-4`,children:[(0,G.jsx)(We,{}),(0,G.jsx)(He,{}),(0,G.jsx)(Qe,{}),t&&(0,G.jsx)(Ie,{}),(0,G.jsx)(X,{}),(0,G.jsx)(B,{title:`Privacy`,subtitle:a?(0,G.jsxs)(G.Fragment,{children:[`View details about what data we collect and how it's used in our`,` `,(0,G.jsx)(`a`,{href:le(ce.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`privacy policy`}),`.`]}):void 0,children:(0,G.jsxs)(`div`,{className:`space-y-4`,children:[o&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(V,{label:`Share Analytics`,helperText:`Send aggregated product usage data`,checked:c,onChange:()=>{let e=!c;l(e),j(`share_analytics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{}),(0,G.jsx)(V,{label:`Share Diagnostics`,helperText:`Send crash reports, conversation traces, and session replay data`,checked:u,onChange:()=>{let e=!u;d(e),j(`share_diagnostics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{})]}),(0,G.jsx)(Ue,{}),e!==`gated`&&(0,G.jsx)($,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`LLM Request Log Retention`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:f,onChange:e=>{p(e),r(`llmLogRetention`,e)},options:$e})}),(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:`How long to keep LLM request and response logs on this device. These logs record the prompts and completions sent to model providers and are used for debugging. Shorter retention improves privacy; longer retention helps troubleshoot issues.`})]})]})})]})}export{tt as PrivacyPage};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-CcgCla1v.js";import{F as s,i as c,m as l,n as u}from"./auth-store-Cc0c0sQk.js";import{a as d}from"./routes-BLyehs4B.js";import{d as f,f as p,l as m,u as h}from"./prefs-BQY2Hl9H.js";import{t as g}from"./client-feature-flag-store-DjN8fxHA.js";import{_t as _}from"./index-DhxGhfwI.js";import{a as v,c as y,i as b,n as x,o as S,t as C}from"./step-indicator-dots-CE4dEV3k.js";import{n as w,t as T}from"./consent-controls-Bk8etO5C.js";var E=e(t(),1),D=a();function O(){let e=r(),[t]=i(),a=u.use.user()?.id??null,O=o(),k=s(),A=S(g.use.stringFlags().preChatOnboardingExperiment20260606??`control`),[j,M]=h(),[N,P]=f(),[F,I]=p(),[L,R]=m(),z=c();(0,E.useEffect)(()=>{k||v()},[k]);let B=t.get(`preview`)===`true`,V=(0,E.useCallback)(e=>{},[]),H=B?V:M,U=B?V:P,W=B?V:I,G=B?V:R,K=(0,E.useCallback)(()=>{if(B){e(`${d.onboarding.prechat}?preview=true`);return}if(l({userId:a,tos:F,privacy:L,shareAnalytics:j,shareDiagnostics:N,hasPlatformSession:z}),!k){let e=y(A);b(x.privacyTos,{userId:a,variant:e})}let n=t.get(`hosting`),r=new URLSearchParams;n&&r.set(`hosting`,n);let i=r.toString();e(`${d.onboarding.hatching}${i?`?${i}`:``}`)},[L,z,k,B,e,A,t,j,N,F,a]);return(0,D.jsx)(_,{children:(0,D.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${O?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[k&&(0,D.jsx)(`div`,{className:`mb-8 flex w-full justify-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:(0,D.jsx)(C,{current:2,total:3})}),(0,D.jsx)(`h1`,{className:O?`text-title-large`:`text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.5s ease-out 0.1s both`},children:`Before You Start`}),(0,D.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${O?`mt-3.5`:`mt-4`}`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:`Choose your privacy preferences. You can update these anytime in the Settings.`}),(0,D.jsx)(w,{electron:O,shareAnalytics:j,shareDiagnostics:N,onShareAnalyticsChange:H,onShareDiagnosticsChange:U,className:`mt-8 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.4s both`}}),(0,D.jsx)(T,{electron:O,privacyConsent:L,tosAccepted:F,onPrivacyChange:G,onTosChange:W,className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.5s both`}}),(0,D.jsxs)(`div`,{className:`mt-8 flex w-full flex-col ${O?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.55s both`},children:[(0,D.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!F||!L,onClick:K,className:O?void 0:`h-11 text-base`,children:`Start`}),(0,D.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:()=>e(-1),className:O?void 0:`h-11 text-base`,children:`Back`})]})]})})}export{O as PrivacyScreen};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-C_ZTVhv8.js";import{F as s,i as c,m as l,n as u}from"./auth-store-CbVvQiBR.js";import{a as d}from"./routes-B9xcBuuC.js";import{d as f,f as p,l as m,u as h}from"./prefs-DP4g-Qgi.js";import{t as g}from"./client-feature-flag-store-DjN8fxHA.js";import{_t as _}from"./index-Cx6vyW7T.js";import{a as v,c as y,i as b,n as x,o as S,t as C}from"./step-indicator-dots-Bx_0xTIr.js";import{n as w,t as T}from"./consent-controls-o06cSwWt.js";var E=e(t(),1),D=a();function O(){let e=r(),[t]=i(),a=u.use.user()?.id??null,O=o(),k=s(),A=S(g.use.stringFlags().preChatOnboardingExperiment20260606??`control`),[j,M]=h(),[N,P]=f(),[F,I]=p(),[L,R]=m(),z=c();(0,E.useEffect)(()=>{k||v()},[k]);let B=t.get(`preview`)===`true`,V=(0,E.useCallback)(e=>{},[]),H=B?V:M,U=B?V:P,W=B?V:I,G=B?V:R,K=(0,E.useCallback)(()=>{if(B){e(`${d.onboarding.prechat}?preview=true`);return}if(l({userId:a,tos:F,privacy:L,shareAnalytics:j,shareDiagnostics:N,hasPlatformSession:z}),!k){let e=y(A);b(x.privacyTos,{userId:a,variant:e})}let n=t.get(`hosting`),r=new URLSearchParams;n&&r.set(`hosting`,n);let i=r.toString();e(`${d.onboarding.hatching}${i?`?${i}`:``}`)},[L,z,k,B,e,A,t,j,N,F,a]);return(0,D.jsx)(_,{children:(0,D.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${O?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[k&&(0,D.jsx)(`div`,{className:`mb-8 flex w-full justify-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:(0,D.jsx)(C,{current:2,total:3})}),(0,D.jsx)(`h1`,{className:O?`text-title-large`:`text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.5s ease-out 0.1s both`},children:`Before You Start`}),(0,D.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${O?`mt-3.5`:`mt-4`}`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:`Choose your privacy preferences. You can update these anytime in the Settings.`}),(0,D.jsx)(w,{electron:O,shareAnalytics:j,shareDiagnostics:N,onShareAnalyticsChange:H,onShareDiagnosticsChange:U,className:`mt-8 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.4s both`}}),(0,D.jsx)(T,{electron:O,privacyConsent:L,tosAccepted:F,onPrivacyChange:G,onTosChange:W,className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.5s both`}}),(0,D.jsxs)(`div`,{className:`mt-8 flex w-full flex-col ${O?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.55s both`},children:[(0,D.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!F||!L,onClick:K,className:O?void 0:`h-11 text-base`,children:`Start`}),(0,D.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:()=>e(-1),className:O?void 0:`h-11 text-base`,children:`Back`})]})]})})}export{O as PrivacyScreen};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-CN7ObyIk.js";import{t as n}from"./react-DJZBPgpf.js";import{d as r,h as i,t as a}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{S as s,f as c}from"./local-mode-Bg6wpc5q.js";import{R as l,U as u,l as d,n as f}from"./auth-store-Cc0c0sQk.js";import{c as p}from"./api-kMnfZUPa.js";import{a as m}from"./routes-BLyehs4B.js";import{a as h,i as g}from"./login-flow-CzPVmpoB.js";import{n as _}from"./index-DhxGhfwI.js";import{r as v,t as y}from"./account-shell-BBL0HqTX.js";var b=e(n(),1),x=o();function S(){let[e]=i(),n=r(),o=f.use.refreshSession(),S=e.get(`error`),[C,w]=(0,b.useState)(null),T=(0,b.useRef)(!1),E=e.get(`returnTo`),D=g(e);return(0,b.useEffect)(()=>{T.current||S||(T.current=!0,(async()=>{try{let t=await u(),r=l(t.ok&&!!t.data.user,t.ok?[]:t.flows??[]);switch(r.kind){case`authenticated`:{if(await o(),c())try{let e=await p();if(e.ok&&e.data.length>0&&(await s(e.data,d.getState().currentOrganizationId??void 0),!E)){n(m.assistant,{replace:!0});break}}catch{}let e=m.assistant,{destination:t,requiresFullPageNavigation:r}=h({returnTo:E,fallback:e,authIntent:D});r?window.location.href=t:n(t,{replace:!0});break}case`provider_signup`:{let t=e.get(`returnTo`);n(t?`${m.account.providerSignup}?returnTo=${encodeURIComponent(t)}`:m.account.providerSignup,{replace:!0});break}case`error`:w(r.message);break}}catch(e){t(e,{context:`provider_callback`}),w(`Something went wrong. Please try signing in again.`)}})())},[D,S,o,E,n,e]),S===`signup_closed`?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Signups are currently closed`,subtitle:`Join the community to request access or learn when signups reopen.`}),(0,x.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,x.jsx)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Join the community`}),(0,x.jsx)(a,{to:m.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:`Back to sign in`})]})]}):S||C?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Authentication failed`,subtitle:C??`Something went wrong during social sign-in. Please try again or use a different method.`}),(0,x.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,x.jsx)(a,{to:m.account.login,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Back to sign in`})})]}):(0,x.jsx)(y,{children:(0,x.jsx)(v,{title:`Completing sign-in...`,subtitle:`Please wait while we finish authenticating you.`})})}export{S as ProviderCallbackPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-AoUURkgi.js";import{t as n}from"./react-DJZBPgpf.js";import{d as r,h as i,t as a}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{S as s,f as c}from"./local-mode-BD2zqd9I.js";import{R as l,U as u,l as d,n as f}from"./auth-store-CbVvQiBR.js";import{c as p}from"./api-CjVG_nMi.js";import{a as m}from"./routes-B9xcBuuC.js";import{a as h,i as g}from"./login-flow-DVsR7fEC.js";import{n as _}from"./index-Cx6vyW7T.js";import{r as v,t as y}from"./account-shell-BBL0HqTX.js";var b=e(n(),1),x=o();function S(){let[e]=i(),n=r(),o=f.use.refreshSession(),S=e.get(`error`),[C,w]=(0,b.useState)(null),T=(0,b.useRef)(!1),E=e.get(`returnTo`),D=g(e);return(0,b.useEffect)(()=>{T.current||S||(T.current=!0,(async()=>{try{let t=await u(),r=l(t.ok&&!!t.data.user,t.ok?[]:t.flows??[]);switch(r.kind){case`authenticated`:{if(await o(),c())try{let e=await p();if(e.ok&&e.data.length>0&&(await s(e.data,d.getState().currentOrganizationId??void 0),!E)){n(m.assistant,{replace:!0});break}}catch{}let e=m.assistant,{destination:t,requiresFullPageNavigation:r}=h({returnTo:E,fallback:e,authIntent:D});r?window.location.href=t:n(t,{replace:!0});break}case`provider_signup`:{let t=e.get(`returnTo`);n(t?`${m.account.providerSignup}?returnTo=${encodeURIComponent(t)}`:m.account.providerSignup,{replace:!0});break}case`error`:w(r.message);break}}catch(e){t(e,{context:`provider_callback`}),w(`Something went wrong. Please try signing in again.`)}})())},[D,S,o,E,n,e]),S===`signup_closed`?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Signups are currently closed`,subtitle:`Join the community to request access or learn when signups reopen.`}),(0,x.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,x.jsx)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Join the community`}),(0,x.jsx)(a,{to:m.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:`Back to sign in`})]})]}):S||C?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Authentication failed`,subtitle:C??`Something went wrong during social sign-in. Please try again or use a different method.`}),(0,x.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,x.jsx)(a,{to:m.account.login,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Back to sign in`})})]}):(0,x.jsx)(y,{children:(0,x.jsx)(v,{title:`Completing sign-in...`,subtitle:`Please wait while we finish authenticating you.`})})}export{S as ProviderCallbackPage};
@@ -1 +1 @@
1
- import{Fn as e,Pt as t}from"./sdk.gen-W0KlW-sG.js";var n=`onboarding.providerKey`;function r(e){try{if(e===null){sessionStorage.removeItem(n);return}sessionStorage.setItem(n,JSON.stringify(e))}catch{}}function i(e){return typeof e==`object`&&!!e&&`provider`in e&&typeof e.provider==`string`&&`key`in e&&typeof e.key==`string`}function a(){try{let e=sessionStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);return i(t)?t:null}catch{return null}}function o(){let e=a();try{sessionStorage.removeItem(n)}catch{}return e}async function s(t,n,r){let{response:i}=await e({path:{assistant_id:t},body:{type:`api_key`,name:n,value:r},throwOnError:!1});if(!i?.ok)throw Object.assign(Error(`Failed to write provider secret`),{status:i?.status})}async function c(e,n,r){let i=r?{type:`api_key`,credential:`credential/${n}/api_key`}:{type:`none`},{response:a}=await t({path:{assistant_id:e},body:{name:n,provider:n,auth:i},throwOnError:!1});if(!a?.ok)throw Object.assign(Error(`Failed to create provider connection`),{status:a?.status})}async function l(e){let t=o();if(!t)return;let n=t.key.trim(),r=n.length>0;r&&await s(e,t.provider,n),await c(e,t.provider,r)}export{a as n,r,l as t};
1
+ import{Fn as e,Pt as t}from"./sdk.gen-DtKkd6hs.js";var n=`onboarding.providerKey`;function r(e){try{if(e===null){sessionStorage.removeItem(n);return}sessionStorage.setItem(n,JSON.stringify(e))}catch{}}function i(e){return typeof e==`object`&&!!e&&`provider`in e&&typeof e.provider==`string`&&`key`in e&&typeof e.key==`string`}function a(){try{let e=sessionStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);return i(t)?t:null}catch{return null}}function o(){let e=a();try{sessionStorage.removeItem(n)}catch{}return e}async function s(t,n,r){let{response:i}=await e({path:{assistant_id:t},body:{type:`api_key`,name:n,value:r},throwOnError:!1});if(!i?.ok)throw Object.assign(Error(`Failed to write provider secret`),{status:i?.status})}async function c(e,n,r){let i=r?{type:`api_key`,credential:`credential/${n}/api_key`}:{type:`none`},{response:a}=await t({path:{assistant_id:e},body:{name:n,provider:n,auth:i},throwOnError:!1});if(!a?.ok)throw Object.assign(Error(`Failed to create provider connection`),{status:a?.status})}async function l(e){let t=o();if(!t)return;let n=t.key.trim(),r=n.length>0;r&&await s(e,t.provider,n),await c(e,t.provider,r)}export{a as n,r,l as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{d as n,h as r,t as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{G as o,H as s,W as c,n as l}from"./auth-store-Cc0c0sQk.js";import{a as u}from"./routes-BLyehs4B.js";import{a as d,o as f}from"./login-flow-CzPVmpoB.js";import{i as p,n as m,r as h,t as g}from"./account-shell-BBL0HqTX.js";import{t as _}from"./signup-shell-CEJE1QSw.js";var v=e(t(),1),y=a();function b(){let e=n(),[t]=r(),a=l.use.refreshSession(),b=t.get(`returnTo`),[x,S]=(0,v.useState)(``),[C,w]=(0,v.useState)(``),[T,E]=(0,v.useState)(``),[D,O]=(0,v.useState)(``),[k,A]=(0,v.useState)(``),[j,M]=(0,v.useState)(null),[N,P]=(0,v.useState)(!1),[F,I]=(0,v.useState)(!0),L=(0,v.useRef)(!1);(0,v.useEffect)(()=>{L.current||(L.current=!0,(async()=>{try{let t=await s();if(!t.ok){e(u.account.login,{replace:!0});return}S(t.data.user.email??``),w(t.data.user.username??``),E(t.data.user.first_name??``),O(t.data.user.last_name??``),I(!1)}catch{e(u.account.login,{replace:!0})}})())},[e]);let R=async()=>{let t=await o({email:x,username:C});if(!t.ok){if(c(t)){await a();let t=f(b,u.account.root);t.requiresFullPageNavigation?window.location.href=t.destination:e(t.destination);return}M(t.errors[0]?.message??`Failed to complete signup.`);return}await a();let n=d({returnTo:b,fallback:u.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:e(n.destination)},z=async e=>{e.preventDefault(),M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}},B=async e=>{if(e.preventDefault(),k.trim()){M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}}};if(F)return(0,y.jsx)(g,{children:(0,y.jsx)(h,{title:`Completing signup...`,subtitle:`Please wait while we load your information.`})});if(x&&C){let e=k.trim().length>0&&!N;return(0,y.jsx)(_,{children:(0,y.jsxs)(`form`,{onSubmit:B,className:`signup-details__thread`,children:[(0,y.jsxs)(`h2`,{className:`signup-details__heading`,children:[`Almost there,`,(0,y.jsx)(`br`,{}),`one more detail`]}),j&&(0,y.jsx)(`p`,{className:`signup-details__error`,children:j}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`What should I call you? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`First name`,value:T,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`And your last name? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`Last name`,value:D,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`Your role `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:`e.g. Software Engineer`,value:k,onChange:e=>A(e.target.value),autoFocus:!0})]}),(0,y.jsx)(`div`,{className:`signup-details__step`,children:(0,y.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!e,children:N?`Setting up…`:`Continue →`})})]})})}return(0,y.jsxs)(g,{children:[(0,y.jsx)(h,{title:`Complete your account`,subtitle:`We need a few more details to finish setting up your account.`}),(0,y.jsxs)(m,{onSubmit:z,error:j,submitLabel:`Complete signup`,submittingLabel:`Completing...`,isSubmitting:N,footer:(0,y.jsx)(i,{to:u.account.login,className:`text-sm text-[var(--content-secondary)] hover:text-[var(--content-default)]`,children:`← Back to sign in`}),children:[(0,y.jsx)(p,{id:`email`,type:`email`,autoComplete:`email`,placeholder:`Email`,value:x,onChange:e=>S(e.target.value),required:!0}),(0,y.jsx)(p,{id:`username`,type:`text`,autoComplete:`username`,placeholder:`Username`,value:C,onChange:e=>w(e.target.value),required:!0})]})]})}export{b as ProviderSignupPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{d as n,h as r,t as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{G as o,H as s,W as c,n as l}from"./auth-store-CbVvQiBR.js";import{a as u}from"./routes-B9xcBuuC.js";import{a as d,o as f}from"./login-flow-DVsR7fEC.js";import{i as p,n as m,r as h,t as g}from"./account-shell-BBL0HqTX.js";import{t as _}from"./signup-shell-CEJE1QSw.js";var v=e(t(),1),y=a();function b(){let e=n(),[t]=r(),a=l.use.refreshSession(),b=t.get(`returnTo`),[x,S]=(0,v.useState)(``),[C,w]=(0,v.useState)(``),[T,E]=(0,v.useState)(``),[D,O]=(0,v.useState)(``),[k,A]=(0,v.useState)(``),[j,M]=(0,v.useState)(null),[N,P]=(0,v.useState)(!1),[F,I]=(0,v.useState)(!0),L=(0,v.useRef)(!1);(0,v.useEffect)(()=>{L.current||(L.current=!0,(async()=>{try{let t=await s();if(!t.ok){e(u.account.login,{replace:!0});return}S(t.data.user.email??``),w(t.data.user.username??``),E(t.data.user.first_name??``),O(t.data.user.last_name??``),I(!1)}catch{e(u.account.login,{replace:!0})}})())},[e]);let R=async()=>{let t=await o({email:x,username:C});if(!t.ok){if(c(t)){await a();let t=f(b,u.account.root);t.requiresFullPageNavigation?window.location.href=t.destination:e(t.destination);return}M(t.errors[0]?.message??`Failed to complete signup.`);return}await a();let n=d({returnTo:b,fallback:u.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:e(n.destination)},z=async e=>{e.preventDefault(),M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}},B=async e=>{if(e.preventDefault(),k.trim()){M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}}};if(F)return(0,y.jsx)(g,{children:(0,y.jsx)(h,{title:`Completing signup...`,subtitle:`Please wait while we load your information.`})});if(x&&C){let e=k.trim().length>0&&!N;return(0,y.jsx)(_,{children:(0,y.jsxs)(`form`,{onSubmit:B,className:`signup-details__thread`,children:[(0,y.jsxs)(`h2`,{className:`signup-details__heading`,children:[`Almost there,`,(0,y.jsx)(`br`,{}),`one more detail`]}),j&&(0,y.jsx)(`p`,{className:`signup-details__error`,children:j}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`What should I call you? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`First name`,value:T,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`And your last name? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`Last name`,value:D,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`Your role `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:`e.g. Software Engineer`,value:k,onChange:e=>A(e.target.value),autoFocus:!0})]}),(0,y.jsx)(`div`,{className:`signup-details__step`,children:(0,y.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!e,children:N?`Setting up…`:`Continue →`})})]})})}return(0,y.jsxs)(g,{children:[(0,y.jsx)(h,{title:`Complete your account`,subtitle:`We need a few more details to finish setting up your account.`}),(0,y.jsxs)(m,{onSubmit:z,error:j,submitLabel:`Complete signup`,submittingLabel:`Completing...`,isSubmitting:N,footer:(0,y.jsx)(i,{to:u.account.login,className:`text-sm text-[var(--content-secondary)] hover:text-[var(--content-default)]`,children:`← Back to sign in`}),children:[(0,y.jsx)(p,{id:`email`,type:`email`,autoComplete:`email`,placeholder:`Email`,value:x,onChange:e=>S(e.target.value),required:!0}),(0,y.jsx)(p,{id:`username`,type:`text`,autoComplete:`username`,placeholder:`Username`,value:C,onChange:e=>w(e.target.value),required:!0})]})]})}export{b as ProviderSignupPage};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./jsx-runtime-CVSDxk6A.js";import{t as r}from"./is-electron-CcgCla1v.js";import{t as i}from"./arrow-up-BHPaHiHe.js";import{t as a}from"./public-asset-CH9GPeL_.js";var o=e(t(),1);async function s(e){r()&&await window.vellum?.quickInput?.submit(e)}async function c(){r()&&await window.vellum?.quickInput?.dismiss()}var l=n();function u(){let[e,t]=(0,o.useState)(``),n=(0,o.useRef)(null);(0,o.useEffect)(()=>{n.current?.focus()},[]);let r=(0,o.useCallback)(n=>{n.preventDefault();let r=e.trim();r&&(s(r),t(``))},[e]),u=(0,o.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),c())},[]);return(0,l.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,l.jsxs)(`form`,{onSubmit:r,className:`flex w-full items-center gap-3 rounded-2xl border border-[var(--border-default)] bg-[var(--surface-base)] px-4 py-3 shadow-lg`,children:[(0,l.jsx)(`img`,{src:a(`/vellum-logo.svg`),alt:`Vellum`,width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,l.jsx)(`img`,{src:a(`/vellum-logo-white.svg`),alt:`Vellum`,width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,l.jsx)(`input`,{ref:n,type:`text`,value:e,onChange:e=>t(e.target.value),onKeyDown:u,placeholder:`Ask Vellum anything...`,className:`min-w-0 flex-1 bg-transparent text-sm text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none`}),(0,l.jsx)(`button`,{type:`submit`,disabled:!e.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,l.jsx)(i,{size:16})})]})})}export{u as QuickInputPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./jsx-runtime-CVSDxk6A.js";import{t as r}from"./is-electron-C_ZTVhv8.js";import{t as i}from"./arrow-up-nBfZxfhi.js";import{t as a}from"./public-asset-CH9GPeL_.js";var o=e(t(),1);async function s(e){r()&&await window.vellum?.quickInput?.submit(e)}async function c(){r()&&await window.vellum?.quickInput?.dismiss()}var l=n();function u(){let[e,t]=(0,o.useState)(``),n=(0,o.useRef)(null);(0,o.useEffect)(()=>{n.current?.focus()},[]);let r=(0,o.useCallback)(n=>{n.preventDefault();let r=e.trim();r&&(s(r),t(``))},[e]),u=(0,o.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),c())},[]);return(0,l.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,l.jsxs)(`form`,{onSubmit:r,className:`flex w-full items-center gap-3 rounded-2xl border border-[var(--border-default)] bg-[var(--surface-base)] px-4 py-3 shadow-lg`,children:[(0,l.jsx)(`img`,{src:a(`/vellum-logo.svg`),alt:`Vellum`,width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,l.jsx)(`img`,{src:a(`/vellum-logo-white.svg`),alt:`Vellum`,width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,l.jsx)(`input`,{ref:n,type:`text`,value:e,onChange:e=>t(e.target.value),onKeyDown:u,placeholder:`Ask Vellum anything...`,className:`min-w-0 flex-1 bg-transparent text-sm text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none`}),(0,l.jsx)(`button`,{type:`submit`,disabled:!e.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,l.jsx)(i,{size:16})})]})})}export{u as QuickInputPage};
@@ -1 +1 @@
1
- import{t as e}from"./useMutation-Lj4VunQV.js";import{t}from"./queryOptions-BtNi-_9H.js";import{t as n}from"./infiniteQueryOptions-C6p49ZmI.js";import{t as r}from"./client.gen-Bx3pJMXa.js";import{$n as i,A as a,B as o,Bn as ee,C as te,Cn as ne,Ct as s,Dt as re,E as ie,Et as ae,Ft as oe,Gn as se,Ln as ce,Lt as le,M as ue,N as de,Nt as fe,O as pe,Pn as me,Rn as he,Rt as ge,S as _e,St as ve,T as ye,Un as be,Vn as xe,Wn as Se,Xt as Ce,Zt as we,_n as Te,_t as Ee,bn as De,bt as Oe,cn as ke,dn as Ae,fn as je,gn as Me,gt as Ne,hn as c,ht as l,j as u,k as d,ln as f,nr as p,o as m,on as h,pn as g,pr as _,pt as v,rr as y,sn as b,tr as Pe,tt as Fe,un as Ie,vn as Le,vt as Re,w as ze,wn as x,x as Be,xn as Ve,xt as He,y as Ue,zn as We}from"./sdk.gen-W0KlW-sG.js";var S=(e,t,n,i)=>{let a={_id:e,baseUrl:t?.baseUrl||(t?.client??r).getConfig().baseUrl};return n&&(a._infinite=n),i&&(a.tags=i),t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},C=e=>S(`appsGet`,e),Ge=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:C(e)}),w=e=>S(`bookmarksGet`,e),Ke=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:w(e)}),qe=e=>S(`channelsAvailableGet`,e),Je=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qe(e)}),T=e=>S(`channelsReadinessGet`,e),Ye=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _e({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:T(e)}),E=e=>S(`configGet`,e),D=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:E(e)}),Xe=(e,t,n)=>e.setQueryData(D(t).queryKey,n),Ze=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Qe=t=>e({...Ze(),...t}),$e=e=>S(`configLlmCallsitesGet`,e),et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$e(e)}),tt=e=>S(`configLlmProfilesGet`,e),nt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:tt(e)}),rt=e=>S(`consolidationConfigGet`,e),it=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:rt(e)}),at=e=>({mutationFn:async t=>{let{data:n}=await d({...e,...t,throwOnError:!0});return n}}),ot=t=>e({...at(),...t}),st=e=>S(`consolidationRunsGet`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:st(e)}),O=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},k=e=>S(`consolidationRunsGet`,e,!0),lt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:o}=await a({...e,...i,signal:r,throwOnError:!0});return o},queryKey:k(e)}),ut=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),dt=t=>e({...ut(),...t}),A=e=>S(`contactsGet`,e),j=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),ft=(e,t,n)=>e.setQueryData(j(t).queryKey,n),pt=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),mt=t=>e({...pt(),...t}),ht=e=>S(`conversationstartersGet`,e),gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ht(e)}),M=e=>S(`conversationsByIdGet`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:M(e)}),N=e=>S(`documentsGet`,e),vt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await v({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:N(e)}),P=e=>S(`groupsGet`,e),F=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),yt=(e,t,n)=>e.setQueryData(F(t).queryKey,n),bt=e=>({mutationFn:async t=>{let{data:n}=await Re({...e,...t,throwOnError:!0});return n}}),xt=t=>e({...bt(),...t}),St=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),Ct=t=>e({...St(),...t}),wt=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),Tt=t=>e({...wt(),...t}),I=e=>S(`heartbeatConfigGet`,e),L=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),Et=(e,t,n)=>e.setQueryData(L(t).queryKey,n),Dt=e=>({mutationFn:async t=>{let{data:n}=await He({...e,...t,throwOnError:!0});return n}}),Ot=t=>e({...Dt(),...t}),kt=e=>({mutationFn:async t=>{let{data:n}=await ve({...e,...t,throwOnError:!0});return n}}),At=t=>e({...kt(),...t}),jt=e=>S(`heartbeatRunsGet`,e),Mt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await s({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jt(e)}),R=e=>S(`heartbeatRunsGet`,e,!0),Nt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await s({...e,...i,signal:r,throwOnError:!0});return a},queryKey:R(e)}),z=e=>S(`homeFeedGet`,e),Pt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),Ft=(e,t,n)=>e.setQueryData(Pt(t).queryKey,n),B=e=>S(`homeStateGet`,e),It=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:B(e)}),Lt=e=>S(`identityGet`,e),V=e=>S(`inferenceProviderconnectionsGet`,e),Rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),zt=e=>({mutationFn:async t=>{let{data:n}=await oe({...e,...t,throwOnError:!0});return n}}),H=e=>S(`integrationsSlackChannelConfigGet`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),Vt=e=>({mutationFn:async t=>{let{data:n}=await ge({...e,...t,throwOnError:!0});return n}}),Ht=e=>S(`memoryV2NowtextGet`,e),Ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ht(e)}),Wt=e=>S(`memoryV2RouterprompttemplateGet`,e),Gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wt(e)}),U=e=>S(`oauthAppsGet`,e),Kt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await f({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:U(e)}),qt=e=>({mutationFn:async t=>{let{data:n}=await Ie({...e,...t,throwOnError:!0});return n}}),Jt=t=>e({...qt(),...t}),Yt=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t}),W=e=>S(`oauthAppsByAppIdConnectionsGet`,e),Zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await b({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Qt=e=>({mutationFn:async t=>{let{data:n}=await ke({...e,...t,throwOnError:!0});return n}}),$t=t=>e({...Qt(),...t}),en=e=>({mutationFn:async t=>{let{data:n}=await Ae({...e,...t,throwOnError:!0});return n}}),tn=t=>e({...en(),...t}),nn=e=>S(`oauthProvidersGet`,e),rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await g({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nn(e)}),an=e=>S(`oauthProvidersByProviderKeyGet`,e),on=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:an(e)}),sn=e=>S(`pluginsGet`,e),cn=e=>({mutationFn:async t=>{let{data:n}=await c({...e,...t,throwOnError:!0});return n}}),ln=t=>e({...cn(),...t}),G=e=>S(`pluginsByNameGet`,e),un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),K=e=>S(`pluginsByNameInspectGet`,e),dn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:K(e)}),fn=e=>({mutationFn:async t=>{let{data:n}=await Le({...e,...t,throwOnError:!0});return n}}),pn=t=>e({...fn(),...t}),mn=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),hn=t=>e({...mn(),...t}),q=e=>S(`pluginsSearchGet`,e),gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),_n=e=>S(`retrospectiveConfigGet`,e),vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_n(e)}),yn=e=>S(`retrospectiveRunsGet`,e),bn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await x({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:yn(e)}),J=e=>S(`retrospectiveRunsGet`,e,!0),xn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await x({...e,...i,signal:r,throwOnError:!0});return a},queryKey:J(e)}),Sn=e=>S(`schedulesGet`,e),Cn=e=>S(`schedulesByIdRunsGet`,e),Y=e=>S(`secretsGet`,e),wn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),X=e=>S(`skillsGet`,e),Tn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),En=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),Dn=t=>e({...En(),...t}),On=e=>S(`skillsByIdFilesGet`,e),kn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await We({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:On(e)}),An=e=>S(`skillsByIdFilesContentGet`,e),jn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:An(e)}),Mn=e=>S(`skillsCategoriesGet`,e),Nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Mn(e)}),Z=e=>S(`soundsAvailableGet`,e),Pn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Q=e=>S(`soundsConfigGet`,e),$=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),Fn=(e,t,n)=>e.setQueryData($(t).queryKey,n),In=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Ln=e=>S(`ttsProvidersGet`,e),Rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ln(e)}),zn=e=>S(`usageBreakdownGet`,e),Bn=e=>S(`usageDailyGet`,e),Vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Bn(e)}),Hn=e=>S(`usageSeriesGet`,e),Un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Hn(e)}),Wn=e=>S(`usageTotalsGet`,e),Gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await y({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wn(e)}),Kn=e=>({mutationFn:async t=>{let{data:n}=await _({...e,...t,throwOnError:!0});return n}}),qn=t=>e({...Kn(),...t});export{G as $,Nt as A,ot as At,zt as B,Jt as Bt,vt as C,In as Ct,yt as D,Un as Dt,P as E,Vn as Et,It as F,xt as Ft,Gt as G,Dn as Gt,H,ln as Ht,B as I,Ot as It,Kt as J,Zt as K,qn as Kt,Lt as L,At as Lt,Mt as M,mt as Mt,z as N,Ct as Nt,L as O,Gn as Ot,Ft as P,Tt as Pt,un as Q,Rt as R,Xt as Rt,gt as S,Fn as St,F as T,zn as Tt,Vt as U,pn as Ut,Bt as V,tn as Vt,Ut as W,hn as Wt,on as X,U as Y,rn as Z,j as _,X as _t,Je as a,vn as at,_t as b,$ as bt,D as c,bn as ct,et as d,wn as dt,dn as et,nt as f,Y as ft,ct as g,Tn as gt,k as h,Nn as ht,w as i,q as it,R as j,dt as jt,Et as k,Qe as kt,E as l,Cn as lt,lt as m,kn as mt,C as n,sn as nt,Ye as o,xn as ot,it as p,jn as pt,W as q,Ke as r,gn as rt,T as s,J as st,Ge as t,K as tt,Xe as u,Sn as ut,A as v,Pn as vt,N as w,Rn as wt,M as x,Q as xt,ft as y,Z as yt,V as z,$t as zt};
1
+ import{t as e}from"./useMutation-Lj4VunQV.js";import{t}from"./queryOptions-BtNi-_9H.js";import{t as n}from"./infiniteQueryOptions-C6p49ZmI.js";import{t as r}from"./client.gen-0CkwJ2Ya.js";import{$n as i,A as a,B as o,Bn as ee,C as te,Cn as ne,Ct as s,Dt as re,E as ie,Et as ae,Ft as oe,Gn as se,Ln as ce,Lt as le,M as ue,N as de,Nt as fe,O as pe,Pn as me,Rn as he,Rt as ge,S as _e,St as ve,T as ye,Un as be,Vn as xe,Wn as Se,Xt as Ce,Zt as we,_n as Te,_t as Ee,bn as De,bt as Oe,cn as ke,dn as Ae,fn as je,gn as Me,gt as Ne,hn as c,ht as l,j as u,k as d,ln as f,nr as p,o as m,on as h,pn as g,pr as _,pt as v,rr as y,sn as b,tr as Pe,tt as Fe,un as Ie,vn as Le,vt as Re,w as ze,wn as x,x as Be,xn as Ve,xt as He,y as Ue,zn as We}from"./sdk.gen-DtKkd6hs.js";var S=(e,t,n,i)=>{let a={_id:e,baseUrl:t?.baseUrl||(t?.client??r).getConfig().baseUrl};return n&&(a._infinite=n),i&&(a.tags=i),t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},C=e=>S(`appsGet`,e),Ge=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:C(e)}),w=e=>S(`bookmarksGet`,e),Ke=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:w(e)}),qe=e=>S(`channelsAvailableGet`,e),Je=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qe(e)}),T=e=>S(`channelsReadinessGet`,e),Ye=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _e({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:T(e)}),E=e=>S(`configGet`,e),D=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:E(e)}),Xe=(e,t,n)=>e.setQueryData(D(t).queryKey,n),Ze=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Qe=t=>e({...Ze(),...t}),$e=e=>S(`configLlmCallsitesGet`,e),et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$e(e)}),tt=e=>S(`configLlmProfilesGet`,e),nt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:tt(e)}),rt=e=>S(`consolidationConfigGet`,e),it=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:rt(e)}),at=e=>({mutationFn:async t=>{let{data:n}=await d({...e,...t,throwOnError:!0});return n}}),ot=t=>e({...at(),...t}),st=e=>S(`consolidationRunsGet`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:st(e)}),O=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},k=e=>S(`consolidationRunsGet`,e,!0),lt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:o}=await a({...e,...i,signal:r,throwOnError:!0});return o},queryKey:k(e)}),ut=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),dt=t=>e({...ut(),...t}),A=e=>S(`contactsGet`,e),j=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),ft=(e,t,n)=>e.setQueryData(j(t).queryKey,n),pt=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),mt=t=>e({...pt(),...t}),ht=e=>S(`conversationstartersGet`,e),gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ht(e)}),M=e=>S(`conversationsByIdGet`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:M(e)}),N=e=>S(`documentsGet`,e),vt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await v({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:N(e)}),P=e=>S(`groupsGet`,e),F=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),yt=(e,t,n)=>e.setQueryData(F(t).queryKey,n),bt=e=>({mutationFn:async t=>{let{data:n}=await Re({...e,...t,throwOnError:!0});return n}}),xt=t=>e({...bt(),...t}),St=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),Ct=t=>e({...St(),...t}),wt=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),Tt=t=>e({...wt(),...t}),I=e=>S(`heartbeatConfigGet`,e),L=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),Et=(e,t,n)=>e.setQueryData(L(t).queryKey,n),Dt=e=>({mutationFn:async t=>{let{data:n}=await He({...e,...t,throwOnError:!0});return n}}),Ot=t=>e({...Dt(),...t}),kt=e=>({mutationFn:async t=>{let{data:n}=await ve({...e,...t,throwOnError:!0});return n}}),At=t=>e({...kt(),...t}),jt=e=>S(`heartbeatRunsGet`,e),Mt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await s({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jt(e)}),R=e=>S(`heartbeatRunsGet`,e,!0),Nt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await s({...e,...i,signal:r,throwOnError:!0});return a},queryKey:R(e)}),z=e=>S(`homeFeedGet`,e),Pt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),Ft=(e,t,n)=>e.setQueryData(Pt(t).queryKey,n),B=e=>S(`homeStateGet`,e),It=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:B(e)}),Lt=e=>S(`identityGet`,e),V=e=>S(`inferenceProviderconnectionsGet`,e),Rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),zt=e=>({mutationFn:async t=>{let{data:n}=await oe({...e,...t,throwOnError:!0});return n}}),H=e=>S(`integrationsSlackChannelConfigGet`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),Vt=e=>({mutationFn:async t=>{let{data:n}=await ge({...e,...t,throwOnError:!0});return n}}),Ht=e=>S(`memoryV2NowtextGet`,e),Ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ht(e)}),Wt=e=>S(`memoryV2RouterprompttemplateGet`,e),Gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wt(e)}),U=e=>S(`oauthAppsGet`,e),Kt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await f({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:U(e)}),qt=e=>({mutationFn:async t=>{let{data:n}=await Ie({...e,...t,throwOnError:!0});return n}}),Jt=t=>e({...qt(),...t}),Yt=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t}),W=e=>S(`oauthAppsByAppIdConnectionsGet`,e),Zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await b({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Qt=e=>({mutationFn:async t=>{let{data:n}=await ke({...e,...t,throwOnError:!0});return n}}),$t=t=>e({...Qt(),...t}),en=e=>({mutationFn:async t=>{let{data:n}=await Ae({...e,...t,throwOnError:!0});return n}}),tn=t=>e({...en(),...t}),nn=e=>S(`oauthProvidersGet`,e),rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await g({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nn(e)}),an=e=>S(`oauthProvidersByProviderKeyGet`,e),on=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:an(e)}),sn=e=>S(`pluginsGet`,e),cn=e=>({mutationFn:async t=>{let{data:n}=await c({...e,...t,throwOnError:!0});return n}}),ln=t=>e({...cn(),...t}),G=e=>S(`pluginsByNameGet`,e),un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),K=e=>S(`pluginsByNameInspectGet`,e),dn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:K(e)}),fn=e=>({mutationFn:async t=>{let{data:n}=await Le({...e,...t,throwOnError:!0});return n}}),pn=t=>e({...fn(),...t}),mn=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),hn=t=>e({...mn(),...t}),q=e=>S(`pluginsSearchGet`,e),gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),_n=e=>S(`retrospectiveConfigGet`,e),vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_n(e)}),yn=e=>S(`retrospectiveRunsGet`,e),bn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await x({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:yn(e)}),J=e=>S(`retrospectiveRunsGet`,e,!0),xn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=O(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await x({...e,...i,signal:r,throwOnError:!0});return a},queryKey:J(e)}),Sn=e=>S(`schedulesGet`,e),Cn=e=>S(`schedulesByIdRunsGet`,e),Y=e=>S(`secretsGet`,e),wn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),X=e=>S(`skillsGet`,e),Tn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),En=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),Dn=t=>e({...En(),...t}),On=e=>S(`skillsByIdFilesGet`,e),kn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await We({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:On(e)}),An=e=>S(`skillsByIdFilesContentGet`,e),jn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:An(e)}),Mn=e=>S(`skillsCategoriesGet`,e),Nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Mn(e)}),Z=e=>S(`soundsAvailableGet`,e),Pn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Q=e=>S(`soundsConfigGet`,e),$=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),Fn=(e,t,n)=>e.setQueryData($(t).queryKey,n),In=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Ln=e=>S(`ttsProvidersGet`,e),Rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ln(e)}),zn=e=>S(`usageBreakdownGet`,e),Bn=e=>S(`usageDailyGet`,e),Vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Bn(e)}),Hn=e=>S(`usageSeriesGet`,e),Un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Hn(e)}),Wn=e=>S(`usageTotalsGet`,e),Gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await y({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wn(e)}),Kn=e=>({mutationFn:async t=>{let{data:n}=await _({...e,...t,throwOnError:!0});return n}}),qn=t=>e({...Kn(),...t});export{G as $,Nt as A,ot as At,zt as B,Jt as Bt,vt as C,In as Ct,yt as D,Un as Dt,P as E,Vn as Et,It as F,xt as Ft,Gt as G,Dn as Gt,H,ln as Ht,B as I,Ot as It,Kt as J,Zt as K,qn as Kt,Lt as L,At as Lt,Mt as M,mt as Mt,z as N,Ct as Nt,L as O,Gn as Ot,Ft as P,Tt as Pt,un as Q,Rt as R,Xt as Rt,gt as S,Fn as St,F as T,zn as Tt,Vt as U,pn as Ut,Bt as V,tn as Vt,Ut as W,hn as Wt,on as X,U as Y,rn as Z,j as _,X as _t,Je as a,vn as at,_t as b,$ as bt,D as c,bn as ct,et as d,wn as dt,dn as et,nt as f,Y as ft,ct as g,Tn as gt,k as h,Nn as ht,w as i,q as it,R as j,dt as jt,Et as k,Qe as kt,E as l,Cn as lt,lt as m,kn as mt,C as n,sn as nt,Ye as o,xn as ot,it as p,jn as pt,W as q,Ke as r,gn as rt,T as s,J as st,Ge as t,K as tt,Xe as u,Sn as ut,A as v,Pn as vt,N as w,Rn as wt,M as x,Q as xt,ft as y,Z as yt,V as z,$t as zt};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-KBgJOpms.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-BlMXrA59.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{a as o}from"./routes-BLyehs4B.js";import{t as s}from"./client-feature-flag-store-DjN8fxHA.js";import{t as c}from"./conversation-store-I2d3A6Tv.js";import{t as l}from"./conversation-selection-CrdMTnwx.js";import{yt as u}from"./index-DhxGhfwI.js";var d=e(t(),1),f=a(),p=[{claim:`Software engineer based in Austin, TX`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Product engineer at an early-stage AI startup`,confidence:`confident`,sources:[`https://example.com/team`]},{claim:`Maintains an open-source CLI tool for local LLM evaluation and tooling`,confidence:`confident`,sources:[`https://github.com/example-dev`,`https://example.com/project`]},{claim:`Primarily writes TypeScript and Go`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Came up through a coding bootcamp rather than a CS degree`,confidence:`maybe`,sources:[]}],m=[{suggestion:`I'll summarize this week's AI model releases for you`,prompt:`Summarize this week's AI model releases for me.`},{suggestion:`I'll draft a technical blog post from your latest notes`,prompt:`Draft a technical blog post from my latest notes.`},{suggestion:`I'll build you a tracker for competitor product launches`,prompt:`Build me a tracker for competitor product launches.`},{suggestion:`I'll analyze a CSV of metrics and surface the trends`,prompt:`Analyze a CSV of metrics for me and surface the trends.`}];function h(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`}function g(){let e=r(),t=s.use.researchOnboarding(),[a,g]=(0,d.useState)(`results`),[_,v]=(0,d.useState)(()=>new Map),y=p.map((e,t)=>({fact:e,index:t}));return t?(0,f.jsxs)(`div`,{className:`relative h-screen w-screen`,children:[(0,f.jsx)(`div`,{className:`absolute left-1/2 top-3 z-50 flex -translate-x-1/2 gap-1 rounded-full border border-[var(--border-base)] bg-[var(--surface-lift)] p-1`,children:[`loading`,`results`,`empty`].map(e=>(0,f.jsx)(n,{variant:a===e?`primary`:`ghost`,size:`compact`,onClick:()=>g(e),children:e},e))}),(0,f.jsx)(u,{mode:a,loadingContent:(0,f.jsxs)(`div`,{className:`text-[var(--content-secondary)]`,children:[(0,f.jsx)(`p`,{className:`text-lg`,children:`Getting to know you…`}),(0,f.jsx)(`p`,{className:`text-body-medium-lighter`,children:`(mock — the live flow shows the search activity feed here)`})]}),items:y,removals:_,suggestions:m,resultsTitle:`Here's what I know about you. You can remove any that aren't true:`,showSuggestions:!0,canContinue:!0,resolveFavicon:h,onRemove:e=>v(t=>t.has(e)?t:new Map(t).set(e,null)),onSetReason:(e,t)=>v(n=>new Map(n).set(e,t)),onRestore:e=>v(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n}),onSuggestionClick:t=>{let n=l();c.getState().setActiveConversationId(n),e(`${o.conversation(n)}?prompt=${encodeURIComponent(t)}`)},onContinue:()=>e(o.assistant)})]}):(0,f.jsx)(i,{to:o.assistant,replace:!0})}export{g as ResearchMockPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{a as o}from"./routes-B9xcBuuC.js";import{t as s}from"./client-feature-flag-store-DjN8fxHA.js";import{t as c}from"./conversation-store-I2d3A6Tv.js";import{t as l}from"./conversation-selection-CrdMTnwx.js";import{yt as u}from"./index-Cx6vyW7T.js";var d=e(t(),1),f=a(),p=[{claim:`Software engineer based in Austin, TX`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Product engineer at an early-stage AI startup`,confidence:`confident`,sources:[`https://example.com/team`]},{claim:`Maintains an open-source CLI tool for local LLM evaluation and tooling`,confidence:`confident`,sources:[`https://github.com/example-dev`,`https://example.com/project`]},{claim:`Primarily writes TypeScript and Go`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Came up through a coding bootcamp rather than a CS degree`,confidence:`maybe`,sources:[]}],m=[{suggestion:`I'll summarize this week's AI model releases for you`,prompt:`Summarize this week's AI model releases for me.`},{suggestion:`I'll draft a technical blog post from your latest notes`,prompt:`Draft a technical blog post from my latest notes.`},{suggestion:`I'll build you a tracker for competitor product launches`,prompt:`Build me a tracker for competitor product launches.`},{suggestion:`I'll analyze a CSV of metrics and surface the trends`,prompt:`Analyze a CSV of metrics for me and surface the trends.`}];function h(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`}function g(){let e=r(),t=s.use.researchOnboarding(),[a,g]=(0,d.useState)(`results`),[_,v]=(0,d.useState)(()=>new Map),y=p.map((e,t)=>({fact:e,index:t}));return t?(0,f.jsxs)(`div`,{className:`relative h-screen w-screen`,children:[(0,f.jsx)(`div`,{className:`absolute left-1/2 top-3 z-50 flex -translate-x-1/2 gap-1 rounded-full border border-[var(--border-base)] bg-[var(--surface-lift)] p-1`,children:[`loading`,`results`,`empty`].map(e=>(0,f.jsx)(n,{variant:a===e?`primary`:`ghost`,size:`compact`,onClick:()=>g(e),children:e},e))}),(0,f.jsx)(u,{mode:a,loadingContent:(0,f.jsxs)(`div`,{className:`text-[var(--content-secondary)]`,children:[(0,f.jsx)(`p`,{className:`text-lg`,children:`Getting to know you…`}),(0,f.jsx)(`p`,{className:`text-body-medium-lighter`,children:`(mock — the live flow shows the search activity feed here)`})]}),items:y,removals:_,suggestions:m,resultsTitle:`Here's what I know about you. You can remove any that aren't true:`,showSuggestions:!0,canContinue:!0,resolveFavicon:h,onRemove:e=>v(t=>t.has(e)?t:new Map(t).set(e,null)),onSetReason:(e,t)=>v(n=>new Map(n).set(e,t)),onRestore:e=>v(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n}),onSuggestionClick:t=>{let n=l();c.getState().setActiveConversationId(n),e(`${o.conversation(n)}?prompt=${encodeURIComponent(t)}`)},onContinue:()=>e(o.assistant)})]}):(0,f.jsx)(i,{to:o.assistant,replace:!0})}export{g as ResearchMockPage};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-CN7ObyIk.js";import{t as n}from"./react-DJZBPgpf.js";import{t as r}from"./button-D7s2Q_uG.js";import{d as i,r as a}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{t as s}from"./cn-DvW5mxZR.js";import{t as c}from"./tag-CE_o2aao.js";import{t as l}from"./input-Ch7OC6ME.js";import{n as u,t as d}from"./create-selectors-BE0_e_Ed.js";import{t as f}from"./arrow-left-CEu7Dsda.js";import{t as p}from"./chevron-left-BFX62ERI.js";import{t as m}from"./chevron-right-Cc3NZhAF.js";import{t as h}from"./loader-circle-YAV9sMh_.js";import{t as g}from"./pencil-Cyrr5VNX.js";import{t as _}from"./sparkles-BoIJjAXt.js";import{t as v}from"./x-b3o2p6YU.js";import{X as y,en as b,tn as x}from"./sdk.gen-W0KlW-sG.js";import{r as S}from"./api-errors-C3sAdlZQ.js";import{Y as C,at as w,it as T,n as E,nt as D,rt as O}from"./auth-store-Cc0c0sQk.js";import{a as k,o as ee,r as A}from"./api-kMnfZUPa.js";import{a as te}from"./routes-BLyehs4B.js";import{t as ne}from"./client-feature-flag-store-DjN8fxHA.js";import{a as j,l as re,o as M,s as N,t as P,u as ie}from"./proxy-l3iqYpig.js";import{t as F}from"./use-reduced-motion-DgX4o6QR.js";import{E as I,Q as L,Z as R,_t as ae,bt as oe,jt as z,sa as B,st as se,vt as ce,yn as le}from"./index-DhxGhfwI.js";import{t as ue}from"./prechat-names-CkLrL-Jh.js";function de(e){e.values.forEach(e=>e.stop())}function V(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&M(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{V(e,t)})})}function fe(e,t){if(Array.isArray(t))return V(e,t);if(typeof t==`string`)return V(e,[t]);M(e,t)}function pe(){let e=!1,t=new Set,n={subscribe(e){return t.add(e),()=>void t.delete(e)},start(n,r){N(e,`controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.`);let i=[];return t.forEach(e=>{i.push(j(e,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return N(e,`controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.`),t.forEach(e=>{fe(e,n)})},stop(){t.forEach(e=>{de(e)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function me(){let e=ie(pe);return re(e.mount,[]),e}var H=e(n(),1);function he({firstName:e,lastName:t,occupation:n,hobby:r}){let i=[e.trim(),t.trim()].filter(Boolean).join(` `),a=n.trim(),o=r?.trim()??``;return`${[i?`My name is ${i}.`:``,a?`I work as ${a}.`:``,o?`My hobby is ${o}.`:``].filter(Boolean).join(` `)||`I'd like you to get to know me before we start working together.`}
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-AoUURkgi.js";import{t as n}from"./react-DJZBPgpf.js";import{t as r}from"./button-D7s2Q_uG.js";import{d as i,r as a}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{t as s}from"./cn-DvW5mxZR.js";import{t as c}from"./tag-CE_o2aao.js";import{t as l}from"./input-Ch7OC6ME.js";import{n as u,t as d}from"./create-selectors-BE0_e_Ed.js";import{t as f}from"./arrow-left-CP-EhDNF.js";import{t as p}from"./chevron-left-o_oJAd6A.js";import{t as m}from"./chevron-right-BNHlGCTg.js";import{t as h}from"./loader-circle-Cw1KvvLK.js";import{t as g}from"./pencil-Dm2eFMe3.js";import{t as _}from"./sparkles-C8hCShdb.js";import{t as v}from"./x-BeVbiDS2.js";import{X as y,en as b,tn as x}from"./sdk.gen-DtKkd6hs.js";import{r as S}from"./api-errors-D3EsNrwn.js";import{Y as C,at as w,it as T,n as E,nt as D,rt as O}from"./auth-store-CbVvQiBR.js";import{a as k,o as ee,r as A}from"./api-CjVG_nMi.js";import{a as te}from"./routes-B9xcBuuC.js";import{t as ne}from"./client-feature-flag-store-DjN8fxHA.js";import{a as j,l as re,o as M,s as N,t as P,u as ie}from"./proxy-l3iqYpig.js";import{t as F}from"./use-reduced-motion-DgX4o6QR.js";import{D as I,Q as L,Z as R,_t as ae,bt as oe,jt as z,sa as B,st as se,vt as ce,yn as le}from"./index-Cx6vyW7T.js";import{t as ue}from"./prechat-names-CkLrL-Jh.js";function de(e){e.values.forEach(e=>e.stop())}function V(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&M(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{V(e,t)})})}function fe(e,t){if(Array.isArray(t))return V(e,t);if(typeof t==`string`)return V(e,[t]);M(e,t)}function pe(){let e=!1,t=new Set,n={subscribe(e){return t.add(e),()=>void t.delete(e)},start(n,r){N(e,`controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.`);let i=[];return t.forEach(e=>{i.push(j(e,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return N(e,`controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.`),t.forEach(e=>{fe(e,n)})},stop(){t.forEach(e=>{de(e)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function me(){let e=ie(pe);return re(e.mount,[]),e}var H=e(n(),1);function he({firstName:e,lastName:t,occupation:n,hobby:r}){let i=[e.trim(),t.trim()].filter(Boolean).join(` `),a=n.trim(),o=r?.trim()??``;return`${[i?`My name is ${i}.`:``,a?`I work as ${a}.`:``,o?`My hobby is ${o}.`:``].filter(Boolean).join(` `)||`I'd like you to get to know me before we start working together.`}
2
2
 
3
3
  Get to know me. Search the web for what's publicly known about the person matching my name and role, and infer a handful of things about who I am: what I do, my role, where I'm based, what I'm into, anything that would help you assist me better. Lean on public sources (LinkedIn, company pages, social profiles, articles, personal sites, GitHub). It's fine to make reasonable inferences and label them honestly.
4
4
 
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-KBgJOpms.js";import{r as t}from"./api-errors-C3sAdlZQ.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
1
+ import{t as e}from"./createLucideIcon-BlMXrA59.js";import{r as t}from"./api-errors-D3EsNrwn.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
@@ -1 +1 @@
1
- import{n as e,t}from"./create-selectors-BE0_e_Ed.js";import{W as n,at as r,d as i,f as a,it as o,p as s,rt as c}from"./local-mode-Bg6wpc5q.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:o(),assistantsHydrated:!1,setFromLockfile:n=>{let r=m(n),a=new Map(t().assistants.map(e=>[e.id,e]));e({assistants:n.assistants.map(e=>({id:e.assistantId,name:e.name,hatchedAt:e.hatchedAt,cloud:e.cloud,runtimeVersion:e.resources?.runtimeVersion,currentReleaseVersion:a.get(e.assistantId)?.currentReleaseVersion,releaseChannel:a.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:r===e.assistantId,isLocal:i(e),isPlatformHosted:s(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=p(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,isLocal:e.is_local,isPlatformHosted:!e.is_local}})}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let i=[...e.assistants],a=p(t.id);return i[r]={...n,cloud:a.cloud??i[r].cloud,organizationId:i[r].organizationId,runtimeVersion:a.runtimeVersion??i[r].runtimeVersion,isActiveLockfileAssistant:a.isActiveLockfileAssistant??i[r].isActiveLockfileAssistant},{assistants:i}}let i=p(t.id);return{assistants:[...e.assistants,{...n,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,isActiveLockfileAssistant:i.isActiveLockfileAssistant}]}}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedAssistant:t=>{t==null?c():r(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:n,selectedAssistantId:r,assistantsHydrated:i}=e();!i||r==null||n.some(e=>e.id===r)||(c(),t({selectedAssistantId:null}))}var f=t(u);function p(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?m(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,isActiveLockfileAssistant:t?i===e:void 0}}function m(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}a()&&n.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:o()})});export{f as n,l as t};
1
+ import{n as e,t}from"./create-selectors-BE0_e_Ed.js";import{K as n,at as r,d as i,f as a,ot as o,p as s,st as c}from"./local-mode-BD2zqd9I.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:o(),assistantsHydrated:!1,setFromLockfile:n=>{let r=m(n),a=new Map(t().assistants.map(e=>[e.id,e]));e({assistants:n.assistants.map(e=>({id:e.assistantId,name:e.name,hatchedAt:e.hatchedAt,cloud:e.cloud,runtimeVersion:e.resources?.runtimeVersion,currentReleaseVersion:a.get(e.assistantId)?.currentReleaseVersion,releaseChannel:a.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:r===e.assistantId,isLocal:i(e),isPlatformHosted:s(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=p(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,isLocal:e.is_local,isPlatformHosted:!e.is_local}})}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let i=[...e.assistants],a=p(t.id);return i[r]={...n,cloud:a.cloud??i[r].cloud,organizationId:i[r].organizationId,runtimeVersion:a.runtimeVersion??i[r].runtimeVersion,isActiveLockfileAssistant:a.isActiveLockfileAssistant??i[r].isActiveLockfileAssistant},{assistants:i}}let i=p(t.id);return{assistants:[...e.assistants,{...n,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,isActiveLockfileAssistant:i.isActiveLockfileAssistant}]}}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedAssistant:t=>{t==null?r():c(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:n,selectedAssistantId:i,assistantsHydrated:a}=e();!a||i==null||n.some(e=>e.id===i)||(r(),t({selectedAssistantId:null}))}var f=t(u);function p(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?m(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,isActiveLockfileAssistant:t?i===e:void 0}}function m(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}a()&&n.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:o()})});export{f as n,l as t};
@@ -1 +1 @@
1
- import{X as e,q as t,tt as n}from"./local-mode-Bg6wpc5q.js";var r=`/v1/remote-web/pairing-token`,i=`/v1/remote-web/pairing-challenge`,a=`/v1/guardian/refresh`,o=5,s=5e3,c=`vellum:remote-gateway:refresh-lock`,l=`vellum-remote-gateway-refresh`,u=2e4,d=2e4,f=100,p=0,m=null,h=class extends Error{status;constructor(e,t){super(t),this.name=`RemoteWebPairingError`,this.status=e}};function g(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function _(e){let t=new URLSearchParams(e.search),n=e.hash.startsWith(`#`)?e.hash.slice(1):e.hash;if(n){let e=new URLSearchParams(n);for(let[n,r]of e)t.has(n)||t.set(n,r)}return t}function v(e){let t=_(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:g(t,`deviceCode`,`device_code`),userCode:g(t,`userCode`,`user_code`)}}function y(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function b(e,t=window.location){return`${y(t)}${e}`}function x(){return`${window.location.origin}${y()}`}function S(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function C(){return!e()||p<=0?!0:Date.now()>=p-s}function w(e){let t=e;return t?.status===`approved`&&typeof t.accessToken==`string`&&(typeof t.accessTokenExpiresAt==`string`||typeof t.accessTokenExpiresAt==`number`)&&(typeof t.refreshAfter==`string`||typeof t.refreshAfter==`number`)}function T(e){let t=e;return typeof t?.deviceCode==`string`&&typeof t.userCode==`string`&&typeof t.verificationUri==`string`&&typeof t.expiresAt==`string`&&typeof t.expiresInSeconds==`number`&&typeof t.intervalSeconds==`number`}function E(e){return new Promise(t=>setTimeout(t,e))}function D(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);return typeof t.owner!=`string`||typeof t.expiresAt!=`number`?null:{owner:t.owner,expiresAt:t.expiresAt}}catch{return null}}function O(e){try{let t=D();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),D()?.owner===e)}catch{return!0}}function k(e){try{D()?.owner===e&&localStorage.removeItem(c)}catch{}}async function A(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!O(t);){if(Date.now()>=n)return e();await E(f)}try{return await e()}finally{k(t)}}async function j(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):A(e)}function M(e){p=S(e.refreshAfter),n({accessToken:e.accessToken,accessTokenExpiresAt:e.accessTokenExpiresAt}),t({url:`${window.location.origin}${y()}`,token:e.accessToken})}async function N(e,t){let n=await fetch(b(r),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({deviceCode:e}),signal:t}),i=await n.json().catch(()=>null);if(n.status===202){let e=i??{};return{status:`pending`,expiresAt:typeof e.expiresAt==`string`?e.expiresAt:``,intervalSeconds:typeof e.intervalSeconds==`number`&&e.intervalSeconds>0?e.intervalSeconds:o}}if(!n.ok)throw new h(n.status,`Pairing token exchange failed: ${n.status}`);if(!w(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function P(e){let t=await fetch(b(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:x()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!T(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function F(){if(!C())return!0;let e=await fetch(b(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return w({...t,status:`approved`})?(M({...t,status:`approved`}),!0):!1}async function I(){return C()?(m??=j(F).finally(()=>{m=null}),m):!0}function L(e){return e===`vellum.ai`||e.endsWith(`.vellum.ai`)}var R=/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;function z(e,t){if(!e)return t;if(R.test(e)){try{let t=new URL(e);if(t.protocol===`https:`&&L(t.hostname))return e}catch{}return t}return e.startsWith(`//`)||e.includes(`\\`)||!e.startsWith(`/`)?t:e}export{N as a,y as c,P as i,h as n,v as o,M as r,I as s,z as t};
1
+ import{Q as e,Y as t,rt as n}from"./local-mode-BD2zqd9I.js";var r=`/v1/remote-web/pairing-token`,i=`/v1/remote-web/pairing-challenge`,a=`/v1/guardian/refresh`,o=5,s=5e3,c=`vellum:remote-gateway:refresh-lock`,l=`vellum-remote-gateway-refresh`,u=2e4,d=2e4,f=100,p=0,m=null,h=class extends Error{status;constructor(e,t){super(t),this.name=`RemoteWebPairingError`,this.status=e}};function g(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function _(e){let t=new URLSearchParams(e.search),n=e.hash.startsWith(`#`)?e.hash.slice(1):e.hash;if(n){let e=new URLSearchParams(n);for(let[n,r]of e)t.has(n)||t.set(n,r)}return t}function v(e){let t=_(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:g(t,`deviceCode`,`device_code`),userCode:g(t,`userCode`,`user_code`)}}function y(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function b(e,t=window.location){return`${y(t)}${e}`}function x(){return`${window.location.origin}${y()}`}function S(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function C(){return!e()||p<=0?!0:Date.now()>=p-s}function w(e){let t=e;return t?.status===`approved`&&typeof t.accessToken==`string`&&(typeof t.accessTokenExpiresAt==`string`||typeof t.accessTokenExpiresAt==`number`)&&(typeof t.refreshAfter==`string`||typeof t.refreshAfter==`number`)}function T(e){let t=e;return typeof t?.deviceCode==`string`&&typeof t.userCode==`string`&&typeof t.verificationUri==`string`&&typeof t.expiresAt==`string`&&typeof t.expiresInSeconds==`number`&&typeof t.intervalSeconds==`number`}function E(e){return new Promise(t=>setTimeout(t,e))}function D(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);return typeof t.owner!=`string`||typeof t.expiresAt!=`number`?null:{owner:t.owner,expiresAt:t.expiresAt}}catch{return null}}function O(e){try{let t=D();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),D()?.owner===e)}catch{return!0}}function k(e){try{D()?.owner===e&&localStorage.removeItem(c)}catch{}}async function A(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!O(t);){if(Date.now()>=n)return e();await E(f)}try{return await e()}finally{k(t)}}async function j(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):A(e)}function M(e){p=S(e.refreshAfter),n({accessToken:e.accessToken,accessTokenExpiresAt:e.accessTokenExpiresAt}),t({url:`${window.location.origin}${y()}`,token:e.accessToken})}async function N(e,t){let n=await fetch(b(r),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({deviceCode:e}),signal:t}),i=await n.json().catch(()=>null);if(n.status===202){let e=i??{};return{status:`pending`,expiresAt:typeof e.expiresAt==`string`?e.expiresAt:``,intervalSeconds:typeof e.intervalSeconds==`number`&&e.intervalSeconds>0?e.intervalSeconds:o}}if(!n.ok)throw new h(n.status,`Pairing token exchange failed: ${n.status}`);if(!w(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function P(e){let t=await fetch(b(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:x()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!T(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function F(){if(!C())return!0;let e=await fetch(b(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return w({...t,status:`approved`})?(M({...t,status:`approved`}),!0):!1}async function I(){return C()?(m??=j(F).finally(()=>{m=null}),m):!0}function L(e){return e===`vellum.ai`||e.endsWith(`.vellum.ai`)}var R=/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;function z(e,t){if(!e)return t;if(R.test(e)){try{let t=new URL(e);if(t.protocol===`https:`&&L(t.hostname))return e}catch{}return t}return e.startsWith(`//`)||e.includes(`\\`)||!e.startsWith(`/`)?t:e}export{N as a,y as c,P as i,h as n,v as o,M as r,I as s,z as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-CcgCla1v.js";import{i as s,m as c,n as l}from"./auth-store-Cc0c0sQk.js";import{t as u}from"./return-to-BcgKmS7W.js";import{a as d}from"./routes-BLyehs4B.js";import{c as f,d as p,f as m,l as h,s as g,u as _}from"./prefs-BQY2Hl9H.js";import{Hr as v,Nn as y,_t as b}from"./index-DhxGhfwI.js";import{n as x,t as S}from"./consent-controls-Bk8etO5C.js";var C=e(t(),1),w={},T={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function E(e){return w[e]??[]}function D(e){return T[e]??[]}var O=a();function k(){let e=r(),[t]=i(),a=l.use.user()?.id??null,w=l.use.logout(),T=o(),k=s(),[A,j]=m(),[M,N]=h(),[P,F]=_(),[I,L]=p(),[R]=g(),[z]=f(),[B]=(0,C.useState)(()=>!A),[V]=(0,C.useState)(()=>!M),[H]=(0,C.useState)(()=>!R),[U]=(0,C.useState)(()=>!z),W=!B&&!V&&!H&&!U,G=B||W,K=V||W,q=H||W,J=U||W,Y=!W&&!B&&!V,X=W?`Terms & privacy`:Y?`Review your privacy preferences`:`Updated terms`,Z=W?`Review your terms and privacy preferences anytime.`:Y?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,Q=(0,C.useCallback)(()=>{c({userId:a,tos:A,privacy:M,shareAnalytics:P,shareDiagnostics:I,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,P,I,A,a]),$=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ee=G&&!A||K&&!M;return(0,O.jsx)(b,{showCreatureFooter:!1,children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${T?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,O.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,O.jsx)(v,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,O.jsx)(`h1`,{className:`mt-5 ${T?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:X}),(0,O.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${T?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:Z}),(q||J)&&(0,O.jsx)(x,{electron:T,showAnalytics:q,showDiagnostics:J,shareAnalytics:P,shareDiagnostics:I,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(K||G)&&(0,O.jsx)(S,{electron:T,showPrivacy:K,showTos:G,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:K?D(`2026-06-22`):[],tosNotes:G?E(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,O.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${T?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,O.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:ee,onClick:Q,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:$,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-C_ZTVhv8.js";import{i as s,m as c,n as l}from"./auth-store-CbVvQiBR.js";import{t as u}from"./return-to-DxTXKF-C.js";import{a as d}from"./routes-B9xcBuuC.js";import{c as f,d as p,f as m,l as h,s as g,u as _}from"./prefs-DP4g-Qgi.js";import{Hr as v,Nn as y,_t as b}from"./index-Cx6vyW7T.js";import{n as x,t as S}from"./consent-controls-o06cSwWt.js";var C=e(t(),1),w={},T={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function E(e){return w[e]??[]}function D(e){return T[e]??[]}var O=a();function k(){let e=r(),[t]=i(),a=l.use.user()?.id??null,w=l.use.logout(),T=o(),k=s(),[A,j]=m(),[M,N]=h(),[P,F]=_(),[I,L]=p(),[R]=g(),[z]=f(),[B]=(0,C.useState)(()=>!A),[V]=(0,C.useState)(()=>!M),[H]=(0,C.useState)(()=>!R),[U]=(0,C.useState)(()=>!z),W=!B&&!V&&!H&&!U,G=B||W,K=V||W,q=H||W,J=U||W,Y=!W&&!B&&!V,X=W?`Terms & privacy`:Y?`Review your privacy preferences`:`Updated terms`,Z=W?`Review your terms and privacy preferences anytime.`:Y?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,Q=(0,C.useCallback)(()=>{c({userId:a,tos:A,privacy:M,shareAnalytics:P,shareDiagnostics:I,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,P,I,A,a]),$=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ee=G&&!A||K&&!M;return(0,O.jsx)(b,{showCreatureFooter:!1,children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${T?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,O.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,O.jsx)(v,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,O.jsx)(`h1`,{className:`mt-5 ${T?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:X}),(0,O.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${T?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:Z}),(q||J)&&(0,O.jsx)(x,{electron:T,showAnalytics:q,showDiagnostics:J,shareAnalytics:P,shareDiagnostics:I,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(K||G)&&(0,O.jsx)(S,{electron:T,showPrivacy:K,showTos:G,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:K?D(`2026-06-22`):[],tosNotes:G?E(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,O.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${T?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,O.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:ee,onClick:Q,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:$,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};
@@ -1 +1 @@
1
- import{t as e}from"./is-electron-CcgCla1v.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/logs/usage`),i=`message`,a={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${i}=${encodeURIComponent(r)}`,conversationWithPrompt:(e,r,i)=>{let a=`${n(t(`/assistant/conversations`),e)}?prompt=${encodeURIComponent(r)}`;return i?`${a}&relay=${encodeURIComponent(i)}`:a},inspect:e=>`${n(t(`/assistant/conversations`),e)}/inspect`,logs:{root:t(`/assistant/logs`),trace:t(`/assistant/logs/trace`),usage:r,usageForSchedule:e=>`${r}?${new URLSearchParams({range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,emails:t(`/assistant/logs/emails`),systemEvents:t(`/assistant/logs/system-events`)},account:{root:t(`/account`),login:t(`/account/login`),signup:t(`/account/signup`),providerSignup:t(`/account/provider/signup`),providerCallback:t(`/account/provider/callback`),oauth:{popupComplete:t(`/account/oauth/popup-complete`),complete:t(`/account/oauth/complete`),desktopComplete:t(`/account/oauth/desktop-complete`)}},welcome:t(`/assistant/welcome`),selectAssistant:t(`/assistant/select-assistant`),reviewTerms:t(`/assistant/review-terms`),onboarding:{hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),prechat:t(`/assistant/onboarding/prechat`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),identity:t(`/assistant/identity`),plugins:t(`/assistant/plugins`),plugin:e=>n(t(`/assistant/plugins`),e),skills:t(`/assistant/skills`),workspace:t(`/assistant/workspace`),library:{root:t(`/assistant/library`),app:e=>n(t(`/assistant/library`),e)},document:e=>n(t(`/assistant/documents`),e),connect:t(`/assistant/connect`),contacts:{root:t(`/assistant/contacts`)},settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),notifications:t(`/assistant/settings/notifications`),keyboardShortcuts:t(`/assistant/settings/keyboard-shortcuts`),sounds:t(`/assistant/settings/sounds`),voice:t(`/assistant/settings/voice`),devices:t(`/assistant/settings/devices`),privacy:t(`/assistant/settings/privacy`),archive:t(`/assistant/settings/archive`),bookmarks:t(`/assistant/settings/bookmarks`),billing:t(`/assistant/settings/billing`),community:t(`/assistant/settings/community`),debug:t(`/assistant/settings/debug`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),advanced:t(`/assistant/settings/advanced`),dangerZone:t(`/assistant/settings/danger-zone`),systemEvents:t(`/assistant/settings/system-events`),upgradeCancel:t(`/assistant/settings/billing/upgrade/cancel`),upgradeSuccess:t(`/assistant/settings/billing/upgrade/success`)},admin:{root:t(`/admin`)},docs:{hostingOptions:t(`/docs/hosting-options`),legal:{privacyPolicy:t(`/docs/privacy-policy`),termsOfUse:t(`/docs/vellum-terms-of-use`),dataSharing:t(`/docs/data-sharing`),prohibitedUse:t(`/docs/prohibited-use`),privacyAndData:t(`/docs/trust-security/privacy-and-data`)}}},o=`vellum.ai`;function s(e){return c(e)}function c(e){return`https://${o}${e}`}function l(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${a.admin.root}`:a.admin.root}export{a,s as i,l as n,c as r,i as t};
1
+ import{t as e}from"./is-electron-C_ZTVhv8.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/logs/usage`),i=`message`,a={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${i}=${encodeURIComponent(r)}`,conversationWithPrompt:(e,r,i)=>{let a=`${n(t(`/assistant/conversations`),e)}?prompt=${encodeURIComponent(r)}`;return i?`${a}&relay=${encodeURIComponent(i)}`:a},inspect:e=>`${n(t(`/assistant/conversations`),e)}/inspect`,logs:{root:t(`/assistant/logs`),trace:t(`/assistant/logs/trace`),usage:r,usageForSchedule:e=>`${r}?${new URLSearchParams({range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,emails:t(`/assistant/logs/emails`),systemEvents:t(`/assistant/logs/system-events`)},account:{root:t(`/account`),login:t(`/account/login`),signup:t(`/account/signup`),providerSignup:t(`/account/provider/signup`),providerCallback:t(`/account/provider/callback`),oauth:{popupComplete:t(`/account/oauth/popup-complete`),complete:t(`/account/oauth/complete`),desktopComplete:t(`/account/oauth/desktop-complete`)}},welcome:t(`/assistant/welcome`),selectAssistant:t(`/assistant/select-assistant`),reviewTerms:t(`/assistant/review-terms`),onboarding:{hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),prechat:t(`/assistant/onboarding/prechat`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),identity:t(`/assistant/identity`),plugins:t(`/assistant/plugins`),plugin:e=>n(t(`/assistant/plugins`),e),skills:t(`/assistant/skills`),workspace:t(`/assistant/workspace`),library:{root:t(`/assistant/library`),app:e=>n(t(`/assistant/library`),e)},document:e=>n(t(`/assistant/documents`),e),connect:t(`/assistant/connect`),contacts:{root:t(`/assistant/contacts`)},settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),notifications:t(`/assistant/settings/notifications`),keyboardShortcuts:t(`/assistant/settings/keyboard-shortcuts`),sounds:t(`/assistant/settings/sounds`),voice:t(`/assistant/settings/voice`),devices:t(`/assistant/settings/devices`),privacy:t(`/assistant/settings/privacy`),archive:t(`/assistant/settings/archive`),bookmarks:t(`/assistant/settings/bookmarks`),billing:t(`/assistant/settings/billing`),community:t(`/assistant/settings/community`),debug:t(`/assistant/settings/debug`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),advanced:t(`/assistant/settings/advanced`),dangerZone:t(`/assistant/settings/danger-zone`),systemEvents:t(`/assistant/settings/system-events`),upgradeCancel:t(`/assistant/settings/billing/upgrade/cancel`),upgradeSuccess:t(`/assistant/settings/billing/upgrade/success`)},admin:{root:t(`/admin`)},docs:{hostingOptions:t(`/docs/hosting-options`),legal:{privacyPolicy:t(`/docs/privacy-policy`),termsOfUse:t(`/docs/vellum-terms-of-use`),dataSharing:t(`/docs/data-sharing`),prohibitedUse:t(`/docs/prohibited-use`),privacyAndData:t(`/docs/trust-security/privacy-and-data`)}}},o=`vellum.ai`;function s(e){return c(e)}function c(e){return`https://${o}${e}`}function l(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${a.admin.root}`:a.admin.root}export{a,s as i,l as n,c as r,i as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-KBgJOpms.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-BlMXrA59.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
@@ -1 +1 @@
1
- import{kn as e}from"./sdk.gen-W0KlW-sG.js";import{n as t,r as n,t as r}from"./api-errors-C3sAdlZQ.js";function i(e){let t=e.llm?.profiles;if(!t)return{};let n={};for(let[e,r]of Object.entries(t)){if(!r)continue;let t=r.label?.trim()||e,i=r.description?.trim()||void 0;n[e]={id:e,displayName:t,...i?{description:i}:{}}}return n}function a(e){let t=e,n=t.description??``;return{...e,description:n,cadenceDescription:t.cadenceDescription??n}}async function o(i){let{data:o,error:s,response:c}=await e({path:{assistant_id:i},throwOnError:!1});if(t(c,s,`Failed to load schedules.`),!c.ok)throw new r(c.status,n(s,c,`Failed to load schedules.`));return(o?.schedules??[]).map(a)}export{i as n,o as t};
1
+ import{kn as e}from"./sdk.gen-DtKkd6hs.js";import{n as t,r as n,t as r}from"./api-errors-D3EsNrwn.js";function i(e){let t=e.llm?.profiles;if(!t)return{};let n={};for(let[e,r]of Object.entries(t)){if(!r)continue;let t=r.label?.trim()||e,i=r.description?.trim()||void 0;n[e]={id:e,displayName:t,...i?{description:i}:{}}}return n}function a(e){let t=e,n=t.description??``;return{...e,description:n,cadenceDescription:t.cadenceDescription??n}}async function o(i){let{data:o,error:s,response:c}=await e({path:{assistant_id:i},throwOnError:!1});if(t(c,s,`Failed to load schedules.`),!c.ok)throw new r(c.status,n(s,c,`Failed to load schedules.`));return(o?.schedules??[]).map(a)}export{i as n,o as t};
@@ -1 +1 @@
1
- import{n as e,t}from"./client.gen-Bx3pJMXa.js";var n=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps`,...e}),r=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/delete`,...e}),i=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/open`,...e}),a=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/publish`,...e}),o=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps/{id}/publish-status`,...e}),s=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/share-cloud`,...e}),c=e=>(e.client??t).post({bodySerializer:null,url:`/v1/assistants/{assistant_id}/apps/import-bundle`,...e,headers:{"Content-Type":`application/octet-stream`,...e.headers}}),l=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps/shared/{token}`,...e}),u=n=>(n.client??t).post({...e,url:`/v1/assistants/{assistant_id}/attachments`,...n,headers:{"Content-Type":null,...n.headers}}),d=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/attachments/{id}/content`,...e}),f=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/avatar/character-components`,...e}),p=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/avatar/image`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),m=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/avatar/render-from-traits`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),h=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/avatar/state`,...e}),g=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/backups`,...e}),_=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/backups/create`,...e}),v=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/backups/restore`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),y=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/bookmarks`,...e}),b=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/bookmarks`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),x=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/bookmarks/by-message/{messageId}`,...e}),S=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/channels/available`,...e}),C=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/channels/readiness`,...e}),w=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config`,...e}),T=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),E=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config/llm/call-sites`,...e}),D=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config/llm/profiles`,...e}),O=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/confirm`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),k=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/consolidation/config`,...e}),A=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/consolidation/run-now`,...e}),j=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/consolidation/runs`,...e}),M=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/contact-channels/{contactChannelId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),N=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/contacts`,...e}),P=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/contacts/merge`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),F=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversation-starters`,...e}),I=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations`,...e}),L=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),R=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{conversationId}/slack-channel/resolve`,...e}),z=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/{id}`,...e}),B=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/analyze`,...e}),V=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/archive`,...e}),H=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/cancel`,...e}),U=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/{id}/compaction`,...e}),W=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/conversations/{id}/inference-profile`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),G=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/conversations/{id}/name`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),K=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/slash`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),q=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/surface`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),J=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/unarchive`,...e}),Y=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/undo`,...e}),X=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/archive/bulk`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Z=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/fork`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Q=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/llm-context`,...e}),$=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/reorder`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ee=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/seen`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),te=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/seen/bulk`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ne=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/unread`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),re=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/credentials/inspect`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ie=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/dictation`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ae=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/disk-pressure/acknowledge`,...e}),oe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/disk-pressure/status`,...e}),se=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents`,...e}),ce=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),le=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}`,...e}),ue=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}/comments`,...e}),de=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents/{id}/comments`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),fe=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/documents/{id}/comments/{commentId}`,...e}),pe=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/documents/{id}/comments/{commentId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),me=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents/{id}/conversations`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),he=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}/pdf`,...e}),ge=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/groups`,...e}),_e=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/groups`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ve=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/groups/{groupId}`,...e}),ye=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/groups/{groupId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),be=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/healthz`,...e}),xe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/heartbeat/config`,...e}),Se=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/heartbeat/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ce=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/heartbeat/run-now`,...e}),we=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/heartbeat/runs`,...e}),Te=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/home/feed`,...e}),Ee=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/home/feed/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),De=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/home/feed/{id}/actions/{actionId}`,...e}),Oe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/home/state`,...e}),ke=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/identity`,...e}),Ae=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/chatgpt-subscription/auth`,...e}),je=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/chatgpt-subscription/auth/exchange`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Me=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/inference/provider-connections`,...e}),Ne=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/provider-connections`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Pe=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/inference/provider-connections/{name}`,...e}),Fe=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/inference/provider-connections/{name}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ie=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/a2a/invite`,...e}),Le=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e}),Re=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e}),ze=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Be=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ve=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/telegram/config`,...e}),He=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/telegram/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ue=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/twilio/credentials`,...e}),We=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/twilio/credentials`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ge=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/integrations/vercel/config`,...e}),Ke=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/vercel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),qe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/llm-request-logs/{id}/context`,...e}),Je=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/llm-request-logs/{id}/payload`,...e}),Ye=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/logs/export`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Xe=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/memory/v2/concept-page`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ze=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/memory/v2/now-text`,...e}),Qe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/memory/v2/router-prompt-template`,...e}),$e=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/memory/v2/simulate-router`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),et=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/messages`,...e}),tt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/messages`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),nt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/messages/{id}/llm-context`,...e}),rt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/messages/queued/{id}`,...e}),it=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/messages/queued/{id}/steer`,...e}),at=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/model/image-gen`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ot=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/notification-intent-result`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),st=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/apps`,...e}),ct=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/oauth/apps`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),lt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/oauth/apps/{appId}/connect`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ut=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/apps/{appId}/connections`,...e}),dt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/oauth/apps/{id}`,...e}),ft=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/oauth/connections/{id}`,...e}),pt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/providers`,...e}),mt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/providers/{providerKey}`,...e}),ht=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/pending-interactions`,...e}),gt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins`,...e}),_t=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/plugins/{name}`,...e}),vt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/{name}`,...e}),yt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/{name}/inspect`,...e}),bt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/plugins/{name}/upgrade`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),xt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/plugins/install`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),St=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/search`,...e}),Ct=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/question-response`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),wt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/retrospective/config`,...e}),Tt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/retrospective/runs`,...e}),Et=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules`,...e}),Dt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ot=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/schedules/{id}`,...e}),kt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules/{id}/run`,...e}),At=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules/{id}/runs`,...e}),jt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules/{id}/toggle`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Mt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules/usage-summary`,...e}),Nt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/search/global`,...e}),Pt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secret`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ft=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/secrets`,...e}),It=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secrets`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Lt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secrets/read`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Rt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills`,...e}),zt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/skills/{id}`,...e}),Bt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/{id}/files`,...e}),Vt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/{id}/files/content`,...e}),Ht=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/categories`,...e}),Ut=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/skills/install`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Wt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/sounds/available`,...e}),Gt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/sounds/config`,...e}),Kt=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/sounds/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),qt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/stt/transcribe`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Jt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/subagents/{id}`,...e}),Yt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/subagents/{id}/abort`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Xt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/suggestion`,...e}),Zt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/surface-actions`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Qt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/surfaces/{surfaceId}`,...e}),$t=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/trace-events`,...e}),en=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/tts/providers`,...e}),tn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/breakdown`,...e}),nn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/daily`,...e}),rn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/series`,...e}),an=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/totals`,...e}),on=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}`,...e}),sn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}/abort`,...e}),cn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}/journal`,...e}),ln=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/delete`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),un=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/file`,...e}),dn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/file/content`,...e}),fn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/mkdir`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),pn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/rename`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),mn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/tree`,...e}),hn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/write`,...e,headers:{"Content-Type":`application/json`,...e.headers}});export{ee as $,en as $n,nt as $t,j as A,Dt as An,Ae as At,z as B,Ht as Bn,Ve as Bt,w as C,wt as Cn,we as Ct,O as D,At as Dn,Oe as Dt,T as E,kt as En,Te as Et,R as F,It as Fn,Ie as Ft,J as G,Kt as Gn,Ke as Gt,G as H,Ut as Hn,Ue as Ht,B as I,Lt as In,Le as It,I as J,Jt as Jn,Ye as Jt,Y as K,qt as Kn,qe as Kt,V as L,zt as Ln,Re as Lt,N as M,Nt as Mn,Fe as Mt,P as N,Pt as Nn,Me as Nt,k as O,jt as On,ke as Ot,X as P,Ft as Pn,Ne as Pt,te as Q,$t as Qn,$e as Qt,H as R,Vt as Rn,ze as Rt,C as S,Ct as Sn,Ce as St,D as T,Ot as Tn,Ee as Tt,K as U,Wt as Un,We as Ut,W as V,Rt as Vn,He as Vt,q as W,Gt as Wn,Ge as Wt,L as X,Zt as Xn,Ze as Xt,Q as Y,Xt as Yn,Xe as Yt,$ as Z,Qt as Zn,Qe as Zt,v as _,yt as _n,ge as _t,s as a,ot as an,on as ar,oe as at,b,xt as bn,xe as bt,l as c,dt as cn,dn as cr,ue as ct,f as d,ft as dn,pn as dr,le as dt,et as en,tn as er,ne as et,p as f,mt as fn,mn as fr,he as ft,g,vt as gn,ye as gt,_ as h,_t as hn,ve as ht,o as i,at as in,sn as ir,ae as it,M as j,Mt as jn,Pe as jt,A as k,Et as kn,je as kt,d as l,st as ln,un as lr,de as lt,h as m,ht as mn,ce as mt,i as n,rt as nn,rn as nr,re as nt,n as o,lt as on,cn as or,fe as ot,m as p,pt as pn,hn as pr,se as pt,Z as q,Yt as qn,Je as qt,a as r,it as rn,an as rr,ie as rt,c as s,ut as sn,ln as sr,pe as st,r as t,tt as tn,nn as tr,F as tt,u,ct as un,fn as ur,me as ut,x as v,bt as vn,_e as vt,E as w,Tt as wn,De as wt,S as x,St as xn,Se as xt,y,gt as yn,be as yt,U as z,Bt as zn,Be as zt};
1
+ import{n as e,t}from"./client.gen-0CkwJ2Ya.js";var n=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps`,...e}),r=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/delete`,...e}),i=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/open`,...e}),a=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/publish`,...e}),o=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps/{id}/publish-status`,...e}),s=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/apps/{id}/share-cloud`,...e}),c=e=>(e.client??t).post({bodySerializer:null,url:`/v1/assistants/{assistant_id}/apps/import-bundle`,...e,headers:{"Content-Type":`application/octet-stream`,...e.headers}}),l=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/apps/shared/{token}`,...e}),u=n=>(n.client??t).post({...e,url:`/v1/assistants/{assistant_id}/attachments`,...n,headers:{"Content-Type":null,...n.headers}}),d=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/attachments/{id}/content`,...e}),f=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/avatar/character-components`,...e}),p=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/avatar/image`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),m=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/avatar/render-from-traits`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),h=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/avatar/state`,...e}),g=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/backups`,...e}),_=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/backups/create`,...e}),v=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/backups/restore`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),y=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/bookmarks`,...e}),b=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/bookmarks`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),x=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/bookmarks/by-message/{messageId}`,...e}),S=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/channels/available`,...e}),C=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/channels/readiness`,...e}),w=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config`,...e}),T=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),E=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config/llm/call-sites`,...e}),D=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/config/llm/profiles`,...e}),O=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/confirm`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),k=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/consolidation/config`,...e}),A=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/consolidation/run-now`,...e}),j=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/consolidation/runs`,...e}),M=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/contact-channels/{contactChannelId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),N=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/contacts`,...e}),P=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/contacts/merge`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),F=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversation-starters`,...e}),I=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations`,...e}),L=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),R=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{conversationId}/slack-channel/resolve`,...e}),z=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/{id}`,...e}),B=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/analyze`,...e}),V=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/archive`,...e}),H=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/cancel`,...e}),U=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/{id}/compaction`,...e}),W=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/conversations/{id}/inference-profile`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),G=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/conversations/{id}/name`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),K=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/slash`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),q=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/surface`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),J=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/unarchive`,...e}),Y=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/{id}/undo`,...e}),X=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/archive/bulk`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Z=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/fork`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Q=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/conversations/llm-context`,...e}),$=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/reorder`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ee=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/seen`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),te=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/seen/bulk`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ne=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/conversations/unread`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),re=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/credentials/inspect`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ie=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/dictation`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ae=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/disk-pressure/acknowledge`,...e}),oe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/disk-pressure/status`,...e}),se=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents`,...e}),ce=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),le=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}`,...e}),ue=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}/comments`,...e}),de=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents/{id}/comments`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),fe=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/documents/{id}/comments/{commentId}`,...e}),pe=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/documents/{id}/comments/{commentId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),me=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/documents/{id}/conversations`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),he=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/documents/{id}/pdf`,...e}),ge=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/groups`,...e}),_e=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/groups`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ve=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/groups/{groupId}`,...e}),ye=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/groups/{groupId}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),be=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/healthz`,...e}),xe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/heartbeat/config`,...e}),Se=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/heartbeat/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ce=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/heartbeat/run-now`,...e}),we=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/heartbeat/runs`,...e}),Te=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/home/feed`,...e}),Ee=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/home/feed/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),De=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/home/feed/{id}/actions/{actionId}`,...e}),Oe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/home/state`,...e}),ke=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/identity`,...e}),Ae=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/chatgpt-subscription/auth`,...e}),je=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/chatgpt-subscription/auth/exchange`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Me=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/inference/provider-connections`,...e}),Ne=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/inference/provider-connections`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Pe=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/inference/provider-connections/{name}`,...e}),Fe=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/inference/provider-connections/{name}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ie=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/a2a/invite`,...e}),Le=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e}),Re=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e}),ze=e=>(e.client??t).patch({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Be=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/slack/channel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ve=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/telegram/config`,...e}),He=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/telegram/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ue=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/integrations/twilio/credentials`,...e}),We=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/twilio/credentials`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ge=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/integrations/vercel/config`,...e}),Ke=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/integrations/vercel/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),qe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/llm-request-logs/{id}/context`,...e}),Je=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/llm-request-logs/{id}/payload`,...e}),Ye=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/logs/export`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Xe=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/memory/v2/concept-page`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ze=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/memory/v2/now-text`,...e}),Qe=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/memory/v2/router-prompt-template`,...e}),$e=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/memory/v2/simulate-router`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),et=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/messages`,...e}),tt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/messages`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),nt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/messages/{id}/llm-context`,...e}),rt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/messages/queued/{id}`,...e}),it=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/messages/queued/{id}/steer`,...e}),at=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/model/image-gen`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ot=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/notification-intent-result`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),st=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/apps`,...e}),ct=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/oauth/apps`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),lt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/oauth/apps/{appId}/connect`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ut=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/apps/{appId}/connections`,...e}),dt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/oauth/apps/{id}`,...e}),ft=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/oauth/connections/{id}`,...e}),pt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/providers`,...e}),mt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/oauth/providers/{providerKey}`,...e}),ht=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/pending-interactions`,...e}),gt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins`,...e}),_t=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/plugins/{name}`,...e}),vt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/{name}`,...e}),yt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/{name}/inspect`,...e}),bt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/plugins/{name}/upgrade`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),xt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/plugins/install`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),St=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/plugins/search`,...e}),Ct=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/question-response`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),wt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/retrospective/config`,...e}),Tt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/retrospective/runs`,...e}),Et=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules`,...e}),Dt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ot=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/schedules/{id}`,...e}),kt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules/{id}/run`,...e}),At=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules/{id}/runs`,...e}),jt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/schedules/{id}/toggle`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Mt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/schedules/usage-summary`,...e}),Nt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/search/global`,...e}),Pt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secret`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ft=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/secrets`,...e}),It=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secrets`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Lt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/secrets/read`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Rt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills`,...e}),zt=e=>(e.client??t).delete({url:`/v1/assistants/{assistant_id}/skills/{id}`,...e}),Bt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/{id}/files`,...e}),Vt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/{id}/files/content`,...e}),Ht=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/skills/categories`,...e}),Ut=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/skills/install`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Wt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/sounds/available`,...e}),Gt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/sounds/config`,...e}),Kt=e=>(e.client??t).put({url:`/v1/assistants/{assistant_id}/sounds/config`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),qt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/stt/transcribe`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Jt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/subagents/{id}`,...e}),Yt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/subagents/{id}/abort`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Xt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/suggestion`,...e}),Zt=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/surface-actions`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Qt=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/surfaces/{surfaceId}`,...e}),$t=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/trace-events`,...e}),en=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/tts/providers`,...e}),tn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/breakdown`,...e}),nn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/daily`,...e}),rn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/series`,...e}),an=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/usage/totals`,...e}),on=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}`,...e}),sn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}/abort`,...e}),cn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workflows/runs/{id}/journal`,...e}),ln=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/delete`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),un=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/file`,...e}),dn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/file/content`,...e}),fn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/mkdir`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),pn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/rename`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),mn=e=>(e.client??t).get({url:`/v1/assistants/{assistant_id}/workspace/tree`,...e}),hn=e=>(e.client??t).post({url:`/v1/assistants/{assistant_id}/workspace/write`,...e,headers:{"Content-Type":`application/json`,...e.headers}});export{ee as $,en as $n,nt as $t,j as A,Dt as An,Ae as At,z as B,Ht as Bn,Ve as Bt,w as C,wt as Cn,we as Ct,O as D,At as Dn,Oe as Dt,T as E,kt as En,Te as Et,R as F,It as Fn,Ie as Ft,J as G,Kt as Gn,Ke as Gt,G as H,Ut as Hn,Ue as Ht,B as I,Lt as In,Le as It,I as J,Jt as Jn,Ye as Jt,Y as K,qt as Kn,qe as Kt,V as L,zt as Ln,Re as Lt,N as M,Nt as Mn,Fe as Mt,P as N,Pt as Nn,Me as Nt,k as O,jt as On,ke as Ot,X as P,Ft as Pn,Ne as Pt,te as Q,$t as Qn,$e as Qt,H as R,Vt as Rn,ze as Rt,C as S,Ct as Sn,Ce as St,D as T,Ot as Tn,Ee as Tt,K as U,Wt as Un,We as Ut,W as V,Rt as Vn,He as Vt,q as W,Gt as Wn,Ge as Wt,L as X,Zt as Xn,Ze as Xt,Q as Y,Xt as Yn,Xe as Yt,$ as Z,Qt as Zn,Qe as Zt,v as _,yt as _n,ge as _t,s as a,ot as an,on as ar,oe as at,b,xt as bn,xe as bt,l as c,dt as cn,dn as cr,ue as ct,f as d,ft as dn,pn as dr,le as dt,et as en,tn as er,ne as et,p as f,mt as fn,mn as fr,he as ft,g,vt as gn,ye as gt,_ as h,_t as hn,ve as ht,o as i,at as in,sn as ir,ae as it,M as j,Mt as jn,Pe as jt,A as k,Et as kn,je as kt,d as l,st as ln,un as lr,de as lt,h as m,ht as mn,ce as mt,i as n,rt as nn,rn as nr,re as nt,n as o,lt as on,cn as or,fe as ot,m as p,pt as pn,hn as pr,se as pt,Z as q,Yt as qn,Je as qt,a as r,it as rn,an as rr,ie as rt,c as s,ut as sn,ln as sr,pe as st,r as t,tt as tn,nn as tr,F as tt,u,ct as un,fn as ur,me as ut,x as v,bt as vn,_e as vt,E as w,Tt as wn,De as wt,S as x,St as xn,Se as xt,y,gt as yn,be as yt,U as z,Bt as zn,Be as zt};