@mycadet/app 0.14.0 → 0.14.1-dev.202612061615.c8dfc87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package/{account-D1YjLGV9.js → account-BpCbLsfP.js} +57 -4
- package/dist/package/{account-D1YjLGV9.js.map → account-BpCbLsfP.js.map} +1 -1
- package/dist/package/{account-BvjgJwlA.js → account-BpU1t26s.js} +57 -4
- package/dist/package/{account-BvjgJwlA.js.map → account-BpU1t26s.js.map} +1 -1
- package/dist/package/{account-ClsQnHGQ.js → account-CNVJ2tRu.js} +57 -4
- package/dist/package/{account-ClsQnHGQ.js.map → account-CNVJ2tRu.js.map} +1 -1
- package/dist/package/{account-8eKos9G7.js → account-Dh32wybG.js} +79 -3
- package/dist/package/{account-8eKos9G7.js.map → account-Dh32wybG.js.map} +1 -1
- package/dist/package/{common-oxewtz-Y.js → common-C_oPdXpV.js} +3 -2
- package/dist/package/{common-oxewtz-Y.js.map → common-C_oPdXpV.js.map} +1 -1
- package/dist/package/{common-dGbBloR6.js → common-D1kBgkpz.js} +3 -2
- package/dist/package/{common-dGbBloR6.js.map → common-D1kBgkpz.js.map} +1 -1
- package/dist/package/{common-BluQGYDb.js → common-DVJ5NUo5.js} +8 -3
- package/dist/package/{common-BluQGYDb.js.map → common-DVJ5NUo5.js.map} +1 -1
- package/dist/package/{common-DNZ_4X_m.js → common-sYQVH-gY.js} +3 -2
- package/dist/package/{common-DNZ_4X_m.js.map → common-sYQVH-gY.js.map} +1 -1
- package/dist/package/contracts.js +2 -2
- package/dist/package/index.js +243 -177
- package/dist/package/index.js.map +1 -1
- package/dist/package/package.json +1 -1
- package/dist/package/{resolution-contract-D6qbDWH9.js → resolution-contract-Cx6VTw9G.js} +7 -3
- package/dist/package/resolution-contract-Cx6VTw9G.js.map +1 -0
- package/dist/package/types/assistant/resolution-contract.d.ts +10 -0
- package/dist/package/types/i18n/i18n.d.ts +0 -33
- package/dist/package/types/i18n/locales/en/account.json +59 -2
- package/dist/package/types/i18n/locales/en/common.json +2 -1
- package/dist/package/types/i18n/locales/es/account.json +54 -1
- package/dist/package/types/i18n/locales/es/common.json +2 -1
- package/dist/package/types/i18n/locales/ru/account.json +54 -1
- package/dist/package/types/i18n/locales/ru/common.json +5 -0
- package/dist/package/types/i18n/locales/zh/account.json +54 -1
- package/dist/package/types/i18n/locales/zh/common.json +2 -1
- package/dist/package/types/i18n/locales/zh-TW/account.json +76 -0
- package/dist/package/types/i18n/locales/zh-TW/common.json +2 -1
- package/dist/package/types/utils/routes.d.ts +3 -0
- package/dist/standalone/assets/{about-page-bFAEorIh.js → about-page-mpEzEQb2.js} +2 -2
- package/dist/standalone/assets/{about-page-bFAEorIh.js.map → about-page-mpEzEQb2.js.map} +1 -1
- package/dist/standalone/assets/{account-6E86_HHi.js → account-Bd_S-0WO.js} +2 -2
- package/dist/standalone/assets/{account-6E86_HHi.js.map → account-Bd_S-0WO.js.map} +1 -1
- package/dist/standalone/assets/{account-TbSfcuuQ.js → account-CGmyEqxw.js} +2 -2
- package/dist/standalone/assets/{account-TbSfcuuQ.js.map → account-CGmyEqxw.js.map} +1 -1
- package/dist/standalone/assets/{account-BkOLkgsM.js → account-Clewz9x-.js} +2 -2
- package/dist/standalone/assets/{account-BkOLkgsM.js.map → account-Clewz9x-.js.map} +1 -1
- package/dist/standalone/assets/{account-BhR_HGNE.js → account-DMlLQkdD.js} +2 -2
- package/dist/standalone/assets/{account-BhR_HGNE.js.map → account-DMlLQkdD.js.map} +1 -1
- package/dist/standalone/assets/{account-form-XXd0H39n.js → account-form-DeupMytE.js} +2 -2
- package/dist/standalone/assets/{account-form-XXd0H39n.js.map → account-form-DeupMytE.js.map} +1 -1
- package/dist/standalone/assets/account-page-BySTwbnw.js +2 -0
- package/dist/standalone/assets/{account-page-C9RTiet9.js.map → account-page-BySTwbnw.js.map} +1 -1
- package/dist/standalone/assets/{account-shell-8wPEal0o.js → account-shell-0G7JjvNP.js} +1 -1
- package/dist/standalone/assets/{account-shell-8wPEal0o.js.map → account-shell-0G7JjvNP.js.map} +1 -1
- package/dist/standalone/assets/{api-Di6JRcb2.js → api-DLpH8-Kd.js} +2 -2
- package/dist/standalone/assets/{api-Di6JRcb2.js.map → api-DLpH8-Kd.js.map} +1 -1
- package/dist/standalone/assets/api-key-screen-CDgWGEeC.js +2 -0
- package/dist/standalone/assets/api-key-screen-CDgWGEeC.js.map +1 -0
- package/dist/standalone/assets/{assistant-selection-DZ-dloFF.js → assistant-selection-Ce-208FP.js} +2 -2
- package/dist/standalone/assets/{assistant-selection-DZ-dloFF.js.map → assistant-selection-Ce-208FP.js.map} +1 -1
- package/dist/standalone/assets/assistants-page-CGRw4Jem.js +2 -0
- package/dist/standalone/assets/assistants-page-CGRw4Jem.js.map +1 -0
- package/dist/standalone/assets/{auth-flow-DRKdI57z.js → auth-flow-BJ6I5FKW.js} +2 -2
- package/dist/standalone/assets/auth-flow-BJ6I5FKW.js.map +1 -0
- package/dist/standalone/assets/{auth-store-Da8bCODz.js → auth-store-b5wsXdqH.js} +3 -3
- package/dist/standalone/assets/{auth-store-Da8bCODz.js.map → auth-store-b5wsXdqH.js.map} +1 -1
- package/dist/standalone/assets/{auth-welcome-screen-BYvKnLEN.js → auth-welcome-screen-DtQV_ZMd.js} +2 -2
- package/dist/standalone/assets/{auth-welcome-screen-BYvKnLEN.js.map → auth-welcome-screen-DtQV_ZMd.js.map} +1 -1
- package/dist/standalone/assets/{avatar-bundled-components-Bt-85W__.js → avatar-bundled-components-ClZdA6nY.js} +1 -1
- package/dist/standalone/assets/{avatar-bundled-components-Bt-85W__.js.map → avatar-bundled-components-ClZdA6nY.js.map} +1 -1
- package/dist/standalone/assets/avatar-bundled-components-Dns64W1x.js +1 -0
- package/dist/standalone/assets/{avatar-random-B7ItAA05.js → avatar-random-fLuWMrQ4.js} +2 -2
- package/dist/standalone/assets/{avatar-random-B7ItAA05.js.map → avatar-random-fLuWMrQ4.js.map} +1 -1
- package/dist/standalone/assets/{button-DXWFbocH.js → button-VN1Hg58T.js} +2 -2
- package/dist/standalone/assets/{button-DXWFbocH.js.map → button-VN1Hg58T.js.map} +1 -1
- package/dist/standalone/assets/{capture-error-N-BrfSzo.js → capture-error-DOE5Xzi8.js} +1 -1
- package/dist/standalone/assets/{capture-error-N-BrfSzo.js.map → capture-error-DOE5Xzi8.js.map} +1 -1
- package/dist/standalone/assets/{checkbox-DjYdyWsT.js → checkbox-BillvEmp.js} +2 -2
- package/dist/standalone/assets/{checkbox-DjYdyWsT.js.map → checkbox-BillvEmp.js.map} +1 -1
- package/dist/standalone/assets/circle-BDAthucW.js +2 -0
- package/dist/standalone/assets/circle-BDAthucW.js.map +1 -0
- package/dist/standalone/assets/circle-alert-BDlVZkal.js +2 -0
- package/dist/standalone/assets/circle-alert-BDlVZkal.js.map +1 -0
- package/dist/standalone/assets/circle-check-COWWfbA3.js +2 -0
- package/dist/standalone/assets/circle-check-COWWfbA3.js.map +1 -0
- package/dist/standalone/assets/{cloud-loopback-page-BMz0_4p-.js → cloud-loopback-page-RXiZFgdq.js} +2 -2
- package/dist/standalone/assets/{cloud-loopback-page-BMz0_4p-.js.map → cloud-loopback-page-RXiZFgdq.js.map} +1 -1
- package/dist/standalone/assets/cloud-off-B_OI861m.js +2 -0
- package/dist/standalone/assets/cloud-off-B_OI861m.js.map +1 -0
- package/dist/standalone/assets/common-B8_P50yi.js +2 -0
- package/dist/standalone/assets/{common-DiqTxEoY.js.map → common-B8_P50yi.js.map} +1 -1
- package/dist/standalone/assets/{common-B65SaoD3.js → common-Bpry-qgo.js} +2 -2
- package/dist/standalone/assets/{common-B65SaoD3.js.map → common-Bpry-qgo.js.map} +1 -1
- package/dist/standalone/assets/common-CrJpZdYi.js +2 -0
- package/dist/standalone/assets/{common-CXt-X9JZ.js.map → common-CrJpZdYi.js.map} +1 -1
- package/dist/standalone/assets/common-DSLtqzPH.js +2 -0
- package/dist/standalone/assets/{common-CF7RP46x.js.map → common-DSLtqzPH.js.map} +1 -1
- package/dist/standalone/assets/confirm-dialog-CIACfqv5.js +2 -0
- package/dist/standalone/assets/confirm-dialog-CIACfqv5.js.map +1 -0
- package/dist/standalone/assets/connect-screen-B6oyU8zW.js +3 -0
- package/dist/standalone/assets/connect-screen-B6oyU8zW.js.map +1 -0
- package/dist/standalone/assets/{consent-DO714CFR.js → consent-Az-84EDv.js} +1 -1
- package/dist/standalone/assets/{consent-DO714CFR.js.map → consent-Az-84EDv.js.map} +1 -1
- package/dist/standalone/assets/{consent-CtNgR_OY.js → consent-BIJ-u7pS.js} +1 -1
- package/dist/standalone/assets/{consent-CtNgR_OY.js.map → consent-BIJ-u7pS.js.map} +1 -1
- package/dist/standalone/assets/{consent-BQKxIOyu.js → consent-CLFAJlfA.js} +1 -1
- package/dist/standalone/assets/{consent-BQKxIOyu.js.map → consent-CLFAJlfA.js.map} +1 -1
- package/dist/standalone/assets/{consent-CsUnMqF9.js → consent-dhas0XzG.js} +1 -1
- package/dist/standalone/assets/{consent-CsUnMqF9.js.map → consent-dhas0XzG.js.map} +1 -1
- package/dist/standalone/assets/{consent-persistence-CrqlC1nt.js → consent-persistence-DWA4JUAj.js} +2 -2
- package/dist/standalone/assets/{consent-persistence-CrqlC1nt.js.map → consent-persistence-DWA4JUAj.js.map} +1 -1
- package/dist/standalone/assets/copy-to-clipboard-DyoXuDAI.js +2 -0
- package/dist/standalone/assets/copy-to-clipboard-DyoXuDAI.js.map +1 -0
- package/dist/standalone/assets/{create-selectors-CcrSgAwQ.js → create-selectors-lj3eOKUw.js} +2 -2
- package/dist/standalone/assets/{create-selectors-CcrSgAwQ.js.map → create-selectors-lj3eOKUw.js.map} +1 -1
- package/dist/standalone/assets/definitions-CldVj4s0.js +2 -0
- package/dist/standalone/assets/definitions-CldVj4s0.js.map +1 -0
- package/dist/standalone/assets/{describe-error-CGCx3ZS3.js → describe-error-B2U_mZYH.js} +1 -1
- package/dist/standalone/assets/{describe-error-CGCx3ZS3.js.map → describe-error-B2U_mZYH.js.map} +1 -1
- package/dist/standalone/assets/dial-BUTZAJO3.js +2 -0
- package/dist/standalone/assets/dial-BUTZAJO3.js.map +1 -0
- package/dist/standalone/assets/{dist-Bsp7oWdO.js → dist-B0U1otb8.js} +2 -2
- package/dist/standalone/assets/{dist-Bsp7oWdO.js.map → dist-B0U1otb8.js.map} +1 -1
- package/dist/standalone/assets/{dist-D_g3U3xX.js → dist-DAjFxRQx.js} +1 -1
- package/dist/standalone/assets/{dist-D_g3U3xX.js.map → dist-DAjFxRQx.js.map} +1 -1
- package/dist/standalone/assets/{doctor-CqLlYvNj.js → doctor-B27zTEz7.js} +1 -1
- package/dist/standalone/assets/{doctor-CqLlYvNj.js.map → doctor-B27zTEz7.js.map} +1 -1
- package/dist/standalone/assets/{doctor-D7pMtU6A.js → doctor-D3gGkdwv.js} +1 -1
- package/dist/standalone/assets/{doctor-D7pMtU6A.js.map → doctor-D3gGkdwv.js.map} +1 -1
- package/dist/standalone/assets/{doctor-YwCkq2Cy.js → doctor-Dg28XeYF.js} +1 -1
- package/dist/standalone/assets/{doctor-YwCkq2Cy.js.map → doctor-Dg28XeYF.js.map} +1 -1
- package/dist/standalone/assets/{doctor-BIfQyFc_.js → doctor-OdWe6ZZu.js} +1 -1
- package/dist/standalone/assets/{doctor-BIfQyFc_.js.map → doctor-OdWe6ZZu.js.map} +1 -1
- package/dist/standalone/assets/doctor-page-DdHoPZZF.js +8 -0
- package/dist/standalone/assets/doctor-page-DdHoPZZF.js.map +1 -0
- package/dist/standalone/assets/{electron-bridge-B1sJkvH-.js → electron-bridge-DGEnu054.js} +1 -1
- package/dist/standalone/assets/{electron-bridge-B1sJkvH-.js.map → electron-bridge-DGEnu054.js.map} +1 -1
- package/dist/standalone/assets/{ellipsis-vertical-DRMhSLjp.js → ellipsis-vertical-OHRxK2jN.js} +1 -1
- package/dist/standalone/assets/{ellipsis-vertical-DRMhSLjp.js.map → ellipsis-vertical-OHRxK2jN.js.map} +1 -1
- package/dist/standalone/assets/esm-Beq0qz18.js +3 -0
- package/dist/standalone/assets/esm-Beq0qz18.js.map +1 -0
- package/dist/standalone/assets/esm-ChB87WoR.js +3 -0
- package/dist/standalone/assets/{esm-qBiA1_4M.js.map → esm-ChB87WoR.js.map} +1 -1
- package/dist/standalone/assets/{external-anchor-CMWL9CU_.js → external-anchor-CxPebGZd.js} +3 -3
- package/dist/standalone/assets/{external-anchor-CMWL9CU_.js.map → external-anchor-CxPebGZd.js.map} +1 -1
- package/dist/standalone/assets/{full-page-navigation-VfHlqUPi.js → full-page-navigation-BYqyWwg_.js} +1 -1
- package/dist/standalone/assets/{full-page-navigation-VfHlqUPi.js.map → full-page-navigation-BYqyWwg_.js.map} +1 -1
- package/dist/standalone/assets/{hard-navigate-BjhB5Ecy.js → hard-navigate-B4a9GrBh.js} +1 -1
- package/dist/standalone/assets/{hard-navigate-BjhB5Ecy.js.map → hard-navigate-B4a9GrBh.js.map} +1 -1
- package/dist/standalone/assets/hatching-screen-DZEnajoN.js +2 -0
- package/dist/standalone/assets/hatching-screen-DZEnajoN.js.map +1 -0
- package/dist/standalone/assets/hosting-screen-ByUZjNJU.js +2 -0
- package/dist/standalone/assets/hosting-screen-ByUZjNJU.js.map +1 -0
- package/dist/standalone/assets/{i18n-BaPIfk2c.js → i18n-B16Eox1c.js} +3 -3
- package/dist/standalone/assets/{i18n-BaPIfk2c.js.map → i18n-B16Eox1c.js.map} +1 -1
- package/dist/standalone/assets/index-BocnD1im.css +2 -0
- package/dist/standalone/assets/index-DD5DXOxB.js +25 -0
- package/dist/standalone/assets/index-DD5DXOxB.js.map +1 -0
- package/dist/standalone/assets/input-Bo9hZuBu.js +2 -0
- package/dist/standalone/assets/input-Bo9hZuBu.js.map +1 -0
- package/dist/standalone/assets/{is-electron-DLjujt3j.js → is-electron-BsUxh4Xi.js} +1 -1
- package/dist/standalone/assets/is-electron-BsUxh4Xi.js.map +1 -0
- package/dist/standalone/assets/login-page-cjgc_Pvc.js +2 -0
- package/dist/standalone/assets/{login-page-BZGRX0EO.js.map → login-page-cjgc_Pvc.js.map} +1 -1
- package/dist/standalone/assets/logout-page-FzZ-7lWk.js +2 -0
- package/dist/standalone/assets/{logout-page-B2MWIJOU.js.map → logout-page-FzZ-7lWk.js.map} +1 -1
- package/dist/standalone/assets/{native-deep-link-BBxdwlv4.js → native-deep-link-BeCO19L3.js} +1 -1
- package/dist/standalone/assets/{native-deep-link-BBxdwlv4.js.map → native-deep-link-BeCO19L3.js.map} +1 -1
- package/dist/standalone/assets/{native-platform-CAw_N48L.js → native-platform-CnRhTtiM.js} +2 -2
- package/dist/standalone/assets/{native-platform-CAw_N48L.js.map → native-platform-CnRhTtiM.js.map} +1 -1
- package/dist/standalone/assets/{oauth-complete-page-CEH8Zi-1.js → oauth-complete-page-CqrTmVHJ.js} +2 -2
- package/dist/standalone/assets/{oauth-complete-page-CEH8Zi-1.js.map → oauth-complete-page-CqrTmVHJ.js.map} +1 -1
- package/dist/standalone/assets/{oauth-popup-CdRon5Q4.js → oauth-popup-AOIxWPUj.js} +1 -1
- package/dist/standalone/assets/{oauth-popup-CdRon5Q4.js.map → oauth-popup-AOIxWPUj.js.map} +1 -1
- package/dist/standalone/assets/{oauth-popup-complete-page-CLQh8_Yg.js → oauth-popup-complete-page-zmTZt5jJ.js} +2 -2
- package/dist/standalone/assets/{oauth-popup-complete-page-CLQh8_Yg.js.map → oauth-popup-complete-page-zmTZt5jJ.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-DGo1yvDA.js → onboarding-BUsGmEpD.js} +1 -1
- package/dist/standalone/assets/{onboarding-DGo1yvDA.js.map → onboarding-BUsGmEpD.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-BEGUvKly.js → onboarding-DDUMWxqw.js} +1 -1
- package/dist/standalone/assets/{onboarding-BEGUvKly.js.map → onboarding-DDUMWxqw.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-OFRPhT96.js → onboarding-DQsY7qgd.js} +1 -1
- package/dist/standalone/assets/{onboarding-OFRPhT96.js.map → onboarding-DQsY7qgd.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-destination-B66p_VZu.js → onboarding-destination-CxQx0_IC.js} +2 -2
- package/dist/standalone/assets/{onboarding-destination-B66p_VZu.js.map → onboarding-destination-CxQx0_IC.js.map} +1 -1
- package/dist/standalone/assets/onboarding-navigation-CdRV6F0Q.js +2 -0
- package/dist/standalone/assets/{onboarding-navigation-DC8_8LuV.js.map → onboarding-navigation-CdRV6F0Q.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-DOVL-dOM.js → onboarding-yRwqz6aH.js} +1 -1
- package/dist/standalone/assets/{onboarding-DOVL-dOM.js.map → onboarding-yRwqz6aH.js.map} +1 -1
- package/dist/standalone/assets/operations-C4WgQ8qZ.js +2 -0
- package/dist/standalone/assets/operations-C4WgQ8qZ.js.map +1 -0
- package/dist/standalone/assets/{organization-Br5qMM6Y.js → organization-Du5dDPLP.js} +2 -2
- package/dist/standalone/assets/{organization-Br5qMM6Y.js.map → organization-Du5dDPLP.js.map} +1 -1
- package/dist/standalone/assets/pairing-address-CgBLeKnL.js +2 -0
- package/dist/standalone/assets/pairing-address-CgBLeKnL.js.map +1 -0
- package/dist/standalone/assets/pairing-page-CAbTJKxr.js +2 -0
- package/dist/standalone/assets/{pairing-page-o5yOUb6T.js.map → pairing-page-CAbTJKxr.js.map} +1 -1
- package/dist/standalone/assets/{password-reset-page-B7JZRJhp.js → password-reset-page-D2b51lmM.js} +2 -2
- package/dist/standalone/assets/{password-reset-page-B7JZRJhp.js.map → password-reset-page-D2b51lmM.js.map} +1 -1
- package/dist/standalone/assets/{post-auth-destination-Cq5foKw9.js → post-auth-destination-xwJ47kVJ.js} +2 -2
- package/dist/standalone/assets/{post-auth-destination-Cq5foKw9.js.map → post-auth-destination-xwJ47kVJ.js.map} +1 -1
- package/dist/standalone/assets/profile-page-CPhYXM4F.js +2 -0
- package/dist/standalone/assets/profile-page-CPhYXM4F.js.map +1 -0
- package/dist/standalone/assets/{progress-bar-C_-cwBiK.js → progress-bar-CAYa80XA.js} +2 -2
- package/dist/standalone/assets/{progress-bar-C_-cwBiK.js.map → progress-bar-CAYa80XA.js.map} +1 -1
- package/dist/standalone/assets/provider-C-MBs0n2.js +2 -0
- package/dist/standalone/assets/{provider-i52bX5VR.js.map → provider-C-MBs0n2.js.map} +1 -1
- package/dist/standalone/assets/{provider-callback-D4ezuOSB.js → provider-callback-B6-pMaSX.js} +2 -2
- package/dist/standalone/assets/{provider-callback-D4ezuOSB.js.map → provider-callback-B6-pMaSX.js.map} +1 -1
- package/dist/standalone/assets/{provider-callback-page-BOUah2_i.js → provider-callback-page-BxdpbfyR.js} +2 -2
- package/dist/standalone/assets/{provider-callback-page-BOUah2_i.js.map → provider-callback-page-BxdpbfyR.js.map} +1 -1
- package/dist/standalone/assets/{provider-key-BFW2wBsh.js → provider-key-CfgRx7z5.js} +1 -1
- package/dist/standalone/assets/{provider-key-BFW2wBsh.js.map → provider-key-CfgRx7z5.js.map} +1 -1
- package/dist/standalone/assets/{provider-signup-page-DBqdgyHS.js → provider-signup-page-Cg9t2tJA.js} +2 -2
- package/dist/standalone/assets/{provider-signup-page-DBqdgyHS.js.map → provider-signup-page-Cg9t2tJA.js.map} +1 -1
- package/dist/standalone/assets/{proxy-m8LraLg9.js → proxy-TFSdn8tX.js} +1 -1
- package/dist/standalone/assets/{proxy-m8LraLg9.js.map → proxy-TFSdn8tX.js.map} +1 -1
- package/dist/standalone/assets/{radio-card-nav-C_Yh88ZX.js → radio-card-nav-DwRqD523.js} +1 -1
- package/dist/standalone/assets/{radio-card-nav-C_Yh88ZX.js.map → radio-card-nav-DwRqD523.js.map} +1 -1
- package/dist/standalone/assets/{rehype-katex-BcOWYTKW.js → rehype-katex-CHgJIg3n.js} +2 -2
- package/dist/standalone/assets/{rehype-katex-BcOWYTKW.js.map → rehype-katex-CHgJIg3n.js.map} +1 -1
- package/dist/standalone/assets/{remote-web-pairing-ya9f4HXm.js → remote-web-pairing-BGorUWrN.js} +2 -2
- package/dist/standalone/assets/{remote-web-pairing-ya9f4HXm.js.map → remote-web-pairing-BGorUWrN.js.map} +1 -1
- package/dist/standalone/assets/{request-BpOspF-T.js → request-CReXXmP8.js} +2 -2
- package/dist/standalone/assets/{request-BpOspF-T.js.map → request-CReXXmP8.js.map} +1 -1
- package/dist/standalone/assets/resolve-assistant-CFtChAyl.js +2 -0
- package/dist/standalone/assets/resolve-assistant-CFtChAyl.js.map +1 -0
- package/dist/standalone/assets/retire-assistant-CXC684th.js +2 -0
- package/dist/standalone/assets/retire-assistant-CXC684th.js.map +1 -0
- package/dist/standalone/assets/{return-to-DazNKK_L.js → return-to-CPhOcyqz.js} +2 -2
- package/dist/standalone/assets/{return-to-DazNKK_L.js.map → return-to-CPhOcyqz.js.map} +1 -1
- package/dist/standalone/assets/{returning-user-CMNG1o-y.js → returning-user-BZmAesT8.js} +2 -2
- package/dist/standalone/assets/{returning-user-CMNG1o-y.js.map → returning-user-BZmAesT8.js.map} +1 -1
- package/dist/standalone/assets/{review-terms-screen-f75A8Lfc.js → review-terms-screen-P9NFxtXh.js} +2 -2
- package/dist/standalone/assets/{review-terms-screen-f75A8Lfc.js.map → review-terms-screen-P9NFxtXh.js.map} +1 -1
- package/dist/standalone/assets/{rotate-ccw-BzeQSlMY.js → rotate-ccw-BMei42NT.js} +1 -1
- package/dist/standalone/assets/{rotate-ccw-BzeQSlMY.js.map → rotate-ccw-BMei42NT.js.map} +1 -1
- package/dist/standalone/assets/routes-DH7knWlS.js +2 -0
- package/dist/standalone/assets/routes-DH7knWlS.js.map +1 -0
- package/dist/standalone/assets/{schemas-BZBjRX4t.js → schemas-BYL1R3CL.js} +1 -1
- package/dist/standalone/assets/{schemas-BZBjRX4t.js.map → schemas-BYL1R3CL.js.map} +1 -1
- package/dist/standalone/assets/select-BOe987hM.js +42 -0
- package/dist/standalone/assets/select-BOe987hM.js.map +1 -0
- package/dist/standalone/assets/select-assistant-screen-8BmNSQjP.js +2 -0
- package/dist/standalone/assets/select-assistant-screen-8BmNSQjP.js.map +1 -0
- package/dist/standalone/assets/selected-assistant-storage-Bxccak3R.js +2 -0
- package/dist/standalone/assets/selected-assistant-storage-Bxccak3R.js.map +1 -0
- package/dist/standalone/assets/{session-token-Ev2cmr9G.js → session-token-CeIMyut9.js} +2 -2
- package/dist/standalone/assets/{session-token-Ev2cmr9G.js.map → session-token-CeIMyut9.js.map} +1 -1
- package/dist/standalone/assets/{signup-page-KeolUD_u.js → signup-page-CNFOq9-F.js} +2 -2
- package/dist/standalone/assets/{signup-page-KeolUD_u.js.map → signup-page-CNFOq9-F.js.map} +1 -1
- package/dist/standalone/assets/{signup-shell-DohGIoF-.js → signup-shell-B4gWR3ma.js} +2 -2
- package/dist/standalone/assets/signup-shell-B4gWR3ma.js.map +1 -0
- package/dist/standalone/assets/{src-Cr-NnTju.js → src-CxFXHgGM.js} +12 -12
- package/dist/standalone/assets/src-CxFXHgGM.js.map +1 -0
- package/dist/standalone/assets/{start-screen-C5WcGw-O.js → start-screen-D787hUql.js} +2 -2
- package/dist/standalone/assets/{start-screen-C5WcGw-O.js.map → start-screen-D787hUql.js.map} +1 -1
- package/dist/standalone/assets/startup-page-DfosTYkL.js +2 -0
- package/dist/standalone/assets/startup-page-DfosTYkL.js.map +1 -0
- package/dist/standalone/assets/{text-link-DFDM7RLf.js → text-link-B8VO4Tjc.js} +2 -2
- package/dist/standalone/assets/{text-link-DFDM7RLf.js.map → text-link-B8VO4Tjc.js.map} +1 -1
- package/dist/standalone/assets/triangle-alert-BNKcT3qS.js +2 -0
- package/dist/standalone/assets/triangle-alert-BNKcT3qS.js.map +1 -0
- package/dist/standalone/assets/{typography-Bp7J7PNm.js → typography-D4_LOmJc.js} +2 -2
- package/dist/standalone/assets/{typography-Bp7J7PNm.js.map → typography-D4_LOmJc.js.map} +1 -1
- package/dist/standalone/assets/{use-assistant-choices-D7BXbNtP.js → use-assistant-choices-BjNkXiWf.js} +2 -2
- package/dist/standalone/assets/{use-assistant-choices-D7BXbNtP.js.map → use-assistant-choices-BjNkXiWf.js.map} +1 -1
- package/dist/standalone/assets/{use-assistant-request-BQZn0euZ.js → use-assistant-request-CH8yCmNN.js} +2 -2
- package/dist/standalone/assets/{use-assistant-request-BQZn0euZ.js.map → use-assistant-request-CH8yCmNN.js.map} +1 -1
- package/dist/standalone/assets/{use-return-to-short-circuit-Crw-Q49N.js → use-return-to-short-circuit-CYiiiDvR.js} +2 -2
- package/dist/standalone/assets/{use-return-to-short-circuit-Crw-Q49N.js.map → use-return-to-short-circuit-CYiiiDvR.js.map} +1 -1
- package/dist/standalone/assets/vellum-migration-screen-VB22qEIV.js +2 -0
- package/dist/standalone/assets/vellum-migration-screen-VB22qEIV.js.map +1 -0
- package/dist/standalone/assets/web-BVFEX2sN.js +2 -0
- package/dist/standalone/assets/web-BVFEX2sN.js.map +1 -0
- package/dist/standalone/assets/{web-vi5sY1tx.js → web-DGsA39ij.js} +2 -2
- package/dist/standalone/assets/{web-vi5sY1tx.js.map → web-DGsA39ij.js.map} +1 -1
- package/dist/standalone/assets/{web-D9n6hYj1.js → web-DdkOVyp-.js} +2 -2
- package/dist/standalone/assets/{web-D9n6hYj1.js.map → web-DdkOVyp-.js.map} +1 -1
- package/dist/standalone/assets/{web-namespaces-TlpveG6O.js → web-namespaces-DsiStifa.js} +1 -1
- package/dist/standalone/assets/{web-namespaces-TlpveG6O.js.map → web-namespaces-DsiStifa.js.map} +1 -1
- package/dist/standalone/assets/welcome-screen-CyLPcV3l.js +1 -0
- package/dist/standalone/assets/{welcome-screen-71VYtG_N.js → welcome-screen-DaQBEeKe.js} +2 -2
- package/dist/standalone/assets/{welcome-screen-71VYtG_N.js.map → welcome-screen-DaQBEeKe.js.map} +1 -1
- package/dist/standalone/index.html +38 -33
- package/package.json +1 -1
- package/dist/package/resolution-contract-D6qbDWH9.js.map +0 -1
- package/dist/package/types/contracts.d.ts +0 -1
- package/dist/standalone/assets/account-page-C9RTiet9.js +0 -2
- package/dist/standalone/assets/api-key-screen-7Oeb4VZb.js +0 -2
- package/dist/standalone/assets/api-key-screen-7Oeb4VZb.js.map +0 -1
- package/dist/standalone/assets/assistants-page-DGzqC4QI.js +0 -2
- package/dist/standalone/assets/assistants-page-DGzqC4QI.js.map +0 -1
- package/dist/standalone/assets/auth-flow-DRKdI57z.js.map +0 -1
- package/dist/standalone/assets/avatar-bundled-components-Df4QxjdY.js +0 -1
- package/dist/standalone/assets/circle-check-CuQDC50A.js +0 -2
- package/dist/standalone/assets/circle-check-CuQDC50A.js.map +0 -1
- package/dist/standalone/assets/common-CF7RP46x.js +0 -2
- package/dist/standalone/assets/common-CXt-X9JZ.js +0 -2
- package/dist/standalone/assets/common-DiqTxEoY.js +0 -2
- package/dist/standalone/assets/confirm-dialog-ClRO5F9p.js +0 -2
- package/dist/standalone/assets/confirm-dialog-ClRO5F9p.js.map +0 -1
- package/dist/standalone/assets/copy-to-clipboard-B95wqsGH.js +0 -2
- package/dist/standalone/assets/copy-to-clipboard-B95wqsGH.js.map +0 -1
- package/dist/standalone/assets/doctor-page-DrbQzv7g.js +0 -8
- package/dist/standalone/assets/doctor-page-DrbQzv7g.js.map +0 -1
- package/dist/standalone/assets/esm-qBiA1_4M.js +0 -3
- package/dist/standalone/assets/hatching-screen-DTkoz7iW.js +0 -2
- package/dist/standalone/assets/hatching-screen-DTkoz7iW.js.map +0 -1
- package/dist/standalone/assets/hosting-screen-DM7aTZ8U.js +0 -2
- package/dist/standalone/assets/hosting-screen-DM7aTZ8U.js.map +0 -1
- package/dist/standalone/assets/index-D72X30LM.js +0 -25
- package/dist/standalone/assets/index-D72X30LM.js.map +0 -1
- package/dist/standalone/assets/index-v5jIc7Ne.css +0 -2
- package/dist/standalone/assets/is-electron-DLjujt3j.js.map +0 -1
- package/dist/standalone/assets/login-page-BZGRX0EO.js +0 -2
- package/dist/standalone/assets/logout-page-B2MWIJOU.js +0 -2
- package/dist/standalone/assets/onboarding-navigation-DC8_8LuV.js +0 -2
- package/dist/standalone/assets/pairing-address-oW5PUuio.js +0 -2
- package/dist/standalone/assets/pairing-address-oW5PUuio.js.map +0 -1
- package/dist/standalone/assets/pairing-page-o5yOUb6T.js +0 -2
- package/dist/standalone/assets/provider-i52bX5VR.js +0 -2
- package/dist/standalone/assets/resolve-assistant-D3wYg0xs.js +0 -2
- package/dist/standalone/assets/resolve-assistant-D3wYg0xs.js.map +0 -1
- package/dist/standalone/assets/retire-assistant-V-UCSVA2.js +0 -2
- package/dist/standalone/assets/retire-assistant-V-UCSVA2.js.map +0 -1
- package/dist/standalone/assets/routes-bHGywETD.js +0 -2
- package/dist/standalone/assets/routes-bHGywETD.js.map +0 -1
- package/dist/standalone/assets/select-DT_GqrSO.js +0 -42
- package/dist/standalone/assets/select-DT_GqrSO.js.map +0 -1
- package/dist/standalone/assets/select-assistant-screen-eJq9_eeQ.js +0 -2
- package/dist/standalone/assets/select-assistant-screen-eJq9_eeQ.js.map +0 -1
- package/dist/standalone/assets/signup-shell-DohGIoF-.js.map +0 -1
- package/dist/standalone/assets/src-Cr-NnTju.js.map +0 -1
- package/dist/standalone/assets/startup-page-8yUObKaM.js +0 -2
- package/dist/standalone/assets/startup-page-8yUObKaM.js.map +0 -1
- package/dist/standalone/assets/welcome-screen-DsOD5vcC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/defaultAttributes.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/context.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/Icon.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/createLucideIcon.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/cloud-off.mjs","../../src/assistant/describe-error.ts","../../src/assistant/resolve-assistant.ts","../../src/assistant/use-assistant-request.ts","../../src/i18n/locales/en/account.json","../../src/i18n/locales/en/doctor.json","../../src/i18n/locales/en/common.json","../../src/i18n/locales/en/consent.json","../../src/i18n/locales/en/onboarding.json","../../src/i18n/namespaces.ts","../../src/i18n/supported-locales.ts","../../src/i18n/catalogs.ts","../../src/i18n/instance.ts","../../src/i18n/config.ts","../../src/i18n/i18n.ts","../../src/i18n/provider.tsx","../../src/i18n/react.tsx","../../src/runtime/electron-bridge.ts","../../src/runtime/assistant-status.ts","../../src/hooks/use-electron-status-sync.ts","../../src/shell/assistant-frame.tsx","../../src/utils/routes.ts","../../src/app-shell.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses };\n//# sourceMappingURL=mergeClasses.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n\nexport { toKebabCase };\n//# sourceMappingURL=toKebabCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\n\nexport { toCamelCase };\n//# sourceMappingURL=toCamelCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { toCamelCase } from './toCamelCase.mjs';\n\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\n\nexport { toPascalCase };\n//# sourceMappingURL=toPascalCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n return false;\n};\n\nexport { hasA11yProp };\n//# sourceMappingURL=hasA11yProp.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { createContext, useContext, useMemo, createElement } from 'react';\n\nconst LucideContext = createContext({});\nfunction LucideProvider({\n children,\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n}) {\n const value = useMemo(\n () => ({\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n }),\n [size, color, strokeWidth, absoluteStrokeWidth, className]\n );\n return createElement(LucideContext.Provider, { value }, children);\n}\nconst useLucideContext = () => useContext(LucideContext);\n\nexport { LucideProvider, useLucideContext };\n//# sourceMappingURL=context.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\nimport { hasA11yProp } from './shared/src/utils/hasA11yProp.mjs';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.mjs';\nimport { useLucideContext } from './context.mjs';\n\nconst Icon = forwardRef(\n ({ color, size, strokeWidth, absoluteStrokeWidth, className = \"\", children, iconNode, ...rest }, ref) => {\n const {\n size: contextSize = 24,\n strokeWidth: contextStrokeWidth = 2,\n absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,\n color: contextColor = \"currentColor\",\n className: contextClass = \"\"\n } = useLucideContext() ?? {};\n const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size ?? contextSize ?? defaultAttributes.width,\n height: size ?? contextSize ?? defaultAttributes.height,\n stroke: color ?? contextColor,\n strokeWidth: calculatedStrokeWidth,\n className: mergeClasses(\"lucide\", contextClass, className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.mjs';\nimport { toKebabCase } from './shared/src/utils/toKebabCase.mjs';\nimport { toPascalCase } from './shared/src/utils/toPascalCase.mjs';\nimport Icon from './Icon.mjs';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057\", key: \"1uxyv8\" }],\n [\"path\", { d: \"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78\", key: \"99tcn7\" }],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }]\n];\nconst CloudOff = createLucideIcon(\"cloud-off\", __iconNode);\n\nexport { __iconNode, CloudOff as default };\n//# sourceMappingURL=cloud-off.mjs.map\n","/**\n * Renders an unknown thrown value as a string a log line can carry. Error\n * objects serialize as `{}` through the webview console pipeline (message and\n * stack are non-enumerable), so they are pulled out explicitly; anything else\n * gets its natural string form.\n */\nexport function describeError(error: unknown): string {\n if (error instanceof Error) {\n return error.stack ?? `${error.name}: ${error.message}`;\n }\n if (typeof error === \"string\") {\n return error;\n }\n return JSON.stringify(error);\n}\n","import { z } from \"zod\";\n\nimport {\n AssistantListSchema,\n AssistantResolutionSchema,\n PublicUrlSchema,\n type AssistantList,\n type AssistantResolution,\n} from \"./resolution-contract\";\n\nfunction decode<T>(schema: z.ZodType<T>, payload: unknown): T {\n const result = schema.safeParse(payload);\n if (!result.success) {\n // The zod error object carries the path and the per-field failures —\n // surface them so a contract drift names the field that moved.\n throw new Error(\n `Invalid assistant API data.\\n${z.prettifyError(result.error)}`,\n );\n }\n return result.data;\n}\n\nexport interface AssistantRequest {\n apiBaseUrl?: string;\n assistantId?: string;\n signal: AbortSignal;\n}\n\nconst unauthenticated = Symbol(\"unauthenticated\");\nconst notReady = Symbol(\"not ready\");\nconst unavailable = Symbol(\"unavailable\");\n\nfunction createClient({ apiBaseUrl = \"/\", signal }: AssistantRequest) {\n // The shell is same-origin by construction — every host (the desktop\n // protocol, the web dev server, the cloud takeover) proxies the API at\n // the page's own origin. Read inside: SSR renders the shell without a\n // window, and the origin is a browser fact.\n const origin = window.location.origin;\n const base = new URL(decode(PublicUrlSchema, apiBaseUrl), origin);\n base.pathname = base.pathname.replace(/\\/*$/, \"/\");\n const headers = new Headers({ Accept: \"application/json\" });\n async function get(path: string) {\n signal.throwIfAborted();\n const requestUrl = new URL(path, base);\n const response = await fetch(requestUrl, {\n headers,\n signal,\n credentials: \"include\",\n });\n signal.throwIfAborted();\n if (response.status === 401) {\n return unauthenticated;\n }\n if (response.status === 409) {\n return notReady;\n }\n if (response.status === 410) {\n return unavailable;\n }\n if (!response.ok) {\n console.error(\n `Assistant request failed: ${response.status} ${response.headers.get(\"content-type\") ?? \"\"} from ${requestUrl.href}`,\n );\n throw new Error(\n `Assistant request failed: ${response.status} from ${requestUrl.href}`,\n );\n }\n const payload: unknown = await response.json().catch((error) => {\n console.error(\n `Assistant response was not JSON from ${requestUrl.href}: ${error}`,\n );\n throw error;\n });\n signal.throwIfAborted();\n return payload;\n }\n return { base, get };\n}\n\n/**\n * The chooser's list: ONE call to the same-origin list endpoint — the\n * unscoped `v1/assistants/` is the list CONTRACT (the machine's rows\n * without a credential field), and the client just decodes it. No session\n * (401) reads as the contract's own unauthenticated arm.\n */\nexport async function listAssistantChoices(\n options: AssistantRequest,\n): Promise<AssistantList> {\n const client = createClient(options);\n const payload = await client.get(\"v1/assistants/\");\n if (payload === unauthenticated) {\n return { status: \"unauthenticated\" };\n }\n return decode(AssistantListSchema, payload);\n}\n\n/**\n * The shell's resolution: ONE call to the same-origin assistant resolution\n * endpoint — the serving host's operation composes the whole union (the\n * lockfile's choice, the entry gateway's identity and the caller's own auth\n * verdict) and the client just decodes it. The status-code arms stay for\n * hosts whose operation forwards a platform detail's own codes, and for\n * older stacks whose baked metadata predates the union.\n */\nexport async function resolveAssistant(\n options: AssistantRequest,\n): Promise<AssistantResolution> {\n const client = createClient(options);\n const payload = await client.get(\n options.assistantId\n ? `v1/assistants/${encodeURIComponent(options.assistantId)}/`\n : \"v1/assistant\",\n );\n if (payload === unauthenticated) {\n return { status: \"unauthenticated\" };\n }\n if (payload === notReady) {\n return { status: \"notReady\" };\n }\n if (payload === unavailable) {\n return { status: \"unavailable\" };\n }\n return decode(AssistantResolutionSchema, payload);\n}\n","import { useEffect, useState } from \"react\";\nimport { describeError } from \"./describe-error\";\nimport {\n AssistantResolutionSchema,\n type AssistantResolution,\n} from \"./resolution-contract\";\nimport { resolveAssistant, type AssistantRequest } from \"./resolve-assistant\";\n\nexport type AssistantRequestState =\n | AssistantResolution\n | { status: \"loading\" | \"error\" };\n\n/**\n * The shell's resolution flow: one same-origin resolution request — the\n * serving host's operation composes the whole union (the lockfile's choice,\n * the entry gateway's identity, the caller's own auth verdict) and the hook\n * decodes it. The chooser picks instead of resolving, so it reads the same\n * endpoint through its own useAssistantChoices hook. The `assistantId` prop\n * keys re-resolution (a chooser hand-off re-runs the flow) and rides the\n * request when present — the endpoint answers the named assistant; without\n * one it answers the host's truth about what is served.\n */\nexport function useAssistantRequest({\n apiBaseUrl = \"/\",\n assistantId,\n}: Omit<AssistantRequest, \"signal\">) {\n const [attempt, setAttempt] = useState(0);\n const key = JSON.stringify([apiBaseUrl, assistantId, attempt]);\n const [result, setResult] = useState<{\n key: string;\n state: AssistantRequestState;\n }>();\n useEffect(() => {\n const controller = new AbortController();\n const settle = (state: AssistantRequestState) => setResult({ key, state });\n settle({ status: \"loading\" });\n // The request itself needs no origin — the client reads the page's own\n // (same-origin by construction: every host proxies the API at the page's\n // origin). Read here only for the timeout log: SSR renders the shell\n // without a window, and the origin is a browser fact.\n const origin = window.location.origin;\n const timer = setTimeout(() => {\n console.error(\n `Assistant request timed out after 10s (apiBaseUrl ${apiBaseUrl}, origin ${origin}, assistantId ${assistantId ?? \"none\"})`,\n );\n controller.abort();\n settle({ status: \"error\" });\n }, 10_000);\n void Promise.resolve()\n .then(() => {\n if (controller.signal.aborted) {\n return;\n }\n return resolveAssistant({\n apiBaseUrl,\n assistantId,\n signal: controller.signal,\n });\n })\n .then(\n (value) => {\n if (controller.signal.aborted) {\n return;\n }\n clearTimeout(timer);\n const parsed = AssistantResolutionSchema.safeParse(value);\n if (!parsed.success) {\n console.error(\n \"Assistant resolution did not match the contract:\",\n parsed.error.message,\n );\n settle({ status: \"error\" });\n return;\n }\n settle(parsed.data);\n },\n (error) => {\n if (!controller.signal.aborted) {\n console.error(\n `Assistant request failed: ${describeError(error)} (apiBaseUrl ${apiBaseUrl}, origin ${origin}, assistantId ${assistantId ?? \"none\"})`,\n );\n clearTimeout(timer);\n settle({ status: \"error\" });\n }\n },\n );\n return () => {\n clearTimeout(timer);\n controller.abort();\n };\n }, [apiBaseUrl, assistantId, attempt, key]);\n const state: AssistantRequestState =\n result?.key === key ? result.state : { status: \"loading\" };\n return {\n state,\n retry: () => setAttempt((value) => value + 1),\n };\n}\n","{\n \"authWaitSpinner\": {\n \"loading\": \"Loading\"\n },\n \"signupScreen\": {\n \"headlineLead\": \"Meet your new\",\n \"headlineRoles\": {\n \"personalIntelligence\": \"Personal Intelligence\",\n \"softwareEngineer\": \"Software Engineer\",\n \"financeOps\": \"Finance Ops\",\n \"householdManager\": \"Household Manager\",\n \"gtmEngineer\": \"GTM Engineer\",\n \"productLead\": \"Product Lead\"\n },\n \"subtitle\": \"The most powerful assistant that can handle your work and life admin tasks.\",\n \"continue\": \"Continue\",\n \"downloadMac\": \"Download for macOS\",\n \"haveAccountPrompt\": \"Already have an account? <signIn>Sign in</signIn>\"\n },\n \"signupClosedScreen\": {\n \"title\": \"Signups are currently closed\",\n \"message\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later. Alternatively, you can self-host Cadet. Learn more about self-hosting <selfHostingLink>here</selfHostingLink>.\",\n \"haveAccountPrompt\": \"Already have an account? <signIn>Sign in</signIn>\"\n },\n \"accountPage\": {\n \"loading\": \"Loading...\",\n \"welcomeTitle\": \"Welcome to Cadet\",\n \"welcomeSubtitle\": \"Sign in to get started.\",\n \"signIn\": \"Sign in\",\n \"signedInTitle\": \"Welcome!\",\n \"signedInTitleNamed\": \"Welcome, {name}!\",\n \"signedInSubtitle\": \"You are signed in.\",\n \"goToAssistant\": \"Go to your assistant\",\n \"signOut\": \"Sign out\",\n \"manageAssistants\": \"Manage assistants\"\n },\n \"loginPage\": {\n \"signUp\": \"Sign up\",\n \"signIn\": \"Sign in\"\n },\n \"logoutPage\": {\n \"title\": \"Signing out...\"\n },\n \"platformLoopbackPage\": {\n \"backToWelcome\": \"Back to Welcome\",\n \"completing\": \"Completing login...\"\n },\n \"oauthComplete\": {\n \"errorCode\": \"Error: {code}\"\n },\n \"providerCallbackPage\": {\n \"signupClosedTitle\": \"Signups are currently closed\",\n \"signupClosedSubtitle\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"backToSignIn\": \"Back to sign in\",\n \"failedTitle\": \"Authentication failed\",\n \"failedSubtitle\": \"Something went wrong during social sign-in. Please try again or use a different method.\",\n \"completingTitle\": \"Completing sign-in...\",\n \"completingSubtitle\": \"Please wait while we finish authenticating you.\"\n },\n \"providerSignupPage\": {\n \"completingTitle\": \"Completing signup...\",\n \"completingSubtitle\": \"Please wait while we load your information.\",\n \"headingLine1\": \"Almost there,\",\n \"headingLine2\": \"one more detail\",\n \"firstNameQuestion\": \"What should I call you?\",\n \"firstNamePlaceholder\": \"First name\",\n \"lastNameQuestion\": \"And your last name?\",\n \"lastNamePlaceholder\": \"Last name\",\n \"roleQuestion\": \"Your role\",\n \"rolePlaceholder\": \"e.g. Software Engineer\",\n \"submitting\": \"Setting up…\",\n \"submit\": \"Continue →\",\n \"completeAccountTitle\": \"Complete your account\",\n \"completeAccountSubtitle\": \"We need a few more details to finish setting up your account.\",\n \"backToSignIn\": \"← Back to sign in\",\n \"emailPlaceholder\": \"Email\",\n \"usernamePlaceholder\": \"Username\",\n \"completeSignup\": \"Complete signup\",\n \"completingSignup\": \"Completing...\"\n },\n \"authErrors\": {\n \"genericFailure\": \"Something went wrong. Please try again.\",\n \"signupClosed\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"providerSignup\": \"No Cadet account is linked to that login yet. Sign up first, then sign in.\",\n \"loginIncomplete\": \"Your account needs another step to finish signing in. Please sign in on the web, then try again.\",\n \"desktopUpdateRequired\": \"This version of the Cadet desktop app can't sign in. Update the app, then try again.\",\n \"loopbackStateMismatch\": \"Login failed: state mismatch. Please try again.\",\n \"loopbackNoToken\": \"Login failed: no session token received. Please try again.\",\n \"loopbackInvalidToken\": \"Login failed: invalid session token.\"\n },\n \"welcome\": {\n \"title\": \"Welcome to Cadet\",\n \"body\": \"Your own personal intelligence is just a step away.\",\n \"cancel\": \"Cancel\",\n \"logIn\": \"Log In\",\n \"continueWithoutAccount\": \"Continue without account\",\n \"comingSoon\": \"Log in to Cadet Cloud is Coming Soon!\"\n },\n \"selectAssistantScreen\": {\n \"listAriaLabel\": \"Assistants\",\n \"create\": \"Create an assistant\",\n \"rowActionsAriaLabel\": \"Actions for {name}\",\n \"retire\": \"Retire Assistant\",\n \"addRemote\": \"Add a remote assistant\",\n \"currentWithHost\": \"Current · {host}\",\n \"remoteWithHost\": \"Remote · {host}\",\n \"removeFromDevice\": \"Remove from this device…\",\n \"unnamedAssistant\": \"the assistant\",\n \"hatchAssistant\": \"Hatch a new assistant\",\n \"localAssistant\": \"On this computer\",\n \"cloudHosted\": \"Cloud-hosted\",\n \"cloudHostedWithHost\": \"Cloud-hosted · {host}\",\n \"selfHosted\": \"Self-hosted\"\n },\n \"appShell\": {\n \"loading\": \"Loading assistant…\",\n \"error\": \"Unable to load assistant.\",\n \"errorTitle\": \"We couldn't reach your assistant\",\n \"errorBody\": \"It didn't respond just now. If your assistant was just started, give it a moment, then retry.\",\n \"notReady\": \"Your assistant isn't ready.\",\n \"notReadyTitle\": \"Your assistant isn't ready.\",\n \"notReadyBody\": \"It isn't up right now. Try again in a bit, or start it from your Cadet account.\",\n \"wake\": \"Wake it up\",\n \"waking\": \"Waking…\",\n \"wakeFailed\": \"The wake didn't go through just now. Try again in a bit.\",\n \"empty\": \"No assistant is available.\",\n \"unauthenticated\": \"Please sign in to continue.\",\n \"retry\": \"Retry\",\n \"switchAssistant\": \"Switch assistant\",\n \"title\": \"Assistant\",\n \"selection\": \"Choose an assistant.\",\n \"unavailable\": \"This assistant is unavailable.\",\n \"assistantSwitchFailed\": \"Couldn't switch to that assistant.\"\n },\n \"actions\": {\n \"cancel\": \"Cancel\",\n \"add\": \"Add\",\n \"adding\": \"Adding…\",\n \"connect\": \"Connect\",\n \"connecting\": \"Connecting…\",\n \"continue\": \"Continue\",\n \"back\": \"Back\",\n \"loginToUse\": \"Log in to use\",\n \"tryAgain\": \"Try again\"\n },\n \"connectAssistantDialog\": {\n \"title\": \"Connect a Remote Assistant\",\n \"instruction\": \"Paste the pairing link from the assistant's Pair a device settings, or just its address, and approve the request there.\",\n \"linkGuidance\": \"This link came from a pairing QR code. To connect this device, paste the pairing link from the assistant's machine here.\",\n \"legacyLinkGuidance\": \"This link came from an older version of the app and can no longer be used. Generate a new pairing link on the assistant's machine and paste it here.\",\n \"addressLabel\": \"Address or pairing link\",\n \"addressPlaceholder\": \"https://your-assistant.ts.net\",\n \"nameLabel\": \"Name (optional)\",\n \"approveOnHost\": \"Approve this code on the assistant's machine to finish connecting.\",\n \"waitingForApproval\": \"Waiting for approval…\",\n \"retrying\": \"The assistant isn't ready to pair yet. Still trying until the code expires.\",\n \"expiresIn\": \"Expires in {time}\",\n \"retryExpired\": \"The pairing code expired before the assistant was ready to pair. Start over to get a new one.\",\n \"submitError\": \"Failed to connect to that assistant. Please try again.\",\n \"importedTitle\": \"Pairing Imported\",\n \"importedBody\": \"This pairing is access-only: it works now, but its access expires and cannot renew itself. When it does, generate a fresh pairing link on the assistant's machine and paste it here to pair again.\"\n },\n \"startScreen\": {\n \"createAssistant\": \"Create your assistant\"\n },\n \"hostingScreen\": {\n \"title\": \"Hosting\",\n \"body\": \"Choose where you want your assistant to live.\",\n \"needHelp\": \"Need help deciding?\",\n \"optionsAriaLabel\": \"Hosting options\"\n },\n \"apiKeyScreen\": {\n \"title\": \"Connect a Model Provider\",\n \"body\": \"Choose the model provider your assistant should use.\",\n \"providerLabel\": \"Provider\",\n \"modelLabel\": \"Model\",\n \"baseUrlLabel\": \"Base URL\",\n \"modelsLabel\": \"Models\",\n \"modelsPlaceholder\": \"model-1, model-2\",\n \"modelsHelp\": \"Comma-separated model identifiers exposed by your endpoint.\",\n \"apiKeyLabel\": \"{provider} API Key\",\n \"apiKeyPlaceholder\": \"Enter your API key\",\n \"noKeyPrompt\": \"Don't have it?\",\n \"getKeyLink\": \"Get an API key here\"\n },\n \"hatchingScreen\": {\n \"apiKeyFailed\": \"Your API key didn't work\",\n \"genericFailure\": \"Something went wrong\",\n \"ready\": \"Your assistant is ready!\",\n \"updateApiKey\": \"Update API key\",\n \"waking\": \"Waking up…\",\n \"wakingBody\": \"Hang tight, your assistant will have a few questions for you once it's up.\",\n \"progressAriaLabel\": \"Assistant startup progress\",\n \"phase\": {\n \"initializing\": \"Getting things ready…\",\n \"provisioning\": \"Setting up your assistant…\",\n \"connecting\": \"Connecting to your assistant…\",\n \"ready\": \"Ready\"\n }\n },\n \"pairingPage\": {\n \"pairingCode\": \"Pairing code\",\n \"pair\": \"Pair\",\n \"expiresAt\": \"Expires {time}.\",\n \"cancel\": \"Cancel\",\n \"enterNewCode\": \"Enter a new code\"\n },\n \"assistantBackups\": {\n \"columnCreated\": \"Created\",\n \"columnReady\": \"Ready\",\n \"columnSnapshotName\": \"Snapshot Name\",\n \"columnType\": \"Type\",\n \"copyFailed\": \"Couldn't copy the snapshot name.\",\n \"copySnapshotName\": \"Copy snapshot name\",\n \"createBackup\": \"Create Backup\",\n \"createFailedToast\": \"Failed to create backup.\",\n \"createSuccessToast\": \"Backup started. It will appear in the list shortly.\",\n \"creating\": \"Creating…\",\n \"empty\": \"No backups found for this assistant.\",\n \"export\": \"Export\",\n \"exportDownloading\": \"Downloading…\",\n \"exportExporting\": \"Exporting…\",\n \"exportFailedToast\": \"Failed to export the assistant.\",\n \"exportMessage\": \"Download a .tar.gz archive of the whole installation, including encrypted credentials and the keys needed to read them. Keep this archive private.\",\n \"exportPreparing\": \"Preparing…\",\n \"exportTitle\": \"Export Assistant\",\n \"loadFailed\": \"Failed to load backups.\",\n \"loading\": \"Loading backups...\",\n \"notReady\": \"Backup is not ready to use\",\n \"oldestRemovedNotice\": \"Creating a new backup will remove the oldest one.\",\n \"pending\": \"Pending\",\n \"ready\": \"Ready\",\n \"restore\": \"Restore\",\n \"restoreFailedToast\": \"Failed to restore backup.\",\n \"restoreMessage\": \"Restore from backup \\\"{name}\\\"?\\n\\nThe assistant will be temporarily unavailable during the restore.\",\n \"restoreSuccessToast\": \"Backup restored successfully.\",\n \"restoreTitle\": \"Restore Backup\",\n \"typeDoctor\": \"Doctor\",\n \"typePointInTime\": \"Point-in-time\",\n \"typePreview\": \"Preview\",\n \"typeScheduled\": \"Scheduled\"\n },\n \"assistantUpgrades\": {\n \"alreadyOnVersion\": \"You are already on this version.\",\n \"confirmUpdateMessage\": \"Update to version {version}? The assistant will be briefly unavailable during the update.\",\n \"confirmUpdateTitle\": \"Update assistant\",\n \"current\": \"Current\",\n \"currentSuffix\": \"(current)\",\n \"latest\": \"latest\",\n \"latestSuffix\": \"(latest)\",\n \"loading\": \"Loading...\",\n \"noReleases\": \"No releases available\",\n \"selected\": \"Selected\",\n \"successUpdated\": \"Successfully updated to version {version}.\",\n \"toastUpdateComplete\": \"Update complete. Your assistant is healthy.\",\n \"toastUpdateFailed\": \"Failed to trigger update. Please try again.\",\n \"toastUpdateInitiated\": \"Update to {version} initiated.\",\n \"update\": \"Update\",\n \"updateTo\": \"Update to\",\n \"updating\": \"Updating...\"\n },\n \"assistantsPage\": {\n \"title\": \"Manage assistants\",\n \"subtitle\": \"Backups, upgrades, and exports for each assistant on this account.\",\n \"loading\": \"Loading your assistants...\",\n \"loadFailed\": \"The assistant list failed to load.\",\n \"retry\": \"Try again\",\n \"signInRequired\": \"Sign in to manage your assistants.\",\n \"empty\": \"No assistants on this account yet.\",\n \"upgradesSection\": \"Version\",\n \"backupsSection\": \"Backups\",\n \"adminAccessSection\": \"Admin access\",\n \"adminAccess\": {\n \"stateOn\": \"Enabled — the assistant's data may be fetched through the cloud's admin seam (log downloads).\",\n \"stateOff\": \"Disabled — the cloud's admin tooling cannot fetch this assistant's data.\",\n \"enable\": \"Enable admin access\",\n \"disable\": \"Disable admin access\",\n \"working\": \"Working…\",\n \"updated\": \"Admin access updated.\",\n \"updateFailed\": \"The admin access update failed.\",\n \"notAvailable\": \"Admin access applies to cloud-hosted assistants only.\"\n }\n }\n}\n","{\n \"doctorChatBlocks\": {\n \"allowOnce\": \"Allow once\",\n \"alwaysAllow\": \"Always Allow\",\n \"backUp\": \"Back up\",\n \"backupPromptBody\": \"The doctor is about to run <toolCode>{toolName}</toolCode>. Would you like to back up your workspace first?\",\n \"backupPromptTitle\": \"Create a backup before modifying?\",\n \"completedStep\": \"Completed 1 step\",\n \"confirmationRequired\": \"Confirmation required\",\n \"copyAria\": \"Copy to clipboard\",\n \"copyAriaCopied\": \"Copied\",\n \"copyError\": \"Couldn't copy the message.\",\n \"copyTitle\": \"Copy\",\n \"copyTitleCopied\": \"Copied!\",\n \"deny\": \"Deny\",\n \"failedStep\": \"Failed 1 step\",\n \"feedbackBody\": \"You can send it with logs while the Doctor keeps looking for a fix or workaround here.\",\n \"feedbackTitle\": \"This sounds like feedback for the Cadet team.\",\n \"gladSolved\": \"Glad it's solved!\",\n \"hideDetails\": \"Hide details\",\n \"notSolved\": \"Not solved\",\n \"notSolvedAria\": \"No, my problem is not solved\",\n \"output\": \"Output\",\n \"runningStep\": \"Running 1 step\",\n \"shareFeedback\": \"Share Feedback\",\n \"showDetails\": \"Show details\",\n \"skip\": \"Skip\",\n \"solvedAria\": \"Yes, my problem is solved\",\n \"technicalDetails\": \"Technical Details\",\n \"toolLabel\": \"Tool:\"\n },\n \"doctorPanel\": {\n \"connecting\": \"Connecting...\",\n \"copiedToast\": \"Session copied to clipboard.\",\n \"copyFailed\": \"Couldn't copy the session.\",\n \"copySession\": \"Copy Session\",\n \"endSession\": \"End Session\",\n \"goToNewest\": \"Go to Newest\",\n \"goToNewestAria\": \"Go to newest message\",\n \"idleDescription\": \"Start a diagnostic session to have the Doctor analyze your assistant, identify issues, and suggest or apply fixes. The Doctor is free to use. Doctor logs may be temporarily stored.\",\n \"idleTitle\": \"Assistant Doctor\",\n \"loading\": \"Loading...\",\n \"newSession\": \"New Session\",\n \"noAssistant\": \"No assistant found. Hatch an assistant to use the Doctor.\",\n \"placeholderApproval\": \"Type \\\"approve\\\" or \\\"deny\\\", or send a message...\",\n \"placeholderMessage\": \"Type a message...\",\n \"sendMessageAria\": \"Send message\",\n \"sessionMenu\": \"Session options\",\n \"shareFeedback\": \"Share Feedback\",\n \"startSession\": \"Start Doctor Session\",\n \"thinking\": \"Thinking…\",\n \"title\": \"Doctor\",\n \"openBackups\": \"Open backups in assistant settings\"\n },\n \"shareFeedbackModal\": {\n \"aboutDiagnosticsAria\": \"About diagnostics\",\n \"addFiles\": \"Add files\",\n \"attachments\": \"Attachments\",\n \"bugTip\": \"Tip: Get faster support by posting in our <discordLink>Discord community</discordLink>\",\n \"cancel\": \"Cancel\",\n \"category\": \"Category\",\n \"closeAria\": \"Close\",\n \"diagnosticsTooltip\": \"Diagnostics include browser context, assistant logs, and timestamps - never passwords or credentials.\",\n \"downloadDiagnostics\": \"Download diagnostics directly\",\n \"downloadDiagnosticsAria\": \"Download diagnostics directly\",\n \"downloadDiagnosticsButton\": \"Download diagnostics\",\n \"dropFiles\": \"Drop files to attach…\",\n \"featureTip\": \"Tip: Vote on features on our <roadmapLink>public roadmap</roadmapLink>\",\n \"includeConversation\": \"Include the most recent conversation\",\n \"includeConversationAria\": \"Include the most recent conversation\",\n \"includeDiagnostics\": \"Include diagnostics\",\n \"includeDiagnosticsAria\": \"Include browser diagnostics\",\n \"messageLabelBug\": \"What went wrong?\",\n \"messageLabelFeature\": \"Describe your idea\",\n \"messageLabelOther\": \"What's on your mind?\",\n \"messagePlaceholderBug\": \"What did you expect to happen, and what happened instead?\",\n \"messagePlaceholderFeature\": \"What problem would this solve for you?\",\n \"messagePlaceholderOther\": \"Share your thoughts...\",\n \"preparingDiagnostics\": \"Preparing diagnostics…\",\n \"reasonBugReport\": \"Bug Report\",\n \"reasonFeatureRequest\": \"Feature Request\",\n \"reasonOther\": \"Other\",\n \"removeAttachmentAria\": \"Remove {name}\",\n \"sendingFeedback\": \"Sending feedback…\",\n \"submit\": \"Submit\",\n \"timeRange\": \"Time range\",\n \"timeRangeAllTime\": \"All time\",\n \"timeRangeAria\": \"Diagnostics time range\",\n \"timeRangePast24Hours\": \"Past 24 hours\",\n \"timeRangePastHour\": \"Past hour\",\n \"title\": \"Share Feedback\",\n \"doctorSessionAttached\": \"The doctor session transcript will be attached to your report.\"\n },\n \"detailPanelStopButton\": {\n \"tooltip\": \"Stop\"\n },\n \"doctorPage\": {\n \"empty\": \"There's no assistant on this machine yet. Hatch one first, then come back to the Doctor.\"\n }\n}\n","{\n \"aboutPage\": {\n \"build\": \"Build\",\n \"cliPath\": \"CLI path\",\n \"taglineMacOS\": \"AI assistant for your Mac\",\n \"taglineWindows\": \"AI assistant for your PC\",\n \"version\": \"Version\"\n },\n \"activeAssistantGate\": {\n \"connecting\": \"Connecting to your assistant…\",\n \"logIn\": \"Log In\",\n \"logOut\": \"Log Out\",\n \"errorTitle\": \"We couldn't reach your assistant\",\n \"retry\": \"Try again\"\n },\n \"addCredentialModal\": {\n \"cancel\": \"Cancel\",\n \"credentialSaved\": \"Credential saved.\",\n \"description\": \"Add an API key or token to let tools and integrations use it.\",\n \"fieldLabel\": \"Field\",\n \"fieldPlaceholder\": \"e.g. api_token\",\n \"labelOptional\": \"Label (optional)\",\n \"labelPlaceholder\": \"e.g. GitHub personal access token\",\n \"save\": \"Save\",\n \"saveFailed\": \"Failed to save credential\",\n \"serviceLabel\": \"Service\",\n \"servicePlaceholder\": \"e.g. github\",\n \"title\": \"Add credential\",\n \"valueLabel\": \"Value\",\n \"valuePlaceholder\": \"Enter the secret value\"\n },\n \"addCreditsModal\": {\n \"amount\": \"Amount\",\n \"cancel\": \"Cancel\",\n \"configureAutoReload\": \"Configure Auto-Reload\",\n \"continue\": \"Continue\",\n \"description\": \"You'll be redirected to Stripe to complete the payment.\",\n \"title\": \"Add Credits\"\n },\n \"appCard\": {\n \"openApp\": \"Open App\",\n \"pin\": \"Pin\",\n \"previewTitle\": \"{name} preview\",\n \"unpin\": \"Unpin\"\n },\n \"appNavBar\": {\n \"close\": \"Close\",\n \"copyLink\": \"Copy link\",\n \"deploy\": \"Deploy\",\n \"deployToVercel\": \"Deploy to Vercel\",\n \"deployToVercelSubtitle\": \"Publish as a static page\",\n \"deployedCopyLinkAria\": \"Deployed to Vercel, copy link\",\n \"deployedCopyLinkTooltip\": \"Deployed: copy link\",\n \"deployedToVercel\": \"Deployed to Vercel\",\n \"deploying\": \"Deploying…\",\n \"edit\": \"Edit\",\n \"expandApp\": \"Expand app\",\n \"fullscreen\": \"Fullscreen\",\n \"openApp\": \"Open app\",\n \"redeploy\": \"Redeploy\",\n \"redeploySubtitle\": \"Publish the current version\",\n \"share\": \"Share\",\n \"shareAndDeploy\": \"Share & deploy\",\n \"shareExportSubtitle\": \"Export as .cadet file\",\n \"sharing\": \"Sharing…\"\n },\n \"appViewerContainer\": {\n \"exitFullscreen\": \"Exit fullscreen\"\n },\n \"assistantConnect\": {\n \"failed\": \"Failed to connect to the assistant.\"\n },\n \"assistantEmailIntroModal\": {\n \"setUp\": \"Set up email\"\n },\n \"assistantFeatureFlagStore\": {\n \"updateFailed\": \"Couldn't update \\\"{label}\\\". Your change was reverted.\"\n },\n \"avatarManagementModal\": {\n \"accent\": \"Accent\",\n \"accentAutomatic\": \"Automatic\",\n \"accentPickerLabel\": \"Accent color\",\n \"accentReset\": \"Reset\",\n \"body\": \"Body\",\n \"color\": \"Color\",\n \"eyes\": \"Eyes\",\n \"keepUploadedDescription\": \"Saving the character replaces it\",\n \"keepUploadedLabel\": \"Keep your uploaded image\",\n \"loadError\": \"Unable to load avatar components. Make sure your assistant is running.\",\n \"name\": \"Name\",\n \"next\": \"Next {label}\",\n \"previous\": \"Previous {label}\",\n \"randomize\": \"Randomize\",\n \"save\": \"Save\",\n \"saving\": \"Saving…\",\n \"title\": \"Update Avatar\",\n \"uploadImage\": \"Upload image\",\n \"uploadedAlt\": \"Uploaded avatar\",\n \"useCharacterDescription\": \"Pick from our built-in avatars\",\n \"useCharacterLabel\": \"Use a character instead\"\n },\n \"bundleConfirmPage\": {\n \"bySigner\": \"by {name}\",\n \"cancel\": \"Cancel\",\n \"capabilities\": \"Capabilities\",\n \"createdBy\": \"Created by\",\n \"hideWarnings\": \"Hide Warnings ({count})\",\n \"install\": \"Install\",\n \"installAnyway\": \"Install Anyway\",\n \"loading\": \"Loading...\",\n \"showWarnings\": \"Show Warnings ({count})\",\n \"size\": \"Size\"\n },\n \"byoVoiceNote\": {\n \"body\": \"Your assistant speaks through a provider you configured yourself. Set its voice on <settingsLink>Models & Services</settingsLink>.\"\n },\n \"channelSetupCompleteNotice\": {\n \"verifyTitle\": \"One last step: verify it's you\",\n \"verifyAction\": \"Verify me\",\n \"verifyBody\": \"Your assistant doesn't know which {channel} account is yours yet, so it won't answer you. Say \\\"verify me on {channel}\\\" in chat to finish.\",\n \"verifyActionBody\": \"Your assistant doesn't know which {channel} account is yours yet, so it won't answer you. It finishes this with you in chat.\",\n \"verifiedTitle\": \"You're verified\",\n \"verifiedBody\": \"Your assistant knows your {channel} account, so it will answer you. You're all set.\"\n },\n \"chatAvatar\": {\n \"alt\": \"Assistant avatar\",\n \"fallbackLetter\": \"V\"\n },\n \"chooserAvatarChip\": {\n \"alt\": \"Assistant avatar\"\n },\n \"collapsibleNavSection\": {\n \"actionsTitle\": \"{title} actions\"\n },\n \"commandPalette\": {\n \"ariaLabel\": \"Command palette\",\n \"clear\": \"Clear\",\n \"clearSearch\": \"Clear search\",\n \"closeSearch\": \"Close search\",\n \"noResults\": \"No results\",\n \"placeholder\": \"Search conversations, memories…\",\n \"searchAriaLabel\": \"Search\",\n \"searching\": \"Searching…\"\n },\n \"companionIntro\": {\n \"announcement\": {\n \"body\": \"I can now join you anywhere on your desktop.\",\n \"cards\": {\n \"context\": {\n \"body\": \"Let me see what you see and help in context.\",\n \"title\": \"Show and explain\"\n },\n \"flow\": {\n \"body\": \"Reach me without leaving the app you’re in.\",\n \"title\": \"Stay in your flow\"\n },\n \"together\": {\n \"body\": \"Talk, point, and make progress together.\",\n \"title\": \"Work side by side\"\n }\n },\n \"close\": \"Close\",\n \"previewLabel\": \"Your desktop companion\",\n \"previewAssistantName\": \"Quill\",\n \"start\": \"Let’s go\",\n \"title\": \"Meet me where you work\"\n },\n \"ariaLabel\": \"Introducing your companion\",\n \"back\": \"Back\",\n \"call\": {\n \"click\": \"Click\",\n \"line\": \"Listening\",\n \"shortcut\": \"Shortcut\"\n },\n \"close\": \"Close\",\n \"done\": \"Got it\",\n \"draw\": {\n \"body\": \"Point out anything on your screen\",\n \"title\": \"Draw\"\n },\n \"idle\": {\n \"body\": \"Hover me and I’ll come out.\",\n \"title\": \"Hey, it’s me\",\n \"titleNamed\": \"Hey, it’s {name}\"\n },\n \"key\": {\n \"scolded\": \"No, the button on your keyboard\",\n \"title\": \"Make it easy to talk to me\"\n },\n \"meet\": {\n \"body\": \"I stay on your desktop, even when Cadet isn’t visible.\"\n },\n \"mute\": {\n \"body\": \"Click the mic to mute yourself or the speaker to mute me\",\n \"title\": \"Mute\"\n },\n \"next\": \"Next\",\n \"share\": {\n \"body\": \"Show me a tab, window, or entire screen\",\n \"title\": \"Share your screen\"\n },\n \"talk\": {\n \"body\": \"Click me to start a conversation.\",\n \"gesture\": \"Or double tap this key:\",\n \"greeted\": \"You did it! That’s all there is to it.\",\n \"title\": \"Talk to me\"\n },\n \"try\": {\n \"body\": \"Say hello and I’ll answer out loud.\",\n \"how\": \"Click me, or double tap the key\",\n \"title\": \"Give it a go\"\n },\n \"permission\": {\n \"microphoneAction\": \"Enable microphone\",\n \"microphoneSettingsHint\": \"Turn on Cadet’s microphone switch in System Settings, then return here.\",\n \"microphonePromptHint\": \"macOS will ask you to allow microphone access.\",\n \"microphoneBody\": \"Let me use your microphone for voice conversations.\",\n \"shortcutBody\": \"Let me hear the shortcut while you use other apps.\",\n \"screenAction\": \"Enable screen sharing\",\n \"screenBody\": \"Prepare screen sharing. You choose what to share when you use it.\",\n \"openSettings\": \"Open Settings\",\n \"settingsHint\": \"Allow access in System Settings, then return here.\",\n \"restricted\": \"This permission is restricted on your Mac. You can skip this step.\",\n \"error\": \"Could not check access. Try again.\",\n \"waiting\": \"Checking access…\",\n \"skip\": \"Skip for now\"\n }\n },\n \"companionPopover\": {\n \"allow\": \"Allow\",\n \"confirm\": \"Confirm\",\n \"credentialLabel\": \"Credential\",\n \"defaultSuffix\": \"(default)\",\n \"deny\": \"Deny\",\n \"dismiss\": \"Dismiss\",\n \"enter\": \"Enter\",\n \"microphoneFallback\": \"Microphone {index}\",\n \"microphonePermissionHint\": \"Allow microphone access to see each microphone by name.\",\n \"microphoneTitle\": \"Microphone\",\n \"needsCredentials\": \"Need a credential\",\n \"needsCredentialsFor\": \"Need credentials for {service}\",\n \"needsOkCount\": \"{count, plural, one {Need your OK on # thing} other {Need your OK on # things}}\",\n \"notNow\": \"Not Now\",\n \"openApp\": \"Open Cadet\",\n \"pendingBadge\": \"{count, plural, one {# thing needs your OK} other {# things need your OK}}\",\n \"previewVoice\": \"Preview {voice}\",\n \"review\": \"Review\",\n \"savedMicrophone\": \"Saved microphone\",\n \"savedMicrophoneNotConnected\": \"Saved microphone (not connected)\",\n \"stopPreview\": \"Stop preview\",\n \"surfaceFallback\": \"Something to look at\",\n \"systemDefault\": \"System Default\",\n \"voiceTitle\": \"Voice\"\n },\n \"companionSurface\": {\n \"calling\": \"Calling…\",\n \"callingNamed\": \"Calling {name}…\",\n \"captureKind\": \"Source kind\",\n \"captureNothing\": \"Nothing to show\",\n \"capturePicker\": \"What to teach from\",\n \"captureScreen\": \"Screen {n}\",\n \"captureScreenRecordingOff\": \"Screen Recording is off\",\n \"captureScreens\": \"Screens\",\n \"captureTabs\": \"Chrome tabs\",\n \"captureTurnOnScreenRecording\": \"Turn on\",\n \"captureWindows\": \"Windows\",\n \"dictating\": \"Listening\",\n \"draw\": \"Draw\",\n \"clearMarks\": \"Clear marks\",\n \"drawTools\": \"Drawing tool\",\n \"drawFreehand\": \"Freehand\",\n \"drawLine\": \"Line\",\n \"drawBox\": \"Box\",\n \"drawCircle\": \"Circle\",\n \"dictatingTranscribing\": \"Thinking\",\n \"endSession\": \"End session\",\n \"muteAssistant\": \"Mute assistant\",\n \"muteAssistantNamed\": \"Mute {name}\",\n \"muteMicrophone\": \"Mute microphone\",\n \"notNow\": \"Not now\",\n \"offerCopy\": \"Copy\",\n \"offerDiscard\": \"Discard\",\n \"offerHeard\": \"{app} pasted that\",\n \"offerNowhere\": \"Nowhere to put these\",\n \"offerPasteFailed\": \"Couldn't paste these\",\n \"offerQuit\": \"Quit {app}\",\n \"offerUse\": \"Use Cadet's\",\n \"offerVersion\": \"Cadet heard\",\n \"openCadet\": \"Open Cadet\",\n \"share\": \"Share\",\n \"sharePicker\": \"What to share\",\n \"showSummary\": \"Show summary\",\n \"stopTeaching\": \"Stop teaching\",\n \"summarizing\": \"Summarizing\",\n \"talk\": \"Talk\",\n \"teach\": \"Teach\",\n \"unmuteAssistant\": \"Unmute assistant\",\n \"unmuteAssistantNamed\": \"Unmute {name}\",\n \"unmuteMicrophone\": \"Unmute microphone\",\n \"chooseMicrophone\": \"Choose microphone\",\n \"workCount\": \"{count, plural, =0 {Nothing running} one {# thing running} other {# things running}}\",\n \"workDone\": \"Done\",\n \"workStopped\": \"Stopped\",\n \"workMore\": \"{count} more\",\n \"workWaiting\": \"{count, plural, one {# waiting on you} other {# waiting on you}}\",\n \"workWaitingStep\": \"Waiting on you\"\n },\n \"companionWatchFramePage\": {\n \"sharingScreen\": \"Sharing your screen\",\n \"sharingScreenNamed\": \"Sharing your screen with {name}\",\n \"sharingWindow\": \"Sharing a window\",\n \"sharingWindowNamed\": \"Sharing a window with {name}\",\n \"teaching\": \"Teaching\",\n \"teachingNamed\": \"Teaching {name}\"\n },\n \"contentActionBar\": {\n \"copiedAria\": \"Copied\",\n \"copyFailed\": \"Couldn't copy the file contents.\",\n \"copyFileContentsAria\": \"Copy file contents\",\n \"downloadFileAria\": \"Download file\",\n \"editFileAria\": \"Edit file\"\n },\n \"conversationTitle\": {\n \"untitled\": \"Untitled\"\n },\n \"copyButton\": {\n \"copied\": \"Copied\",\n \"copyFailed\": \"Could not copy to the clipboard.\"\n },\n \"createAssistantDialog\": {\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"description\": \"Provision a new assistant. It will start up in the background.\",\n \"namePlaceholder\": \"Assistant name (optional)\",\n \"title\": \"New Assistant\",\n \"toastSuccess\": \"New assistant created.\"\n },\n \"dateRangeSelect\": {\n \"ariaLabel\": \"Date range\",\n \"lastDays\": \"{days, plural, one {Last # day} other {Last # days}}\"\n },\n \"deleteAppDialog\": {\n \"delete\": \"Delete\",\n \"deleting\": \"Deleting…\",\n \"message\": \"\\\"{name}\\\" will be permanently removed.\",\n \"title\": \"Delete app\"\n },\n \"deployDialogs\": {\n \"confirmLabel\": \"Let your assistant handle it\",\n \"confirmLabelNamed\": \"Let {assistantName} handle it\",\n \"message\": \"\\\"{appName}\\\" uses backend services that won't work on a static Vercel page. Your assistant can deploy it properly with serverless functions.\",\n \"messageNamed\": \"\\\"{appName}\\\" uses backend services that won't work on a static Vercel page. {assistantName} can deploy it properly with serverless functions.\",\n \"title\": \"This app needs a full deploy\"\n },\n \"deployStore\": {\n \"appExported\": \"App exported\",\n \"deployFailed\": \"Failed to deploy\",\n \"deployedToVercel\": \"Deployed to Vercel\",\n \"open\": \"Open\",\n \"shareFailed\": \"Failed to share app\"\n },\n \"detailPanelStopButton\": {\n \"tooltip\": \"Stop\"\n },\n \"detailPrimitives\": {\n \"copy\": \"Copy\",\n \"expandedValue\": \"Expanded value\",\n \"showLess\": \"Show less\",\n \"showMore\": \"Show more\"\n },\n \"dictationOverlayPage\": {\n \"stopRecording\": \"Stop recording\"\n },\n \"discordNudgeBanner\": {\n \"ariaLabel\": \"Join the Cadet Discord community\",\n \"ctaLong\": \"Join Discord\",\n \"ctaShort\": \"Join\",\n \"subtitleLong\": \"Talk to the team - share feedback, request features, get answers faster\",\n \"subtitleShort\": \"Share feedback, request features, get answers faster\",\n \"title\": \"Join our community!\"\n },\n \"discordSetupConnectStep\": {\n \"instructions\": \"Paste the bot token you copied from the Bot page.\",\n \"verificationNoticeTitle\": \"Ignore the \\\"Verify your App\\\" page\",\n \"verificationNoticeBody\": \"Discord shows it for every new app. It only matters past 100 servers.\",\n \"botTokenLabel\": \"Bot token\",\n \"save\": \"Connect\",\n \"saving\": \"Connecting...\",\n \"saved\": \"Connected. Next, add the bot to a server.\",\n \"botTokenPlaceholder\": \"MTk4NjIyNDgzNzAyNDU0...\"\n },\n \"discordSetupCreateStep\": {\n \"inPortal\": \"In the Discord developer portal:\",\n \"stepCreateApp\": \"Click <strong>New Application</strong> and give the app your assistant's name:\",\n \"copyName\": \"Copy name\",\n \"copied\": \"Copied!\",\n \"stepAppIcon\": \"Optional: download the avatar, then upload it on <strong>General Information</strong> as the app icon.\",\n \"stepResetToken\": \"Go to the <strong>Bot</strong> page in the app's menu, then click <strong>Reset Token</strong> and copy the token right away. Discord only shows it once.\",\n \"stepIntentsOff\": \"On the same page, leave all three <strong>Privileged Gateway Intents</strong> switches off. Your assistant doesn't need them: it only reads direct messages and messages that mention it.\",\n \"openPortal\": \"Open Discord portal\",\n \"continue\": \"I have my token\"\n },\n \"discordSetupFinishStep\": {\n \"connectedTitle\": \"Bot added\",\n \"connectedBody\": \"The token is saved and the bot is in your server. The Discord side is done.\"\n },\n \"discordSetupInviteStep\": {\n \"instructions\": \"Your bot can't see or answer anything until it joins a server. Open the link, pick your server, and approve.\",\n \"openInvite\": \"Add to a server\",\n \"confirmJoined\": \"I've added the bot\",\n \"noAppId\": \"Connect a bot token first, then come back to add it to a server.\"\n },\n \"discordSetupWizard\": {\n \"channelLabel\": \"Discord\",\n \"stepCreate\": \"Create app\",\n \"stepConnect\": \"Connect\",\n \"stepInvite\": \"Add to server\",\n \"stepFinish\": \"Finish\",\n \"copyError\": \"Could not copy the name. Type it into Discord instead.\"\n },\n \"diskPressureBanner\": {\n \"acknowledge\": \"Acknowledge\",\n \"acknowledging\": \"Acknowledging...\",\n \"cleanupBody\": \"Prompt your assistant to free up space before it runs out and enters a locked state.\",\n \"cleanupTitle\": \"Cleanup mode is active\",\n \"criticalBody\": \"Your assistant will enter a locked state if it runs out of storage.\",\n \"criticalModalDescription\": \"Your assistant will enter a locked state if it runs out of storage. You should either prompt your assistant to free up space or increase your storage.\",\n \"criticalTitle\": \"Storage is critically low\",\n \"dontShowAgain\": \"Don't show again\",\n \"manageStorage\": \"Manage Storage\",\n \"review\": \"Review\",\n \"upgrade\": \"Upgrade\",\n \"warningBody\": \"Free up space to avoid interruptions.\",\n \"warningBodyWithUpgrade\": \"Free up space or add more storage to avoid interruptions.\",\n \"warningTitle\": \"Your storage is almost full\"\n },\n \"downloadFeedback\": {\n \"failed\": \"Download failed\",\n \"revealMac\": \"Show in Finder\",\n \"revealWindows\": \"Show in File Explorer\",\n \"saved\": \"Saved to Downloads\",\n \"started\": \"Download started\",\n \"startedDescription\": \"Look for {filename} in your browser's downloads.\"\n },\n \"editFooter\": {\n \"discard\": \"Discard\",\n \"save\": \"Save\",\n \"saving\": \"Saving…\"\n },\n \"featureIntroModal\": {\n \"close\": \"Close\"\n },\n \"fileViewMode\": {\n \"formatted\": \"Formatted\",\n \"modeAria\": \"How to show this file\",\n \"source\": \"Source\"\n },\n \"generateInviteLinkDialog\": {\n \"copyAriaLabel\": \"Copy invite link\",\n \"createFailed\": \"Failed to create invite link. Make sure A2A is enabled for your assistant.\",\n \"creating\": \"Creating invite link…\",\n \"done\": \"Done\",\n \"shareHint\": \"Share this link with another assistant owner to establish a connection.\",\n \"title\": \"Share Connection Link\",\n \"tryAgain\": \"Try Again\"\n },\n \"githubNudgeBanner\": {\n \"ariaLabel\": \"Cadet is open source on GitHub\",\n \"ctaAriaLabel\": \"Star Cadet on GitHub\",\n \"ctaLabel\": \"Star us\",\n \"subtitle\": \"Star us on GitHub or contribute\",\n \"title\": \"Cadet is open source\"\n },\n \"lazyBoundary\": {\n \"loadError\": \"This section couldn't load. Reload the page to try again.\"\n },\n \"localNotification\": {\n \"goToConversation\": \"Go to Conversation\"\n },\n \"desktopAppBanner\": {\n \"ariaLabelMacOS\": \"Download the macOS app\",\n \"ariaLabelWindows\": \"Download the Windows app\",\n \"ctaAriaLabelMacOS\": \"Download macOS app\",\n \"ctaAriaLabelWindows\": \"Download Windows app\",\n \"ctaLabel\": \"Download\",\n \"subtitle\": \"Computer use · terminal access · native automation\",\n \"titleMacOS\": \"Get the macOS app\",\n \"titleWindows\": \"Get the Windows app\"\n },\n \"nativeAppBanner\": {\n \"bannerAria\": \"Download the {appName} app\",\n \"bannerAriaGeneric\": \"Download the Cadet mobile app\",\n \"download\": \"Download\",\n \"downloadAppAria\": \"Download {appName} app\",\n \"downloadAppAriaGeneric\": \"Download Cadet mobile app\",\n \"subtitle\": \"Push notifications · biometric login · haptics\",\n \"title\": \"Get the {appName} app\",\n \"titleGeneric\": \"Get the Cadet app\"\n },\n \"nudgeChatBanner\": {\n \"dismissAria\": \"Dismiss\"\n },\n \"onboardingBackButton\": {\n \"back\": \"Back\"\n },\n \"platformLoginNotice\": {\n \"cancel\": \"Cancel\",\n \"logIn\": \"Log In\"\n },\n \"profileCard\": {\n \"assistantHandleIdleEmpty\": \"Your assistant doesn't have a handle yet - claim one to make it mentionable.\",\n \"assistantHandleLabel\": \"Assistant handle\",\n \"assistantHandleUpdated\": \"Assistant handle updated.\",\n \"available\": \"Available\",\n \"availableHelper\": \"Available.\",\n \"checkAvailabilityFailed\": \"Couldn't check availability.\",\n \"checkingAvailability\": \"Checking availability…\",\n \"chooseDifferentHandle\": \"Please choose a different handle.\",\n \"emailLabel\": \"Email\",\n \"handleHelper\": \"Lowercase letters, digits, hyphens, and underscores. 3–30 characters.\",\n \"handleLocked\": \"Your assistant's handle is locked because it's used as its email subdomain. To change it, <releaseLink>release the subdomain</releaseLink> first.\",\n \"loading\": \"Loading your profile…\",\n \"notAvailable\": \"Not available\",\n \"profileUpdated\": \"Profile updated.\",\n \"save\": \"Save\",\n \"saved\": \"Saved\",\n \"saving\": \"Saving…\",\n \"subtitle\": \"Manage your account details and preferences.\",\n \"title\": \"Profile\",\n \"userHandleIdleAutoGenerated\": \"Your handle was auto-generated at signup - pick one you like.\",\n \"userHandleLabel\": \"User handle\"\n },\n \"profileQuickAddProvider\": {\n \"created\": \"Profile \\\"{name}\\\" created\"\n },\n \"quickInputPage\": {\n \"logoAlt\": \"Cadet\",\n \"placeholder\": \"Ask Cadet anything...\",\n \"send\": \"Send message\"\n },\n \"removeFromDeviceDialog\": {\n \"confirm\": \"Remove\",\n \"messageOrigin\": \"This won't affect {assistantName} or sign you out there. It only forgets the entry on this device. Add it again anytime.\",\n \"messagePaired\": \"This won't affect {assistantName} on its host machine. It only forgets the pairing on this device. Pair again anytime with cadet connect import.\",\n \"messagePlatform\": \"This won't delete {assistantName}. It only removes it from this device. Logging in will make it available again.\",\n \"title\": \"Remove from this device?\",\n \"removeFailed\": \"Failed to remove device from assistant\"\n },\n \"resourcePressureBanner\": {\n \"body\": \"Your assistant is working hard and reaching its current resource limits. Upgrade to keep it running smoothly.\",\n \"bodyNoUpgrade\": \"Your assistant is working hard and reaching its current resource limits.\",\n \"dontShowAgain\": \"Don't show again\",\n \"title\": \"Your assistant needs more power\",\n \"titleNamed\": \"{assistantName} needs more power\",\n \"upgrade\": \"Upgrade\"\n },\n \"retireConfirmDialog\": {\n \"confirmLabel\": \"Retire\",\n \"message\": \"This will permanently retire this assistant and all of its data. You will need to go through the onboarding flow again to create a new one. This action cannot be undone.\",\n \"title\": \"Retire Assistant\"\n },\n \"rootHydrateFallback\": {\n \"loadingAria\": \"Loading\"\n },\n \"routePendingIndicator\": {\n \"loadingAria\": \"Loading\"\n },\n \"rootLayout\": {\n \"unnamedAssistant\": \"the assistant\"\n },\n \"routeErrorBoundary\": {\n \"chunkFailBody\": \"This section couldn't load. Likely a network blip or a stale version. Reload the page to try again.\",\n \"reload\": \"Reload\"\n },\n \"runtimeUpgradeBanner\": {\n \"confirmMessage\": \"Update to version {version}? The assistant will be briefly unavailable during the update.\",\n \"confirmTitle\": \"Update assistant runtime\",\n \"later\": \"Later\",\n \"title\": \"New assistant version available: {version}\",\n \"toastComplete\": \"Update complete. Your assistant is healthy.\",\n \"toastFailed\": \"Failed to trigger update. Please try again.\",\n \"update\": \"Update\"\n },\n \"sectionActionsButton\": {\n \"ariaLabel\": \"{name} actions\"\n },\n \"serviceFormControls\": {\n \"reset\": \"Reset\",\n \"save\": \"Save\"\n },\n \"shareConnectionLinkButton\": {\n \"label\": \"Share Connection Link\"\n },\n \"shareFeedbackModal\": {\n \"aboutDiagnosticsAria\": \"About diagnostics\",\n \"addFiles\": \"Add files\",\n \"adminOnlyHint\": \"Admin only - builds the diagnostics archive locally and downloads it instead of submitting feedback or notifying Slack.\",\n \"attachments\": \"Attachments\",\n \"bugTip\": \"Tip: Get faster support by posting in our <discordLink>Discord community</discordLink>\",\n \"cancel\": \"Cancel\",\n \"category\": \"Category\",\n \"closeAria\": \"Close\",\n \"diagnosticsTooltip\": \"Diagnostics include browser context, assistant logs, and timestamps - never passwords or credentials.\",\n \"downloadDiagnostics\": \"Download diagnostics directly\",\n \"downloadDiagnosticsAria\": \"Download diagnostics directly\",\n \"downloadDiagnosticsButton\": \"Download diagnostics\",\n \"dropFiles\": \"Drop files to attach…\",\n \"email\": \"Email\",\n \"featureTip\": \"Tip: Vote on features on our <roadmapLink>public roadmap</roadmapLink>\",\n \"includeConversation\": \"Include the most recent conversation\",\n \"includeConversationAria\": \"Include the most recent conversation\",\n \"includeDiagnostics\": \"Include diagnostics\",\n \"includeDiagnosticsAria\": \"Include browser diagnostics\",\n \"messageLabelBug\": \"What went wrong?\",\n \"messageLabelFeature\": \"Describe your idea\",\n \"messageLabelOther\": \"What's on your mind?\",\n \"messagePlaceholderBug\": \"What did you expect to happen, and what happened instead?\",\n \"messagePlaceholderFeature\": \"What problem would this solve for you?\",\n \"messagePlaceholderOther\": \"Share your thoughts...\",\n \"preparingDiagnostics\": \"Preparing diagnostics…\",\n \"reasonBugReport\": \"Bug Report\",\n \"reasonFeatureRequest\": \"Feature Request\",\n \"reasonOther\": \"Other\",\n \"removeAttachmentAria\": \"Remove {name}\",\n \"sendingFeedback\": \"Sending feedback…\",\n \"submit\": \"Submit\",\n \"timeRange\": \"Time range\",\n \"timeRangeAllTime\": \"All time\",\n \"timeRangeAria\": \"Diagnostics time range\",\n \"timeRangePast24Hours\": \"Past 24 hours\",\n \"timeRangePastHour\": \"Past hour\",\n \"title\": \"Share Feedback\"\n },\n \"shareFeedbackModalFallback\": {\n \"loadingAria\": \"Loading the feedback form\"\n },\n \"shareFeedbackModalLoadError\": {\n \"close\": \"Close\",\n \"message\": \"Couldn't load the feedback form.\",\n \"retry\": \"Try again\"\n },\n \"sideListDrawer\": {\n \"closeAria\": \"Close\",\n \"closeSidebarAria\": \"Close sidebar\",\n \"openSidebarAria\": \"Open sidebar\"\n },\n \"sidebarShell\": {\n \"backFrom\": \"Back from {title}\",\n \"backToMenu\": \"Back to {title} menu\",\n \"navigationAria\": \"{title} navigation\"\n },\n \"sidebarTree\": {\n \"ariaLabel\": \"Sidebar navigation\"\n },\n \"skillLineageLink\": {\n \"label\": \"Learned from this conversation\"\n },\n \"skillRemovalDialog\": {\n \"message\": \"Remove \\\"{name}\\\" from this assistant?\",\n \"remove\": \"Remove\",\n \"title\": \"Remove skill\"\n },\n \"slackSetupCreateStep\": {\n \"approvalNotice\": \"If Slack shows “Request approval” instead of <strong>Install</strong>, a workspace admin needs to approve the app first.\",\n \"createdApp\": \"I created the app\",\n \"inSlack\": \"In Slack:\",\n \"stepManifest\": \"Under <strong>Or start your own way</strong>, pick <strong>From a manifest</strong>, then <strong>Continue</strong>\",\n \"stepPaste\": \"Choose your workspace and paste the manifest\",\n \"stepReview\": \"Review the permissions, then click <strong>Create and Install</strong>\"\n },\n \"slackSetupNameStep\": {\n \"appName\": \"App Name\",\n \"appNamePlaceholder\": \"My Assistant\",\n \"copied\": \"Copied!\",\n \"copyManifest\": \"Copy manifest\",\n \"description\": \"Description (optional)\",\n \"descriptionHelper\": \"Shown on the app's Slack profile.\",\n \"descriptionPlaceholder\": \"What this assistant helps with\",\n \"intro\": \"Name your Slack app and copy its manifest. Every permission and setting comes pre-configured.\",\n \"next\": \"Next\"\n },\n \"slackSetupOpenStep\": {\n \"body\": \"Open Slack in a new tab to create the app, then come back here for the steps to follow.\",\n \"copied\": \"Copied!\",\n \"copyManifest\": \"Copy manifest\",\n \"manifestCopiedNotice\": \"You copied this app's manifest here. If you have copied anything since, copy it again before you paste.\",\n \"manifestNotCopiedNotice\": \"You have not copied this app's manifest yet. Slack's create-app modal has no other way to get it, so copy it before you paste.\",\n \"next\": \"Next\",\n \"openSlack\": \"Open Slack\"\n },\n \"slackSetupTokensStep\": {\n \"appTokenLabel\": \"App Token\",\n \"botTokenLabel\": \"Bot Token\",\n \"connectSlack\": \"Connect Slack\",\n \"connecting\": \"Connecting…\",\n \"credentialsSaved\": \"Credentials saved\",\n \"instructions\": \"On Slack's confirmation screen, expand <credentials>Your app credentials</credentials> and copy both tokens.\",\n \"skipNotice\": \"That screen also offers a command-line walkthrough and a <download>Download app files</download> button. Skip both. They set up a separate local app, and this assistant needs only the two tokens.\",\n \"savedBody\": \"Both tokens are stored. The Slack side is done.\"\n },\n \"slackSetupWizard\": {\n \"channelLabel\": \"Slack\",\n \"copyError\": \"Could not copy the manifest. Copy it again before continuing.\",\n \"stepConnect\": \"Connect\",\n \"stepCreate\": \"Create\",\n \"stepName\": \"Name\",\n \"stepOpen\": \"Open\"\n },\n \"stackedBarTooltip\": {\n \"total\": \"Total: {value}\"\n },\n \"startupFailure\": {\n \"reloadApp\": \"Reload app\"\n },\n \"statusBanner\": {\n \"reconnecting\": \"Reconnecting to your assistant…\",\n \"dismiss\": \"Dismiss\",\n \"goToDoctor\": \"Go to Doctor\",\n \"resumeAssistant\": \"Resume Assistant\",\n \"retryNow\": \"Retry now\",\n \"wakeUp\": \"Wake up\"\n },\n \"sttLanguagePicker\": {\n \"allLanguages\": \"All languages\",\n \"featured\": \"Featured\",\n \"languagesAriaLabel\": \"Languages\",\n \"noMatch\": \"No languages match.\",\n \"searchAriaLabel\": \"Search languages\",\n \"searchPlaceholder\": \"Search languages\",\n \"suggested\": \"Suggested\"\n },\n \"sttLanguagePickerModal\": {\n \"description\": \"Applies from your next spoken turn.\"\n },\n \"sttProviderForm\": {\n \"apiKeyLabel\": \"API Key\",\n \"apiKeyPlaceholderReplace\": \"•••••••• (Enter a new key to replace)\",\n \"providerAriaLabel\": \"STT provider\",\n \"providerLabel\": \"Provider\",\n \"saveFailed\": \"Failed to save speech-to-text settings\",\n \"saveSuccess\": \"Speech-to-text settings saved\",\n \"spokenLanguage\": \"Spoken language\",\n \"spokenLanguageApplies\": \"Applies from your next spoken turn.\",\n \"cadetTranscription\": \"Transcription runs through your Cadet account.\",\n \"windowsNativeDisplayName\": \"Windows Native Dictation\",\n \"windowsNativeSetupWarning\": \"Requires Basic speech recognition for your Windows display language: open Settings > Time & language > Language & region, select the three dots next to the display language, choose Language options, then under Language features download Basic speech recognition.\",\n \"windowsNativeSubtitle\": \"Windows on-device speech recognition, running locally through the Windows helper. Works offline and needs no API key.\"\n },\n \"subagentAvatarChip\": {\n \"ariaLabel\": \"Subagent {subagentId}\"\n },\n \"systemPermissionsCard\": {\n \"accessibilityDescription\": \"Allows your assistant to click, type, and control apps on your behalf.\",\n \"accessibilityLabel\": \"Accessibility\",\n \"checking\": \"Checking permissions...\",\n \"dockIcon\": \"Dock icon\",\n \"microphoneDescription\": \"Allows your assistant to capture audio for voice input and recordings.\",\n \"microphoneLabel\": \"Microphone\",\n \"notificationBadgesDescription\": \"Allows your assistant to show unseen conversation counts on the {surface}.\",\n \"notificationBadgesLabel\": \"Notification Badges\",\n \"notificationsDescription\": \"Allows your assistant to send macOS alerts for approvals, messages, and task updates.\",\n \"notificationsLabel\": \"Notifications\",\n \"notificationsWindowsDescription\": \"Allows your assistant to show Windows notifications for approvals, messages, and task updates.\",\n \"screenDescription\": \"Allows your assistant to capture screen context during computer-use tasks.\",\n \"screenLabel\": \"Screen Recording\",\n \"speechRecognitionDescription\": \"Allows your assistant to transcribe your speech into text on-device.\",\n \"speechRecognitionLabel\": \"Speech Recognition\",\n \"speechRecognitionWindowsDescription\": \"Allows your assistant to transcribe your speech into text with Windows speech recognition.\",\n \"taskbarIcon\": \"taskbar icon\",\n \"title\": \"System Permissions\"\n },\n \"telegramSetupConnectStep\": {\n \"botTokenLabel\": \"Bot Token\",\n \"connectTelegram\": \"Connect Telegram\",\n \"instructions\": \"Paste the token from BotFather's reply. It is the whole line after <tokenLine>Use this token to access the HTTP API</tokenLine>.\",\n \"saving\": \"Saving…\",\n \"savedTitle\": \"Token saved\",\n \"savedBody\": \"Your bot token is stored. The Telegram side is done.\"\n },\n \"telegramSetupCreateStep\": {\n \"copied\": \"Copied!\",\n \"copyName\": \"Copy name\",\n \"displayNameHint\": \"For the display name, <strong>{suggestedName}</strong> keeps this bot matching your assistant. The username is separate and does not have to match.\",\n \"chatScopeNotice\": \"Private chats and groups are supported. In a group, the assistant replies when it is mentioned or when someone replies to it. Broadcast channels are not supported.\",\n \"inBotFather\": \"In BotFather:\",\n \"intro\": \"Telegram bots are created by messaging <strong>@BotFather</strong>. Open it, run through the prompts, then come back with the token it gives you.\",\n \"next\": \"Next\",\n \"openBotFather\": \"Open BotFather\",\n \"stepDisplayName\": \"Give it a display name, which is what people see in chat\",\n \"stepSendNewBot\": \"Send <strong>/newbot</strong>\",\n \"stepTokenReply\": \"BotFather replies with a token after <strong>Use this token to access the HTTP API</strong>\",\n \"stepUsername\": \"Give it a username, which must be unique and end in <strong>bot</strong>\"\n },\n \"telegramSetupWizard\": {\n \"channelLabel\": \"Telegram\",\n \"copyError\": \"Could not copy the name. Type it into BotFather instead.\",\n \"stepConnect\": \"Connect\",\n \"stepCreate\": \"Create bot\"\n },\n \"tenantHost\": {\n \"shopifyLabel\": \"Shop domain\",\n \"shopifyPlaceholder\": \"your-store.myshopify.com\"\n },\n \"terminalPanel\": {\n \"recoveryModeBanner\": \"Recovery Mode active: this session is connected to the debug terminal.\"\n },\n \"themeStagePage\": {\n \"accentFill\": \"Accent fill\",\n \"activeBorder\": \"Active border\",\n \"activeSurface\": \"Active surface\",\n \"assistantBubble\": \"A reply from the assistant, rendered full-width on the page surface.\",\n \"buttonDisabled\": \"Disabled\",\n \"buttonPrimary\": \"Primary\",\n \"buttonSecondary\": \"Secondary\",\n \"chatAssistant1\": \"Done. The summary is ready. Revenue grew steadily, the two flagged risks from last quarter are resolved, and I pulled the three charts worth showing into a separate page.\",\n \"chatAssistant2\": \"Scheduled for 9am. I'll include the charts and a one-paragraph version for anyone skimming on their phone.\",\n \"chatUser1\": \"Can you summarize the quarterly report before tomorrow's meeting?\",\n \"chatUser2\": \"Perfect. Send it to the team in the morning.\",\n \"composerPlaceholder\": \"Message your assistant\",\n \"faintText\": \"Faint text - the last legible step of the ramp.\",\n \"inputFilled\": \"Text someone has already typed into a field.\",\n \"inputPlaceholder\": \"A placeholder in an empty field\",\n \"newConversation\": \"New conversation\",\n \"overlaySurface\": \"Overlay surface\",\n \"primaryText\": \"Primary text - the main reading surface of the app.\",\n \"quietText\": \"Quiet text - metadata and timestamps.\",\n \"raisedCard\": \"Raised card\",\n \"raisedCardBody\": \"Elevated surfaces sit above panels and the page background.\",\n \"samplerTitle\": \"Theme sampler\",\n \"secondaryText\": \"Secondary text - supporting copy and descriptions.\",\n \"sectionAccent\": \"Accent\",\n \"sectionButtons\": \"Buttons\",\n \"sectionInputs\": \"Inputs\",\n \"sectionMessages\": \"Messages\",\n \"sectionSurfaces\": \"Surfaces and borders\",\n \"sectionText\": \"Text\",\n \"send\": \"Send\",\n \"subtleDivider\": \"Subtle divider above this line.\",\n \"tertiaryText\": \"Tertiary text - captions, labels, and placeholders.\",\n \"userBubble\": \"A message from the user, in its bubble.\"\n },\n \"themeToggle\": {\n \"dark\": \"Dark\",\n \"label\": \"Theme\",\n \"light\": \"Light\",\n \"system\": \"System\"\n },\n \"ttsProviderForm\": {\n \"apiKey\": \"API Key\",\n \"apiKeyRequired\": \"Save an API key for this provider before testing.\",\n \"chooseFromCatalog\": \"Choose from catalog\",\n \"customVoiceIdAriaLabel\": \"Custom voice ID\",\n \"noCloudVoices\": \"No cloud voices are currently available.\",\n \"provider\": \"Provider\",\n \"providerAriaLabel\": \"TTS provider\",\n \"saveFailed\": \"Failed to save text-to-speech settings\",\n \"saved\": \"Text-to-speech settings saved\",\n \"test\": \"Test\",\n \"testing\": \"Testing…\",\n \"voice\": \"Voice\",\n \"voiceId\": \"Voice ID\",\n \"voiceIdPlaceholder\": \"Enter a voice ID\"\n },\n \"updateToast\": {\n \"available\": \"Update available. Starting download…\",\n \"closeAriaLabel\": \"Close\",\n \"downloading\": \"Downloading update…\",\n \"ready\": \"Cadet {version} is ready.\",\n \"restartToInstall\": \"Restart to install\",\n \"versionFallback\": \"update\"\n },\n \"useAppDelete\": {\n \"deleteFailed\": \"Failed to delete app\"\n },\n \"useAppDeployment\": {\n \"copyFailed\": \"Couldn't copy the link. Open it at {url}\",\n \"linkCopied\": \"Link copied\",\n \"open\": \"Open\"\n },\n \"useAssistantChannels\": {\n \"setupPrompt\": {\n \"slack\": \"I want to reach you on Slack. Let's set it up.\",\n \"telegram\": \"I want to reach you on Telegram. Let's set it up.\",\n \"discord\": \"I want to reach you on Discord. Let's set it up.\",\n \"email\": \"I want to email you. Let's set up your email address.\",\n \"phone\": \"I want to be able to call you. Let's set you up with a phone number.\"\n },\n \"finishPrompt\": {\n \"slack\": \"Slack is set up but not working. Can you finish it off?\",\n \"telegram\": \"Telegram is set up but not working. Can you finish it off?\",\n \"discord\": \"Discord is set up but not working. Can you finish it off?\",\n \"email\": \"My email address is set up but not working. Can you finish it off?\",\n \"phone\": \"My phone number is set up but not working. Can you finish it off?\"\n }\n },\n \"useBookmarks\": {\n \"addFailed\": \"Failed to bookmark message.\",\n \"removeFailed\": \"Failed to remove bookmark.\"\n },\n \"useConnectClaude\": {\n \"exchangeFailed\": \"Check the pasted key and try again.\",\n \"failed\": \"Connecting Claude failed. Please try again.\",\n \"notStarted\": \"Start the Connect Claude flow first.\",\n \"pasteEmpty\": \"Paste the code shown on the Claude page.\",\n \"popupBlocked\": \"Your browser blocked the sign-in tab. Allow pop-ups for this site, then click Connect again.\",\n \"startFailed\": \"Couldn't start Connect Claude. Please try again.\",\n \"timedOut\": \"Timed out waiting for Claude to connect. Please try again.\"\n },\n \"useOauthConnect\": {\n \"accountConnected\": \"{name} account connected.\",\n \"authorizationError\": \"{name} error: {code}\",\n \"authorizationFailed\": \"{name} authorization failed\",\n \"popupBlocked\": \"Popup blocked. Please enable popups and try again.\",\n \"startFailed\": \"Failed to start {name} authorization.\",\n \"startFailedWithReason\": \"Couldn't start {name} authorization: {reason}\"\n },\n \"useOpenUrlDirectives\": {\n \"blocked\": \"Your browser blocked a page the assistant tried to open.\",\n \"openPage\": \"Open page\"\n },\n \"useVoiceSamplePreview\": {\n \"playFailed\": \"Could not play the voice sample.\"\n },\n \"useWorkspaceTheme\": {\n \"updated\": \"Theme updated\"\n },\n \"vercelTokenDialog\": {\n \"body\": \"Enter your Vercel API token to deploy apps as static pages.\",\n \"cancel\": \"Cancel\",\n \"createToken\": \"Create a token on Vercel →\",\n \"save\": \"Save\",\n \"saveFailed\": \"Failed to save Vercel token.\",\n \"saving\": \"Saving…\",\n \"title\": \"Connect Vercel\",\n \"tokenLabel\": \"API Token\",\n \"tokenPlaceholder\": \"Vercel API token\"\n },\n \"voiceList\": {\n \"assistantVoiceAriaLabel\": \"Assistant voice\",\n \"defaultSuffix\": \"(default)\",\n \"previewVoice\": \"Preview {description}\",\n \"providerAriaLabel\": \"Voice provider\",\n \"stopPreview\": \"Stop preview\"\n },\n \"voicePickerField\": {\n \"ariaLabel\": \"Voice\",\n \"selectVoice\": \"Select a voice\"\n },\n \"voicePickerModal\": {\n \"done\": \"Done\",\n \"title\": \"Voices\"\n },\n \"voiceProvidersNote\": {\n \"body\": \"Speech providers, transcription, and API keys live in <modelsLink>Models & Services</modelsLink>.\"\n },\n \"voiceTranscriptToggles\": {\n \"recommendedOff\": \"Recommended off\",\n \"userTranscriptLabel\": \"Show the words you say\",\n \"userTranscriptDescription\": \"Live transcription while you speak.\",\n \"assistantTranscriptLabel\": \"Show the words the assistant says\",\n \"assistantTranscriptDescription\": \"Text alongside the spoken response.\"\n },\n \"windowsMenuBar\": {\n \"developer\": \"Developer\",\n \"file\": \"File\",\n \"help\": \"Help\",\n \"view\": \"View\"\n },\n \"domainVerificationChip\": {\n \"checkingDomain\": \"Checking domain…\",\n \"domainVerified\": \"Domain verified\",\n \"failedTitle\": \"Domain verification failed. DNS records may not have propagated correctly. You could try releasing and re-registering the domain.\",\n \"unknownStatus\": \"Unknown status\",\n \"unknownStatusTitle\": \"Unable to retrieve domain verification status.\",\n \"verificationFailed\": \"Verification failed\",\n \"verifiedTitle\": \"DNS records have been verified. Your domain is ready to send and receive email.\",\n \"verifyingDomain\": \"Verifying domain…\",\n \"verifyingTitle\": \"DNS records have been provisioned. Waiting for the email provider to verify them - this usually takes a few minutes.\",\n \"setupRequired\": \"Domain setup required\",\n \"setupRequiredTitle\": \"This domain has not been provisioned with the email provider. It cannot send or receive email until setup is complete.\"\n },\n \"managedServicesBanner\": {\n \"body\": \"Managed services are metered and deducted from your Cadet account balance. <link>View pricing</link>\"\n },\n \"serviceCard\": {\n \"managedLabel\": \"Managed\",\n \"modeToggleAriaLabel\": \"Service mode\",\n \"yourOwnLabel\": \"Your Own\"\n },\n \"channelAvatarDownload\": {\n \"previewAlt\": \"Your assistant's avatar\",\n \"download\": \"Download avatar\",\n \"prompt\": {\n \"slack\": \"Download your assistant's avatar to upload as the app icon.\",\n \"discord\": \"Download your assistant's avatar to upload as the bot icon.\",\n \"telegram\": \"Download your assistant's avatar, then send it to BotFather with /setuserpic.\"\n }\n },\n \"thresholdPresets\": {\n \"strict\": {\n \"label\": \"Strict\",\n \"description\": \"Always ask before acting. No actions are auto-approved.\"\n },\n \"conservative\": {\n \"label\": \"Conservative\",\n \"description\": \"Auto-approve low-risk actions, like web searches and reading and writing files in its own workspace.\"\n },\n \"relaxed\": {\n \"label\": \"Relaxed\",\n \"description\": \"Auto-approve low and medium-risk actions, like changing files outside its own workspace.\"\n },\n \"fullAccess\": {\n \"label\": \"Full access\",\n \"description\": \"Auto-approve all actions, including high-risk and unrecognized commands. Your assistant will never ask for permission.\"\n }\n },\n \"scheduleFormatters\": {\n \"everyHours\": \"Every {count, plural, one {# hr} other {# hrs}}\",\n \"everyMinutes\": \"Every {count, plural, one {# min} other {# mins}}\",\n \"retrospectiveSubtitle\": \"After conversation activity\"\n },\n \"assistantHandleModal\": {\n \"title\": \"Assistant handle\",\n \"description\": \"Your assistant's public name. It is also the name its email address is built on.\",\n \"helper\": \"Lowercase letters, numbers, hyphens, underscores.\"\n },\n \"detailShell\": {\n \"close\": \"Close\",\n \"closePanel\": \"Close panel\",\n \"loading\": \"Loading…\"\n },\n \"permissionGuide\": {\n \"back\": \"Back to the tour\",\n \"dragInstruction\": \"Drag {app} into the list to allow {permission}.\",\n \"dragApp\": \"Drag {app} to System Settings, or press to show in Finder\",\n \"dragError\": \"Drag unavailable. Try dragging from Finder.\",\n \"showInFinder\": \"Show in Finder\",\n \"inputLabel\": \"Input Monitoring\"\n },\n \"pairDeviceUrl\": {\n \"loopback\": \"This is a loopback address other devices can't reach. Enter the assistant's public https URL.\",\n \"nonHttps\": \"The URL must use https so your devices can connect securely.\",\n \"privateAddress\": \"This address points at a private network address. Enter the assistant's public https URL so your devices can reach it.\",\n \"serviceFallbackName\": \"the tunnel provider\",\n \"serviceWebsite\": \"This is {service}'s website, not your assistant's address. Start a tunnel on the host to get one; `cadet tunnel --help` lists the providers.\",\n \"unparseable\": \"Enter a valid URL, e.g. https://your-assistant.ts.net.\"\n }\n}\n","{\n \"consentControls\": {\n \"whatsChanged\": \"What's changed\",\n \"agreements\": \"Agreements\",\n \"agreeTo\": \"I agree to the <0>{policy}</0>\"\n },\n \"actions\": {\n \"continue\": \"Continue\",\n \"logOut\": \"Log out\"\n }\n}\n","{\n \"actions\": {\n \"continue\": \"Continue\",\n \"back\": \"Back\",\n \"forward\": \"Forward\",\n \"cancel\": \"Cancel\",\n \"add\": \"Add\",\n \"adding\": \"Adding…\",\n \"tryAgain\": \"Try again\",\n \"remove\": \"Remove {value}\",\n \"downloadMacOSApp\": \"Download the macOS app\",\n \"downloadWindowsApp\": \"Download the Windows app\",\n \"claim\": \"Claim\"\n },\n \"onboardingAutocomplete\": {\n \"addOption\": \"Add “{value}”\",\n \"enterHint\": \"↵ Enter\",\n \"freeTextHint\": \"Type anything and press ↵ to add your own\"\n },\n \"stepIndicator\": {\n \"ariaLabel\": \"Step {current} of {total}\"\n },\n \"introductionScreen\": {\n \"greetingNamed\": \"Hey, {name}!\",\n \"greeting\": \"Hey!\",\n \"introNamed\": \"I’m {name}, your new AI assistant.\",\n \"intro\": \"I’m your new AI assistant.\"\n },\n \"pitchStep\": {\n \"setupLine\": \"You’ve used AI that just answers questions.\",\n \"helpLine\": \"The more I help,\",\n \"punchLine\": \"I’m different.\",\n \"betterLine\": \"the better I get,\",\n \"lessLine\": \"and the less you have to do.\"\n },\n \"createPersonalityStep\": {\n \"title\": \"Create my personality\",\n \"lockedBody\": \"Personality locked, chat with your assistant to make any more updates\",\n \"axisAriaLabel\": \"{left} to {right}\",\n \"axes\": {\n \"companionCoworker\": {\n \"left\": \"Companion\",\n \"right\": \"Coworker\"\n },\n \"genzBoomer\": {\n \"left\": \"Gen Z\",\n \"right\": \"Baby Boomer\"\n },\n \"executeCollaborate\": {\n \"left\": \"Independent\",\n \"right\": \"Collaborative\"\n },\n \"playfulSerious\": {\n \"left\": \"Playful\",\n \"right\": \"Serious\"\n },\n \"politeUnfiltered\": {\n \"left\": \"Polite\",\n \"right\": \"Unfiltered\"\n }\n }\n },\n \"giveMeAFaceScreen\": {\n \"title\": \"Give me a face and a name\",\n \"previousCharacter\": \"Previous character\",\n \"nextCharacter\": \"Next character\",\n \"namePlaceholder\": \"Name your assistant\",\n \"nameAriaLabel\": \"Assistant name\",\n \"editName\": \"Edit name\",\n \"shuffle\": \"Shuffle name and appearance\",\n \"hearVoice\": \"Hear my voice\",\n \"stopVoice\": \"Stop the voice sample\"\n },\n \"integrationStep\": {\n \"title\": \"Here's some initial usage<br></br> to get started.\"\n },\n \"researchOnboardingScreen\": {\n \"title\": \"Let's start with you.\",\n \"firstNameLabel\": \"What should I call you?\",\n \"firstNamePlaceholder\": \"Your name\",\n \"skip\": \"Skip onboarding\"\n },\n \"existingAssistantStep\": {\n \"titleNamed\": \"{name} is already up and running\",\n \"title\": \"Your assistant is already up and running\",\n \"bodyNamed\": \"You two have history: a personality, memories, and past conversations. Running setup again would overwrite who {name} is now.\",\n \"body\": \"You two have history: a personality, memories, and past conversations. Running setup again would overwrite who your assistant is now.\",\n \"keepNamed\": \"Keep {name} and start chatting\",\n \"keep\": \"Keep your assistant and start chatting\",\n \"redoNamed\": \"Start over and rebuild {name}'s personality\",\n \"redo\": \"Start over and rebuild its personality\"\n },\n \"lookingYouUpStep\": {\n \"searching\": \"Searching the web to get to know you…\",\n \"readingProfiles\": \"Reading public profiles…\",\n \"skimming\": \"Skimming the highlights…\",\n \"connectingDots\": \"Connecting the dots…\",\n \"piecing\": \"Piecing it together…\",\n \"almostThere\": \"Almost there…\"\n },\n \"finishingUpStep\": {\n \"updatingPersonality\": \"Updating my personality…\",\n \"findingVoice\": \"Finding my voice…\",\n \"gettingIntoCharacter\": \"Getting into character…\",\n \"almostThere\": \"Almost there…\"\n },\n \"researchResultsStep\": {\n \"title\": \"This is what I found about you\",\n \"bodyLoadingWithClaims\": \"Still checking the rest. You can review these as they come in.\",\n \"bodyReadyWithClaims\": \"I searched the web. Feel free to remove anything that isn’t true.\",\n \"bodyLoadingEmpty\": \"Still putting this together…\",\n \"removeClaim\": \"Remove \\\"{claim}\\\"\",\n \"notMe\": \"This is not me\",\n \"stillSearching\": \"Still searching…\"\n },\n \"suggestionsStep\": {\n \"title\": \"Here’s what we could do first\",\n \"pickOne\": \"Pick one to jump in, or start your own thing. <skip>Skip to Chat</skip>\",\n \"loading\": \"Putting together a few ideas…\",\n \"alreadySetUp\": \"Already set up the <plugins></plugins> {count, plural, one {plugin} other {plugins}} to help with your work\",\n \"listAnd\": \" and \",\n \"listCommaAnd\": \", and \",\n \"listComma\": \", \",\n \"fallbacks\": {\n \"brief\": {\n \"suggestion\": \"I'll pull together a quick brief on what's new in your field\",\n \"prompt\": \"Give me a quick brief on what's new in my field right now.\"\n },\n \"weekly\": {\n \"suggestion\": \"I'll send a weekly briefing on news in your space\",\n \"prompt\": \"Set up a weekly briefing on news in my space.\"\n },\n \"week\": {\n \"suggestion\": \"I'll help you get on top of your week\",\n \"prompt\": \"Help me get on top of my week.\"\n },\n \"draft\": {\n \"suggestion\": \"I'll draft something from a few rough notes\",\n \"prompt\": \"Draft something from a few rough notes I'll give you.\"\n }\n }\n },\n \"authErrors\": {\n \"genericFailure\": \"Something went wrong. Please try again.\",\n \"signupClosed\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"providerSignup\": \"No Cadet account is linked to that login yet. Sign up first, then sign in.\",\n \"loginIncomplete\": \"Your account needs another step to finish signing in. Please sign in on the web, then try again.\",\n \"desktopUpdateRequired\": \"This version of the Cadet desktop app can't sign in. Update the app, then try again.\"\n },\n \"hatchingScreen\": {\n \"genericFailure\": \"Something went wrong\",\n \"localFallbackPitch\": \"Get started today with a local assistant\"\n }\n}\n","/** App-owned translation catalogs: account screens and shared app copy. */\nexport const NAMESPACES = [\n \"common\",\n \"account\",\n \"consent\",\n \"onboarding\",\n \"doctor\",\n] as const;\nexport type Namespace = (typeof NAMESPACES)[number];\nexport const DEFAULT_NAMESPACE = \"common\";\n","/**\n * The set of locales the app ships, plus the negotiation that maps an ordered\n * list of user-preferred BCP 47 tags onto one of them.\n *\n * Negotiation is deliberately simple and explicit rather than delegating to\n * `Intl.LocaleMatcher` (still a stage-1 proposal) or i18next's own detector:\n * we match the full tag first, then fall back to the primary language subtag,\n * so `es-419` and `es-MX` both resolve to `es` without needing an entry each.\n *\n * References:\n * - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language\n * - https://www.rfc-editor.org/rfc/rfc5646 (BCP 47 tag structure)\n */\n\n/** Locale used when nothing else matches. Also the source language for copy. */\nexport const DEFAULT_LOCALE = \"en\";\n\n/**\n * Locales with a translation catalog under `src/i18n/locales/`.\n *\n * Adding a locale means: add the tag here, add the catalog directory, and add\n * the loader entry in `catalogs.ts`. All three are checked at compile time:\n * `catalogs.ts` types its registry as `Record<SupportedLocale, …>`, so a\n * missing loader is a type error rather than a runtime 404.\n */\nexport const SUPPORTED_LOCALES = [\"en\", \"es\", \"ru\", \"zh\", \"zh-TW\"] as const;\n\nexport type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];\n\n/**\n * Endonyms: each locale's name in its own language, which is what a language\n * picker should show. A user who has the UI in a language they can't read\n * needs to find their own language by sight, not in translation.\n */\nexport const LOCALE_LABELS: Record<SupportedLocale, string> = {\n en: \"English\",\n es: \"Español\",\n ru: \"Русский\",\n zh: \"简体中文\",\n \"zh-TW\": \"繁體中文(台灣)\",\n};\n\nexport function isSupportedLocale(value: unknown): value is SupportedLocale {\n return (\n typeof value === \"string\" &&\n (SUPPORTED_LOCALES as readonly string[]).includes(value)\n );\n}\n\n/**\n * Pick the best supported locale for an ordered list of preferred tags.\n *\n * Each tag is tried at full length and then truncated to its primary subtag\n * before moving to the next preference. A user who prefers `es-MX` over `en`\n * gets `es`, not `en`. Returns {@link DEFAULT_LOCALE} when nothing matches.\n */\nexport function negotiateLocale(preferred: readonly string[]): SupportedLocale {\n for (const tag of preferred) {\n const normalized = tag.trim();\n if (normalized === \"\") {\n continue;\n }\n const matched = (SUPPORTED_LOCALES as readonly string[]).find(\n (l) => l.toLowerCase() === normalized.toLowerCase(),\n );\n if (matched) {\n return matched as SupportedLocale;\n }\n const lower = normalized.toLowerCase();\n if (\n lower === \"zh-hant\" ||\n lower.startsWith(\"zh-hant-\") ||\n lower === \"zh-hk\" ||\n lower === \"zh-mo\"\n ) {\n if (isSupportedLocale(\"zh-TW\")) {\n return \"zh-TW\";\n }\n }\n const base = normalized.split(\"-\")[0].toLowerCase();\n const baseMatched = (SUPPORTED_LOCALES as readonly string[]).find(\n (l) => l.toLowerCase() === base,\n );\n if (baseMatched) {\n return baseMatched as SupportedLocale;\n }\n }\n return DEFAULT_LOCALE;\n}\n","/**\n * Where translation catalogs live, and how they reach the running app.\n *\n * Catalogs are source files under `src/i18n/locales/<locale>/<namespace>.json`,\n * not runtime-fetched assets.\n *\n * English is imported statically, so it is part of the entry's static graph and\n * is readable with no network round trip at all. Every other locale is pulled\n * in with a dynamic `import()`, so Vite emits chunks per locale and the app\n * downloads only the locale it renders. The asymmetry is deliberate: the\n * fallback catalog is what the UI falls back *to*, so it must be the one thing\n * that cannot fail to load.\n *\n * Non-default locales are still bundled output sitting next to the JS, which is\n * why this is not `i18next-http-backend` (the usual default, which GETs\n * `/locales/{lng}/{ns}.json` from `public/`):\n *\n * - Capacitor serves the bundle from `capacitor://localhost` and the app is\n * expected to work offline. An HTTP fetch for UI copy makes first paint\n * depend on the network and fails outright on a cold offline launch.\n * - Electron loads the renderer from a local file/custom scheme where the same\n * fetch is at best a different origin to get right, at worst blocked.\n * - Bundled chunks are cache-busted by the build hash. A catalog in `public/`\n * is served unhashed and can be held by a stale HTTP cache after a deploy,\n * so users see one release's copy against another release's UI.\n *\n * The registry below is written out by hand rather than generated with\n * `import.meta.glob`. Two reasons: it is typed as a total map over locale and\n * namespace, so adding either without adding its catalog is a compile error\n * instead of a runtime miss; and `import.meta.glob` is a Vite-only transform\n * absent under Bun's test runner, which would force every test touching i18n\n * through a mock.\n *\n * Reference: https://vite.dev/guide/features#dynamic-import\n */\nimport enAccount from \"@app/i18n/locales/en/account.json\";\nimport enDoctor from \"@app/i18n/locales/en/doctor.json\";\nimport enCommon from \"@app/i18n/locales/en/common.json\";\nimport enConsent from \"@app/i18n/locales/en/consent.json\";\nimport enOnboarding from \"@app/i18n/locales/en/onboarding.json\";\nimport { NAMESPACES, type Namespace } from \"@app/i18n/namespaces\";\nimport {\n DEFAULT_LOCALE,\n type SupportedLocale,\n} from \"@app/i18n/supported-locales\";\n\n/**\n * A parsed catalog. Values are ICU MessageFormat strings; nesting mirrors the\n * dotted key path used at the call site (`t(\"aboutPage.version\")`).\n */\nexport type Catalog = Record<string, unknown>;\n\n/** Every namespace of one locale. */\nexport type LocaleCatalogs = Record<Namespace, Catalog>;\n\ntype CatalogLoader = () => Promise<{ default: Catalog }>;\n\n/**\n * The English catalogs, available synchronously. Both the boot path and the\n * test preload seed i18next with these, so a missing or unreachable chunk for\n * any other locale degrades to readable English rather than raw key paths.\n */\nexport const FALLBACK_CATALOGS: LocaleCatalogs = {\n common: enCommon,\n account: enAccount,\n consent: enConsent,\n onboarding: enOnboarding,\n doctor: enDoctor,\n};\n\n/** Loaders for the locales that are not bundled into the entry chunk. */\nconst CATALOG_LOADERS: Record<\n Exclude<SupportedLocale, typeof DEFAULT_LOCALE>,\n Record<Namespace, CatalogLoader>\n> = {\n es: {\n common: () => import(\"@app/i18n/locales/es/common.json\"),\n account: () => import(\"@app/i18n/locales/es/account.json\"),\n consent: () => import(\"@app/i18n/locales/es/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/es/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/es/doctor.json\"),\n },\n ru: {\n common: () => import(\"@app/i18n/locales/ru/common.json\"),\n account: () => import(\"@app/i18n/locales/ru/account.json\"),\n consent: () => import(\"@app/i18n/locales/ru/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/ru/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/ru/doctor.json\"),\n },\n zh: {\n common: () => import(\"@app/i18n/locales/zh/common.json\"),\n account: () => import(\"@app/i18n/locales/zh/account.json\"),\n consent: () => import(\"@app/i18n/locales/zh/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/zh/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/zh/doctor.json\"),\n },\n \"zh-TW\": {\n common: () => import(\"@app/i18n/locales/zh-TW/common.json\"),\n account: () => import(\"@app/i18n/locales/zh-TW/account.json\"),\n consent: () => import(\"@app/i18n/locales/zh-TW/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/zh-TW/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/zh-TW/doctor.json\"),\n },\n};\n\n/**\n * Load every namespace of one locale.\n *\n * Rejects when any non-default locale's chunk cannot be fetched (offline, or an\n * entry bundle outliving the assets a deploy removed). Callers on the boot path\n * treat that as \"stay on {@link FALLBACK_CATALOGS}\". Namespaces load together\n * rather than on demand because they are small and first paint can draw from\n * any of them; split this if a namespace ever grows large enough to matter.\n */\nexport async function loadCatalogs(\n locale: SupportedLocale,\n): Promise<LocaleCatalogs> {\n if (locale === DEFAULT_LOCALE) {\n return FALLBACK_CATALOGS;\n }\n\n const loaders = CATALOG_LOADERS[locale];\n const loaded = await Promise.all(\n NAMESPACES.map(async (namespace) => {\n const module = await loaders[namespace]();\n return [namespace, module.default] as const;\n }),\n );\n return Object.fromEntries(loaded) as LocaleCatalogs;\n}\n\n/**\n * Every locale this module can produce catalogs for. Exported for the coverage\n * test that asserts this stays in lockstep with `SUPPORTED_LOCALES`.\n */\nexport function loadableLocales(): SupportedLocale[] {\n return [\n DEFAULT_LOCALE,\n ...(Object.keys(CATALOG_LOADERS) as SupportedLocale[]),\n ];\n}\n","import { createInstance, type i18n } from \"i18next\";\n\n// Separate resources and language state from the assistant UI. Do not register\n// initReactI18next here: it would replace react-i18next's global web instance.\nexport const i18next: i18n = createInstance();\n","/**\n * The i18next `init()` options, in one place.\n *\n * Production and the app test preload use the same options for the app-owned\n * instance.\n *\n * Kept free of any dependency on locale *resolution* (`system-locale.ts`,\n * `device-settings.ts`) so importing it from the preload does not pull those\n * modules into the registry ahead of the tests that mock them.\n */\nimport type { InitOptions } from \"i18next\";\n\nimport type { LocaleCatalogs } from \"@app/i18n/catalogs\";\nimport { DEFAULT_NAMESPACE, NAMESPACES } from \"@app/i18n/namespaces\";\nimport { DEFAULT_LOCALE } from \"@app/i18n/supported-locales\";\n\nexport function i18nextInitOptions(\n locale: string,\n resources: Record<string, LocaleCatalogs>,\n): InitOptions {\n return {\n lng: locale,\n fallbackLng: DEFAULT_LOCALE,\n ns: [...NAMESPACES],\n defaultNS: DEFAULT_NAMESPACE,\n resources,\n // React escapes interpolated values on render; letting i18next escape them\n // too double-encodes apostrophes and ampersands in user data.\n interpolation: { escapeValue: false },\n returnNull: false,\n };\n}\n","/**\n * i18next configuration and lifecycle for the account app.\n *\n * Three decisions worth knowing before changing anything here:\n *\n * **ICU MessageFormat is the on-disk format.** i18next's native plural syntax\n * (`key_one` / `key_other` sibling keys) is i18next-specific; ICU\n * MessageFormat is what Crowdin, Lokalise, Phrase, Tolgee, Android and iOS all\n * read. Authoring in ICU means the catalogs outlive this library choice and\n * can be handed to any TMS as-is. `i18next-icu` swaps i18next's formatter for\n * `intl-messageformat`, which resolves plural categories through the cloud\n * `Intl.PluralRules`, so a locale with six plural forms gets six without the\n * call site knowing anything about it.\n *\n * **Initialization is awaited before first render.** `initI18n()` runs in\n * `main.tsx` ahead of `createRoot`, so components never observe an\n * uninitialized i18next and no raw key path is painted. English costs nothing\n * to reach; any other locale costs one dynamic import of a small JSON chunk.\n *\n * **Locale resolution has a fixed precedence**, applied by\n * {@link resolveInitialLocale}:\n * 1. the explicit in-app preference (`device:locale`), if it is still a\n * supported locale (a user's stated choice outranks any host signal);\n * 2. the host's preferred languages (see `system-locale.ts`);\n * 3. `DEFAULT_LOCALE`.\n *\n * References:\n * - https://www.i18next.com/overview/configuration-options\n * - https://github.com/i18next/i18next-icu\n * - https://unicode-org.github.io/icu/userguide/format_parse/messages/\n */\nimport { i18next } from \"@app/i18n/instance\";\nimport ICU from \"i18next-icu\";\n\nimport {\n FALLBACK_CATALOGS,\n loadCatalogs,\n type LocaleCatalogs,\n} from \"@app/i18n/catalogs\";\nimport { i18nextInitOptions } from \"@app/i18n/config\";\nimport { NAMESPACES } from \"@app/i18n/namespaces\";\nimport { systemLocales } from \"@app/i18n/system-locale\";\nimport {\n DEFAULT_LOCALE,\n isSupportedLocale,\n negotiateLocale,\n type SupportedLocale,\n} from \"@app/i18n/supported-locales\";\nimport {\n readLocalePreference,\n writeLocalePreference,\n} from \"@app/i18n/locale-preference\";\n\n/**\n * The locale to boot with, resolved from the stored preference, then the\n * host, then the default. Pure apart from the storage read, and exported so\n * tests and a future language picker can ask without initializing i18next.\n */\nexport function resolveInitialLocale(): SupportedLocale {\n const stored = readLocalePreference();\n if (isSupportedLocale(stored)) {\n return stored;\n }\n return negotiateLocale(systemLocales());\n}\n\n/**\n * Reflect the active locale onto the document element.\n *\n * `lang` drives the UA's own locale-sensitive behavior: hyphenation, spell\n * check, the voice a screen reader picks, and font fallback for scripts the\n * primary family doesn't cover. It is not decorative: an unset or wrong `lang`\n * makes a screen reader read Spanish copy with English phonemes.\n *\n * `dir` is set from `Intl.Locale`'s text-info rather than a hand-kept RTL list\n * so adding Arabic or Hebrew to `SUPPORTED_LOCALES` needs no change here.\n *\n * References:\n * - https://www.w3.org/International/questions/qa-html-language-declarations\n * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n */\nfunction applyDocumentLocale(locale: SupportedLocale): void {\n if (typeof document === \"undefined\") {\n return;\n }\n document.documentElement.lang = locale;\n\n // `getTextInfo()` postdates the TS `ES2023` lib target, and engines that\n // predate the method rename still expose the earlier `textInfo` getter, so\n // both shapes are probed behind a cast. LTR is the safe assumption for every\n // locale currently shipped.\n type LocaleTextInfo = Intl.Locale & {\n getTextInfo?: () => { direction?: string };\n textInfo?: { direction?: string };\n };\n\n let direction: string | undefined;\n try {\n const resolved = new Intl.Locale(locale) as LocaleTextInfo;\n direction =\n resolved.getTextInfo?.().direction ?? resolved.textInfo?.direction;\n } catch {\n direction = undefined;\n }\n document.documentElement.dir = direction === \"rtl\" ? \"rtl\" : \"ltr\";\n}\n\n/** Load a locale's catalogs into i18next unless they are already registered. */\nasync function ensureCatalogs(locale: SupportedLocale): Promise<void> {\n const missing = NAMESPACES.filter(\n (namespace) => !i18next.hasResourceBundle(locale, namespace),\n );\n if (missing.length === 0) {\n return;\n }\n const catalogs = await loadCatalogs(locale);\n for (const namespace of missing) {\n i18next.addResourceBundle(\n locale,\n namespace,\n catalogs[namespace],\n true,\n true,\n );\n }\n}\n\n/**\n * Report a catalog that could not be loaded.\n *\n * A chunk fetch fails when the device is offline, or when a still-cached entry\n * bundle asks for an asset a later deploy removed. Neither is actionable at\n * the call site beyond staying on the locale already rendering, so it is a\n * warning rather than an error.\n */\nfunction reportCatalogFailure(error: unknown, locale: SupportedLocale): void {\n console.warn(\"App translation catalog could not be loaded\", locale, error);\n}\n\n/**\n * Initialize i18next for the resolved locale. Safe to call more than once:\n * a repeat call re-resolves the locale against the existing instance.\n *\n * Never rejects. This runs on the boot path ahead of `createRoot()`, where an\n * escaping rejection costs the whole app a render, and English is always\n * reachable. Returns the locale actually activated, which is English when the\n * preferred locale's catalog could not be loaded.\n */\nexport async function initI18n(): Promise<SupportedLocale> {\n const requested = resolveInitialLocale();\n\n if (i18next.isInitialized) {\n try {\n await changeLocale(requested);\n return requested;\n } catch (error) {\n reportCatalogFailure(error, requested);\n return currentLocale();\n }\n }\n\n // English is seeded first, from the entry chunk rather than a fetch. It is\n // both the fallback for a key a translated catalog is missing and the floor\n // this function degrades to, so it must be in place before anything that can\n // fail is attempted.\n const resources: Record<string, LocaleCatalogs> = {\n [DEFAULT_LOCALE]: FALLBACK_CATALOGS,\n };\n let locale: SupportedLocale = DEFAULT_LOCALE;\n\n if (requested !== DEFAULT_LOCALE) {\n try {\n resources[requested] = await loadCatalogs(requested);\n locale = requested;\n } catch (error) {\n reportCatalogFailure(error, requested);\n }\n }\n\n await i18next.use(new ICU()).init(i18nextInitOptions(locale, resources));\n\n applyDocumentLocale(locale);\n return locale;\n}\n\n/**\n * Switch the active locale: load its catalog if needed, activate it, persist\n * the choice as a device setting, and update the document element.\n *\n * Persisted with `device:` scope because a language choice describes the\n * device, not the account. It must survive logout so the login screen stays in\n * the language the user picked.\n *\n * Rejects when the catalog cannot be fetched, leaving the previous locale\n * active. Unlike {@link initI18n} this is user-initiated, so the caller is the\n * one that can say something useful about the failure.\n */\nexport async function changeLocale(locale: SupportedLocale): Promise<void> {\n await ensureCatalogs(locale);\n await i18next.changeLanguage(locale);\n writeLocalePreference(locale);\n applyDocumentLocale(locale);\n}\n\n/** The active locale, or `DEFAULT_LOCALE` before initialization. */\nexport function currentLocale(): SupportedLocale {\n const language = i18next.resolvedLanguage ?? i18next.language;\n return isSupportedLocale(language) ? language : DEFAULT_LOCALE;\n}\n\n/** The primary language subtag of a BCP 47 tag, lowercased. */\nfunction primaryLanguage(tag: string): string {\n return tag.split(\"-\")[0].toLowerCase();\n}\n\n/**\n * The locale to format dates, times, and numbers in.\n *\n * {@link currentLocale} answers with one of the five language tags the app\n * ships a catalog for, which is the right answer for copy and the wrong one\n * for formatting: it drops the region, so a UK user reading English copy\n * would get US date order and 12-hour times. This returns the host's own tag\n * whenever its primary language subtag is the app locale's, and the app\n * locale otherwise, so `en-GB` under app locale `en` keeps its region while\n * `de-DE` under `en` does not format German dates beside English copy.\n *\n * The host's whole preference list is searched, not just its first entry, so a\n * user whose device leads with English while the app runs in Spanish still\n * formats in the Spanish region they also listed. Comparison is by primary\n * subtag, so a `zh-TW` host keeps `zh-TW` under either Chinese catalog, and a\n * tag `Intl` cannot parse is skipped rather than chosen and rejected, so the\n * entry behind it still gets its turn.\n *\n * References:\n * - https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages\n * - https://www.rfc-editor.org/rfc/rfc5646 (BCP 47 tag structure)\n * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales\n */\nexport function formatLocale(): string {\n const app = currentLocale();\n const host = systemLocales().find(\n (tag) =>\n primaryLanguage(tag) === primaryLanguage(app) && isFormattableLocale(tag),\n );\n return host ?? app;\n}\n\n/**\n * Whether `Intl` will accept `tag`, which is not a given for a host-reported\n * one: a POSIX environment reports `C`, and an underscored `en_US` reaches us\n * from more than one shell. Every `Intl` constructor throws `RangeError` on\n * those, and this is read by every date, time, and number formatter in the\n * app, so the tag is checked once here instead of failing a render later.\n */\nfunction isFormattableLocale(tag: string): boolean {\n try {\n Intl.getCanonicalLocales(tag);\n return true;\n } catch {\n // A tag Intl cannot parse is host data the caller falls back from, not a\n // fault to report.\n return false;\n }\n}\n\nexport { i18next };\n","import {\n createContext,\n useEffect,\n useMemo,\n type ReactNode,\n type Context,\n} from \"react\";\nimport { createInstance, type i18n } from \"i18next\";\nimport ICU from \"i18next-icu\";\nimport { FALLBACK_CATALOGS, loadCatalogs } from \"./catalogs\";\nimport { currentLocale } from \"./i18n\";\nimport { i18nextInitOptions } from \"./config\";\n\nexport const AppI18nContext: Context<i18n | undefined> = createContext<\n i18n | undefined\n>(undefined);\n\nexport function AppI18nProvider({ children }: { children: ReactNode }) {\n const instance = useMemo(() => {\n const i18n = createInstance();\n void i18n.use(new ICU()).init({\n ...i18nextInitOptions(\"en\", { en: FALLBACK_CATALOGS }),\n initAsync: false,\n });\n return i18n;\n }, []);\n useEffect(() => {\n let active = true;\n const locale = currentLocale();\n void loadCatalogs(locale)\n .then((catalogs) => {\n if (!active) {\n return;\n }\n for (const [namespace, catalog] of Object.entries(catalogs)) {\n instance.addResourceBundle(locale, namespace, catalog, true, true);\n }\n void instance.changeLanguage(locale);\n })\n .catch(() => {\n if (active) {\n void instance.changeLanguage(\"en\");\n }\n });\n return () => {\n active = false;\n };\n }, [instance]);\n return (\n <AppI18nContext.Provider value={instance}>\n {children}\n </AppI18nContext.Provider>\n );\n}\n","import { useContext } from \"react\";\nimport { AppI18nContext } from \"./provider\";\nimport type { KeyPrefix } from \"i18next\";\nimport {\n Trans as ReactTrans,\n useTranslation as useReactTranslation,\n type FallbackNs,\n type UseTranslationOptions,\n} from \"react-i18next\";\n\nimport { i18next } from \"@app/i18n/instance\";\nimport type { Namespace } from \"@app/i18n/namespaces\";\n\nexport function useTranslation<\n const N extends Namespace | readonly Namespace[] | undefined = undefined,\n const K extends KeyPrefix<FallbackNs<N>> = undefined,\n>(namespace?: N, options?: UseTranslationOptions<K>) {\n const instance = useContext(AppI18nContext) ?? i18next;\n return useReactTranslation<N, K>(namespace, { ...options, i18n: instance });\n}\n\nexport const Trans: typeof ReactTrans = (props) => {\n const instance = useContext(AppI18nContext) ?? i18next;\n return <ReactTrans {...props} i18n={instance} />;\n};\n","import type { CadetBridge, CadetCommand } from \"@mycadet/ipc-contract\";\n\n/** Native host capabilities currently used by the account client. */\nexport interface AppElectronBridge {\n platform: \"electron\";\n auth?: Partial<\n Pick<\n CadetBridge[\"auth\"],\n \"getSessionToken\" | \"cancelOAuth\" | \"startOAuth\" | \"signOut\"\n >\n >;\n /**\n * Menu-bar (Tray) status dot publishing. Optional for the same\n * shell/renderer skew reason as `deepLinks`: a newer bundle can run against\n * an older preload that predates the status channel — degrade to no-op\n * instead of throwing inside the effect.\n */\n status?: Pick<CadetBridge[\"status\"], \"setConnection\">;\n feedback?: CadetBridge[\"feedback\"];\n app?: Pick<CadetBridge[\"app\"], \"versionInfo\">;\n commands: {\n on(callback: (command: CadetCommand) => void): () => void;\n };\n mainWindow: {\n ensureVisible(): Promise<void>;\n setOnboarding(active: boolean): Promise<void>;\n /** The chooser's switch-to-origin: main loads the target itself. */\n navigateTo(url: string): Promise<void>;\n };\n /**\n * Deep-link bridge (deep-links.ts): `drain` returns links that arrived\n * before the renderer existed, `onLink` subscribes to live ones. Optional\n * so a renderer newer than its shell degrades to no links instead of\n * throwing inside the effect.\n */\n deepLinks?: Pick<CadetBridge[\"deepLinks\"], \"drain\" | \"onLink\">;\n}\n\n// Keep the adapter local to app instead of augmenting Window with web's full\n// assistant bridge. The native preload owns this capability contract.\nexport function getElectronBridge(): AppElectronBridge | undefined {\n if (typeof window === \"undefined\") return undefined;\n const bridge = (window as Window & { cadet?: AppElectronBridge }).cadet;\n return bridge?.platform === \"electron\" ? bridge : undefined;\n}\n","import type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport type { AssistantStatus } from \"@mycadet/ipc-contract\";\n\nimport { getElectronBridge } from \"./electron-bridge\";\n\n/**\n * Map the app shell's own resolution state onto the five-state menu-bar\n * status the native app shows (`AssistantStatus` in\n * `clients/macos/src/main/status.ts`). Pure so the mapping is unit-tested\n * without standing up stores.\n *\n * The shell resolves the assistant BEFORE anything mounts: the web assistant\n * iframe exists only once the resolution came back `ready`, so the web bundle\n * carries no status notion at all — by the time it loads, the assistant is\n * fully loaded. The dot therefore reads the shell's own resolution, which is\n * the only place the pre-mount states can ever be observed:\n *\n * authFailed → error → disconnected → idle\n *\n * The old in-conversation `thinking` pulse dies here: turn phase and SSE\n * liveness were web's facts, and web no longer reports them. The dot rests at\n * `idle` while the assistant works; per-turn granularity returns with the\n * desktop layer's own vantage (it routes the gateway traffic), which is the\n * stated endgame for all electron logic.\n */\nexport function deriveAssistantStatus(\n state: AssistantRequestState,\n): AssistantStatus {\n // The resolution request itself failed (network, timeout, contract\n // mismatch) — the assistant failed to come up.\n if (state.status === \"error\") {\n return \"error\";\n }\n\n switch (state.status) {\n // The platform rejected the shell's credential while resolving — that IS\n // the auth failure; there is no separate session question to ask.\n case \"unauthenticated\":\n return \"authFailed\";\n // An assistant is resolved and hosting the web bundle — the assistant is\n // fully loaded.\n case \"ready\":\n return \"idle\";\n // Still resolving, or nothing to host: the chooser owns the window, no\n // assistant is paired, or the assistant isn't usable. No live data plane.\n default:\n return \"disconnected\";\n }\n}\n\n/**\n * Per-capability wrapper for the Electron host's menu-bar (Tray) status\n * indicator, matching the app bridge's other capabilities: the renderer never\n * touches `window.cadet.*` directly — feature code calls this named function.\n *\n * Publishes the assistant's connection status so the main process can drive\n * the Tray status dot. The app shell holds the resolution (it resolved the\n * assistant), so it is the source of truth; main owns only the presentation.\n * Fire-and-forget — no acknowledgement.\n *\n * Safe to call from any host — no-op off Electron.\n */\nexport function setAssistantStatus(status: AssistantStatus): void {\n getElectronBridge()?.status?.setConnection(status);\n}\n","import { useEffect } from \"react\";\n\nimport type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport {\n deriveAssistantStatus,\n setAssistantStatus,\n} from \"../runtime/assistant-status\";\n\n// Relative imports (not `@app/*`) so this module tree stays free of app path\n// aliases for any out-of-tree consumer; the hook itself is app-internal.\n\n/**\n * Publish the assistant's connection status to the Electron host so the main\n * process can drive the menu-bar (Tray) status dot. Main de-dupes republished\n * values, so publishing on every resolution change is cheap.\n *\n * The app shell resolves the assistant itself, so the dot reads that\n * resolution — no status is gathered from the web assistant iframe, which\n * only mounts once the assistant is fully loaded and carries no status\n * notion at all. Mounted in `AssistantShell`, where the resolution state is\n * in scope. `setAssistantStatus` no-ops off Electron, so mounting is safe\n * unconditionally.\n *\n * The cleanup publishes `disconnected` on unmount: the shell leaves the tree\n * when the router swaps to a chooser route or the active assistant changes,\n * and the tray must not stick at the previous assistant's `idle`.\n *\n * This module family is the intermediate home for the renderer-side electron\n * glue; per the desktop-layer direction it eventually folds into the electron\n * main process, which will derive the dot from its own vantage.\n */\nexport function useElectronStatusSync(state: AssistantRequestState): void {\n useEffect(() => {\n setAssistantStatus(deriveAssistantStatus(state));\n }, [state]);\n\n useEffect(() => () => setAssistantStatus(\"disconnected\"), []);\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n AssistantNavigationSchema,\n HostNavigationSchema,\n ShareFeedbackRequestSchema,\n} from \"../assistant/resolution-contract\";\n\nexport interface AssistantFrameProps {\n onNavigate(path: string, options: { replace: boolean }): void;\n title: string;\n onShareFeedback?: () => void;\n}\n\nconst mount = \"/web\";\n\nfunction frameUrl(): string {\n return new URL(\n `${mount}${location.pathname}${location.search}${location.hash}`,\n window.location.origin,\n ).href;\n}\n\nexport function AssistantFrame({\n onNavigate,\n onShareFeedback,\n title,\n}: AssistantFrameProps) {\n const ref = useRef<HTMLIFrameElement>(null);\n const [src] = useState(frameUrl);\n const currentPath = useRef(src);\n const frameOrigin = useMemo(() => window.location.origin, []);\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n if (ShareFeedbackRequestSchema.safeParse(event.data).success) {\n onShareFeedback?.();\n return;\n }\n const message = AssistantNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (path === currentPath.current) {\n return;\n }\n // The frame may only steer its own url space: the mount prefix is the\n // frame's home, so anything else (host routes, protocol-relative,\n // traversal) never reaches the host router.\n if (!path.startsWith(`${mount}/`) || path.includes(\"\\\\\")) {\n return;\n }\n if (\n path\n .split(/[?#]/)[0]\n .split(\"/\")\n .some((part) => part === \".\" || part === \"..\")\n ) {\n return;\n }\n currentPath.current = path;\n const target = path.slice(mount.length) || \"/\";\n onNavigate(target, { replace: message.data.nav === \"replace\" });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate, onShareFeedback]);\n\n // The frame's HOST-navigation requests: surfaces that live outside the\n // frame's url space (the account area — e.g. the Doctor page) but that\n // the assistant bundle must be able to open. Only /account/* paths are\n // honored, so a compromised frame still cannot steer the host chrome.\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n const message = HostNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (!path.startsWith(\"/account/\") || path.includes(\"\\\\\")) {\n return;\n }\n onNavigate(path, { replace: false });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate]);\n\n useEffect(() => {\n const next = frameUrl();\n if (next !== currentPath.current) {\n currentPath.current = next;\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: next },\n frameOrigin,\n );\n }\n }, [location, frameOrigin]);\n\n return (\n <iframe\n ref={ref}\n src={src}\n onLoad={() =>\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: currentPath.current },\n frameOrigin,\n )\n }\n title={title}\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n allow=\"microphone; camera; clipboard-write\"\n style={{ width: \"100%\", height: \"100%\", minHeight: \"100dvh\", border: 0 }}\n />\n );\n}\n","import { WWW_DOMAIN } from \"@app/utils/domains\";\n\nexport const routes = {\n index: \"/\",\n assistant: \"/assistant\",\n onboarding: {\n hatching: \"/account/onboarding/hatching\",\n privacy: \"/assistant/onboarding/privacy\",\n research: \"/assistant/onboarding/research\",\n },\n account: {\n root: \"/account\",\n consent: \"/account/consent\",\n onboarding: {\n start: \"/account/onboarding/start\",\n hosting: \"/account/onboarding/hosting\",\n apiKey: \"/account/onboarding/api-key\",\n },\n login: \"/account/login\",\n doctor: \"/account/doctor\",\n selectAssistant: \"/account/select-assistant\",\n assistants: \"/account/assistants\",\n // Deep link to one assistant's management surface (backups, upgrades,\n // export) — the settings page's Manage Assistant button lands here.\n assistantDetail: (assistantId: string) =>\n `/account/assistants/${assistantId}`,\n signup: \"/account/signup\",\n pair: \"/account/pair\",\n providerSignup: \"/account/provider/signup\",\n providerCallback: \"/account/provider/callback\",\n oauth: {\n popupComplete: \"/account/oauth/popup-complete\",\n complete: \"/account/oauth/complete\",\n desktopComplete: \"/account/oauth/desktop-complete\",\n },\n },\n docs: {\n hostingOptions: \"/docs/hosting-options\",\n localHosting: \"/docs/hosting-options/local-hosting\",\n legal: {\n privacyPolicy: \"/docs/privacy-policy\",\n termsOfUse: \"/docs/terms-of-use\",\n },\n },\n} as const;\n\nexport function docsUrl(path: string): string {\n return `https://${WWW_DOMAIN}${path}`;\n}\n","\"use client\";\n\nimport { CloudOff } from \"lucide-react\";\nimport { useEffect, useRef, useState, type CSSProperties } from \"react\";\nimport { useAssistantRequest } from \"./assistant/use-assistant-request\";\nimport { AppI18nProvider } from \"./i18n/provider\";\nimport { useTranslation } from \"./i18n/react\";\nimport { useElectronStatusSync } from \"./hooks/use-electron-status-sync\";\nimport { AssistantFrame } from \"./shell/assistant-frame\";\nimport { routes } from \"./utils/routes\";\n\nexport interface AppShellProps {\n apiBaseUrl?: string;\n assistantId?: string;\n onNavigate(path: string, options: { replace: boolean }): void;\n title?: string;\n onShareFeedback?: () => void;\n}\n\n/** Portable React entry. Resolves assistants through the host API; the host owns browser navigation. */\nexport function AppShell(props: AppShellProps) {\n return (\n <AppI18nProvider>\n <AssistantShell key={props.assistantId} {...props} />\n </AppI18nProvider>\n );\n}\n\n// Inline styles so the portable bundle and the standalone build render the\n// failure states identically (the panel has no stylesheet contract of its\n// own). The vars are the design-library tokens the standalone bundle ships;\n// the literals are the dark-theme values they resolve to.\nconst primaryButton: CSSProperties = {\n borderRadius: 8,\n border: \"none\",\n padding: \"10px 20px\",\n fontSize: 14,\n fontWeight: 600,\n background: \"var(--primary-base, #FDFDFC)\",\n color: \"var(--content-inset, #17191C)\",\n cursor: \"pointer\",\n};\n\nconst quietButton: CSSProperties = {\n borderRadius: 8,\n border: \"1px solid var(--content-tertiary, #8D99A5)\",\n padding: \"8px 16px\",\n fontSize: 13,\n background: \"transparent\",\n color: \"inherit\",\n cursor: \"pointer\",\n};\n\n/** The wake failure's display line: the cloud route puts cadet-host's own\n * punchline in `reason` (502) and the v1 refusals in `detail` (4xx). */\nfunction wakeFailureMessage(body: unknown): string | null {\n if (typeof body !== \"object\" || body === null) return null;\n if (\"reason\" in body && typeof body.reason === \"string\") return body.reason;\n if (\"detail\" in body && typeof body.detail === \"string\") return body.detail;\n return null;\n}\n\nfunction AssistantShell({\n apiBaseUrl = \"/\",\n assistantId,\n onNavigate,\n onShareFeedback,\n title,\n}: AppShellProps) {\n const { t } = useTranslation(\"account\");\n const [wakePending, setWakePending] = useState(false);\n const [wakeReason, setWakeReason] = useState<string | null>(null);\n const { state, retry: reload } = useAssistantRequest({\n apiBaseUrl,\n assistantId,\n });\n\n // The tray's status logic lives with the resolution\n useElectronStatusSync(state);\n\n const chooserOwned = state.status === \"selection\" || state.status === \"empty\";\n const redirected = useRef(false);\n useEffect(() => {\n if (chooserOwned && !redirected.current) {\n redirected.current = true;\n onNavigate(routes.account.selectAssistant, { replace: true });\n }\n }, [chooserOwned, onNavigate]);\n\n async function wake() {\n if (!assistantId || wakePending) return;\n setWakePending(true);\n setWakeReason(null);\n try {\n const base = new URL(apiBaseUrl, window.location.origin);\n base.pathname = base.pathname.replace(/\\/*$/, \"/\");\n const response = await fetch(\n new URL(`v1/assistants/${encodeURIComponent(assistantId)}/wake/`, base),\n { method: \"POST\", credentials: \"include\" },\n );\n if (response.ok) {\n setWakePending(false);\n reload();\n return;\n }\n const body: unknown = await response.json().catch(() => null);\n setWakeReason(wakeFailureMessage(body) ?? t(\"appShell.wakeFailed\"));\n } catch {\n setWakeReason(t(\"appShell.wakeFailed\"));\n }\n setWakePending(false);\n }\n\n if (state.status === \"unauthenticated\")\n return <PairRedirect onNavigate={onNavigate} />;\n\n if (state.status !== \"ready\") {\n const alert = state.status === \"notReady\" || state.status === \"error\";\n const canRetry = state.status === \"error\" || state.status === \"unavailable\";\n return (\n <div\n role={alert ? \"alert\" : \"status\"}\n style={{\n minHeight: \"100svh\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 12,\n padding: 24,\n textAlign: \"center\",\n }}\n >\n {state.status === \"notReady\" ? (\n <NotReadyBody\n wakePending={wakePending}\n wakeReason={wakeReason}\n onWake={wake}\n />\n ) : state.status === \"error\" ? (\n <ErrorBody />\n ) : (\n <p style={{ margin: 0 }}>{t(`appShell.${state.status}`)}</p>\n )}\n {(canRetry || state.status === \"notReady\") && (\n <div style={{ display: \"flex\", gap: 8 }}>\n {canRetry && (\n <button type=\"button\" onClick={reload} style={quietButton}>\n {t(\"appShell.retry\")}\n </button>\n )}\n <button\n type=\"button\"\n onClick={() =>\n onNavigate(routes.account.selectAssistant, { replace: false })\n }\n style={quietButton}\n >\n {t(\"appShell.switchAssistant\")}\n </button>\n </div>\n )}\n </div>\n );\n }\n\n const assistant = state.assistant;\n return (\n <AssistantFrame\n onShareFeedback={onShareFeedback}\n key={`${assistant.id}:${assistant.version}`}\n onNavigate={onNavigate}\n title={title ?? t(\"appShell.title\")}\n />\n );\n}\n\n/** The 409 \"assistant is not ready\" resolution — deliberately NOT the\n * starting sentiment: the API only reports that the assistant isn't ready\n * (never hatched, stopped, or mid-release-resolution). The action is the\n * wake: the same recovery drive the admin console's Wake button gets, so\n * both the admin and the user hold a path back into the assistant (the\n * retry stays for the states where nothing can be woken). Modeled on the\n * web app's full-page failure treatment (icon + title + body + a primary\n * action, centered); inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction NotReadyBody({\n wakePending,\n wakeReason,\n onWake,\n}: {\n wakePending: boolean;\n wakeReason: string | null;\n onWake(): void;\n}) {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.notReadyTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.notReadyBody\")}\n </p>\n {wakeReason !== null && (\n <p\n style={{\n margin: 0,\n maxWidth: 420,\n fontSize: 13,\n opacity: 0.6,\n lineHeight: 1.5,\n }}\n >\n {wakeReason}\n </p>\n )}\n <button\n type=\"button\"\n onClick={onWake}\n disabled={wakePending}\n style={{ ...primaryButton, opacity: wakePending ? 0.6 : 1 }}\n >\n {wakePending ? t(\"appShell.waking\") : t(\"appShell.wake\")}\n </button>\n </>\n );\n}\n\n/** An unauthenticated shell IS a pairing problem — forward to the pair\n * page once, replaced, so the dead assistant URL doesn't linger in\n * history. Renders nothing; the unauthenticated message shows for the\n * beat before the navigation lands. */\nfunction PairRedirect({\n onNavigate,\n}: {\n onNavigate: (path: string, options: { replace: boolean }) => void;\n}): null {\n const forwarded = useRef(false);\n useEffect(() => {\n if (forwarded.current) return;\n forwarded.current = true;\n onNavigate(routes.account.pair, { replace: true });\n }, [onNavigate]);\n return null;\n}\n\n/** The generic resolution failure — the request itself did not go through\n * (network trouble, an unreachable API, a 5xx). Deliberately NOT the\n * starting sentiment: nothing about the assistant's lifecycle is known,\n * so retry (not wake) is the action. Modeled on the web app's full-page\n * failure treatment; inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction ErrorBody() {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.errorTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.errorBody\")}\n </p>\n </>\n );\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;;;;;;;AAOA,IAAM,KAAgB,GAAG,MAAY,EAAQ,QAAQ,GAAW,GAAO,MAC9D,EAAQ,KAAc,EAAU,MAAM,KAAK,MAAM,EAAM,QAAQ,EAAU,KAAK,EACrF,CAAC,KAAK,IAAI,CAAC,MAAM,ECFb,KAAe,MAAW,EAAO,QAAQ,sBAAsB,QAAQ,CAAC,aAAa,ECArF,KAAe,MAAW,EAAO,QACrC,0BACC,GAAO,GAAI,MAAO,IAAK,EAAG,aAAa,GAAG,EAAG,aAAa,CAC5D,ECDK,KAAgB,MAAW;CAC/B,IAAM,IAAY,EAAY,EAAO;CACrC,OAAO,EAAU,OAAO,EAAE,CAAC,aAAa,GAAG,EAAU,MAAM,EAAE;GCJ3D,IAAoB;CACtB,OAAO;CACP,OAAO;CACP,QAAQ;CACR,SAAS;CACT,MAAM;CACN,QAAQ;CACR,aAAa;CACb,eAAe;CACf,gBAAgB;CACjB,ECVK,MAAe,MAAU;CAC7B,KAAK,IAAM,KAAQ,GACjB,IAAI,EAAK,WAAW,QAAQ,IAAI,MAAS,UAAU,MAAS,SAC1D,OAAO;CAGX,OAAO;GCFH,KAAgB,EAAc,EAAE,CAAC,EAqBjC,WAAyB,EAAW,GAAc,ECjBlD,IAAO,GACV,EAAE,UA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G,UAAU;IAAK,SAAS;IAAK,YAAY;IAAK;aAClE,EAAE,wBAAwB;GACzB,CAAA;EACH,MAAe,QACd,kBAAC,KAAD;GACE,OAAO;IACL,QAAQ;IACR,UAAU;IACV,UAAU;IACV,SAAS;IACT,YAAY;IACb;aAEA;GACC,CAAA;EAEN,kBAAC,UAAD;GACE,MAAK;GACL,SAAS;GACT,UAAU;GACV,OAAO;IAAE,GAAG;IAAe,SAAS,IAAc,KAAM;IAAG;aAE5C,EAAd,IAAgB,oBAAuB,gBAAgB;GACjD,CAAA;EACR,EAAA,CAAA;;AAQP,SAAS,EAAa,EACpB,iBAGO;CACP,IAAM,IAAY,EAAO,GAAM;CAM/B,OALA,QAAgB;EACV,EAAU,YACd,EAAU,UAAU,IACpB,EAAW,EAAO,QAAQ,MAAM,EAAE,SAAS,IAAM,CAAC;IACjD,CAAC,EAAW,CAAC,EACT;;AAUT,SAAS,KAAY;CACnB,IAAM,EAAE,SAAM,EAAe,UAAU;CACvC,OACE,kBAAA,GAAA,EAAA,UAAA;EACE,kBAAC,GAAD;GAAU,MAAM;GAAI,eAAY;GAAS,CAAA;EACzC,kBAAC,MAAD;GAAI,OAAO;IAAE,QAAQ;IAAG,UAAU;IAAI,YAAY;IAAK;aACpD,EAAE,sBAAsB;GACtB,CAAA;EACL,kBAAC,KAAD;GAAG,OAAO;IAAE,QAAQ;IAAG,UAAU;IAAK,SAAS;IAAK,YAAY;IAAK;aAClE,EAAE,qBAAqB;GACtB,CAAA;EACH,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/defaultAttributes.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/context.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/Icon.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/createLucideIcon.mjs","../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/cloud-off.mjs","../../src/assistant/describe-error.ts","../../src/assistant/resolve-assistant.ts","../../src/assistant/use-assistant-request.ts","../../src/i18n/locales/en/account.json","../../src/i18n/locales/en/doctor.json","../../src/i18n/locales/en/common.json","../../src/i18n/locales/en/consent.json","../../src/i18n/locales/en/onboarding.json","../../src/i18n/namespaces.ts","../../src/i18n/supported-locales.ts","../../src/i18n/catalogs.ts","../../src/i18n/instance.ts","../../src/i18n/config.ts","../../src/i18n/i18n.ts","../../src/i18n/provider.tsx","../../src/i18n/react.tsx","../../src/runtime/electron-bridge.ts","../../src/runtime/assistant-status.ts","../../src/hooks/use-electron-status-sync.ts","../../src/shell/assistant-frame.tsx","../../src/utils/routes.ts","../../src/app-shell.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses };\n//# sourceMappingURL=mergeClasses.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n\nexport { toKebabCase };\n//# sourceMappingURL=toKebabCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\n\nexport { toCamelCase };\n//# sourceMappingURL=toCamelCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { toCamelCase } from './toCamelCase.mjs';\n\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\n\nexport { toPascalCase };\n//# sourceMappingURL=toPascalCase.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n return false;\n};\n\nexport { hasA11yProp };\n//# sourceMappingURL=hasA11yProp.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { createContext, useContext, useMemo, createElement } from 'react';\n\nconst LucideContext = createContext({});\nfunction LucideProvider({\n children,\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n}) {\n const value = useMemo(\n () => ({\n size,\n color,\n strokeWidth,\n absoluteStrokeWidth,\n className\n }),\n [size, color, strokeWidth, absoluteStrokeWidth, className]\n );\n return createElement(LucideContext.Provider, { value }, children);\n}\nconst useLucideContext = () => useContext(LucideContext);\n\nexport { LucideProvider, useLucideContext };\n//# sourceMappingURL=context.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\nimport { hasA11yProp } from './shared/src/utils/hasA11yProp.mjs';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.mjs';\nimport { useLucideContext } from './context.mjs';\n\nconst Icon = forwardRef(\n ({ color, size, strokeWidth, absoluteStrokeWidth, className = \"\", children, iconNode, ...rest }, ref) => {\n const {\n size: contextSize = 24,\n strokeWidth: contextStrokeWidth = 2,\n absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,\n color: contextColor = \"currentColor\",\n className: contextClass = \"\"\n } = useLucideContext() ?? {};\n const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size ?? contextSize ?? defaultAttributes.width,\n height: size ?? contextSize ?? defaultAttributes.height,\n stroke: color ?? contextColor,\n strokeWidth: calculatedStrokeWidth,\n className: mergeClasses(\"lucide\", contextClass, className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.mjs';\nimport { toKebabCase } from './shared/src/utils/toKebabCase.mjs';\nimport { toPascalCase } from './shared/src/utils/toPascalCase.mjs';\nimport Icon from './Icon.mjs';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057\", key: \"1uxyv8\" }],\n [\"path\", { d: \"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78\", key: \"99tcn7\" }],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }]\n];\nconst CloudOff = createLucideIcon(\"cloud-off\", __iconNode);\n\nexport { __iconNode, CloudOff as default };\n//# sourceMappingURL=cloud-off.mjs.map\n","/**\n * Renders an unknown thrown value as a string a log line can carry. Error\n * objects serialize as `{}` through the webview console pipeline (message and\n * stack are non-enumerable), so they are pulled out explicitly; anything else\n * gets its natural string form.\n */\nexport function describeError(error: unknown): string {\n if (error instanceof Error) {\n return error.stack ?? `${error.name}: ${error.message}`;\n }\n if (typeof error === \"string\") {\n return error;\n }\n return JSON.stringify(error);\n}\n","import { z } from \"zod\";\n\nimport {\n AssistantListSchema,\n AssistantResolutionSchema,\n PublicUrlSchema,\n type AssistantList,\n type AssistantResolution,\n} from \"./resolution-contract\";\n\nfunction decode<T>(schema: z.ZodType<T>, payload: unknown): T {\n const result = schema.safeParse(payload);\n if (!result.success) {\n // The zod error object carries the path and the per-field failures —\n // surface them so a contract drift names the field that moved.\n throw new Error(\n `Invalid assistant API data.\\n${z.prettifyError(result.error)}`,\n );\n }\n return result.data;\n}\n\nexport interface AssistantRequest {\n apiBaseUrl?: string;\n assistantId?: string;\n signal: AbortSignal;\n}\n\nconst unauthenticated = Symbol(\"unauthenticated\");\nconst notReady = Symbol(\"not ready\");\nconst unavailable = Symbol(\"unavailable\");\n\nfunction createClient({ apiBaseUrl = \"/\", signal }: AssistantRequest) {\n // The shell is same-origin by construction — every host (the desktop\n // protocol, the web dev server, the cloud takeover) proxies the API at\n // the page's own origin. Read inside: SSR renders the shell without a\n // window, and the origin is a browser fact.\n const origin = window.location.origin;\n const base = new URL(decode(PublicUrlSchema, apiBaseUrl), origin);\n base.pathname = base.pathname.replace(/\\/*$/, \"/\");\n const headers = new Headers({ Accept: \"application/json\" });\n async function get(path: string) {\n signal.throwIfAborted();\n const requestUrl = new URL(path, base);\n const response = await fetch(requestUrl, {\n headers,\n signal,\n credentials: \"include\",\n });\n signal.throwIfAborted();\n if (response.status === 401) {\n return unauthenticated;\n }\n if (response.status === 409) {\n return notReady;\n }\n if (response.status === 410) {\n return unavailable;\n }\n if (!response.ok) {\n console.error(\n `Assistant request failed: ${response.status} ${response.headers.get(\"content-type\") ?? \"\"} from ${requestUrl.href}`,\n );\n throw new Error(\n `Assistant request failed: ${response.status} from ${requestUrl.href}`,\n );\n }\n const payload: unknown = await response.json().catch((error) => {\n console.error(\n `Assistant response was not JSON from ${requestUrl.href}: ${error}`,\n );\n throw error;\n });\n signal.throwIfAborted();\n return payload;\n }\n return { base, get };\n}\n\n/**\n * The chooser's list: ONE call to the same-origin list endpoint — the\n * unscoped `v1/assistants/` is the list CONTRACT (the machine's rows\n * without a credential field), and the client just decodes it. No session\n * (401) reads as the contract's own unauthenticated arm.\n */\nexport async function listAssistantChoices(\n options: AssistantRequest,\n): Promise<AssistantList> {\n const client = createClient(options);\n const payload = await client.get(\"v1/assistants/\");\n if (payload === unauthenticated) {\n return { status: \"unauthenticated\" };\n }\n return decode(AssistantListSchema, payload);\n}\n\n/**\n * The shell's resolution: ONE call to the same-origin assistant resolution\n * endpoint — the serving host's operation composes the whole union (the\n * lockfile's choice, the entry gateway's identity and the caller's own auth\n * verdict) and the client just decodes it. The status-code arms stay for\n * hosts whose operation forwards a platform detail's own codes, and for\n * older stacks whose baked metadata predates the union.\n */\nexport async function resolveAssistant(\n options: AssistantRequest,\n): Promise<AssistantResolution> {\n const client = createClient(options);\n const payload = await client.get(\n options.assistantId\n ? `v1/assistants/${encodeURIComponent(options.assistantId)}/`\n : \"v1/assistant\",\n );\n if (payload === unauthenticated) {\n return { status: \"unauthenticated\" };\n }\n if (payload === notReady) {\n return { status: \"notReady\" };\n }\n if (payload === unavailable) {\n return { status: \"unavailable\" };\n }\n return decode(AssistantResolutionSchema, payload);\n}\n","import { useEffect, useState } from \"react\";\nimport { describeError } from \"./describe-error\";\nimport {\n AssistantResolutionSchema,\n type AssistantResolution,\n} from \"./resolution-contract\";\nimport { resolveAssistant, type AssistantRequest } from \"./resolve-assistant\";\n\nexport type AssistantRequestState =\n | AssistantResolution\n | { status: \"loading\" | \"error\" };\n\n/**\n * The shell's resolution flow: one same-origin resolution request — the\n * serving host's operation composes the whole union (the lockfile's choice,\n * the entry gateway's identity, the caller's own auth verdict) and the hook\n * decodes it. The chooser picks instead of resolving, so it reads the same\n * endpoint through its own useAssistantChoices hook. The `assistantId` prop\n * keys re-resolution (a chooser hand-off re-runs the flow) and rides the\n * request when present — the endpoint answers the named assistant; without\n * one it answers the host's truth about what is served.\n */\nexport function useAssistantRequest({\n apiBaseUrl = \"/\",\n assistantId,\n}: Omit<AssistantRequest, \"signal\">) {\n const [attempt, setAttempt] = useState(0);\n const key = JSON.stringify([apiBaseUrl, assistantId, attempt]);\n const [result, setResult] = useState<{\n key: string;\n state: AssistantRequestState;\n }>();\n useEffect(() => {\n const controller = new AbortController();\n const settle = (state: AssistantRequestState) => setResult({ key, state });\n settle({ status: \"loading\" });\n // The request itself needs no origin — the client reads the page's own\n // (same-origin by construction: every host proxies the API at the page's\n // origin). Read here only for the timeout log: SSR renders the shell\n // without a window, and the origin is a browser fact.\n const origin = window.location.origin;\n const timer = setTimeout(() => {\n console.error(\n `Assistant request timed out after 10s (apiBaseUrl ${apiBaseUrl}, origin ${origin}, assistantId ${assistantId ?? \"none\"})`,\n );\n controller.abort();\n settle({ status: \"error\" });\n }, 10_000);\n void Promise.resolve()\n .then(() => {\n if (controller.signal.aborted) {\n return;\n }\n return resolveAssistant({\n apiBaseUrl,\n assistantId,\n signal: controller.signal,\n });\n })\n .then(\n (value) => {\n if (controller.signal.aborted) {\n return;\n }\n clearTimeout(timer);\n const parsed = AssistantResolutionSchema.safeParse(value);\n if (!parsed.success) {\n console.error(\n \"Assistant resolution did not match the contract:\",\n parsed.error.message,\n );\n settle({ status: \"error\" });\n return;\n }\n settle(parsed.data);\n },\n (error) => {\n if (!controller.signal.aborted) {\n console.error(\n `Assistant request failed: ${describeError(error)} (apiBaseUrl ${apiBaseUrl}, origin ${origin}, assistantId ${assistantId ?? \"none\"})`,\n );\n clearTimeout(timer);\n settle({ status: \"error\" });\n }\n },\n );\n return () => {\n clearTimeout(timer);\n controller.abort();\n };\n }, [apiBaseUrl, assistantId, attempt, key]);\n const state: AssistantRequestState =\n result?.key === key ? result.state : { status: \"loading\" };\n return {\n state,\n retry: () => setAttempt((value) => value + 1),\n };\n}\n","{\n \"authWaitSpinner\": {\n \"loading\": \"Loading\"\n },\n \"signupScreen\": {\n \"headlineLead\": \"Meet your new\",\n \"headlineRoles\": {\n \"personalIntelligence\": \"Personal Intelligence\",\n \"softwareEngineer\": \"Software Engineer\",\n \"financeOps\": \"Finance Ops\",\n \"householdManager\": \"Household Manager\",\n \"gtmEngineer\": \"GTM Engineer\",\n \"productLead\": \"Product Lead\"\n },\n \"subtitle\": \"The most powerful assistant that can handle your work and life admin tasks.\",\n \"continue\": \"Continue\",\n \"downloadMac\": \"Download for macOS\",\n \"haveAccountPrompt\": \"Already have an account? <signIn>Sign in</signIn>\"\n },\n \"signupClosedScreen\": {\n \"title\": \"Signups are currently closed\",\n \"message\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later. Alternatively, you can self-host Cadet. Learn more about self-hosting <selfHostingLink>here</selfHostingLink>.\",\n \"haveAccountPrompt\": \"Already have an account? <signIn>Sign in</signIn>\"\n },\n \"accountPage\": {\n \"loading\": \"Loading...\",\n \"welcomeTitle\": \"Welcome to Cadet\",\n \"welcomeSubtitle\": \"Sign in to get started.\",\n \"signIn\": \"Sign in\",\n \"signedInTitle\": \"Welcome!\",\n \"signedInTitleNamed\": \"Welcome, {name}!\",\n \"signedInSubtitle\": \"You are signed in.\",\n \"goToAssistant\": \"Go to your assistant\",\n \"signOut\": \"Sign out\",\n \"manageAssistants\": \"Manage assistants\",\n \"viewProfile\": \"View profile\"\n },\n \"loginPage\": {\n \"signUp\": \"Sign up\",\n \"signIn\": \"Sign in\"\n },\n \"logoutPage\": {\n \"title\": \"Signing out...\"\n },\n \"platformLoopbackPage\": {\n \"backToWelcome\": \"Back to Welcome\",\n \"completing\": \"Completing login...\"\n },\n \"oauthComplete\": {\n \"errorCode\": \"Error: {code}\"\n },\n \"providerCallbackPage\": {\n \"signupClosedTitle\": \"Signups are currently closed\",\n \"signupClosedSubtitle\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"backToSignIn\": \"Back to sign in\",\n \"failedTitle\": \"Authentication failed\",\n \"failedSubtitle\": \"Something went wrong during social sign-in. Please try again or use a different method.\",\n \"completingTitle\": \"Completing sign-in...\",\n \"completingSubtitle\": \"Please wait while we finish authenticating you.\"\n },\n \"providerSignupPage\": {\n \"completingTitle\": \"Completing signup...\",\n \"completingSubtitle\": \"Please wait while we load your information.\",\n \"headingLine1\": \"Almost there,\",\n \"headingLine2\": \"one more detail\",\n \"firstNameQuestion\": \"What should I call you?\",\n \"firstNamePlaceholder\": \"First name\",\n \"lastNameQuestion\": \"And your last name?\",\n \"lastNamePlaceholder\": \"Last name\",\n \"roleQuestion\": \"Your role\",\n \"rolePlaceholder\": \"e.g. Software Engineer\",\n \"submitting\": \"Setting up…\",\n \"submit\": \"Continue →\",\n \"completeAccountTitle\": \"Complete your account\",\n \"completeAccountSubtitle\": \"We need a few more details to finish setting up your account.\",\n \"backToSignIn\": \"← Back to sign in\",\n \"emailPlaceholder\": \"Email\",\n \"usernamePlaceholder\": \"Username\",\n \"completeSignup\": \"Complete signup\",\n \"completingSignup\": \"Completing...\"\n },\n \"authErrors\": {\n \"genericFailure\": \"Something went wrong. Please try again.\",\n \"signupClosed\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"providerSignup\": \"No Cadet account is linked to that login yet. Sign up first, then sign in.\",\n \"loginIncomplete\": \"Your account needs another step to finish signing in. Please sign in on the web, then try again.\",\n \"desktopUpdateRequired\": \"This version of the Cadet desktop app can't sign in. Update the app, then try again.\",\n \"loopbackStateMismatch\": \"Login failed: state mismatch. Please try again.\",\n \"loopbackNoToken\": \"Login failed: no session token received. Please try again.\",\n \"loopbackInvalidToken\": \"Login failed: invalid session token.\"\n },\n \"welcome\": {\n \"title\": \"Welcome to Cadet\",\n \"body\": \"Your own personal intelligence is just a step away.\",\n \"cancel\": \"Cancel\",\n \"logIn\": \"Log In\",\n \"continueWithoutAccount\": \"Continue without account\",\n \"comingSoon\": \"Log in to Cadet Cloud is Coming Soon!\"\n },\n \"selectAssistantScreen\": {\n \"listAriaLabel\": \"Assistants\",\n \"create\": \"Create an assistant\",\n \"rowActionsAriaLabel\": \"Actions for {name}\",\n \"retire\": \"Retire Assistant\",\n \"addRemote\": \"Add a remote assistant\",\n \"currentWithHost\": \"Current · {host}\",\n \"remoteWithHost\": \"Remote · {host}\",\n \"removeFromDevice\": \"Remove from this device…\",\n \"unnamedAssistant\": \"the assistant\",\n \"hatchAssistant\": \"Hatch a new assistant\",\n \"localAssistant\": \"On this computer\",\n \"cloudHosted\": \"Cloud-hosted\",\n \"cloudHostedWithHost\": \"Cloud-hosted · {host}\",\n \"selfHosted\": \"Self-hosted\"\n },\n \"appShell\": {\n \"loading\": \"Loading assistant…\",\n \"error\": \"Unable to load assistant.\",\n \"errorTitle\": \"We couldn't reach your assistant\",\n \"errorBody\": \"It didn't respond just now. If your assistant was just started, give it a moment, then retry.\",\n \"notReady\": \"Your assistant isn't ready.\",\n \"notReadyTitle\": \"Your assistant isn't ready.\",\n \"notReadyBody\": \"It isn't up right now. Try again in a bit, or start it from your Cadet account.\",\n \"wake\": \"Wake it up\",\n \"waking\": \"Waking…\",\n \"wakeFailed\": \"The wake didn't go through just now. Try again in a bit.\",\n \"empty\": \"No assistant is available.\",\n \"unauthenticated\": \"Please sign in to continue.\",\n \"retry\": \"Retry\",\n \"switchAssistant\": \"Switch assistant\",\n \"title\": \"Assistant\",\n \"selection\": \"Choose an assistant.\",\n \"unavailable\": \"This assistant is unavailable.\",\n \"assistantSwitchFailed\": \"Couldn't switch to that assistant.\"\n },\n \"actions\": {\n \"cancel\": \"Cancel\",\n \"add\": \"Add\",\n \"adding\": \"Adding…\",\n \"connect\": \"Connect\",\n \"connecting\": \"Connecting…\",\n \"continue\": \"Continue\",\n \"back\": \"Back\",\n \"loginToUse\": \"Log in to use\",\n \"tryAgain\": \"Try again\"\n },\n \"connectAssistantDialog\": {\n \"title\": \"Connect a Remote Assistant\",\n \"instruction\": \"Paste the pairing link from the assistant's Pair a device settings, or just its address, and approve the request there.\",\n \"linkGuidance\": \"This link came from a pairing QR code. To connect this device, paste the pairing link from the assistant's machine here.\",\n \"legacyLinkGuidance\": \"This link came from an older version of the app and can no longer be used. Generate a new pairing link on the assistant's machine and paste it here.\",\n \"addressLabel\": \"Address or pairing link\",\n \"addressPlaceholder\": \"https://your-assistant.ts.net\",\n \"nameLabel\": \"Name (optional)\",\n \"approveOnHost\": \"Approve this code on the assistant's machine to finish connecting.\",\n \"waitingForApproval\": \"Waiting for approval…\",\n \"retrying\": \"The assistant isn't ready to pair yet. Still trying until the code expires.\",\n \"expiresIn\": \"Expires in {time}\",\n \"retryExpired\": \"The pairing code expired before the assistant was ready to pair. Start over to get a new one.\",\n \"submitError\": \"Failed to connect to that assistant. Please try again.\",\n \"importedTitle\": \"Pairing Imported\",\n \"importedBody\": \"This pairing is access-only: it works now, but its access expires and cannot renew itself. When it does, generate a fresh pairing link on the assistant's machine and paste it here to pair again.\"\n },\n \"startScreen\": {\n \"createAssistant\": \"Create your assistant\"\n },\n \"hostingScreen\": {\n \"title\": \"Hosting\",\n \"body\": \"Choose where you want your assistant to live.\",\n \"needHelp\": \"Need help deciding?\",\n \"optionsAriaLabel\": \"Hosting options\"\n },\n \"connectScreen\": {\n \"title\": \"Connect to an existing assistant\",\n \"body\": \"Pair this device with an assistant already running on another machine. You’ll approve the pairing there.\",\n \"addressLabel\": \"Assistant address\",\n \"addressPlaceholder\": \"https://your-assistant.ts.net\",\n \"approveTitle\": \"Approve this pairing on the assistant’s machine\",\n \"waiting\": \"Waiting for approval…\",\n \"scanQr\": \"Scan QR code\",\n \"scanRejected\": \"That QR code doesn't contain an assistant address.\"\n },\n \"vellumMigration\": {\n \"title\": \"Import from Vellum\",\n \"body\": \"We'll move {count} assistant(s) — about {size} — from your Vellum install into Cadet.\",\n \"sleepNote\": \"Your Vellum assistants are put to sleep while the data moves, and wake up in Cadet when it's done.\",\n \"neverAgain\": \"Don't ask again\",\n \"begin\": \"Begin migration\",\n \"notNow\": \"Not now\",\n \"preparing\": \"Checking your Vellum install…\",\n \"runningTitle\": \"Migrating your assistant\",\n \"doneTitle\": \"Migration complete\",\n \"failedTitle\": \"Nothing to import\",\n \"runFailed\": \"The migration didn't finish. Your Vellum data is untouched — try again anytime.\",\n \"nothingFound\": \"We couldn't find a Vellum install to import.\",\n \"unavailable\": \"Import isn't available right now.\"\n },\n \"apiKeyScreen\": {\n \"title\": \"Connect a Model Provider\",\n \"body\": \"Choose the model provider your assistant should use.\",\n \"providerLabel\": \"Provider\",\n \"modelLabel\": \"Model\",\n \"baseUrlLabel\": \"Base URL\",\n \"modelsLabel\": \"Models\",\n \"modelsPlaceholder\": \"model-1, model-2\",\n \"modelsHelp\": \"Comma-separated model identifiers exposed by your endpoint.\",\n \"apiKeyLabel\": \"{provider} API Key\",\n \"apiKeyPlaceholder\": \"Enter your API key\",\n \"noKeyPrompt\": \"Don't have it?\",\n \"getKeyLink\": \"Get an API key here\"\n },\n \"hatchingScreen\": {\n \"apiKeyFailed\": \"Your API key didn't work\",\n \"genericFailure\": \"Something went wrong\",\n \"ready\": \"Your assistant is ready!\",\n \"updateApiKey\": \"Update API key\",\n \"waking\": \"Waking up…\",\n \"wakingBody\": \"Hang tight, your assistant will have a few questions for you once it's up.\",\n \"progressAriaLabel\": \"Assistant startup progress\",\n \"phase\": {\n \"initializing\": \"Getting things ready…\",\n \"provisioning\": \"Setting up your assistant…\",\n \"connecting\": \"Connecting to your assistant…\",\n \"ready\": \"Ready\"\n }\n },\n \"pairingPage\": {\n \"pairingCode\": \"Pairing code\",\n \"pair\": \"Pair\",\n \"expiresAt\": \"Expires {time}.\",\n \"cancel\": \"Cancel\",\n \"enterNewCode\": \"Enter a new code\"\n },\n \"assistantBackups\": {\n \"columnCreated\": \"Created\",\n \"columnReady\": \"Ready\",\n \"columnSnapshotName\": \"Snapshot Name\",\n \"columnType\": \"Type\",\n \"copyFailed\": \"Couldn't copy the snapshot name.\",\n \"copySnapshotName\": \"Copy snapshot name\",\n \"createBackup\": \"Create Backup\",\n \"createFailedToast\": \"Failed to create backup.\",\n \"createSuccessToast\": \"Backup started. It will appear in the list shortly.\",\n \"creating\": \"Creating…\",\n \"empty\": \"No backups found for this assistant.\",\n \"export\": \"Export\",\n \"exportDownloading\": \"Downloading…\",\n \"exportExporting\": \"Exporting…\",\n \"exportFailedToast\": \"Failed to export the assistant.\",\n \"exportMessage\": \"Download a .tar.gz archive of the whole installation, including encrypted credentials and the keys needed to read them. Keep this archive private.\",\n \"exportPreparing\": \"Preparing…\",\n \"exportTitle\": \"Export Assistant\",\n \"loadFailed\": \"Failed to load backups.\",\n \"loading\": \"Loading backups...\",\n \"notReady\": \"Backup is not ready to use\",\n \"oldestRemovedNotice\": \"Creating a new backup will remove the oldest one.\",\n \"pending\": \"Pending\",\n \"ready\": \"Ready\",\n \"restore\": \"Restore\",\n \"restoreFailedToast\": \"Failed to restore backup.\",\n \"restoreMessage\": \"Restore from backup \\\"{name}\\\"?\\n\\nThe assistant will be temporarily unavailable during the restore.\",\n \"restoreSuccessToast\": \"Backup restored successfully.\",\n \"restoreTitle\": \"Restore Backup\",\n \"typeDoctor\": \"Doctor\",\n \"typePointInTime\": \"Point-in-time\",\n \"typePreview\": \"Preview\",\n \"typeScheduled\": \"Scheduled\"\n },\n \"assistantUpgrades\": {\n \"alreadyOnVersion\": \"You are already on this version.\",\n \"confirmUpdateMessage\": \"Update to version {version}? The assistant will be briefly unavailable during the update.\",\n \"confirmUpdateTitle\": \"Update assistant\",\n \"current\": \"Current\",\n \"currentSuffix\": \"(current)\",\n \"latest\": \"latest\",\n \"latestSuffix\": \"(latest)\",\n \"loading\": \"Loading...\",\n \"noReleases\": \"No releases available\",\n \"selected\": \"Selected\",\n \"successUpdated\": \"Successfully updated to version {version}.\",\n \"toastUpdateComplete\": \"Update complete. Your assistant is healthy.\",\n \"toastUpdateFailed\": \"Failed to trigger update. Please try again.\",\n \"toastUpdateInitiated\": \"Update to {version} initiated.\",\n \"update\": \"Update\",\n \"updateTo\": \"Update to\",\n \"updating\": \"Updating...\"\n },\n \"assistantsPage\": {\n \"title\": \"Manage assistants\",\n \"subtitle\": \"Backups, upgrades, and exports for each assistant on this account.\",\n \"loading\": \"Loading your assistants...\",\n \"loadFailed\": \"The assistant list failed to load.\",\n \"retry\": \"Try again\",\n \"signInRequired\": \"Sign in to manage your assistants.\",\n \"empty\": \"No assistants on this account yet.\",\n \"upgradesSection\": \"Version\",\n \"backupsSection\": \"Backups\",\n \"adminAccessSection\": \"Admin access\",\n \"adminAccess\": {\n \"stateOn\": \"Enabled — the assistant's data may be fetched through the cloud's admin seam (log downloads).\",\n \"stateOff\": \"Disabled — the cloud's admin tooling cannot fetch this assistant's data.\",\n \"enable\": \"Enable admin access\",\n \"disable\": \"Disable admin access\",\n \"working\": \"Working…\",\n \"updated\": \"Admin access updated.\",\n \"updateFailed\": \"The admin access update failed.\",\n \"notAvailable\": \"Admin access applies to cloud-hosted assistants only.\"\n },\n \"healthSection\": \"Health\",\n \"healthHealthy\": \"Healthy\",\n \"healthUnhealthy\": \"Unhealthy — {detail}\",\n \"healthChecking\": \"Checking health...\",\n \"healthUnknown\": \"Health unknown\",\n \"retireSection\": \"Retire\",\n \"retireHint\": \"Retiring deletes this assistant permanently — its data, its backups on Cadet Cloud, and its sign-in. This cannot be undone.\",\n \"retire\": \"Retire Assistant\"\n },\n \"profilePage\": {\n \"title\": \"Profile\",\n \"subtitle\": \"Your account and the assistants it holds.\",\n \"loading\": \"Loading your profile...\",\n \"signInRequired\": \"Sign in to see your profile.\",\n \"signIn\": \"Sign in\",\n \"backToAccount\": \"Back to account\",\n \"accountSection\": \"Account\",\n \"name\": \"Name\",\n \"email\": \"Email\",\n \"userId\": \"User ID\",\n \"assistantsSection\": \"Your assistants\",\n \"assistantsLoadFailed\": \"The assistant list failed to load.\",\n \"retry\": \"Try again\",\n \"assistantsEmpty\": \"No assistants on this account yet.\",\n \"assistantsUnauthenticated\": \"Sign in to see your assistants.\",\n \"hatched\": \"Hatched\",\n \"manageHint\": \"Open an assistant to manage backups, upgrades, and exports.\",\n \"subscriptionSection\": \"Subscription\",\n \"planLabel\": \"Plan\",\n \"noSubscription\": \"No active subscription.\",\n \"waitlistNotice\": \"You're on the waitlist — we'll email you when a cohort opens.\"\n }\n}\n","{\n \"doctorChatBlocks\": {\n \"allowOnce\": \"Allow once\",\n \"alwaysAllow\": \"Always Allow\",\n \"backUp\": \"Back up\",\n \"backupPromptBody\": \"The doctor is about to run <toolCode>{toolName}</toolCode>. Would you like to back up your workspace first?\",\n \"backupPromptTitle\": \"Create a backup before modifying?\",\n \"completedStep\": \"Completed 1 step\",\n \"confirmationRequired\": \"Confirmation required\",\n \"copyAria\": \"Copy to clipboard\",\n \"copyAriaCopied\": \"Copied\",\n \"copyError\": \"Couldn't copy the message.\",\n \"copyTitle\": \"Copy\",\n \"copyTitleCopied\": \"Copied!\",\n \"deny\": \"Deny\",\n \"failedStep\": \"Failed 1 step\",\n \"feedbackBody\": \"You can send it with logs while the Doctor keeps looking for a fix or workaround here.\",\n \"feedbackTitle\": \"This sounds like feedback for the Cadet team.\",\n \"gladSolved\": \"Glad it's solved!\",\n \"hideDetails\": \"Hide details\",\n \"notSolved\": \"Not solved\",\n \"notSolvedAria\": \"No, my problem is not solved\",\n \"output\": \"Output\",\n \"runningStep\": \"Running 1 step\",\n \"shareFeedback\": \"Share Feedback\",\n \"showDetails\": \"Show details\",\n \"skip\": \"Skip\",\n \"solvedAria\": \"Yes, my problem is solved\",\n \"technicalDetails\": \"Technical Details\",\n \"toolLabel\": \"Tool:\"\n },\n \"doctorPanel\": {\n \"connecting\": \"Connecting...\",\n \"copiedToast\": \"Session copied to clipboard.\",\n \"copyFailed\": \"Couldn't copy the session.\",\n \"copySession\": \"Copy Session\",\n \"endSession\": \"End Session\",\n \"goToNewest\": \"Go to Newest\",\n \"goToNewestAria\": \"Go to newest message\",\n \"idleDescription\": \"Start a diagnostic session to have the Doctor analyze your assistant, identify issues, and suggest or apply fixes. The Doctor is free to use. Doctor logs may be temporarily stored.\",\n \"idleTitle\": \"Assistant Doctor\",\n \"loading\": \"Loading...\",\n \"newSession\": \"New Session\",\n \"noAssistant\": \"No assistant found. Hatch an assistant to use the Doctor.\",\n \"placeholderApproval\": \"Type \\\"approve\\\" or \\\"deny\\\", or send a message...\",\n \"placeholderMessage\": \"Type a message...\",\n \"sendMessageAria\": \"Send message\",\n \"sessionMenu\": \"Session options\",\n \"shareFeedback\": \"Share Feedback\",\n \"startSession\": \"Start Doctor Session\",\n \"thinking\": \"Thinking…\",\n \"title\": \"Doctor\",\n \"openBackups\": \"Open backups in assistant settings\"\n },\n \"shareFeedbackModal\": {\n \"aboutDiagnosticsAria\": \"About diagnostics\",\n \"addFiles\": \"Add files\",\n \"attachments\": \"Attachments\",\n \"bugTip\": \"Tip: Get faster support by posting in our <discordLink>Discord community</discordLink>\",\n \"cancel\": \"Cancel\",\n \"category\": \"Category\",\n \"closeAria\": \"Close\",\n \"diagnosticsTooltip\": \"Diagnostics include browser context, assistant logs, and timestamps - never passwords or credentials.\",\n \"downloadDiagnostics\": \"Download diagnostics directly\",\n \"downloadDiagnosticsAria\": \"Download diagnostics directly\",\n \"downloadDiagnosticsButton\": \"Download diagnostics\",\n \"dropFiles\": \"Drop files to attach…\",\n \"featureTip\": \"Tip: Vote on features on our <roadmapLink>public roadmap</roadmapLink>\",\n \"includeConversation\": \"Include the most recent conversation\",\n \"includeConversationAria\": \"Include the most recent conversation\",\n \"includeDiagnostics\": \"Include diagnostics\",\n \"includeDiagnosticsAria\": \"Include browser diagnostics\",\n \"messageLabelBug\": \"What went wrong?\",\n \"messageLabelFeature\": \"Describe your idea\",\n \"messageLabelOther\": \"What's on your mind?\",\n \"messagePlaceholderBug\": \"What did you expect to happen, and what happened instead?\",\n \"messagePlaceholderFeature\": \"What problem would this solve for you?\",\n \"messagePlaceholderOther\": \"Share your thoughts...\",\n \"preparingDiagnostics\": \"Preparing diagnostics…\",\n \"reasonBugReport\": \"Bug Report\",\n \"reasonFeatureRequest\": \"Feature Request\",\n \"reasonOther\": \"Other\",\n \"removeAttachmentAria\": \"Remove {name}\",\n \"sendingFeedback\": \"Sending feedback…\",\n \"submit\": \"Submit\",\n \"timeRange\": \"Time range\",\n \"timeRangeAllTime\": \"All time\",\n \"timeRangeAria\": \"Diagnostics time range\",\n \"timeRangePast24Hours\": \"Past 24 hours\",\n \"timeRangePastHour\": \"Past hour\",\n \"title\": \"Share Feedback\",\n \"doctorSessionAttached\": \"The doctor session transcript will be attached to your report.\"\n },\n \"detailPanelStopButton\": {\n \"tooltip\": \"Stop\"\n },\n \"doctorPage\": {\n \"empty\": \"There's no assistant on this machine yet. Hatch one first, then come back to the Doctor.\"\n }\n}\n","{\n \"aboutPage\": {\n \"build\": \"Build\",\n \"cliPath\": \"CLI path\",\n \"taglineMacOS\": \"AI assistant for your Mac\",\n \"taglineWindows\": \"AI assistant for your PC\",\n \"version\": \"Version\"\n },\n \"activeAssistantGate\": {\n \"connecting\": \"Connecting to your assistant…\",\n \"logIn\": \"Log In\",\n \"logOut\": \"Log Out\",\n \"errorTitle\": \"We couldn't reach your assistant\",\n \"retry\": \"Try again\"\n },\n \"addCredentialModal\": {\n \"cancel\": \"Cancel\",\n \"credentialSaved\": \"Credential saved.\",\n \"description\": \"Add an API key or token to let tools and integrations use it.\",\n \"fieldLabel\": \"Field\",\n \"fieldPlaceholder\": \"e.g. api_token\",\n \"labelOptional\": \"Label (optional)\",\n \"labelPlaceholder\": \"e.g. GitHub personal access token\",\n \"save\": \"Save\",\n \"saveFailed\": \"Failed to save credential\",\n \"serviceLabel\": \"Service\",\n \"servicePlaceholder\": \"e.g. github\",\n \"title\": \"Add credential\",\n \"valueLabel\": \"Value\",\n \"valuePlaceholder\": \"Enter the secret value\"\n },\n \"addCreditsModal\": {\n \"amount\": \"Amount\",\n \"cancel\": \"Cancel\",\n \"configureAutoReload\": \"Configure Auto-Reload\",\n \"continue\": \"Continue\",\n \"description\": \"You'll be redirected to Stripe to complete the payment.\",\n \"title\": \"Add Credits\"\n },\n \"appCard\": {\n \"openApp\": \"Open App\",\n \"pin\": \"Pin\",\n \"previewTitle\": \"{name} preview\",\n \"unpin\": \"Unpin\"\n },\n \"appNavBar\": {\n \"close\": \"Close\",\n \"copyLink\": \"Copy link\",\n \"deploy\": \"Deploy\",\n \"deployToVercel\": \"Deploy to Vercel\",\n \"deployToVercelSubtitle\": \"Publish as a static page\",\n \"deployedCopyLinkAria\": \"Deployed to Vercel, copy link\",\n \"deployedCopyLinkTooltip\": \"Deployed: copy link\",\n \"deployedToVercel\": \"Deployed to Vercel\",\n \"deploying\": \"Deploying…\",\n \"edit\": \"Edit\",\n \"expandApp\": \"Expand app\",\n \"fullscreen\": \"Fullscreen\",\n \"openApp\": \"Open app\",\n \"redeploy\": \"Redeploy\",\n \"redeploySubtitle\": \"Publish the current version\",\n \"share\": \"Share\",\n \"shareAndDeploy\": \"Share & deploy\",\n \"shareExportSubtitle\": \"Export as .cadet file\",\n \"sharing\": \"Sharing…\"\n },\n \"appViewerContainer\": {\n \"exitFullscreen\": \"Exit fullscreen\"\n },\n \"assistantConnect\": {\n \"failed\": \"Failed to connect to the assistant.\"\n },\n \"assistantEmailIntroModal\": {\n \"setUp\": \"Set up email\"\n },\n \"assistantFeatureFlagStore\": {\n \"updateFailed\": \"Couldn't update \\\"{label}\\\". Your change was reverted.\"\n },\n \"avatarManagementModal\": {\n \"accent\": \"Accent\",\n \"accentAutomatic\": \"Automatic\",\n \"accentPickerLabel\": \"Accent color\",\n \"accentReset\": \"Reset\",\n \"body\": \"Body\",\n \"color\": \"Color\",\n \"eyes\": \"Eyes\",\n \"keepUploadedDescription\": \"Saving the character replaces it\",\n \"keepUploadedLabel\": \"Keep your uploaded image\",\n \"loadError\": \"Unable to load avatar components. Make sure your assistant is running.\",\n \"name\": \"Name\",\n \"next\": \"Next {label}\",\n \"previous\": \"Previous {label}\",\n \"randomize\": \"Randomize\",\n \"save\": \"Save\",\n \"saving\": \"Saving…\",\n \"title\": \"Update Avatar\",\n \"uploadImage\": \"Upload image\",\n \"uploadedAlt\": \"Uploaded avatar\",\n \"useCharacterDescription\": \"Pick from our built-in avatars\",\n \"useCharacterLabel\": \"Use a character instead\"\n },\n \"bundleConfirmPage\": {\n \"bySigner\": \"by {name}\",\n \"cancel\": \"Cancel\",\n \"capabilities\": \"Capabilities\",\n \"createdBy\": \"Created by\",\n \"hideWarnings\": \"Hide Warnings ({count})\",\n \"install\": \"Install\",\n \"installAnyway\": \"Install Anyway\",\n \"loading\": \"Loading...\",\n \"showWarnings\": \"Show Warnings ({count})\",\n \"size\": \"Size\"\n },\n \"byoVoiceNote\": {\n \"body\": \"Your assistant speaks through a provider you configured yourself. Set its voice on <settingsLink>Models & Services</settingsLink>.\"\n },\n \"channelSetupCompleteNotice\": {\n \"verifyTitle\": \"One last step: verify it's you\",\n \"verifyAction\": \"Verify me\",\n \"verifyBody\": \"Your assistant doesn't know which {channel} account is yours yet, so it won't answer you. Say \\\"verify me on {channel}\\\" in chat to finish.\",\n \"verifyActionBody\": \"Your assistant doesn't know which {channel} account is yours yet, so it won't answer you. It finishes this with you in chat.\",\n \"verifiedTitle\": \"You're verified\",\n \"verifiedBody\": \"Your assistant knows your {channel} account, so it will answer you. You're all set.\"\n },\n \"chatAvatar\": {\n \"alt\": \"Assistant avatar\",\n \"fallbackLetter\": \"V\"\n },\n \"chooserAvatarChip\": {\n \"alt\": \"Assistant avatar\"\n },\n \"collapsibleNavSection\": {\n \"actionsTitle\": \"{title} actions\"\n },\n \"commandPalette\": {\n \"ariaLabel\": \"Command palette\",\n \"clear\": \"Clear\",\n \"clearSearch\": \"Clear search\",\n \"closeSearch\": \"Close search\",\n \"noResults\": \"No results\",\n \"placeholder\": \"Search conversations, memories…\",\n \"searchAriaLabel\": \"Search\",\n \"searching\": \"Searching…\"\n },\n \"companionIntro\": {\n \"announcement\": {\n \"body\": \"I can now join you anywhere on your desktop.\",\n \"cards\": {\n \"context\": {\n \"body\": \"Let me see what you see and help in context.\",\n \"title\": \"Show and explain\"\n },\n \"flow\": {\n \"body\": \"Reach me without leaving the app you’re in.\",\n \"title\": \"Stay in your flow\"\n },\n \"together\": {\n \"body\": \"Talk, point, and make progress together.\",\n \"title\": \"Work side by side\"\n }\n },\n \"close\": \"Close\",\n \"previewLabel\": \"Your desktop companion\",\n \"previewAssistantName\": \"Quill\",\n \"start\": \"Let’s go\",\n \"title\": \"Meet me where you work\"\n },\n \"ariaLabel\": \"Introducing your companion\",\n \"back\": \"Back\",\n \"call\": {\n \"click\": \"Click\",\n \"line\": \"Listening\",\n \"shortcut\": \"Shortcut\"\n },\n \"close\": \"Close\",\n \"done\": \"Got it\",\n \"draw\": {\n \"body\": \"Point out anything on your screen\",\n \"title\": \"Draw\"\n },\n \"idle\": {\n \"body\": \"Hover me and I’ll come out.\",\n \"title\": \"Hey, it’s me\",\n \"titleNamed\": \"Hey, it’s {name}\"\n },\n \"key\": {\n \"scolded\": \"No, the button on your keyboard\",\n \"title\": \"Make it easy to talk to me\"\n },\n \"meet\": {\n \"body\": \"I stay on your desktop, even when Cadet isn’t visible.\"\n },\n \"mute\": {\n \"body\": \"Click the mic to mute yourself or the speaker to mute me\",\n \"title\": \"Mute\"\n },\n \"next\": \"Next\",\n \"share\": {\n \"body\": \"Show me a tab, window, or entire screen\",\n \"title\": \"Share your screen\"\n },\n \"talk\": {\n \"body\": \"Click me to start a conversation.\",\n \"gesture\": \"Or double tap this key:\",\n \"greeted\": \"You did it! That’s all there is to it.\",\n \"title\": \"Talk to me\"\n },\n \"try\": {\n \"body\": \"Say hello and I’ll answer out loud.\",\n \"how\": \"Click me, or double tap the key\",\n \"title\": \"Give it a go\"\n },\n \"permission\": {\n \"microphoneAction\": \"Enable microphone\",\n \"microphoneSettingsHint\": \"Turn on Cadet’s microphone switch in System Settings, then return here.\",\n \"microphonePromptHint\": \"macOS will ask you to allow microphone access.\",\n \"microphoneBody\": \"Let me use your microphone for voice conversations.\",\n \"shortcutBody\": \"Let me hear the shortcut while you use other apps.\",\n \"screenAction\": \"Enable screen sharing\",\n \"screenBody\": \"Prepare screen sharing. You choose what to share when you use it.\",\n \"openSettings\": \"Open Settings\",\n \"settingsHint\": \"Allow access in System Settings, then return here.\",\n \"restricted\": \"This permission is restricted on your Mac. You can skip this step.\",\n \"error\": \"Could not check access. Try again.\",\n \"waiting\": \"Checking access…\",\n \"skip\": \"Skip for now\"\n }\n },\n \"companionPopover\": {\n \"allow\": \"Allow\",\n \"confirm\": \"Confirm\",\n \"credentialLabel\": \"Credential\",\n \"defaultSuffix\": \"(default)\",\n \"deny\": \"Deny\",\n \"dismiss\": \"Dismiss\",\n \"enter\": \"Enter\",\n \"microphoneFallback\": \"Microphone {index}\",\n \"microphonePermissionHint\": \"Allow microphone access to see each microphone by name.\",\n \"microphoneTitle\": \"Microphone\",\n \"needsCredentials\": \"Need a credential\",\n \"needsCredentialsFor\": \"Need credentials for {service}\",\n \"needsOkCount\": \"{count, plural, one {Need your OK on # thing} other {Need your OK on # things}}\",\n \"notNow\": \"Not Now\",\n \"openApp\": \"Open Cadet\",\n \"pendingBadge\": \"{count, plural, one {# thing needs your OK} other {# things need your OK}}\",\n \"previewVoice\": \"Preview {voice}\",\n \"review\": \"Review\",\n \"savedMicrophone\": \"Saved microphone\",\n \"savedMicrophoneNotConnected\": \"Saved microphone (not connected)\",\n \"stopPreview\": \"Stop preview\",\n \"surfaceFallback\": \"Something to look at\",\n \"systemDefault\": \"System Default\",\n \"voiceTitle\": \"Voice\"\n },\n \"companionSurface\": {\n \"calling\": \"Calling…\",\n \"callingNamed\": \"Calling {name}…\",\n \"captureKind\": \"Source kind\",\n \"captureNothing\": \"Nothing to show\",\n \"capturePicker\": \"What to teach from\",\n \"captureScreen\": \"Screen {n}\",\n \"captureScreenRecordingOff\": \"Screen Recording is off\",\n \"captureScreens\": \"Screens\",\n \"captureTabs\": \"Chrome tabs\",\n \"captureTurnOnScreenRecording\": \"Turn on\",\n \"captureWindows\": \"Windows\",\n \"dictating\": \"Listening\",\n \"draw\": \"Draw\",\n \"clearMarks\": \"Clear marks\",\n \"drawTools\": \"Drawing tool\",\n \"drawFreehand\": \"Freehand\",\n \"drawLine\": \"Line\",\n \"drawBox\": \"Box\",\n \"drawCircle\": \"Circle\",\n \"dictatingTranscribing\": \"Thinking\",\n \"endSession\": \"End session\",\n \"muteAssistant\": \"Mute assistant\",\n \"muteAssistantNamed\": \"Mute {name}\",\n \"muteMicrophone\": \"Mute microphone\",\n \"notNow\": \"Not now\",\n \"offerCopy\": \"Copy\",\n \"offerDiscard\": \"Discard\",\n \"offerHeard\": \"{app} pasted that\",\n \"offerNowhere\": \"Nowhere to put these\",\n \"offerPasteFailed\": \"Couldn't paste these\",\n \"offerQuit\": \"Quit {app}\",\n \"offerUse\": \"Use Cadet's\",\n \"offerVersion\": \"Cadet heard\",\n \"openCadet\": \"Open Cadet\",\n \"share\": \"Share\",\n \"sharePicker\": \"What to share\",\n \"showSummary\": \"Show summary\",\n \"stopTeaching\": \"Stop teaching\",\n \"summarizing\": \"Summarizing\",\n \"talk\": \"Talk\",\n \"teach\": \"Teach\",\n \"unmuteAssistant\": \"Unmute assistant\",\n \"unmuteAssistantNamed\": \"Unmute {name}\",\n \"unmuteMicrophone\": \"Unmute microphone\",\n \"chooseMicrophone\": \"Choose microphone\",\n \"workCount\": \"{count, plural, =0 {Nothing running} one {# thing running} other {# things running}}\",\n \"workDone\": \"Done\",\n \"workStopped\": \"Stopped\",\n \"workMore\": \"{count} more\",\n \"workWaiting\": \"{count, plural, one {# waiting on you} other {# waiting on you}}\",\n \"workWaitingStep\": \"Waiting on you\"\n },\n \"companionWatchFramePage\": {\n \"sharingScreen\": \"Sharing your screen\",\n \"sharingScreenNamed\": \"Sharing your screen with {name}\",\n \"sharingWindow\": \"Sharing a window\",\n \"sharingWindowNamed\": \"Sharing a window with {name}\",\n \"teaching\": \"Teaching\",\n \"teachingNamed\": \"Teaching {name}\"\n },\n \"contentActionBar\": {\n \"copiedAria\": \"Copied\",\n \"copyFailed\": \"Couldn't copy the file contents.\",\n \"copyFileContentsAria\": \"Copy file contents\",\n \"downloadFileAria\": \"Download file\",\n \"editFileAria\": \"Edit file\"\n },\n \"conversationTitle\": {\n \"untitled\": \"Untitled\"\n },\n \"copyButton\": {\n \"copied\": \"Copied\",\n \"copyFailed\": \"Could not copy to the clipboard.\"\n },\n \"createAssistantDialog\": {\n \"cancel\": \"Cancel\",\n \"create\": \"Create\",\n \"description\": \"Provision a new assistant. It will start up in the background.\",\n \"namePlaceholder\": \"Assistant name (optional)\",\n \"title\": \"New Assistant\",\n \"toastSuccess\": \"New assistant created.\"\n },\n \"dateRangeSelect\": {\n \"ariaLabel\": \"Date range\",\n \"lastDays\": \"{days, plural, one {Last # day} other {Last # days}}\"\n },\n \"deleteAppDialog\": {\n \"delete\": \"Delete\",\n \"deleting\": \"Deleting…\",\n \"message\": \"\\\"{name}\\\" will be permanently removed.\",\n \"title\": \"Delete app\"\n },\n \"deployDialogs\": {\n \"confirmLabel\": \"Let your assistant handle it\",\n \"confirmLabelNamed\": \"Let {assistantName} handle it\",\n \"message\": \"\\\"{appName}\\\" uses backend services that won't work on a static Vercel page. Your assistant can deploy it properly with serverless functions.\",\n \"messageNamed\": \"\\\"{appName}\\\" uses backend services that won't work on a static Vercel page. {assistantName} can deploy it properly with serverless functions.\",\n \"title\": \"This app needs a full deploy\"\n },\n \"deployStore\": {\n \"appExported\": \"App exported\",\n \"deployFailed\": \"Failed to deploy\",\n \"deployedToVercel\": \"Deployed to Vercel\",\n \"open\": \"Open\",\n \"shareFailed\": \"Failed to share app\"\n },\n \"detailPanelStopButton\": {\n \"tooltip\": \"Stop\"\n },\n \"detailPrimitives\": {\n \"copy\": \"Copy\",\n \"expandedValue\": \"Expanded value\",\n \"showLess\": \"Show less\",\n \"showMore\": \"Show more\"\n },\n \"dictationOverlayPage\": {\n \"stopRecording\": \"Stop recording\"\n },\n \"discordNudgeBanner\": {\n \"ariaLabel\": \"Join the Cadet Discord community\",\n \"ctaLong\": \"Join Discord\",\n \"ctaShort\": \"Join\",\n \"subtitleLong\": \"Talk to the team - share feedback, request features, get answers faster\",\n \"subtitleShort\": \"Share feedback, request features, get answers faster\",\n \"title\": \"Join our community!\"\n },\n \"discordSetupConnectStep\": {\n \"instructions\": \"Paste the bot token you copied from the Bot page.\",\n \"verificationNoticeTitle\": \"Ignore the \\\"Verify your App\\\" page\",\n \"verificationNoticeBody\": \"Discord shows it for every new app. It only matters past 100 servers.\",\n \"botTokenLabel\": \"Bot token\",\n \"save\": \"Connect\",\n \"saving\": \"Connecting...\",\n \"saved\": \"Connected. Next, add the bot to a server.\",\n \"botTokenPlaceholder\": \"MTk4NjIyNDgzNzAyNDU0...\"\n },\n \"discordSetupCreateStep\": {\n \"inPortal\": \"In the Discord developer portal:\",\n \"stepCreateApp\": \"Click <strong>New Application</strong> and give the app your assistant's name:\",\n \"copyName\": \"Copy name\",\n \"copied\": \"Copied!\",\n \"stepAppIcon\": \"Optional: download the avatar, then upload it on <strong>General Information</strong> as the app icon.\",\n \"stepResetToken\": \"Go to the <strong>Bot</strong> page in the app's menu, then click <strong>Reset Token</strong> and copy the token right away. Discord only shows it once.\",\n \"stepIntentsOff\": \"On the same page, leave all three <strong>Privileged Gateway Intents</strong> switches off. Your assistant doesn't need them: it only reads direct messages and messages that mention it.\",\n \"openPortal\": \"Open Discord portal\",\n \"continue\": \"I have my token\"\n },\n \"discordSetupFinishStep\": {\n \"connectedTitle\": \"Bot added\",\n \"connectedBody\": \"The token is saved and the bot is in your server. The Discord side is done.\"\n },\n \"discordSetupInviteStep\": {\n \"instructions\": \"Your bot can't see or answer anything until it joins a server. Open the link, pick your server, and approve.\",\n \"openInvite\": \"Add to a server\",\n \"confirmJoined\": \"I've added the bot\",\n \"noAppId\": \"Connect a bot token first, then come back to add it to a server.\"\n },\n \"discordSetupWizard\": {\n \"channelLabel\": \"Discord\",\n \"stepCreate\": \"Create app\",\n \"stepConnect\": \"Connect\",\n \"stepInvite\": \"Add to server\",\n \"stepFinish\": \"Finish\",\n \"copyError\": \"Could not copy the name. Type it into Discord instead.\"\n },\n \"diskPressureBanner\": {\n \"acknowledge\": \"Acknowledge\",\n \"acknowledging\": \"Acknowledging...\",\n \"cleanupBody\": \"Prompt your assistant to free up space before it runs out and enters a locked state.\",\n \"cleanupTitle\": \"Cleanup mode is active\",\n \"criticalBody\": \"Your assistant will enter a locked state if it runs out of storage.\",\n \"criticalModalDescription\": \"Your assistant will enter a locked state if it runs out of storage. You should either prompt your assistant to free up space or increase your storage.\",\n \"criticalTitle\": \"Storage is critically low\",\n \"dontShowAgain\": \"Don't show again\",\n \"manageStorage\": \"Manage Storage\",\n \"review\": \"Review\",\n \"upgrade\": \"Upgrade\",\n \"warningBody\": \"Free up space to avoid interruptions.\",\n \"warningBodyWithUpgrade\": \"Free up space or add more storage to avoid interruptions.\",\n \"warningTitle\": \"Your storage is almost full\"\n },\n \"downloadFeedback\": {\n \"failed\": \"Download failed\",\n \"revealMac\": \"Show in Finder\",\n \"revealWindows\": \"Show in File Explorer\",\n \"saved\": \"Saved to Downloads\",\n \"started\": \"Download started\",\n \"startedDescription\": \"Look for {filename} in your browser's downloads.\"\n },\n \"editFooter\": {\n \"discard\": \"Discard\",\n \"save\": \"Save\",\n \"saving\": \"Saving…\"\n },\n \"featureIntroModal\": {\n \"close\": \"Close\"\n },\n \"fileViewMode\": {\n \"formatted\": \"Formatted\",\n \"modeAria\": \"How to show this file\",\n \"source\": \"Source\"\n },\n \"generateInviteLinkDialog\": {\n \"copyAriaLabel\": \"Copy invite link\",\n \"createFailed\": \"Failed to create invite link. Make sure A2A is enabled for your assistant.\",\n \"creating\": \"Creating invite link…\",\n \"done\": \"Done\",\n \"shareHint\": \"Share this link with another assistant owner to establish a connection.\",\n \"title\": \"Share Connection Link\",\n \"tryAgain\": \"Try Again\"\n },\n \"githubNudgeBanner\": {\n \"ariaLabel\": \"Cadet is open source on GitHub\",\n \"ctaAriaLabel\": \"Star Cadet on GitHub\",\n \"ctaLabel\": \"Star us\",\n \"subtitle\": \"Star us on GitHub or contribute\",\n \"title\": \"Cadet is open source\"\n },\n \"lazyBoundary\": {\n \"loadError\": \"This section couldn't load. Reload the page to try again.\"\n },\n \"localNotification\": {\n \"goToConversation\": \"Go to Conversation\"\n },\n \"desktopAppBanner\": {\n \"ariaLabelMacOS\": \"Download the macOS app\",\n \"ariaLabelWindows\": \"Download the Windows app\",\n \"ctaAriaLabelMacOS\": \"Download macOS app\",\n \"ctaAriaLabelWindows\": \"Download Windows app\",\n \"ctaLabel\": \"Download\",\n \"subtitle\": \"Computer use · terminal access · native automation\",\n \"titleMacOS\": \"Get the macOS app\",\n \"titleWindows\": \"Get the Windows app\"\n },\n \"nativeAppBanner\": {\n \"bannerAria\": \"Download the {appName} app\",\n \"bannerAriaGeneric\": \"Download the Cadet mobile app\",\n \"download\": \"Download\",\n \"downloadAppAria\": \"Download {appName} app\",\n \"downloadAppAriaGeneric\": \"Download Cadet mobile app\",\n \"subtitle\": \"Push notifications · biometric login · haptics\",\n \"title\": \"Get the {appName} app\",\n \"titleGeneric\": \"Get the Cadet app\"\n },\n \"nudgeChatBanner\": {\n \"dismissAria\": \"Dismiss\"\n },\n \"onboardingBackButton\": {\n \"back\": \"Back\"\n },\n \"platformLoginNotice\": {\n \"cancel\": \"Cancel\",\n \"logIn\": \"Log In\"\n },\n \"profileCard\": {\n \"assistantHandleIdleEmpty\": \"Your assistant doesn't have a handle yet - claim one to make it mentionable.\",\n \"assistantHandleLabel\": \"Assistant handle\",\n \"assistantHandleUpdated\": \"Assistant handle updated.\",\n \"available\": \"Available\",\n \"availableHelper\": \"Available.\",\n \"checkAvailabilityFailed\": \"Couldn't check availability.\",\n \"checkingAvailability\": \"Checking availability…\",\n \"chooseDifferentHandle\": \"Please choose a different handle.\",\n \"emailLabel\": \"Email\",\n \"handleHelper\": \"Lowercase letters, digits, hyphens, and underscores. 3–30 characters.\",\n \"handleLocked\": \"Your assistant's handle is locked because it's used as its email subdomain. To change it, <releaseLink>release the subdomain</releaseLink> first.\",\n \"loading\": \"Loading your profile…\",\n \"notAvailable\": \"Not available\",\n \"profileUpdated\": \"Profile updated.\",\n \"save\": \"Save\",\n \"saved\": \"Saved\",\n \"saving\": \"Saving…\",\n \"subtitle\": \"Manage your account details and preferences.\",\n \"title\": \"Profile\",\n \"userHandleIdleAutoGenerated\": \"Your handle was auto-generated at signup - pick one you like.\",\n \"userHandleLabel\": \"User handle\"\n },\n \"profileQuickAddProvider\": {\n \"created\": \"Profile \\\"{name}\\\" created\"\n },\n \"quickInputPage\": {\n \"logoAlt\": \"Cadet\",\n \"placeholder\": \"Ask Cadet anything...\",\n \"send\": \"Send message\"\n },\n \"removeFromDeviceDialog\": {\n \"confirm\": \"Remove\",\n \"messageOrigin\": \"This won't affect {assistantName} or sign you out there. It only forgets the entry on this device. Add it again anytime.\",\n \"messagePaired\": \"This won't affect {assistantName} on its host machine. It only forgets the pairing on this device. Pair again anytime with cadet connect import.\",\n \"messagePlatform\": \"This won't delete {assistantName}. It only removes it from this device. Logging in will make it available again.\",\n \"title\": \"Remove from this device?\",\n \"removeFailed\": \"Failed to remove device from assistant\"\n },\n \"resourcePressureBanner\": {\n \"body\": \"Your assistant is working hard and reaching its current resource limits. Upgrade to keep it running smoothly.\",\n \"bodyNoUpgrade\": \"Your assistant is working hard and reaching its current resource limits.\",\n \"dontShowAgain\": \"Don't show again\",\n \"title\": \"Your assistant needs more power\",\n \"titleNamed\": \"{assistantName} needs more power\",\n \"upgrade\": \"Upgrade\"\n },\n \"retireConfirmDialog\": {\n \"confirmLabel\": \"Retire\",\n \"message\": \"This will permanently retire this assistant and all of its data. You will need to go through the onboarding flow again to create a new one. This action cannot be undone.\",\n \"title\": \"Retire Assistant\"\n },\n \"rootHydrateFallback\": {\n \"loadingAria\": \"Loading\"\n },\n \"routePendingIndicator\": {\n \"loadingAria\": \"Loading\"\n },\n \"rootLayout\": {\n \"unnamedAssistant\": \"the assistant\"\n },\n \"routeErrorBoundary\": {\n \"chunkFailBody\": \"This section couldn't load. Likely a network blip or a stale version. Reload the page to try again.\",\n \"reload\": \"Reload\",\n \"chooseAssistant\": \"Choose an assistant\"\n },\n \"runtimeUpgradeBanner\": {\n \"confirmMessage\": \"Update to version {version}? The assistant will be briefly unavailable during the update.\",\n \"confirmTitle\": \"Update assistant runtime\",\n \"later\": \"Later\",\n \"title\": \"New assistant version available: {version}\",\n \"toastComplete\": \"Update complete. Your assistant is healthy.\",\n \"toastFailed\": \"Failed to trigger update. Please try again.\",\n \"update\": \"Update\"\n },\n \"sectionActionsButton\": {\n \"ariaLabel\": \"{name} actions\"\n },\n \"serviceFormControls\": {\n \"reset\": \"Reset\",\n \"save\": \"Save\"\n },\n \"shareConnectionLinkButton\": {\n \"label\": \"Share Connection Link\"\n },\n \"shareFeedbackModal\": {\n \"aboutDiagnosticsAria\": \"About diagnostics\",\n \"addFiles\": \"Add files\",\n \"adminOnlyHint\": \"Admin only - builds the diagnostics archive locally and downloads it instead of submitting feedback or notifying Slack.\",\n \"attachments\": \"Attachments\",\n \"bugTip\": \"Tip: Get faster support by posting in our <discordLink>Discord community</discordLink>\",\n \"cancel\": \"Cancel\",\n \"category\": \"Category\",\n \"closeAria\": \"Close\",\n \"diagnosticsTooltip\": \"Diagnostics include browser context, assistant logs, and timestamps - never passwords or credentials.\",\n \"downloadDiagnostics\": \"Download diagnostics directly\",\n \"downloadDiagnosticsAria\": \"Download diagnostics directly\",\n \"downloadDiagnosticsButton\": \"Download diagnostics\",\n \"dropFiles\": \"Drop files to attach…\",\n \"email\": \"Email\",\n \"featureTip\": \"Tip: Vote on features on our <roadmapLink>public roadmap</roadmapLink>\",\n \"includeConversation\": \"Include the most recent conversation\",\n \"includeConversationAria\": \"Include the most recent conversation\",\n \"includeDiagnostics\": \"Include diagnostics\",\n \"includeDiagnosticsAria\": \"Include browser diagnostics\",\n \"messageLabelBug\": \"What went wrong?\",\n \"messageLabelFeature\": \"Describe your idea\",\n \"messageLabelOther\": \"What's on your mind?\",\n \"messagePlaceholderBug\": \"What did you expect to happen, and what happened instead?\",\n \"messagePlaceholderFeature\": \"What problem would this solve for you?\",\n \"messagePlaceholderOther\": \"Share your thoughts...\",\n \"preparingDiagnostics\": \"Preparing diagnostics…\",\n \"reasonBugReport\": \"Bug Report\",\n \"reasonFeatureRequest\": \"Feature Request\",\n \"reasonOther\": \"Other\",\n \"removeAttachmentAria\": \"Remove {name}\",\n \"sendingFeedback\": \"Sending feedback…\",\n \"submit\": \"Submit\",\n \"timeRange\": \"Time range\",\n \"timeRangeAllTime\": \"All time\",\n \"timeRangeAria\": \"Diagnostics time range\",\n \"timeRangePast24Hours\": \"Past 24 hours\",\n \"timeRangePastHour\": \"Past hour\",\n \"title\": \"Share Feedback\"\n },\n \"shareFeedbackModalFallback\": {\n \"loadingAria\": \"Loading the feedback form\"\n },\n \"shareFeedbackModalLoadError\": {\n \"close\": \"Close\",\n \"message\": \"Couldn't load the feedback form.\",\n \"retry\": \"Try again\"\n },\n \"sideListDrawer\": {\n \"closeAria\": \"Close\",\n \"closeSidebarAria\": \"Close sidebar\",\n \"openSidebarAria\": \"Open sidebar\"\n },\n \"sidebarShell\": {\n \"backFrom\": \"Back from {title}\",\n \"backToMenu\": \"Back to {title} menu\",\n \"navigationAria\": \"{title} navigation\"\n },\n \"sidebarTree\": {\n \"ariaLabel\": \"Sidebar navigation\"\n },\n \"skillLineageLink\": {\n \"label\": \"Learned from this conversation\"\n },\n \"skillRemovalDialog\": {\n \"message\": \"Remove \\\"{name}\\\" from this assistant?\",\n \"remove\": \"Remove\",\n \"title\": \"Remove skill\"\n },\n \"slackSetupCreateStep\": {\n \"approvalNotice\": \"If Slack shows “Request approval” instead of <strong>Install</strong>, a workspace admin needs to approve the app first.\",\n \"createdApp\": \"I created the app\",\n \"inSlack\": \"In Slack:\",\n \"stepManifest\": \"Under <strong>Or start your own way</strong>, pick <strong>From a manifest</strong>, then <strong>Continue</strong>\",\n \"stepPaste\": \"Choose your workspace and paste the manifest\",\n \"stepReview\": \"Review the permissions, then click <strong>Create and Install</strong>\"\n },\n \"slackSetupNameStep\": {\n \"appName\": \"App Name\",\n \"appNamePlaceholder\": \"My Assistant\",\n \"copied\": \"Copied!\",\n \"copyManifest\": \"Copy manifest\",\n \"description\": \"Description (optional)\",\n \"descriptionHelper\": \"Shown on the app's Slack profile.\",\n \"descriptionPlaceholder\": \"What this assistant helps with\",\n \"intro\": \"Name your Slack app and copy its manifest. Every permission and setting comes pre-configured.\",\n \"next\": \"Next\"\n },\n \"slackSetupOpenStep\": {\n \"body\": \"Open Slack in a new tab to create the app, then come back here for the steps to follow.\",\n \"copied\": \"Copied!\",\n \"copyManifest\": \"Copy manifest\",\n \"manifestCopiedNotice\": \"You copied this app's manifest here. If you have copied anything since, copy it again before you paste.\",\n \"manifestNotCopiedNotice\": \"You have not copied this app's manifest yet. Slack's create-app modal has no other way to get it, so copy it before you paste.\",\n \"next\": \"Next\",\n \"openSlack\": \"Open Slack\"\n },\n \"slackSetupTokensStep\": {\n \"appTokenLabel\": \"App Token\",\n \"botTokenLabel\": \"Bot Token\",\n \"connectSlack\": \"Connect Slack\",\n \"connecting\": \"Connecting…\",\n \"credentialsSaved\": \"Credentials saved\",\n \"instructions\": \"On Slack's confirmation screen, expand <credentials>Your app credentials</credentials> and copy both tokens.\",\n \"skipNotice\": \"That screen also offers a command-line walkthrough and a <download>Download app files</download> button. Skip both. They set up a separate local app, and this assistant needs only the two tokens.\",\n \"savedBody\": \"Both tokens are stored. The Slack side is done.\"\n },\n \"slackSetupWizard\": {\n \"channelLabel\": \"Slack\",\n \"copyError\": \"Could not copy the manifest. Copy it again before continuing.\",\n \"stepConnect\": \"Connect\",\n \"stepCreate\": \"Create\",\n \"stepName\": \"Name\",\n \"stepOpen\": \"Open\"\n },\n \"stackedBarTooltip\": {\n \"total\": \"Total: {value}\"\n },\n \"startupFailure\": {\n \"reloadApp\": \"Reload app\"\n },\n \"statusBanner\": {\n \"reconnecting\": \"Reconnecting to your assistant…\",\n \"dismiss\": \"Dismiss\",\n \"goToDoctor\": \"Go to Doctor\",\n \"resumeAssistant\": \"Resume Assistant\",\n \"retryNow\": \"Retry now\",\n \"wakeUp\": \"Wake up\"\n },\n \"sttLanguagePicker\": {\n \"allLanguages\": \"All languages\",\n \"featured\": \"Featured\",\n \"languagesAriaLabel\": \"Languages\",\n \"noMatch\": \"No languages match.\",\n \"searchAriaLabel\": \"Search languages\",\n \"searchPlaceholder\": \"Search languages\",\n \"suggested\": \"Suggested\"\n },\n \"sttLanguagePickerModal\": {\n \"description\": \"Applies from your next spoken turn.\"\n },\n \"sttProviderForm\": {\n \"apiKeyLabel\": \"API Key\",\n \"apiKeyPlaceholderReplace\": \"•••••••• (Enter a new key to replace)\",\n \"providerAriaLabel\": \"STT provider\",\n \"providerLabel\": \"Provider\",\n \"saveFailed\": \"Failed to save speech-to-text settings\",\n \"saveSuccess\": \"Speech-to-text settings saved\",\n \"spokenLanguage\": \"Spoken language\",\n \"spokenLanguageApplies\": \"Applies from your next spoken turn.\",\n \"cadetTranscription\": \"Transcription runs through your Cadet account.\",\n \"windowsNativeDisplayName\": \"Windows Native Dictation\",\n \"windowsNativeSetupWarning\": \"Requires Basic speech recognition for your Windows display language: open Settings > Time & language > Language & region, select the three dots next to the display language, choose Language options, then under Language features download Basic speech recognition.\",\n \"windowsNativeSubtitle\": \"Windows on-device speech recognition, running locally through the Windows helper. Works offline and needs no API key.\"\n },\n \"subagentAvatarChip\": {\n \"ariaLabel\": \"Subagent {subagentId}\"\n },\n \"systemPermissionsCard\": {\n \"accessibilityDescription\": \"Allows your assistant to click, type, and control apps on your behalf.\",\n \"accessibilityLabel\": \"Accessibility\",\n \"checking\": \"Checking permissions...\",\n \"dockIcon\": \"Dock icon\",\n \"microphoneDescription\": \"Allows your assistant to capture audio for voice input and recordings.\",\n \"microphoneLabel\": \"Microphone\",\n \"notificationBadgesDescription\": \"Allows your assistant to show unseen conversation counts on the {surface}.\",\n \"notificationBadgesLabel\": \"Notification Badges\",\n \"notificationsDescription\": \"Allows your assistant to send macOS alerts for approvals, messages, and task updates.\",\n \"notificationsLabel\": \"Notifications\",\n \"notificationsWindowsDescription\": \"Allows your assistant to show Windows notifications for approvals, messages, and task updates.\",\n \"screenDescription\": \"Allows your assistant to capture screen context during computer-use tasks.\",\n \"screenLabel\": \"Screen Recording\",\n \"speechRecognitionDescription\": \"Allows your assistant to transcribe your speech into text on-device.\",\n \"speechRecognitionLabel\": \"Speech Recognition\",\n \"speechRecognitionWindowsDescription\": \"Allows your assistant to transcribe your speech into text with Windows speech recognition.\",\n \"taskbarIcon\": \"taskbar icon\",\n \"title\": \"System Permissions\"\n },\n \"telegramSetupConnectStep\": {\n \"botTokenLabel\": \"Bot Token\",\n \"connectTelegram\": \"Connect Telegram\",\n \"instructions\": \"Paste the token from BotFather's reply. It is the whole line after <tokenLine>Use this token to access the HTTP API</tokenLine>.\",\n \"saving\": \"Saving…\",\n \"savedTitle\": \"Token saved\",\n \"savedBody\": \"Your bot token is stored. The Telegram side is done.\"\n },\n \"telegramSetupCreateStep\": {\n \"copied\": \"Copied!\",\n \"copyName\": \"Copy name\",\n \"displayNameHint\": \"For the display name, <strong>{suggestedName}</strong> keeps this bot matching your assistant. The username is separate and does not have to match.\",\n \"chatScopeNotice\": \"Private chats and groups are supported. In a group, the assistant replies when it is mentioned or when someone replies to it. Broadcast channels are not supported.\",\n \"inBotFather\": \"In BotFather:\",\n \"intro\": \"Telegram bots are created by messaging <strong>@BotFather</strong>. Open it, run through the prompts, then come back with the token it gives you.\",\n \"next\": \"Next\",\n \"openBotFather\": \"Open BotFather\",\n \"stepDisplayName\": \"Give it a display name, which is what people see in chat\",\n \"stepSendNewBot\": \"Send <strong>/newbot</strong>\",\n \"stepTokenReply\": \"BotFather replies with a token after <strong>Use this token to access the HTTP API</strong>\",\n \"stepUsername\": \"Give it a username, which must be unique and end in <strong>bot</strong>\"\n },\n \"telegramSetupWizard\": {\n \"channelLabel\": \"Telegram\",\n \"copyError\": \"Could not copy the name. Type it into BotFather instead.\",\n \"stepConnect\": \"Connect\",\n \"stepCreate\": \"Create bot\"\n },\n \"tenantHost\": {\n \"shopifyLabel\": \"Shop domain\",\n \"shopifyPlaceholder\": \"your-store.myshopify.com\"\n },\n \"terminalPanel\": {\n \"recoveryModeBanner\": \"Recovery Mode active: this session is connected to the debug terminal.\"\n },\n \"themeStagePage\": {\n \"accentFill\": \"Accent fill\",\n \"activeBorder\": \"Active border\",\n \"activeSurface\": \"Active surface\",\n \"assistantBubble\": \"A reply from the assistant, rendered full-width on the page surface.\",\n \"buttonDisabled\": \"Disabled\",\n \"buttonPrimary\": \"Primary\",\n \"buttonSecondary\": \"Secondary\",\n \"chatAssistant1\": \"Done. The summary is ready. Revenue grew steadily, the two flagged risks from last quarter are resolved, and I pulled the three charts worth showing into a separate page.\",\n \"chatAssistant2\": \"Scheduled for 9am. I'll include the charts and a one-paragraph version for anyone skimming on their phone.\",\n \"chatUser1\": \"Can you summarize the quarterly report before tomorrow's meeting?\",\n \"chatUser2\": \"Perfect. Send it to the team in the morning.\",\n \"composerPlaceholder\": \"Message your assistant\",\n \"faintText\": \"Faint text - the last legible step of the ramp.\",\n \"inputFilled\": \"Text someone has already typed into a field.\",\n \"inputPlaceholder\": \"A placeholder in an empty field\",\n \"newConversation\": \"New conversation\",\n \"overlaySurface\": \"Overlay surface\",\n \"primaryText\": \"Primary text - the main reading surface of the app.\",\n \"quietText\": \"Quiet text - metadata and timestamps.\",\n \"raisedCard\": \"Raised card\",\n \"raisedCardBody\": \"Elevated surfaces sit above panels and the page background.\",\n \"samplerTitle\": \"Theme sampler\",\n \"secondaryText\": \"Secondary text - supporting copy and descriptions.\",\n \"sectionAccent\": \"Accent\",\n \"sectionButtons\": \"Buttons\",\n \"sectionInputs\": \"Inputs\",\n \"sectionMessages\": \"Messages\",\n \"sectionSurfaces\": \"Surfaces and borders\",\n \"sectionText\": \"Text\",\n \"send\": \"Send\",\n \"subtleDivider\": \"Subtle divider above this line.\",\n \"tertiaryText\": \"Tertiary text - captions, labels, and placeholders.\",\n \"userBubble\": \"A message from the user, in its bubble.\"\n },\n \"themeToggle\": {\n \"dark\": \"Dark\",\n \"label\": \"Theme\",\n \"light\": \"Light\",\n \"system\": \"System\"\n },\n \"ttsProviderForm\": {\n \"apiKey\": \"API Key\",\n \"apiKeyRequired\": \"Save an API key for this provider before testing.\",\n \"chooseFromCatalog\": \"Choose from catalog\",\n \"customVoiceIdAriaLabel\": \"Custom voice ID\",\n \"noCloudVoices\": \"No cloud voices are currently available.\",\n \"provider\": \"Provider\",\n \"providerAriaLabel\": \"TTS provider\",\n \"saveFailed\": \"Failed to save text-to-speech settings\",\n \"saved\": \"Text-to-speech settings saved\",\n \"test\": \"Test\",\n \"testing\": \"Testing…\",\n \"voice\": \"Voice\",\n \"voiceId\": \"Voice ID\",\n \"voiceIdPlaceholder\": \"Enter a voice ID\"\n },\n \"updateToast\": {\n \"available\": \"Update available. Starting download…\",\n \"closeAriaLabel\": \"Close\",\n \"downloading\": \"Downloading update…\",\n \"ready\": \"Cadet {version} is ready.\",\n \"restartToInstall\": \"Restart to install\",\n \"versionFallback\": \"update\"\n },\n \"useAppDelete\": {\n \"deleteFailed\": \"Failed to delete app\"\n },\n \"useAppDeployment\": {\n \"copyFailed\": \"Couldn't copy the link. Open it at {url}\",\n \"linkCopied\": \"Link copied\",\n \"open\": \"Open\"\n },\n \"useAssistantChannels\": {\n \"setupPrompt\": {\n \"slack\": \"I want to reach you on Slack. Let's set it up.\",\n \"telegram\": \"I want to reach you on Telegram. Let's set it up.\",\n \"discord\": \"I want to reach you on Discord. Let's set it up.\",\n \"email\": \"I want to email you. Let's set up your email address.\",\n \"phone\": \"I want to be able to call you. Let's set you up with a phone number.\"\n },\n \"finishPrompt\": {\n \"slack\": \"Slack is set up but not working. Can you finish it off?\",\n \"telegram\": \"Telegram is set up but not working. Can you finish it off?\",\n \"discord\": \"Discord is set up but not working. Can you finish it off?\",\n \"email\": \"My email address is set up but not working. Can you finish it off?\",\n \"phone\": \"My phone number is set up but not working. Can you finish it off?\"\n }\n },\n \"useBookmarks\": {\n \"addFailed\": \"Failed to bookmark message.\",\n \"removeFailed\": \"Failed to remove bookmark.\"\n },\n \"useConnectClaude\": {\n \"exchangeFailed\": \"Check the pasted key and try again.\",\n \"failed\": \"Connecting Claude failed. Please try again.\",\n \"notStarted\": \"Start the Connect Claude flow first.\",\n \"pasteEmpty\": \"Paste the code shown on the Claude page.\",\n \"popupBlocked\": \"Your browser blocked the sign-in tab. Allow pop-ups for this site, then click Connect again.\",\n \"startFailed\": \"Couldn't start Connect Claude. Please try again.\",\n \"timedOut\": \"Timed out waiting for Claude to connect. Please try again.\"\n },\n \"useOauthConnect\": {\n \"accountConnected\": \"{name} account connected.\",\n \"authorizationError\": \"{name} error: {code}\",\n \"authorizationFailed\": \"{name} authorization failed\",\n \"popupBlocked\": \"Popup blocked. Please enable popups and try again.\",\n \"startFailed\": \"Failed to start {name} authorization.\",\n \"startFailedWithReason\": \"Couldn't start {name} authorization: {reason}\"\n },\n \"useOpenUrlDirectives\": {\n \"blocked\": \"Your browser blocked a page the assistant tried to open.\",\n \"openPage\": \"Open page\"\n },\n \"useVoiceSamplePreview\": {\n \"playFailed\": \"Could not play the voice sample.\"\n },\n \"useWorkspaceTheme\": {\n \"updated\": \"Theme updated\"\n },\n \"vercelTokenDialog\": {\n \"body\": \"Enter your Vercel API token to deploy apps as static pages.\",\n \"cancel\": \"Cancel\",\n \"createToken\": \"Create a token on Vercel →\",\n \"save\": \"Save\",\n \"saveFailed\": \"Failed to save Vercel token.\",\n \"saving\": \"Saving…\",\n \"title\": \"Connect Vercel\",\n \"tokenLabel\": \"API Token\",\n \"tokenPlaceholder\": \"Vercel API token\"\n },\n \"voiceList\": {\n \"assistantVoiceAriaLabel\": \"Assistant voice\",\n \"defaultSuffix\": \"(default)\",\n \"previewVoice\": \"Preview {description}\",\n \"providerAriaLabel\": \"Voice provider\",\n \"stopPreview\": \"Stop preview\"\n },\n \"voicePickerField\": {\n \"ariaLabel\": \"Voice\",\n \"selectVoice\": \"Select a voice\"\n },\n \"voicePickerModal\": {\n \"done\": \"Done\",\n \"title\": \"Voices\"\n },\n \"voiceProvidersNote\": {\n \"body\": \"Speech providers, transcription, and API keys live in <modelsLink>Models & Services</modelsLink>.\"\n },\n \"voiceTranscriptToggles\": {\n \"recommendedOff\": \"Recommended off\",\n \"userTranscriptLabel\": \"Show the words you say\",\n \"userTranscriptDescription\": \"Live transcription while you speak.\",\n \"assistantTranscriptLabel\": \"Show the words the assistant says\",\n \"assistantTranscriptDescription\": \"Text alongside the spoken response.\"\n },\n \"windowsMenuBar\": {\n \"developer\": \"Developer\",\n \"file\": \"File\",\n \"help\": \"Help\",\n \"view\": \"View\"\n },\n \"domainVerificationChip\": {\n \"checkingDomain\": \"Checking domain…\",\n \"domainVerified\": \"Domain verified\",\n \"failedTitle\": \"Domain verification failed. DNS records may not have propagated correctly. You could try releasing and re-registering the domain.\",\n \"unknownStatus\": \"Unknown status\",\n \"unknownStatusTitle\": \"Unable to retrieve domain verification status.\",\n \"verificationFailed\": \"Verification failed\",\n \"verifiedTitle\": \"DNS records have been verified. Your domain is ready to send and receive email.\",\n \"verifyingDomain\": \"Verifying domain…\",\n \"verifyingTitle\": \"DNS records have been provisioned. Waiting for the email provider to verify them - this usually takes a few minutes.\",\n \"setupRequired\": \"Domain setup required\",\n \"setupRequiredTitle\": \"This domain has not been provisioned with the email provider. It cannot send or receive email until setup is complete.\"\n },\n \"managedServicesBanner\": {\n \"body\": \"Managed services are metered and deducted from your Cadet account balance. <link>View pricing</link>\"\n },\n \"serviceCard\": {\n \"managedLabel\": \"Managed\",\n \"modeToggleAriaLabel\": \"Service mode\",\n \"yourOwnLabel\": \"Your Own\"\n },\n \"channelAvatarDownload\": {\n \"previewAlt\": \"Your assistant's avatar\",\n \"download\": \"Download avatar\",\n \"prompt\": {\n \"slack\": \"Download your assistant's avatar to upload as the app icon.\",\n \"discord\": \"Download your assistant's avatar to upload as the bot icon.\",\n \"telegram\": \"Download your assistant's avatar, then send it to BotFather with /setuserpic.\"\n }\n },\n \"thresholdPresets\": {\n \"strict\": {\n \"label\": \"Strict\",\n \"description\": \"Always ask before acting. No actions are auto-approved.\"\n },\n \"conservative\": {\n \"label\": \"Conservative\",\n \"description\": \"Auto-approve low-risk actions, like web searches and reading and writing files in its own workspace.\"\n },\n \"relaxed\": {\n \"label\": \"Relaxed\",\n \"description\": \"Auto-approve low and medium-risk actions, like changing files outside its own workspace.\"\n },\n \"fullAccess\": {\n \"label\": \"Full access\",\n \"description\": \"Auto-approve all actions, including high-risk and unrecognized commands. Your assistant will never ask for permission.\"\n }\n },\n \"scheduleFormatters\": {\n \"everyHours\": \"Every {count, plural, one {# hr} other {# hrs}}\",\n \"everyMinutes\": \"Every {count, plural, one {# min} other {# mins}}\",\n \"retrospectiveSubtitle\": \"After conversation activity\"\n },\n \"assistantHandleModal\": {\n \"title\": \"Assistant handle\",\n \"description\": \"Your assistant's public name. It is also the name its email address is built on.\",\n \"helper\": \"Lowercase letters, numbers, hyphens, underscores.\"\n },\n \"detailShell\": {\n \"close\": \"Close\",\n \"closePanel\": \"Close panel\",\n \"loading\": \"Loading…\"\n },\n \"permissionGuide\": {\n \"back\": \"Back to the tour\",\n \"dragInstruction\": \"Drag {app} into the list to allow {permission}.\",\n \"dragApp\": \"Drag {app} to System Settings, or press to show in Finder\",\n \"dragError\": \"Drag unavailable. Try dragging from Finder.\",\n \"showInFinder\": \"Show in Finder\",\n \"inputLabel\": \"Input Monitoring\"\n },\n \"pairDeviceUrl\": {\n \"loopback\": \"This is a loopback address other devices can't reach. Enter the assistant's public https URL.\",\n \"nonHttps\": \"The URL must use https so your devices can connect securely.\",\n \"privateAddress\": \"This address points at a private network address. Enter the assistant's public https URL so your devices can reach it.\",\n \"serviceFallbackName\": \"the tunnel provider\",\n \"serviceWebsite\": \"This is {service}'s website, not your assistant's address. Start a tunnel on the host to get one; `cadet tunnel --help` lists the providers.\",\n \"unparseable\": \"Enter a valid URL, e.g. https://your-assistant.ts.net.\"\n }\n}\n","{\n \"consentControls\": {\n \"whatsChanged\": \"What's changed\",\n \"agreements\": \"Agreements\",\n \"agreeTo\": \"I agree to the <0>{policy}</0>\"\n },\n \"actions\": {\n \"continue\": \"Continue\",\n \"logOut\": \"Log out\"\n }\n}\n","{\n \"actions\": {\n \"continue\": \"Continue\",\n \"back\": \"Back\",\n \"forward\": \"Forward\",\n \"cancel\": \"Cancel\",\n \"add\": \"Add\",\n \"adding\": \"Adding…\",\n \"tryAgain\": \"Try again\",\n \"remove\": \"Remove {value}\",\n \"downloadMacOSApp\": \"Download the macOS app\",\n \"downloadWindowsApp\": \"Download the Windows app\",\n \"claim\": \"Claim\"\n },\n \"onboardingAutocomplete\": {\n \"addOption\": \"Add “{value}”\",\n \"enterHint\": \"↵ Enter\",\n \"freeTextHint\": \"Type anything and press ↵ to add your own\"\n },\n \"stepIndicator\": {\n \"ariaLabel\": \"Step {current} of {total}\"\n },\n \"introductionScreen\": {\n \"greetingNamed\": \"Hey, {name}!\",\n \"greeting\": \"Hey!\",\n \"introNamed\": \"I’m {name}, your new AI assistant.\",\n \"intro\": \"I’m your new AI assistant.\"\n },\n \"pitchStep\": {\n \"setupLine\": \"You’ve used AI that just answers questions.\",\n \"helpLine\": \"The more I help,\",\n \"punchLine\": \"I’m different.\",\n \"betterLine\": \"the better I get,\",\n \"lessLine\": \"and the less you have to do.\"\n },\n \"createPersonalityStep\": {\n \"title\": \"Create my personality\",\n \"lockedBody\": \"Personality locked, chat with your assistant to make any more updates\",\n \"axisAriaLabel\": \"{left} to {right}\",\n \"axes\": {\n \"companionCoworker\": {\n \"left\": \"Companion\",\n \"right\": \"Coworker\"\n },\n \"genzBoomer\": {\n \"left\": \"Gen Z\",\n \"right\": \"Baby Boomer\"\n },\n \"executeCollaborate\": {\n \"left\": \"Independent\",\n \"right\": \"Collaborative\"\n },\n \"playfulSerious\": {\n \"left\": \"Playful\",\n \"right\": \"Serious\"\n },\n \"politeUnfiltered\": {\n \"left\": \"Polite\",\n \"right\": \"Unfiltered\"\n }\n }\n },\n \"giveMeAFaceScreen\": {\n \"title\": \"Give me a face and a name\",\n \"previousCharacter\": \"Previous character\",\n \"nextCharacter\": \"Next character\",\n \"namePlaceholder\": \"Name your assistant\",\n \"nameAriaLabel\": \"Assistant name\",\n \"editName\": \"Edit name\",\n \"shuffle\": \"Shuffle name and appearance\",\n \"hearVoice\": \"Hear my voice\",\n \"stopVoice\": \"Stop the voice sample\"\n },\n \"integrationStep\": {\n \"title\": \"Here's some initial usage<br></br> to get started.\"\n },\n \"researchOnboardingScreen\": {\n \"title\": \"Let's start with you.\",\n \"firstNameLabel\": \"What should I call you?\",\n \"firstNamePlaceholder\": \"Your name\",\n \"skip\": \"Skip onboarding\"\n },\n \"existingAssistantStep\": {\n \"titleNamed\": \"{name} is already up and running\",\n \"title\": \"Your assistant is already up and running\",\n \"bodyNamed\": \"You two have history: a personality, memories, and past conversations. Running setup again would overwrite who {name} is now.\",\n \"body\": \"You two have history: a personality, memories, and past conversations. Running setup again would overwrite who your assistant is now.\",\n \"keepNamed\": \"Keep {name} and start chatting\",\n \"keep\": \"Keep your assistant and start chatting\",\n \"redoNamed\": \"Start over and rebuild {name}'s personality\",\n \"redo\": \"Start over and rebuild its personality\"\n },\n \"lookingYouUpStep\": {\n \"searching\": \"Searching the web to get to know you…\",\n \"readingProfiles\": \"Reading public profiles…\",\n \"skimming\": \"Skimming the highlights…\",\n \"connectingDots\": \"Connecting the dots…\",\n \"piecing\": \"Piecing it together…\",\n \"almostThere\": \"Almost there…\"\n },\n \"finishingUpStep\": {\n \"updatingPersonality\": \"Updating my personality…\",\n \"findingVoice\": \"Finding my voice…\",\n \"gettingIntoCharacter\": \"Getting into character…\",\n \"almostThere\": \"Almost there…\"\n },\n \"researchResultsStep\": {\n \"title\": \"This is what I found about you\",\n \"bodyLoadingWithClaims\": \"Still checking the rest. You can review these as they come in.\",\n \"bodyReadyWithClaims\": \"I searched the web. Feel free to remove anything that isn’t true.\",\n \"bodyLoadingEmpty\": \"Still putting this together…\",\n \"removeClaim\": \"Remove \\\"{claim}\\\"\",\n \"notMe\": \"This is not me\",\n \"stillSearching\": \"Still searching…\"\n },\n \"suggestionsStep\": {\n \"title\": \"Here’s what we could do first\",\n \"pickOne\": \"Pick one to jump in, or start your own thing. <skip>Skip to Chat</skip>\",\n \"loading\": \"Putting together a few ideas…\",\n \"alreadySetUp\": \"Already set up the <plugins></plugins> {count, plural, one {plugin} other {plugins}} to help with your work\",\n \"listAnd\": \" and \",\n \"listCommaAnd\": \", and \",\n \"listComma\": \", \",\n \"fallbacks\": {\n \"brief\": {\n \"suggestion\": \"I'll pull together a quick brief on what's new in your field\",\n \"prompt\": \"Give me a quick brief on what's new in my field right now.\"\n },\n \"weekly\": {\n \"suggestion\": \"I'll send a weekly briefing on news in your space\",\n \"prompt\": \"Set up a weekly briefing on news in my space.\"\n },\n \"week\": {\n \"suggestion\": \"I'll help you get on top of your week\",\n \"prompt\": \"Help me get on top of my week.\"\n },\n \"draft\": {\n \"suggestion\": \"I'll draft something from a few rough notes\",\n \"prompt\": \"Draft something from a few rough notes I'll give you.\"\n }\n }\n },\n \"authErrors\": {\n \"genericFailure\": \"Something went wrong. Please try again.\",\n \"signupClosed\": \"Sorry, Cadet is not accepting new signups at this time. Feel free to try again later.\",\n \"providerSignup\": \"No Cadet account is linked to that login yet. Sign up first, then sign in.\",\n \"loginIncomplete\": \"Your account needs another step to finish signing in. Please sign in on the web, then try again.\",\n \"desktopUpdateRequired\": \"This version of the Cadet desktop app can't sign in. Update the app, then try again.\"\n },\n \"hatchingScreen\": {\n \"genericFailure\": \"Something went wrong\",\n \"localFallbackPitch\": \"Get started today with a local assistant\"\n }\n}\n","/** App-owned translation catalogs: account screens and shared app copy. */\nexport const NAMESPACES = [\n \"common\",\n \"account\",\n \"consent\",\n \"onboarding\",\n \"doctor\",\n] as const;\nexport type Namespace = (typeof NAMESPACES)[number];\nexport const DEFAULT_NAMESPACE = \"common\";\n","/**\n * The set of locales the app ships, plus the negotiation that maps an ordered\n * list of user-preferred BCP 47 tags onto one of them.\n *\n * Negotiation is deliberately simple and explicit rather than delegating to\n * `Intl.LocaleMatcher` (still a stage-1 proposal) or i18next's own detector:\n * we match the full tag first, then fall back to the primary language subtag,\n * so `es-419` and `es-MX` both resolve to `es` without needing an entry each.\n *\n * References:\n * - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language\n * - https://www.rfc-editor.org/rfc/rfc5646 (BCP 47 tag structure)\n */\n\n/** Locale used when nothing else matches. Also the source language for copy. */\nexport const DEFAULT_LOCALE = \"en\";\n\n/**\n * Locales with a translation catalog under `src/i18n/locales/`.\n *\n * Adding a locale means: add the tag here, add the catalog directory, and add\n * the loader entry in `catalogs.ts`. All three are checked at compile time:\n * `catalogs.ts` types its registry as `Record<SupportedLocale, …>`, so a\n * missing loader is a type error rather than a runtime 404.\n */\nexport const SUPPORTED_LOCALES = [\"en\", \"es\", \"ru\", \"zh\", \"zh-TW\"] as const;\n\nexport type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];\n\n/**\n * Endonyms: each locale's name in its own language, which is what a language\n * picker should show. A user who has the UI in a language they can't read\n * needs to find their own language by sight, not in translation.\n */\nexport const LOCALE_LABELS: Record<SupportedLocale, string> = {\n en: \"English\",\n es: \"Español\",\n ru: \"Русский\",\n zh: \"简体中文\",\n \"zh-TW\": \"繁體中文(台灣)\",\n};\n\nexport function isSupportedLocale(value: unknown): value is SupportedLocale {\n return (\n typeof value === \"string\" &&\n (SUPPORTED_LOCALES as readonly string[]).includes(value)\n );\n}\n\n/**\n * Pick the best supported locale for an ordered list of preferred tags.\n *\n * Each tag is tried at full length and then truncated to its primary subtag\n * before moving to the next preference. A user who prefers `es-MX` over `en`\n * gets `es`, not `en`. Returns {@link DEFAULT_LOCALE} when nothing matches.\n */\nexport function negotiateLocale(preferred: readonly string[]): SupportedLocale {\n for (const tag of preferred) {\n const normalized = tag.trim();\n if (normalized === \"\") {\n continue;\n }\n const matched = (SUPPORTED_LOCALES as readonly string[]).find(\n (l) => l.toLowerCase() === normalized.toLowerCase(),\n );\n if (matched) {\n return matched as SupportedLocale;\n }\n const lower = normalized.toLowerCase();\n if (\n lower === \"zh-hant\" ||\n lower.startsWith(\"zh-hant-\") ||\n lower === \"zh-hk\" ||\n lower === \"zh-mo\"\n ) {\n if (isSupportedLocale(\"zh-TW\")) {\n return \"zh-TW\";\n }\n }\n const base = normalized.split(\"-\")[0].toLowerCase();\n const baseMatched = (SUPPORTED_LOCALES as readonly string[]).find(\n (l) => l.toLowerCase() === base,\n );\n if (baseMatched) {\n return baseMatched as SupportedLocale;\n }\n }\n return DEFAULT_LOCALE;\n}\n","/**\n * Where translation catalogs live, and how they reach the running app.\n *\n * Catalogs are source files under `src/i18n/locales/<locale>/<namespace>.json`,\n * not runtime-fetched assets.\n *\n * English is imported statically, so it is part of the entry's static graph and\n * is readable with no network round trip at all. Every other locale is pulled\n * in with a dynamic `import()`, so Vite emits chunks per locale and the app\n * downloads only the locale it renders. The asymmetry is deliberate: the\n * fallback catalog is what the UI falls back *to*, so it must be the one thing\n * that cannot fail to load.\n *\n * Non-default locales are still bundled output sitting next to the JS, which is\n * why this is not `i18next-http-backend` (the usual default, which GETs\n * `/locales/{lng}/{ns}.json` from `public/`):\n *\n * - Capacitor serves the bundle from `capacitor://localhost` and the app is\n * expected to work offline. An HTTP fetch for UI copy makes first paint\n * depend on the network and fails outright on a cold offline launch.\n * - Electron loads the renderer from a local file/custom scheme where the same\n * fetch is at best a different origin to get right, at worst blocked.\n * - Bundled chunks are cache-busted by the build hash. A catalog in `public/`\n * is served unhashed and can be held by a stale HTTP cache after a deploy,\n * so users see one release's copy against another release's UI.\n *\n * The registry below is written out by hand rather than generated with\n * `import.meta.glob`. Two reasons: it is typed as a total map over locale and\n * namespace, so adding either without adding its catalog is a compile error\n * instead of a runtime miss; and `import.meta.glob` is a Vite-only transform\n * absent under Bun's test runner, which would force every test touching i18n\n * through a mock.\n *\n * Reference: https://vite.dev/guide/features#dynamic-import\n */\nimport enAccount from \"@app/i18n/locales/en/account.json\";\nimport enDoctor from \"@app/i18n/locales/en/doctor.json\";\nimport enCommon from \"@app/i18n/locales/en/common.json\";\nimport enConsent from \"@app/i18n/locales/en/consent.json\";\nimport enOnboarding from \"@app/i18n/locales/en/onboarding.json\";\nimport { NAMESPACES, type Namespace } from \"@app/i18n/namespaces\";\nimport {\n DEFAULT_LOCALE,\n type SupportedLocale,\n} from \"@app/i18n/supported-locales\";\n\n/**\n * A parsed catalog. Values are ICU MessageFormat strings; nesting mirrors the\n * dotted key path used at the call site (`t(\"aboutPage.version\")`).\n */\nexport type Catalog = Record<string, unknown>;\n\n/** Every namespace of one locale. */\nexport type LocaleCatalogs = Record<Namespace, Catalog>;\n\ntype CatalogLoader = () => Promise<{ default: Catalog }>;\n\n/**\n * The English catalogs, available synchronously. Both the boot path and the\n * test preload seed i18next with these, so a missing or unreachable chunk for\n * any other locale degrades to readable English rather than raw key paths.\n */\nexport const FALLBACK_CATALOGS: LocaleCatalogs = {\n common: enCommon,\n account: enAccount,\n consent: enConsent,\n onboarding: enOnboarding,\n doctor: enDoctor,\n};\n\n/** Loaders for the locales that are not bundled into the entry chunk. */\nconst CATALOG_LOADERS: Record<\n Exclude<SupportedLocale, typeof DEFAULT_LOCALE>,\n Record<Namespace, CatalogLoader>\n> = {\n es: {\n common: () => import(\"@app/i18n/locales/es/common.json\"),\n account: () => import(\"@app/i18n/locales/es/account.json\"),\n consent: () => import(\"@app/i18n/locales/es/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/es/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/es/doctor.json\"),\n },\n ru: {\n common: () => import(\"@app/i18n/locales/ru/common.json\"),\n account: () => import(\"@app/i18n/locales/ru/account.json\"),\n consent: () => import(\"@app/i18n/locales/ru/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/ru/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/ru/doctor.json\"),\n },\n zh: {\n common: () => import(\"@app/i18n/locales/zh/common.json\"),\n account: () => import(\"@app/i18n/locales/zh/account.json\"),\n consent: () => import(\"@app/i18n/locales/zh/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/zh/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/zh/doctor.json\"),\n },\n \"zh-TW\": {\n common: () => import(\"@app/i18n/locales/zh-TW/common.json\"),\n account: () => import(\"@app/i18n/locales/zh-TW/account.json\"),\n consent: () => import(\"@app/i18n/locales/zh-TW/consent.json\"),\n onboarding: () => import(\"@app/i18n/locales/zh-TW/onboarding.json\"),\n doctor: () => import(\"@app/i18n/locales/zh-TW/doctor.json\"),\n },\n};\n\n/**\n * Load every namespace of one locale.\n *\n * Rejects when any non-default locale's chunk cannot be fetched (offline, or an\n * entry bundle outliving the assets a deploy removed). Callers on the boot path\n * treat that as \"stay on {@link FALLBACK_CATALOGS}\". Namespaces load together\n * rather than on demand because they are small and first paint can draw from\n * any of them; split this if a namespace ever grows large enough to matter.\n */\nexport async function loadCatalogs(\n locale: SupportedLocale,\n): Promise<LocaleCatalogs> {\n if (locale === DEFAULT_LOCALE) {\n return FALLBACK_CATALOGS;\n }\n\n const loaders = CATALOG_LOADERS[locale];\n const loaded = await Promise.all(\n NAMESPACES.map(async (namespace) => {\n const module = await loaders[namespace]();\n return [namespace, module.default] as const;\n }),\n );\n return Object.fromEntries(loaded) as LocaleCatalogs;\n}\n\n/**\n * Every locale this module can produce catalogs for. Exported for the coverage\n * test that asserts this stays in lockstep with `SUPPORTED_LOCALES`.\n */\nexport function loadableLocales(): SupportedLocale[] {\n return [\n DEFAULT_LOCALE,\n ...(Object.keys(CATALOG_LOADERS) as SupportedLocale[]),\n ];\n}\n","import { createInstance, type i18n } from \"i18next\";\n\n// Separate resources and language state from the assistant UI. Do not register\n// initReactI18next here: it would replace react-i18next's global web instance.\nexport const i18next: i18n = createInstance();\n","/**\n * The i18next `init()` options, in one place.\n *\n * Production and the app test preload use the same options for the app-owned\n * instance.\n *\n * Kept free of any dependency on locale *resolution* (`system-locale.ts`,\n * `device-settings.ts`) so importing it from the preload does not pull those\n * modules into the registry ahead of the tests that mock them.\n */\nimport type { InitOptions } from \"i18next\";\n\nimport type { LocaleCatalogs } from \"@app/i18n/catalogs\";\nimport { DEFAULT_NAMESPACE, NAMESPACES } from \"@app/i18n/namespaces\";\nimport { DEFAULT_LOCALE } from \"@app/i18n/supported-locales\";\n\nexport function i18nextInitOptions(\n locale: string,\n resources: Record<string, LocaleCatalogs>,\n): InitOptions {\n return {\n lng: locale,\n fallbackLng: DEFAULT_LOCALE,\n ns: [...NAMESPACES],\n defaultNS: DEFAULT_NAMESPACE,\n resources,\n // React escapes interpolated values on render; letting i18next escape them\n // too double-encodes apostrophes and ampersands in user data.\n interpolation: { escapeValue: false },\n returnNull: false,\n };\n}\n","/**\n * i18next configuration and lifecycle for the account app.\n *\n * Three decisions worth knowing before changing anything here:\n *\n * **ICU MessageFormat is the on-disk format.** i18next's native plural syntax\n * (`key_one` / `key_other` sibling keys) is i18next-specific; ICU\n * MessageFormat is what Crowdin, Lokalise, Phrase, Tolgee, Android and iOS all\n * read. Authoring in ICU means the catalogs outlive this library choice and\n * can be handed to any TMS as-is. `i18next-icu` swaps i18next's formatter for\n * `intl-messageformat`, which resolves plural categories through the cloud\n * `Intl.PluralRules`, so a locale with six plural forms gets six without the\n * call site knowing anything about it.\n *\n * **Initialization is awaited before first render.** `initI18n()` runs in\n * `main.tsx` ahead of `createRoot`, so components never observe an\n * uninitialized i18next and no raw key path is painted. English costs nothing\n * to reach; any other locale costs one dynamic import of a small JSON chunk.\n *\n * **Locale resolution has a fixed precedence**, applied by\n * {@link resolveInitialLocale}:\n * 1. the explicit in-app preference (`device:locale`), if it is still a\n * supported locale (a user's stated choice outranks any host signal);\n * 2. the host's preferred languages (see `system-locale.ts`);\n * 3. `DEFAULT_LOCALE`.\n *\n * References:\n * - https://www.i18next.com/overview/configuration-options\n * - https://github.com/i18next/i18next-icu\n * - https://unicode-org.github.io/icu/userguide/format_parse/messages/\n */\nimport { i18next } from \"@app/i18n/instance\";\nimport ICU from \"i18next-icu\";\n\nimport {\n FALLBACK_CATALOGS,\n loadCatalogs,\n type LocaleCatalogs,\n} from \"@app/i18n/catalogs\";\nimport { i18nextInitOptions } from \"@app/i18n/config\";\nimport { NAMESPACES } from \"@app/i18n/namespaces\";\nimport { systemLocales } from \"@app/i18n/system-locale\";\nimport {\n DEFAULT_LOCALE,\n isSupportedLocale,\n negotiateLocale,\n type SupportedLocale,\n} from \"@app/i18n/supported-locales\";\nimport {\n readLocalePreference,\n writeLocalePreference,\n} from \"@app/i18n/locale-preference\";\n\n/**\n * The locale to boot with, resolved from the stored preference, then the\n * host, then the default. Pure apart from the storage read, and exported so\n * tests and a future language picker can ask without initializing i18next.\n */\nexport function resolveInitialLocale(): SupportedLocale {\n const stored = readLocalePreference();\n if (isSupportedLocale(stored)) {\n return stored;\n }\n return negotiateLocale(systemLocales());\n}\n\n/**\n * Reflect the active locale onto the document element.\n *\n * `lang` drives the UA's own locale-sensitive behavior: hyphenation, spell\n * check, the voice a screen reader picks, and font fallback for scripts the\n * primary family doesn't cover. It is not decorative: an unset or wrong `lang`\n * makes a screen reader read Spanish copy with English phonemes.\n *\n * `dir` is set from `Intl.Locale`'s text-info rather than a hand-kept RTL list\n * so adding Arabic or Hebrew to `SUPPORTED_LOCALES` needs no change here.\n *\n * References:\n * - https://www.w3.org/International/questions/qa-html-language-declarations\n * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n */\nfunction applyDocumentLocale(locale: SupportedLocale): void {\n if (typeof document === \"undefined\") {\n return;\n }\n document.documentElement.lang = locale;\n\n // `getTextInfo()` postdates the TS `ES2023` lib target, and engines that\n // predate the method rename still expose the earlier `textInfo` getter, so\n // both shapes are probed behind a cast. LTR is the safe assumption for every\n // locale currently shipped.\n type LocaleTextInfo = Intl.Locale & {\n getTextInfo?: () => { direction?: string };\n textInfo?: { direction?: string };\n };\n\n let direction: string | undefined;\n try {\n const resolved = new Intl.Locale(locale) as LocaleTextInfo;\n direction =\n resolved.getTextInfo?.().direction ?? resolved.textInfo?.direction;\n } catch {\n direction = undefined;\n }\n document.documentElement.dir = direction === \"rtl\" ? \"rtl\" : \"ltr\";\n}\n\n/** Load a locale's catalogs into i18next unless they are already registered. */\nasync function ensureCatalogs(locale: SupportedLocale): Promise<void> {\n const missing = NAMESPACES.filter(\n (namespace) => !i18next.hasResourceBundle(locale, namespace),\n );\n if (missing.length === 0) {\n return;\n }\n const catalogs = await loadCatalogs(locale);\n for (const namespace of missing) {\n i18next.addResourceBundle(\n locale,\n namespace,\n catalogs[namespace],\n true,\n true,\n );\n }\n}\n\n/**\n * Report a catalog that could not be loaded.\n *\n * A chunk fetch fails when the device is offline, or when a still-cached entry\n * bundle asks for an asset a later deploy removed. Neither is actionable at\n * the call site beyond staying on the locale already rendering, so it is a\n * warning rather than an error.\n */\nfunction reportCatalogFailure(error: unknown, locale: SupportedLocale): void {\n console.warn(\"App translation catalog could not be loaded\", locale, error);\n}\n\n/**\n * Initialize i18next for the resolved locale. Safe to call more than once:\n * a repeat call re-resolves the locale against the existing instance.\n *\n * Never rejects. This runs on the boot path ahead of `createRoot()`, where an\n * escaping rejection costs the whole app a render, and English is always\n * reachable. Returns the locale actually activated, which is English when the\n * preferred locale's catalog could not be loaded.\n */\nexport async function initI18n(): Promise<SupportedLocale> {\n const requested = resolveInitialLocale();\n\n if (i18next.isInitialized) {\n try {\n await changeLocale(requested);\n return requested;\n } catch (error) {\n reportCatalogFailure(error, requested);\n return currentLocale();\n }\n }\n\n // English is seeded first, from the entry chunk rather than a fetch. It is\n // both the fallback for a key a translated catalog is missing and the floor\n // this function degrades to, so it must be in place before anything that can\n // fail is attempted.\n const resources: Record<string, LocaleCatalogs> = {\n [DEFAULT_LOCALE]: FALLBACK_CATALOGS,\n };\n let locale: SupportedLocale = DEFAULT_LOCALE;\n\n if (requested !== DEFAULT_LOCALE) {\n try {\n resources[requested] = await loadCatalogs(requested);\n locale = requested;\n } catch (error) {\n reportCatalogFailure(error, requested);\n }\n }\n\n await i18next.use(new ICU()).init(i18nextInitOptions(locale, resources));\n\n applyDocumentLocale(locale);\n return locale;\n}\n\n/**\n * Switch the active locale: load its catalog if needed, activate it, persist\n * the choice as a device setting, and update the document element.\n *\n * Persisted with `device:` scope because a language choice describes the\n * device, not the account. It must survive logout so the login screen stays in\n * the language the user picked.\n *\n * Rejects when the catalog cannot be fetched, leaving the previous locale\n * active. Unlike {@link initI18n} this is user-initiated, so the caller is the\n * one that can say something useful about the failure.\n */\nexport async function changeLocale(locale: SupportedLocale): Promise<void> {\n await ensureCatalogs(locale);\n await i18next.changeLanguage(locale);\n writeLocalePreference(locale);\n applyDocumentLocale(locale);\n}\n\n/** The active locale, or `DEFAULT_LOCALE` before initialization. */\nexport function currentLocale(): SupportedLocale {\n const language = i18next.resolvedLanguage ?? i18next.language;\n return isSupportedLocale(language) ? language : DEFAULT_LOCALE;\n}\n\n/** The primary language subtag of a BCP 47 tag, lowercased. */\nfunction primaryLanguage(tag: string): string {\n return tag.split(\"-\")[0].toLowerCase();\n}\n\n/**\n * The locale to format dates, times, and numbers in.\n *\n * {@link currentLocale} answers with one of the five language tags the app\n * ships a catalog for, which is the right answer for copy and the wrong one\n * for formatting: it drops the region, so a UK user reading English copy\n * would get US date order and 12-hour times. This returns the host's own tag\n * whenever its primary language subtag is the app locale's, and the app\n * locale otherwise, so `en-GB` under app locale `en` keeps its region while\n * `de-DE` under `en` does not format German dates beside English copy.\n *\n * The host's whole preference list is searched, not just its first entry, so a\n * user whose device leads with English while the app runs in Spanish still\n * formats in the Spanish region they also listed. Comparison is by primary\n * subtag, so a `zh-TW` host keeps `zh-TW` under either Chinese catalog, and a\n * tag `Intl` cannot parse is skipped rather than chosen and rejected, so the\n * entry behind it still gets its turn.\n *\n * References:\n * - https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages\n * - https://www.rfc-editor.org/rfc/rfc5646 (BCP 47 tag structure)\n * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales\n */\nexport function formatLocale(): string {\n const app = currentLocale();\n const host = systemLocales().find(\n (tag) =>\n primaryLanguage(tag) === primaryLanguage(app) && isFormattableLocale(tag),\n );\n return host ?? app;\n}\n\n/**\n * Whether `Intl` will accept `tag`, which is not a given for a host-reported\n * one: a POSIX environment reports `C`, and an underscored `en_US` reaches us\n * from more than one shell. Every `Intl` constructor throws `RangeError` on\n * those, and this is read by every date, time, and number formatter in the\n * app, so the tag is checked once here instead of failing a render later.\n */\nfunction isFormattableLocale(tag: string): boolean {\n try {\n Intl.getCanonicalLocales(tag);\n return true;\n } catch {\n // A tag Intl cannot parse is host data the caller falls back from, not a\n // fault to report.\n return false;\n }\n}\n","import {\n createContext,\n useEffect,\n useMemo,\n type ReactNode,\n type Context,\n} from \"react\";\nimport { createInstance, type i18n } from \"i18next\";\nimport ICU from \"i18next-icu\";\nimport { FALLBACK_CATALOGS, loadCatalogs } from \"./catalogs\";\nimport { currentLocale } from \"./i18n\";\nimport { i18nextInitOptions } from \"./config\";\n\nexport const AppI18nContext: Context<i18n | undefined> = createContext<\n i18n | undefined\n>(undefined);\n\nexport function AppI18nProvider({ children }: { children: ReactNode }) {\n const instance = useMemo(() => {\n const i18n = createInstance();\n void i18n.use(new ICU()).init({\n ...i18nextInitOptions(\"en\", { en: FALLBACK_CATALOGS }),\n initAsync: false,\n });\n return i18n;\n }, []);\n useEffect(() => {\n let active = true;\n const locale = currentLocale();\n void loadCatalogs(locale)\n .then((catalogs) => {\n if (!active) {\n return;\n }\n for (const [namespace, catalog] of Object.entries(catalogs)) {\n instance.addResourceBundle(locale, namespace, catalog, true, true);\n }\n void instance.changeLanguage(locale);\n })\n .catch(() => {\n if (active) {\n void instance.changeLanguage(\"en\");\n }\n });\n return () => {\n active = false;\n };\n }, [instance]);\n return (\n <AppI18nContext.Provider value={instance}>\n {children}\n </AppI18nContext.Provider>\n );\n}\n","import { useContext } from \"react\";\nimport { AppI18nContext } from \"./provider\";\nimport type { KeyPrefix } from \"i18next\";\nimport {\n Trans as ReactTrans,\n useTranslation as useReactTranslation,\n type FallbackNs,\n type UseTranslationOptions,\n} from \"react-i18next\";\n\nimport { i18next } from \"@app/i18n/instance\";\nimport type { Namespace } from \"@app/i18n/namespaces\";\n\nexport function useTranslation<\n const N extends Namespace | readonly Namespace[] | undefined = undefined,\n const K extends KeyPrefix<FallbackNs<N>> = undefined,\n>(namespace?: N, options?: UseTranslationOptions<K>) {\n const instance = useContext(AppI18nContext) ?? i18next;\n return useReactTranslation<N, K>(namespace, { ...options, i18n: instance });\n}\n\nexport const Trans: typeof ReactTrans = (props) => {\n const instance = useContext(AppI18nContext) ?? i18next;\n return <ReactTrans {...props} i18n={instance} />;\n};\n","import type { CadetBridge, CadetCommand } from \"@mycadet/ipc-contract\";\n\n/** Native host capabilities currently used by the account client. */\nexport interface AppElectronBridge {\n platform: \"electron\";\n auth?: Partial<\n Pick<\n CadetBridge[\"auth\"],\n \"getSessionToken\" | \"cancelOAuth\" | \"startOAuth\" | \"signOut\"\n >\n >;\n /**\n * Menu-bar (Tray) status dot publishing. Optional for the same\n * shell/renderer skew reason as `deepLinks`: a newer bundle can run against\n * an older preload that predates the status channel — degrade to no-op\n * instead of throwing inside the effect.\n */\n status?: Pick<CadetBridge[\"status\"], \"setConnection\">;\n feedback?: CadetBridge[\"feedback\"];\n app?: Pick<CadetBridge[\"app\"], \"versionInfo\">;\n commands: {\n on(callback: (command: CadetCommand) => void): () => void;\n };\n mainWindow: {\n ensureVisible(): Promise<void>;\n setOnboarding(active: boolean): Promise<void>;\n /** The chooser's switch-to-origin: main loads the target itself. */\n navigateTo(url: string): Promise<void>;\n };\n /**\n * Deep-link bridge (deep-links.ts): `drain` returns links that arrived\n * before the renderer existed, `onLink` subscribes to live ones. Optional\n * so a renderer newer than its shell degrades to no links instead of\n * throwing inside the effect.\n */\n deepLinks?: Pick<CadetBridge[\"deepLinks\"], \"drain\" | \"onLink\">;\n}\n\n// Keep the adapter local to app instead of augmenting Window with web's full\n// assistant bridge. The native preload owns this capability contract.\nexport function getElectronBridge(): AppElectronBridge | undefined {\n if (typeof window === \"undefined\") return undefined;\n const bridge = (window as Window & { cadet?: AppElectronBridge }).cadet;\n return bridge?.platform === \"electron\" ? bridge : undefined;\n}\n","import type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport type { AssistantStatus } from \"@mycadet/ipc-contract\";\n\nimport { getElectronBridge } from \"./electron-bridge\";\n\n/**\n * Map the app shell's own resolution state onto the five-state menu-bar\n * status the native app shows (`AssistantStatus` in\n * `clients/macos/src/main/status.ts`). Pure so the mapping is unit-tested\n * without standing up stores.\n *\n * The shell resolves the assistant BEFORE anything mounts: the web assistant\n * iframe exists only once the resolution came back `ready`, so the web bundle\n * carries no status notion at all — by the time it loads, the assistant is\n * fully loaded. The dot therefore reads the shell's own resolution, which is\n * the only place the pre-mount states can ever be observed:\n *\n * authFailed → error → disconnected → idle\n *\n * The old in-conversation `thinking` pulse dies here: turn phase and SSE\n * liveness were web's facts, and web no longer reports them. The dot rests at\n * `idle` while the assistant works; per-turn granularity returns with the\n * desktop layer's own vantage (it routes the gateway traffic), which is the\n * stated endgame for all electron logic.\n */\nexport function deriveAssistantStatus(\n state: AssistantRequestState,\n): AssistantStatus {\n // The resolution request itself failed (network, timeout, contract\n // mismatch) — the assistant failed to come up.\n if (state.status === \"error\") {\n return \"error\";\n }\n\n switch (state.status) {\n // The platform rejected the shell's credential while resolving — that IS\n // the auth failure; there is no separate session question to ask.\n case \"unauthenticated\":\n return \"authFailed\";\n // An assistant is resolved and hosting the web bundle — the assistant is\n // fully loaded.\n case \"ready\":\n return \"idle\";\n // Still resolving, or nothing to host: the chooser owns the window, no\n // assistant is paired, or the assistant isn't usable. No live data plane.\n default:\n return \"disconnected\";\n }\n}\n\n/**\n * Per-capability wrapper for the Electron host's menu-bar (Tray) status\n * indicator, matching the app bridge's other capabilities: the renderer never\n * touches `window.cadet.*` directly — feature code calls this named function.\n *\n * Publishes the assistant's connection status so the main process can drive\n * the Tray status dot. The app shell holds the resolution (it resolved the\n * assistant), so it is the source of truth; main owns only the presentation.\n * Fire-and-forget — no acknowledgement.\n *\n * Safe to call from any host — no-op off Electron.\n */\nexport function setAssistantStatus(status: AssistantStatus): void {\n getElectronBridge()?.status?.setConnection(status);\n}\n","import { useEffect } from \"react\";\n\nimport type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport {\n deriveAssistantStatus,\n setAssistantStatus,\n} from \"../runtime/assistant-status\";\n\n// Relative imports (not `@app/*`) so this module tree stays free of app path\n// aliases for any out-of-tree consumer; the hook itself is app-internal.\n\n/**\n * Publish the assistant's connection status to the Electron host so the main\n * process can drive the menu-bar (Tray) status dot. Main de-dupes republished\n * values, so publishing on every resolution change is cheap.\n *\n * The app shell resolves the assistant itself, so the dot reads that\n * resolution — no status is gathered from the web assistant iframe, which\n * only mounts once the assistant is fully loaded and carries no status\n * notion at all. Mounted in `AssistantShell`, where the resolution state is\n * in scope. `setAssistantStatus` no-ops off Electron, so mounting is safe\n * unconditionally.\n *\n * The cleanup publishes `disconnected` on unmount: the shell leaves the tree\n * when the router swaps to a chooser route or the active assistant changes,\n * and the tray must not stick at the previous assistant's `idle`.\n *\n * This module family is the intermediate home for the renderer-side electron\n * glue; per the desktop-layer direction it eventually folds into the electron\n * main process, which will derive the dot from its own vantage.\n */\nexport function useElectronStatusSync(state: AssistantRequestState): void {\n useEffect(() => {\n setAssistantStatus(deriveAssistantStatus(state));\n }, [state]);\n\n useEffect(() => () => setAssistantStatus(\"disconnected\"), []);\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n AssistantNavigationSchema,\n HostNavigationSchema,\n HostProxyForwardSchema,\n ShareFeedbackRequestSchema,\n} from \"../assistant/resolution-contract\";\n\nexport interface AssistantFrameProps {\n onNavigate(path: string, options: { replace: boolean }): void;\n title: string;\n onShareFeedback?: () => void;\n}\n\nconst mount = \"/web\";\n\nfunction frameUrl(): string {\n return new URL(\n `${mount}${location.pathname}${location.search}${location.hash}`,\n window.location.origin,\n ).href;\n}\n\nexport function AssistantFrame({\n onNavigate,\n onShareFeedback,\n title,\n}: AssistantFrameProps) {\n const ref = useRef<HTMLIFrameElement>(null);\n const [src] = useState(frameUrl);\n const currentPath = useRef(src);\n const frameOrigin = useMemo(() => window.location.origin, []);\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n if (ShareFeedbackRequestSchema.safeParse(event.data).success) {\n onShareFeedback?.();\n return;\n }\n const forward = HostProxyForwardSchema.safeParse(event.data);\n if (forward.success) {\n window.cadet?.hostProxy?.forward(forward.data.message);\n return;\n }\n const message = AssistantNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (path === currentPath.current) {\n return;\n }\n // The frame may only steer its own url space: the mount prefix is the\n // frame's home, so anything else (host routes, protocol-relative,\n // traversal) never reaches the host router.\n if (!path.startsWith(`${mount}/`) || path.includes(\"\\\\\")) {\n return;\n }\n if (\n path\n .split(/[?#]/)[0]\n .split(\"/\")\n .some((part) => part === \".\" || part === \"..\")\n ) {\n return;\n }\n currentPath.current = path;\n const target = path.slice(mount.length) || \"/\";\n onNavigate(target, { replace: message.data.nav === \"replace\" });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate, onShareFeedback]);\n\n // The frame's HOST-navigation requests: surfaces that live outside the\n // frame's url space (the account area — e.g. the Doctor page) but that\n // the assistant bundle must be able to open. Only /account/* paths are\n // honored, so a compromised frame still cannot steer the host chrome.\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n const message = HostNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (!path.startsWith(\"/account/\") || path.includes(\"\\\\\")) {\n return;\n }\n onNavigate(path, { replace: false });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate]);\n\n useEffect(() => {\n const next = frameUrl();\n if (next !== currentPath.current) {\n currentPath.current = next;\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: next },\n frameOrigin,\n );\n }\n }, [location, frameOrigin]);\n\n return (\n <iframe\n ref={ref}\n src={src}\n onLoad={() =>\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: currentPath.current },\n frameOrigin,\n )\n }\n title={title}\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n allow=\"microphone; camera; clipboard-write\"\n style={{ width: \"100%\", height: \"100%\", minHeight: \"100dvh\", border: 0 }}\n />\n );\n}\n","import { WWW_DOMAIN } from \"@app/utils/domains\";\n\nexport const routes = {\n index: \"/\",\n assistant: \"/assistant\",\n onboarding: {\n hatching: \"/account/onboarding/hatching\",\n privacy: \"/assistant/onboarding/privacy\",\n research: \"/assistant/onboarding/research\",\n },\n account: {\n root: \"/account\",\n consent: \"/account/consent\",\n onboarding: {\n start: \"/account/onboarding/start\",\n hosting: \"/account/onboarding/hosting\",\n connect: \"/account/onboarding/connect\",\n apiKey: \"/account/onboarding/api-key\",\n vellum: \"/account/onboarding/vellum\",\n },\n login: \"/account/login\",\n doctor: \"/account/doctor\",\n profile: \"/account/profile\",\n selectAssistant: \"/account/select-assistant\",\n assistants: \"/account/assistants\",\n // Deep link to one assistant's management surface (backups, upgrades,\n // export) — the settings page's Manage Assistant button lands here.\n assistantDetail: (assistantId: string) =>\n `/account/assistants/${assistantId}`,\n signup: \"/account/signup\",\n pair: \"/account/pair\",\n providerSignup: \"/account/provider/signup\",\n providerCallback: \"/account/provider/callback\",\n oauth: {\n popupComplete: \"/account/oauth/popup-complete\",\n complete: \"/account/oauth/complete\",\n desktopComplete: \"/account/oauth/desktop-complete\",\n },\n },\n docs: {\n hostingOptions: \"/docs/hosting-options\",\n localHosting: \"/docs/hosting-options/local-hosting\",\n legal: {\n privacyPolicy: \"/docs/privacy-policy\",\n termsOfUse: \"/docs/terms-of-use\",\n },\n },\n} as const;\n\nexport function docsUrl(path: string): string {\n return `https://${WWW_DOMAIN}${path}`;\n}\n","\"use client\";\n\nimport { CloudOff } from \"lucide-react\";\nimport { useEffect, useRef, useState, type CSSProperties } from \"react\";\nimport { useAssistantRequest } from \"./assistant/use-assistant-request\";\nimport { AppI18nProvider } from \"./i18n/provider\";\nimport { useTranslation } from \"./i18n/react\";\nimport { useElectronStatusSync } from \"./hooks/use-electron-status-sync\";\nimport { AssistantFrame } from \"./shell/assistant-frame\";\nimport { routes } from \"./utils/routes\";\n\nexport interface AppShellProps {\n apiBaseUrl?: string;\n assistantId?: string;\n onNavigate(path: string, options: { replace: boolean }): void;\n title?: string;\n onShareFeedback?: () => void;\n}\n\n/** Portable React entry. Resolves assistants through the host API; the host owns browser navigation. */\nexport function AppShell(props: AppShellProps) {\n return (\n <AppI18nProvider>\n <AssistantShell key={props.assistantId} {...props} />\n </AppI18nProvider>\n );\n}\n\n// Inline styles so the portable bundle and the standalone build render the\n// failure states identically (the panel has no stylesheet contract of its\n// own). The vars are the design-library tokens the standalone bundle ships;\n// the literals are the dark-theme values they resolve to.\nconst primaryButton: CSSProperties = {\n borderRadius: 8,\n border: \"none\",\n padding: \"10px 20px\",\n fontSize: 14,\n fontWeight: 600,\n background: \"var(--primary-base, #FDFDFC)\",\n color: \"var(--content-inset, #17191C)\",\n cursor: \"pointer\",\n};\n\nconst quietButton: CSSProperties = {\n borderRadius: 8,\n border: \"1px solid var(--content-tertiary, #8D99A5)\",\n padding: \"8px 16px\",\n fontSize: 13,\n background: \"transparent\",\n color: \"inherit\",\n cursor: \"pointer\",\n};\n\n/** The wake failure's display line: the cloud route puts cadet-host's own\n * punchline in `reason` (502) and the v1 refusals in `detail` (4xx). */\nfunction wakeFailureMessage(body: unknown): string | null {\n if (typeof body !== \"object\" || body === null) return null;\n if (\"reason\" in body && typeof body.reason === \"string\") return body.reason;\n if (\"detail\" in body && typeof body.detail === \"string\") return body.detail;\n return null;\n}\n\nfunction AssistantShell({\n apiBaseUrl = \"/\",\n assistantId,\n onNavigate,\n onShareFeedback,\n title,\n}: AppShellProps) {\n const { t } = useTranslation(\"account\");\n const [wakePending, setWakePending] = useState(false);\n const [wakeReason, setWakeReason] = useState<string | null>(null);\n const { state, retry: reload } = useAssistantRequest({\n apiBaseUrl,\n assistantId,\n });\n\n // The tray's status logic lives with the resolution\n useElectronStatusSync(state);\n\n const chooserOwned = state.status === \"selection\" || state.status === \"empty\";\n const redirected = useRef(false);\n useEffect(() => {\n if (chooserOwned && !redirected.current) {\n redirected.current = true;\n onNavigate(routes.account.selectAssistant, { replace: true });\n }\n }, [chooserOwned, onNavigate]);\n\n async function wake() {\n if (!assistantId || wakePending) return;\n setWakePending(true);\n setWakeReason(null);\n try {\n const base = new URL(apiBaseUrl, window.location.origin);\n base.pathname = base.pathname.replace(/\\/*$/, \"/\");\n const response = await fetch(\n new URL(`v1/assistants/${encodeURIComponent(assistantId)}/wake/`, base),\n { method: \"POST\", credentials: \"include\" },\n );\n if (response.ok) {\n setWakePending(false);\n reload();\n return;\n }\n const body: unknown = await response.json().catch(() => null);\n setWakeReason(wakeFailureMessage(body) ?? t(\"appShell.wakeFailed\"));\n } catch {\n setWakeReason(t(\"appShell.wakeFailed\"));\n }\n setWakePending(false);\n }\n\n if (state.status === \"unauthenticated\")\n return <PairRedirect onNavigate={onNavigate} />;\n\n if (state.status !== \"ready\") {\n const alert = state.status === \"notReady\" || state.status === \"error\";\n const canRetry = state.status === \"error\" || state.status === \"unavailable\";\n return (\n <div\n role={alert ? \"alert\" : \"status\"}\n style={{\n minHeight: \"100svh\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 12,\n padding: 24,\n textAlign: \"center\",\n }}\n >\n {state.status === \"notReady\" ? (\n <NotReadyBody\n wakePending={wakePending}\n wakeReason={wakeReason}\n onWake={wake}\n />\n ) : state.status === \"error\" ? (\n <ErrorBody />\n ) : (\n <p style={{ margin: 0 }}>{t(`appShell.${state.status}`)}</p>\n )}\n {(canRetry || state.status === \"notReady\") && (\n <div style={{ display: \"flex\", gap: 8 }}>\n {canRetry && (\n <button type=\"button\" onClick={reload} style={quietButton}>\n {t(\"appShell.retry\")}\n </button>\n )}\n <button\n type=\"button\"\n onClick={() =>\n onNavigate(routes.account.selectAssistant, { replace: false })\n }\n style={quietButton}\n >\n {t(\"appShell.switchAssistant\")}\n </button>\n </div>\n )}\n </div>\n );\n }\n\n const assistant = state.assistant;\n return (\n <AssistantFrame\n onShareFeedback={onShareFeedback}\n key={`${assistant.id}:${assistant.version}`}\n onNavigate={onNavigate}\n title={title ?? t(\"appShell.title\")}\n />\n );\n}\n\n/** The 409 \"assistant is not ready\" resolution — deliberately NOT the\n * starting sentiment: the API only reports that the assistant isn't ready\n * (never hatched, stopped, or mid-release-resolution). The action is the\n * wake: the same recovery drive the admin console's Wake button gets, so\n * both the admin and the user hold a path back into the assistant (the\n * retry stays for the states where nothing can be woken). Modeled on the\n * web app's full-page failure treatment (icon + title + body + a primary\n * action, centered); inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction NotReadyBody({\n wakePending,\n wakeReason,\n onWake,\n}: {\n wakePending: boolean;\n wakeReason: string | null;\n onWake(): void;\n}) {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.notReadyTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.notReadyBody\")}\n </p>\n {wakeReason !== null && (\n <p\n style={{\n margin: 0,\n maxWidth: 420,\n fontSize: 13,\n opacity: 0.6,\n lineHeight: 1.5,\n }}\n >\n {wakeReason}\n </p>\n )}\n <button\n type=\"button\"\n onClick={onWake}\n disabled={wakePending}\n style={{ ...primaryButton, opacity: wakePending ? 0.6 : 1 }}\n >\n {wakePending ? t(\"appShell.waking\") : t(\"appShell.wake\")}\n </button>\n </>\n );\n}\n\n/** An unauthenticated shell IS a pairing problem — forward to the pair\n * page once, replaced, so the dead assistant URL doesn't linger in\n * history. Renders nothing; the unauthenticated message shows for the\n * beat before the navigation lands. */\nfunction PairRedirect({\n onNavigate,\n}: {\n onNavigate: (path: string, options: { replace: boolean }) => void;\n}): null {\n const forwarded = useRef(false);\n useEffect(() => {\n if (forwarded.current) return;\n forwarded.current = true;\n onNavigate(routes.account.pair, { replace: true });\n }, [onNavigate]);\n return null;\n}\n\n/** The generic resolution failure — the request itself did not go through\n * (network trouble, an unreachable API, a 5xx). Deliberately NOT the\n * starting sentiment: nothing about the assistant's lifecycle is known,\n * so retry (not wake) is the action. Modeled on the web app's full-page\n * failure treatment; inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction ErrorBody() {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.errorTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.errorBody\")}\n </p>\n </>\n );\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;;;;;;;AAOA,IAAM,KAAgB,GAAG,MAAY,EAAQ,QAAQ,GAAW,GAAO,MAC9D,EAAQ,KAAc,EAAU,MAAM,KAAK,MAAM,EAAM,QAAQ,EAAU,KAAK,EACrF,CA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