@nervekit/desktop 0.40.2 → 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.
- package/README.md +5 -2
- package/THIRD-PARTY-LICENSES.txt +964 -4
- package/dist/bin.js +1 -0
- package/dist/{chunk-YJT4NXMV.js → chunk-2ICPO4UM.js} +5 -5
- package/dist/{chunk-EX63VKXY.js → chunk-3CZXUKLG.js} +1 -1
- package/dist/{chunk-KTGSBL6T.js → chunk-4OCDR4DU.js} +11 -11
- package/dist/{chunk-BNVMNV4O.js → chunk-62DQXVPO.js} +2 -2
- package/dist/{chunk-K2J2VZXO.js → chunk-6GUJQURI.js} +2 -2
- package/dist/{chunk-VBM7TD3X.js → chunk-6IHXVT5H.js} +1 -1
- package/dist/{chunk-KBNEZR7T.js → chunk-6ZS7TA6E.js} +2 -2
- package/dist/{chunk-O6U226AI.js → chunk-7FSH3ABG.js} +4 -4
- package/dist/{chunk-RPLBWENJ.js → chunk-7HGFEQSD.js} +5 -5
- package/dist/{chunk-XZYFB566.js → chunk-7RPHIJT3.js} +4 -4
- package/dist/{chunk-WRTA5G57.js → chunk-APY4TUR3.js} +188 -1
- package/dist/{chunk-YUO5V75X.js → chunk-BACYVEE6.js} +2 -2
- package/dist/{chunk-H2G55ZPG.js → chunk-BG2KGLIA.js} +2 -2
- package/dist/{chunk-7JQBECUL.js → chunk-BN5YDZUZ.js} +1205 -326
- package/dist/chunk-BUD4JHBZ.js +7017 -0
- package/dist/{chunk-TSV3PFU2.js → chunk-DDBE2VLT.js} +2 -2
- package/dist/{chunk-WJULIJOU.js → chunk-EF7ZZKA3.js} +3 -3
- package/dist/{chunk-HOCODVKL.js → chunk-EUT45AKW.js} +16 -16
- package/dist/{chunk-C6RO4LP3.js → chunk-FCAIYPDJ.js} +2 -2
- package/dist/{chunk-6FSDDGFZ.js → chunk-FZ557YWE.js} +47478 -52993
- package/dist/{chunk-VC6TX2Y2.js → chunk-HPINJGBO.js} +5 -5
- package/dist/{chunk-ANI6J75M.js → chunk-IRRR3PWN.js} +7 -7
- package/dist/{chunk-S62LLS4I.js → chunk-IVBMHEPK.js} +12 -12
- package/dist/{chunk-SU2USXTD.js → chunk-JBEWFFOK.js} +1 -1
- package/dist/{chunk-3VZR3ZUY.js → chunk-KEXKZKN4.js} +6 -6
- package/dist/{chunk-ODS5QROC.js → chunk-KUFIFCB4.js} +1 -1
- package/dist/{chunk-L2DHKP5C.js → chunk-L5WGVYXM.js} +2 -2
- package/dist/{chunk-WIN7KHMV.js → chunk-LGIIT2NF.js} +12 -12
- package/dist/{chunk-2BKMOJYJ.js → chunk-LP4APBBQ.js} +1 -1
- package/dist/{chunk-6PACEIUY.js → chunk-MI6L5CEA.js} +2 -2
- package/dist/{chunk-HDBDYGJQ.js → chunk-N4OXAS3A.js} +1 -1
- package/dist/{chunk-KSSM6LUI.js → chunk-N6BUYKF3.js} +5 -5
- package/dist/{chunk-MWIKZIAI.js → chunk-NVVW3MWJ.js} +9 -9
- package/dist/{chunk-VTDI5KP7.js → chunk-O5JHHRFN.js} +19 -19
- package/dist/{chunk-F3MHINI6.js → chunk-O6FDXE54.js} +16 -16
- package/dist/{chunk-E4JNHQGT.js → chunk-OMCM3MHS.js} +7 -7
- package/dist/{chunk-7FLZA2BD.js → chunk-P72Y5ZBH.js} +7 -7
- package/dist/{chunk-O2652RWY.js → chunk-PVPJAGWR.js} +2 -2
- package/dist/{chunk-UDC7NPQJ.js → chunk-Q3C7TQ2M.js} +3 -3
- package/dist/{chunk-B4IE2GAM.js → chunk-Q5E4ZL2R.js} +1 -1
- package/dist/{chunk-5NN7JAJ2.js → chunk-QFK2SWD2.js} +7 -7
- package/dist/{chunk-SHEU5KLD.js → chunk-RJR7DJJK.js} +3 -3
- package/dist/{chunk-4H3WR7IT.js → chunk-RL52LSTV.js} +1 -1
- package/dist/{chunk-FGZX4Q7W.js → chunk-RTB6CF7F.js} +15 -15
- package/dist/{chunk-PST63OUS.js → chunk-SDDKYMIP.js} +18313 -4317
- package/dist/{chunk-QBAIDKF6.js → chunk-TQURLRHD.js} +1 -1
- package/dist/{chunk-3SSNDIQT.js → chunk-TSAUBRRU.js} +1 -1
- package/dist/{chunk-ER2ES2RH.js → chunk-U3TEC52G.js} +1 -1
- package/dist/{chunk-XY53EFK3.js → chunk-U5KGV63C.js} +1 -1
- package/dist/{chunk-WYPVD3HW.js → chunk-UVRULOOP.js} +10 -10
- package/dist/{chunk-4VPX67B7.js → chunk-VOATSLRG.js} +3 -1
- package/dist/{chunk-TGKIV3F4.js → chunk-W7LEYYFH.js} +18 -18
- package/dist/{chunk-T6NRMNLQ.js → chunk-WC5HHPPM.js} +1 -1
- package/dist/{chunk-YQFENES6.js → chunk-WG62RHZ2.js} +3 -3
- package/dist/{chunk-XE2E2KBP.js → chunk-WIQEPAUG.js} +10 -10
- package/dist/{chunk-DTGL5P2V.js → chunk-XM27UVWN.js} +3 -3
- package/dist/{chunk-3JJN36GV.js → chunk-XTUSLUQ7.js} +16 -16
- package/dist/{chunk-OAEV22IW.js → chunk-Z6AY5VOZ.js} +6 -6
- package/dist/{chunk-FZ5N6WXF.js → chunk-ZGWXLG5X.js} +18 -18
- package/dist/{chunk-6TAN6WG6.js → chunk-ZUWBEV2O.js} +1 -1
- package/dist/{chunk-OANTMDXI.js → chunk-ZVH6EB7S.js} +1 -1
- package/dist/daemon.js +65 -31
- package/dist/extension-assets/atlassian/docs/confluence-raw.md +31 -0
- package/dist/extension-assets/atlassian/docs/confluence-writing.md +101 -0
- package/dist/extension-assets/atlassian/docs/jira-raw.md +16 -0
- package/dist/extension-assets/atlassian/docs/jira-workflows.md +77 -0
- package/dist/extension-assets/atlassian/docs/project-knowledge.md +25 -0
- package/dist/extension-assets/atlassian/docs/storage.md +58 -0
- package/dist/extension-assets/atlassian/icon.svg +20 -0
- package/dist/extension-assets/diagram/docs/diagrams.md +12 -0
- package/dist/extension-assets/imagegen/docs/imagegen.md +17 -0
- package/dist/extension-assets/web-search/icon.svg +1 -0
- package/dist/git-isolated-reader-helper.js +1 -1
- package/dist/html-to-markdown.worker.js +6 -7028
- package/dist/main.js +583 -169
- package/dist/preload.cjs +45 -2
- package/dist/quick-script-docs/runtime/documents.md +54 -0
- package/dist/quick-script-docs/runtime/files.md +11 -0
- package/dist/quick-script-docs/runtime/images.md +10 -0
- package/dist/sandbox-libraries/docx.LICENSE +21 -0
- package/dist/sandbox-libraries/docx.min.js +9 -0
- package/dist/sandbox-libraries/jszip.LICENSE +651 -0
- package/dist/sandbox-libraries/jszip.min.js +13 -0
- package/dist/sandbox-libraries/mammoth.LICENSE +22 -0
- package/dist/sandbox-libraries/mammoth.browser.min.js +13 -0
- package/dist/sandbox-libraries/papaparse.LICENSE +20 -0
- package/dist/sandbox-libraries/papaparse.min.js +7 -0
- package/dist/sandbox-libraries/pptxgen.bundle.js +96 -0
- package/dist/sandbox-libraries/pptxgenjs.LICENSE +21 -0
- package/dist/sandbox-libraries/xlsx.LICENSE +201 -0
- package/dist/sandbox-libraries/xlsx.full.min.js +24 -0
- package/dist/web/assets/{AsyncBashCenterHost-BvXKoCVr.js → AsyncBashCenterHost-D2Sy43Ub.js} +1 -1
- package/dist/web/assets/ConversationListItem-DvxCcAYm.js +3 -0
- package/dist/web/assets/ConversationsWorkbenchPanel-YeNq9LRn.js +1 -0
- package/dist/web/assets/DiscoverCenterHost-B6K-QnBF.js +1 -0
- package/dist/web/assets/{FileCenterHost-C_7XZAFZ.js → FileCenterHost-Dlk53K5G.js} +1 -1
- package/dist/web/assets/FilesWorkbenchPanel-PeCu12oU.js +12 -0
- package/dist/web/assets/{GitDiffCenterHost-Cr7lqGI_.js → GitDiffCenterHost-3_Ea0RyG.js} +1 -1
- package/dist/web/assets/{GitWorkbenchPanel-BFbwUgIN.js → GitWorkbenchPanel-CYvCkOAW.js} +1 -1
- package/dist/web/assets/{LaunchCenterHost-CIu7bcoZ.js → LaunchCenterHost-CP773N_3.js} +1 -1
- package/dist/web/assets/LaunchConfigurationNotice-CtmZ1uIQ.js +1 -0
- package/dist/web/assets/{LaunchesWorkbenchPanel-BqzJvsrj.js → LaunchesWorkbenchPanel-DP3yVfkO.js} +1 -1
- package/dist/web/assets/LogsCenterHost-BFP0doQf.js +1 -0
- package/dist/web/assets/{MermaidCenterHost-DVsZB8nB.js → MermaidCenterHost-Bjl6Dvrq.js} +1 -1
- package/dist/web/assets/MobileFilesBody-CDp21MGZ.js +1 -0
- package/dist/web/assets/{MobileFilesHost-D843vkDF.js → MobileFilesHost-DlJI_yau.js} +1 -1
- package/dist/web/assets/MobileLaunchOutputHost-y3TehLWF.js +1 -0
- package/dist/web/assets/MobileLaunchesHost-CBNtDTrs.js +2 -0
- package/dist/web/assets/MobileLogsHost-BSb2lydK.js +1 -0
- package/dist/web/assets/MobileNoteEditorHost-7yW7hIC2.js +1 -0
- package/dist/web/assets/{MobileNotesHost-meLV39Yw.js → MobileNotesHost-CvDHzpAh.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsHost-A49Fdn54.js → MobileProjectSettingsHost-CjtPfyKT.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsPageHost-BXpUqS_N.js → MobileProjectSettingsPageHost-j_7N-B9L.js} +1 -1
- package/dist/web/assets/{MobileSettingsHost-DPKPajzI.js → MobileSettingsHost-DXIKNF01.js} +1 -1
- package/dist/web/assets/{MobileSettingsPageHost-izNWGN0i.js → MobileSettingsPageHost-CEzo7J9p.js} +1 -1
- package/dist/web/assets/MobileSettingsPageScreen-99wMLRsn.js +1 -0
- package/dist/web/assets/NotesWorkbenchPanel-DqTwXBBv.js +1 -0
- package/dist/web/assets/ProjectSettingsCenterHost-D96cL0uH.js +1 -0
- package/dist/web/assets/{PullRequestCenterHost-BYkWxXQe.js → PullRequestCenterHost-DY0yPDK2.js} +1 -1
- package/dist/web/assets/PullRequestsWorkbenchPanel-D07LE8vJ.js +1 -0
- package/dist/web/assets/{SearchWorkbenchPanel-DaC0smfe.js → SearchWorkbenchPanel-D2_3iXo8.js} +1 -1
- package/dist/web/assets/SettingsCenter-BQWc24di.js +1 -0
- package/dist/web/assets/SettingsCenterHost-BvgNfeZN.js +1 -0
- package/dist/web/assets/{SystemPromptCenterHost-B1hfsfAn.js → SystemPromptCenterHost-BLHkB7lp.js} +1 -1
- package/dist/web/assets/activity-notices-C9aphS1s.js +1 -0
- package/dist/web/assets/adapters-DNU88KT0.js +1 -0
- package/dist/web/assets/agent-profiles.svelte-DgI8wSS2.js +1 -0
- package/dist/web/assets/api-CHNbLvvY.js +1 -0
- package/dist/web/assets/center-tabs.svelte-CyhCD_6b.js +1 -0
- package/dist/web/assets/channel-6wGoOwGx.js +57 -0
- package/dist/web/assets/circle-question-mark-C7NgqbLL.js +1 -0
- package/dist/web/assets/code-DJR0pnqV.js +7 -0
- package/dist/web/assets/{confirm-dialog-Bw_IxcZD.js → confirm-dialog-BDjzMiC4.js} +1 -1
- package/dist/web/assets/{conversation-connection-3GxIuhbS.js → conversation-connection-mLNyfV2d.js} +1 -1
- package/dist/web/assets/dialog-CkRcLEJT.js +1 -0
- package/dist/web/assets/discover-Dh4m7djO.js +4 -0
- package/dist/web/assets/dist-DSApqEag.js +1 -0
- package/dist/web/assets/file-tabs.svelte-cX3MMyG6.js +2 -0
- package/dist/web/assets/filesystem-BbIXrkGB.js +1 -0
- package/dist/web/assets/{git-store.svelte-CM5k7yRU.js → git-store.svelte-D3uwRVnj.js} +1 -1
- package/dist/web/assets/{git.api-D2CfUXZW.js → git.api-CTu-tG8A.js} +1 -1
- package/dist/web/assets/index-BrxjAwg0.js +46 -0
- package/dist/web/assets/index-yEOHI1Z7.css +1 -0
- package/dist/web/assets/launches-CC4gLnSa.js +5 -0
- package/dist/web/assets/{launches.api-BZxyWF8t.js → launches.api-CaotSs6l.js} +1 -1
- package/dist/web/assets/launches.svelte-DDA5J-RZ.js +2 -0
- package/dist/web/assets/{message-square-CqLxHJuW.js → list-checks-zV9Dp7Cu.js} +1 -1
- package/dist/web/assets/{logs.api-Coi8HJuy.js → logs.api-DMmVlkSz.js} +1 -1
- package/dist/web/assets/{maintenance-state.svelte-CDO9i4dk.js → maintenance-state.svelte-l9v7Hg3i.js} +2 -2
- package/dist/web/assets/notify.svelte-BTEXJZ8P.js +1 -0
- package/dist/web/assets/popover-panel-C-weKOk3.js +5 -0
- package/dist/web/assets/pr-view-loader.svelte-C0NClMS6.js +1 -0
- package/dist/web/assets/progress-CKEsTSOk.js +1 -0
- package/dist/web/assets/scratch-notes-state.svelte-B_rY_-9q.js +1 -0
- package/dist/web/assets/{scratch-notes.api-Cbvag3bv.js → scratch-notes.api-B2gOOK6Z.js} +1 -1
- package/dist/web/assets/search-input-CEr0SmAB.js +1 -0
- package/dist/web/assets/settings-2-CWd8Y06n.js +1 -0
- package/dist/web/assets/settings-CRmC19nG.js +1 -0
- package/dist/web/assets/settings-CXoAzSmm.js +1 -0
- package/dist/web/assets/settings-actions.svelte-BB6u_lQ0.js +1 -0
- package/dist/web/assets/settings-page-controllers.svelte-al78EDTL.js +29 -0
- package/dist/web/assets/sheet-content-DauQ7hPL.js +1 -0
- package/dist/web/assets/shell-CYbWnH52.js +4 -0
- package/dist/web/assets/shell-layout.svelte-CmEWk428.js +2 -0
- package/dist/web/assets/textarea-BEZ65po_.js +1 -0
- package/dist/web/assets/views-BumCSQ3W.js +2 -0
- package/dist/web/assets/{workbench-connection-gGGv4o8i.js → workbench-connection-CGHdORw3.js} +1 -1
- package/dist/web/assets/{workspace-Cc47dGjw.js → workspace-CW738NJG.js} +1 -1
- package/dist/web/assets/{workspace-actions.svelte-B3oum_9S.js → workspace-actions.svelte-DL9xv7lJ.js} +1 -1
- package/dist/web/assets/workspace-selectors.svelte-BRJvPEBh.js +105 -0
- package/dist/web/index.html +142 -83
- package/dist/web/sw.js +1 -1
- package/dist/worker.js +14 -14
- package/package.json +7 -7
- package/dist/guides/confluence/SKILL.md +0 -36
- package/dist/guides/jira/SKILL.md +0 -34
- package/dist/web/assets/ConversationListItem-Caz2KiJH.js +0 -3
- package/dist/web/assets/ConversationsWorkbenchPanel-CIfK_e3I.js +0 -1
- package/dist/web/assets/DiscoverCenterHost-Ep8EN9iJ.js +0 -1
- package/dist/web/assets/FilesWorkbenchPanel-CtXo7ywG.js +0 -12
- package/dist/web/assets/LaunchConfigurationNotice-CJjWkMhv.js +0 -1
- package/dist/web/assets/LogsCenterHost-BI1fSxFW.js +0 -1
- package/dist/web/assets/MobileFilesBody-BJMoaP9I.js +0 -1
- package/dist/web/assets/MobileLaunchOutputHost-vpltMcar.js +0 -1
- package/dist/web/assets/MobileLaunchesHost-CdDrKASg.js +0 -2
- package/dist/web/assets/MobileLogsHost-qK7N-C1y.js +0 -1
- package/dist/web/assets/MobileNoteEditorHost-Bg1N8o54.js +0 -1
- package/dist/web/assets/MobileSettingsPageScreen-DWMg4fDo.js +0 -1
- package/dist/web/assets/NotesWorkbenchPanel-Bf6rySTL.js +0 -1
- package/dist/web/assets/ProjectSettingsCenterHost-DHeb274m.js +0 -1
- package/dist/web/assets/PullRequestsWorkbenchPanel-ZvGbi1Cr.js +0 -1
- package/dist/web/assets/SettingsCenter-C_NLBsi6.js +0 -1
- package/dist/web/assets/SettingsCenterHost-jP8MULEj.js +0 -1
- package/dist/web/assets/adapters-DxJoo6Za.js +0 -1
- package/dist/web/assets/agent-profiles.svelte-D5YHPc90.js +0 -1
- package/dist/web/assets/api-eaGLre0q.js +0 -1
- package/dist/web/assets/center-tabs.svelte-JJGozG_H.js +0 -1
- package/dist/web/assets/channel-B503YLZR.js +0 -57
- package/dist/web/assets/chevron-left-DPEFG6UJ.js +0 -1
- package/dist/web/assets/circle-alert-Cp2l2jcj.js +0 -5
- package/dist/web/assets/clock-Db6f9HtS.js +0 -1
- package/dist/web/assets/code-BRQC0Tpn.js +0 -7
- package/dist/web/assets/dialog-DU4gXD1J.js +0 -1
- package/dist/web/assets/discover-B-aZ504j.js +0 -4
- package/dist/web/assets/dist-B_NFPhKV.js +0 -1
- package/dist/web/assets/file-tabs.svelte-DKtVVVCq.js +0 -2
- package/dist/web/assets/filesystem-ReGivxAC.js +0 -1
- package/dist/web/assets/index-DIQuyMVT.css +0 -1
- package/dist/web/assets/index-TZ1KAAsX.js +0 -48
- package/dist/web/assets/launches-DiAl56ED.js +0 -5
- package/dist/web/assets/launches.svelte-BVs1pAhl.js +0 -2
- package/dist/web/assets/notebook-pen-lVsLYSe4.js +0 -1
- package/dist/web/assets/notify.svelte-BKVBraTJ.js +0 -1
- package/dist/web/assets/pencil-BrlypebI.js +0 -1
- package/dist/web/assets/pr-view-loader.svelte-DcIwqDJV.js +0 -1
- package/dist/web/assets/progress-DBCSpVPn.js +0 -1
- package/dist/web/assets/scratch-notes-state.svelte-Br_WiMEp.js +0 -1
- package/dist/web/assets/search-input-zU4WCZiz.js +0 -1
- package/dist/web/assets/settings-2-8MSBUGAl.js +0 -1
- package/dist/web/assets/settings-9LBrw4Nv.js +0 -1
- package/dist/web/assets/settings-B7uXsflY.js +0 -1
- package/dist/web/assets/settings-actions.svelte-B8psX3cj.js +0 -1
- package/dist/web/assets/settings-page-controllers.svelte-D_ydJF8u.js +0 -30
- package/dist/web/assets/shell-DB5Db5-E.js +0 -4
- package/dist/web/assets/shell-layout.svelte-OoLFwzzJ.js +0 -2
- package/dist/web/assets/textarea-CeoFJ0-t.js +0 -1
- package/dist/web/assets/views-ByPCKDiZ.js +0 -2
- package/dist/web/assets/workspace-selectors.svelte-DLUlSgEE.js +0 -131
- /package/dist/{html-to-markdown.worker.js.LEGAL.txt → chunk-BUD4JHBZ.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-3VZR3ZUY.js.LEGAL.txt → chunk-KEXKZKN4.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-PST63OUS.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-
|
|
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,19 +39,19 @@ import {
|
|
|
38
39
|
serverHealthSchema,
|
|
39
40
|
settingsSchema,
|
|
40
41
|
storagePaths
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
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";
|
|
54
55
|
import "./chunk-CWESUMYQ.js";
|
|
55
56
|
|
|
56
57
|
// packages/desktop-shell/dist/main.js
|
|
@@ -66,7 +67,7 @@ async function checkHomeAdmission(home) {
|
|
|
66
67
|
// packages/desktop-shell/dist/platform/electron/electron-api.js
|
|
67
68
|
import { createRequire } from "node:module";
|
|
68
69
|
var require2 = createRequire(import.meta.url);
|
|
69
|
-
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");
|
|
70
71
|
|
|
71
72
|
// packages/desktop-shell/dist/app/cli-options.js
|
|
72
73
|
function parseDesktopOptions(args) {
|
|
@@ -184,6 +185,11 @@ function applyElectronOzonePlatform(platform) {
|
|
|
184
185
|
return;
|
|
185
186
|
app.commandLine.appendSwitch("ozone-platform", platformSwitch);
|
|
186
187
|
}
|
|
188
|
+
function applyElectronRemoteDebuggingPort(port) {
|
|
189
|
+
if (port === void 0)
|
|
190
|
+
return;
|
|
191
|
+
app.commandLine.appendSwitch("remote-debugging-port", String(port));
|
|
192
|
+
}
|
|
187
193
|
function applyElectronFontRenderHinting(hinting) {
|
|
188
194
|
if (process.platform !== "linux" || !hinting || hinting === "system")
|
|
189
195
|
return;
|
|
@@ -2551,12 +2557,16 @@ function createTrayController(dependencies) {
|
|
|
2551
2557
|
kill: (target, signal) => process.kill(target, signal)
|
|
2552
2558
|
});
|
|
2553
2559
|
void desktopLog(pid === void 0 ? "warn" : "info", "tray", pid === void 0 ? "No GPU process to restart" : "Restarted GPU process from tray", { context: { pid } });
|
|
2554
|
-
dependencies.getMainWindow()?.webContents.reloadIgnoringCache();
|
|
2555
2560
|
} catch (error) {
|
|
2556
2561
|
void desktopLog("error", "tray", "Failed to restart GPU process", {
|
|
2557
2562
|
error
|
|
2558
2563
|
});
|
|
2559
2564
|
}
|
|
2565
|
+
void dependencies.recreateMainWindow().catch((error) => {
|
|
2566
|
+
void desktopLog("error", "tray", "Failed to recreate main window", {
|
|
2567
|
+
error
|
|
2568
|
+
});
|
|
2569
|
+
});
|
|
2560
2570
|
}
|
|
2561
2571
|
function updateTrayIcon() {
|
|
2562
2572
|
if (!tray)
|
|
@@ -2720,6 +2730,191 @@ function installWindowLifecycle(window, callbacks, dependencies) {
|
|
|
2720
2730
|
window.on("blur", () => callbacks.sendWindowState(window));
|
|
2721
2731
|
}
|
|
2722
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
|
+
|
|
2723
2918
|
// packages/desktop-shell/dist/window/navigation-guards.js
|
|
2724
2919
|
function classifyNavigationTarget(rawUrl, daemonUrl) {
|
|
2725
2920
|
try {
|
|
@@ -2845,25 +3040,41 @@ font-family: var(--splash-font-sans);
|
|
|
2845
3040
|
/* Frameless desktop window: the backdrop moves it while no titlebar
|
|
2846
3041
|
exists; ignored outside Electron. */
|
|
2847
3042
|
-webkit-app-region: drag;
|
|
2848
|
-
transition:
|
|
2849
|
-
opacity 280ms ease,
|
|
2850
|
-
transform 280ms ease,
|
|
2851
|
-
filter 280ms ease;
|
|
2852
3043
|
}
|
|
2853
3044
|
/* Hidden while a startup failure is shown; a retry shows it again. */
|
|
2854
3045
|
#startup-splash.is-hidden {
|
|
2855
3046
|
display: none;
|
|
2856
3047
|
}
|
|
2857
3048
|
#startup-splash.is-dismissed {
|
|
2858
|
-
opacity: 0;
|
|
2859
|
-
transform: scale(1.03);
|
|
2860
|
-
filter: blur(4px);
|
|
2861
3049
|
pointer-events: none;
|
|
2862
3050
|
/* Drag regions ignore pointer-events; release the window during the
|
|
2863
|
-
|
|
3051
|
+
exit so the revealed workbench is clickable at once. */
|
|
2864
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);
|
|
2865
3075
|
}
|
|
2866
3076
|
#startup-splash-content {
|
|
3077
|
+
position: relative;
|
|
2867
3078
|
-webkit-app-region: no-drag;
|
|
2868
3079
|
transform: scale(var(--nerve-inverse-zoom-scale, 1));
|
|
2869
3080
|
transform-origin: center;
|
|
@@ -2878,76 +3089,91 @@ animation-delay: var(--splash-t0, 0ms);
|
|
|
2878
3089
|
}
|
|
2879
3090
|
#startup-splash-plate {
|
|
2880
3091
|
position: relative;
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
height: 3rem;
|
|
2886
|
-
border-radius: 0.625rem;
|
|
2887
|
-
color: var(--splash-bg);
|
|
2888
|
-
animation: splash-beat 2400ms cubic-bezier(0.22, 1, 0.36, 1) infinite
|
|
2889
|
-
both;
|
|
2890
|
-
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);
|
|
2891
3096
|
}
|
|
2892
|
-
#startup-splash-plate
|
|
2893
|
-
|
|
3097
|
+
#startup-splash-plate-fill,
|
|
3098
|
+
#startup-splash .splash-ring {
|
|
2894
3099
|
position: absolute;
|
|
2895
3100
|
inset: 0;
|
|
2896
|
-
border-radius:
|
|
3101
|
+
border-radius: 0.375rem;
|
|
3102
|
+
}
|
|
3103
|
+
#startup-splash-plate-fill {
|
|
2897
3104
|
background: var(--splash-fg);
|
|
2898
|
-
animation:
|
|
2899
|
-
|
|
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);
|
|
2900
3125
|
}
|
|
2901
3126
|
#startup-splash-mark {
|
|
2902
|
-
position:
|
|
2903
|
-
|
|
3127
|
+
position: absolute;
|
|
3128
|
+
inset: 18.75%;
|
|
2904
3129
|
width: 62.5%;
|
|
2905
3130
|
height: 62.5%;
|
|
3131
|
+
overflow: visible;
|
|
2906
3132
|
color: var(--splash-bg);
|
|
2907
|
-
animation: splash-ink
|
|
2908
|
-
animation-delay: calc(var(--splash-t0, 0ms) +
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
animation
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
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 {
|
|
2928
3173
|
stroke: var(--splash-primary);
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
animation: splash-
|
|
2932
|
-
both;
|
|
2933
|
-
animation-delay: calc(var(--splash-t0, 0ms) + 2200ms);
|
|
2934
|
-
}
|
|
2935
|
-
#startup-splash-sheen {
|
|
2936
|
-
position: absolute;
|
|
2937
|
-
z-index: 2;
|
|
2938
|
-
top: -60%;
|
|
2939
|
-
bottom: -60%;
|
|
2940
|
-
left: -40%;
|
|
2941
|
-
width: 34%;
|
|
2942
|
-
background: linear-gradient(
|
|
2943
|
-
90deg,
|
|
2944
|
-
transparent,
|
|
2945
|
-
color-mix(in oklab, var(--splash-bg) 65%, transparent),
|
|
2946
|
-
transparent
|
|
2947
|
-
);
|
|
2948
|
-
transform: rotate(18deg) translateX(460%);
|
|
2949
|
-
animation: splash-sheen 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
2950
|
-
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);
|
|
2951
3177
|
}
|
|
2952
3178
|
#startup-splash-word {
|
|
2953
3179
|
margin-top: 0.875rem;
|
|
@@ -2957,27 +3183,31 @@ line-height: 1;
|
|
|
2957
3183
|
letter-spacing: -0.01em;
|
|
2958
3184
|
}
|
|
2959
3185
|
#startup-splash-word span {
|
|
3186
|
+
--letter-x: -0.75rem;
|
|
3187
|
+
--letter-i: 0;
|
|
2960
3188
|
display: inline-block;
|
|
2961
|
-
animation: splash-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
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
|
+
);
|
|
2965
3193
|
}
|
|
2966
3194
|
#startup-splash-word span:nth-child(2) {
|
|
2967
|
-
|
|
3195
|
+
--letter-x: 0.75rem;
|
|
3196
|
+
--letter-i: 1;
|
|
2968
3197
|
}
|
|
2969
3198
|
#startup-splash-word span:nth-child(3) {
|
|
2970
|
-
|
|
3199
|
+
--letter-i: 2;
|
|
2971
3200
|
}
|
|
2972
3201
|
#startup-splash-word span:nth-child(4) {
|
|
2973
|
-
|
|
3202
|
+
--letter-x: 0.75rem;
|
|
3203
|
+
--letter-i: 3;
|
|
2974
3204
|
}
|
|
2975
3205
|
#startup-splash-word span:nth-child(5) {
|
|
2976
|
-
|
|
3206
|
+
--letter-i: 4;
|
|
2977
3207
|
}
|
|
2978
3208
|
#startup-splash-status {
|
|
2979
3209
|
width: min(21rem, calc(100vw - 3rem));
|
|
2980
|
-
margin: 1.
|
|
3210
|
+
margin: 1.125rem 0 0;
|
|
2981
3211
|
overflow: hidden;
|
|
2982
3212
|
color: var(--splash-muted);
|
|
2983
3213
|
font-size: 0.875rem;
|
|
@@ -2993,18 +3223,15 @@ instead of snapping between sentences. */
|
|
|
2993
3223
|
animation: splash-status-swap 200ms ease-out both;
|
|
2994
3224
|
}
|
|
2995
3225
|
#startup-splash-detail {
|
|
2996
|
-
margin: 0
|
|
3226
|
+
margin: 0;
|
|
2997
3227
|
color: var(--splash-muted);
|
|
2998
3228
|
font-size: 0.75rem;
|
|
2999
3229
|
line-height: 1.25rem;
|
|
3000
3230
|
}
|
|
3001
|
-
#startup-splash [hidden] {
|
|
3002
|
-
display: none;
|
|
3003
|
-
}
|
|
3004
3231
|
#startup-splash-meter {
|
|
3005
|
-
width: min(
|
|
3006
|
-
height: 0.
|
|
3007
|
-
margin-top: 0.
|
|
3232
|
+
width: min(12rem, calc(100vw - 3rem));
|
|
3233
|
+
height: 0.125rem;
|
|
3234
|
+
margin-top: 0.375rem;
|
|
3008
3235
|
overflow: hidden;
|
|
3009
3236
|
border-radius: 999px;
|
|
3010
3237
|
background: var(--splash-border);
|
|
@@ -3044,80 +3271,202 @@ animation-delay: calc(var(--splash-t0, 0ms) + 1200ms);
|
|
|
3044
3271
|
transform: scaleX(1);
|
|
3045
3272
|
animation: none;
|
|
3046
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
|
+
}
|
|
3047
3318
|
@keyframes splash-push {
|
|
3048
3319
|
from {
|
|
3049
3320
|
transform: scale(1.035);
|
|
3050
3321
|
}
|
|
3051
3322
|
}
|
|
3052
|
-
@keyframes splash-
|
|
3323
|
+
@keyframes splash-fade {
|
|
3053
3324
|
from {
|
|
3054
3325
|
opacity: 0;
|
|
3055
|
-
clip-path: inset(0 0 100% 0 round 0.625rem);
|
|
3056
3326
|
}
|
|
3057
3327
|
}
|
|
3058
|
-
@keyframes splash-
|
|
3059
|
-
|
|
3060
|
-
|
|
3328
|
+
@keyframes splash-out {
|
|
3329
|
+
to {
|
|
3330
|
+
opacity: 0;
|
|
3061
3331
|
}
|
|
3062
3332
|
}
|
|
3063
|
-
@keyframes splash-
|
|
3064
|
-
|
|
3065
|
-
color:
|
|
3333
|
+
@keyframes splash-backdrop-out {
|
|
3334
|
+
to {
|
|
3335
|
+
background-color: transparent;
|
|
3066
3336
|
}
|
|
3067
3337
|
}
|
|
3068
|
-
@keyframes splash-
|
|
3338
|
+
@keyframes splash-band-in {
|
|
3069
3339
|
from {
|
|
3070
|
-
|
|
3340
|
+
opacity: 0;
|
|
3341
|
+
transform: translateX(var(--band-x));
|
|
3071
3342
|
}
|
|
3343
|
+
40% {
|
|
3344
|
+
opacity: 1;
|
|
3072
3345
|
}
|
|
3073
|
-
|
|
3074
|
-
|
|
3346
|
+
}
|
|
3347
|
+
@keyframes splash-band-out {
|
|
3348
|
+
60% {
|
|
3349
|
+
opacity: 1;
|
|
3350
|
+
}
|
|
3351
|
+
to {
|
|
3075
3352
|
opacity: 0;
|
|
3076
|
-
transform:
|
|
3353
|
+
transform: translateX(var(--band-x));
|
|
3077
3354
|
}
|
|
3078
3355
|
}
|
|
3079
|
-
@keyframes splash-
|
|
3356
|
+
@keyframes splash-plate {
|
|
3080
3357
|
from {
|
|
3081
3358
|
opacity: 0;
|
|
3359
|
+
transform: scale(0.3);
|
|
3082
3360
|
}
|
|
3083
3361
|
}
|
|
3084
|
-
@keyframes splash-
|
|
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 {
|
|
3085
3371
|
from {
|
|
3372
|
+
opacity: 0.9;
|
|
3373
|
+
transform: scale(1);
|
|
3374
|
+
}
|
|
3375
|
+
to {
|
|
3086
3376
|
opacity: 0;
|
|
3087
|
-
transform:
|
|
3377
|
+
transform: scale(2.4);
|
|
3088
3378
|
}
|
|
3089
3379
|
}
|
|
3090
|
-
@keyframes splash-
|
|
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 {
|
|
3091
3401
|
from {
|
|
3092
|
-
|
|
3402
|
+
color: var(--splash-fg);
|
|
3093
3403
|
}
|
|
3094
3404
|
}
|
|
3095
|
-
@keyframes splash-
|
|
3096
|
-
|
|
3097
|
-
|
|
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));
|
|
3098
3420
|
}
|
|
3099
|
-
|
|
3421
|
+
90% {
|
|
3422
|
+
transform: translateX(calc(var(--band-g) * -0.6));
|
|
3423
|
+
}
|
|
3424
|
+
92%,
|
|
3100
3425
|
100% {
|
|
3101
|
-
|
|
3426
|
+
transform: translateX(0);
|
|
3102
3427
|
}
|
|
3103
3428
|
}
|
|
3104
|
-
@keyframes splash-
|
|
3429
|
+
@keyframes splash-ghost {
|
|
3105
3430
|
0%,
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
color-mix(in oklab, var(--splash-primary) 55%, transparent);
|
|
3431
|
+
86% {
|
|
3432
|
+
opacity: 0;
|
|
3433
|
+
transform: translateX(0);
|
|
3110
3434
|
}
|
|
3111
|
-
|
|
3112
|
-
|
|
3435
|
+
88% {
|
|
3436
|
+
opacity: 0.9;
|
|
3437
|
+
transform: translateX(-8px);
|
|
3113
3438
|
}
|
|
3114
|
-
|
|
3115
|
-
|
|
3439
|
+
90% {
|
|
3440
|
+
opacity: 0.9;
|
|
3441
|
+
transform: translateX(8px);
|
|
3116
3442
|
}
|
|
3443
|
+
92%,
|
|
3117
3444
|
100% {
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
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);
|
|
3121
3470
|
}
|
|
3122
3471
|
}
|
|
3123
3472
|
@keyframes splash-shimmer {
|
|
@@ -3125,17 +3474,8 @@ to {
|
|
|
3125
3474
|
transform: translateX(250%);
|
|
3126
3475
|
}
|
|
3127
3476
|
}
|
|
3128
|
-
/* The settled composition is the base state, so suppressing the intro is enough
|
|
3129
|
-
for reduced motion and for the desktop hand-off after the shell already
|
|
3130
|
-
played it. Ambient .splash-loop motion keeps running while settled. */
|
|
3131
|
-
:root[data-splash-intro="settled"] #startup-splash *:not(.splash-loop),
|
|
3132
|
-
:root[data-splash-intro="settled"] #startup-splash *::before {
|
|
3133
|
-
animation: none !important;
|
|
3134
|
-
}
|
|
3135
3477
|
@media (prefers-reduced-motion: reduce) {
|
|
3136
|
-
#startup-splash
|
|
3137
|
-
transition-duration: 1ms;
|
|
3138
|
-
}
|
|
3478
|
+
#startup-splash,
|
|
3139
3479
|
#startup-splash *,
|
|
3140
3480
|
#startup-splash *::before,
|
|
3141
3481
|
#startup-splash *::after {
|
|
@@ -3147,21 +3487,39 @@ display: none;
|
|
|
3147
3487
|
}
|
|
3148
3488
|
/* startup-splash:end */
|
|
3149
3489
|
`;
|
|
3150
|
-
function startupSplashMarkup(statusText) {
|
|
3490
|
+
function startupSplashMarkup(statusText, version2) {
|
|
3151
3491
|
return `<!-- startup-splash:begin -->
|
|
3152
3492
|
<div id="startup-splash" aria-busy="true" aria-label="Starting Nerve">
|
|
3493
|
+
<span id="startup-splash-grid" aria-hidden="true"></span>
|
|
3153
3494
|
<div id="startup-splash-content">
|
|
3154
3495
|
<div id="startup-splash-stage">
|
|
3155
|
-
<div id="startup-splash-plate"
|
|
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>
|
|
3156
3500
|
<svg id="startup-splash-mark" viewBox="120 120 272 272" fill="none" focusable="false">
|
|
3157
|
-
<
|
|
3158
|
-
<
|
|
3159
|
-
<path
|
|
3160
|
-
<path
|
|
3161
|
-
<path
|
|
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>
|
|
3162
3521
|
</g>
|
|
3163
3522
|
</svg>
|
|
3164
|
-
<span id="startup-splash-sheen"></span>
|
|
3165
3523
|
</div>
|
|
3166
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>
|
|
3167
3525
|
<p id="startup-splash-status" aria-live="polite">${escapeHtml(statusText)}</p>
|
|
@@ -3171,6 +3529,7 @@ function startupSplashMarkup(statusText) {
|
|
|
3171
3529
|
</div>
|
|
3172
3530
|
</div>
|
|
3173
3531
|
</div>
|
|
3532
|
+
<p id="startup-splash-version">${version2 ? `Nerve ${escapeHtml(version2)}` : ""}</p>
|
|
3174
3533
|
</div>
|
|
3175
3534
|
<!-- startup-splash:end -->`;
|
|
3176
3535
|
}
|
|
@@ -3194,7 +3553,7 @@ function createDataUrl(html) {
|
|
|
3194
3553
|
return `data:text/html;charset=utf-8,${encodeURIComponent(html)}`;
|
|
3195
3554
|
}
|
|
3196
3555
|
function loadingHtml(options = {}) {
|
|
3197
|
-
const { status = "Starting local services", appearance } = options;
|
|
3556
|
+
const { status = "Starting local services", appearance, version: version2 } = options;
|
|
3198
3557
|
return `<!doctype html>
|
|
3199
3558
|
<html lang="en" ${modeAttribute(appearance)}>
|
|
3200
3559
|
<head>
|
|
@@ -3205,7 +3564,7 @@ function loadingHtml(options = {}) {
|
|
|
3205
3564
|
<style>${shellStyles(appearance)}</style>
|
|
3206
3565
|
</head>
|
|
3207
3566
|
<body>
|
|
3208
|
-
${startupSplashMarkup(status)}
|
|
3567
|
+
${startupSplashMarkup(status, version2)}
|
|
3209
3568
|
</body>
|
|
3210
3569
|
</html>`;
|
|
3211
3570
|
}
|
|
@@ -3526,6 +3885,7 @@ var DesktopRuntime = class {
|
|
|
3526
3885
|
getMainWindow: () => runtime.#mainWindow,
|
|
3527
3886
|
getManagedDaemon: () => runtime.#managedDaemon,
|
|
3528
3887
|
showMainWindow,
|
|
3888
|
+
recreateMainWindow,
|
|
3529
3889
|
hideWindow,
|
|
3530
3890
|
requestQuit,
|
|
3531
3891
|
restartDaemon: () => {
|
|
@@ -3609,7 +3969,10 @@ var DesktopRuntime = class {
|
|
|
3609
3969
|
const splashShownAt = ports.now();
|
|
3610
3970
|
runtime.#trayController.ensureTray();
|
|
3611
3971
|
runtime.#listenerDisposers.push(ports.nativeTheme.onUpdated(runtime.#trayController.updateTrayIcon));
|
|
3612
|
-
await window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
|
|
3972
|
+
await window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
|
|
3973
|
+
appearance: ports.windows.appearance(),
|
|
3974
|
+
version: ports.application.version
|
|
3975
|
+
})));
|
|
3613
3976
|
const currentSettings = await readStartupSettings();
|
|
3614
3977
|
runtime.#desktopConfiguration = desktopConfigurationController2.resolve(currentSettings);
|
|
3615
3978
|
desktopConfigurationController2.apply(currentSettings, runtime.#desktopConfiguration, false);
|
|
@@ -3716,6 +4079,28 @@ var DesktopRuntime = class {
|
|
|
3716
4079
|
}
|
|
3717
4080
|
await startMainWindow(window);
|
|
3718
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
|
+
}
|
|
3719
4104
|
function startMainWindow(window, splashAlreadyShownAt) {
|
|
3720
4105
|
runtime.#startupAttempt ??= performMainWindowStartup(window, splashAlreadyShownAt).finally(() => {
|
|
3721
4106
|
runtime.#startupAttempt = void 0;
|
|
@@ -3733,7 +4118,10 @@ var DesktopRuntime = class {
|
|
|
3733
4118
|
if (splashShownAt !== void 0)
|
|
3734
4119
|
return Promise.resolve();
|
|
3735
4120
|
splashShownAt = ports.now();
|
|
3736
|
-
return window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
|
|
4121
|
+
return window.loadURL(runtime.#shellPageUrls.create(loadingHtml({
|
|
4122
|
+
appearance: ports.windows.appearance(),
|
|
4123
|
+
version: ports.application.version
|
|
4124
|
+
})));
|
|
3737
4125
|
},
|
|
3738
4126
|
connectDaemon: async () => {
|
|
3739
4127
|
if (!runtime.#managedDaemon) {
|
|
@@ -4033,7 +4421,8 @@ function createDesktopRuntimePorts() {
|
|
|
4033
4421
|
platform: process.platform,
|
|
4034
4422
|
architecture: process.arch,
|
|
4035
4423
|
electronVersion: process.versions.electron,
|
|
4036
|
-
chromeVersion: process.versions.chrome
|
|
4424
|
+
chromeVersion: process.versions.chrome,
|
|
4425
|
+
version: app.getVersion()
|
|
4037
4426
|
},
|
|
4038
4427
|
signals: {
|
|
4039
4428
|
onSignal: (signal, listener) => {
|
|
@@ -4044,17 +4433,26 @@ function createDesktopRuntimePorts() {
|
|
|
4044
4433
|
windows: {
|
|
4045
4434
|
getAllWindows: () => BrowserWindow.getAllWindows(),
|
|
4046
4435
|
appearance: windowAppearance.current,
|
|
4047
|
-
createMainWindow: (windowOptions) =>
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
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
|
+
}
|
|
4058
4456
|
},
|
|
4059
4457
|
nativeTheme: {
|
|
4060
4458
|
onUpdated: (listener) => {
|
|
@@ -4082,6 +4480,21 @@ function createDesktopRuntimePorts() {
|
|
|
4082
4480
|
};
|
|
4083
4481
|
}
|
|
4084
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
|
+
|
|
4085
4498
|
// packages/desktop-shell/dist/main.js
|
|
4086
4499
|
app.on("open-file", (event, path) => {
|
|
4087
4500
|
event.preventDefault();
|
|
@@ -4096,6 +4509,7 @@ if (isReleaseMode) {
|
|
|
4096
4509
|
delete process.env.NERVE_DEV_SCRIPTED_PROVIDER;
|
|
4097
4510
|
delete process.env.NERVE_DESKTOP_DEV_SLOT;
|
|
4098
4511
|
}
|
|
4512
|
+
applyElectronRemoteDebuggingPort(takeElectronRemoteDebuggingPort(process.env));
|
|
4099
4513
|
var desktopOptions = parseDesktopOptions(process.argv.slice(1));
|
|
4100
4514
|
var explicitElectronProfile = process.env.NERVE_ELECTRON_USER_DATA?.trim();
|
|
4101
4515
|
if (explicitElectronProfile) {
|