@nervekit/desktop 0.40.1 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/README.md +5 -2
  2. package/THIRD-PARTY-LICENSES.txt +968 -30
  3. package/dist/bin.js +1 -0
  4. package/dist/{chunk-OY6PIAR7.js → chunk-2ICPO4UM.js} +5 -5
  5. package/dist/{chunk-SQ7CWNIT.js → chunk-3CZXUKLG.js} +1 -1
  6. package/dist/{chunk-QFXKQNMT.js → chunk-4OCDR4DU.js} +14 -17
  7. package/dist/chunk-62DQXVPO.js +69 -0
  8. package/dist/chunk-6GUJQURI.js +142 -0
  9. package/dist/{chunk-CEX2GWGZ.js → chunk-6IHXVT5H.js} +1 -1
  10. package/dist/{chunk-MH3SUHI2.js → chunk-6ZS7TA6E.js} +2 -2
  11. package/dist/chunk-7FSH3ABG.js +249 -0
  12. package/dist/chunk-7HGFEQSD.js +224 -0
  13. package/dist/chunk-7RPHIJT3.js +153 -0
  14. package/dist/{chunk-5Y3NEEOK.js → chunk-AAEIGAGD.js} +9 -9
  15. package/dist/{chunk-HKLAYK2Z.js → chunk-APY4TUR3.js} +210 -0
  16. package/dist/chunk-BACYVEE6.js +128 -0
  17. package/dist/chunk-BG2KGLIA.js +783 -0
  18. package/dist/{chunk-XBHEYY65.js → chunk-BN5YDZUZ.js} +1205 -326
  19. package/dist/chunk-BUD4JHBZ.js +7017 -0
  20. package/dist/{chunk-MN7PZ2PH.js → chunk-DDBE2VLT.js} +2 -2
  21. package/dist/chunk-EF7ZZKA3.js +168 -0
  22. package/dist/{chunk-TJR6ASRW.js → chunk-EUT45AKW.js} +22 -24
  23. package/dist/{chunk-L3YB2QLN.js → chunk-FCAIYPDJ.js} +2 -2
  24. package/dist/{chunk-AJGPULMX.js → chunk-FZ557YWE.js} +47603 -55411
  25. package/dist/chunk-HPINJGBO.js +359 -0
  26. package/dist/{chunk-H5UKINTD.js → chunk-IRRR3PWN.js} +68 -65
  27. package/dist/{chunk-CWHAK2HX.js → chunk-IVBMHEPK.js} +33 -55
  28. package/dist/{chunk-FESN7DND.js → chunk-JBEWFFOK.js} +1 -1
  29. package/dist/{chunk-CKVFGRVV.js → chunk-KEXKZKN4.js} +54 -7
  30. package/dist/{chunk-UGDIHDAR.js → chunk-KUFIFCB4.js} +1 -1
  31. package/dist/chunk-L5WGVYXM.js +42 -0
  32. package/dist/{chunk-ONWQH2W6.js → chunk-LGIIT2NF.js} +15 -18
  33. package/dist/{chunk-KSZJ3HGD.js → chunk-LP4APBBQ.js} +1 -1
  34. package/dist/{chunk-DBXMYYPJ.js → chunk-M3ELKCNA.js} +1 -1
  35. package/dist/chunk-MI6L5CEA.js +183 -0
  36. package/dist/chunk-N4OXAS3A.js +40 -0
  37. package/dist/chunk-N6BUYKF3.js +340 -0
  38. package/dist/{chunk-KIGB3FK6.js → chunk-NVVW3MWJ.js} +9 -8
  39. package/dist/{chunk-V53CETNZ.js → chunk-O5JHHRFN.js} +242 -105
  40. package/dist/{chunk-KQPEOUCA.js → chunk-O6FDXE54.js} +19 -23
  41. package/dist/{chunk-QWTKCUIZ.js → chunk-OMCM3MHS.js} +11 -9
  42. package/dist/{chunk-55OGZFNA.js → chunk-P72Y5ZBH.js} +31 -15
  43. package/dist/{chunk-AON37AL2.js → chunk-PVPJAGWR.js} +29 -4
  44. package/dist/{chunk-24GQ74HM.js → chunk-Q3C7TQ2M.js} +3 -3
  45. package/dist/chunk-Q5E4ZL2R.js +14 -0
  46. package/dist/chunk-QFK2SWD2.js +258 -0
  47. package/dist/chunk-RJR7DJJK.js +32 -0
  48. package/dist/{chunk-BXVRC3HF.js → chunk-RL52LSTV.js} +1 -1
  49. package/dist/{chunk-KAZFF2RD.js → chunk-RTB6CF7F.js} +137 -113
  50. package/dist/{chunk-TW6FURZ7.js → chunk-SDDKYMIP.js} +18313 -4317
  51. package/dist/{chunk-S2PITDVA.js → chunk-TQURLRHD.js} +1 -1
  52. package/dist/{chunk-2Z5FLMLE.js → chunk-TSAUBRRU.js} +1 -1
  53. package/dist/chunk-U3TEC52G.js +64 -0
  54. package/dist/chunk-U5KGV63C.js +39 -0
  55. package/dist/{chunk-FOFVPPPV.js → chunk-UVRULOOP.js} +10 -9
  56. package/dist/{chunk-QVHYARC2.js → chunk-VOATSLRG.js} +5 -1
  57. package/dist/{chunk-WXRYBXYR.js → chunk-W7LEYYFH.js} +53 -65
  58. package/dist/chunk-WC5HHPPM.js +22 -0
  59. package/dist/{chunk-3DGBM7UW.js → chunk-WG62RHZ2.js} +3 -3
  60. package/dist/{chunk-D7WIIZAV.js → chunk-WIQEPAUG.js} +10 -9
  61. package/dist/chunk-XM27UVWN.js +250 -0
  62. package/dist/{chunk-4MMJDHFX.js → chunk-XTUSLUQ7.js} +70 -71
  63. package/dist/{chunk-N5B2RRSS.js → chunk-Z6AY5VOZ.js} +47 -26
  64. package/dist/{chunk-I6NVW4NX.js → chunk-ZGWXLG5X.js} +29 -33
  65. package/dist/{chunk-XNYZEQ3U.js → chunk-ZUWBEV2O.js} +1 -1
  66. package/dist/chunk-ZVH6EB7S.js +29 -0
  67. package/dist/daemon.js +65 -26
  68. package/dist/extension-assets/atlassian/docs/confluence-raw.md +31 -0
  69. package/dist/extension-assets/atlassian/docs/confluence-writing.md +101 -0
  70. package/dist/extension-assets/atlassian/docs/jira-raw.md +16 -0
  71. package/dist/extension-assets/atlassian/docs/jira-workflows.md +77 -0
  72. package/dist/extension-assets/atlassian/docs/project-knowledge.md +25 -0
  73. package/dist/extension-assets/atlassian/docs/storage.md +58 -0
  74. package/dist/extension-assets/atlassian/icon.svg +20 -0
  75. package/dist/extension-assets/diagram/docs/diagrams.md +12 -0
  76. package/dist/extension-assets/imagegen/docs/imagegen.md +17 -0
  77. package/dist/extension-assets/web-search/icon.svg +1 -0
  78. package/dist/git-isolated-reader-helper.js +1 -1
  79. package/dist/html-to-markdown.worker.js +6 -7028
  80. package/dist/main.js +583 -164
  81. package/dist/preload.cjs +45 -2
  82. package/dist/quick-script-docs/runtime/documents.md +54 -0
  83. package/dist/quick-script-docs/runtime/files.md +11 -0
  84. package/dist/quick-script-docs/runtime/images.md +10 -0
  85. package/dist/sandbox-libraries/docx.LICENSE +21 -0
  86. package/dist/sandbox-libraries/docx.min.js +9 -0
  87. package/dist/sandbox-libraries/jszip.LICENSE +651 -0
  88. package/dist/sandbox-libraries/jszip.min.js +13 -0
  89. package/dist/sandbox-libraries/mammoth.LICENSE +22 -0
  90. package/dist/sandbox-libraries/mammoth.browser.min.js +13 -0
  91. package/dist/sandbox-libraries/papaparse.LICENSE +20 -0
  92. package/dist/sandbox-libraries/papaparse.min.js +7 -0
  93. package/dist/sandbox-libraries/pptxgen.bundle.js +96 -0
  94. package/dist/sandbox-libraries/pptxgenjs.LICENSE +21 -0
  95. package/dist/sandbox-libraries/xlsx.LICENSE +201 -0
  96. package/dist/sandbox-libraries/xlsx.full.min.js +24 -0
  97. package/dist/web/assets/{AsyncBashCenterHost-HGsdxUJ3.js → AsyncBashCenterHost-D2Sy43Ub.js} +1 -1
  98. package/dist/web/assets/ConversationListItem-DvxCcAYm.js +3 -0
  99. package/dist/web/assets/ConversationsWorkbenchPanel-YeNq9LRn.js +1 -0
  100. package/dist/web/assets/DiscoverCenterHost-B6K-QnBF.js +1 -0
  101. package/dist/web/assets/{FileCenterHost-DigJOU5M.js → FileCenterHost-Dlk53K5G.js} +1 -1
  102. package/dist/web/assets/FilesWorkbenchPanel-PeCu12oU.js +12 -0
  103. package/dist/web/assets/{GitDiffCenterHost-IuZfF3hG.js → GitDiffCenterHost-3_Ea0RyG.js} +1 -1
  104. package/dist/web/assets/{GitWorkbenchPanel-CScC0CfH.js → GitWorkbenchPanel-CYvCkOAW.js} +1 -1
  105. package/dist/web/assets/{LaunchCenterHost-CIu7bcoZ.js → LaunchCenterHost-CP773N_3.js} +1 -1
  106. package/dist/web/assets/LaunchConfigurationNotice-CtmZ1uIQ.js +1 -0
  107. package/dist/web/assets/{LaunchesWorkbenchPanel-Vy0Gm7gg.js → LaunchesWorkbenchPanel-DP3yVfkO.js} +1 -1
  108. package/dist/web/assets/LogsCenterHost-BFP0doQf.js +1 -0
  109. package/dist/web/assets/{MermaidCenterHost-DDh4ArdK.js → MermaidCenterHost-Bjl6Dvrq.js} +1 -1
  110. package/dist/web/assets/MobileFilesBody-CDp21MGZ.js +1 -0
  111. package/dist/web/assets/{MobileFilesHost-C1jev2Un.js → MobileFilesHost-DlJI_yau.js} +1 -1
  112. package/dist/web/assets/MobileLaunchOutputHost-y3TehLWF.js +1 -0
  113. package/dist/web/assets/MobileLaunchesHost-CBNtDTrs.js +2 -0
  114. package/dist/web/assets/MobileLogsHost-BSb2lydK.js +1 -0
  115. package/dist/web/assets/MobileNoteEditorHost-7yW7hIC2.js +1 -0
  116. package/dist/web/assets/{MobileNotesHost-BZeYpK9H.js → MobileNotesHost-CvDHzpAh.js} +1 -1
  117. package/dist/web/assets/{MobileProjectSettingsHost-U3Mx3EN8.js → MobileProjectSettingsHost-CjtPfyKT.js} +1 -1
  118. package/dist/web/assets/{MobileProjectSettingsPageHost-CMvxbjfs.js → MobileProjectSettingsPageHost-j_7N-B9L.js} +1 -1
  119. package/dist/web/assets/{MobileSettingsHost-CP8Z_-gH.js → MobileSettingsHost-DXIKNF01.js} +1 -1
  120. package/dist/web/assets/{MobileSettingsPageHost-BPjXKTMV.js → MobileSettingsPageHost-CEzo7J9p.js} +1 -1
  121. package/dist/web/assets/MobileSettingsPageScreen-99wMLRsn.js +1 -0
  122. package/dist/web/assets/NotesWorkbenchPanel-DqTwXBBv.js +1 -0
  123. package/dist/web/assets/ProjectSettingsCenterHost-D96cL0uH.js +1 -0
  124. package/dist/web/assets/{PullRequestCenterHost-CZhXfCX2.js → PullRequestCenterHost-DY0yPDK2.js} +1 -1
  125. package/dist/web/assets/PullRequestsWorkbenchPanel-D07LE8vJ.js +1 -0
  126. package/dist/web/assets/{SearchWorkbenchPanel-qLgszneN.js → SearchWorkbenchPanel-D2_3iXo8.js} +1 -1
  127. package/dist/web/assets/SettingsCenter-BQWc24di.js +1 -0
  128. package/dist/web/assets/SettingsCenterHost-BvgNfeZN.js +1 -0
  129. package/dist/web/assets/{SystemPromptCenterHost-ya5AvXsd.js → SystemPromptCenterHost-BLHkB7lp.js} +1 -1
  130. package/dist/web/assets/activity-notices-C9aphS1s.js +1 -0
  131. package/dist/web/assets/adapters-DNU88KT0.js +1 -0
  132. package/dist/web/assets/agent-profiles.svelte-DgI8wSS2.js +1 -0
  133. package/dist/web/assets/api-CHNbLvvY.js +1 -0
  134. package/dist/web/assets/center-tabs.svelte-CyhCD_6b.js +1 -0
  135. package/dist/web/assets/channel-6wGoOwGx.js +57 -0
  136. package/dist/web/assets/circle-question-mark-C7NgqbLL.js +1 -0
  137. package/dist/web/assets/code-DJR0pnqV.js +7 -0
  138. package/dist/web/assets/{confirm-dialog-Bw_IxcZD.js → confirm-dialog-BDjzMiC4.js} +1 -1
  139. package/dist/web/assets/{conversation-connection-3GxIuhbS.js → conversation-connection-mLNyfV2d.js} +1 -1
  140. package/dist/web/assets/dialog-CkRcLEJT.js +1 -0
  141. package/dist/web/assets/discover-Dh4m7djO.js +4 -0
  142. package/dist/web/assets/dist-DSApqEag.js +1 -0
  143. package/dist/web/assets/file-tabs.svelte-cX3MMyG6.js +2 -0
  144. package/dist/web/assets/filesystem-BbIXrkGB.js +1 -0
  145. package/dist/web/assets/{git-store.svelte-CM5k7yRU.js → git-store.svelte-D3uwRVnj.js} +1 -1
  146. package/dist/web/assets/{git.api-D2CfUXZW.js → git.api-CTu-tG8A.js} +1 -1
  147. package/dist/web/assets/index-BrxjAwg0.js +46 -0
  148. package/dist/web/assets/index-yEOHI1Z7.css +1 -0
  149. package/dist/web/assets/launches-CC4gLnSa.js +5 -0
  150. package/dist/web/assets/{launches.api-BZxyWF8t.js → launches.api-CaotSs6l.js} +1 -1
  151. package/dist/web/assets/launches.svelte-DDA5J-RZ.js +2 -0
  152. package/dist/web/assets/{message-square-CqLxHJuW.js → list-checks-zV9Dp7Cu.js} +1 -1
  153. package/dist/web/assets/{logs.api-Coi8HJuy.js → logs.api-DMmVlkSz.js} +1 -1
  154. package/dist/web/assets/{maintenance-state.svelte-CDO9i4dk.js → maintenance-state.svelte-l9v7Hg3i.js} +2 -2
  155. package/dist/web/assets/notify.svelte-BTEXJZ8P.js +1 -0
  156. package/dist/web/assets/popover-panel-C-weKOk3.js +5 -0
  157. package/dist/web/assets/pr-view-loader.svelte-C0NClMS6.js +1 -0
  158. package/dist/web/assets/progress-CKEsTSOk.js +1 -0
  159. package/dist/web/assets/scratch-notes-state.svelte-B_rY_-9q.js +1 -0
  160. package/dist/web/assets/{scratch-notes.api-Cbvag3bv.js → scratch-notes.api-B2gOOK6Z.js} +1 -1
  161. package/dist/web/assets/search-input-CEr0SmAB.js +1 -0
  162. package/dist/web/assets/settings-2-CWd8Y06n.js +1 -0
  163. package/dist/web/assets/settings-CRmC19nG.js +1 -0
  164. package/dist/web/assets/settings-CXoAzSmm.js +1 -0
  165. package/dist/web/assets/settings-actions.svelte-BB6u_lQ0.js +1 -0
  166. package/dist/web/assets/settings-page-controllers.svelte-al78EDTL.js +29 -0
  167. package/dist/web/assets/sheet-content-DauQ7hPL.js +1 -0
  168. package/dist/web/assets/shell-CYbWnH52.js +4 -0
  169. package/dist/web/assets/shell-layout.svelte-CmEWk428.js +2 -0
  170. package/dist/web/assets/textarea-BEZ65po_.js +1 -0
  171. package/dist/web/assets/views-BumCSQ3W.js +2 -0
  172. package/dist/web/assets/{workbench-connection-gGGv4o8i.js → workbench-connection-CGHdORw3.js} +1 -1
  173. package/dist/web/assets/{workspace-Cc47dGjw.js → workspace-CW738NJG.js} +1 -1
  174. package/dist/web/assets/{workspace-actions.svelte-B3oum_9S.js → workspace-actions.svelte-DL9xv7lJ.js} +1 -1
  175. package/dist/web/assets/workspace-selectors.svelte-BRJvPEBh.js +105 -0
  176. package/dist/web/index.html +142 -83
  177. package/dist/web/sw.js +1 -1
  178. package/dist/worker.js +14 -9
  179. package/package.json +8 -9
  180. package/dist/chunk-RUZ2UAYH.js +0 -365
  181. package/dist/guides/confluence/SKILL.md +0 -36
  182. package/dist/guides/jira/SKILL.md +0 -34
  183. package/dist/resize-worker.js +0 -168
  184. package/dist/web/assets/ConversationListItem-Caz2KiJH.js +0 -3
  185. package/dist/web/assets/ConversationsWorkbenchPanel-B6dzWkG1.js +0 -1
  186. package/dist/web/assets/DiscoverCenterHost-B186WBRA.js +0 -1
  187. package/dist/web/assets/FilesWorkbenchPanel-VPvx3Bmi.js +0 -12
  188. package/dist/web/assets/LaunchConfigurationNotice-5yb4cH27.js +0 -1
  189. package/dist/web/assets/LogsCenterHost-BXBozCYw.js +0 -1
  190. package/dist/web/assets/MobileFilesBody-Cda_7gDp.js +0 -1
  191. package/dist/web/assets/MobileLaunchOutputHost-Bsv12o2H.js +0 -1
  192. package/dist/web/assets/MobileLaunchesHost-C9VH-2bn.js +0 -2
  193. package/dist/web/assets/MobileLogsHost-BMDXc-WC.js +0 -1
  194. package/dist/web/assets/MobileNoteEditorHost-BA6WIY1Y.js +0 -1
  195. package/dist/web/assets/MobileSettingsPageScreen-C5rHdrUU.js +0 -1
  196. package/dist/web/assets/NotesWorkbenchPanel-Bf6rySTL.js +0 -1
  197. package/dist/web/assets/ProjectSettingsCenterHost-BVXpBixy.js +0 -1
  198. package/dist/web/assets/PullRequestsWorkbenchPanel-BBnZJVnI.js +0 -1
  199. package/dist/web/assets/SettingsCenter-7BfrBfiy.js +0 -1
  200. package/dist/web/assets/SettingsCenterHost-Ck5uHILP.js +0 -1
  201. package/dist/web/assets/adapters-DxJoo6Za.js +0 -1
  202. package/dist/web/assets/agent-profiles.svelte-D5YHPc90.js +0 -1
  203. package/dist/web/assets/api-eaGLre0q.js +0 -1
  204. package/dist/web/assets/center-tabs.svelte-JJGozG_H.js +0 -1
  205. package/dist/web/assets/channel-B503YLZR.js +0 -57
  206. package/dist/web/assets/chevron-left-DPEFG6UJ.js +0 -1
  207. package/dist/web/assets/circle-alert-Cp2l2jcj.js +0 -5
  208. package/dist/web/assets/clock-Db6f9HtS.js +0 -1
  209. package/dist/web/assets/code-BRQC0Tpn.js +0 -7
  210. package/dist/web/assets/dialog-DU4gXD1J.js +0 -1
  211. package/dist/web/assets/discover-B3I5g1_G.js +0 -4
  212. package/dist/web/assets/dist-B_NFPhKV.js +0 -1
  213. package/dist/web/assets/file-tabs.svelte-DKtVVVCq.js +0 -2
  214. package/dist/web/assets/filesystem-ReGivxAC.js +0 -1
  215. package/dist/web/assets/index-DIQuyMVT.css +0 -1
  216. package/dist/web/assets/index-FJEmK_L5.js +0 -48
  217. package/dist/web/assets/launches-DiAl56ED.js +0 -5
  218. package/dist/web/assets/launches.svelte-BVs1pAhl.js +0 -2
  219. package/dist/web/assets/notebook-pen-lVsLYSe4.js +0 -1
  220. package/dist/web/assets/notify.svelte-BKVBraTJ.js +0 -1
  221. package/dist/web/assets/pencil-BrlypebI.js +0 -1
  222. package/dist/web/assets/pr-view-loader.svelte-DcIwqDJV.js +0 -1
  223. package/dist/web/assets/progress-DBCSpVPn.js +0 -1
  224. package/dist/web/assets/scratch-notes-state.svelte-Br_WiMEp.js +0 -1
  225. package/dist/web/assets/search-input-zU4WCZiz.js +0 -1
  226. package/dist/web/assets/settings-2-8MSBUGAl.js +0 -1
  227. package/dist/web/assets/settings-9LBrw4Nv.js +0 -1
  228. package/dist/web/assets/settings-B7uXsflY.js +0 -1
  229. package/dist/web/assets/settings-actions.svelte-B8psX3cj.js +0 -1
  230. package/dist/web/assets/settings-page-controllers.svelte-CU0i08wo.js +0 -30
  231. package/dist/web/assets/shell-DB5Db5-E.js +0 -4
  232. package/dist/web/assets/shell-layout.svelte-BT2508sa.js +0 -2
  233. package/dist/web/assets/textarea-CeoFJ0-t.js +0 -1
  234. package/dist/web/assets/views-Z-n-GTYY.js +0 -2
  235. package/dist/web/assets/workspace-selectors.svelte-DLUlSgEE.js +0 -131
  236. /package/dist/{html-to-markdown.worker.js.LEGAL.txt → chunk-BUD4JHBZ.js.LEGAL.txt} +0 -0
  237. /package/dist/{chunk-CKVFGRVV.js.LEGAL.txt → chunk-KEXKZKN4.js.LEGAL.txt} +0 -0
  238. /package/dist/{chunk-TW6FURZ7.js.LEGAL.txt → chunk-SDDKYMIP.js.LEGAL.txt} +0 -0
package/dist/main.js CHANGED
@@ -18,10 +18,11 @@ import {
18
18
  readCurrentSettingsForBootstrap,
19
19
  resolveApplicationConfiguration,
20
20
  version
21
- } from "./chunk-TW6FURZ7.js";
21
+ } from "./chunk-SDDKYMIP.js";
22
22
  import {
23
23
  isLoopbackHost
24
24
  } from "./chunk-QF5GNBAB.js";
25
+ import "./chunk-BUD4JHBZ.js";
25
26
  import "./chunk-RLN3MFAK.js";
26
27
  import {
27
28
  MIGRATION_METADATA,
@@ -38,14 +39,19 @@ import {
38
39
  serverHealthSchema,
39
40
  settingsSchema,
40
41
  storagePaths
41
- } from "./chunk-AJGPULMX.js";
42
- import "./chunk-BXVRC3HF.js";
43
- import "./chunk-L3YB2QLN.js";
44
- import "./chunk-HKLAYK2Z.js";
45
- import "./chunk-FESN7DND.js";
46
- import "./chunk-WXRYBXYR.js";
47
- import "./chunk-MN7PZ2PH.js";
48
- import "./chunk-24GQ74HM.js";
42
+ } from "./chunk-FZ557YWE.js";
43
+ import "./chunk-62DQXVPO.js";
44
+ import "./chunk-RJR7DJJK.js";
45
+ import "./chunk-RL52LSTV.js";
46
+ import "./chunk-ZVH6EB7S.js";
47
+ import "./chunk-FCAIYPDJ.js";
48
+ import "./chunk-APY4TUR3.js";
49
+ import "./chunk-JBEWFFOK.js";
50
+ import "./chunk-BG2KGLIA.js";
51
+ import "./chunk-W7LEYYFH.js";
52
+ import "./chunk-DDBE2VLT.js";
53
+ import "./chunk-Q3C7TQ2M.js";
54
+ import "./chunk-U5KGV63C.js";
49
55
  import "./chunk-CWESUMYQ.js";
50
56
 
51
57
  // packages/desktop-shell/dist/main.js
@@ -61,7 +67,7 @@ async function checkHomeAdmission(home) {
61
67
  // packages/desktop-shell/dist/platform/electron/electron-api.js
62
68
  import { createRequire } from "node:module";
63
69
  var require2 = createRequire(import.meta.url);
64
- var { app, BrowserWindow, clipboard, dialog, ipcMain, Menu, Notification, nativeImage, nativeTheme, safeStorage, session, shell, Tray } = require2("electron");
70
+ var { app, BrowserWindow, clipboard, dialog, ipcMain, Menu, Notification, nativeImage, nativeTheme, powerMonitor, safeStorage, session, shell, Tray } = require2("electron");
65
71
 
66
72
  // packages/desktop-shell/dist/app/cli-options.js
67
73
  function parseDesktopOptions(args) {
@@ -179,6 +185,11 @@ function applyElectronOzonePlatform(platform) {
179
185
  return;
180
186
  app.commandLine.appendSwitch("ozone-platform", platformSwitch);
181
187
  }
188
+ function applyElectronRemoteDebuggingPort(port) {
189
+ if (port === void 0)
190
+ return;
191
+ app.commandLine.appendSwitch("remote-debugging-port", String(port));
192
+ }
182
193
  function applyElectronFontRenderHinting(hinting) {
183
194
  if (process.platform !== "linux" || !hinting || hinting === "system")
184
195
  return;
@@ -2546,12 +2557,16 @@ function createTrayController(dependencies) {
2546
2557
  kill: (target, signal) => process.kill(target, signal)
2547
2558
  });
2548
2559
  void desktopLog(pid === void 0 ? "warn" : "info", "tray", pid === void 0 ? "No GPU process to restart" : "Restarted GPU process from tray", { context: { pid } });
2549
- dependencies.getMainWindow()?.webContents.reloadIgnoringCache();
2550
2560
  } catch (error) {
2551
2561
  void desktopLog("error", "tray", "Failed to restart GPU process", {
2552
2562
  error
2553
2563
  });
2554
2564
  }
2565
+ void dependencies.recreateMainWindow().catch((error) => {
2566
+ void desktopLog("error", "tray", "Failed to recreate main window", {
2567
+ error
2568
+ });
2569
+ });
2555
2570
  }
2556
2571
  function updateTrayIcon() {
2557
2572
  if (!tray)
@@ -2715,6 +2730,191 @@ function installWindowLifecycle(window, callbacks, dependencies) {
2715
2730
  window.on("blur", () => callbacks.sendWindowState(window));
2716
2731
  }
2717
2732
 
2733
+ // packages/desktop-shell/dist/window/window-health.js
2734
+ var RENDERER_HEALTH_CHANNEL = "desktop.window.health";
2735
+ var WINDOW_HEALTH_CHECK_INTERVAL_MS = 5e3;
2736
+ var STALL_GRACE_MS = 1e4;
2737
+ var HEARTBEAT_MISSING_MS = 3e4;
2738
+ var PAUSE_GAP_MS = 3 * WINDOW_HEALTH_CHECK_INTERVAL_MS;
2739
+ var WindowHealthTracker = class {
2740
+ #window;
2741
+ #log;
2742
+ #now;
2743
+ #lastReport;
2744
+ #lastReportAt;
2745
+ #lastPowerEvent;
2746
+ #lastCheckAt;
2747
+ #stallSince;
2748
+ #stallReason;
2749
+ #stallLogged = false;
2750
+ constructor(options) {
2751
+ this.#window = options.window;
2752
+ this.#log = options.log;
2753
+ this.#now = options.now;
2754
+ }
2755
+ powerEvent(event) {
2756
+ this.#lastPowerEvent = { event, at: this.#now() };
2757
+ this.#emit("info", `System ${event}`);
2758
+ }
2759
+ windowEvent(event) {
2760
+ this.#emit("info", `Window ${event}`);
2761
+ }
2762
+ rendererReport(report) {
2763
+ const previous = this.#lastReport;
2764
+ this.#lastReport = report;
2765
+ this.#lastReportAt = this.#now();
2766
+ if (previous && previous.visibility !== report.visibility) {
2767
+ this.#emit("info", `Renderer became ${report.visibility}`);
2768
+ }
2769
+ }
2770
+ /** A new document loaded; earlier heartbeats describe the old page. */
2771
+ rendererReloaded() {
2772
+ this.#lastReport = void 0;
2773
+ this.#lastReportAt = this.#now();
2774
+ }
2775
+ check() {
2776
+ const now = this.#now();
2777
+ const gap = this.#lastCheckAt === void 0 ? 0 : now - this.#lastCheckAt;
2778
+ this.#lastCheckAt = now;
2779
+ if (gap >= PAUSE_GAP_MS) {
2780
+ this.#emit("info", "Desktop process was paused", { gapMs: gap });
2781
+ this.#lastReportAt = now;
2782
+ this.#stallSince = void 0;
2783
+ return;
2784
+ }
2785
+ const reason = this.#detectStall(now);
2786
+ if (!reason) {
2787
+ if (this.#stallLogged && this.#stallSince !== void 0) {
2788
+ void this.#log("info", "window-health", "Window painting resumed", {
2789
+ durationMs: now - this.#stallSince,
2790
+ context: this.#snapshot(now)
2791
+ });
2792
+ }
2793
+ this.#stallSince = void 0;
2794
+ this.#stallReason = void 0;
2795
+ this.#stallLogged = false;
2796
+ return;
2797
+ }
2798
+ this.#stallSince ??= now;
2799
+ this.#stallReason = reason;
2800
+ if (!this.#stallLogged && now - this.#stallSince >= STALL_GRACE_MS) {
2801
+ this.#stallLogged = true;
2802
+ this.#emit("warn", "Focused window is not painting");
2803
+ }
2804
+ }
2805
+ #detectStall(now) {
2806
+ const window = this.#window;
2807
+ if (window.isDestroyed())
2808
+ return void 0;
2809
+ if (!window.isVisible() || window.isMinimized() || !window.isFocused()) {
2810
+ return void 0;
2811
+ }
2812
+ if (window.webContents.isLoading())
2813
+ return void 0;
2814
+ const reportAge = this.#lastReportAt === void 0 ? 0 : now - this.#lastReportAt;
2815
+ if (reportAge >= HEARTBEAT_MISSING_MS)
2816
+ return "heartbeat-missing";
2817
+ const report = this.#lastReport;
2818
+ if (!report)
2819
+ return void 0;
2820
+ if (report.visibility !== "visible")
2821
+ return "renderer-hidden";
2822
+ if ((report.framePendingMs ?? 0) >= WINDOW_HEALTH_CHECK_INTERVAL_MS) {
2823
+ return "no-frames";
2824
+ }
2825
+ return void 0;
2826
+ }
2827
+ #emit(level, message, extra = {}) {
2828
+ void this.#log(level, "window-health", message, {
2829
+ context: { ...extra, ...this.#snapshot(this.#now()) }
2830
+ });
2831
+ }
2832
+ #snapshot(now) {
2833
+ const window = this.#window;
2834
+ const destroyed = window.isDestroyed();
2835
+ return {
2836
+ window: destroyed ? { destroyed: true } : {
2837
+ visible: window.isVisible(),
2838
+ minimized: window.isMinimized(),
2839
+ focused: window.isFocused(),
2840
+ loading: window.webContents.isLoading(),
2841
+ crashed: window.webContents.isCrashed()
2842
+ },
2843
+ renderer: this.#lastReport,
2844
+ rendererReportAgeMs: this.#lastReportAt === void 0 ? void 0 : now - this.#lastReportAt,
2845
+ stallReason: this.#stallReason,
2846
+ lastPowerEvent: this.#lastPowerEvent && {
2847
+ event: this.#lastPowerEvent.event,
2848
+ agoMs: now - this.#lastPowerEvent.at
2849
+ }
2850
+ };
2851
+ }
2852
+ };
2853
+ function parseRendererHealthReport(value) {
2854
+ if (!value || typeof value !== "object")
2855
+ return void 0;
2856
+ const candidate = value;
2857
+ if (typeof candidate.visibility !== "string")
2858
+ return void 0;
2859
+ const optionalNumber = (key) => typeof candidate[key] === "number" && Number.isFinite(candidate[key]) ? Math.round(candidate[key]) : void 0;
2860
+ return {
2861
+ visibility: candidate.visibility.slice(0, 32),
2862
+ focused: candidate.focused === true,
2863
+ framePendingMs: optionalNumber("framePendingMs"),
2864
+ frameLatencyMs: optionalNumber("frameLatencyMs")
2865
+ };
2866
+ }
2867
+ var WINDOW_EVENTS = ["show", "hide", "minimize", "restore"];
2868
+ var POWER_EVENTS = [
2869
+ "suspend",
2870
+ "resume",
2871
+ "lock-screen",
2872
+ "unlock-screen"
2873
+ ];
2874
+ function installWindowHealthMonitor(dependencies) {
2875
+ const { window, powerMonitor: powerMonitor2, ipcMain: ipcMain2 } = dependencies;
2876
+ const tracker = new WindowHealthTracker({
2877
+ window,
2878
+ log: dependencies.log,
2879
+ now: dependencies.now ?? Date.now
2880
+ });
2881
+ const disposers = [];
2882
+ const listen = (emitter, event, listener) => {
2883
+ emitter.on(event, listener);
2884
+ disposers.push(() => emitter.removeListener(event, listener));
2885
+ };
2886
+ for (const event of POWER_EVENTS) {
2887
+ listen(powerMonitor2, event, () => tracker.powerEvent(event));
2888
+ }
2889
+ for (const event of WINDOW_EVENTS) {
2890
+ listen(window, event, () => tracker.windowEvent(event));
2891
+ }
2892
+ listen(window.webContents, "did-finish-load", () => {
2893
+ tracker.rendererReloaded();
2894
+ tracker.windowEvent("loaded");
2895
+ });
2896
+ listen(ipcMain2, RENDERER_HEALTH_CHANNEL, (event, value) => {
2897
+ if (event.sender !== window.webContents)
2898
+ return;
2899
+ const report = parseRendererHealthReport(value);
2900
+ if (report)
2901
+ tracker.rendererReport(report);
2902
+ });
2903
+ const interval = setInterval(() => tracker.check(), WINDOW_HEALTH_CHECK_INTERVAL_MS);
2904
+ interval.unref?.();
2905
+ let disposed = false;
2906
+ const dispose = () => {
2907
+ if (disposed)
2908
+ return;
2909
+ disposed = true;
2910
+ clearInterval(interval);
2911
+ for (const disposer of disposers.splice(0))
2912
+ disposer();
2913
+ };
2914
+ window.on("closed", dispose);
2915
+ return dispose;
2916
+ }
2917
+
2718
2918
  // packages/desktop-shell/dist/window/navigation-guards.js
2719
2919
  function classifyNavigationTarget(rawUrl, daemonUrl) {
2720
2920
  try {
@@ -2840,25 +3040,41 @@ font-family: var(--splash-font-sans);
2840
3040
  /* Frameless desktop window: the backdrop moves it while no titlebar
2841
3041
  exists; ignored outside Electron. */
2842
3042
  -webkit-app-region: drag;
2843
- transition:
2844
- opacity 280ms ease,
2845
- transform 280ms ease,
2846
- filter 280ms ease;
2847
3043
  }
2848
3044
  /* Hidden while a startup failure is shown; a retry shows it again. */
2849
3045
  #startup-splash.is-hidden {
2850
3046
  display: none;
2851
3047
  }
2852
3048
  #startup-splash.is-dismissed {
2853
- opacity: 0;
2854
- transform: scale(1.03);
2855
- filter: blur(4px);
2856
3049
  pointer-events: none;
2857
3050
  /* Drag regions ignore pointer-events; release the window during the
2858
- fade so the revealed workbench is clickable at once. */
3051
+ exit so the revealed workbench is clickable at once. */
2859
3052
  -webkit-app-region: no-drag;
3053
+ animation: splash-backdrop-out 300ms ease-in 240ms both;
3054
+ }
3055
+ #startup-splash [hidden] {
3056
+ display: none;
3057
+ }
3058
+ #startup-splash-grid {
3059
+ position: absolute;
3060
+ inset: 0;
3061
+ background-image:
3062
+ linear-gradient(var(--splash-border) 1px, transparent 1px),
3063
+ linear-gradient(90deg, var(--splash-border) 1px, transparent 1px);
3064
+ background-position: center;
3065
+ background-size: 1.5rem 1.5rem;
3066
+ -webkit-mask-image: radial-gradient(
3067
+ circle at center,
3068
+ black,
3069
+ transparent 60%
3070
+ );
3071
+ mask-image: radial-gradient(circle at center, black, transparent 60%);
3072
+ opacity: 0.55;
3073
+ animation: splash-fade 700ms ease-out both;
3074
+ animation-delay: var(--splash-t0, 0ms);
2860
3075
  }
2861
3076
  #startup-splash-content {
3077
+ position: relative;
2862
3078
  -webkit-app-region: no-drag;
2863
3079
  transform: scale(var(--nerve-inverse-zoom-scale, 1));
2864
3080
  transform-origin: center;
@@ -2873,76 +3089,91 @@ animation-delay: var(--splash-t0, 0ms);
2873
3089
  }
2874
3090
  #startup-splash-plate {
2875
3091
  position: relative;
2876
- display: grid;
2877
- place-items: center;
2878
- overflow: hidden;
2879
- width: 3rem;
2880
- height: 3rem;
2881
- border-radius: 0.625rem;
2882
- color: var(--splash-bg);
2883
- animation: splash-beat 2400ms cubic-bezier(0.22, 1, 0.36, 1) infinite
2884
- both;
2885
- animation-delay: calc(var(--splash-t0, 0ms) + 2200ms);
3092
+ width: 3.25rem;
3093
+ height: 3.25rem;
3094
+ animation: splash-impact 460ms ease-out both;
3095
+ animation-delay: calc(var(--splash-t0, 0ms) + 540ms);
2886
3096
  }
2887
- #startup-splash-plate::before {
2888
- content: "";
3097
+ #startup-splash-plate-fill,
3098
+ #startup-splash .splash-ring {
2889
3099
  position: absolute;
2890
3100
  inset: 0;
2891
- border-radius: inherit;
3101
+ border-radius: 0.375rem;
3102
+ }
3103
+ #startup-splash-plate-fill {
2892
3104
  background: var(--splash-fg);
2893
- animation: splash-plate 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
2894
- animation-delay: calc(var(--splash-t0, 0ms) + 900ms);
3105
+ animation:
3106
+ splash-plate 620ms cubic-bezier(0.34, 1.56, 0.64, 1) both,
3107
+ splash-thump 2800ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
3108
+ animation-delay:
3109
+ calc(var(--splash-t0, 0ms) + 520ms),
3110
+ calc(var(--splash-t0, 0ms) + 2000ms);
3111
+ }
3112
+ #startup-splash .splash-ring {
3113
+ border: 2px solid var(--splash-primary);
3114
+ opacity: 0;
3115
+ }
3116
+ #startup-splash .splash-ring-intro {
3117
+ animation: splash-ring 760ms cubic-bezier(0.16, 1, 0.3, 1);
3118
+ animation-delay: calc(var(--splash-t0, 0ms) + 540ms);
3119
+ }
3120
+ /* Long waits (storage upgrades) keep a beat so the splash never looks frozen. */
3121
+ #startup-splash .splash-ring-idle {
3122
+ animation: splash-ring-idle 2800ms cubic-bezier(0.16, 1, 0.3, 1)
3123
+ infinite;
3124
+ animation-delay: calc(var(--splash-t0, 0ms) + 2000ms);
2895
3125
  }
2896
3126
  #startup-splash-mark {
2897
- position: relative;
2898
- z-index: 1;
3127
+ position: absolute;
3128
+ inset: 18.75%;
2899
3129
  width: 62.5%;
2900
3130
  height: 62.5%;
3131
+ overflow: visible;
2901
3132
  color: var(--splash-bg);
2902
- animation: splash-ink 420ms ease-out both;
2903
- animation-delay: calc(var(--splash-t0, 0ms) + 1050ms);
2904
- }
2905
- #startup-splash-mark path {
2906
- stroke-dasharray: 100;
2907
- stroke-dashoffset: 0;
2908
- animation: splash-draw 860ms cubic-bezier(0.65, 0, 0.35, 1) both;
2909
- }
2910
- #startup-splash-mark .splash-stem-left {
2911
- animation-delay: calc(var(--splash-t0, 0ms) + 60ms);
2912
- }
2913
- #startup-splash-mark .splash-stem-right {
2914
- animation-delay: calc(var(--splash-t0, 0ms) + 140ms);
2915
- }
2916
- #startup-splash-mark .splash-diagonal {
2917
- animation-duration: 900ms;
2918
- animation-delay: calc(var(--splash-t0, 0ms) + 240ms);
2919
- }
2920
- /* After the intro an impulse keeps travelling through the letterform, so long
2921
- waits (storage upgrades) never look frozen. Each lap ends in a plate beat. */
2922
- #startup-splash-mark path.splash-pulse {
3133
+ animation: splash-ink 180ms ease-out both;
3134
+ animation-delay: calc(var(--splash-t0, 0ms) + 520ms);
3135
+ }
3136
+ /* Bands alternate sides; --band-i staggers the entry and exit, --band-g
3137
+ sizes each band's glitch offset. */
3138
+ #startup-splash .splash-band {
3139
+ --band-x: -320px;
3140
+ --band-i: 0;
3141
+ --band-g: 10px;
3142
+ animation: splash-band-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
3143
+ animation-delay: calc(var(--splash-t0, 0ms) + var(--band-i) * 55ms);
3144
+ }
3145
+ #startup-splash .splash-band:nth-child(2) {
3146
+ --band-x: 320px;
3147
+ --band-i: 1;
3148
+ --band-g: -14px;
3149
+ }
3150
+ #startup-splash .splash-band:nth-child(3) {
3151
+ --band-i: 2;
3152
+ --band-g: 6px;
3153
+ }
3154
+ #startup-splash .splash-band:nth-child(4) {
3155
+ --band-x: 320px;
3156
+ --band-i: 3;
3157
+ --band-g: -8px;
3158
+ }
3159
+ #startup-splash .splash-band:nth-child(5) {
3160
+ --band-i: 4;
3161
+ --band-g: 16px;
3162
+ }
3163
+ #startup-splash .splash-band:nth-child(6) {
3164
+ --band-x: 320px;
3165
+ --band-i: 5;
3166
+ --band-g: -6px;
3167
+ }
3168
+ #startup-splash .splash-band-glitch {
3169
+ animation: splash-glitch 3200ms steps(1, end) infinite;
3170
+ animation-delay: calc(var(--splash-t0, 0ms) + 1600ms);
3171
+ }
3172
+ #startup-splash .splash-band-ghost {
2923
3173
  stroke: var(--splash-primary);
2924
- stroke-dasharray: 16 116;
2925
- stroke-dashoffset: 16;
2926
- animation: splash-pulse 2400ms cubic-bezier(0.45, 0, 0.25, 1) infinite
2927
- both;
2928
- animation-delay: calc(var(--splash-t0, 0ms) + 2200ms);
2929
- }
2930
- #startup-splash-sheen {
2931
- position: absolute;
2932
- z-index: 2;
2933
- top: -60%;
2934
- bottom: -60%;
2935
- left: -40%;
2936
- width: 34%;
2937
- background: linear-gradient(
2938
- 90deg,
2939
- transparent,
2940
- color-mix(in oklab, var(--splash-bg) 65%, transparent),
2941
- transparent
2942
- );
2943
- transform: rotate(18deg) translateX(460%);
2944
- animation: splash-sheen 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
2945
- animation-delay: calc(var(--splash-t0, 0ms) + 1350ms);
3174
+ opacity: 0;
3175
+ animation: splash-ghost 3200ms steps(1, end) infinite;
3176
+ animation-delay: calc(var(--splash-t0, 0ms) + 1600ms);
2946
3177
  }
2947
3178
  #startup-splash-word {
2948
3179
  margin-top: 0.875rem;
@@ -2952,27 +3183,31 @@ line-height: 1;
2952
3183
  letter-spacing: -0.01em;
2953
3184
  }
2954
3185
  #startup-splash-word span {
3186
+ --letter-x: -0.75rem;
3187
+ --letter-i: 0;
2955
3188
  display: inline-block;
2956
- animation: splash-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
2957
- }
2958
- #startup-splash-word span:nth-child(1) {
2959
- animation-delay: calc(var(--splash-t0, 0ms) + 1150ms);
3189
+ animation: splash-letter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
3190
+ animation-delay: calc(
3191
+ var(--splash-t0, 0ms) + 560ms + var(--letter-i) * 45ms
3192
+ );
2960
3193
  }
2961
3194
  #startup-splash-word span:nth-child(2) {
2962
- animation-delay: calc(var(--splash-t0, 0ms) + 1195ms);
3195
+ --letter-x: 0.75rem;
3196
+ --letter-i: 1;
2963
3197
  }
2964
3198
  #startup-splash-word span:nth-child(3) {
2965
- animation-delay: calc(var(--splash-t0, 0ms) + 1240ms);
3199
+ --letter-i: 2;
2966
3200
  }
2967
3201
  #startup-splash-word span:nth-child(4) {
2968
- animation-delay: calc(var(--splash-t0, 0ms) + 1285ms);
3202
+ --letter-x: 0.75rem;
3203
+ --letter-i: 3;
2969
3204
  }
2970
3205
  #startup-splash-word span:nth-child(5) {
2971
- animation-delay: calc(var(--splash-t0, 0ms) + 1330ms);
3206
+ --letter-i: 4;
2972
3207
  }
2973
3208
  #startup-splash-status {
2974
3209
  width: min(21rem, calc(100vw - 3rem));
2975
- margin: 1.25rem 0 0;
3210
+ margin: 1.125rem 0 0;
2976
3211
  overflow: hidden;
2977
3212
  color: var(--splash-muted);
2978
3213
  font-size: 0.875rem;
@@ -2988,18 +3223,15 @@ instead of snapping between sentences. */
2988
3223
  animation: splash-status-swap 200ms ease-out both;
2989
3224
  }
2990
3225
  #startup-splash-detail {
2991
- margin: 0.375rem 0 0;
3226
+ margin: 0;
2992
3227
  color: var(--splash-muted);
2993
3228
  font-size: 0.75rem;
2994
3229
  line-height: 1.25rem;
2995
3230
  }
2996
- #startup-splash [hidden] {
2997
- display: none;
2998
- }
2999
3231
  #startup-splash-meter {
3000
- width: min(21rem, calc(100vw - 3rem));
3001
- height: 0.25rem;
3002
- margin-top: 0.5rem;
3232
+ width: min(12rem, calc(100vw - 3rem));
3233
+ height: 0.125rem;
3234
+ margin-top: 0.375rem;
3003
3235
  overflow: hidden;
3004
3236
  border-radius: 999px;
3005
3237
  background: var(--splash-border);
@@ -3039,80 +3271,202 @@ animation-delay: calc(var(--splash-t0, 0ms) + 1200ms);
3039
3271
  transform: scaleX(1);
3040
3272
  animation: none;
3041
3273
  }
3274
+ #startup-splash-version {
3275
+ position: absolute;
3276
+ bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
3277
+ left: 50%;
3278
+ margin: 0;
3279
+ color: var(--splash-muted);
3280
+ font-size: 0.75rem;
3281
+ line-height: 1rem;
3282
+ letter-spacing: 0.04em;
3283
+ white-space: nowrap;
3284
+ opacity: 0.7;
3285
+ transform: translateX(-50%) scale(var(--nerve-inverse-zoom-scale, 1));
3286
+ transform-origin: center bottom;
3287
+ animation: splash-fade 600ms ease-out both;
3288
+ animation-delay: calc(var(--splash-t0, 0ms) + 900ms);
3289
+ }
3290
+ /* Exit. Copy leaves first, the plate drops out so the bands leave in full
3291
+ colour, then the bands slide back out while the backdrop clears. */
3292
+ #startup-splash.is-dismissed #startup-splash-word,
3293
+ #startup-splash.is-dismissed #startup-splash-status,
3294
+ #startup-splash.is-dismissed #startup-splash-detail,
3295
+ #startup-splash.is-dismissed #startup-splash-meter {
3296
+ animation: splash-text-out 240ms cubic-bezier(0.5, 0, 0.75, 0) both;
3297
+ }
3298
+ #startup-splash.is-dismissed #startup-splash-grid,
3299
+ #startup-splash.is-dismissed #startup-splash-version {
3300
+ animation: splash-out 240ms ease-in both;
3301
+ }
3302
+ #startup-splash.is-dismissed #startup-splash-plate,
3303
+ #startup-splash.is-dismissed .splash-ring,
3304
+ #startup-splash.is-dismissed .splash-band-glitch,
3305
+ #startup-splash.is-dismissed .splash-band-ghost {
3306
+ animation: none;
3307
+ }
3308
+ #startup-splash.is-dismissed #startup-splash-plate-fill {
3309
+ animation: splash-out 140ms ease-in both;
3310
+ }
3311
+ #startup-splash.is-dismissed #startup-splash-mark {
3312
+ animation: splash-ink-out 120ms ease-in both;
3313
+ }
3314
+ #startup-splash.is-dismissed .splash-band {
3315
+ animation: splash-band-out 360ms cubic-bezier(0.7, 0, 0.84, 0) both;
3316
+ animation-delay: calc(80ms + var(--band-i) * 30ms);
3317
+ }
3042
3318
  @keyframes splash-push {
3043
3319
  from {
3044
3320
  transform: scale(1.035);
3045
3321
  }
3046
3322
  }
3047
- @keyframes splash-plate {
3323
+ @keyframes splash-fade {
3048
3324
  from {
3049
3325
  opacity: 0;
3050
- clip-path: inset(0 0 100% 0 round 0.625rem);
3051
3326
  }
3052
3327
  }
3053
- @keyframes splash-draw {
3054
- from {
3055
- stroke-dashoffset: 100;
3328
+ @keyframes splash-out {
3329
+ to {
3330
+ opacity: 0;
3056
3331
  }
3057
3332
  }
3058
- @keyframes splash-ink {
3059
- from {
3060
- color: var(--splash-fg);
3333
+ @keyframes splash-backdrop-out {
3334
+ to {
3335
+ background-color: transparent;
3061
3336
  }
3062
3337
  }
3063
- @keyframes splash-sheen {
3338
+ @keyframes splash-band-in {
3064
3339
  from {
3065
- transform: rotate(18deg) translateX(-260%);
3340
+ opacity: 0;
3341
+ transform: translateX(var(--band-x));
3066
3342
  }
3343
+ 40% {
3344
+ opacity: 1;
3067
3345
  }
3068
- @keyframes splash-rise {
3069
- from {
3346
+ }
3347
+ @keyframes splash-band-out {
3348
+ 60% {
3349
+ opacity: 1;
3350
+ }
3351
+ to {
3070
3352
  opacity: 0;
3071
- transform: translateY(0.5rem);
3353
+ transform: translateX(var(--band-x));
3072
3354
  }
3073
3355
  }
3074
- @keyframes splash-fade {
3356
+ @keyframes splash-plate {
3075
3357
  from {
3076
3358
  opacity: 0;
3359
+ transform: scale(0.3);
3077
3360
  }
3078
3361
  }
3079
- @keyframes splash-status-swap {
3362
+ @keyframes splash-impact {
3363
+ 25% {
3364
+ transform: scale(1.1, 0.9);
3365
+ }
3366
+ 55% {
3367
+ transform: scale(0.96, 1.04);
3368
+ }
3369
+ }
3370
+ @keyframes splash-ring {
3080
3371
  from {
3372
+ opacity: 0.9;
3373
+ transform: scale(1);
3374
+ }
3375
+ to {
3081
3376
  opacity: 0;
3082
- transform: translateY(0.25rem);
3377
+ transform: scale(2.4);
3083
3378
  }
3084
3379
  }
3085
- @keyframes splash-meter {
3380
+ @keyframes splash-ring-idle {
3381
+ 0% {
3382
+ opacity: 0.6;
3383
+ transform: scale(1);
3384
+ }
3385
+ 45%,
3386
+ 100% {
3387
+ opacity: 0;
3388
+ transform: scale(1.9);
3389
+ }
3390
+ }
3391
+ @keyframes splash-thump {
3392
+ 8% {
3393
+ transform: scale(1.06);
3394
+ }
3395
+ 30%,
3396
+ 100% {
3397
+ transform: scale(1);
3398
+ }
3399
+ }
3400
+ @keyframes splash-ink {
3086
3401
  from {
3087
- transform: scaleX(0.04);
3402
+ color: var(--splash-fg);
3088
3403
  }
3089
3404
  }
3090
- @keyframes splash-pulse {
3091
- 0% {
3092
- stroke-dashoffset: 16;
3405
+ @keyframes splash-ink-out {
3406
+ from {
3407
+ color: var(--splash-bg);
3408
+ }
3409
+ to {
3410
+ color: var(--splash-fg);
3411
+ }
3412
+ }
3413
+ @keyframes splash-glitch {
3414
+ 0%,
3415
+ 86% {
3416
+ transform: translateX(0);
3417
+ }
3418
+ 88% {
3419
+ transform: translateX(var(--band-g));
3093
3420
  }
3094
- 55%,
3421
+ 90% {
3422
+ transform: translateX(calc(var(--band-g) * -0.6));
3423
+ }
3424
+ 92%,
3095
3425
  100% {
3096
- stroke-dashoffset: -100;
3426
+ transform: translateX(0);
3097
3427
  }
3098
3428
  }
3099
- @keyframes splash-beat {
3429
+ @keyframes splash-ghost {
3100
3430
  0%,
3101
- 52% {
3102
- transform: scale(1);
3103
- box-shadow: 0 0 0 0
3104
- color-mix(in oklab, var(--splash-primary) 55%, transparent);
3431
+ 86% {
3432
+ opacity: 0;
3433
+ transform: translateX(0);
3105
3434
  }
3106
- 60% {
3107
- transform: scale(1.06);
3435
+ 88% {
3436
+ opacity: 0.9;
3437
+ transform: translateX(-8px);
3108
3438
  }
3109
- 80% {
3110
- transform: scale(1);
3439
+ 90% {
3440
+ opacity: 0.9;
3441
+ transform: translateX(8px);
3111
3442
  }
3443
+ 92%,
3112
3444
  100% {
3113
- transform: scale(1);
3114
- box-shadow: 0 0 0 1.25rem
3115
- color-mix(in oklab, var(--splash-primary) 0%, transparent);
3445
+ opacity: 0;
3446
+ transform: translateX(0);
3447
+ }
3448
+ }
3449
+ @keyframes splash-letter {
3450
+ from {
3451
+ opacity: 0;
3452
+ transform: translateX(var(--letter-x));
3453
+ }
3454
+ }
3455
+ @keyframes splash-text-out {
3456
+ to {
3457
+ opacity: 0;
3458
+ transform: translateY(0.25rem);
3459
+ }
3460
+ }
3461
+ @keyframes splash-status-swap {
3462
+ from {
3463
+ opacity: 0;
3464
+ transform: translateY(0.25rem);
3465
+ }
3466
+ }
3467
+ @keyframes splash-meter {
3468
+ from {
3469
+ transform: scaleX(0.04);
3116
3470
  }
3117
3471
  }
3118
3472
  @keyframes splash-shimmer {
@@ -3120,17 +3474,8 @@ to {
3120
3474
  transform: translateX(250%);
3121
3475
  }
3122
3476
  }
3123
- /* The settled composition is the base state, so suppressing the intro is enough
3124
- for reduced motion and for the desktop hand-off after the shell already
3125
- played it. Ambient .splash-loop motion keeps running while settled. */
3126
- :root[data-splash-intro="settled"] #startup-splash *:not(.splash-loop),
3127
- :root[data-splash-intro="settled"] #startup-splash *::before {
3128
- animation: none !important;
3129
- }
3130
3477
  @media (prefers-reduced-motion: reduce) {
3131
- #startup-splash {
3132
- transition-duration: 1ms;
3133
- }
3478
+ #startup-splash,
3134
3479
  #startup-splash *,
3135
3480
  #startup-splash *::before,
3136
3481
  #startup-splash *::after {
@@ -3142,21 +3487,39 @@ display: none;
3142
3487
  }
3143
3488
  /* startup-splash:end */
3144
3489
  `;
3145
- function startupSplashMarkup(statusText) {
3490
+ function startupSplashMarkup(statusText, version2) {
3146
3491
  return `<!-- startup-splash:begin -->
3147
3492
  <div id="startup-splash" aria-busy="true" aria-label="Starting Nerve">
3493
+ <span id="startup-splash-grid" aria-hidden="true"></span>
3148
3494
  <div id="startup-splash-content">
3149
3495
  <div id="startup-splash-stage">
3150
- <div id="startup-splash-plate" class="splash-loop" aria-hidden="true">
3496
+ <div id="startup-splash-plate" aria-hidden="true">
3497
+ <span class="splash-ring splash-ring-intro"></span>
3498
+ <span class="splash-ring splash-ring-idle"></span>
3499
+ <span id="startup-splash-plate-fill"></span>
3151
3500
  <svg id="startup-splash-mark" viewBox="120 120 272 272" fill="none" focusable="false">
3152
- <g stroke="currentColor" stroke-width="32" stroke-linecap="round" stroke-linejoin="round">
3153
- <path class="splash-stem-left" pathLength="100" d="M150 350V162" />
3154
- <path class="splash-stem-right" pathLength="100" d="M362 350V162" />
3155
- <path class="splash-diagonal" pathLength="100" d="M150 162L232 235L258 208L284 288L362 350" />
3156
- <path class="splash-pulse splash-loop" pathLength="100" d="M150 350V162L232 235L258 208L284 288L362 350V162" />
3501
+ <defs>
3502
+ <g id="startup-splash-n">
3503
+ <path d="M150 350V162" />
3504
+ <path d="M362 350V162" />
3505
+ <path d="M150 162L232 235L258 208L284 288L362 350" />
3506
+ </g>
3507
+ <clipPath id="startup-splash-band-1"><rect x="100" y="119.5" width="312" height="46.34" /></clipPath>
3508
+ <clipPath id="startup-splash-band-2"><rect x="100" y="164.83" width="312" height="46.34" /></clipPath>
3509
+ <clipPath id="startup-splash-band-3"><rect x="100" y="210.17" width="312" height="46.34" /></clipPath>
3510
+ <clipPath id="startup-splash-band-4"><rect x="100" y="255.5" width="312" height="46.34" /></clipPath>
3511
+ <clipPath id="startup-splash-band-5"><rect x="100" y="300.83" width="312" height="46.34" /></clipPath>
3512
+ <clipPath id="startup-splash-band-6"><rect x="100" y="346.17" width="312" height="46.34" /></clipPath>
3513
+ </defs>
3514
+ <g stroke="currentColor" stroke-width="30" stroke-linecap="round" stroke-linejoin="round">
3515
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-1)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3516
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-2)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3517
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-3)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3518
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-4)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3519
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-5)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3520
+ <g class="splash-band"><g class="splash-band-glitch" clip-path="url(#startup-splash-band-6)"><use class="splash-band-ghost" href="#startup-splash-n" /><use href="#startup-splash-n" /></g></g>
3157
3521
  </g>
3158
3522
  </svg>
3159
- <span id="startup-splash-sheen"></span>
3160
3523
  </div>
3161
3524
  <div id="startup-splash-word" aria-hidden="true"><span>n</span><span>e</span><span>r</span><span>v</span><span>e</span></div>
3162
3525
  <p id="startup-splash-status" aria-live="polite">${escapeHtml(statusText)}</p>
@@ -3166,6 +3529,7 @@ function startupSplashMarkup(statusText) {
3166
3529
  </div>
3167
3530
  </div>
3168
3531
  </div>
3532
+ <p id="startup-splash-version">${version2 ? `Nerve ${escapeHtml(version2)}` : ""}</p>
3169
3533
  </div>
3170
3534
  <!-- startup-splash:end -->`;
3171
3535
  }
@@ -3189,7 +3553,7 @@ function createDataUrl(html) {
3189
3553
  return `data:text/html;charset=utf-8,${encodeURIComponent(html)}`;
3190
3554
  }
3191
3555
  function loadingHtml(options = {}) {
3192
- const { status = "Starting local services", appearance } = options;
3556
+ const { status = "Starting local services", appearance, version: version2 } = options;
3193
3557
  return `<!doctype html>
3194
3558
  <html lang="en" ${modeAttribute(appearance)}>
3195
3559
  <head>
@@ -3200,7 +3564,7 @@ function loadingHtml(options = {}) {
3200
3564
  <style>${shellStyles(appearance)}</style>
3201
3565
  </head>
3202
3566
  <body>
3203
- ${startupSplashMarkup(status)}
3567
+ ${startupSplashMarkup(status, version2)}
3204
3568
  </body>
3205
3569
  </html>`;
3206
3570
  }
@@ -3521,6 +3885,7 @@ var DesktopRuntime = class {
3521
3885
  getMainWindow: () => runtime.#mainWindow,
3522
3886
  getManagedDaemon: () => runtime.#managedDaemon,
3523
3887
  showMainWindow,
3888
+ recreateMainWindow,
3524
3889
  hideWindow,
3525
3890
  requestQuit,
3526
3891
  restartDaemon: () => {
@@ -3604,7 +3969,10 @@ var DesktopRuntime = class {
3604
3969
  const splashShownAt = ports.now();
3605
3970
  runtime.#trayController.ensureTray();
3606
3971
  runtime.#listenerDisposers.push(ports.nativeTheme.onUpdated(runtime.#trayController.updateTrayIcon));
3607
- await window.loadURL(runtime.#shellPageUrls.create(loadingHtml({ appearance: ports.windows.appearance() })));
3972
+ await window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
3973
+ appearance: ports.windows.appearance(),
3974
+ version: ports.application.version
3975
+ })));
3608
3976
  const currentSettings = await readStartupSettings();
3609
3977
  runtime.#desktopConfiguration = desktopConfigurationController2.resolve(currentSettings);
3610
3978
  desktopConfigurationController2.apply(currentSettings, runtime.#desktopConfiguration, false);
@@ -3711,6 +4079,28 @@ var DesktopRuntime = class {
3711
4079
  }
3712
4080
  await startMainWindow(window);
3713
4081
  }
4082
+ async function recreateMainWindow() {
4083
+ await runtime.#startupAttempt?.catch(() => void 0);
4084
+ const previous = runtime.#mainWindow;
4085
+ if (!previous || previous.isDestroyed()) {
4086
+ await openMainWindow();
4087
+ return;
4088
+ }
4089
+ const bounds = previous.getNormalBounds();
4090
+ const maximized = previous.isMaximized();
4091
+ runtime.#mainWindow = void 0;
4092
+ previous.destroy();
4093
+ const window = createMainWindow();
4094
+ if (!window)
4095
+ return;
4096
+ window.setBounds(bounds);
4097
+ if (maximized)
4098
+ window.maximize();
4099
+ void desktopLog("info", "window", "Recreated main window", {
4100
+ context: { maximized }
4101
+ });
4102
+ await startMainWindow(window);
4103
+ }
3714
4104
  function startMainWindow(window, splashAlreadyShownAt) {
3715
4105
  runtime.#startupAttempt ??= performMainWindowStartup(window, splashAlreadyShownAt).finally(() => {
3716
4106
  runtime.#startupAttempt = void 0;
@@ -3728,7 +4118,10 @@ var DesktopRuntime = class {
3728
4118
  if (splashShownAt !== void 0)
3729
4119
  return Promise.resolve();
3730
4120
  splashShownAt = ports.now();
3731
- return window.loadURL(runtime.#shellPageUrls.create(loadingHtml({ appearance: ports.windows.appearance() })));
4121
+ return window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
4122
+ appearance: ports.windows.appearance(),
4123
+ version: ports.application.version
4124
+ })));
3732
4125
  },
3733
4126
  connectDaemon: async () => {
3734
4127
  if (!runtime.#managedDaemon) {
@@ -4028,7 +4421,8 @@ function createDesktopRuntimePorts() {
4028
4421
  platform: process.platform,
4029
4422
  architecture: process.arch,
4030
4423
  electronVersion: process.versions.electron,
4031
- chromeVersion: process.versions.chrome
4424
+ chromeVersion: process.versions.chrome,
4425
+ version: app.getVersion()
4032
4426
  },
4033
4427
  signals: {
4034
4428
  onSignal: (signal, listener) => {
@@ -4039,17 +4433,26 @@ function createDesktopRuntimePorts() {
4039
4433
  windows: {
4040
4434
  getAllWindows: () => BrowserWindow.getAllWindows(),
4041
4435
  appearance: windowAppearance.current,
4042
- createMainWindow: (windowOptions) => createDesktopMainWindow(windowOptions, {
4043
- createWindow: (browserWindowOptions) => new BrowserWindow(browserWindowOptions),
4044
- windowAppearance: windowAppearance.current,
4045
- resolveAppIconPath,
4046
- resolvePreloadPath,
4047
- platform: process.platform,
4048
- developmentSlot: parseDevelopmentSlot(process.env.NERVE_DESKTOP_DEV_SLOT),
4049
- log: desktopLog,
4050
- redactUrl: redactUrlForLog,
4051
- installNavigationGuards
4052
- })
4436
+ createMainWindow: (windowOptions) => {
4437
+ const window = createDesktopMainWindow(windowOptions, {
4438
+ createWindow: (browserWindowOptions) => new BrowserWindow(browserWindowOptions),
4439
+ windowAppearance: windowAppearance.current,
4440
+ resolveAppIconPath,
4441
+ resolvePreloadPath,
4442
+ platform: process.platform,
4443
+ developmentSlot: parseDevelopmentSlot(process.env.NERVE_DESKTOP_DEV_SLOT),
4444
+ log: desktopLog,
4445
+ redactUrl: redactUrlForLog,
4446
+ installNavigationGuards
4447
+ });
4448
+ installWindowHealthMonitor({
4449
+ window,
4450
+ powerMonitor,
4451
+ ipcMain,
4452
+ log: desktopLog
4453
+ });
4454
+ return window;
4455
+ }
4053
4456
  },
4054
4457
  nativeTheme: {
4055
4458
  onUpdated: (listener) => {
@@ -4077,6 +4480,21 @@ function createDesktopRuntimePorts() {
4077
4480
  };
4078
4481
  }
4079
4482
 
4483
+ // packages/desktop-shell/dist/platform/chromium/remote-debugging.js
4484
+ var REMOTE_DEBUGGING_PORT_ENV = "NERVE_ELECTRON_REMOTE_DEBUGGING_PORT";
4485
+ function takeElectronRemoteDebuggingPort(env) {
4486
+ const value = env[REMOTE_DEBUGGING_PORT_ENV];
4487
+ delete env[REMOTE_DEBUGGING_PORT_ENV];
4488
+ const normalized = value?.trim();
4489
+ if (!normalized)
4490
+ return void 0;
4491
+ const port = Number(normalized);
4492
+ if (/^\d+$/.test(normalized) && port >= 1 && port <= 65535)
4493
+ return port;
4494
+ console.warn(`Ignoring invalid ${REMOTE_DEBUGGING_PORT_ENV}=${JSON.stringify(value)}. Expected a port from 1 to 65535.`);
4495
+ return void 0;
4496
+ }
4497
+
4080
4498
  // packages/desktop-shell/dist/main.js
4081
4499
  app.on("open-file", (event, path) => {
4082
4500
  event.preventDefault();
@@ -4091,6 +4509,7 @@ if (isReleaseMode) {
4091
4509
  delete process.env.NERVE_DEV_SCRIPTED_PROVIDER;
4092
4510
  delete process.env.NERVE_DESKTOP_DEV_SLOT;
4093
4511
  }
4512
+ applyElectronRemoteDebuggingPort(takeElectronRemoteDebuggingPort(process.env));
4094
4513
  var desktopOptions = parseDesktopOptions(process.argv.slice(1));
4095
4514
  var explicitElectronProfile = process.env.NERVE_ELECTRON_USER_DATA?.trim();
4096
4515
  if (explicitElectronProfile) {