local-operator-ui 0.57.2 → 0.57.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/out/main/index.js +793 -24
  2. package/out/preload/index.js +81 -8
  3. package/out/renderer/assets/{_basePickBy-CkpAAO6S.js → _basePickBy-CqOK9I5a.js} +1 -1
  4. package/out/renderer/assets/{_baseUniq-u-agm62p.js → _baseUniq-Dfknltze.js} +1 -1
  5. package/out/renderer/assets/{agent-details-page-ldvl1N_6.js → agent-details-page-DKOAeAlz.js} +1 -1
  6. package/out/renderer/assets/{agent-hub-page-CzX9q829.js → agent-hub-page-D75ZCD-T.js} +1 -1
  7. package/out/renderer/assets/{agents-page-Car3j2Yp.js → agents-page-Dy9dT2J6.js} +3 -3
  8. package/out/renderer/assets/{appearance-Cs1cmmXP.js → appearance-RPtl24uV.js} +6 -6
  9. package/out/renderer/assets/{approvalsOverlay-X94PALoM.js → approvalsOverlay-BxwEca1y.js} +1 -1
  10. package/out/renderer/assets/{arc-BYiPoX8t.js → arc-CJgGs8E0.js} +1 -1
  11. package/out/renderer/assets/{architectureDiagram-IEHRJDOE-DLjq8CZ0.js → architectureDiagram-IEHRJDOE-BO-PVfmy.js} +1 -1
  12. package/out/renderer/assets/{avatar-cropper-8lHILQQo.js → avatar-cropper-IPFrNOZH.js} +1 -1
  13. package/out/renderer/assets/{blockDiagram-JOT3LUYC-CCwA1fYB.js → blockDiagram-JOT3LUYC-D4kISdJw.js} +1 -1
  14. package/out/renderer/assets/{book-open-gN5NGmEk.js → book-open-DSEz_hQQ.js} +1 -1
  15. package/out/renderer/assets/browser-page-4rUf9E5f.js +1 -0
  16. package/out/renderer/assets/{browser-webauthn-prompt-D0MMfl2O.js → browser-webauthn-prompt-DUTEBHSl.js} +1 -1
  17. package/out/renderer/assets/{c4Diagram-VJAJSXHY-7uFTm2ZA.js → c4Diagram-VJAJSXHY-jrrji_Tt.js} +1 -1
  18. package/out/renderer/assets/channel-DSbKlaIM.js +1 -0
  19. package/out/renderer/assets/{chunk-4BMEZGHF-Dto4mCOM.js → chunk-4BMEZGHF-34jCJWgL.js} +1 -1
  20. package/out/renderer/assets/{chunk-A2AXSNBT-VPHjX20y.js → chunk-A2AXSNBT-D2utPfjC.js} +1 -1
  21. package/out/renderer/assets/{chunk-AEK57VVT-Cbz0GPQs.js → chunk-AEK57VVT-Chv6UTYK.js} +1 -1
  22. package/out/renderer/assets/{chunk-D6G4REZN-XGhv_ezv.js → chunk-D6G4REZN-8au1oDUE.js} +1 -1
  23. package/out/renderer/assets/{chunk-RZ5BOZE2-DSiUCa5w.js → chunk-RZ5BOZE2-DCRrSym3.js} +1 -1
  24. package/out/renderer/assets/{chunk-XZIHB7SX-B0DxcSxw.js → chunk-XZIHB7SX-BFp6lbut.js} +1 -1
  25. package/out/renderer/assets/classDiagram-GIVACNV2-B3UBTKI6.js +1 -0
  26. package/out/renderer/assets/classDiagram-v2-COTLJTTW-B3UBTKI6.js +1 -0
  27. package/out/renderer/assets/clone-CI0Pk6Pw.js +1 -0
  28. package/out/renderer/assets/{console-mirror-Du9Cwm9t.js → console-mirror-COvJr604.js} +1 -1
  29. package/out/renderer/assets/{consoleCapture-BJORZIj0.js → consoleCapture-Cl0JWwqq.js} +1 -1
  30. package/out/renderer/assets/{conversation-input-sync-WpEjb9aG.js → conversation-input-sync-bGjigx3Z.js} +5 -5
  31. package/out/renderer/assets/{dagre-OKDRZEBW-sM3z9HUa.js → dagre-OKDRZEBW-WWu0Yua1.js} +1 -1
  32. package/out/renderer/assets/{diagram-SSKATNLV-CgOb7R2k.js → diagram-SSKATNLV-CS9Mvsr2.js} +1 -1
  33. package/out/renderer/assets/{diagram-VNBRO52H-DbVc8xXd.js → diagram-VNBRO52H-qqdP8fjP.js} +1 -1
  34. package/out/renderer/assets/{erDiagram-Q7BY3M3F-TSxVIxOX.js → erDiagram-Q7BY3M3F-Dcxo6XZi.js} +1 -1
  35. package/out/renderer/assets/{error-boundary-CTG7hrrI.js → error-boundary-BQ911DnY.js} +1 -1
  36. package/out/renderer/assets/{flowDiagram-4HSFHLVR-Cqxg2ABh.js → flowDiagram-4HSFHLVR-CrxBDmsr.js} +1 -1
  37. package/out/renderer/assets/{ganttDiagram-APWFNJXF-DCQUmhya.js → ganttDiagram-APWFNJXF-Bx-sfLxO.js} +1 -1
  38. package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-BfuP7Xlp.js → gitGraphDiagram-7IBYFJ6S-CJxWCbNe.js} +1 -1
  39. package/out/renderer/assets/{graph-CWbHIULM.js → graph-BNSj1GHJ.js} +1 -1
  40. package/out/renderer/assets/{heart-DO1T8X1C.js → heart-i91yzAwW.js} +1 -1
  41. package/out/renderer/assets/index-BlC0KBYH.css +1 -0
  42. package/out/renderer/assets/{index-CyPPdUQq.js → index-BvbUVrcK.js} +1 -1
  43. package/out/renderer/assets/{index-qhYHvOTU.js → index-BxFcVHbG.js} +1 -1
  44. package/out/renderer/assets/index-CdTxr8VM.js +852 -0
  45. package/out/renderer/assets/{index-dka8FW5R.js → index-CxNjWpOb.js} +10 -10
  46. package/out/renderer/assets/infoDiagram-PH2N3AL5-PsB_DDDA.js +2 -0
  47. package/out/renderer/assets/{inline-error-boundary-Dl-my4ee.js → inline-error-boundary-CEz9_z6I.js} +1 -1
  48. package/out/renderer/assets/{installer-CqRpemT_.js → installer-G-5Vi1J-.js} +1 -1
  49. package/out/renderer/assets/{journeyDiagram-U35MCT3I-CZSzzTfE.js → journeyDiagram-U35MCT3I-DoNy_9X6.js} +1 -1
  50. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-JDn5Etaq.js → kanban-definition-NDS4AKOZ-DdvklVql.js} +1 -1
  51. package/out/renderer/assets/{layout-BVY06uZz.js → layout-qfLIC44U.js} +1 -1
  52. package/out/renderer/assets/{legacy-agents-page-CK5i5r9m.js → legacy-agents-page-vNWqLnJO.js} +1 -1
  53. package/out/renderer/assets/{library-page-D5mJW5w9.js → library-page-CsKdpZoN.js} +3 -3
  54. package/out/renderer/assets/{log-in-BtrQ-uFl.js → log-in-ge87dxtE.js} +1 -1
  55. package/out/renderer/assets/{mermaid.core-DyOJXgnf.js → mermaid.core-34ehUt9F.js} +5 -5
  56. package/out/renderer/assets/{mesh-page-DKmN2cUs.js → mesh-page-Drazw6sy.js} +1 -1
  57. package/out/renderer/assets/{messages-DEk5v9-I.js → messages-B7aIuFuF.js} +9 -9
  58. package/out/renderer/assets/{mindmap-definition-ALO5MXBD-DMKmIV2d.js → mindmap-definition-ALO5MXBD-DS9A7X_9.js} +1 -1
  59. package/out/renderer/assets/{mini-BVOAEtrk.js → mini-CiYAeR9E.js} +1 -1
  60. package/out/renderer/assets/{notebook-pen-C2m21lW6.js → notebook-pen-6_thWw32.js} +1 -1
  61. package/out/renderer/assets/{notifications-page-DllLf-Mx.js → notifications-page-B9lBzyI_.js} +1 -1
  62. package/out/renderer/assets/{org-access-C1LmC5QU.js → org-access-LWjiDIPH.js} +1 -1
  63. package/out/renderer/assets/{org-surface-gate-N1nQoy_C.js → org-surface-gate-DGeVPoHg.js} +1 -1
  64. package/out/renderer/assets/{page-header-BE4EUy8r.js → page-header-DsXvFR6j.js} +1 -1
  65. package/out/renderer/assets/{pieDiagram-IB7DONF6-DpswQBn6.js → pieDiagram-IB7DONF6-BzNpgGTh.js} +1 -1
  66. package/out/renderer/assets/{projects-page-DPltfj6k.js → projects-page-BJV0JVfL.js} +1 -1
  67. package/out/renderer/assets/{publication-validation-CHMryQwz.js → publication-validation-BIxxMtE8.js} +1 -1
  68. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-C8q54QlE.js → quadrantDiagram-7GDLP6J5-BGFLFl2M.js} +1 -1
  69. package/out/renderer/assets/{radar-MK3ICKWK-CgQaQ4QP.js → radar-MK3ICKWK-QP0xpCZj.js} +1 -1
  70. package/out/renderer/assets/{radient-auth-buttons-DoUZ5jOc.js → radient-auth-buttons-GwvFtoOd.js} +1 -1
  71. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-Dyrv3VAu.js → requirementDiagram-KVF5MWMF-d1hwIQYi.js} +1 -1
  72. package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-CNEvckl5.js → sankeyDiagram-QLVOVGJD-Bel2U3qO.js} +1 -1
  73. package/out/renderer/assets/schedules-page-CJV3Oiiy.js +115 -0
  74. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-DeOCt35P.js → sequenceDiagram-X6HHIX6F-Et2XMzpI.js} +1 -1
  75. package/out/renderer/assets/{settings-page-Czps85Y1.js → settings-page-sfk5JVcx.js} +1 -1
  76. package/out/renderer/assets/{smartart-8ZXfpZbU.js → smartart-Csc0zQan.js} +1 -1
  77. package/out/renderer/assets/{stateDiagram-DGXRK772-BnN0kFCN.js → stateDiagram-DGXRK772-D2GwxW6w.js} +1 -1
  78. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BHUZ7x6j.js +1 -0
  79. package/out/renderer/assets/{team-bridge-page-BVJP-Gyq.js → team-bridge-page-CW5zV9mz.js} +1 -1
  80. package/out/renderer/assets/{timeline-definition-BDJGKUSR-CecYCV3I.js → timeline-definition-BDJGKUSR-BUZLWyEg.js} +1 -1
  81. package/out/renderer/assets/{use-default-on-banner-BQGiegDV.js → use-default-on-banner-CsqO83vJ.js} +1 -1
  82. package/out/renderer/assets/{use-download-agent-mutation-_yRuWSqj.js → use-download-agent-mutation-F8kNbCPE.js} +1 -1
  83. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-D_gZ9O7j.js → xychartDiagram-VJFVF3MP-C9F7-D_T.js} +1 -1
  84. package/out/renderer/browser-approvals-overlay.html +2 -2
  85. package/out/renderer/console-capture.html +6 -6
  86. package/out/renderer/index.html +8 -8
  87. package/out/renderer/installer.html +5 -5
  88. package/out/renderer/mini.html +7 -7
  89. package/package.json +1 -1
  90. package/out/renderer/assets/browser-page-BmtzPNyp.js +0 -1
  91. package/out/renderer/assets/channel-DDmXL0fB.js +0 -1
  92. package/out/renderer/assets/classDiagram-GIVACNV2-CyDUcev3.js +0 -1
  93. package/out/renderer/assets/classDiagram-v2-COTLJTTW-CyDUcev3.js +0 -1
  94. package/out/renderer/assets/clone-S08t9Xt4.js +0 -1
  95. package/out/renderer/assets/index-BXnmoGxM.js +0 -852
  96. package/out/renderer/assets/index-C353PzEb.css +0 -1
  97. package/out/renderer/assets/infoDiagram-PH2N3AL5-D0MyLVLo.js +0 -2
  98. package/out/renderer/assets/schedules-page-DhitlPyE.js +0 -115
  99. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-0RUTziKL.js +0 -1
package/out/main/index.js CHANGED
@@ -10948,6 +10948,16 @@ const enUiSchedules = {
10948
10948
  "ui.schedules.wake_conversation_row.open_conversation": "Open conversation",
10949
10949
  "ui.schedules.wake_conversation_row.show_fewer": "Show fewer"
10950
10950
  };
10951
+ const enUiSchedulesMonitors = {
10952
+ "ui.schedules.monitors.blind_health": "cannot compare its results, so changes are not being reported",
10953
+ "ui.schedules.monitors.could_not_load_monitors": "Could not load monitors.",
10954
+ "ui.schedules.monitors.could_not_read_monitors": "Could not read this machine's monitors, so this list may be incomplete.",
10955
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} monitor} other {{total_display} monitors}} · {attention, plural, one {{attention_display} needs attention} other {{attention_display} need attention}}",
10956
+ "ui.schedules.monitors.expired_state": "expired",
10957
+ "ui.schedules.monitors.list_truncated": "Showing {shown, number, ::group-off} of {total, plural, one {{total, number, ::group-off} conversation} other {{total, number, ::group-off} conversations}} with monitors.",
10958
+ "ui.schedules.monitors.parked_clause": "Parked — its monitors are not checking",
10959
+ "ui.schedules.monitors.parked_state": "parked"
10960
+ };
10951
10961
  const enUiSettingsAccount = {
10952
10962
  "ui.settings.account.radient_account_section.status": "Status",
10953
10963
  "ui.settings.account.radient_account_section.connected": "Connected",
@@ -20819,6 +20829,16 @@ const esUiSchedules = {
20819
20829
  "ui.schedules.wake_conversation_row.open_conversation": "Abrir conversación",
20820
20830
  "ui.schedules.wake_conversation_row.show_fewer": "Mostrar menos"
20821
20831
  };
20832
+ const esUiSchedulesMonitors = {
20833
+ "ui.schedules.monitors.blind_health": "no puede comparar sus resultados, así que no se informa de los cambios",
20834
+ "ui.schedules.monitors.could_not_load_monitors": "No se pudieron cargar los monitores.",
20835
+ "ui.schedules.monitors.could_not_read_monitors": "No se pudieron leer los monitores de esta máquina, así que esta lista puede estar incompleta.",
20836
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} monitor} many {{total_display} de monitores} other {{total_display} monitores}} · {attention, plural, one {{attention_display} requiere atención} many {{attention_display} requieren atención} other {{attention_display} requieren atención}}",
20837
+ "ui.schedules.monitors.expired_state": "expirado",
20838
+ "ui.schedules.monitors.list_truncated": "Mostrando {shown, number, ::group-off} de {total, plural, one {{total, number, ::group-off} conversación con monitores} many {{total, number, ::group-off} de conversaciones con monitores} other {{total, number, ::group-off} conversaciones con monitores}}.",
20839
+ "ui.schedules.monitors.parked_clause": "En pausa — sus monitores no realizan comprobaciones",
20840
+ "ui.schedules.monitors.parked_state": "en pausa"
20841
+ };
20822
20842
  const esUiSettingsAccount = {
20823
20843
  "ui.settings.account.radient_account_section.status": "Estado",
20824
20844
  "ui.settings.account.radient_account_section.connected": "Conectado",
@@ -30690,6 +30710,16 @@ const frUiSchedules = {
30690
30710
  "ui.schedules.wake_conversation_row.open_conversation": "Ouvrir la conversation",
30691
30711
  "ui.schedules.wake_conversation_row.show_fewer": "Afficher moins"
30692
30712
  };
30713
+ const frUiSchedulesMonitors = {
30714
+ "ui.schedules.monitors.blind_health": "impossible de comparer ses résultats ; les changements ne sont pas signalés",
30715
+ "ui.schedules.monitors.could_not_load_monitors": "Impossible de charger les surveillances.",
30716
+ "ui.schedules.monitors.could_not_read_monitors": "Impossible de lire les surveillances de cet ordinateur ; cette liste peut donc être incomplète.",
30717
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} surveillance} many {{total_display} de surveillances} other {{total_display} surveillances}} · {attention, plural, one {{attention_display} à vérifier} many {{attention_display} à vérifier} other {{attention_display} à vérifier}}",
30718
+ "ui.schedules.monitors.expired_state": "expirée",
30719
+ "ui.schedules.monitors.list_truncated": "Affichage de {shown, number, ::group-off} sur {total, plural, one {{total, number, ::group-off} conversation} many {{total, number, ::group-off} de conversations} other {{total, number, ::group-off} conversations}} avec surveillance.",
30720
+ "ui.schedules.monitors.parked_clause": "En pause — la surveillance est suspendue",
30721
+ "ui.schedules.monitors.parked_state": "en pause"
30722
+ };
30693
30723
  const frUiSettingsAccount = {
30694
30724
  "ui.settings.account.radient_account_section.status": "Statut",
30695
30725
  "ui.settings.account.radient_account_section.connected": "Connecté",
@@ -40561,6 +40591,16 @@ const hiUiSchedules = {
40561
40591
  "ui.schedules.wake_conversation_row.open_conversation": "बातचीत खोलें",
40562
40592
  "ui.schedules.wake_conversation_row.show_fewer": "कम दिखाएँ"
40563
40593
  };
40594
+ const hiUiSchedulesMonitors = {
40595
+ "ui.schedules.monitors.blind_health": "इसके नतीजों की तुलना नहीं हो पा रही, इसलिए बदलावों की सूचना नहीं दी जा रही",
40596
+ "ui.schedules.monitors.could_not_load_monitors": "मॉनिटर लोड नहीं हो सके।",
40597
+ "ui.schedules.monitors.could_not_read_monitors": "इस मशीन के मॉनिटर पढ़े नहीं जा सके, इसलिए यह सूची अधूरी हो सकती है।",
40598
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} मॉनिटर} other {{total_display} मॉनिटर}} · {attention, plural, one {{attention_display} पर ध्यान देना ज़रूरी} other {{attention_display} पर ध्यान देना ज़रूरी}}",
40599
+ "ui.schedules.monitors.expired_state": "समाप्त",
40600
+ "ui.schedules.monitors.list_truncated": "मॉनिटर वाली {shown, number, ::group-off} दिखाई गईं, कुल {total, plural, one {{total, number, ::group-off} बातचीत} other {{total, number, ::group-off} बातचीतें}}।",
40601
+ "ui.schedules.monitors.parked_clause": "रुकी हुई — इसके मॉनिटर जाँच नहीं कर रहे",
40602
+ "ui.schedules.monitors.parked_state": "रुका हुआ"
40603
+ };
40564
40604
  const hiUiSettingsAccount = {
40565
40605
  "ui.settings.account.radient_account_section.status": "स्थिति",
40566
40606
  "ui.settings.account.radient_account_section.connected": "कनेक्ट है",
@@ -50432,6 +50472,16 @@ const ruUiSchedules = {
50432
50472
  "ui.schedules.wake_conversation_row.open_conversation": "Открыть разговор",
50433
50473
  "ui.schedules.wake_conversation_row.show_fewer": "Показать меньше"
50434
50474
  };
50475
+ const ruUiSchedulesMonitors = {
50476
+ "ui.schedules.monitors.blind_health": "не удаётся сравнить результаты, поэтому об изменениях не сообщается",
50477
+ "ui.schedules.monitors.could_not_load_monitors": "Не удалось загрузить мониторинги.",
50478
+ "ui.schedules.monitors.could_not_read_monitors": "Не удалось прочитать мониторинги на этом компьютере, поэтому этот список может быть неполным.",
50479
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} мониторинг} few {{total_display} мониторинга} many {{total_display} мониторингов} other {{total_display} мониторинга}} · {attention, plural, one {{attention_display} требует внимания} few {{attention_display} требуют внимания} many {{attention_display} требуют внимания} other {{attention_display} требуют внимания}}",
50480
+ "ui.schedules.monitors.expired_state": "истёк",
50481
+ "ui.schedules.monitors.list_truncated": "Показано {shown, number, ::group-off} из {total, plural, one {{total, number, ::group-off} разговора} few {{total, number, ::group-off} разговоров} many {{total, number, ::group-off} разговоров} other {{total, number, ::group-off} разговора}} с мониторингом.",
50482
+ "ui.schedules.monitors.parked_clause": "Приостановлено — мониторинг не выполняет проверки",
50483
+ "ui.schedules.monitors.parked_state": "приостановлен"
50484
+ };
50435
50485
  const ruUiSettingsAccount = {
50436
50486
  "ui.settings.account.radient_account_section.account_id": "ID учётной записи",
50437
50487
  "ui.settings.account.radient_account_section.connected": "Подключено",
@@ -60303,6 +60353,16 @@ const urUiSchedules = {
60303
60353
  "ui.schedules.wake_conversation_row.open_conversation": "گفتگو کھولیں",
60304
60354
  "ui.schedules.wake_conversation_row.show_fewer": "کم دکھائیں"
60305
60355
  };
60356
+ const urUiSchedulesMonitors = {
60357
+ "ui.schedules.monitors.blind_health": "اس کے نتائج کا موازنہ نہیں ہو پا رہا، اس لیے تبدیلیوں کی اطلاع نہیں دی جا رہی",
60358
+ "ui.schedules.monitors.could_not_load_monitors": "نگرانیاں لوڈ نہیں ہو سکیں۔",
60359
+ "ui.schedules.monitors.could_not_read_monitors": "اس مشین کی نگرانیاں پڑھی نہیں جا سکیں، اس لیے یہ فہرست نامکمل ہو سکتی ہے۔",
60360
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, one {{total_display} نگرانی} other {{total_display} نگرانیاں}} · {attention, plural, one {{attention_display} توجہ طلب ہے} other {{attention_display} توجہ طلب ہیں}}",
60361
+ "ui.schedules.monitors.expired_state": "ختم",
60362
+ "ui.schedules.monitors.list_truncated": "نگرانی والی {total, plural, one {{total, number, ::group-off} گفتگو} other {{total, number, ::group-off} گفتگوؤں}} میں سے دکھائی گئی تعداد: {shown, number, ::group-off}۔",
60363
+ "ui.schedules.monitors.parked_clause": "موقوف — اس کی نگرانیاں جانچ نہیں کر رہیں",
60364
+ "ui.schedules.monitors.parked_state": "موقوف"
60365
+ };
60306
60366
  const urUiSettingsAccount = {
60307
60367
  "ui.settings.account.radient_account_section.status": "حیثیت",
60308
60368
  "ui.settings.account.radient_account_section.connected": "منسلک",
@@ -70174,6 +70234,16 @@ const viUiSchedules = {
70174
70234
  "ui.schedules.wake_conversation_row.open_conversation": "Mở cuộc trò chuyện",
70175
70235
  "ui.schedules.wake_conversation_row.show_fewer": "Hiện ít hơn"
70176
70236
  };
70237
+ const viUiSchedulesMonitors = {
70238
+ "ui.schedules.monitors.blind_health": "không thể so sánh kết quả nên các thay đổi không được báo",
70239
+ "ui.schedules.monitors.could_not_load_monitors": "Không thể tải các mục giám sát.",
70240
+ "ui.schedules.monitors.could_not_read_monitors": "Không thể đọc các mục giám sát trên máy này nên danh sách này có thể chưa đầy đủ.",
70241
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, other {{total_display} mục giám sát}} · {attention, plural, other {{attention_display} cần chú ý}}",
70242
+ "ui.schedules.monitors.expired_state": "đã hết hạn",
70243
+ "ui.schedules.monitors.list_truncated": "Đang hiển thị {shown, number, ::group-off} trên {total, plural, other {{total, number, ::group-off} cuộc trò chuyện}} có mục giám sát.",
70244
+ "ui.schedules.monitors.parked_clause": "Tạm ngưng — các mục giám sát không kiểm tra",
70245
+ "ui.schedules.monitors.parked_state": "tạm ngưng"
70246
+ };
70177
70247
  const viUiSettingsAccount = {
70178
70248
  "ui.settings.account.radient_account_section.status": "Trạng thái",
70179
70249
  "ui.settings.account.radient_account_section.connected": "Đã kết nối",
@@ -80045,6 +80115,16 @@ const zhCNUiSchedules = {
80045
80115
  "ui.schedules.wake_conversation_row.open_conversation": "打开对话",
80046
80116
  "ui.schedules.wake_conversation_row.show_fewer": "收起"
80047
80117
  };
80118
+ const zhCNUiSchedulesMonitors = {
80119
+ "ui.schedules.monitors.blind_health": "无法比较结果,因此不会报告变化",
80120
+ "ui.schedules.monitors.could_not_load_monitors": "无法加载监控项。",
80121
+ "ui.schedules.monitors.could_not_read_monitors": "无法读取此设备上的监控项,此列表可能不完整。",
80122
+ "ui.schedules.monitors.count_needs_attention": "{total, plural, other {{total_display}个监控项}} · {attention, plural, other {{attention_display}个需要处理}}",
80123
+ "ui.schedules.monitors.expired_state": "已过期",
80124
+ "ui.schedules.monitors.list_truncated": "共有{total, plural, other {{total, number, ::group-off}个包含监控的对话}},当前显示{shown, number, ::group-off}个。",
80125
+ "ui.schedules.monitors.parked_clause": "已挂起,监控暂不检查",
80126
+ "ui.schedules.monitors.parked_state": "已挂起"
80127
+ };
80048
80128
  const zhCNUiSettingsAccount = {
80049
80129
  "ui.settings.account.radient_account_section.status": "状态",
80050
80130
  "ui.settings.account.radient_account_section.connected": "已连接",
@@ -82082,6 +82162,7 @@ const bundledEnglish = {
82082
82162
  ...enUiProviders,
82083
82163
  ...enUiSchedulesErrors,
82084
82164
  ...enUiSchedules,
82165
+ ...enUiSchedulesMonitors,
82085
82166
  ...enUiSettingsAccount,
82086
82167
  ...enUiSettingsAppearanceEditor,
82087
82168
  ...enUiSettingsAppearance,
@@ -82254,6 +82335,7 @@ const bundledCatalogues = {
82254
82335
  ...esUiProviders,
82255
82336
  ...esUiSchedulesErrors,
82256
82337
  ...esUiSchedules,
82338
+ ...esUiSchedulesMonitors,
82257
82339
  ...esUiSettingsAccount,
82258
82340
  ...esUiSettingsAppearanceEditor,
82259
82341
  ...esUiSettingsAppearance,
@@ -82424,6 +82506,7 @@ const bundledCatalogues = {
82424
82506
  ...frUiProviders,
82425
82507
  ...frUiSchedulesErrors,
82426
82508
  ...frUiSchedules,
82509
+ ...frUiSchedulesMonitors,
82427
82510
  ...frUiSettingsAccount,
82428
82511
  ...frUiSettingsAppearanceEditor,
82429
82512
  ...frUiSettingsAppearance,
@@ -82594,6 +82677,7 @@ const bundledCatalogues = {
82594
82677
  ...hiUiProviders,
82595
82678
  ...hiUiSchedulesErrors,
82596
82679
  ...hiUiSchedules,
82680
+ ...hiUiSchedulesMonitors,
82597
82681
  ...hiUiSettingsAccount,
82598
82682
  ...hiUiSettingsAppearanceEditor,
82599
82683
  ...hiUiSettingsAppearance,
@@ -82764,6 +82848,7 @@ const bundledCatalogues = {
82764
82848
  ...ruUiProviders,
82765
82849
  ...ruUiSchedulesErrors,
82766
82850
  ...ruUiSchedules,
82851
+ ...ruUiSchedulesMonitors,
82767
82852
  ...ruUiSettingsAccount,
82768
82853
  ...ruUiSettingsAppearanceEditor,
82769
82854
  ...ruUiSettingsAppearance,
@@ -82934,6 +83019,7 @@ const bundledCatalogues = {
82934
83019
  ...urUiProviders,
82935
83020
  ...urUiSchedulesErrors,
82936
83021
  ...urUiSchedules,
83022
+ ...urUiSchedulesMonitors,
82937
83023
  ...urUiSettingsAccount,
82938
83024
  ...urUiSettingsAppearanceEditor,
82939
83025
  ...urUiSettingsAppearance,
@@ -83104,6 +83190,7 @@ const bundledCatalogues = {
83104
83190
  ...viUiProviders,
83105
83191
  ...viUiSchedulesErrors,
83106
83192
  ...viUiSchedules,
83193
+ ...viUiSchedulesMonitors,
83107
83194
  ...viUiSettingsAccount,
83108
83195
  ...viUiSettingsAppearanceEditor,
83109
83196
  ...viUiSettingsAppearance,
@@ -83274,6 +83361,7 @@ const bundledCatalogues = {
83274
83361
  ...zhCNUiProviders,
83275
83362
  ...zhCNUiSchedulesErrors,
83276
83363
  ...zhCNUiSchedules,
83364
+ ...zhCNUiSchedulesMonitors,
83277
83365
  ...zhCNUiSettingsAccount,
83278
83366
  ...zhCNUiSettingsAppearanceEditor,
83279
83367
  ...zhCNUiSettingsAppearance,
@@ -85998,14 +86086,32 @@ const desktopRequestUnion = zod.z.discriminatedUnion("op", [
85998
86086
  }).strict(),
85999
86087
  zod.z.object({ op: zod.z.literal("wakes.remove"), sessionId, wakeId }).strict(),
86000
86088
  /*
86001
- * The monitor surface's one write that has a UI: cancelling a standing watch
86002
- * (`DELETE /v1/desktop/monitors/{session_id}/{monitor_id}`). The sibling
86003
- * routes - the machine-wide listing and the arm - are deliberately not
86004
- * mirrored yet: the pane and the composer's chip read the SESSION's own
86005
- * `frontend.monitors` field (the design's §12 row states the desktop contract
86006
- * as "the `monitors` field + command routes"), so a listing op would have no
86007
- * reader, and the arm op waits for the form that will use it.
86089
+ * The monitor surface: the Schedules page's machine-wide read, and the cancel
86090
+ * both that page and the run pane draw.
86091
+ *
86092
+ * `monitors.list` (`GET /v1/desktop/monitors`) is the listing the TUI's wake
86093
+ * band and the phone's Schedules view already read; it was left unmirrored
86094
+ * while its only would-be reader was the run pane, which reads the SESSION's
86095
+ * own `frontend.monitors` field instead. The Schedules page is the reader that
86096
+ * premise lacked (local-operator-ui #1898): "every standing watch on this
86097
+ * machine" cannot be answered per session, for `wakes.list`'s reason - the
86098
+ * session list is paginated by recency, while the monitor index is one small
86099
+ * file per monitor-carrying session and complete at any store size.
86100
+ *
86101
+ * The bounds are the route's own (`MONITOR_LIST_LIMIT_MAX = 500`,
86102
+ * `include_dormant` defaulting true in `routes/desktop_monitors.py`), so a
86103
+ * value this schema admits is one the backend accepts rather than a 422. The
86104
+ * arm op stays unmirrored: it waits for the form that will use it, and this
86105
+ * surface is read-and-cancel only.
86008
86106
  */
86107
+ zod.z.object({
86108
+ op: zod.z.literal("monitors.list"),
86109
+ limit: zod.z.number().int().min(1).max(500).optional(),
86110
+ /* Dormant rows are a STOPPED session's watches: still armed, not
86111
+ ticking. Shown rather than hidden, the wake listing's rule - a page
86112
+ that dropped them would report a parked watch as gone. */
86113
+ includeDormant: zod.z.boolean().optional()
86114
+ }).strict(),
86009
86115
  zod.z.object({
86010
86116
  op: zod.z.literal("monitors.cancel"),
86011
86117
  sessionId,
@@ -89443,6 +89549,17 @@ function desktopEndpoint(request) {
89443
89549
  * hand-built request must not be able to turn a handle into a path
89444
89550
  * fragment (the mesh writes' own rule).
89445
89551
  */
89552
+ case "monitors.list": {
89553
+ const query2 = new URLSearchParams();
89554
+ if (request.limit !== void 0)
89555
+ query2.set("limit", String(request.limit));
89556
+ if (request.includeDormant !== void 0)
89557
+ query2.set("include_dormant", String(request.includeDormant));
89558
+ return {
89559
+ path: query2.size > 0 ? `/v1/desktop/monitors?${query2}` : "/v1/desktop/monitors",
89560
+ method: "GET"
89561
+ };
89562
+ }
89446
89563
  case "monitors.cancel":
89447
89564
  return {
89448
89565
  path: `/v1/desktop/monitors/${encodeURIComponent(request.sessionId)}/${encodeURIComponent(request.monitorId)}`,
@@ -117354,6 +117471,59 @@ function describeDevDriverArming(arming) {
117354
117471
  if (arming.problems.length === 0) return null;
117355
117472
  return `[dev-driver] not armed: ${arming.problems.join("; ")}`;
117356
117473
  }
117474
+ const DEV_DRIVER_SCRIPT_ENV = "LOCAL_OPERATOR_UI_DEV_DRIVER_SCRIPT";
117475
+ const DEV_DRIVER_SCRIPT_ARG = "--lo-dev-driver-script";
117476
+ const DEV_DRIVER_SCRIPT_STEP = "dev-driver-script-step";
117477
+ const DEV_DRIVER_SCRIPT_RESULT = "dev-driver-script-result";
117478
+ function within(child, parent) {
117479
+ if (child === parent) return true;
117480
+ const prefix = parent.endsWith("/") ? parent : `${parent}/`;
117481
+ return child.startsWith(prefix);
117482
+ }
117483
+ function resolveDevDriverScript(input) {
117484
+ const raw = input.env[DEV_DRIVER_SCRIPT_ENV]?.trim() ?? "";
117485
+ if (raw === "") return { honoured: false, scriptPath: null, refusal: null };
117486
+ const refuse = (reason) => ({
117487
+ honoured: false,
117488
+ scriptPath: null,
117489
+ refusal: reason
117490
+ });
117491
+ if (!input.armed)
117492
+ return refuse(
117493
+ `${DEV_DRIVER_SCRIPT_ENV} needs the dev driver armed (${DEV_DRIVER_ENV}=1 and an absolute ${DEV_DRIVER_OUT_ENV})`
117494
+ );
117495
+ if (input.windowMode !== "headless" && input.windowMode !== "inactive")
117496
+ return refuse(
117497
+ `a dev-driver script never runs in a "${input.windowMode}" window; use --window-mode=inactive or headless`
117498
+ );
117499
+ if (!raw.startsWith("/"))
117500
+ return refuse(`${DEV_DRIVER_SCRIPT_ENV} must be an absolute path`);
117501
+ if (!input.userData.startsWith("/"))
117502
+ return refuse("the profile path is not absolute");
117503
+ const fold = (path2) => input.caseInsensitive ? path2.normalize("NFC").toLowerCase() : path2;
117504
+ const profile = fold(input.realpath(input.userData));
117505
+ for (const candidate of input.defaultUserData) {
117506
+ if (!candidate.startsWith("/")) continue;
117507
+ const root = fold(input.realpath(candidate));
117508
+ if (within(profile, root) || within(root, profile))
117509
+ return refuse(
117510
+ "the profile is the app's default user data (or inside/containing it); a script runs only in a scratch --user-data-dir"
117511
+ );
117512
+ }
117513
+ return { honoured: true, scriptPath: raw, refusal: null };
117514
+ }
117515
+ function describeDevDriverScript(gate) {
117516
+ if (gate.honoured)
117517
+ return `[dev-driver-script] ARMED; steps from ${gate.scriptPath}`;
117518
+ if (gate.refusal) return `[dev-driver-script] refused: ${gate.refusal}`;
117519
+ return null;
117520
+ }
117521
+ function devDriverScriptArgument() {
117522
+ return DEV_DRIVER_SCRIPT_ARG;
117523
+ }
117524
+ function devDriverQuietUpdatesReason(arming) {
117525
+ return arming.armed ? "the renderer dev driver is armed (a rig's boot): start-up seal repair and app-initiated update checks are skipped" : null;
117526
+ }
117357
117527
  const WEBAUTHN_GROUP_SUFFIX = ".webauthn";
117358
117528
  const WEBAUTHN_PROMPT_REASON = "use a passkey for $1";
117359
117529
  const WEBAUTHN_CHOOSER_TIMEOUT_MS = 6e4;
@@ -121937,7 +122107,7 @@ const ADDRESS_OVERLAY_MAX_HEIGHT_DIP = 160;
121937
122107
  const ADDRESS_OVERLAY_READY_TIMEOUT_MS = 5e3;
121938
122108
  const DIP_INT32_MAX = 2 ** 31 - 1;
121939
122109
  const INDEX_DOCUMENT_SUFFIX$2 = /\/?index\.html(\?.*)?$/;
121940
- const TRAILING_SLASH$1 = /\/$/;
122110
+ const TRAILING_SLASH$2 = /\/$/;
121941
122111
  function addressOverlayDocumentUrlFor(rendererUrl) {
121942
122112
  return documentUrlFor(rendererUrl, ADDRESS_OVERLAY_DOCUMENT);
121943
122113
  }
@@ -121945,7 +122115,7 @@ function addressListDocumentUrlFor(rendererUrl) {
121945
122115
  return documentUrlFor(rendererUrl, ADDRESS_LIST_DOCUMENT);
121946
122116
  }
121947
122117
  function documentUrlFor(rendererUrl, document) {
121948
- return INDEX_DOCUMENT_SUFFIX$2.test(rendererUrl) ? rendererUrl.replace(INDEX_DOCUMENT_SUFFIX$2, `/${document}`) : `${rendererUrl.replace(TRAILING_SLASH$1, "")}/${document}`;
122118
+ return INDEX_DOCUMENT_SUFFIX$2.test(rendererUrl) ? rendererUrl.replace(INDEX_DOCUMENT_SUFFIX$2, `/${document}`) : `${rendererUrl.replace(TRAILING_SLASH$2, "")}/${document}`;
121949
122119
  }
121950
122120
  function resolveAddressOverlayGate(input) {
121951
122121
  const raw = input.env[ADDRESS_OVERLAY_S1_ENV];
@@ -125473,6 +125643,185 @@ function observeBrowserLocale(window) {
125473
125643
  }
125474
125644
  });
125475
125645
  }
125646
+ const BROWSER_COMPOSITE_FRAME = "browser-composite-frame";
125647
+ const BROWSER_COMPOSITE_CLEAR = "browser-composite-clear";
125648
+ const rectKeyOf = (rect2) => `${rect2.x},${rect2.y},${rect2.width},${rect2.height}`;
125649
+ class CompositeBridge {
125650
+ constructor(options) {
125651
+ this.options = options;
125652
+ }
125653
+ generation = 0;
125654
+ stream = null;
125655
+ consumerReady = false;
125656
+ disposed = false;
125657
+ /** The live generation, or null. Exposed for tests and evidence only. */
125658
+ get activeGeneration() {
125659
+ return this.stream?.generation ?? null;
125660
+ }
125661
+ /**
125662
+ * Reconcile with the registry. Called before every layout pass and on every
125663
+ * epoch bump; cheap when nothing changed.
125664
+ */
125665
+ sync() {
125666
+ if (this.disposed) return;
125667
+ const want = this.options.eligible();
125668
+ const current = this.stream;
125669
+ if (!want) {
125670
+ if (current) this.stop("ineligible");
125671
+ return;
125672
+ }
125673
+ if (current && current.tabId === want.tabId && current.source === want.source && current.webContentsId === want.source.id && current.documentEpoch === want.documentEpoch && current.rectKey === rectKeyOf(want.rect))
125674
+ return;
125675
+ if (current) {
125676
+ const resizedOnly = current.tabId === want.tabId && current.source === want.source && current.webContentsId === want.source.id && current.documentEpoch === want.documentEpoch;
125677
+ this.stop(resizedOnly ? "resized" : "changed");
125678
+ }
125679
+ this.start(want);
125680
+ }
125681
+ /** End the current generation and, if still eligible, start a fresh one. */
125682
+ invalidate(reason) {
125683
+ if (this.disposed || !this.stream) return;
125684
+ this.stop(reason);
125685
+ this.sync();
125686
+ }
125687
+ /**
125688
+ * The renderer's canvas mounted (true) or went away (false). A fresh consumer
125689
+ * has drawn nothing, so whatever was in flight is forgotten and the latest
125690
+ * frame is resent: a static page may never produce another one.
125691
+ */
125692
+ setConsumer(ready) {
125693
+ if (this.disposed) return;
125694
+ this.consumerReady = ready;
125695
+ const stream = this.stream;
125696
+ if (!stream) return;
125697
+ stream.inFlight = null;
125698
+ stream.sentSeq = 0;
125699
+ if (ready) this.pump(stream);
125700
+ }
125701
+ /**
125702
+ * The renderer drew a frame. Refused (false) unless it names the current
125703
+ * generation and the exact frame in flight: a late ACK from an ended
125704
+ * generation, a repeated ACK and a made-up one must not release a send.
125705
+ */
125706
+ ack(payload) {
125707
+ const stream = this.stream;
125708
+ if (!stream || typeof payload !== "object" || payload === null)
125709
+ return false;
125710
+ const { generation, frameSeq } = payload;
125711
+ if (generation !== stream.generation || typeof frameSeq !== "number" || frameSeq !== stream.inFlight)
125712
+ return false;
125713
+ stream.inFlight = null;
125714
+ this.pump(stream);
125715
+ return true;
125716
+ }
125717
+ /** Host stop, retry or window teardown. Idempotent. */
125718
+ dispose() {
125719
+ if (this.disposed) return;
125720
+ if (this.stream) this.stop("disposed");
125721
+ this.disposed = true;
125722
+ this.consumerReady = false;
125723
+ }
125724
+ start(want) {
125725
+ const source = want.source;
125726
+ if (source.isDestroyed()) return;
125727
+ this.generation += 1;
125728
+ const generation = this.generation;
125729
+ const onNavigation = (details) => {
125730
+ if (details?.isMainFrame && !details.isSameDocument)
125731
+ this.invalidateIf(generation, "navigation");
125732
+ };
125733
+ const onGone = () => this.invalidateIf(generation, "page-gone");
125734
+ const onDestroyed = () => {
125735
+ if (this.stream?.generation === generation) this.stop("page-destroyed");
125736
+ };
125737
+ source.on("did-start-navigation", onNavigation);
125738
+ source.on("render-process-gone", onGone);
125739
+ source.on("destroyed", onDestroyed);
125740
+ const stream = {
125741
+ generation,
125742
+ tabId: want.tabId,
125743
+ source,
125744
+ webContentsId: source.id,
125745
+ documentEpoch: want.documentEpoch,
125746
+ rectKey: rectKeyOf(want.rect),
125747
+ nextSeq: 1,
125748
+ inFlight: null,
125749
+ latest: null,
125750
+ sentSeq: 0,
125751
+ detach: () => {
125752
+ source.removeListener("did-start-navigation", onNavigation);
125753
+ source.removeListener("render-process-gone", onGone);
125754
+ source.removeListener("destroyed", onDestroyed);
125755
+ }
125756
+ };
125757
+ this.stream = stream;
125758
+ try {
125759
+ source.beginFrameSubscription(
125760
+ false,
125761
+ (image2) => this.onFrame(generation, image2)
125762
+ );
125763
+ source.invalidate?.();
125764
+ } catch (error) {
125765
+ this.options.log?.(
125766
+ `[browser] composite: subscription failed for tab ${want.tabId}: ${error?.message ?? error}`
125767
+ );
125768
+ this.stop("subscribe-failed");
125769
+ }
125770
+ }
125771
+ onFrame(generation, image2) {
125772
+ const stream = this.stream;
125773
+ if (!stream || stream.generation !== generation) return;
125774
+ if (image2.isEmpty()) return;
125775
+ stream.latest = { frameSeq: stream.nextSeq++, image: image2 };
125776
+ this.pump(stream);
125777
+ }
125778
+ /** Send the latest frame if the renderer is ready and nothing is in flight. */
125779
+ pump(stream) {
125780
+ if (!this.consumerReady || stream.inFlight !== null) return;
125781
+ const latest = stream.latest;
125782
+ if (!latest || latest.frameSeq <= stream.sentSeq) return;
125783
+ const target2 = this.options.target();
125784
+ if (!target2 || target2.isDestroyed()) return;
125785
+ const { width, height } = latest.image.getSize();
125786
+ const pixels = latest.image.toBitmap();
125787
+ stream.sentSeq = latest.frameSeq;
125788
+ if (width <= 0 || height <= 0 || pixels.byteLength !== width * height * 4)
125789
+ return;
125790
+ const frame = {
125791
+ generation: stream.generation,
125792
+ tabId: stream.tabId,
125793
+ webContentsId: stream.webContentsId,
125794
+ documentEpoch: stream.documentEpoch,
125795
+ frameSeq: latest.frameSeq,
125796
+ width,
125797
+ height,
125798
+ pixels
125799
+ };
125800
+ stream.inFlight = frame.frameSeq;
125801
+ target2.send(BROWSER_COMPOSITE_FRAME, frame);
125802
+ }
125803
+ invalidateIf(generation, reason) {
125804
+ if (this.stream?.generation === generation) this.invalidate(reason);
125805
+ }
125806
+ stop(reason) {
125807
+ const stream = this.stream;
125808
+ if (!stream) return;
125809
+ this.stream = null;
125810
+ stream.detach();
125811
+ stream.latest = null;
125812
+ if (!stream.source.isDestroyed()) {
125813
+ try {
125814
+ stream.source.endFrameSubscription();
125815
+ } catch {
125816
+ }
125817
+ }
125818
+ const target2 = this.options.target();
125819
+ if (target2 && !target2.isDestroyed()) {
125820
+ const clear = { generation: stream.generation, reason };
125821
+ target2.send(BROWSER_COMPOSITE_CLEAR, clear);
125822
+ }
125823
+ }
125824
+ }
125476
125825
  const EXTENSION_ID_PATTERN = /^[a-p]{32}$/;
125477
125826
  function isExtensionId(value) {
125478
125827
  return typeof value === "string" && EXTENSION_ID_PATTERN.test(value);
@@ -125592,12 +125941,12 @@ const CAPS = {
125592
125941
  "uploadMaxFiles": 10
125593
125942
  };
125594
125943
  const NONCE = node_crypto.randomBytes(16).toString("hex");
125595
- const PREFIX = `about:blank#lop-${NONCE}:`;
125944
+ const PREFIX$1 = `about:blank#lop-${NONCE}:`;
125596
125945
  function internalDocumentUrl(page) {
125597
- return `${PREFIX}${internalUrlOf(page)}`;
125946
+ return `${PREFIX$1}${internalUrlOf(page)}`;
125598
125947
  }
125599
125948
  function internalPageOfDocument(url) {
125600
- return url.startsWith(PREFIX) ? parseInternalUrl(url.slice(PREFIX.length)) : null;
125949
+ return url.startsWith(PREFIX$1) ? parseInternalUrl(url.slice(PREFIX$1.length)) : null;
125601
125950
  }
125602
125951
  function isInternalDocument(url) {
125603
125952
  return url.startsWith("about:blank#lop-");
@@ -128669,12 +129018,14 @@ class TabRegistry {
128669
129018
  */
128670
129019
  constructor(viewFactory, onRemove, onChanged, onLayout = () => {
128671
129020
  }, onPresentation = () => {
129021
+ }, onBeforeLayout = () => {
128672
129022
  }) {
128673
129023
  this.viewFactory = viewFactory;
128674
129024
  this.onRemove = onRemove;
128675
129025
  this.onChanged = onChanged;
128676
129026
  this.onLayout = onLayout;
128677
129027
  this.onPresentation = onPresentation;
129028
+ this.onBeforeLayout = onBeforeLayout;
128678
129029
  }
128679
129030
  tabs = /* @__PURE__ */ new Map();
128680
129031
  nextTabId = 1;
@@ -129099,6 +129450,11 @@ class TabRegistry {
129099
129450
  if (!record || record.tabId !== this.activeTabId) return false;
129100
129451
  return this.contentRect !== null && !this.visible && !this.ownStateContent;
129101
129452
  }
129453
+ /** A copy of the renderer-reported content rect, or null (route torn down). */
129454
+ get presentationContentRect() {
129455
+ const rect2 = this.contentRect;
129456
+ return rect2 ? { x: rect2.x, y: rect2.y, width: rect2.width, height: rect2.height } : null;
129457
+ }
129102
129458
  activate(tabId) {
129103
129459
  if (!this.tabs.has(tabId)) return;
129104
129460
  this.activeTabId = tabId;
@@ -129106,6 +129462,10 @@ class TabRegistry {
129106
129462
  this.onChanged();
129107
129463
  }
129108
129464
  applyLayout() {
129465
+ try {
129466
+ this.onBeforeLayout();
129467
+ } catch {
129468
+ }
129109
129469
  const active = this.activeTabId === null ? null : this.tabs.get(this.activeTabId);
129110
129470
  for (const record of this.tabs.values()) {
129111
129471
  const isActive = record === active;
@@ -130645,7 +131005,7 @@ const TAB_SCOPED = /* @__PURE__ */ new Set([
130645
131005
  const RESTORE_CONCURRENCY = 4;
130646
131006
  const RESTORE_TAB_TIMEOUT_MS = 1e4;
130647
131007
  const RESTORE_BUDGET_MS = 8e3;
130648
- function withTimeout(work, ms) {
131008
+ function withTimeout$1(work, ms) {
130649
131009
  return new Promise((resolve, reject) => {
130650
131010
  const timer = setTimeout(
130651
131011
  () => reject(new Error(`timed out after ${ms}ms`)),
@@ -131712,7 +132072,7 @@ class BrowserHost {
131712
132072
  contents.on("did-navigate", onCommitted);
131713
132073
  try {
131714
132074
  const started = this.startRestore(tabId, recorded);
131715
- if (started) await withTimeout(started, RESTORE_TAB_TIMEOUT_MS);
132075
+ if (started) await withTimeout$1(started, RESTORE_TAB_TIMEOUT_MS);
131716
132076
  } catch (error) {
131717
132077
  this.log(`[browser] could not restore tab ${tabId}: ${String(error)}`);
131718
132078
  if (!committed2 && !isSupersededRestore(error) && !this.loadFailures.has(tabId) && this.registry.get(tabId) && !contents.isDestroyed()) {
@@ -131740,7 +132100,7 @@ class BrowserHost {
131740
132100
  await this.restoreUnderTimeout(tabId, recorded);
131741
132101
  if (!this.registry.get(tabId)) return;
131742
132102
  try {
131743
- await withTimeout(this.cdp.attach(contents), RESTORE_TAB_TIMEOUT_MS);
132103
+ await withTimeout$1(this.cdp.attach(contents), RESTORE_TAB_TIMEOUT_MS);
131744
132104
  } catch (error) {
131745
132105
  this.log(
131746
132106
  `[browser] could not attach to restored tab ${tabId}: ${String(error)}`
@@ -135356,6 +135716,9 @@ const BROWSER_IPC_CHANNELS = [
135356
135716
  /** The user's own recovery click on the `unavailable` state (round 1, D1a).
135357
135717
  * Named here so the namespace stays the one place that lists its channels. */
135358
135718
  "browser-retry",
135719
+ /** The live composite's renderer replies (`composite-bridge.ts`). */
135720
+ "browser-composite-ack",
135721
+ "browser-composite-consumer",
135359
135722
  /**
135360
135723
  * S1's probe-only channel. Listed here for unregistration only: the handler
135361
135724
  * below is registered only when the launch gate passed, and this entry makes
@@ -135532,6 +135895,16 @@ function registerBrowserIpc(options) {
135532
135895
  authorize(event);
135533
135896
  options.focusPage?.();
135534
135897
  });
135898
+ electron.ipcMain.handle("browser-composite-ack", (event, payload) => {
135899
+ authorize(event);
135900
+ return options.composite?.ack(payload) ?? false;
135901
+ });
135902
+ electron.ipcMain.handle("browser-composite-consumer", (event, ready) => {
135903
+ authorize(event);
135904
+ if (typeof ready !== "boolean")
135905
+ throw new Error("Composite consumer state must be a boolean.");
135906
+ options.composite?.consumer(ready);
135907
+ });
135535
135908
  electron.ipcMain.handle("browser-home", async (event) => {
135536
135909
  const host = authorize(event);
135537
135910
  return host.goHomeActive();
@@ -138888,6 +139261,11 @@ function startBrowserHost(options) {
138888
139261
  ) ?? false,
138889
139262
  openSystemSettings: async (tabId, id2) => await bindings.mediaPermission?.openSystemSettings(tabId, id2) ?? false
138890
139263
  },
139264
+ // Per call through `bindings`, so a retried start's bridge answers.
139265
+ composite: {
139266
+ ack: (payload) => bindings.composite?.ack(payload) ?? false,
139267
+ consumer: (ready) => bindings.composite?.consumer(ready)
139268
+ },
138891
139269
  focusPage: () => {
138892
139270
  const record = bindings.host?.()?.registry.activeTab;
138893
139271
  const target2 = record?.presented ? electron.webContents.fromId(record.view.webContents.id) : null;
@@ -139722,6 +140100,7 @@ async function initializeBrowserHost(options, bindings) {
139722
140100
  captureSession();
139723
140101
  };
139724
140102
  notifyAddressOverlayHealth = notifyChanged;
140103
+ let compositeBridge = null;
139725
140104
  const registry = new TabRegistry(
139726
140105
  (_createOptions, tabId) => {
139727
140106
  const view = buildView(options.window);
@@ -139771,8 +140150,57 @@ async function initializeBrowserHost(options, bindings) {
139771
140150
  view,
139772
140151
  presented2
139773
140152
  );
140153
+ },
140154
+ // Before the views are hidden/detached: the composite must subscribe to a
140155
+ // still-attached page (composite-bridge.ts, "SUBSCRIBE BEFORE DETACH").
140156
+ () => compositeBridge?.sync()
140157
+ );
140158
+ compositeBridge = new CompositeBridge({
140159
+ eligible: () => {
140160
+ if (options.window.isDestroyed()) return null;
140161
+ const record = registry.activeTab;
140162
+ if (!record || !registry.hiddenByOverlay(record.tabId)) return null;
140163
+ const rect2 = registry.presentationContentRect;
140164
+ if (!rect2 || rect2.width <= 0 || rect2.height <= 0) return null;
140165
+ const source = record.view.webContents;
140166
+ if (source.isDestroyed()) return null;
140167
+ return {
140168
+ tabId: record.tabId,
140169
+ source,
140170
+ documentEpoch: record.documentEpoch,
140171
+ rect: rect2
140172
+ };
140173
+ },
140174
+ target: () => options.window.isDestroyed() || options.window.webContents.isDestroyed() ? null : options.window.webContents,
140175
+ log: log2
140176
+ });
140177
+ const liveComposite = compositeBridge;
140178
+ registry.onEpoch(() => liveComposite.sync());
140179
+ const resetCompositeConsumer = (details) => {
140180
+ if (details && "isMainFrame" in details) {
140181
+ if (!details.isMainFrame || details.isSameDocument) return;
139774
140182
  }
140183
+ liveComposite.setConsumer(false);
140184
+ };
140185
+ const onShellGone = () => liveComposite.setConsumer(false);
140186
+ options.window.webContents.on(
140187
+ "did-start-navigation",
140188
+ resetCompositeConsumer
139775
140189
  );
140190
+ options.window.webContents.on("render-process-gone", onShellGone);
140191
+ const disposeComposite = () => {
140192
+ liveComposite.dispose();
140193
+ if (options.window.isDestroyed()) return;
140194
+ options.window.webContents.removeListener(
140195
+ "did-start-navigation",
140196
+ resetCompositeConsumer
140197
+ );
140198
+ options.window.webContents.removeListener(
140199
+ "render-process-gone",
140200
+ onShellGone
140201
+ );
140202
+ };
140203
+ rollback.add(disposeComposite);
139776
140204
  registryForDownloads = registry;
139777
140205
  registry.setCustodyGate(passkeyCustody);
139778
140206
  const userTabFocused = (contents) => {
@@ -140250,6 +140678,10 @@ async function initializeBrowserHost(options, bindings) {
140250
140678
  expectedUrl: options.expectedUrl,
140251
140679
  host: () => host,
140252
140680
  webauthn: () => webauthn,
140681
+ composite: {
140682
+ ack: (payload) => liveComposite.ack(payload),
140683
+ consumer: (ready) => liveComposite.setConsumer(ready)
140684
+ },
140253
140685
  passkeyNotice: {
140254
140686
  dismiss: (tabId, at) => {
140255
140687
  const dismissed = passkeyNotices.dismiss(tabId, at);
@@ -140389,6 +140821,7 @@ async function initializeBrowserHost(options, bindings) {
140389
140821
  }
140390
140822
  approvalsOverlay?.dispose("host-stop");
140391
140823
  disposeAllRecordingEncoders();
140824
+ disposeComposite();
140392
140825
  registry.destroyAll();
140393
140826
  await Promise.allSettled([...releases]);
140394
140827
  await cdp.close();
@@ -141517,7 +141950,7 @@ function accept(value, paths, problems) {
141517
141950
  }
141518
141951
  paths.push(value);
141519
141952
  }
141520
- const FRAME_LABEL = /^[a-z0-9][a-z0-9_-]{0,63}$/;
141953
+ const FRAME_LABEL$1 = /^[a-z0-9][a-z0-9_-]{0,63}$/;
141521
141954
  function registerDevDriverIPC(options) {
141522
141955
  const { window, expectedUrl, outDir, identity: identity2 } = options;
141523
141956
  fs.mkdirSync(outDir, { recursive: true });
@@ -141552,7 +141985,7 @@ function registerDevDriverIPC(options) {
141552
141985
  });
141553
141986
  electron.ipcMain.handle(DEV_DRIVER_CAPTURE, async (event, label) => {
141554
141987
  const owner = authorize(event);
141555
- if (typeof label !== "string" || !FRAME_LABEL.test(label)) {
141988
+ if (typeof label !== "string" || !FRAME_LABEL$1.test(label)) {
141556
141989
  throw new Error(
141557
141990
  "Invalid frame label: lowercase letters, digits, dash and underscore only."
141558
141991
  );
@@ -141579,6 +142012,202 @@ function registerDevDriverIPC(options) {
141579
142012
  };
141580
142013
  });
141581
142014
  }
142015
+ const DEV_DRIVER_SCRIPT_MAX_STEPS = 64;
142016
+ const DEV_DRIVER_SCRIPT_MAX_BYTES = 64 * 1024;
142017
+ const DEV_DRIVER_SCRIPT_CAP_MS = 3e5;
142018
+ const DEV_DRIVER_SCRIPT_STEP_TIMEOUT_MS = 3e4;
142019
+ const DEV_DRIVER_SCRIPT_READY_MS = 3e4;
142020
+ const DEV_DRIVER_SCRIPT_ACK_MS = 6e4;
142021
+ const DEV_DRIVER_SCRIPT_VERBS = Object.freeze([
142022
+ "navigate",
142023
+ "setTheme",
142024
+ "press",
142025
+ "state",
142026
+ "waitFor",
142027
+ "openCanvas",
142028
+ "skipOnboarding",
142029
+ "shutter"
142030
+ ]);
142031
+ const FRAME_LABEL = /^[a-z0-9][a-z0-9_-]{0,63}$/;
142032
+ function parseDevDriverScript(text2) {
142033
+ if (Buffer.byteLength(text2, "utf8") > DEV_DRIVER_SCRIPT_MAX_BYTES)
142034
+ throw new Error(
142035
+ `the step list is larger than ${DEV_DRIVER_SCRIPT_MAX_BYTES} bytes`
142036
+ );
142037
+ let parsed;
142038
+ try {
142039
+ parsed = JSON.parse(text2);
142040
+ } catch (error) {
142041
+ throw new Error(
142042
+ `the step list is not JSON (${error instanceof Error ? error.message : String(error)})`
142043
+ );
142044
+ }
142045
+ const steps = parsed?.steps;
142046
+ if (!Array.isArray(steps) || steps.length === 0)
142047
+ throw new Error('the step list needs a non-empty "steps" array');
142048
+ if (steps.length > DEV_DRIVER_SCRIPT_MAX_STEPS)
142049
+ throw new Error(
142050
+ `the step list has ${steps.length} steps; the cap is ${DEV_DRIVER_SCRIPT_MAX_STEPS}`
142051
+ );
142052
+ const labels = /* @__PURE__ */ new Set();
142053
+ return {
142054
+ steps: steps.map((raw, index) => {
142055
+ const at = `step ${index + 1}`;
142056
+ if (!raw || typeof raw !== "object" || Array.isArray(raw))
142057
+ throw new Error(`${at} is not an object`);
142058
+ const step = raw;
142059
+ const verb = step.verb;
142060
+ if (typeof verb !== "string" || !DEV_DRIVER_SCRIPT_VERBS.includes(verb))
142061
+ throw new Error(
142062
+ `${at} names verb ${JSON.stringify(verb)}; allowed: ${DEV_DRIVER_SCRIPT_VERBS.join(", ")}`
142063
+ );
142064
+ const timeoutMs = step.timeoutMs;
142065
+ if (timeoutMs !== void 0 && (typeof timeoutMs !== "number" || !Number.isInteger(timeoutMs) || timeoutMs <= 0 || timeoutMs > DEV_DRIVER_SCRIPT_CAP_MS))
142066
+ throw new Error(
142067
+ `${at} timeoutMs must be a positive integer up to ${DEV_DRIVER_SCRIPT_CAP_MS}`
142068
+ );
142069
+ if (step.optional !== void 0 && typeof step.optional !== "boolean")
142070
+ throw new Error(`${at} optional must be a boolean`);
142071
+ if (verb === "shutter") {
142072
+ const payload = step.payload;
142073
+ const label = payload?.label;
142074
+ if (typeof label !== "string" || !FRAME_LABEL.test(label))
142075
+ throw new Error(
142076
+ `${at} shutter label must match ${FRAME_LABEL} (lowercase, digits, dash, underscore)`
142077
+ );
142078
+ if (labels.has(label))
142079
+ throw new Error(`${at} repeats shutter label ${label}`);
142080
+ labels.add(label);
142081
+ if (payload?.capture !== "external" && payload?.capture !== "capturepage")
142082
+ throw new Error(
142083
+ `${at} shutter capture must be "external" or "capturepage"`
142084
+ );
142085
+ if (step.optional === true)
142086
+ throw new Error(`${at} a shutter step cannot be optional`);
142087
+ }
142088
+ return {
142089
+ verb,
142090
+ ...step.payload !== void 0 ? { payload: step.payload } : {},
142091
+ ...step.optional === true ? { optional: true } : {},
142092
+ ...timeoutMs !== void 0 ? { timeoutMs } : {}
142093
+ };
142094
+ })
142095
+ };
142096
+ }
142097
+ const PREFIX = "[dev-driver-script]";
142098
+ const TRAILING_SLASH$1 = /\/$/;
142099
+ const RESULT_PRINT_CAP = 4096;
142100
+ function printable(value) {
142101
+ let text2;
142102
+ try {
142103
+ text2 = JSON.stringify(value) ?? "null";
142104
+ } catch {
142105
+ text2 = '"<unserializable>"';
142106
+ }
142107
+ return text2.length > RESULT_PRINT_CAP ? `${text2.slice(0, RESULT_PRINT_CAP)}...<truncated>` : text2;
142108
+ }
142109
+ function oneLine(error) {
142110
+ return (error instanceof Error ? error.message : String(error)).replace(
142111
+ /\s+/g,
142112
+ " "
142113
+ );
142114
+ }
142115
+ async function withTimeout(work, ms, what, deps) {
142116
+ let timedOut = false;
142117
+ const timer = deps.sleep(ms).then(() => {
142118
+ timedOut = true;
142119
+ });
142120
+ const result = await Promise.race([work, timer]);
142121
+ if (timedOut) throw new Error(`${what} did not answer within ${ms} ms`);
142122
+ return result;
142123
+ }
142124
+ async function runDevDriverScript(script, deps) {
142125
+ const readyMs = deps.readyMs ?? DEV_DRIVER_SCRIPT_READY_MS;
142126
+ const ackMs = deps.ackMs ?? DEV_DRIVER_SCRIPT_ACK_MS;
142127
+ const defaultStepMs = deps.stepTimeoutMs ?? DEV_DRIVER_SCRIPT_STEP_TIMEOUT_MS;
142128
+ const needed = [
142129
+ ...new Set(
142130
+ script.steps.map((s) => s.verb).filter((verb) => verb !== "shutter")
142131
+ )
142132
+ ];
142133
+ const readyBy = deps.now() + readyMs;
142134
+ let installed2 = [];
142135
+ for (; ; ) {
142136
+ try {
142137
+ installed2 = await withTimeout(deps.verbs(), 2e3, "verbs", deps);
142138
+ } catch {
142139
+ installed2 = [];
142140
+ }
142141
+ if (needed.every((verb) => installed2.includes(verb))) break;
142142
+ if (deps.now() >= readyBy) {
142143
+ const missing = needed.filter((verb) => !installed2.includes(verb));
142144
+ deps.log(
142145
+ `${PREFIX} step=0 verb=ready error: the renderer did not install ${missing.join(", ")} within ${readyMs} ms`
142146
+ );
142147
+ deps.log(`${PREFIX} FAILED step=0`);
142148
+ return { ok: false, failedStep: 0 };
142149
+ }
142150
+ await deps.sleep(100);
142151
+ }
142152
+ deps.log(`${PREFIX} ready verbs=${installed2.length}`);
142153
+ for (const [index, step] of script.steps.entries()) {
142154
+ const n = index + 1;
142155
+ const timeoutMs = step.timeoutMs ?? defaultStepMs;
142156
+ try {
142157
+ if (step.verb === "shutter") {
142158
+ const { label, capture } = step.payload;
142159
+ const facts = deps.windowFacts();
142160
+ if (capture === "capturepage") {
142161
+ const shot = await withTimeout(
142162
+ deps.capture(label),
142163
+ timeoutMs,
142164
+ "capture",
142165
+ deps
142166
+ );
142167
+ deps.log(
142168
+ `${PREFIX} SHUTTER label=${label} capture=capturepage path=${shot.path} width=${shot.pixels.width} height=${shot.pixels.height} visible=${facts.visible} focused=${facts.focused}`
142169
+ );
142170
+ } else {
142171
+ const ack = `${deps.outDir.replace(TRAILING_SLASH$1, "")}/${label}.ack`;
142172
+ deps.log(
142173
+ `${PREFIX} SHUTTER label=${label} media=${deps.mediaSourceId()} visible=${facts.visible} focused=${facts.focused} ack=${ack}`
142174
+ );
142175
+ const ackBy = deps.now() + ackMs;
142176
+ while (!deps.ackExists(ack)) {
142177
+ if (deps.now() >= ackBy)
142178
+ throw new Error(
142179
+ `no ack at ${ack} within ${ackMs} ms (the harness did not confirm the capture)`
142180
+ );
142181
+ await deps.sleep(100);
142182
+ }
142183
+ }
142184
+ deps.log(`${PREFIX} step=${n} verb=shutter ok {"label":"${label}"}`);
142185
+ continue;
142186
+ }
142187
+ const value = await withTimeout(
142188
+ deps.call(step.verb, step.payload),
142189
+ timeoutMs,
142190
+ step.verb,
142191
+ deps
142192
+ );
142193
+ deps.log(`${PREFIX} step=${n} verb=${step.verb} ok ${printable(value)}`);
142194
+ } catch (error) {
142195
+ if (step.optional) {
142196
+ deps.log(
142197
+ `${PREFIX} step=${n} verb=${step.verb} skipped (optional): ${oneLine(error)}`
142198
+ );
142199
+ continue;
142200
+ }
142201
+ deps.log(
142202
+ `${PREFIX} step=${n} verb=${step.verb} error: ${oneLine(error)}`
142203
+ );
142204
+ deps.log(`${PREFIX} FAILED step=${n}`);
142205
+ return { ok: false, failedStep: n };
142206
+ }
142207
+ }
142208
+ deps.log(`${PREFIX} DONE steps=${script.steps.length}`);
142209
+ return { ok: true, failedStep: null };
142210
+ }
141582
142211
  function shouldToggleDevTools(input, isDev) {
141583
142212
  return isDev && input.type === "keyDown" && input.code === "F12";
141584
142213
  }
@@ -146366,14 +146995,17 @@ class UpdateService {
146366
146995
  * because the guarantee is about one press.
146367
146996
  */
146368
146997
  fleetDrainSpentMs = 0;
146998
+ /** S3: why this launch skips app-initiated update work; null for product launches. */
146999
+ quietReason;
146369
147000
  /**
146370
147001
  * Initialize the update service
146371
147002
  * @param mainWindow - The main application window
146372
147003
  * @param backendService - Optional backend service manager for restarting the backend after updates
146373
147004
  */
146374
- constructor(mainWindow2, backendService2) {
147005
+ constructor(mainWindow2, backendService2, options) {
146375
147006
  this.mainWindow = mainWindow2;
146376
147007
  this.backendService = backendService2 || null;
147008
+ this.quietReason = options?.quietReason ?? null;
146377
147009
  this.isDevMode = !electron.app.isPackaged || Boolean(process.env.ELECTRON_RENDERER_URL);
146378
147010
  const execPath = process.execPath;
146379
147011
  this.isNpxInstall = execPath.includes("node_modules/.bin") || execPath.includes("node_modules\\.bin");
@@ -146392,6 +147024,13 @@ class UpdateService {
146392
147024
  electronUpdater.autoUpdater.autoInstallOnAppQuit = false;
146393
147025
  this.setupUpdateEvents();
146394
147026
  this.recoverPendingInstall();
147027
+ if (this.quietReason) {
147028
+ logger.info(
147029
+ `Update service is quiet for this launch: ${this.quietReason}`,
147030
+ LogFileType.UPDATE_SERVICE
147031
+ );
147032
+ return;
147033
+ }
146395
147034
  const sealProbe = setTimeout(() => {
146396
147035
  void this.repairReachableBundleSeals().catch((error) => {
146397
147036
  logger.warn(
@@ -148416,6 +149055,13 @@ ${heal.removed.join("\n")}`,
148416
149055
  electron.ipcMain.handle(
148417
149056
  "check-for-updates",
148418
149057
  async (_event, options) => {
149058
+ if (this.quietReason && options?.manual !== true) {
149059
+ logger.info(
149060
+ `Skipped the app-initiated UI update check: ${this.quietReason}`,
149061
+ LogFileType.UPDATE_SERVICE
149062
+ );
149063
+ return null;
149064
+ }
148419
149065
  logger.info("Checking for UI updates...", LogFileType.UPDATE_SERVICE);
148420
149066
  this.onCheckRequested(options);
148421
149067
  const reportFailure = options?.manual === true;
@@ -153437,6 +154083,105 @@ const devDriverArming = resolveDevDriverArming({
153437
154083
  });
153438
154084
  const devDriverLine = describeDevDriverArming(devDriverArming);
153439
154085
  if (devDriverLine) console.log(devDriverLine);
154086
+ const devDriverScript = (() => {
154087
+ const realpathOrSelf = (path2) => {
154088
+ try {
154089
+ return fs.realpathSync(path2);
154090
+ } catch {
154091
+ return path2;
154092
+ }
154093
+ };
154094
+ try {
154095
+ const appData = electron.app.getPath("appData");
154096
+ return resolveDevDriverScript({
154097
+ env: launchEnv,
154098
+ armed: devDriverArming.armed,
154099
+ windowMode: windowLaunch.mode,
154100
+ userData: electron.app.getPath("userData"),
154101
+ defaultUserData: [
154102
+ .../* @__PURE__ */ new Set([
154103
+ electron.app.getName(),
154104
+ "Local Operator",
154105
+ "local-operator-ui",
154106
+ "Electron"
154107
+ ])
154108
+ ].map((name) => path$1.join(appData, name)),
154109
+ realpath: realpathOrSelf,
154110
+ // APFS is case-insensitive by default: compare folded there (R1-3).
154111
+ caseInsensitive: process.platform === "darwin"
154112
+ });
154113
+ } catch (error) {
154114
+ return {
154115
+ honoured: false,
154116
+ scriptPath: null,
154117
+ refusal: launchEnv.LOCAL_OPERATOR_UI_DEV_DRIVER_SCRIPT ? `the profile paths could not be read (${error instanceof Error ? error.message : String(error)})` : null
154118
+ };
154119
+ }
154120
+ })();
154121
+ const devDriverScriptLine = describeDevDriverScript(devDriverScript);
154122
+ if (devDriverScriptLine) console.log(devDriverScriptLine);
154123
+ let devDriverScriptStarted = false;
154124
+ function startDevDriverScriptOnce(window) {
154125
+ if (!devDriverScript.honoured || !devDriverScript.scriptPath || !devDriverArming.outDir || devDriverScriptStarted)
154126
+ return;
154127
+ devDriverScriptStarted = true;
154128
+ const outDir = devDriverArming.outDir;
154129
+ let script;
154130
+ try {
154131
+ script = parseDevDriverScript(
154132
+ fs.readFileSync(devDriverScript.scriptPath, "utf8")
154133
+ );
154134
+ } catch (error) {
154135
+ console.log(
154136
+ `[dev-driver-script] refused: ${error instanceof Error ? error.message : String(error)}`
154137
+ );
154138
+ endHeadlessRun("the dev-driver script was refused");
154139
+ return;
154140
+ }
154141
+ let nextId = 1;
154142
+ const pending = /* @__PURE__ */ new Map();
154143
+ electron.ipcMain.on(DEV_DRIVER_SCRIPT_RESULT, (event, message) => {
154144
+ if (window.isDestroyed() || event.sender !== window.webContents || event.senderFrame !== window.webContents.mainFrame)
154145
+ return;
154146
+ const id2 = message?.id;
154147
+ const waiter = typeof id2 === "number" ? pending.get(id2) : void 0;
154148
+ if (!waiter) return;
154149
+ pending.delete(id2);
154150
+ const result = message;
154151
+ if (result.ok) waiter.resolve(result.value);
154152
+ else waiter.reject(new Error(result.error ?? "the verb failed"));
154153
+ });
154154
+ const send2 = (verb, payload) => new Promise((resolve, reject) => {
154155
+ if (window.isDestroyed()) {
154156
+ reject(new Error("the window is gone"));
154157
+ return;
154158
+ }
154159
+ const id2 = nextId++;
154160
+ pending.set(id2, { resolve, reject });
154161
+ window.webContents.send(DEV_DRIVER_SCRIPT_STEP, { id: id2, verb, payload });
154162
+ });
154163
+ window.webContents.once("did-finish-load", () => {
154164
+ void runDevDriverScript(script, {
154165
+ verbs: async () => await send2("__verbs"),
154166
+ call: (verb, payload) => send2(verb, payload),
154167
+ capture: async (label) => await send2("__capture", { label }),
154168
+ mediaSourceId: () => window.getMediaSourceId(),
154169
+ windowFacts: () => ({
154170
+ visible: !window.isDestroyed() && window.isVisible(),
154171
+ focused: !window.isDestroyed() && window.isFocused()
154172
+ }),
154173
+ outDir,
154174
+ ackExists: (path2) => fs.existsSync(path2),
154175
+ sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms).unref()),
154176
+ now: () => Date.now(),
154177
+ log: (line) => console.log(line)
154178
+ }).then(
154179
+ ({ ok }) => endHeadlessRun(
154180
+ ok ? "the dev-driver script finished" : "the dev-driver script failed"
154181
+ )
154182
+ );
154183
+ });
154184
+ }
153440
154185
  const attachQueue = devDriverArming.armed ? readAttachArguments(process.argv) : { paths: [], problems: [] };
153441
154186
  for (const problem of attachQueue.problems)
153442
154187
  console.error(`[dev-driver] ${problem}`);
@@ -153461,7 +154206,14 @@ if (addressOverlayGate.asked) {
153461
154206
  addressOverlayGate.enabled ? addressOverlayGate.visible ? "[address-overlay] ARMED (S3 VISIBLE probe, inactive window, 120 s cap, no product path)" : `[address-overlay] ARMED (S${addressOverlayGate.list ? "2 probe: mirror list" : "1 probe: native child"}, no product path)` : `[address-overlay] not armed: ${addressOverlayGate.reason}`
153462
154207
  );
153463
154208
  }
153464
- const devDriverWebPreferences = devDriverArming.armed && devDriverArming.outDir ? { additionalArguments: [devDriverArgument(devDriverArming.outDir)] } : {};
154209
+ const devDriverWebPreferences = devDriverArming.armed && devDriverArming.outDir ? {
154210
+ additionalArguments: [
154211
+ devDriverArgument(devDriverArming.outDir),
154212
+ // S1: the preload installs its step listener only when this is
154213
+ // present, i.e. only when the script gate above passed.
154214
+ ...devDriverScript.honoured ? [devDriverScriptArgument()] : []
154215
+ ]
154216
+ } : {};
153465
154217
  const telemetryWebPreferences = {
153466
154218
  additionalArguments: [telemetryArgument(telemetryLaunch.enabled)]
153467
154219
  };
@@ -153787,7 +154539,9 @@ electron.app.whenReady().then(async () => {
153787
154539
  env: launchEnv,
153788
154540
  // S3 only: the one visible run nobody is watching still must not
153789
154541
  // outlive its launcher. False for every product launch.
153790
- boundedVisibleProbe: addressOverlayGate.visible
154542
+ // The S1 step runner too: an `inactive` scripted run is a visible
154543
+ // window nobody is at, so it is launcher-bound and capped (below).
154544
+ boundedVisibleProbe: addressOverlayGate.visible || devDriverScript.honoured
153791
154545
  });
153792
154546
  logger.info(`[window-mode] ${launcher.reason}`, LogFileType.BACKEND);
153793
154547
  if (windowLaunch.mode !== "normal") {
@@ -153813,12 +154567,20 @@ electron.app.whenReady().then(async () => {
153813
154567
  `[address-overlay] visible probe cap: ${ADDRESS_OVERLAY_VISIBLE_MAX_MS / 1e3} s from launch`
153814
154568
  );
153815
154569
  }
153816
- if (windowLaunch.mode === "headless" || addressOverlayGate.visible) {
154570
+ if (devDriverScript.honoured) {
154571
+ const scriptCap = setTimeout(() => {
154572
+ endHeadlessRun(
154573
+ `the dev-driver script reached its ${DEV_DRIVER_SCRIPT_CAP_MS / 1e3} s cap`
154574
+ );
154575
+ }, DEV_DRIVER_SCRIPT_CAP_MS);
154576
+ scriptCap.unref();
154577
+ }
154578
+ if (windowLaunch.mode === "headless" || addressOverlayGate.visible || devDriverScript.honoured) {
153817
154579
  for (const signal of ["SIGTERM", "SIGINT"]) {
153818
154580
  process.on(signal, () => endHeadlessRun(`received ${signal}`));
153819
154581
  }
153820
154582
  }
153821
- if (windowLaunch.mode !== "headless" && !addressOverlayGate.visible) {
154583
+ if (windowLaunch.mode !== "headless" && !addressOverlayGate.visible && !devDriverScript.honoured) {
153822
154584
  const onSigtermDuringQuit = () => {
153823
154585
  if (!quitState.isQuitting()) {
153824
154586
  process.removeListener("SIGTERM", onSigtermDuringQuit);
@@ -153978,7 +154740,9 @@ electron.app.whenReady().then(async () => {
153978
154740
  const desktopNotifier = new DesktopNotifier(
153979
154741
  () => mainWindow,
153980
154742
  sendDesktop,
153981
- windowLaunch.show,
154743
+ // S1: a scripted run banners nothing, `inactive` included - its banners
154744
+ // would duplicate the operator's own app and could enter a frame.
154745
+ devDriverScript.honoured ? "never" : windowLaunch.show,
153982
154746
  {
153983
154747
  /*
153984
154748
  * Whether a window we have a heartbeat from is still there.
@@ -154929,6 +155693,7 @@ electron.app.whenReady().then(async () => {
154929
155693
  request
154930
155694
  );
154931
155695
  const windowId = mainWindow.webContents.id;
155696
+ startDevDriverScriptOnce(mainWindow);
154932
155697
  claimParkedFor(
154933
155698
  mainWindow,
154934
155699
  (session2, request2) => openSessionInWindow(session2, request2, { fromPark: true }),
@@ -154958,7 +155723,11 @@ electron.app.whenReady().then(async () => {
154958
155723
  updateService.dispose();
154959
155724
  updateService = null;
154960
155725
  }
154961
- updateService = new UpdateService(mainWindow, backendService);
155726
+ updateService = new UpdateService(mainWindow, backendService, {
155727
+ // S3: an armed (rig) boot of the shipped bundle neither repairs that
155728
+ // bundle's seal nor checks for updates. Null for every product launch.
155729
+ quietReason: devDriverQuietUpdatesReason(devDriverArming)
155730
+ });
154962
155731
  activeUpdateService = updateService;
154963
155732
  mainWindow.on("closed", () => {
154964
155733
  if (updateService) {