local-operator-ui 0.48.12 → 0.48.14
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/out/main/index.js +1620 -137
- package/out/preload/recording-encoder.js +18 -0
- package/out/renderer/assets/{_basePickBy-V9OaYcB-.js → _basePickBy-CqjnHpsV.js} +1 -1
- package/out/renderer/assets/{_baseUniq-8wB3Js4X.js → _baseUniq-CULkxOs9.js} +1 -1
- package/out/renderer/assets/{agent-details-page-BTl_-YEX.js → agent-details-page-lJZmiKX2.js} +1 -1
- package/out/renderer/assets/{agent-hub-page-DTtPTc9w.js → agent-hub-page-CXOuZ3yB.js} +1 -1
- package/out/renderer/assets/{agents-page-Bu2x9OlH.js → agents-page-CnFoBt7k.js} +3 -3
- package/out/renderer/assets/{approvalsOverlay-SZio8Ofp.js → approvalsOverlay-GNG8MQGq.js} +1 -1
- package/out/renderer/assets/{arc-Cbb3dsAi.js → arc-oG0NKaKg.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-IEHRJDOE-DgaTU5dP.js → architectureDiagram-IEHRJDOE-aCa20cAA.js} +1 -1
- package/out/renderer/assets/{avatar-cropper-BFcwvqI6.js → avatar-cropper-BKB4pmro.js} +1 -1
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-DJCvCjpH.js → blockDiagram-JOT3LUYC-DoWnJlfb.js} +1 -1
- package/out/renderer/assets/{book-open-pRuf5Is_.js → book-open-_QnLjbGc.js} +1 -1
- package/out/renderer/assets/browser-page-n0j1N7Ab.js +1 -0
- package/out/renderer/assets/{browser-webauthn-prompt-DD_xVECS.js → browser-webauthn-prompt-2wnyPWXR.js} +1 -1
- package/out/renderer/assets/{building-2-DlFqaCQ3.js → building-2-CuIMWuHp.js} +1 -1
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-BFW_Pmyj.js → c4Diagram-VJAJSXHY-NhmXu-dk.js} +1 -1
- package/out/renderer/assets/channel-CiyaEias.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-C1dT2h3n.js → chunk-4BMEZGHF-WKw6LM2E.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-CwOEb50A.js → chunk-A2AXSNBT-VREyhp5G.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-BjIII1gB.js → chunk-AEK57VVT-Dcq313P6.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-BKlGt3O8.js → chunk-D6G4REZN-BwmfGuQ0.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-CBIwKm85.js → chunk-RZ5BOZE2-B0i9CUvw.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-Dd5yyEcI.js → chunk-XZIHB7SX-Bb55_5Sx.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-D0er2Ls8.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-D0er2Ls8.js +1 -0
- package/out/renderer/assets/clone-CMoDXzY3.js +1 -0
- package/out/renderer/assets/{console-mirror-DkS5GNu7.js → console-mirror-wmAJUEAs.js} +1 -1
- package/out/renderer/assets/{consoleCapture-DxKC5eT4.js → consoleCapture-DkdTJX2Q.js} +1 -1
- package/out/renderer/assets/{conversation-input-sync-Cc-qTPXt.js → conversation-input-sync-Ljt2C84E.js} +267 -261
- package/out/renderer/assets/{dagre-OKDRZEBW-BKO9uMeH.js → dagre-OKDRZEBW-u2i5WhoT.js} +1 -1
- package/out/renderer/assets/{diagram-SSKATNLV-CJmi-g4h.js → diagram-SSKATNLV-CujjPcjH.js} +1 -1
- package/out/renderer/assets/{diagram-VNBRO52H-5GOk0Odf.js → diagram-VNBRO52H-2G42wb4l.js} +1 -1
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-CwFYC9OY.js → erDiagram-Q7BY3M3F-Bu73stew.js} +1 -1
- package/out/renderer/assets/{error-boundary-CNDQLahI.js → error-boundary-iAAsdMV6.js} +1 -1
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-BlZSGS3e.js → flowDiagram-4HSFHLVR-BSjvh_jr.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-BlzfkV0E.js → ganttDiagram-APWFNJXF-EJycAePi.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-D8yYVXgc.js → gitGraphDiagram-7IBYFJ6S-PB_m6UAq.js} +1 -1
- package/out/renderer/assets/{graph-CujHlOYc.js → graph-BxZlYsmw.js} +1 -1
- package/out/renderer/assets/{hash-DwXIY4Qy.js → hash-K40hVccW.js} +1 -1
- package/out/renderer/assets/{heart-DteLgKgY.js → heart-DzefdwPO.js} +1 -1
- package/out/renderer/assets/{image-plus-D_LIjrWn.js → image-plus-DVE8D9f4.js} +1 -1
- package/out/renderer/assets/{index-dUG4NGMr.js → index-BA3RZ8Br.js} +1 -1
- package/out/renderer/assets/{index-CNRyf6TH.js → index-CxREIho-.js} +1 -1
- package/out/renderer/assets/{index-Cpnczd2X.js → index-DbWHoxKa.js} +204 -204
- package/out/renderer/assets/index-LE17ehWa.css +1 -0
- package/out/renderer/assets/{index-BEwj3YQh.js → index-oOJJkr9e.js} +1 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-DXQeWslF.js +2 -0
- package/out/renderer/assets/{installer-By84PQn_.js → installer-B-eY61tX.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-3t-xjzS3.js → journeyDiagram-U35MCT3I-CyQtY9wm.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-D0Q_2Dn8.js → kanban-definition-NDS4AKOZ-tFIMwUpw.js} +1 -1
- package/out/renderer/assets/{layout-DkxReRsJ.js → layout-CTmVT6af.js} +1 -1
- package/out/renderer/assets/{legacy-agents-page-DfgBWM9T.js → legacy-agents-page--Rair6vP.js} +1 -1
- package/out/renderer/assets/{library-page-DdEXaPAq.js → library-page-uYpy37ZN.js} +3 -3
- package/out/renderer/assets/{mermaid.core-wEi2Xha0.js → mermaid.core-BvXogV1Z.js} +19 -19
- package/out/renderer/assets/{mesh-page-Cvik8kDZ.js → mesh-page-DoFh0sb0.js} +1 -1
- package/out/renderer/assets/{messages-BUgXrFuu.js → messages-th0c6S1e.js} +10 -10
- package/out/renderer/assets/{mindmap-definition-ALO5MXBD-Ckfeu4g8.js → mindmap-definition-ALO5MXBD-DZVFZ38w.js} +1 -1
- package/out/renderer/assets/{mini-BTwSkiUX.js → mini-1kvE_2tK.js} +1 -1
- package/out/renderer/assets/{notebook-pen-DaCDU6pT.js → notebook-pen-DjPosiuD.js} +1 -1
- package/out/renderer/assets/{notifications-page-gR6HfBzt.js → notifications-page-C6w6nMjb.js} +1 -1
- package/out/renderer/assets/{org-access-CgK50sRd.js → org-access-rMoT0u2l.js} +1 -1
- package/out/renderer/assets/{org-surface-gate-Cj5TZEFY.js → org-surface-gate-B0nNR3Dz.js} +1 -1
- package/out/renderer/assets/{page-header-BxzHNbRL.js → page-header-DUmUT_Ad.js} +1 -1
- package/out/renderer/assets/{path-utils-WME2-1t6.js → path-utils-2YI9PZ0N.js} +33 -33
- package/out/renderer/assets/{pieDiagram-IB7DONF6-hQbISGxe.js → pieDiagram-IB7DONF6-BAs1yZaq.js} +1 -1
- package/out/renderer/assets/{project-markdown-GTsXHeR9.js → project-markdown-C8Uo14Aq.js} +1 -1
- package/out/renderer/assets/{projects-page-Maua55-d.js → projects-page-D_7oIEvX.js} +1 -1
- package/out/renderer/assets/{publication-validation-CEt8ujWM.js → publication-validation-DmYPLvRC.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-DoZgXTb2.js → quadrantDiagram-7GDLP6J5-DG-wsRad.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-BBfDik4W.js → radar-MK3ICKWK-NF-imI4f.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-D-rNfHt_.js → radient-auth-buttons-nhpIQ5IS.js} +1 -1
- package/out/renderer/assets/recordingEncoder-vsQVVLgp.js +1 -0
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-PQXtpJrE.js → requirementDiagram-KVF5MWMF-DtKpbYlY.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-sazrDowy.js → sankeyDiagram-QLVOVGJD-D16V3y8g.js} +1 -1
- package/out/renderer/assets/{schedules-page-CysGzIAB.js → schedules-page-Cj3Uekqu.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-B_aEMcxw.js → sequenceDiagram-X6HHIX6F-CdouRiAc.js} +1 -1
- package/out/renderer/assets/settings-page-CLkD2Y91.js +288 -0
- package/out/renderer/assets/{smartart-CC6vc4y6.js → smartart-BJMtaIOY.js} +1 -1
- package/out/renderer/assets/{stateDiagram-DGXRK772-CAtgbx5z.js → stateDiagram-DGXRK772-BqF42ITE.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-nsHrbQkw.js +1 -0
- package/out/renderer/assets/team-bridge-page-BcWOzonp.js +50 -0
- package/out/renderer/assets/{team-bridge-scope-preference-BF-iqyAj.js → team-bridge-scope-preference-BelhGFfv.js} +1 -1
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-CRv8lzqI.js → timeline-definition-BDJGKUSR-BjKsGQ4N.js} +1 -1
- package/out/renderer/assets/{use-download-agent-mutation-D5nyCqh7.js → use-download-agent-mutation-CiwSVQa5.js} +1 -1
- package/out/renderer/assets/{use-session-snapshot-DzP1uiH5.js → use-session-snapshot-De0MaqPb.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-CjpCMwp7.js → xychartDiagram-VJFVF3MP-DBg47u_T.js} +1 -1
- package/out/renderer/browser-approvals-overlay.html +2 -2
- package/out/renderer/console-capture.html +6 -6
- package/out/renderer/index.html +8 -8
- package/out/renderer/installer.html +5 -5
- package/out/renderer/mini.html +8 -8
- package/out/renderer/recording-encoder.html +23 -0
- package/package.json +1 -1
- package/out/renderer/assets/browser-page-DkW1hE9r.js +0 -1
- package/out/renderer/assets/channel-CenAtys0.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-CvdzoE0r.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-CvdzoE0r.js +0 -1
- package/out/renderer/assets/clone-Bt9QDldY.js +0 -1
- package/out/renderer/assets/index-4c2Ov0Zi.css +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-FQyDBbNh.js +0 -2
- package/out/renderer/assets/settings-page-Cwatgoy0.js +0 -288
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-Be5VZUL8.js +0 -1
- package/out/renderer/assets/team-bridge-page-Y9vIMvkT.js +0 -50
package/out/main/index.js
CHANGED
|
@@ -2939,7 +2939,8 @@ const enUiAgentsAvatar = {
|
|
|
2939
2939
|
"ui.agents.avatar.editor.zoom": "Zoom",
|
|
2940
2940
|
"ui.agents.avatar.editor.zoom_in": "Zoom in",
|
|
2941
2941
|
"ui.agents.avatar.editor.zoom_out": "Zoom out",
|
|
2942
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
2942
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
2943
|
+
"ui.agents.avatar.add_link": "Add a picture for {name}"
|
|
2943
2944
|
};
|
|
2944
2945
|
const enUiAgentsConfig = {
|
|
2945
2946
|
"ui.agents.config.about": "About {kind} {name}",
|
|
@@ -4535,7 +4536,14 @@ const enUiChatCanonical = {
|
|
|
4535
4536
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, =1 {{count_display} items} other {{count_display} items}}",
|
|
4536
4537
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, =1 {{count_display} images} other {{count_display} images}}",
|
|
4537
4538
|
"ui.chat.canonical.lightbox.show_image": "Show image {index, number, ::group-off} of {count, number, ::group-off}",
|
|
4538
|
-
"ui.chat.canonical.supplement.details.summary": "Details"
|
|
4539
|
+
"ui.chat.canonical.supplement.details.summary": "Details",
|
|
4540
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# file not shown} other {# files not shown}}: {reason}",
|
|
4541
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# file not shown} other {# files not shown}}",
|
|
4542
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "outside allowed locations",
|
|
4543
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "sensitive file",
|
|
4544
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "file no longer exists",
|
|
4545
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "too large to preview",
|
|
4546
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
4539
4547
|
};
|
|
4540
4548
|
const enUiChatCommentaryActions = {
|
|
4541
4549
|
"ui.chat.commentary_actions.label": "Commentary actions"
|
|
@@ -4560,6 +4568,11 @@ const enUiChatComposer = {
|
|
|
4560
4568
|
"ui.chat.composer.confirm_recording_hint": "Confirm recording (Enter)",
|
|
4561
4569
|
"ui.chat.composer.cancel_recording": "Cancel recording",
|
|
4562
4570
|
"ui.chat.composer.cancel_recording_hint": "Cancel recording (Esc)",
|
|
4571
|
+
"ui.chat.composer.insert_transcript": "Insert transcript",
|
|
4572
|
+
"ui.chat.composer.insert_transcript_hint": "Insert transcript to review (Enter)",
|
|
4573
|
+
"ui.chat.composer.send_recording": "Send recording",
|
|
4574
|
+
"ui.chat.composer.send_recording_hint": "Transcribe and send now, no review",
|
|
4575
|
+
"ui.chat.composer.steer_hint": "Steer the agent now (Enter) · Esc stops the turn",
|
|
4563
4576
|
"ui.chat.composer.stop": "Stop",
|
|
4564
4577
|
"ui.chat.composer.stop_work_hint": "Stop this session's current work (Esc)",
|
|
4565
4578
|
"ui.chat.composer.stop_agent": "Stop agent",
|
|
@@ -4610,8 +4623,9 @@ const enUiChatComposer = {
|
|
|
4610
4623
|
};
|
|
4611
4624
|
const enUiChatComposerMedia = {
|
|
4612
4625
|
"ui.chat.composer_media.recording": "Recording",
|
|
4613
|
-
"ui.chat.composer_media.confirms": "
|
|
4626
|
+
"ui.chat.composer_media.confirms": "inserts",
|
|
4614
4627
|
"ui.chat.composer_media.cancels": "cancels",
|
|
4628
|
+
"ui.chat.composer_media.sends_now": "sends now",
|
|
4615
4629
|
"ui.chat.composer_media.pasted_type": "Pasted {mimeType}",
|
|
4616
4630
|
"ui.chat.composer_media.pasted_file": "Pasted file",
|
|
4617
4631
|
"ui.chat.composer_media.preview_failed": "Could not be previewed",
|
|
@@ -9233,7 +9247,12 @@ const enUiSettingsAppearance = {
|
|
|
9233
9247
|
"ui.settings.appearance.theme.tokyo_night_storm": "The brighter night — indigo storm skies under the same neon accents.",
|
|
9234
9248
|
"ui.settings.appearance.theme.tokyo_night": "Deep blue-purple night with a bright blue accent.",
|
|
9235
9249
|
"ui.settings.appearance.theme.tron": "Electric cyan circuitry on the Grid's blue-black.",
|
|
9236
|
-
"ui.settings.appearance.theme.vaporwave": "Dusty pink and faded teal pastels on deep mall-purple."
|
|
9250
|
+
"ui.settings.appearance.theme.vaporwave": "Dusty pink and faded teal pastels on deep mall-purple.",
|
|
9251
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "Agent picture size",
|
|
9252
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "How large agent pictures appear in the transcript and the chat header. Sidebar rows keep their size.",
|
|
9253
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "Small",
|
|
9254
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "Medium",
|
|
9255
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "Large"
|
|
9237
9256
|
};
|
|
9238
9257
|
const enUiSettingsAppearanceWindowGlass = {
|
|
9239
9258
|
"ui.settings.appearance.window_glass.label": "Translucent window",
|
|
@@ -10633,7 +10652,8 @@ const esUiAgentsAvatar = {
|
|
|
10633
10652
|
"ui.agents.avatar.editor.zoom": "Zoom",
|
|
10634
10653
|
"ui.agents.avatar.editor.zoom_in": "Acercar",
|
|
10635
10654
|
"ui.agents.avatar.editor.zoom_out": "Alejar",
|
|
10636
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
10655
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
10656
|
+
"ui.agents.avatar.add_link": "Añadir una foto para {name}"
|
|
10637
10657
|
};
|
|
10638
10658
|
const esUiAgentsConfig = {
|
|
10639
10659
|
"ui.agents.config.about": "Acerca de {name} ({kind})",
|
|
@@ -12229,7 +12249,14 @@ const esUiChatCanonical = {
|
|
|
12229
12249
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, one {{count_display} elemento} many {{count_display} de elementos} other {{count_display} elementos}}",
|
|
12230
12250
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, one {{count_display} imagen} many {{count_display} de imágenes} other {{count_display} imágenes}}",
|
|
12231
12251
|
"ui.chat.canonical.lightbox.show_image": "Mostrar la imagen {index, number, ::group-off} de {count, number, ::group-off}",
|
|
12232
|
-
"ui.chat.canonical.supplement.details.summary": "Detalles"
|
|
12252
|
+
"ui.chat.canonical.supplement.details.summary": "Detalles",
|
|
12253
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# archivo no mostrado} many {# de archivos no mostrados} other {# archivos no mostrados}}: {reason}",
|
|
12254
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# archivo no mostrado} many {# de archivos no mostrados} other {# archivos no mostrados}}",
|
|
12255
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "fuera de las ubicaciones permitidas",
|
|
12256
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "archivo confidencial",
|
|
12257
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "el archivo ya no existe",
|
|
12258
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "demasiado grande para la vista previa",
|
|
12259
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
12233
12260
|
};
|
|
12234
12261
|
const esUiChatCommentaryActions = {
|
|
12235
12262
|
"ui.chat.commentary_actions.label": "Acciones de la narración"
|
|
@@ -12254,6 +12281,11 @@ const esUiChatComposer = {
|
|
|
12254
12281
|
"ui.chat.composer.confirm_recording_hint": "Confirmar grabación (Intro)",
|
|
12255
12282
|
"ui.chat.composer.cancel_recording": "Cancelar grabación",
|
|
12256
12283
|
"ui.chat.composer.cancel_recording_hint": "Cancelar grabación (Esc)",
|
|
12284
|
+
"ui.chat.composer.insert_transcript": "Insertar transcripción",
|
|
12285
|
+
"ui.chat.composer.insert_transcript_hint": "Insertar la transcripción para revisarla (Intro)",
|
|
12286
|
+
"ui.chat.composer.send_recording": "Enviar grabación",
|
|
12287
|
+
"ui.chat.composer.send_recording_hint": "Transcribir y enviar ahora, sin revisar",
|
|
12288
|
+
"ui.chat.composer.steer_hint": "Guiar al agente ahora (Intro) · Esc detiene el turno",
|
|
12257
12289
|
"ui.chat.composer.stop": "Detener",
|
|
12258
12290
|
"ui.chat.composer.stop_work_hint": "Detener el trabajo actual de esta sesión (Esc)",
|
|
12259
12291
|
"ui.chat.composer.stop_agent": "Detener agente",
|
|
@@ -12304,8 +12336,9 @@ const esUiChatComposer = {
|
|
|
12304
12336
|
};
|
|
12305
12337
|
const esUiChatComposerMedia = {
|
|
12306
12338
|
"ui.chat.composer_media.recording": "Grabando",
|
|
12307
|
-
"ui.chat.composer_media.confirms": "
|
|
12339
|
+
"ui.chat.composer_media.confirms": "inserta",
|
|
12308
12340
|
"ui.chat.composer_media.cancels": "cancela",
|
|
12341
|
+
"ui.chat.composer_media.sends_now": "envía ahora",
|
|
12309
12342
|
"ui.chat.composer_media.pasted_type": "Pegado {mimeType}",
|
|
12310
12343
|
"ui.chat.composer_media.pasted_file": "Archivo pegado",
|
|
12311
12344
|
"ui.chat.composer_media.preview_failed": "No se pudo previsualizar",
|
|
@@ -16927,7 +16960,12 @@ const esUiSettingsAppearance = {
|
|
|
16927
16960
|
"ui.settings.appearance.theme.tokyo_night_storm": "La noche más brillante — cielos de tormenta índigo bajo los mismos acentos neón.",
|
|
16928
16961
|
"ui.settings.appearance.theme.tokyo_night": "Noche azul violácea profunda con un acento azul brillante.",
|
|
16929
16962
|
"ui.settings.appearance.theme.tron": "Circuitos cian eléctricos sobre el negro azulado de la Grid.",
|
|
16930
|
-
"ui.settings.appearance.theme.vaporwave": "Pasteles rosa empolvado y verde azulado desteñido sobre un morado profundo de centro comercial."
|
|
16963
|
+
"ui.settings.appearance.theme.vaporwave": "Pasteles rosa empolvado y verde azulado desteñido sobre un morado profundo de centro comercial.",
|
|
16964
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "Tamaño de la foto del agente",
|
|
16965
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "Tamaño de las fotos de los agentes en la transcripción y en la cabecera del chat. Las filas de la barra lateral mantienen su tamaño.",
|
|
16966
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "Pequeño",
|
|
16967
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "Mediano",
|
|
16968
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "Grande"
|
|
16931
16969
|
};
|
|
16932
16970
|
const esUiSettingsAppearanceWindowGlass = {
|
|
16933
16971
|
"ui.settings.appearance.window_glass.label": "Ventana translúcida",
|
|
@@ -18327,7 +18365,8 @@ const frUiAgentsAvatar = {
|
|
|
18327
18365
|
"ui.agents.avatar.editor.zoom": "Zoom",
|
|
18328
18366
|
"ui.agents.avatar.editor.zoom_in": "Zoom avant",
|
|
18329
18367
|
"ui.agents.avatar.editor.zoom_out": "Zoom arrière",
|
|
18330
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
18368
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
18369
|
+
"ui.agents.avatar.add_link": "Ajouter une photo pour {name}"
|
|
18331
18370
|
};
|
|
18332
18371
|
const frUiAgentsConfig = {
|
|
18333
18372
|
"ui.agents.config.about": "Concerne : {kind} {name}",
|
|
@@ -19923,7 +19962,14 @@ const frUiChatCanonical = {
|
|
|
19923
19962
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, one {{count_display} élément} many {{count_display} d’éléments} other {{count_display} éléments}}",
|
|
19924
19963
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, one {{count_display} image} many {{count_display} d’images} other {{count_display} images}}",
|
|
19925
19964
|
"ui.chat.canonical.lightbox.show_image": "Afficher l’image {index, number, ::group-off} sur {count, number, ::group-off}",
|
|
19926
|
-
"ui.chat.canonical.supplement.details.summary": "Détails"
|
|
19965
|
+
"ui.chat.canonical.supplement.details.summary": "Détails",
|
|
19966
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# fichier non affiché} many {# de fichiers non affichés} other {# fichiers non affichés}} : {reason}",
|
|
19967
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# fichier non affiché} many {# de fichiers non affichés} other {# fichiers non affichés}}",
|
|
19968
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "hors des emplacements autorisés",
|
|
19969
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "fichier sensible",
|
|
19970
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "le fichier n’existe plus",
|
|
19971
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "trop volumineux pour l’aperçu",
|
|
19972
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
19927
19973
|
};
|
|
19928
19974
|
const frUiChatCommentaryActions = {
|
|
19929
19975
|
"ui.chat.commentary_actions.label": "Actions du commentaire"
|
|
@@ -19948,6 +19994,11 @@ const frUiChatComposer = {
|
|
|
19948
19994
|
"ui.chat.composer.confirm_recording_hint": "Confirmer l’enregistrement (Entrée)",
|
|
19949
19995
|
"ui.chat.composer.cancel_recording": "Annuler l’enregistrement",
|
|
19950
19996
|
"ui.chat.composer.cancel_recording_hint": "Annuler l’enregistrement (Échap)",
|
|
19997
|
+
"ui.chat.composer.insert_transcript": "Insérer la transcription",
|
|
19998
|
+
"ui.chat.composer.insert_transcript_hint": "Insérer la transcription pour la relire (Entrée)",
|
|
19999
|
+
"ui.chat.composer.send_recording": "Envoyer l’enregistrement",
|
|
20000
|
+
"ui.chat.composer.send_recording_hint": "Transcrire et envoyer maintenant, sans relecture",
|
|
20001
|
+
"ui.chat.composer.steer_hint": "Orienter l’agent maintenant (Entrée) · Échap arrête le tour",
|
|
19951
20002
|
"ui.chat.composer.stop": "Arrêter",
|
|
19952
20003
|
"ui.chat.composer.stop_work_hint": "Arrêter le travail en cours de cette session (Échap)",
|
|
19953
20004
|
"ui.chat.composer.stop_agent": "Arrêter l’agent",
|
|
@@ -19998,8 +20049,9 @@ const frUiChatComposer = {
|
|
|
19998
20049
|
};
|
|
19999
20050
|
const frUiChatComposerMedia = {
|
|
20000
20051
|
"ui.chat.composer_media.recording": "Enregistrement",
|
|
20001
|
-
"ui.chat.composer_media.confirms": "
|
|
20052
|
+
"ui.chat.composer_media.confirms": "insère",
|
|
20002
20053
|
"ui.chat.composer_media.cancels": "annule",
|
|
20054
|
+
"ui.chat.composer_media.sends_now": "envoie maintenant",
|
|
20003
20055
|
"ui.chat.composer_media.pasted_type": "Collé : {mimeType}",
|
|
20004
20056
|
"ui.chat.composer_media.pasted_file": "Fichier collé",
|
|
20005
20057
|
"ui.chat.composer_media.preview_failed": "Aperçu impossible",
|
|
@@ -24621,7 +24673,12 @@ const frUiSettingsAppearance = {
|
|
|
24621
24673
|
"ui.settings.appearance.theme.tokyo_night_storm": "La nuit la plus lumineuse — ciel d’orage indigo sous les mêmes accents néon.",
|
|
24622
24674
|
"ui.settings.appearance.theme.tokyo_night": "Nuit bleu-violet profond avec un accent bleu vif.",
|
|
24623
24675
|
"ui.settings.appearance.theme.tron": "Circuits cyan électrique sur le bleu-noir de la Grid.",
|
|
24624
|
-
"ui.settings.appearance.theme.vaporwave": "Pastels rose poudré et bleu-vert délavé sur un violet de galerie marchande."
|
|
24676
|
+
"ui.settings.appearance.theme.vaporwave": "Pastels rose poudré et bleu-vert délavé sur un violet de galerie marchande.",
|
|
24677
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "Taille de la photo de l’agent",
|
|
24678
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "Taille des photos des agents dans la transcription et dans l’en-tête de conversation. Les lignes de la barre latérale gardent leur taille.",
|
|
24679
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "Petit",
|
|
24680
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "Moyen",
|
|
24681
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "Grand"
|
|
24625
24682
|
};
|
|
24626
24683
|
const frUiSettingsAppearanceWindowGlass = {
|
|
24627
24684
|
"ui.settings.appearance.window_glass.label": "Fenêtre translucide",
|
|
@@ -26021,7 +26078,8 @@ const hiUiAgentsAvatar = {
|
|
|
26021
26078
|
"ui.agents.avatar.editor.zoom": "ज़ूम",
|
|
26022
26079
|
"ui.agents.avatar.editor.zoom_in": "ज़ूम बढ़ाएँ",
|
|
26023
26080
|
"ui.agents.avatar.editor.zoom_out": "ज़ूम घटाएँ",
|
|
26024
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
26081
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
26082
|
+
"ui.agents.avatar.add_link": "{name} के लिए तस्वीर जोड़ें"
|
|
26025
26083
|
};
|
|
26026
26084
|
const hiUiAgentsConfig = {
|
|
26027
26085
|
"ui.agents.config.about": "{kind} {name} के बारे में",
|
|
@@ -27617,7 +27675,14 @@ const hiUiChatCanonical = {
|
|
|
27617
27675
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, =1 {{count_display} आइटम} one {{count_display} आइटम} other {{count_display} आइटम}}",
|
|
27618
27676
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, =1 {{count_display} तस्वीर} one {{count_display} तस्वीर} other {{count_display} तस्वीरें}}",
|
|
27619
27677
|
"ui.chat.canonical.lightbox.show_image": "कुल {count, number, ::group-off} में से तस्वीर {index, number, ::group-off} दिखाएँ",
|
|
27620
|
-
"ui.chat.canonical.supplement.details.summary": "विवरण"
|
|
27678
|
+
"ui.chat.canonical.supplement.details.summary": "विवरण",
|
|
27679
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# फ़ाइल नहीं दिखाई गई} other {# फ़ाइलें नहीं दिखाई गईं}}: {reason}",
|
|
27680
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# फ़ाइल नहीं दिखाई गई} other {# फ़ाइलें नहीं दिखाई गईं}}",
|
|
27681
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "अनुमत स्थानों से बाहर",
|
|
27682
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "संवेदनशील फ़ाइल",
|
|
27683
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "फ़ाइल अब मौजूद नहीं है",
|
|
27684
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "पूर्वावलोकन के लिए बहुत बड़ी",
|
|
27685
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
27621
27686
|
};
|
|
27622
27687
|
const hiUiChatCommentaryActions = {
|
|
27623
27688
|
"ui.chat.commentary_actions.label": "टिप्पणी की कार्रवाइयाँ"
|
|
@@ -27642,6 +27707,11 @@ const hiUiChatComposer = {
|
|
|
27642
27707
|
"ui.chat.composer.confirm_recording_hint": "रिकॉर्डिंग की पुष्टि करें (Enter)",
|
|
27643
27708
|
"ui.chat.composer.cancel_recording": "रिकॉर्डिंग रद्द करें",
|
|
27644
27709
|
"ui.chat.composer.cancel_recording_hint": "रिकॉर्डिंग रद्द करें (Esc)",
|
|
27710
|
+
"ui.chat.composer.insert_transcript": "ट्रांसक्रिप्ट डालें",
|
|
27711
|
+
"ui.chat.composer.insert_transcript_hint": "जाँचने के लिए ट्रांसक्रिप्ट डालें (Enter)",
|
|
27712
|
+
"ui.chat.composer.send_recording": "रिकॉर्डिंग भेजें",
|
|
27713
|
+
"ui.chat.composer.send_recording_hint": "अभी ट्रांसक्राइब करके भेजें, बिना जाँचे",
|
|
27714
|
+
"ui.chat.composer.steer_hint": "एजेंट को अभी दिशा दें (Enter) · Esc इस टर्न को रोकता है",
|
|
27645
27715
|
"ui.chat.composer.stop": "रोकें",
|
|
27646
27716
|
"ui.chat.composer.stop_work_hint": "इस सत्र का मौजूदा काम रोकें (Esc)",
|
|
27647
27717
|
"ui.chat.composer.stop_agent": "एजेंट रोकें",
|
|
@@ -27692,8 +27762,9 @@ const hiUiChatComposer = {
|
|
|
27692
27762
|
};
|
|
27693
27763
|
const hiUiChatComposerMedia = {
|
|
27694
27764
|
"ui.chat.composer_media.recording": "रिकॉर्डिंग",
|
|
27695
|
-
"ui.chat.composer_media.confirms": "
|
|
27765
|
+
"ui.chat.composer_media.confirms": "डालता है",
|
|
27696
27766
|
"ui.chat.composer_media.cancels": "रद्द करता है",
|
|
27767
|
+
"ui.chat.composer_media.sends_now": "अभी भेजता है",
|
|
27697
27768
|
"ui.chat.composer_media.pasted_type": "पेस्ट किया गया {mimeType}",
|
|
27698
27769
|
"ui.chat.composer_media.pasted_file": "पेस्ट की गई फ़ाइल",
|
|
27699
27770
|
"ui.chat.composer_media.preview_failed": "प्रीव्यू नहीं दिखाया जा सका",
|
|
@@ -32315,7 +32386,12 @@ const hiUiSettingsAppearance = {
|
|
|
32315
32386
|
"ui.settings.appearance.theme.tokyo_night_storm": "उजली रात — उसी नीयॉन एक्सेंट के नीचे इंडिगो तूफ़ानी आसमान।",
|
|
32316
32387
|
"ui.settings.appearance.theme.tokyo_night": "चमकीले नीले एक्सेंट के साथ गहरी नीली-बैंगनी रात।",
|
|
32317
32388
|
"ui.settings.appearance.theme.tron": "Grid की नीली-काली पृष्ठभूमि पर बिजली जैसी सायन सर्किटरी।",
|
|
32318
|
-
"ui.settings.appearance.theme.vaporwave": "गहरे मॉल-पर्पल पर धुँधले गुलाबी और फीके टील पेस्टल।"
|
|
32389
|
+
"ui.settings.appearance.theme.vaporwave": "गहरे मॉल-पर्पल पर धुँधले गुलाबी और फीके टील पेस्टल।",
|
|
32390
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "एजेंट की तस्वीर का आकार",
|
|
32391
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "ट्रांसक्रिप्ट और चैट हेडर में एजेंट की तस्वीरें कितनी बड़ी दिखें। साइडबार की पंक्तियों का आकार नहीं बदलता।",
|
|
32392
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "छोटा",
|
|
32393
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "मध्यम",
|
|
32394
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "बड़ा"
|
|
32319
32395
|
};
|
|
32320
32396
|
const hiUiSettingsAppearanceWindowGlass = {
|
|
32321
32397
|
"ui.settings.appearance.window_glass.label": "पारभासी विंडो",
|
|
@@ -33715,7 +33791,8 @@ const ruUiAgentsAvatar = {
|
|
|
33715
33791
|
"ui.agents.avatar.editor.zoom": "Масштаб",
|
|
33716
33792
|
"ui.agents.avatar.editor.zoom_in": "Приблизить",
|
|
33717
33793
|
"ui.agents.avatar.editor.zoom_out": "Отдалить",
|
|
33718
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
33794
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
33795
|
+
"ui.agents.avatar.add_link": "Добавить фото агенту {name}"
|
|
33719
33796
|
};
|
|
33720
33797
|
const ruUiAgentsConfig = {
|
|
33721
33798
|
"ui.agents.config.about": "Контекст: {kind} {name}",
|
|
@@ -35311,7 +35388,14 @@ const ruUiChatCanonical = {
|
|
|
35311
35388
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, =1 {{count_display} элемент} one {{count_display} элемент} few {{count_display} элемента} many {{count_display} элементов} other {{count_display} элемента}}",
|
|
35312
35389
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, =1 {{count_display} изображение} one {{count_display} изображение} few {{count_display} изображения} many {{count_display} изображений} other {{count_display} изображения}}",
|
|
35313
35390
|
"ui.chat.canonical.lightbox.show_image": "Показать изображение {index, number, ::group-off} из {count, number, ::group-off}",
|
|
35314
|
-
"ui.chat.canonical.supplement.details.summary": "Подробности"
|
|
35391
|
+
"ui.chat.canonical.supplement.details.summary": "Подробности",
|
|
35392
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# файл не показан} few {# файла не показаны} many {# файлов не показано} other {# файла не показано}}: {reason}",
|
|
35393
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# файл не показан} few {# файла не показаны} many {# файлов не показано} other {# файла не показано}}",
|
|
35394
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "вне разрешённых расположений",
|
|
35395
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "конфиденциальный файл",
|
|
35396
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "файл больше не существует",
|
|
35397
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "слишком большой для предпросмотра",
|
|
35398
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
35315
35399
|
};
|
|
35316
35400
|
const ruUiChatCommentaryActions = {
|
|
35317
35401
|
"ui.chat.commentary_actions.label": "Действия с пояснением"
|
|
@@ -35321,6 +35405,11 @@ const ruUiChatComposer = {
|
|
|
35321
35405
|
"ui.chat.composer.attach_file": "Прикрепить файл",
|
|
35322
35406
|
"ui.chat.composer.cancel_recording": "Отменить запись",
|
|
35323
35407
|
"ui.chat.composer.cancel_recording_hint": "Отменить запись (Esc)",
|
|
35408
|
+
"ui.chat.composer.insert_transcript": "Вставить расшифровку",
|
|
35409
|
+
"ui.chat.composer.insert_transcript_hint": "Вставить расшифровку для проверки (Enter)",
|
|
35410
|
+
"ui.chat.composer.send_recording": "Отправить запись",
|
|
35411
|
+
"ui.chat.composer.send_recording_hint": "Расшифровать и отправить сразу, без проверки",
|
|
35412
|
+
"ui.chat.composer.steer_hint": "Направить агента сейчас (Enter) · Esc остановит ход",
|
|
35324
35413
|
"ui.chat.composer.clear_message": "Очистить сообщение",
|
|
35325
35414
|
"ui.chat.composer.confirm_recording": "Подтвердить запись",
|
|
35326
35415
|
"ui.chat.composer.confirm_recording_hint": "Подтвердить запись (Enter)",
|
|
@@ -35386,7 +35475,8 @@ const ruUiChatComposer = {
|
|
|
35386
35475
|
};
|
|
35387
35476
|
const ruUiChatComposerMedia = {
|
|
35388
35477
|
"ui.chat.composer_media.cancels": "отменяет",
|
|
35389
|
-
"ui.chat.composer_media.
|
|
35478
|
+
"ui.chat.composer_media.sends_now": "отправляет сразу",
|
|
35479
|
+
"ui.chat.composer_media.confirms": "вставляет",
|
|
35390
35480
|
"ui.chat.composer_media.pasted_file": "Вставленный файл",
|
|
35391
35481
|
"ui.chat.composer_media.pasted_type": "Вставлено: {mimeType}",
|
|
35392
35482
|
"ui.chat.composer_media.preview_failed": "Не удалось показать",
|
|
@@ -40009,7 +40099,12 @@ const ruUiSettingsAppearance = {
|
|
|
40009
40099
|
"ui.settings.appearance.theme.tokyo_night_storm": "Более яркая ночь: грозовое небо индиго и те же неоновые акценты.",
|
|
40010
40100
|
"ui.settings.appearance.theme.tokyo_night": "Глубокая сине-фиолетовая ночь с ярким синим акцентом.",
|
|
40011
40101
|
"ui.settings.appearance.theme.tron": "Электрические циановые цепи на сине-чёрном фоне Сети.",
|
|
40012
|
-
"ui.settings.appearance.theme.vaporwave": "Пыльно-розовая и выцветшая бирюзовая пастель на глубоком фиолетовом фоне молла."
|
|
40102
|
+
"ui.settings.appearance.theme.vaporwave": "Пыльно-розовая и выцветшая бирюзовая пастель на глубоком фиолетовом фоне молла.",
|
|
40103
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "Размер фото агента",
|
|
40104
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "Размер фото агентов в транскрипте и в заголовке чата. Строки боковой панели остаются прежними.",
|
|
40105
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "Маленький",
|
|
40106
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "Средний",
|
|
40107
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "Большой"
|
|
40013
40108
|
};
|
|
40014
40109
|
const ruUiSettingsAppearanceWindowGlass = {
|
|
40015
40110
|
"ui.settings.appearance.window_glass.coverage_description": "Какие части окна становятся полупрозрачными. «Только боковые панели» оставляет разговор и страницы непрозрачными. «Всё приложение» также охватывает их и боковые панели; веб-страницы, документы и изображения внутри остаются непрозрачными.",
|
|
@@ -41409,7 +41504,8 @@ const urUiAgentsAvatar = {
|
|
|
41409
41504
|
"ui.agents.avatar.editor.zoom": "زوم",
|
|
41410
41505
|
"ui.agents.avatar.editor.zoom_in": "زوم بڑھائیں",
|
|
41411
41506
|
"ui.agents.avatar.editor.zoom_out": "زوم گھٹائیں",
|
|
41412
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
41507
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
41508
|
+
"ui.agents.avatar.add_link": "{name} کے لیے تصویر شامل کریں"
|
|
41413
41509
|
};
|
|
41414
41510
|
const urUiAgentsConfig = {
|
|
41415
41511
|
"ui.agents.config.about": "متعلق: {kind} {name}",
|
|
@@ -43005,7 +43101,14 @@ const urUiChatCanonical = {
|
|
|
43005
43101
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, =1 {{count_display} آئٹم} other {{count_display} آئٹمز}}",
|
|
43006
43102
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, =1 {{count_display} تصویر} other {{count_display} تصاویر}}",
|
|
43007
43103
|
"ui.chat.canonical.lightbox.show_image": "تصویر {index, number, ::group-off} از {count, number, ::group-off} دکھائیں",
|
|
43008
|
-
"ui.chat.canonical.supplement.details.summary": "تفصیلات"
|
|
43104
|
+
"ui.chat.canonical.supplement.details.summary": "تفصیلات",
|
|
43105
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, one {# فائل نہیں دکھائی گئی} other {# فائلیں نہیں دکھائی گئیں}}: {reason}",
|
|
43106
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, one {# فائل نہیں دکھائی گئی} other {# فائلیں نہیں دکھائی گئیں}}",
|
|
43107
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "اجازت شدہ مقامات سے باہر",
|
|
43108
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "حساس فائل",
|
|
43109
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "فائل اب موجود نہیں",
|
|
43110
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "پیش منظر کے لیے بہت بڑی",
|
|
43111
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": "، "
|
|
43009
43112
|
};
|
|
43010
43113
|
const urUiChatCommentaryActions = {
|
|
43011
43114
|
"ui.chat.commentary_actions.label": "تبصرے کے اعمال"
|
|
@@ -43030,6 +43133,11 @@ const urUiChatComposer = {
|
|
|
43030
43133
|
"ui.chat.composer.confirm_recording_hint": "ریکارڈنگ کی تصدیق کریں (Enter)",
|
|
43031
43134
|
"ui.chat.composer.cancel_recording": "ریکارڈنگ منسوخ کریں",
|
|
43032
43135
|
"ui.chat.composer.cancel_recording_hint": "ریکارڈنگ منسوخ کریں (Esc)",
|
|
43136
|
+
"ui.chat.composer.insert_transcript": "ٹرانسکرپٹ داخل کریں",
|
|
43137
|
+
"ui.chat.composer.insert_transcript_hint": "جانچنے کے لیے ٹرانسکرپٹ داخل کریں (Enter)",
|
|
43138
|
+
"ui.chat.composer.send_recording": "ریکارڈنگ بھیجیں",
|
|
43139
|
+
"ui.chat.composer.send_recording_hint": "ٹرانسکرائب کر کے ابھی بھیجیں، جانچے بغیر",
|
|
43140
|
+
"ui.chat.composer.steer_hint": "ایجنٹ کو ابھی ہدایت دیں (Enter) · Esc موجودہ باری روکتا ہے",
|
|
43033
43141
|
"ui.chat.composer.stop": "روکیں",
|
|
43034
43142
|
"ui.chat.composer.stop_work_hint": "اس سیشن کا موجودہ کام روکیں (Esc)",
|
|
43035
43143
|
"ui.chat.composer.stop_agent": "ایجنٹ روکیں",
|
|
@@ -43080,8 +43188,9 @@ const urUiChatComposer = {
|
|
|
43080
43188
|
};
|
|
43081
43189
|
const urUiChatComposerMedia = {
|
|
43082
43190
|
"ui.chat.composer_media.recording": "ریکارڈنگ جاری ہے",
|
|
43083
|
-
"ui.chat.composer_media.confirms": "
|
|
43191
|
+
"ui.chat.composer_media.confirms": "داخل کرے",
|
|
43084
43192
|
"ui.chat.composer_media.cancels": "منسوخ کرے",
|
|
43193
|
+
"ui.chat.composer_media.sends_now": "ابھی بھیجے",
|
|
43085
43194
|
"ui.chat.composer_media.pasted_type": "چسپاں کردہ {mimeType}",
|
|
43086
43195
|
"ui.chat.composer_media.pasted_file": "چسپاں کردہ فائل",
|
|
43087
43196
|
"ui.chat.composer_media.preview_failed": "پیش منظر نہیں دکھایا جا سکا",
|
|
@@ -47703,7 +47812,12 @@ const urUiSettingsAppearance = {
|
|
|
47703
47812
|
"ui.settings.appearance.theme.tokyo_night_storm": "روشن تر رات — وہی نیون نمایاں رنگ، نیلے طوفانی آسمان کے نیچے۔",
|
|
47704
47813
|
"ui.settings.appearance.theme.tokyo_night": "گہری نیلی بنفشی رات، روشن نیلے نمایاں رنگ کے ساتھ۔",
|
|
47705
47814
|
"ui.settings.appearance.theme.tron": "Grid کے نیلے سیاہ پر برقی سایان سرکٹری۔",
|
|
47706
|
-
"ui.settings.appearance.theme.vaporwave": "گہرے مال جیسے بنفشی رنگ پر دھندلے گلابی اور مند ٹیل پیسٹل۔"
|
|
47815
|
+
"ui.settings.appearance.theme.vaporwave": "گہرے مال جیسے بنفشی رنگ پر دھندلے گلابی اور مند ٹیل پیسٹل۔",
|
|
47816
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "ایجنٹ کی تصویر کا سائز",
|
|
47817
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "ٹرانسکرپٹ اور چیٹ ہیڈر میں ایجنٹ کی تصویریں کتنی بڑی نظر آئیں۔ سائیڈ بار کی قطاروں کا سائز وہی رہتا ہے۔",
|
|
47818
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "چھوٹا",
|
|
47819
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "درمیانہ",
|
|
47820
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "بڑا"
|
|
47707
47821
|
};
|
|
47708
47822
|
const urUiSettingsAppearanceWindowGlass = {
|
|
47709
47823
|
"ui.settings.appearance.window_glass.label": "نیم شفاف ونڈو",
|
|
@@ -49103,7 +49217,8 @@ const viUiAgentsAvatar = {
|
|
|
49103
49217
|
"ui.agents.avatar.editor.zoom": "Thu phóng",
|
|
49104
49218
|
"ui.agents.avatar.editor.zoom_in": "Phóng to",
|
|
49105
49219
|
"ui.agents.avatar.editor.zoom_out": "Thu nhỏ",
|
|
49106
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
49220
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
49221
|
+
"ui.agents.avatar.add_link": "Thêm ảnh cho {name}"
|
|
49107
49222
|
};
|
|
49108
49223
|
const viUiAgentsConfig = {
|
|
49109
49224
|
"ui.agents.config.about": "Về {kind} {name}",
|
|
@@ -50699,7 +50814,14 @@ const viUiChatCanonical = {
|
|
|
50699
50814
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, other {{count_display} mục}}",
|
|
50700
50815
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, other {{count_display} hình ảnh}}",
|
|
50701
50816
|
"ui.chat.canonical.lightbox.show_image": "Hiện hình ảnh {index, number, ::group-off}/{count, number, ::group-off}",
|
|
50702
|
-
"ui.chat.canonical.supplement.details.summary": "Chi tiết"
|
|
50817
|
+
"ui.chat.canonical.supplement.details.summary": "Chi tiết",
|
|
50818
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, other {# tệp không được hiển thị}}: {reason}",
|
|
50819
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, other {# tệp không được hiển thị}}",
|
|
50820
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "nằm ngoài các vị trí được phép",
|
|
50821
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "tệp nhạy cảm",
|
|
50822
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "tệp không còn tồn tại",
|
|
50823
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "quá lớn để xem trước",
|
|
50824
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": ", "
|
|
50703
50825
|
};
|
|
50704
50826
|
const viUiChatCommentaryActions = {
|
|
50705
50827
|
"ui.chat.commentary_actions.label": "Thao tác lời dẫn"
|
|
@@ -50713,6 +50835,11 @@ const viUiChatComposer = {
|
|
|
50713
50835
|
"ui.chat.composer.confirm_recording_hint": "Xác nhận ghi âm (Enter)",
|
|
50714
50836
|
"ui.chat.composer.cancel_recording": "Hủy ghi âm",
|
|
50715
50837
|
"ui.chat.composer.cancel_recording_hint": "Hủy ghi âm (Esc)",
|
|
50838
|
+
"ui.chat.composer.insert_transcript": "Chèn bản chép lời",
|
|
50839
|
+
"ui.chat.composer.insert_transcript_hint": "Chèn bản chép lời để xem lại (Enter)",
|
|
50840
|
+
"ui.chat.composer.send_recording": "Gửi bản ghi âm",
|
|
50841
|
+
"ui.chat.composer.send_recording_hint": "Chép lời và gửi ngay, không xem lại",
|
|
50842
|
+
"ui.chat.composer.steer_hint": "Định hướng tác nhân ngay (Enter) · Esc dừng lượt này",
|
|
50716
50843
|
"ui.chat.composer.stop": "Dừng",
|
|
50717
50844
|
"ui.chat.composer.stop_work_hint": "Dừng công việc hiện tại của phiên này (Esc)",
|
|
50718
50845
|
"ui.chat.composer.stop_agent": "Dừng tác nhân",
|
|
@@ -50774,8 +50901,9 @@ const viUiChatComposer = {
|
|
|
50774
50901
|
};
|
|
50775
50902
|
const viUiChatComposerMedia = {
|
|
50776
50903
|
"ui.chat.composer_media.recording": "Đang ghi âm",
|
|
50777
|
-
"ui.chat.composer_media.confirms": "
|
|
50904
|
+
"ui.chat.composer_media.confirms": "chèn",
|
|
50778
50905
|
"ui.chat.composer_media.cancels": "hủy",
|
|
50906
|
+
"ui.chat.composer_media.sends_now": "gửi ngay",
|
|
50779
50907
|
"ui.chat.composer_media.pasted_type": "Đã dán {mimeType}",
|
|
50780
50908
|
"ui.chat.composer_media.pasted_file": "Tệp đã dán",
|
|
50781
50909
|
"ui.chat.composer_media.preview_failed": "Không xem trước được",
|
|
@@ -55397,7 +55525,12 @@ const viUiSettingsAppearance = {
|
|
|
55397
55525
|
"ui.settings.appearance.theme.tokyo_night_storm": "Đêm sáng hơn — bầu trời bão chàm dưới các điểm nhấn neon.",
|
|
55398
55526
|
"ui.settings.appearance.theme.tokyo_night": "Đêm xanh tím sâu với điểm nhấn xanh sáng.",
|
|
55399
55527
|
"ui.settings.appearance.theme.tron": "Mạch điện cyan trên nền đen xanh của Grid.",
|
|
55400
|
-
"ui.settings.appearance.theme.vaporwave": "Pastel hồng phai và xanh mòng két nhạt trên nền tím trung tâm thương mại đậm."
|
|
55528
|
+
"ui.settings.appearance.theme.vaporwave": "Pastel hồng phai và xanh mòng két nhạt trên nền tím trung tâm thương mại đậm.",
|
|
55529
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "Kích thước ảnh tác nhân",
|
|
55530
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "Kích thước ảnh tác nhân trong nội dung cuộc trò chuyện và trên thanh tiêu đề cuộc trò chuyện. Các hàng ở thanh bên giữ nguyên kích thước.",
|
|
55531
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "Nhỏ",
|
|
55532
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "Vừa",
|
|
55533
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "Lớn"
|
|
55401
55534
|
};
|
|
55402
55535
|
const viUiSettingsAppearanceWindowGlass = {
|
|
55403
55536
|
"ui.settings.appearance.window_glass.label": "Cửa sổ trong mờ",
|
|
@@ -56797,7 +56930,8 @@ const zhCNUiAgentsAvatar = {
|
|
|
56797
56930
|
"ui.agents.avatar.editor.zoom": "缩放",
|
|
56798
56931
|
"ui.agents.avatar.editor.zoom_in": "放大",
|
|
56799
56932
|
"ui.agents.avatar.editor.zoom_out": "缩小",
|
|
56800
|
-
"ui.agents.avatar.editor.zoom_value": "{value}×"
|
|
56933
|
+
"ui.agents.avatar.editor.zoom_value": "{value}×",
|
|
56934
|
+
"ui.agents.avatar.add_link": "为 {name} 添加头像"
|
|
56801
56935
|
};
|
|
56802
56936
|
const zhCNUiAgentsConfig = {
|
|
56803
56937
|
"ui.agents.config.about": "关于{kind} {name}",
|
|
@@ -58393,7 +58527,14 @@ const zhCNUiChatCanonical = {
|
|
|
58393
58527
|
"ui.chat.canonical.image_gen.batch_summary": "{count, plural, other {{count_display}项}}",
|
|
58394
58528
|
"ui.chat.canonical.lightbox.filmstrip_aria": "{count, plural, other {{count_display}张图片}}",
|
|
58395
58529
|
"ui.chat.canonical.lightbox.show_image": "显示第{index, number, ::group-off}张图片(共{count, number, ::group-off}张)",
|
|
58396
|
-
"ui.chat.canonical.supplement.details.summary": "详情"
|
|
58530
|
+
"ui.chat.canonical.supplement.details.summary": "详情",
|
|
58531
|
+
"ui.chat.canonical.supplement.withheld.line": "{count, plural, other {# 个文件未显示}}:{reason}",
|
|
58532
|
+
"ui.chat.canonical.supplement.withheld.line_no_reason": "{count, plural, other {# 个文件未显示}}",
|
|
58533
|
+
"ui.chat.canonical.supplement.withheld.reason_outside": "不在允许的位置",
|
|
58534
|
+
"ui.chat.canonical.supplement.withheld.reason_sensitive": "敏感文件",
|
|
58535
|
+
"ui.chat.canonical.supplement.withheld.reason_missing": "文件已不存在",
|
|
58536
|
+
"ui.chat.canonical.supplement.withheld.reason_too_large": "超出预览大小上限",
|
|
58537
|
+
"ui.chat.canonical.supplement.withheld.reason_separator": "、"
|
|
58397
58538
|
};
|
|
58398
58539
|
const zhCNUiChatCommentaryActions = {
|
|
58399
58540
|
"ui.chat.commentary_actions.label": "叙述操作"
|
|
@@ -58407,6 +58548,11 @@ const zhCNUiChatComposer = {
|
|
|
58407
58548
|
"ui.chat.composer.confirm_recording_hint": "确认录音(Enter)",
|
|
58408
58549
|
"ui.chat.composer.cancel_recording": "取消录音",
|
|
58409
58550
|
"ui.chat.composer.cancel_recording_hint": "取消录音(Esc)",
|
|
58551
|
+
"ui.chat.composer.insert_transcript": "插入转写文字",
|
|
58552
|
+
"ui.chat.composer.insert_transcript_hint": "插入转写文字以供查看(Enter)",
|
|
58553
|
+
"ui.chat.composer.send_recording": "发送录音",
|
|
58554
|
+
"ui.chat.composer.send_recording_hint": "转写并立即发送,无需查看",
|
|
58555
|
+
"ui.chat.composer.steer_hint": "立即引导智能体(Enter)· Esc停止本轮",
|
|
58410
58556
|
"ui.chat.composer.stop": "停止",
|
|
58411
58557
|
"ui.chat.composer.stop_work_hint": "停止此会话当前的工作(Esc)",
|
|
58412
58558
|
"ui.chat.composer.stop_agent": "停止智能体",
|
|
@@ -58468,8 +58614,9 @@ const zhCNUiChatComposer = {
|
|
|
58468
58614
|
};
|
|
58469
58615
|
const zhCNUiChatComposerMedia = {
|
|
58470
58616
|
"ui.chat.composer_media.recording": "录音中",
|
|
58471
|
-
"ui.chat.composer_media.confirms": "
|
|
58617
|
+
"ui.chat.composer_media.confirms": "插入",
|
|
58472
58618
|
"ui.chat.composer_media.cancels": "取消",
|
|
58619
|
+
"ui.chat.composer_media.sends_now": "立即发送",
|
|
58473
58620
|
"ui.chat.composer_media.pasted_type": "粘贴的{mimeType}",
|
|
58474
58621
|
"ui.chat.composer_media.pasted_file": "粘贴的文件",
|
|
58475
58622
|
"ui.chat.composer_media.preview_failed": "无法预览",
|
|
@@ -63091,7 +63238,12 @@ const zhCNUiSettingsAppearance = {
|
|
|
63091
63238
|
"ui.settings.appearance.theme.tokyo_night_storm": "更明亮的夜晚——靛蓝暴风雨天空,衬以同样的霓虹强调色。",
|
|
63092
63239
|
"ui.settings.appearance.theme.tokyo_night": "深蓝紫夜色,点缀明亮蓝色。",
|
|
63093
63240
|
"ui.settings.appearance.theme.tron": "电光青色的电路,铺在Grid的蓝黑底色上。",
|
|
63094
|
-
"ui.settings.appearance.theme.vaporwave": "灰粉与褪色青绿粉彩,铺在深商场紫底色上。"
|
|
63241
|
+
"ui.settings.appearance.theme.vaporwave": "灰粉与褪色青绿粉彩,铺在深商场紫底色上。",
|
|
63242
|
+
"ui.settings.appearance.agent_avatar_size_setting.agent_picture_size": "智能体头像大小",
|
|
63243
|
+
"ui.settings.appearance.agent_avatar_size_setting.how_large_the_agent_s_picture_appears_in_the_chat_window_and_the_chat": "智能体头像在对话记录和聊天标题栏中的显示大小。侧边栏各行保持不变。",
|
|
63244
|
+
"ui.settings.appearance.agent_avatar_size_setting.small": "小",
|
|
63245
|
+
"ui.settings.appearance.agent_avatar_size_setting.medium": "中",
|
|
63246
|
+
"ui.settings.appearance.agent_avatar_size_setting.large": "大"
|
|
63095
63247
|
};
|
|
63096
63248
|
const zhCNUiSettingsAppearanceWindowGlass = {
|
|
63097
63249
|
"ui.settings.appearance.window_glass.label": "半透明窗口",
|
|
@@ -74410,9 +74562,9 @@ function evaluatePendingServerUpdateMarker(input) {
|
|
|
74410
74562
|
return { kind: "expired", marker, reason: "gone" };
|
|
74411
74563
|
}
|
|
74412
74564
|
const recorded = marker.groupStartedAt;
|
|
74413
|
-
const
|
|
74414
|
-
if (recorded &&
|
|
74415
|
-
return recorded ===
|
|
74565
|
+
const live2 = input.liveGroupStamp ?? null;
|
|
74566
|
+
if (recorded && live2) {
|
|
74567
|
+
return recorded === live2 ? { kind: "running", marker, reason: "owned" } : { kind: "expired", marker, reason: "foreign-pid" };
|
|
74416
74568
|
}
|
|
74417
74569
|
const deadline2 = Date.parse(marker.deadlineAt ?? "");
|
|
74418
74570
|
const now = input.now ?? Date.now();
|
|
@@ -78767,14 +78919,14 @@ async function smokeEnvironment(venv, env) {
|
|
|
78767
78919
|
["serve", "--host", "127.0.0.1", "--port", String(address.port)],
|
|
78768
78920
|
{ env: isolated, stdio: "ignore" }
|
|
78769
78921
|
);
|
|
78770
|
-
let
|
|
78922
|
+
let failed2 = null;
|
|
78771
78923
|
child.on("error", (error) => {
|
|
78772
|
-
|
|
78924
|
+
failed2 = error;
|
|
78773
78925
|
});
|
|
78774
78926
|
try {
|
|
78775
78927
|
const deadline2 = Date.now() + 6e4;
|
|
78776
78928
|
while (Date.now() < deadline2) {
|
|
78777
|
-
if (
|
|
78929
|
+
if (failed2) throw failed2;
|
|
78778
78930
|
if (child.exitCode !== null)
|
|
78779
78931
|
throw new Error(`Backend smoke exited with ${child.exitCode}`);
|
|
78780
78932
|
try {
|
|
@@ -84525,7 +84677,10 @@ const HOST_CAPABILITIES = [
|
|
|
84525
84677
|
"record_stop",
|
|
84526
84678
|
// Sized recording (width/height on record_start) is not a method; the
|
|
84527
84679
|
// harness capability-gates the two params on this name.
|
|
84528
|
-
"record_size"
|
|
84680
|
+
"record_size",
|
|
84681
|
+
// High-quality recording (quality on record_start) is not a method either; the
|
|
84682
|
+
// harness capability-gates the one param on this name.
|
|
84683
|
+
"record_quality"
|
|
84529
84684
|
];
|
|
84530
84685
|
const RUN_DIRNAME = path$1.join("run", "ui-browser");
|
|
84531
84686
|
const STATE_FILENAME = "host.json";
|
|
@@ -91961,18 +92116,18 @@ const CELL_BUDGET = 64 * 1024 * 1024;
|
|
|
91961
92116
|
const MANAGED_BUDGET_BYTES = 768 * 1024 * 1024;
|
|
91962
92117
|
const CELL_RESERVATION_BYTES = 16;
|
|
91963
92118
|
const EXIT_ACK_GRACE_MS = 3e4;
|
|
91964
|
-
function bounded(value, fallback, low, high) {
|
|
92119
|
+
function bounded$1(value, fallback, low, high) {
|
|
91965
92120
|
return typeof value === "number" && Number.isFinite(value) ? Math.max(low, Math.min(high, Math.floor(value))) : fallback;
|
|
91966
92121
|
}
|
|
91967
92122
|
function consolePolicy(value = {}) {
|
|
91968
92123
|
const input = value && typeof value === "object" ? value : {};
|
|
91969
|
-
const maxLive = bounded(input.max_live, DEFAULT_LIVE_LIMIT, 32, 256);
|
|
92124
|
+
const maxLive = bounded$1(input.max_live, DEFAULT_LIVE_LIMIT, 32, 256);
|
|
91970
92125
|
return {
|
|
91971
92126
|
maxLive,
|
|
91972
|
-
maxOwner: bounded(input.max_owner, DEFAULT_OWNER_LIMIT, 1, 32),
|
|
92127
|
+
maxOwner: bounded$1(input.max_owner, DEFAULT_OWNER_LIMIT, 1, 32),
|
|
91973
92128
|
userReserved: Math.min(
|
|
91974
92129
|
Math.floor(maxLive / 4),
|
|
91975
|
-
bounded(input.user_reserved, DEFAULT_USER_RESERVED, 4, 32)
|
|
92130
|
+
bounded$1(input.user_reserved, DEFAULT_USER_RESERVED, 4, 32)
|
|
91976
92131
|
)
|
|
91977
92132
|
};
|
|
91978
92133
|
}
|
|
@@ -94773,12 +94928,12 @@ class ConsoleHost {
|
|
|
94773
94928
|
*/
|
|
94774
94929
|
bumpExitEpoch(entry) {
|
|
94775
94930
|
const surface = entry.record.surface;
|
|
94776
|
-
const
|
|
94931
|
+
const live2 = this.exitEpoch.get(surface) ?? 0;
|
|
94777
94932
|
const next = this.options.history?.nextExitEpoch(
|
|
94778
94933
|
entry.record.sessionId,
|
|
94779
94934
|
surface,
|
|
94780
|
-
|
|
94781
|
-
) ??
|
|
94935
|
+
live2
|
|
94936
|
+
) ?? live2 + 1;
|
|
94782
94937
|
this.exitEpoch.set(surface, next);
|
|
94783
94938
|
return next;
|
|
94784
94939
|
}
|
|
@@ -95514,8 +95669,8 @@ class ConsoleHistory {
|
|
|
95514
95669
|
* backwards — two exits sharing one generation is exactly the collision the
|
|
95515
95670
|
* counter exists to make impossible (§12.3).
|
|
95516
95671
|
*/
|
|
95517
|
-
nextExitEpoch(sessionId2, surface,
|
|
95518
|
-
return Math.max(this.exitEpoch(sessionId2, surface),
|
|
95672
|
+
nextExitEpoch(sessionId2, surface, live2) {
|
|
95673
|
+
return Math.max(this.exitEpoch(sessionId2, surface), live2) + 1;
|
|
95519
95674
|
}
|
|
95520
95675
|
/** Remove one surface's history, log and sidecar. */
|
|
95521
95676
|
remove(sessionId2, surface) {
|
|
@@ -96812,6 +96967,259 @@ function labelOf(account) {
|
|
|
96812
96967
|
if (!account) return "an unnamed passkey";
|
|
96813
96968
|
return account.displayName || account.name || "an unnamed passkey";
|
|
96814
96969
|
}
|
|
96970
|
+
const RECORDING_ENCODER_CMD_CHANNEL = "recording-encoder:cmd";
|
|
96971
|
+
const RECORDING_ENCODER_EVT_CHANNEL = "recording-encoder:evt";
|
|
96972
|
+
function isWellFormedChunk(event) {
|
|
96973
|
+
return event.data instanceof Uint8Array && Number.isFinite(event.ts) && typeof event.key === "boolean" && (event.description === void 0 || event.description instanceof Uint8Array);
|
|
96974
|
+
}
|
|
96975
|
+
function answersTheRequest(event, asked) {
|
|
96976
|
+
return asked !== void 0 && event.width === asked.width && event.height === asked.height && (event.encoder === "hardware" || event.encoder === "software");
|
|
96977
|
+
}
|
|
96978
|
+
function errorData(error) {
|
|
96979
|
+
return error instanceof BridgeCommandError ? error.data : {};
|
|
96980
|
+
}
|
|
96981
|
+
const UNRESPONSIVE_GRACE_MS = 5e3;
|
|
96982
|
+
const live = /* @__PURE__ */ new Set();
|
|
96983
|
+
function disposeAllRecordingEncoders() {
|
|
96984
|
+
for (const dispose of [...live]) {
|
|
96985
|
+
try {
|
|
96986
|
+
dispose();
|
|
96987
|
+
} catch {
|
|
96988
|
+
}
|
|
96989
|
+
}
|
|
96990
|
+
}
|
|
96991
|
+
const routes = /* @__PURE__ */ new Map();
|
|
96992
|
+
let listening = false;
|
|
96993
|
+
function listen() {
|
|
96994
|
+
if (listening) return;
|
|
96995
|
+
listening = true;
|
|
96996
|
+
electron.ipcMain.on(RECORDING_ENCODER_EVT_CHANNEL, (event, message) => {
|
|
96997
|
+
const route = routes.get(event.sender.id);
|
|
96998
|
+
if (!route) return;
|
|
96999
|
+
if (event.senderFrame && event.senderFrame !== event.sender.mainFrame)
|
|
97000
|
+
return;
|
|
97001
|
+
if (!message || typeof message !== "object") return;
|
|
97002
|
+
route.handle(message);
|
|
97003
|
+
});
|
|
97004
|
+
}
|
|
97005
|
+
function createRecordingEncoderService(options) {
|
|
97006
|
+
return {
|
|
97007
|
+
open: (sink) => openWindow(options, sink)
|
|
97008
|
+
};
|
|
97009
|
+
}
|
|
97010
|
+
async function openWindow(options, sink) {
|
|
97011
|
+
listen();
|
|
97012
|
+
const partition = `recording-encoder-${node_crypto.randomUUID()}`;
|
|
97013
|
+
const childSession = electron.session.fromPartition(partition);
|
|
97014
|
+
childSession.setPermissionRequestHandler(
|
|
97015
|
+
(_contents, _permission, callback) => callback(false)
|
|
97016
|
+
);
|
|
97017
|
+
childSession.setPermissionCheckHandler(() => false);
|
|
97018
|
+
childSession.on("will-download", (event) => event.preventDefault());
|
|
97019
|
+
const window = new electron.BrowserWindow({
|
|
97020
|
+
// Never shown, focused or raised: `show: false` with Electron's default
|
|
97021
|
+
// `paintWhenInitiallyHidden` is the measured-working pair for the console
|
|
97022
|
+
// capture view, and an encoder needs no pixels of its own.
|
|
97023
|
+
show: false,
|
|
97024
|
+
width: 320,
|
|
97025
|
+
height: 240,
|
|
97026
|
+
webPreferences: {
|
|
97027
|
+
partition,
|
|
97028
|
+
preload: options.preloadPath,
|
|
97029
|
+
sandbox: true,
|
|
97030
|
+
contextIsolation: true,
|
|
97031
|
+
nodeIntegration: false,
|
|
97032
|
+
webSecurity: true,
|
|
97033
|
+
allowRunningInsecureContent: false,
|
|
97034
|
+
javascript: true,
|
|
97035
|
+
backgroundThrottling: false
|
|
97036
|
+
}
|
|
97037
|
+
});
|
|
97038
|
+
const contents = window.webContents;
|
|
97039
|
+
const windowId = contents.id;
|
|
97040
|
+
let disposed = false;
|
|
97041
|
+
const requested = /* @__PURE__ */ new Map();
|
|
97042
|
+
let unresponsiveTimer = null;
|
|
97043
|
+
const waiters = {
|
|
97044
|
+
ready: null,
|
|
97045
|
+
configure: /* @__PURE__ */ new Map(),
|
|
97046
|
+
flush: /* @__PURE__ */ new Map()
|
|
97047
|
+
};
|
|
97048
|
+
const failWaiters = (reason) => {
|
|
97049
|
+
const error = new BridgeCommandError("internal", reason, {
|
|
97050
|
+
reason: "record_failed"
|
|
97051
|
+
});
|
|
97052
|
+
waiters.ready?.reject(error);
|
|
97053
|
+
waiters.ready = null;
|
|
97054
|
+
for (const waiter of waiters.flush.values()) waiter.reject(error);
|
|
97055
|
+
waiters.flush.clear();
|
|
97056
|
+
for (const [, resolve] of waiters.configure) {
|
|
97057
|
+
resolve({ ok: false, why: "encoder_start", detail: reason });
|
|
97058
|
+
}
|
|
97059
|
+
waiters.configure.clear();
|
|
97060
|
+
};
|
|
97061
|
+
const dispose = () => {
|
|
97062
|
+
if (disposed) return;
|
|
97063
|
+
disposed = true;
|
|
97064
|
+
live.delete(dispose);
|
|
97065
|
+
routes.delete(windowId);
|
|
97066
|
+
if (unresponsiveTimer) clearTimeout(unresponsiveTimer);
|
|
97067
|
+
unresponsiveTimer = null;
|
|
97068
|
+
failWaiters("the encoder window was closed");
|
|
97069
|
+
try {
|
|
97070
|
+
if (!window.isDestroyed()) window.destroy();
|
|
97071
|
+
} catch {
|
|
97072
|
+
}
|
|
97073
|
+
try {
|
|
97074
|
+
void childSession.clearStorageData().catch(() => void 0);
|
|
97075
|
+
} catch {
|
|
97076
|
+
}
|
|
97077
|
+
};
|
|
97078
|
+
live.add(dispose);
|
|
97079
|
+
const died = (reason) => {
|
|
97080
|
+
if (disposed) return;
|
|
97081
|
+
options.log(`[browser] recording encoder window: ${reason}`);
|
|
97082
|
+
failWaiters(reason);
|
|
97083
|
+
sink.onFailure(reason);
|
|
97084
|
+
};
|
|
97085
|
+
routes.set(windowId, {
|
|
97086
|
+
windowId,
|
|
97087
|
+
handle: (event) => {
|
|
97088
|
+
if (disposed) return;
|
|
97089
|
+
switch (event.evt) {
|
|
97090
|
+
case "ready":
|
|
97091
|
+
waiters.ready?.resolve();
|
|
97092
|
+
waiters.ready = null;
|
|
97093
|
+
return;
|
|
97094
|
+
case "configured": {
|
|
97095
|
+
const resolve = waiters.configure.get(event.id);
|
|
97096
|
+
waiters.configure.delete(event.id);
|
|
97097
|
+
if (!resolve) return;
|
|
97098
|
+
const asked = requested.get(event.id);
|
|
97099
|
+
requested.delete(event.id);
|
|
97100
|
+
if (event.ok && !answersTheRequest(event, asked)) {
|
|
97101
|
+
resolve({
|
|
97102
|
+
ok: false,
|
|
97103
|
+
why: "encoder_start",
|
|
97104
|
+
detail: "the encoder answered with a size that was not asked for"
|
|
97105
|
+
});
|
|
97106
|
+
return;
|
|
97107
|
+
}
|
|
97108
|
+
resolve(
|
|
97109
|
+
event.ok ? {
|
|
97110
|
+
ok: true,
|
|
97111
|
+
encoder: event.encoder,
|
|
97112
|
+
codec: event.codec,
|
|
97113
|
+
width: event.width,
|
|
97114
|
+
height: event.height
|
|
97115
|
+
} : {
|
|
97116
|
+
ok: false,
|
|
97117
|
+
why: event.why,
|
|
97118
|
+
detail: String(event.detail).slice(0, 300)
|
|
97119
|
+
}
|
|
97120
|
+
);
|
|
97121
|
+
return;
|
|
97122
|
+
}
|
|
97123
|
+
case "chunk": {
|
|
97124
|
+
if (!isWellFormedChunk(event)) {
|
|
97125
|
+
died("the encoder sent a malformed chunk");
|
|
97126
|
+
return;
|
|
97127
|
+
}
|
|
97128
|
+
sink.onChunk({
|
|
97129
|
+
data: event.data,
|
|
97130
|
+
ts: event.ts,
|
|
97131
|
+
key: event.key,
|
|
97132
|
+
description: event.description
|
|
97133
|
+
});
|
|
97134
|
+
return;
|
|
97135
|
+
}
|
|
97136
|
+
case "frame-done":
|
|
97137
|
+
if (!Number.isInteger(event.seq)) return;
|
|
97138
|
+
sink.onFrameDone(event.seq);
|
|
97139
|
+
return;
|
|
97140
|
+
case "flushed": {
|
|
97141
|
+
const waiter = waiters.flush.get(event.id);
|
|
97142
|
+
waiters.flush.delete(event.id);
|
|
97143
|
+
waiter?.resolve();
|
|
97144
|
+
return;
|
|
97145
|
+
}
|
|
97146
|
+
case "error":
|
|
97147
|
+
died(`the encoder reported an error: ${event.message}`);
|
|
97148
|
+
return;
|
|
97149
|
+
}
|
|
97150
|
+
}
|
|
97151
|
+
});
|
|
97152
|
+
contents.setWindowOpenHandler(() => ({ action: "deny" }));
|
|
97153
|
+
const base = options.documentUrl.split("?")[0];
|
|
97154
|
+
const pin = (event, url) => {
|
|
97155
|
+
if (url.split("?")[0] !== base) event.preventDefault();
|
|
97156
|
+
};
|
|
97157
|
+
contents.on("will-navigate", pin);
|
|
97158
|
+
contents.on("will-redirect", pin);
|
|
97159
|
+
contents.on(
|
|
97160
|
+
"render-process-gone",
|
|
97161
|
+
(_event, details) => died(`the encoder process exited (${details?.reason ?? "unknown"})`)
|
|
97162
|
+
);
|
|
97163
|
+
contents.on("unresponsive", () => {
|
|
97164
|
+
if (unresponsiveTimer || disposed) return;
|
|
97165
|
+
unresponsiveTimer = setTimeout(() => {
|
|
97166
|
+
unresponsiveTimer = null;
|
|
97167
|
+
died("the encoder window stopped responding");
|
|
97168
|
+
}, UNRESPONSIVE_GRACE_MS);
|
|
97169
|
+
unresponsiveTimer.unref?.();
|
|
97170
|
+
});
|
|
97171
|
+
contents.on("responsive", () => {
|
|
97172
|
+
if (unresponsiveTimer) clearTimeout(unresponsiveTimer);
|
|
97173
|
+
unresponsiveTimer = null;
|
|
97174
|
+
});
|
|
97175
|
+
const send2 = (message) => {
|
|
97176
|
+
if (disposed || contents.isDestroyed()) return;
|
|
97177
|
+
contents.send(RECORDING_ENCODER_CMD_CHANNEL, message);
|
|
97178
|
+
};
|
|
97179
|
+
try {
|
|
97180
|
+
const ready = new Promise((resolve, reject) => {
|
|
97181
|
+
waiters.ready = { resolve, reject };
|
|
97182
|
+
});
|
|
97183
|
+
const loaded = contents.loadURL(options.documentUrl);
|
|
97184
|
+
await Promise.all([ready, loaded]);
|
|
97185
|
+
} catch (error) {
|
|
97186
|
+
dispose();
|
|
97187
|
+
throw error;
|
|
97188
|
+
}
|
|
97189
|
+
let configureId = 0;
|
|
97190
|
+
let flushId = 0;
|
|
97191
|
+
return {
|
|
97192
|
+
configure(request) {
|
|
97193
|
+
configureId += 1;
|
|
97194
|
+
const id2 = configureId;
|
|
97195
|
+
return new Promise((resolve) => {
|
|
97196
|
+
waiters.configure.set(id2, resolve);
|
|
97197
|
+
requested.set(id2, { width: request.width, height: request.height });
|
|
97198
|
+
send2({ cmd: "configure", id: id2, ...request });
|
|
97199
|
+
});
|
|
97200
|
+
},
|
|
97201
|
+
frame(seq2, data, ts) {
|
|
97202
|
+
send2({ cmd: "frame", seq: seq2, data, ts });
|
|
97203
|
+
},
|
|
97204
|
+
flush() {
|
|
97205
|
+
flushId += 1;
|
|
97206
|
+
const id2 = flushId;
|
|
97207
|
+
return new Promise((resolve, reject) => {
|
|
97208
|
+
if (disposed) {
|
|
97209
|
+
reject(
|
|
97210
|
+
new BridgeCommandError("internal", "the encoder window is gone", {
|
|
97211
|
+
reason: "record_failed"
|
|
97212
|
+
})
|
|
97213
|
+
);
|
|
97214
|
+
return;
|
|
97215
|
+
}
|
|
97216
|
+
waiters.flush.set(id2, { resolve, reject });
|
|
97217
|
+
send2({ cmd: "flush", id: id2 });
|
|
97218
|
+
});
|
|
97219
|
+
},
|
|
97220
|
+
dispose
|
|
97221
|
+
};
|
|
97222
|
+
}
|
|
96815
97223
|
const ADDRESS_LIST_ENV = "LOCAL_OPERATOR_UI_BROWSER_ADDRESS_OVERLAY_S2";
|
|
96816
97224
|
const ADDRESS_LIST_DOCUMENT = "browser-address-overlay-list.html";
|
|
96817
97225
|
const ADDRESS_LIST_HEADER_HEIGHT = 28;
|
|
@@ -98704,9 +99112,6 @@ function readJson(path2) {
|
|
|
98704
99112
|
return null;
|
|
98705
99113
|
}
|
|
98706
99114
|
}
|
|
98707
|
-
function errorData(error) {
|
|
98708
|
-
return error instanceof BridgeCommandError ? error.data : {};
|
|
98709
|
-
}
|
|
98710
99115
|
function nextSequence(queue) {
|
|
98711
99116
|
return (queue ?? []).reduce(
|
|
98712
99117
|
(highest, entry) => Math.max(highest, entry.sequence),
|
|
@@ -98743,10 +99148,10 @@ function consumableGrant(grants, origin, requester, now) {
|
|
|
98743
99148
|
}
|
|
98744
99149
|
function accessState(record, tombstones, storedAllowed, onceGrant, origin, requester, now) {
|
|
98745
99150
|
if (storedAllowed || onceGrant) return "allowed";
|
|
98746
|
-
const
|
|
98747
|
-
if (
|
|
98748
|
-
if (!
|
|
98749
|
-
return
|
|
99151
|
+
const live2 = activeRequest(record, now);
|
|
99152
|
+
if (live2 && live2.origin === origin && live2.requester === requester) {
|
|
99153
|
+
if (!live2.decision) return "pending";
|
|
99154
|
+
return live2.decision === "deny" ? "denied" : "allowed";
|
|
98750
99155
|
}
|
|
98751
99156
|
const tomb = tombstones?.[receiptKey(origin, requester)];
|
|
98752
99157
|
if (tomb && now < tomb.expiresAt) return "superseded";
|
|
@@ -99496,11 +99901,11 @@ class ApprovalStore {
|
|
|
99496
99901
|
* the cap) steps aside, and its requester gets a tombstone so its next poll
|
|
99497
99902
|
* reads "superseded" rather than the neutral "none". */
|
|
99498
99903
|
displaceOldest(now) {
|
|
99499
|
-
const
|
|
99500
|
-
if (!
|
|
99501
|
-
const displaced =
|
|
99904
|
+
const live2 = liveQueue(this.queue, now);
|
|
99905
|
+
if (!live2.length) return;
|
|
99906
|
+
const displaced = live2.slice(
|
|
99502
99907
|
0,
|
|
99503
|
-
Math.max(1,
|
|
99908
|
+
Math.max(1, live2.length - ACCESS_QUEUE_CAP + 1)
|
|
99504
99909
|
);
|
|
99505
99910
|
for (const entry of displaced) {
|
|
99506
99911
|
this.tombstones[receiptKey(entry.origin, entry.requester)] = tombstoneFor(
|
|
@@ -99525,8 +99930,8 @@ class ApprovalStore {
|
|
|
99525
99930
|
}
|
|
99526
99931
|
}
|
|
99527
99932
|
sweep(now) {
|
|
99528
|
-
const
|
|
99529
|
-
this.queue =
|
|
99933
|
+
const live2 = liveQueue(this.queue, now);
|
|
99934
|
+
this.queue = live2;
|
|
99530
99935
|
this.results = cleanResults(this.results, now);
|
|
99531
99936
|
for (const [origin, grant] of Object.entries(this.onceGrants)) {
|
|
99532
99937
|
if (now >= grant.expiresAt) delete this.onceGrants[origin];
|
|
@@ -101152,6 +101557,864 @@ function deadline(op, ms, what) {
|
|
|
101152
101557
|
);
|
|
101153
101558
|
});
|
|
101154
101559
|
}
|
|
101560
|
+
const TIMESCALE = 9e4;
|
|
101561
|
+
const MOVIE_TIMESCALE = 1e3;
|
|
101562
|
+
const MAX_FILE_BYTES = 4294967295;
|
|
101563
|
+
const u32 = (value) => {
|
|
101564
|
+
const out = Buffer.alloc(4);
|
|
101565
|
+
out.writeUInt32BE(value >>> 0);
|
|
101566
|
+
return out;
|
|
101567
|
+
};
|
|
101568
|
+
const u16 = (value) => {
|
|
101569
|
+
const out = Buffer.alloc(2);
|
|
101570
|
+
out.writeUInt16BE(value);
|
|
101571
|
+
return out;
|
|
101572
|
+
};
|
|
101573
|
+
const box = (type2, ...children) => {
|
|
101574
|
+
const body = Buffer.concat(children);
|
|
101575
|
+
return Buffer.concat([
|
|
101576
|
+
u32(8 + body.length),
|
|
101577
|
+
Buffer.from(type2, "latin1"),
|
|
101578
|
+
body
|
|
101579
|
+
]);
|
|
101580
|
+
};
|
|
101581
|
+
const fullBox = (type2, version, flags, ...children) => box(type2, u32(version << 24 | flags), ...children);
|
|
101582
|
+
const IDENTITY_MATRIX = Buffer.concat(
|
|
101583
|
+
[65536, 0, 0, 0, 65536, 0, 0, 0, 1073741824].map(u32)
|
|
101584
|
+
);
|
|
101585
|
+
function assertOffset(value, what) {
|
|
101586
|
+
if (!Number.isFinite(value) || value < 0 || value > MAX_FILE_BYTES) {
|
|
101587
|
+
throw new RangeError(
|
|
101588
|
+
`${what} does not fit a 32-bit MP4 field (${value}); the recording cap keeps clips far below this`
|
|
101589
|
+
);
|
|
101590
|
+
}
|
|
101591
|
+
}
|
|
101592
|
+
function decodeTimes(input) {
|
|
101593
|
+
const { samples } = input;
|
|
101594
|
+
const first = samples[0].ts;
|
|
101595
|
+
const out = [];
|
|
101596
|
+
for (const sample of samples) {
|
|
101597
|
+
const tick = Math.round((sample.ts - first) * TIMESCALE / 1e6);
|
|
101598
|
+
const previous = out[out.length - 1];
|
|
101599
|
+
if (previous !== void 0 && tick <= previous) {
|
|
101600
|
+
throw new RangeError(
|
|
101601
|
+
`sample timestamps must strictly increase (got tick ${tick} after ${previous})`
|
|
101602
|
+
);
|
|
101603
|
+
}
|
|
101604
|
+
out.push(tick);
|
|
101605
|
+
}
|
|
101606
|
+
return out;
|
|
101607
|
+
}
|
|
101608
|
+
function writeMp4(input) {
|
|
101609
|
+
const { samples, width, height, description } = input;
|
|
101610
|
+
if (samples.length === 0) {
|
|
101611
|
+
throw new RangeError("an MP4 needs at least one sample");
|
|
101612
|
+
}
|
|
101613
|
+
if (!samples[0].key) {
|
|
101614
|
+
throw new RangeError("the first sample must be a key frame");
|
|
101615
|
+
}
|
|
101616
|
+
const count = samples.length;
|
|
101617
|
+
const dts = decodeTimes(input);
|
|
101618
|
+
const lastHold = (() => {
|
|
101619
|
+
const fallback = Math.max(
|
|
101620
|
+
1,
|
|
101621
|
+
Math.round(input.fallbackFrameUs * TIMESCALE / 1e6)
|
|
101622
|
+
);
|
|
101623
|
+
if (input.endTs === void 0) return fallback;
|
|
101624
|
+
const endTick = Math.round(
|
|
101625
|
+
(input.endTs - samples[0].ts) * TIMESCALE / 1e6
|
|
101626
|
+
);
|
|
101627
|
+
return endTick > dts[count - 1] ? endTick - dts[count - 1] : fallback;
|
|
101628
|
+
})();
|
|
101629
|
+
const durations = dts.map(
|
|
101630
|
+
(tick, index) => index + 1 < count ? dts[index + 1] - tick : lastHold
|
|
101631
|
+
);
|
|
101632
|
+
const totalTicks = durations.reduce((sum, value) => sum + value, 0);
|
|
101633
|
+
const movieDuration = Math.round(totalTicks * MOVIE_TIMESCALE / TIMESCALE);
|
|
101634
|
+
let payload = 0;
|
|
101635
|
+
for (const sample of samples) payload += sample.data.length;
|
|
101636
|
+
assertOffset(payload + 8, "the media data size");
|
|
101637
|
+
const stts = (() => {
|
|
101638
|
+
const runs = [];
|
|
101639
|
+
for (const duration of durations) {
|
|
101640
|
+
const last = runs[runs.length - 1];
|
|
101641
|
+
if (last && last[1] === duration) last[0] += 1;
|
|
101642
|
+
else runs.push([1, duration]);
|
|
101643
|
+
}
|
|
101644
|
+
return fullBox(
|
|
101645
|
+
"stts",
|
|
101646
|
+
0,
|
|
101647
|
+
0,
|
|
101648
|
+
u32(runs.length),
|
|
101649
|
+
...runs.flatMap(([run, duration]) => [u32(run), u32(duration)])
|
|
101650
|
+
);
|
|
101651
|
+
})();
|
|
101652
|
+
const keyIndexes = samples.flatMap(
|
|
101653
|
+
(sample, index) => sample.key ? [u32(index + 1)] : []
|
|
101654
|
+
);
|
|
101655
|
+
const stss = fullBox("stss", 0, 0, u32(keyIndexes.length), ...keyIndexes);
|
|
101656
|
+
const stsc = fullBox("stsc", 0, 0, u32(1), u32(1), u32(count), u32(1));
|
|
101657
|
+
const stsz = fullBox(
|
|
101658
|
+
"stsz",
|
|
101659
|
+
0,
|
|
101660
|
+
0,
|
|
101661
|
+
u32(0),
|
|
101662
|
+
u32(count),
|
|
101663
|
+
...samples.map((sample) => u32(sample.data.length))
|
|
101664
|
+
);
|
|
101665
|
+
const sampleEntry = box(
|
|
101666
|
+
"avc1",
|
|
101667
|
+
Buffer.alloc(6),
|
|
101668
|
+
u16(1),
|
|
101669
|
+
Buffer.alloc(16),
|
|
101670
|
+
u16(width),
|
|
101671
|
+
u16(height),
|
|
101672
|
+
u32(4718592),
|
|
101673
|
+
u32(4718592),
|
|
101674
|
+
u32(0),
|
|
101675
|
+
u16(1),
|
|
101676
|
+
Buffer.alloc(32),
|
|
101677
|
+
u16(24),
|
|
101678
|
+
u16(65535),
|
|
101679
|
+
box("avcC", Buffer.from(description)),
|
|
101680
|
+
// nclx: primaries 1, transfer 1, matrix 1 (BT.709), then the full-range bit
|
|
101681
|
+
// in the top bit of a byte: 0 = limited.
|
|
101682
|
+
box(
|
|
101683
|
+
"colr",
|
|
101684
|
+
Buffer.from("nclx", "latin1"),
|
|
101685
|
+
u16(1),
|
|
101686
|
+
u16(1),
|
|
101687
|
+
u16(1),
|
|
101688
|
+
Buffer.from([0])
|
|
101689
|
+
)
|
|
101690
|
+
);
|
|
101691
|
+
const stsd = fullBox("stsd", 0, 0, u32(1), sampleEntry);
|
|
101692
|
+
const dinf = box(
|
|
101693
|
+
"dinf",
|
|
101694
|
+
fullBox("dref", 0, 0, u32(1), fullBox("url ", 0, 1))
|
|
101695
|
+
);
|
|
101696
|
+
const mdhd = fullBox(
|
|
101697
|
+
"mdhd",
|
|
101698
|
+
0,
|
|
101699
|
+
0,
|
|
101700
|
+
u32(0),
|
|
101701
|
+
u32(0),
|
|
101702
|
+
u32(TIMESCALE),
|
|
101703
|
+
u32(totalTicks),
|
|
101704
|
+
u16(21956),
|
|
101705
|
+
u16(0)
|
|
101706
|
+
);
|
|
101707
|
+
const hdlr = fullBox(
|
|
101708
|
+
"hdlr",
|
|
101709
|
+
0,
|
|
101710
|
+
0,
|
|
101711
|
+
u32(0),
|
|
101712
|
+
Buffer.from("vide", "latin1"),
|
|
101713
|
+
Buffer.alloc(12),
|
|
101714
|
+
Buffer.from("VideoHandler\0", "latin1")
|
|
101715
|
+
);
|
|
101716
|
+
const tkhd = fullBox(
|
|
101717
|
+
"tkhd",
|
|
101718
|
+
0,
|
|
101719
|
+
3,
|
|
101720
|
+
u32(0),
|
|
101721
|
+
u32(0),
|
|
101722
|
+
u32(1),
|
|
101723
|
+
u32(0),
|
|
101724
|
+
u32(movieDuration),
|
|
101725
|
+
Buffer.alloc(8),
|
|
101726
|
+
u16(0),
|
|
101727
|
+
u16(0),
|
|
101728
|
+
u16(0),
|
|
101729
|
+
u16(0),
|
|
101730
|
+
IDENTITY_MATRIX,
|
|
101731
|
+
u32(width << 16),
|
|
101732
|
+
u32(height << 16)
|
|
101733
|
+
);
|
|
101734
|
+
const mvhd = fullBox(
|
|
101735
|
+
"mvhd",
|
|
101736
|
+
0,
|
|
101737
|
+
0,
|
|
101738
|
+
u32(0),
|
|
101739
|
+
u32(0),
|
|
101740
|
+
u32(MOVIE_TIMESCALE),
|
|
101741
|
+
u32(movieDuration),
|
|
101742
|
+
u32(65536),
|
|
101743
|
+
u16(256),
|
|
101744
|
+
Buffer.alloc(10),
|
|
101745
|
+
IDENTITY_MATRIX,
|
|
101746
|
+
Buffer.alloc(24),
|
|
101747
|
+
u32(2)
|
|
101748
|
+
);
|
|
101749
|
+
const ftyp = box(
|
|
101750
|
+
"ftyp",
|
|
101751
|
+
Buffer.from("isom", "latin1"),
|
|
101752
|
+
u32(512),
|
|
101753
|
+
Buffer.from("isomiso2avc1mp41", "latin1")
|
|
101754
|
+
);
|
|
101755
|
+
const moovWith = (chunkOffset) => {
|
|
101756
|
+
const stco = fullBox("stco", 0, 0, u32(1), u32(chunkOffset));
|
|
101757
|
+
const stbl = box("stbl", stsd, stts, stss, stsc, stsz, stco);
|
|
101758
|
+
const minf = box(
|
|
101759
|
+
"minf",
|
|
101760
|
+
fullBox("vmhd", 0, 1, Buffer.alloc(8)),
|
|
101761
|
+
dinf,
|
|
101762
|
+
stbl
|
|
101763
|
+
);
|
|
101764
|
+
const trak = box("trak", tkhd, box("mdia", mdhd, hdlr, minf));
|
|
101765
|
+
return box("moov", mvhd, trak);
|
|
101766
|
+
};
|
|
101767
|
+
const moovSize = moovWith(0).length;
|
|
101768
|
+
const mdatHeader = Buffer.concat([u32(8 + payload), Buffer.from("mdat")]);
|
|
101769
|
+
const dataStart = ftyp.length + moovSize + mdatHeader.length;
|
|
101770
|
+
assertOffset(dataStart + payload, "the file size");
|
|
101771
|
+
const moov = moovWith(dataStart);
|
|
101772
|
+
const parts = [
|
|
101773
|
+
Buffer.concat([ftyp, moov, mdatHeader]),
|
|
101774
|
+
...samples.map(
|
|
101775
|
+
(sample) => Buffer.from(
|
|
101776
|
+
sample.data.buffer,
|
|
101777
|
+
sample.data.byteOffset,
|
|
101778
|
+
sample.data.length
|
|
101779
|
+
)
|
|
101780
|
+
)
|
|
101781
|
+
];
|
|
101782
|
+
return {
|
|
101783
|
+
parts,
|
|
101784
|
+
size: ftyp.length + moov.length + mdatHeader.length + payload,
|
|
101785
|
+
durationMs: movieDuration
|
|
101786
|
+
};
|
|
101787
|
+
}
|
|
101788
|
+
function muxOverheadBound(samples, descriptionBytes) {
|
|
101789
|
+
return 4096 + descriptionBytes + 16 * samples;
|
|
101790
|
+
}
|
|
101791
|
+
const HQ_TIMING = {
|
|
101792
|
+
nudgeMs: 300,
|
|
101793
|
+
firstFrameMs: 3e3,
|
|
101794
|
+
stopCaptureMs: 2e3,
|
|
101795
|
+
flushMs: 1e4,
|
|
101796
|
+
encoderStartMs: 1e4
|
|
101797
|
+
};
|
|
101798
|
+
const HQ_FPS = 10;
|
|
101799
|
+
const KEY_INTERVAL_US = 2e6;
|
|
101800
|
+
const BITRATE_SMALL = 4e6;
|
|
101801
|
+
const BITRATE_FULL_HD = 8e6;
|
|
101802
|
+
const BITRATE_LARGE = 16e6;
|
|
101803
|
+
const AREA_720P = 1280 * 720;
|
|
101804
|
+
const AREA_1080P = 1920 * 1080;
|
|
101805
|
+
const SOFTWARE_MAX_AREA = AREA_1080P;
|
|
101806
|
+
const DRAIN_MS = 3e3;
|
|
101807
|
+
const PNG_SIGNATURE = [137, 80, 78, 71];
|
|
101808
|
+
function bitrateFor(width, height) {
|
|
101809
|
+
const area = width * height;
|
|
101810
|
+
if (area <= AREA_720P) return BITRATE_SMALL;
|
|
101811
|
+
if (area <= AREA_1080P) return BITRATE_FULL_HD;
|
|
101812
|
+
return BITRATE_LARGE;
|
|
101813
|
+
}
|
|
101814
|
+
function pngSize(base64) {
|
|
101815
|
+
const head = Buffer.from(base64.slice(0, 32), "base64");
|
|
101816
|
+
if (head.length < 24) return null;
|
|
101817
|
+
for (let index = 0; index < PNG_SIGNATURE.length; index += 1) {
|
|
101818
|
+
if (head[index] !== PNG_SIGNATURE[index]) return null;
|
|
101819
|
+
}
|
|
101820
|
+
return { width: head.readUInt32BE(16), height: head.readUInt32BE(20) };
|
|
101821
|
+
}
|
|
101822
|
+
function failed(message) {
|
|
101823
|
+
return new BridgeCommandError("internal", message, { reason: "record_failed" });
|
|
101824
|
+
}
|
|
101825
|
+
function unavailable(why, detail) {
|
|
101826
|
+
return new BridgeCommandError(
|
|
101827
|
+
"internal",
|
|
101828
|
+
`high-quality recording is not available here (${detail}). Retry without quality for the standard recording; nothing was started.`,
|
|
101829
|
+
{ reason: "record_quality_unavailable", why, detail }
|
|
101830
|
+
);
|
|
101831
|
+
}
|
|
101832
|
+
function bounded(work, ms, onTimeout) {
|
|
101833
|
+
let timer;
|
|
101834
|
+
const timeout = new Promise((_resolve, reject) => {
|
|
101835
|
+
timer = setTimeout(() => reject(onTimeout()), ms);
|
|
101836
|
+
timer.unref?.();
|
|
101837
|
+
});
|
|
101838
|
+
return Promise.race([work, timeout]).finally(() => {
|
|
101839
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
101840
|
+
});
|
|
101841
|
+
}
|
|
101842
|
+
class HqSession {
|
|
101843
|
+
/** Set by `start` once the encoder answered. */
|
|
101844
|
+
encoder = "hardware";
|
|
101845
|
+
codec = "h264";
|
|
101846
|
+
width = 0;
|
|
101847
|
+
height = 0;
|
|
101848
|
+
bitrate = 0;
|
|
101849
|
+
fps = HQ_FPS;
|
|
101850
|
+
cdp;
|
|
101851
|
+
contents;
|
|
101852
|
+
timing;
|
|
101853
|
+
now;
|
|
101854
|
+
maxBytes;
|
|
101855
|
+
onCap;
|
|
101856
|
+
sized;
|
|
101857
|
+
maxWidth;
|
|
101858
|
+
maxHeight;
|
|
101859
|
+
host = null;
|
|
101860
|
+
unsubscribe = null;
|
|
101861
|
+
timers = /* @__PURE__ */ new Set();
|
|
101862
|
+
disposed = false;
|
|
101863
|
+
stopping = false;
|
|
101864
|
+
captureRequested = false;
|
|
101865
|
+
captureStop = null;
|
|
101866
|
+
finishing = null;
|
|
101867
|
+
failure = null;
|
|
101868
|
+
failureHandler = null;
|
|
101869
|
+
failureWaiters = /* @__PURE__ */ new Set();
|
|
101870
|
+
configured = false;
|
|
101871
|
+
configuring = false;
|
|
101872
|
+
pending = null;
|
|
101873
|
+
inFlight = null;
|
|
101874
|
+
seq = 0;
|
|
101875
|
+
gotFrame = false;
|
|
101876
|
+
onFirstFrame = null;
|
|
101877
|
+
restarting = false;
|
|
101878
|
+
restartAgain = false;
|
|
101879
|
+
lastSentAt = null;
|
|
101880
|
+
firstWallMs = null;
|
|
101881
|
+
anchorPageSec;
|
|
101882
|
+
anchorRelUs = 0;
|
|
101883
|
+
lastTsUs = -1e3;
|
|
101884
|
+
samples = [];
|
|
101885
|
+
description = null;
|
|
101886
|
+
payload = 0;
|
|
101887
|
+
capped = false;
|
|
101888
|
+
constructor(options) {
|
|
101889
|
+
this.cdp = options.cdp;
|
|
101890
|
+
this.contents = options.contents;
|
|
101891
|
+
this.timing = { ...HQ_TIMING, ...options.service.timing };
|
|
101892
|
+
this.now = options.now ?? Date.now;
|
|
101893
|
+
this.maxBytes = options.maxBytes;
|
|
101894
|
+
this.onCap = options.onCap;
|
|
101895
|
+
this.sized = options.size;
|
|
101896
|
+
this.maxWidth = options.maxWidth;
|
|
101897
|
+
this.maxHeight = options.maxHeight;
|
|
101898
|
+
}
|
|
101899
|
+
/**
|
|
101900
|
+
* Open the encoder, start the screencast and wait for a first frame.
|
|
101901
|
+
*
|
|
101902
|
+
* Every failure disposes before it throws, so a refused or failed start leaves no
|
|
101903
|
+
* window, subscription or timer. The CALLER still owns the viewport and the
|
|
101904
|
+
* reservation, as it does for the standard path.
|
|
101905
|
+
*/
|
|
101906
|
+
static async start(options, registerSession) {
|
|
101907
|
+
const session = new HqSession(options);
|
|
101908
|
+
registerSession(session);
|
|
101909
|
+
try {
|
|
101910
|
+
await session.open(options);
|
|
101911
|
+
return session;
|
|
101912
|
+
} catch (error) {
|
|
101913
|
+
session.dispose();
|
|
101914
|
+
throw error;
|
|
101915
|
+
}
|
|
101916
|
+
}
|
|
101917
|
+
/** Called by `recording.ts` right after `start`: a failure that already happened
|
|
101918
|
+
* is delivered at once, so there is no gap in which a dead encoder is unseen. */
|
|
101919
|
+
onFailure(handler) {
|
|
101920
|
+
this.failureHandler = handler;
|
|
101921
|
+
if (this.failure && !this.disposed) handler(this.failure);
|
|
101922
|
+
}
|
|
101923
|
+
async open(options) {
|
|
101924
|
+
const sink = {
|
|
101925
|
+
onChunk: (chunk) => this.takeChunk(chunk),
|
|
101926
|
+
onFrameDone: (seq2) => this.frameDone(seq2),
|
|
101927
|
+
onFailure: (message) => this.fail(failed(message))
|
|
101928
|
+
};
|
|
101929
|
+
const opening = options.service.open(sink);
|
|
101930
|
+
try {
|
|
101931
|
+
this.host = await bounded(
|
|
101932
|
+
opening,
|
|
101933
|
+
this.timing.encoderStartMs,
|
|
101934
|
+
() => unavailable(
|
|
101935
|
+
"encoder_start",
|
|
101936
|
+
`the encoder window did not open in ${this.timing.encoderStartMs} ms`
|
|
101937
|
+
)
|
|
101938
|
+
);
|
|
101939
|
+
} catch (error) {
|
|
101940
|
+
void opening.then(
|
|
101941
|
+
(late) => {
|
|
101942
|
+
try {
|
|
101943
|
+
late.dispose();
|
|
101944
|
+
} catch {
|
|
101945
|
+
}
|
|
101946
|
+
},
|
|
101947
|
+
() => void 0
|
|
101948
|
+
);
|
|
101949
|
+
throw error instanceof BridgeCommandError && error.data?.reason === "record_quality_unavailable" ? error : unavailable(
|
|
101950
|
+
"encoder_start",
|
|
101951
|
+
error instanceof Error ? error.message : String(error)
|
|
101952
|
+
);
|
|
101953
|
+
}
|
|
101954
|
+
if (this.disposed) {
|
|
101955
|
+
try {
|
|
101956
|
+
this.host?.dispose();
|
|
101957
|
+
} catch {
|
|
101958
|
+
}
|
|
101959
|
+
this.host = null;
|
|
101960
|
+
throw failed("the recording was cancelled while starting");
|
|
101961
|
+
}
|
|
101962
|
+
if (this.sized) await this.configure(this.sized);
|
|
101963
|
+
this.throwIfDisposed();
|
|
101964
|
+
this.unsubscribe = this.cdp.subscribe(
|
|
101965
|
+
this.contents.id,
|
|
101966
|
+
(method, params) => this.onEvent(method, params)
|
|
101967
|
+
);
|
|
101968
|
+
const first = new Promise((resolve) => {
|
|
101969
|
+
this.onFirstFrame = resolve;
|
|
101970
|
+
});
|
|
101971
|
+
this.captureRequested = true;
|
|
101972
|
+
await this.startScreencast();
|
|
101973
|
+
this.throwIfDisposed();
|
|
101974
|
+
this.arm(this.timing.nudgeMs, () => void this.nudge());
|
|
101975
|
+
await this.race(
|
|
101976
|
+
first,
|
|
101977
|
+
this.timing.firstFrameMs,
|
|
101978
|
+
() => failed(
|
|
101979
|
+
`the page produced no frame within ${this.timing.firstFrameMs / 1e3} s of the recording starting, so nothing was recorded`
|
|
101980
|
+
)
|
|
101981
|
+
);
|
|
101982
|
+
}
|
|
101983
|
+
throwIfDisposed() {
|
|
101984
|
+
if (this.disposed)
|
|
101985
|
+
throw failed("the recording was cancelled while starting");
|
|
101986
|
+
}
|
|
101987
|
+
startScreencast() {
|
|
101988
|
+
return this.cdp.send(
|
|
101989
|
+
this.contents,
|
|
101990
|
+
"Page.startScreencast",
|
|
101991
|
+
{
|
|
101992
|
+
format: "png",
|
|
101993
|
+
maxWidth: this.maxWidth,
|
|
101994
|
+
maxHeight: this.maxHeight,
|
|
101995
|
+
everyNthFrame: 1
|
|
101996
|
+
},
|
|
101997
|
+
{ deadlineMs: 2e4 }
|
|
101998
|
+
);
|
|
101999
|
+
}
|
|
102000
|
+
/** `work`, or the first failure, or a timeout. */
|
|
102001
|
+
race(work, ms, onTimeout) {
|
|
102002
|
+
return new Promise((resolve, reject) => {
|
|
102003
|
+
let settledOnce = false;
|
|
102004
|
+
const timer = setTimeout(() => finish2(() => reject(onTimeout())), ms);
|
|
102005
|
+
timer.unref?.();
|
|
102006
|
+
const waiter = (error) => finish2(() => reject(error));
|
|
102007
|
+
this.failureWaiters.add(waiter);
|
|
102008
|
+
const finish2 = (action) => {
|
|
102009
|
+
if (settledOnce) return;
|
|
102010
|
+
settledOnce = true;
|
|
102011
|
+
clearTimeout(timer);
|
|
102012
|
+
this.failureWaiters.delete(waiter);
|
|
102013
|
+
action();
|
|
102014
|
+
};
|
|
102015
|
+
work.then(
|
|
102016
|
+
(value) => finish2(() => resolve(value)),
|
|
102017
|
+
(error) => finish2(() => reject(error))
|
|
102018
|
+
);
|
|
102019
|
+
});
|
|
102020
|
+
}
|
|
102021
|
+
arm(ms, action) {
|
|
102022
|
+
const timer = setTimeout(() => {
|
|
102023
|
+
this.timers.delete(timer);
|
|
102024
|
+
if (!this.disposed) action();
|
|
102025
|
+
}, ms);
|
|
102026
|
+
timer.unref?.();
|
|
102027
|
+
this.timers.add(timer);
|
|
102028
|
+
}
|
|
102029
|
+
/** A first frame larger than the ceiling (the nudge's unscaled screenshot of a
|
|
102030
|
+
* presented tab) is configured at the size the screencast would have scaled it
|
|
102031
|
+
* to, so every later frame matches and the encoder document scales this one. */
|
|
102032
|
+
fitToCeiling(size) {
|
|
102033
|
+
const scale = Math.min(
|
|
102034
|
+
1,
|
|
102035
|
+
this.maxWidth / size.width,
|
|
102036
|
+
this.maxHeight / size.height
|
|
102037
|
+
);
|
|
102038
|
+
return scale >= 1 ? size : {
|
|
102039
|
+
width: Math.round(size.width * scale),
|
|
102040
|
+
height: Math.round(size.height * scale)
|
|
102041
|
+
};
|
|
102042
|
+
}
|
|
102043
|
+
async configure(size) {
|
|
102044
|
+
if (this.configured || this.configuring || !this.host) return;
|
|
102045
|
+
this.configuring = true;
|
|
102046
|
+
const width = size.width - size.width % 2;
|
|
102047
|
+
const height = size.height - size.height % 2;
|
|
102048
|
+
const bitrate = bitrateFor(width, height);
|
|
102049
|
+
let answer;
|
|
102050
|
+
try {
|
|
102051
|
+
answer = await bounded(
|
|
102052
|
+
this.host.configure({
|
|
102053
|
+
width,
|
|
102054
|
+
height,
|
|
102055
|
+
bitrate,
|
|
102056
|
+
fps: HQ_FPS,
|
|
102057
|
+
softwareAllowed: width * height <= SOFTWARE_MAX_AREA,
|
|
102058
|
+
keyIntervalUs: KEY_INTERVAL_US
|
|
102059
|
+
}),
|
|
102060
|
+
this.timing.encoderStartMs,
|
|
102061
|
+
() => unavailable(
|
|
102062
|
+
"encoder_start",
|
|
102063
|
+
`the encoder did not answer within ${this.timing.encoderStartMs} ms`
|
|
102064
|
+
)
|
|
102065
|
+
);
|
|
102066
|
+
} catch (error) {
|
|
102067
|
+
throw error instanceof BridgeCommandError ? error : unavailable("encoder_start", String(error));
|
|
102068
|
+
}
|
|
102069
|
+
if (!answer.ok) throw unavailable(answer.why, answer.detail);
|
|
102070
|
+
this.encoder = answer.encoder;
|
|
102071
|
+
this.codec = "h264";
|
|
102072
|
+
this.width = answer.width;
|
|
102073
|
+
this.height = answer.height;
|
|
102074
|
+
this.bitrate = bitrate;
|
|
102075
|
+
this.configured = true;
|
|
102076
|
+
this.configuring = false;
|
|
102077
|
+
}
|
|
102078
|
+
onEvent(method, params) {
|
|
102079
|
+
if (this.disposed || this.stopping) return;
|
|
102080
|
+
if (method === PAGE_DISABLED_EVENT) {
|
|
102081
|
+
this.restartScreencast();
|
|
102082
|
+
return;
|
|
102083
|
+
}
|
|
102084
|
+
if (method !== "Page.screencastFrame") return;
|
|
102085
|
+
const data = params.data;
|
|
102086
|
+
if (typeof data !== "string") return;
|
|
102087
|
+
const sessionId2 = typeof params.sessionId === "number" ? params.sessionId : null;
|
|
102088
|
+
const metadata = params.metadata;
|
|
102089
|
+
this.take({
|
|
102090
|
+
ackId: sessionId2,
|
|
102091
|
+
data,
|
|
102092
|
+
pageSec: typeof metadata?.timestamp === "number" ? metadata.timestamp : void 0,
|
|
102093
|
+
arrivedAt: this.now()
|
|
102094
|
+
});
|
|
102095
|
+
}
|
|
102096
|
+
/**
|
|
102097
|
+
* `Page.disable` ENDS A RUNNING SCREENCAST and `Page.enable` does not bring it
|
|
102098
|
+
* back (measured, QA round 1 Q1). The origin gate sends exactly that after every
|
|
102099
|
+
* click, type, press and goto, so a clip would freeze at the first action while
|
|
102100
|
+
* keeping its wall-clock length. The pool announces each `Page.disable` it sent
|
|
102101
|
+
* (`PAGE_DISABLED_EVENT`) and the screencast is started again here. A watchdog on
|
|
102102
|
+
* "no frames lately" could not do this job: a static page legitimately produces
|
|
102103
|
+
* none. A burst is coalesced to one start in flight plus one queued (a disable
|
|
102104
|
+
* that lands after the in-flight start was sent ends THAT screencast too, so it
|
|
102105
|
+
* cannot simply be dropped), and a restart that fails fails the recording
|
|
102106
|
+
* instead of leaving a clip that silently stopped moving.
|
|
102107
|
+
*
|
|
102108
|
+
* Chromium's frame-in-flight count restarts with the screencast, so an ack that
|
|
102109
|
+
* was still owed for the old one is simply ignored by it; `inFlight` is left
|
|
102110
|
+
* alone because the encoder, not Chromium, is what releases it.
|
|
102111
|
+
*/
|
|
102112
|
+
restartScreencast() {
|
|
102113
|
+
if (!this.captureRequested) return;
|
|
102114
|
+
if (this.restarting) {
|
|
102115
|
+
this.restartAgain = true;
|
|
102116
|
+
return;
|
|
102117
|
+
}
|
|
102118
|
+
this.restarting = true;
|
|
102119
|
+
void this.startScreencast().then(
|
|
102120
|
+
() => {
|
|
102121
|
+
this.restarting = false;
|
|
102122
|
+
if (this.restartAgain) {
|
|
102123
|
+
this.restartAgain = false;
|
|
102124
|
+
if (!this.disposed && !this.stopping) this.restartScreencast();
|
|
102125
|
+
}
|
|
102126
|
+
},
|
|
102127
|
+
(error) => {
|
|
102128
|
+
this.restarting = false;
|
|
102129
|
+
this.restartAgain = false;
|
|
102130
|
+
if (this.disposed || this.stopping) return;
|
|
102131
|
+
if (error instanceof BridgeCommandError && error.code === "tab_closed")
|
|
102132
|
+
return;
|
|
102133
|
+
this.fail(
|
|
102134
|
+
failed(
|
|
102135
|
+
`the page's screencast stopped and could not be restarted: ${error instanceof Error ? error.message : String(error)}`
|
|
102136
|
+
)
|
|
102137
|
+
);
|
|
102138
|
+
}
|
|
102139
|
+
);
|
|
102140
|
+
}
|
|
102141
|
+
/** The nudge: a static page may emit no screencast frame until something
|
|
102142
|
+
* changes, so one screenshot stands in as frame 0 (D17). */
|
|
102143
|
+
async nudge() {
|
|
102144
|
+
if (this.gotFrame || this.disposed || this.stopping) return;
|
|
102145
|
+
try {
|
|
102146
|
+
const shot = await this.cdp.send(
|
|
102147
|
+
this.contents,
|
|
102148
|
+
"Page.captureScreenshot",
|
|
102149
|
+
{ format: "png", captureBeyondViewport: false },
|
|
102150
|
+
{ deadlineMs: this.timing.firstFrameMs }
|
|
102151
|
+
);
|
|
102152
|
+
if (this.gotFrame || this.disposed || this.stopping) return;
|
|
102153
|
+
if (typeof shot?.data !== "string") return;
|
|
102154
|
+
this.take({
|
|
102155
|
+
ackId: null,
|
|
102156
|
+
data: shot.data,
|
|
102157
|
+
pageSec: void 0,
|
|
102158
|
+
arrivedAt: this.now()
|
|
102159
|
+
});
|
|
102160
|
+
} catch {
|
|
102161
|
+
}
|
|
102162
|
+
}
|
|
102163
|
+
take(frame) {
|
|
102164
|
+
if (!this.gotFrame) {
|
|
102165
|
+
this.gotFrame = true;
|
|
102166
|
+
const size = pngSize(frame.data);
|
|
102167
|
+
if (!this.configured) {
|
|
102168
|
+
if (!size) {
|
|
102169
|
+
this.fail(failed("the first frame was not a PNG image"));
|
|
102170
|
+
return;
|
|
102171
|
+
}
|
|
102172
|
+
void this.configure(this.fitToCeiling(size)).then(
|
|
102173
|
+
() => this.pump(),
|
|
102174
|
+
(error) => this.fail(
|
|
102175
|
+
error instanceof BridgeCommandError ? error : failed(String(error))
|
|
102176
|
+
)
|
|
102177
|
+
);
|
|
102178
|
+
}
|
|
102179
|
+
}
|
|
102180
|
+
if (this.pending) this.ack(this.pending.ackId);
|
|
102181
|
+
this.pending = frame;
|
|
102182
|
+
this.pump();
|
|
102183
|
+
}
|
|
102184
|
+
pump() {
|
|
102185
|
+
if (this.disposed || !this.configured || this.inFlight || !this.pending)
|
|
102186
|
+
return;
|
|
102187
|
+
if (this.stopping && this.capped) return;
|
|
102188
|
+
const frame = this.pending;
|
|
102189
|
+
const interval = 1e3 / HQ_FPS;
|
|
102190
|
+
if (this.lastSentAt !== null) {
|
|
102191
|
+
const wait = this.lastSentAt + interval - this.now();
|
|
102192
|
+
if (wait > 0) {
|
|
102193
|
+
this.arm(wait, () => this.pump());
|
|
102194
|
+
return;
|
|
102195
|
+
}
|
|
102196
|
+
}
|
|
102197
|
+
this.pending = null;
|
|
102198
|
+
this.send(frame);
|
|
102199
|
+
}
|
|
102200
|
+
send(frame) {
|
|
102201
|
+
if (!this.host) return;
|
|
102202
|
+
const arrived = frame.arrivedAt;
|
|
102203
|
+
let relUs;
|
|
102204
|
+
if (this.firstWallMs === null) {
|
|
102205
|
+
this.firstWallMs = arrived;
|
|
102206
|
+
this.anchorPageSec = frame.pageSec;
|
|
102207
|
+
this.anchorRelUs = 0;
|
|
102208
|
+
relUs = 0;
|
|
102209
|
+
} else if (frame.pageSec !== void 0 && this.anchorPageSec !== void 0) {
|
|
102210
|
+
relUs = this.anchorRelUs + (frame.pageSec - this.anchorPageSec) * 1e6;
|
|
102211
|
+
} else if (frame.pageSec !== void 0) {
|
|
102212
|
+
this.anchorPageSec = frame.pageSec;
|
|
102213
|
+
this.anchorRelUs = (arrived - this.firstWallMs) * 1e3;
|
|
102214
|
+
relUs = this.anchorRelUs;
|
|
102215
|
+
} else {
|
|
102216
|
+
relUs = (arrived - this.firstWallMs) * 1e3;
|
|
102217
|
+
}
|
|
102218
|
+
const ts = Math.max(Math.round(relUs), this.lastTsUs + 1e3);
|
|
102219
|
+
this.lastTsUs = ts;
|
|
102220
|
+
this.seq += 1;
|
|
102221
|
+
this.lastSentAt = this.now();
|
|
102222
|
+
this.inFlight = {
|
|
102223
|
+
seq: this.seq,
|
|
102224
|
+
ackId: frame.ackId,
|
|
102225
|
+
sentAt: this.lastSentAt,
|
|
102226
|
+
done: false
|
|
102227
|
+
};
|
|
102228
|
+
this.host.frame(this.seq, frame.data, ts);
|
|
102229
|
+
}
|
|
102230
|
+
frameDone(seq2) {
|
|
102231
|
+
const current = this.inFlight;
|
|
102232
|
+
if (this.disposed || !current || current.seq !== seq2) return;
|
|
102233
|
+
current.done = true;
|
|
102234
|
+
if (this.onFirstFrame) {
|
|
102235
|
+
this.onFirstFrame();
|
|
102236
|
+
this.onFirstFrame = null;
|
|
102237
|
+
}
|
|
102238
|
+
this.release();
|
|
102239
|
+
}
|
|
102240
|
+
/** Ack the frame and take the next, once the encoder has finished with it AND a
|
|
102241
|
+
* frame interval has passed since it was sent. */
|
|
102242
|
+
release() {
|
|
102243
|
+
const current = this.inFlight;
|
|
102244
|
+
if (this.disposed || !current || !current.done) return;
|
|
102245
|
+
const wait = current.sentAt + 1e3 / HQ_FPS - this.now();
|
|
102246
|
+
if (wait > 0 && !this.stopping) {
|
|
102247
|
+
this.arm(wait, () => this.release());
|
|
102248
|
+
return;
|
|
102249
|
+
}
|
|
102250
|
+
this.inFlight = null;
|
|
102251
|
+
if (!this.stopping) this.ack(current.ackId);
|
|
102252
|
+
this.pump();
|
|
102253
|
+
}
|
|
102254
|
+
ack(sessionId2) {
|
|
102255
|
+
if (this.disposed || this.stopping || sessionId2 === null) return;
|
|
102256
|
+
void this.cdp.send(
|
|
102257
|
+
this.contents,
|
|
102258
|
+
"Page.screencastFrameAck",
|
|
102259
|
+
{ sessionId: sessionId2 },
|
|
102260
|
+
{ deadlineMs: this.timing.stopCaptureMs }
|
|
102261
|
+
).catch(() => void 0);
|
|
102262
|
+
}
|
|
102263
|
+
takeChunk(chunk) {
|
|
102264
|
+
if (this.disposed || this.capped) return;
|
|
102265
|
+
if (chunk.description && !this.description)
|
|
102266
|
+
this.description = chunk.description;
|
|
102267
|
+
if (!this.description) {
|
|
102268
|
+
this.fail(failed("the encoder produced no decoder configuration"));
|
|
102269
|
+
return;
|
|
102270
|
+
}
|
|
102271
|
+
const next = this.samples.length + 1;
|
|
102272
|
+
const total = this.payload + chunk.data.length + muxOverheadBound(next, this.description.length);
|
|
102273
|
+
if (total > this.maxBytes) {
|
|
102274
|
+
this.capped = true;
|
|
102275
|
+
this.onCap();
|
|
102276
|
+
return;
|
|
102277
|
+
}
|
|
102278
|
+
this.samples.push({ data: chunk.data, ts: chunk.ts, key: chunk.key });
|
|
102279
|
+
this.payload += chunk.data.length;
|
|
102280
|
+
}
|
|
102281
|
+
fail(error) {
|
|
102282
|
+
if (this.disposed || this.failure) return;
|
|
102283
|
+
this.failure = error;
|
|
102284
|
+
for (const waiter of [...this.failureWaiters]) waiter(error);
|
|
102285
|
+
this.failureHandler?.(error);
|
|
102286
|
+
}
|
|
102287
|
+
/** Stop the screencast, bounded; shared by every caller so Chromium is told once.
|
|
102288
|
+
* On a tab that survives (`endReplaced`, a cancelled start) this is awaited. */
|
|
102289
|
+
stopCapture(again = false) {
|
|
102290
|
+
if (this.captureStop && !again) return this.captureStop;
|
|
102291
|
+
this.captureStop = (async () => {
|
|
102292
|
+
if (!this.captureRequested || this.contents.isDestroyed()) return;
|
|
102293
|
+
try {
|
|
102294
|
+
await this.cdp.send(
|
|
102295
|
+
this.contents,
|
|
102296
|
+
"Page.stopScreencast",
|
|
102297
|
+
{},
|
|
102298
|
+
{ deadlineMs: this.timing.stopCaptureMs }
|
|
102299
|
+
);
|
|
102300
|
+
} catch {
|
|
102301
|
+
}
|
|
102302
|
+
})();
|
|
102303
|
+
return this.captureStop;
|
|
102304
|
+
}
|
|
102305
|
+
/**
|
|
102306
|
+
* End the clip: stop the capture, drain the encoder and box the samples.
|
|
102307
|
+
*
|
|
102308
|
+
* Shared by the timer and `record_stop`. The newest waiting frame is encoded
|
|
102309
|
+
* first, because it is the page's final state and the last encoded frame is held
|
|
102310
|
+
* until the stop.
|
|
102311
|
+
*/
|
|
102312
|
+
finish() {
|
|
102313
|
+
if (!this.finishing) this.finishing = this.runFinish();
|
|
102314
|
+
return this.finishing;
|
|
102315
|
+
}
|
|
102316
|
+
async runFinish() {
|
|
102317
|
+
const endedAt = this.now();
|
|
102318
|
+
this.stopping = true;
|
|
102319
|
+
await this.stopCapture();
|
|
102320
|
+
if (this.disposed)
|
|
102321
|
+
throw failed("the recording was discarded while it was being saved");
|
|
102322
|
+
await this.waitIdle();
|
|
102323
|
+
if (this.pending && this.configured && !this.capped && !this.failure) {
|
|
102324
|
+
const last = this.pending;
|
|
102325
|
+
this.pending = null;
|
|
102326
|
+
this.send(last);
|
|
102327
|
+
await this.waitIdle();
|
|
102328
|
+
}
|
|
102329
|
+
if (this.failure) throw this.failure;
|
|
102330
|
+
if (!this.host) throw failed("the encoder is gone");
|
|
102331
|
+
await this.race(
|
|
102332
|
+
this.host.flush(),
|
|
102333
|
+
this.timing.flushMs,
|
|
102334
|
+
() => failed(
|
|
102335
|
+
"the encoder did not finish within its time limit; nothing was saved"
|
|
102336
|
+
)
|
|
102337
|
+
);
|
|
102338
|
+
if (this.disposed)
|
|
102339
|
+
throw failed("the recording was discarded while it was being saved");
|
|
102340
|
+
if (this.samples.length === 0 || !this.description) {
|
|
102341
|
+
throw this.capped ? new BridgeCommandError(
|
|
102342
|
+
"internal",
|
|
102343
|
+
`the first frame alone does not fit the ${this.maxBytes}-byte limit; nothing was saved. Raise the size limit or record a smaller area.`,
|
|
102344
|
+
{ reason: "record_too_large", max_bytes: this.maxBytes }
|
|
102345
|
+
) : failed("the recording produced no frames; nothing was saved");
|
|
102346
|
+
}
|
|
102347
|
+
const endUs = this.firstWallMs === null ? void 0 : (endedAt - this.firstWallMs) * 1e3;
|
|
102348
|
+
const out = writeMp4({
|
|
102349
|
+
width: this.width,
|
|
102350
|
+
height: this.height,
|
|
102351
|
+
description: this.description,
|
|
102352
|
+
samples: this.samples,
|
|
102353
|
+
endTs: endUs,
|
|
102354
|
+
fallbackFrameUs: 1e6 / HQ_FPS
|
|
102355
|
+
});
|
|
102356
|
+
if (out.size > this.maxBytes) {
|
|
102357
|
+
throw new BridgeCommandError(
|
|
102358
|
+
"internal",
|
|
102359
|
+
`the recording is larger than ${this.maxBytes} bytes; nothing was saved`,
|
|
102360
|
+
{ reason: "record_too_large", max_bytes: this.maxBytes }
|
|
102361
|
+
);
|
|
102362
|
+
}
|
|
102363
|
+
const seconds = Math.max(out.durationMs / 1e3, 1e-3);
|
|
102364
|
+
return {
|
|
102365
|
+
parts: out.parts,
|
|
102366
|
+
size: out.size,
|
|
102367
|
+
frames: this.samples.length,
|
|
102368
|
+
measuredFps: Math.round(this.samples.length / seconds * 100) / 100,
|
|
102369
|
+
avgBitrateKbps: Math.round(this.payload * 8 / seconds / 1e3),
|
|
102370
|
+
encoder: this.encoder,
|
|
102371
|
+
endedAt
|
|
102372
|
+
};
|
|
102373
|
+
}
|
|
102374
|
+
/** Resolves when no frame is in the encoder, the encoder failed, the session was
|
|
102375
|
+
* disposed, or the drain bound passed. Polled rather than signalled: it runs once
|
|
102376
|
+
* per stop, and a poll cannot miss a wake-up that raced the registration. */
|
|
102377
|
+
waitIdle() {
|
|
102378
|
+
return new Promise((resolve) => {
|
|
102379
|
+
const started = this.now();
|
|
102380
|
+
const check = () => {
|
|
102381
|
+
if (!this.inFlight || this.failure || this.disposed || this.now() - started >= DRAIN_MS) {
|
|
102382
|
+
resolve();
|
|
102383
|
+
return;
|
|
102384
|
+
}
|
|
102385
|
+
const timer = setTimeout(check, 20);
|
|
102386
|
+
timer.unref?.();
|
|
102387
|
+
};
|
|
102388
|
+
check();
|
|
102389
|
+
});
|
|
102390
|
+
}
|
|
102391
|
+
/** Tear everything down, now. Idempotent, synchronous, never throws, and never acks
|
|
102392
|
+
* afterwards. The best-effort `Page.stopScreencast` is fire-and-forget here; a
|
|
102393
|
+
* caller whose tab survives awaits `stopCapture` itself. */
|
|
102394
|
+
dispose() {
|
|
102395
|
+
if (this.disposed) return;
|
|
102396
|
+
this.disposed = true;
|
|
102397
|
+
this.unsubscribe?.();
|
|
102398
|
+
this.unsubscribe = null;
|
|
102399
|
+
for (const timer of this.timers) clearTimeout(timer);
|
|
102400
|
+
this.timers.clear();
|
|
102401
|
+
this.pending = null;
|
|
102402
|
+
this.samples = [];
|
|
102403
|
+
this.description = null;
|
|
102404
|
+
const pendingStop = this.captureRequested ? this.stopCapture() : null;
|
|
102405
|
+
void pendingStop?.catch(() => void 0);
|
|
102406
|
+
try {
|
|
102407
|
+
this.host?.dispose();
|
|
102408
|
+
} catch {
|
|
102409
|
+
}
|
|
102410
|
+
this.host = null;
|
|
102411
|
+
for (const waiter of [...this.failureWaiters]) {
|
|
102412
|
+
waiter(failed("the recording was discarded"));
|
|
102413
|
+
}
|
|
102414
|
+
this.failureWaiters.clear();
|
|
102415
|
+
this.failureHandler = null;
|
|
102416
|
+
}
|
|
102417
|
+
}
|
|
101155
102418
|
const RECORD_WIDTH = 1280;
|
|
101156
102419
|
const RECORD_HEIGHT = 720;
|
|
101157
102420
|
const RECORD_FPS = 10;
|
|
@@ -101293,6 +102556,18 @@ function maxBytesOf(params) {
|
|
|
101293
102556
|
}
|
|
101294
102557
|
return bytes;
|
|
101295
102558
|
}
|
|
102559
|
+
function qualityOf(params) {
|
|
102560
|
+
const raw = params.quality;
|
|
102561
|
+
if (raw === void 0 || raw === null || raw === "standard") {
|
|
102562
|
+
return "standard";
|
|
102563
|
+
}
|
|
102564
|
+
if (raw === "high") return "high";
|
|
102565
|
+
throw new BridgeCommandError(
|
|
102566
|
+
"internal",
|
|
102567
|
+
`record_start quality must be "standard" or "high": got ${JSON.stringify(raw)}. Nothing was started.`,
|
|
102568
|
+
{ reason: "record_quality", param: "quality", why: "value" }
|
|
102569
|
+
);
|
|
102570
|
+
}
|
|
101296
102571
|
function sizeRefusal(why, param, detail) {
|
|
101297
102572
|
return new BridgeCommandError("internal", `${detail} Nothing was started.`, {
|
|
101298
102573
|
reason: "record_size",
|
|
@@ -101517,6 +102792,15 @@ function captureShape(size) {
|
|
|
101517
102792
|
...size ? { width: size.width, height: size.height } : {}
|
|
101518
102793
|
};
|
|
101519
102794
|
}
|
|
102795
|
+
function highShape(session) {
|
|
102796
|
+
return {
|
|
102797
|
+
fps: session.fps,
|
|
102798
|
+
container: "mp4",
|
|
102799
|
+
codec: session.codec,
|
|
102800
|
+
width: session.width,
|
|
102801
|
+
height: session.height
|
|
102802
|
+
};
|
|
102803
|
+
}
|
|
101520
102804
|
async function readStream(recording, handle2, budgetAt, fd) {
|
|
101521
102805
|
let bytes = 0;
|
|
101522
102806
|
for (; ; ) {
|
|
@@ -101553,7 +102837,27 @@ async function readStream(recording, handle2, budgetAt, fd) {
|
|
|
101553
102837
|
}
|
|
101554
102838
|
return bytes;
|
|
101555
102839
|
}
|
|
102840
|
+
function publishPart(partPath, path2) {
|
|
102841
|
+
try {
|
|
102842
|
+
fs.linkSync(partPath, path2);
|
|
102843
|
+
} catch (error) {
|
|
102844
|
+
const code = error?.code;
|
|
102845
|
+
if (code === "EEXIST") {
|
|
102846
|
+
throw pathRefusal(
|
|
102847
|
+
path2,
|
|
102848
|
+
`the recording path appeared while recording and is never overwritten: ${path2}`
|
|
102849
|
+
);
|
|
102850
|
+
}
|
|
102851
|
+
throw error;
|
|
102852
|
+
}
|
|
102853
|
+
try {
|
|
102854
|
+
fs.unlinkSync(partPath);
|
|
102855
|
+
} catch {
|
|
102856
|
+
}
|
|
102857
|
+
}
|
|
101556
102858
|
async function runFinalize(recording, autoStopped) {
|
|
102859
|
+
if (recording.engine === "high")
|
|
102860
|
+
return runFinalizeHigh(recording, autoStopped);
|
|
101557
102861
|
const { contents, cdp, path: path2, partPath } = recording;
|
|
101558
102862
|
const budgetAt = Date.now() + RECORD_STOP_BUDGET_MS;
|
|
101559
102863
|
let handle2 = "";
|
|
@@ -101596,22 +102900,7 @@ async function runFinalize(recording, autoStopped) {
|
|
|
101596
102900
|
fs.fsyncSync(fd);
|
|
101597
102901
|
fs.closeSync(fd);
|
|
101598
102902
|
fd = null;
|
|
101599
|
-
|
|
101600
|
-
fs.linkSync(partPath, path2);
|
|
101601
|
-
} catch (error) {
|
|
101602
|
-
const code = error?.code;
|
|
101603
|
-
if (code === "EEXIST") {
|
|
101604
|
-
throw pathRefusal(
|
|
101605
|
-
path2,
|
|
101606
|
-
`the recording path appeared while recording and is never overwritten: ${path2}`
|
|
101607
|
-
);
|
|
101608
|
-
}
|
|
101609
|
-
throw error;
|
|
101610
|
-
}
|
|
101611
|
-
try {
|
|
101612
|
-
fs.unlinkSync(partPath);
|
|
101613
|
-
} catch {
|
|
101614
|
-
}
|
|
102903
|
+
publishPart(partPath, path2);
|
|
101615
102904
|
return {
|
|
101616
102905
|
path: path2,
|
|
101617
102906
|
bytes,
|
|
@@ -101650,6 +102939,72 @@ async function runFinalize(recording, autoStopped) {
|
|
|
101650
102939
|
}
|
|
101651
102940
|
}
|
|
101652
102941
|
}
|
|
102942
|
+
function writeAll(fd, buffer) {
|
|
102943
|
+
let offset = 0;
|
|
102944
|
+
while (offset < buffer.length) {
|
|
102945
|
+
offset += fs.writeSync(fd, buffer, offset, buffer.length - offset);
|
|
102946
|
+
}
|
|
102947
|
+
}
|
|
102948
|
+
async function runFinalizeHigh(recording, autoStopped) {
|
|
102949
|
+
const { contents, cdp, path: path2, partPath } = recording;
|
|
102950
|
+
const session = recording.encoder;
|
|
102951
|
+
let fd = null;
|
|
102952
|
+
let createdPart = false;
|
|
102953
|
+
let viewportCleared = false;
|
|
102954
|
+
try {
|
|
102955
|
+
if (!session) throw abortedWhileSaving();
|
|
102956
|
+
const clip2 = await session.finish();
|
|
102957
|
+
if (recording.viewportToken) {
|
|
102958
|
+
await clearViewport(cdp, contents, recording.viewportToken);
|
|
102959
|
+
viewportCleared = true;
|
|
102960
|
+
}
|
|
102961
|
+
if (recording.aborted) throw abortedWhileSaving();
|
|
102962
|
+
fd = fs.openSync(partPath, "wx", 384);
|
|
102963
|
+
createdPart = true;
|
|
102964
|
+
let bytes = 0;
|
|
102965
|
+
for (const part of clip2.parts) {
|
|
102966
|
+
writeAll(fd, part);
|
|
102967
|
+
bytes += part.length;
|
|
102968
|
+
}
|
|
102969
|
+
if (recording.aborted) throw abortedWhileSaving();
|
|
102970
|
+
fs.fsyncSync(fd);
|
|
102971
|
+
fs.closeSync(fd);
|
|
102972
|
+
fd = null;
|
|
102973
|
+
publishPart(partPath, path2);
|
|
102974
|
+
return {
|
|
102975
|
+
path: path2,
|
|
102976
|
+
bytes,
|
|
102977
|
+
duration_ms: clip2.endedAt - recording.startedAt,
|
|
102978
|
+
auto_stopped: autoStopped,
|
|
102979
|
+
...highShape(session),
|
|
102980
|
+
quality: "high",
|
|
102981
|
+
encoder: clip2.encoder,
|
|
102982
|
+
frames: clip2.frames,
|
|
102983
|
+
measured_fps: clip2.measuredFps,
|
|
102984
|
+
avg_bitrate_kbps: clip2.avgBitrateKbps,
|
|
102985
|
+
stop_reason: recording.stopReason ?? (autoStopped ? "max_duration" : "stop")
|
|
102986
|
+
};
|
|
102987
|
+
} catch (error) {
|
|
102988
|
+
throw typedFailure(error);
|
|
102989
|
+
} finally {
|
|
102990
|
+
if (recording.viewportToken && !viewportCleared) {
|
|
102991
|
+
await clearViewport(cdp, contents, recording.viewportToken);
|
|
102992
|
+
}
|
|
102993
|
+
if (fd !== null) {
|
|
102994
|
+
try {
|
|
102995
|
+
fs.closeSync(fd);
|
|
102996
|
+
} catch {
|
|
102997
|
+
}
|
|
102998
|
+
}
|
|
102999
|
+
if (createdPart) {
|
|
103000
|
+
try {
|
|
103001
|
+
fs.unlinkSync(partPath);
|
|
103002
|
+
} catch {
|
|
103003
|
+
}
|
|
103004
|
+
}
|
|
103005
|
+
session?.dispose();
|
|
103006
|
+
}
|
|
103007
|
+
}
|
|
101653
103008
|
function settle$1(webContentsId, recording, outcome) {
|
|
101654
103009
|
if (recordings.get(webContentsId) === recording) {
|
|
101655
103010
|
recordings.delete(webContentsId);
|
|
@@ -101664,6 +103019,11 @@ function settle$1(webContentsId, recording, outcome) {
|
|
|
101664
103019
|
async function endReplaced(recording) {
|
|
101665
103020
|
try {
|
|
101666
103021
|
await recording.cdp.attach(recording.contents).catch(() => void 0);
|
|
103022
|
+
if (recording.encoder) {
|
|
103023
|
+
await recording.encoder.stopCapture(true);
|
|
103024
|
+
recording.encoder.dispose();
|
|
103025
|
+
return;
|
|
103026
|
+
}
|
|
101667
103027
|
const stopped = await recording.cdp.send(
|
|
101668
103028
|
recording.contents,
|
|
101669
103029
|
"Page.stopScreenRecording",
|
|
@@ -101726,6 +103086,18 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101726
103086
|
}
|
|
101727
103087
|
}
|
|
101728
103088
|
const size = sizeOf$1(params);
|
|
103089
|
+
const quality = qualityOf(params);
|
|
103090
|
+
if (quality === "high" && !ctx.recordingEncoder) {
|
|
103091
|
+
throw new BridgeCommandError(
|
|
103092
|
+
"internal",
|
|
103093
|
+
"high-quality recording is not available here (this host was built without its encoder window). Retry without quality for the standard recording; nothing was started.",
|
|
103094
|
+
{
|
|
103095
|
+
reason: "record_quality_unavailable",
|
|
103096
|
+
why: "no_h264_encoder",
|
|
103097
|
+
detail: "no encoder window"
|
|
103098
|
+
}
|
|
103099
|
+
);
|
|
103100
|
+
}
|
|
101729
103101
|
if (size && tab.presented) {
|
|
101730
103102
|
throw sizeRefusal(
|
|
101731
103103
|
"visible",
|
|
@@ -101795,6 +103167,9 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101795
103167
|
let measured = size;
|
|
101796
103168
|
let viewportToken;
|
|
101797
103169
|
let started = false;
|
|
103170
|
+
let hq;
|
|
103171
|
+
let capEarly = false;
|
|
103172
|
+
let capHandler = null;
|
|
101798
103173
|
try {
|
|
101799
103174
|
if (active) await endReplaced(active);
|
|
101800
103175
|
await ctx.cdp.attach(contents);
|
|
@@ -101803,24 +103178,49 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101803
103178
|
measured = await waitForViewport(ctx.cdp, contents, size);
|
|
101804
103179
|
await waitForCompositedFrame(ctx.cdp, contents, measured);
|
|
101805
103180
|
}
|
|
101806
|
-
|
|
101807
|
-
|
|
101808
|
-
|
|
101809
|
-
"Page.startScreenRecording",
|
|
103181
|
+
if (quality === "high" && ctx.recordingEncoder) {
|
|
103182
|
+
const service = ctx.recordingEncoder;
|
|
103183
|
+
await HqSession.start(
|
|
101810
103184
|
{
|
|
101811
|
-
|
|
103185
|
+
cdp: ctx.cdp,
|
|
103186
|
+
contents,
|
|
103187
|
+
service,
|
|
101812
103188
|
maxWidth: measured?.width ?? RECORD_WIDTH,
|
|
101813
103189
|
maxHeight: measured?.height ?? RECORD_HEIGHT,
|
|
101814
|
-
|
|
103190
|
+
size: measured,
|
|
103191
|
+
maxBytes,
|
|
103192
|
+
onCap: () => {
|
|
103193
|
+
if (capHandler) capHandler();
|
|
103194
|
+
else capEarly = true;
|
|
103195
|
+
}
|
|
101815
103196
|
},
|
|
101816
|
-
|
|
103197
|
+
(session) => {
|
|
103198
|
+
hq = session;
|
|
103199
|
+
entry.dispose = () => session.dispose();
|
|
103200
|
+
}
|
|
101817
103201
|
);
|
|
101818
103202
|
started = true;
|
|
101819
|
-
}
|
|
101820
|
-
|
|
103203
|
+
} else {
|
|
103204
|
+
try {
|
|
103205
|
+
await ctx.cdp.send(
|
|
103206
|
+
contents,
|
|
103207
|
+
"Page.startScreenRecording",
|
|
103208
|
+
{
|
|
103209
|
+
audio: false,
|
|
103210
|
+
maxWidth: measured?.width ?? RECORD_WIDTH,
|
|
103211
|
+
maxHeight: measured?.height ?? RECORD_HEIGHT,
|
|
103212
|
+
frameRate: RECORD_FPS
|
|
103213
|
+
},
|
|
103214
|
+
{ deadlineMs: RECORD_START_DEADLINE_MS }
|
|
103215
|
+
);
|
|
103216
|
+
started = true;
|
|
103217
|
+
} catch (error) {
|
|
103218
|
+
throw classifyStartFailure(error);
|
|
103219
|
+
}
|
|
101821
103220
|
}
|
|
101822
103221
|
} catch (error) {
|
|
101823
103222
|
reservations.delete(reservation);
|
|
103223
|
+
if (hq) await hq.stopCapture().catch(() => void 0);
|
|
101824
103224
|
if (size && viewportToken) {
|
|
101825
103225
|
await clearViewport(ctx.cdp, contents, viewportToken);
|
|
101826
103226
|
}
|
|
@@ -101834,7 +103234,8 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101834
103234
|
contents,
|
|
101835
103235
|
width: measured?.width,
|
|
101836
103236
|
height: measured?.height,
|
|
101837
|
-
viewportToken
|
|
103237
|
+
viewportToken,
|
|
103238
|
+
encoder: hq
|
|
101838
103239
|
});
|
|
101839
103240
|
} else if (size && viewportToken) {
|
|
101840
103241
|
await clearViewport(ctx.cdp, contents, viewportToken);
|
|
@@ -101858,7 +103259,9 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101858
103259
|
...viewportToken ? { viewportToken } : {},
|
|
101859
103260
|
timer: void 0,
|
|
101860
103261
|
finishing: null,
|
|
101861
|
-
aborted: false
|
|
103262
|
+
aborted: false,
|
|
103263
|
+
engine: quality,
|
|
103264
|
+
...hq ? { encoder: hq } : {}
|
|
101862
103265
|
};
|
|
101863
103266
|
recordings.set(id2, recording);
|
|
101864
103267
|
reservations.delete(reservation);
|
|
@@ -101866,6 +103269,26 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101866
103269
|
void finish(id2, recording, true).catch(() => void 0);
|
|
101867
103270
|
}, maxDurationS * 1e3);
|
|
101868
103271
|
recording.timer.unref?.();
|
|
103272
|
+
if (hq) {
|
|
103273
|
+
const session = hq;
|
|
103274
|
+
capHandler = () => {
|
|
103275
|
+
if (recording.aborted || recording.finishing) return;
|
|
103276
|
+
recording.stopReason = "max_bytes";
|
|
103277
|
+
void finish(id2, recording, true).catch(() => void 0);
|
|
103278
|
+
};
|
|
103279
|
+
session.onFailure((error) => failHigh(id2, recording, error));
|
|
103280
|
+
if (capEarly) capHandler();
|
|
103281
|
+
return {
|
|
103282
|
+
recording: true,
|
|
103283
|
+
path: path2,
|
|
103284
|
+
max_duration_s: maxDurationS,
|
|
103285
|
+
max_bytes: maxBytes,
|
|
103286
|
+
quality: "high",
|
|
103287
|
+
...highShape(session),
|
|
103288
|
+
encoder: session.encoder,
|
|
103289
|
+
bitrate_bps: session.bitrate
|
|
103290
|
+
};
|
|
103291
|
+
}
|
|
101869
103292
|
return {
|
|
101870
103293
|
recording: true,
|
|
101871
103294
|
path: path2,
|
|
@@ -101874,6 +103297,23 @@ async function recordStart(ctx, params, requestId2) {
|
|
|
101874
103297
|
...captureShape(measured)
|
|
101875
103298
|
};
|
|
101876
103299
|
}
|
|
103300
|
+
function failHigh(webContentsId, recording, error) {
|
|
103301
|
+
if (recording.aborted || recording.finishing) return;
|
|
103302
|
+
if (recordings.get(webContentsId) !== recording) return;
|
|
103303
|
+
const session = recording.encoder;
|
|
103304
|
+
settle$1(webContentsId, recording, { error });
|
|
103305
|
+
session?.dispose();
|
|
103306
|
+
void (async () => {
|
|
103307
|
+
await session?.stopCapture().catch(() => void 0);
|
|
103308
|
+
if (recording.viewportToken) {
|
|
103309
|
+
await clearViewport(
|
|
103310
|
+
recording.cdp,
|
|
103311
|
+
recording.contents,
|
|
103312
|
+
recording.viewportToken
|
|
103313
|
+
);
|
|
103314
|
+
}
|
|
103315
|
+
})();
|
|
103316
|
+
}
|
|
101877
103317
|
async function recordStop(ctx, params, requestId2) {
|
|
101878
103318
|
const tab = ctx.registry.requireSurface(String(params.tab ?? ""));
|
|
101879
103319
|
const id2 = tab.view.webContents.id;
|
|
@@ -101903,11 +103343,13 @@ function abortRecording(webContentsId, reason, options = {}) {
|
|
|
101903
103343
|
if (entry.webContentsId === webContentsId) {
|
|
101904
103344
|
entry.cancelled = true;
|
|
101905
103345
|
reservations.delete(token);
|
|
103346
|
+
entry.dispose?.();
|
|
101906
103347
|
}
|
|
101907
103348
|
}
|
|
101908
103349
|
const recording = recordings.get(webContentsId);
|
|
101909
103350
|
if (recording) {
|
|
101910
103351
|
recording.aborted = true;
|
|
103352
|
+
recording.encoder?.dispose();
|
|
101911
103353
|
if (recording.timer !== void 0) {
|
|
101912
103354
|
clearTimeout(recording.timer);
|
|
101913
103355
|
recording.timer = void 0;
|
|
@@ -102074,6 +103516,7 @@ const PROTOCOL_VERSION = "1.3";
|
|
|
102074
103516
|
const ALREADY_ATTACHED = /another debugger|already attached/i;
|
|
102075
103517
|
const STALE_SESSION = /no session|session with given id|no target|target closed/i;
|
|
102076
103518
|
const FRAME_DETACHED = "frame_detached";
|
|
103519
|
+
const PAGE_DISABLED_EVENT = "LocalOperator.pageDisabled";
|
|
102077
103520
|
class CdpPool {
|
|
102078
103521
|
constructor(options = {}) {
|
|
102079
103522
|
this.options = options;
|
|
@@ -102246,13 +103689,32 @@ class CdpPool {
|
|
|
102246
103689
|
"that browser tab is gone; dropped the handle. Use 'open' with a URL to get a new tab"
|
|
102247
103690
|
);
|
|
102248
103691
|
}
|
|
102249
|
-
|
|
103692
|
+
const sent = this.sendTo(
|
|
102250
103693
|
contents,
|
|
102251
103694
|
method,
|
|
102252
103695
|
params,
|
|
102253
103696
|
options.deadlineMs ?? CDP_DEADLINE_MS,
|
|
102254
103697
|
options.sessionId
|
|
102255
103698
|
);
|
|
103699
|
+
if (method !== "Page.disable" || options.sessionId) return sent;
|
|
103700
|
+
const announce = () => {
|
|
103701
|
+
for (const listener of [...this.subscribers.get(contents.id) ?? []]) {
|
|
103702
|
+
try {
|
|
103703
|
+
listener(PAGE_DISABLED_EVENT, {});
|
|
103704
|
+
} catch {
|
|
103705
|
+
}
|
|
103706
|
+
}
|
|
103707
|
+
};
|
|
103708
|
+
return sent.then(
|
|
103709
|
+
(value) => {
|
|
103710
|
+
announce();
|
|
103711
|
+
return value;
|
|
103712
|
+
},
|
|
103713
|
+
(error) => {
|
|
103714
|
+
announce();
|
|
103715
|
+
throw error;
|
|
103716
|
+
}
|
|
103717
|
+
);
|
|
102256
103718
|
}
|
|
102257
103719
|
/**
|
|
102258
103720
|
* The flattened session for one child frame, attached on first use.
|
|
@@ -107044,6 +108506,7 @@ class BrowserHost {
|
|
|
107044
108506
|
approvals;
|
|
107045
108507
|
ownership;
|
|
107046
108508
|
downloads;
|
|
108509
|
+
recordingEncoder;
|
|
107047
108510
|
log;
|
|
107048
108511
|
onChanged;
|
|
107049
108512
|
facts;
|
|
@@ -107085,6 +108548,7 @@ class BrowserHost {
|
|
|
107085
108548
|
this.approvals = options.approvals;
|
|
107086
108549
|
this.ownership = options.ownership;
|
|
107087
108550
|
this.downloads = options.downloads;
|
|
108551
|
+
this.recordingEncoder = options.recordingEncoder;
|
|
107088
108552
|
this.log = options.log;
|
|
107089
108553
|
this.onChanged = options.onChanged;
|
|
107090
108554
|
this.tabAudio = new TabAudioTracker(() => this.onChanged());
|
|
@@ -108027,7 +109491,7 @@ class BrowserHost {
|
|
|
108027
109491
|
"the active tab changed before suggestions were read"
|
|
108028
109492
|
);
|
|
108029
109493
|
}
|
|
108030
|
-
const
|
|
109494
|
+
const live2 = collectAddressHistory(
|
|
108031
109495
|
this.registry.list().map((record) => ({
|
|
108032
109496
|
tabId: record.tabId,
|
|
108033
109497
|
sessionId: record.sessionId,
|
|
@@ -108039,9 +109503,9 @@ class BrowserHost {
|
|
|
108039
109503
|
const historyMatches = this.historyStore?.suggest(request.query, request.limit) ?? [];
|
|
108040
109504
|
return {
|
|
108041
109505
|
requestId: request.requestId,
|
|
108042
|
-
activeTabId:
|
|
109506
|
+
activeTabId: live2.activeTabId,
|
|
108043
109507
|
entries: mergeAddressHistory(
|
|
108044
|
-
|
|
109508
|
+
live2.entries,
|
|
108045
109509
|
historyMatches,
|
|
108046
109510
|
request.query,
|
|
108047
109511
|
request.limit
|
|
@@ -108850,7 +110314,7 @@ class DownloadArmer {
|
|
|
108850
110314
|
});
|
|
108851
110315
|
item.once("done", (_event, state2) => {
|
|
108852
110316
|
capture.pending -= 1;
|
|
108853
|
-
capture.live = capture.live.filter((
|
|
110317
|
+
capture.live = capture.live.filter((live2) => live2 !== entry);
|
|
108854
110318
|
const name = path$1.basename(savePath);
|
|
108855
110319
|
this.release(capture, savePath);
|
|
108856
110320
|
if (entry.weCancelled) {
|
|
@@ -108965,9 +110429,9 @@ class DownloadArmer {
|
|
|
108965
110429
|
}
|
|
108966
110430
|
/** Cancel every download this capture still has writing. */
|
|
108967
110431
|
cancelLive(capture, clause, refusal) {
|
|
108968
|
-
const
|
|
110432
|
+
const live2 = [...capture.live];
|
|
108969
110433
|
capture.live = [];
|
|
108970
|
-
for (const entry of
|
|
110434
|
+
for (const entry of live2) {
|
|
108971
110435
|
if (entry.weCancelled) continue;
|
|
108972
110436
|
this.refuseLive(
|
|
108973
110437
|
capture,
|
|
@@ -109918,14 +111382,14 @@ class OwnershipLedger {
|
|
|
109918
111382
|
}
|
|
109919
111383
|
scope2.generation = generation;
|
|
109920
111384
|
const allocation = scope2.allocations[String(params.allocation_id ?? "")];
|
|
109921
|
-
const
|
|
111385
|
+
const live2 = allocation?.tab ? this.hooks.isLive(allocation.tab) : false;
|
|
109922
111386
|
const unresolved = allocation && ["allocating", "allocated", "cleanup_pending"].includes(
|
|
109923
111387
|
allocation.state
|
|
109924
111388
|
);
|
|
109925
111389
|
return {
|
|
109926
111390
|
ownership_version: 1,
|
|
109927
|
-
state:
|
|
109928
|
-
tab:
|
|
111391
|
+
state: live2 ? allocation.state : unresolved ? "allocating" : "closed",
|
|
111392
|
+
tab: live2 ? allocation.tab ?? "" : "",
|
|
109929
111393
|
retention: scope2.retention ?? "",
|
|
109930
111394
|
terminal: scope2.terminal ?? "",
|
|
109931
111395
|
unknown_reservations: scope2.unknownReservations
|
|
@@ -111228,15 +112692,15 @@ class SessionCookieVault {
|
|
|
111228
112692
|
for (const stored of snapshot2.cookies) {
|
|
111229
112693
|
const identity2 = cookieIdentity(stored);
|
|
111230
112694
|
if (!attempted.has(identity2)) continue;
|
|
111231
|
-
const
|
|
111232
|
-
if (!
|
|
112695
|
+
const live2 = byIdentity.get(identity2);
|
|
112696
|
+
if (!live2) {
|
|
111233
112697
|
report.drifted.push({
|
|
111234
112698
|
name: stored.name,
|
|
111235
112699
|
reason: "not present after the write"
|
|
111236
112700
|
});
|
|
111237
112701
|
continue;
|
|
111238
112702
|
}
|
|
111239
|
-
const drift = attributeDrift(stored,
|
|
112703
|
+
const drift = attributeDrift(stored, live2) ?? sourceMetadataDrift(attempted.get(identity2), live2);
|
|
111240
112704
|
if (drift) report.drifted.push({ name: stored.name, reason: drift });
|
|
111241
112705
|
}
|
|
111242
112706
|
} catch (error) {
|
|
@@ -111467,26 +112931,26 @@ function readMarkerExists(path2) {
|
|
|
111467
112931
|
return false;
|
|
111468
112932
|
}
|
|
111469
112933
|
}
|
|
111470
|
-
function sourceMetadataDrift(params,
|
|
112934
|
+
function sourceMetadataDrift(params, live2) {
|
|
111471
112935
|
if (!params) return null;
|
|
111472
|
-
if (params.sourceScheme !== void 0 && params.sourceScheme !==
|
|
111473
|
-
return `the jar stored source scheme ${String(
|
|
112936
|
+
if (params.sourceScheme !== void 0 && params.sourceScheme !== live2.sourceScheme) {
|
|
112937
|
+
return `the jar stored source scheme ${String(live2.sourceScheme)} where the write asked for ${String(params.sourceScheme)}`;
|
|
111474
112938
|
}
|
|
111475
|
-
if (params.sourcePort !== void 0 && Number(params.sourcePort) !== Number(
|
|
111476
|
-
return `the jar stored source port ${String(
|
|
112939
|
+
if (params.sourcePort !== void 0 && Number(params.sourcePort) !== Number(live2.sourcePort)) {
|
|
112940
|
+
return `the jar stored source port ${String(live2.sourcePort)} where the write asked for ${String(params.sourcePort)}`;
|
|
111477
112941
|
}
|
|
111478
112942
|
return null;
|
|
111479
112943
|
}
|
|
111480
|
-
function attributeDrift(stored,
|
|
111481
|
-
if (
|
|
111482
|
-
if (
|
|
111483
|
-
if (
|
|
111484
|
-
return `httpOnly became ${
|
|
111485
|
-
if (!isSessionCookie(
|
|
111486
|
-
if (sameSiteShape(
|
|
111487
|
-
return `sameSite became ${sameSiteShape(
|
|
112944
|
+
function attributeDrift(stored, live2) {
|
|
112945
|
+
if (live2.value !== stored.value) return "value changed";
|
|
112946
|
+
if (live2.secure !== stored.secure) return `secure became ${live2.secure}`;
|
|
112947
|
+
if (live2.httpOnly !== stored.httpOnly)
|
|
112948
|
+
return `httpOnly became ${live2.httpOnly}`;
|
|
112949
|
+
if (!isSessionCookie(live2)) return "no longer a session cookie";
|
|
112950
|
+
if (sameSiteShape(live2.sameSite) !== sameSiteShape(stored.sameSite)) {
|
|
112951
|
+
return `sameSite became ${sameSiteShape(live2.sameSite)}`;
|
|
111488
112952
|
}
|
|
111489
|
-
const livePartition = partitionKeyForWrite(
|
|
112953
|
+
const livePartition = partitionKeyForWrite(live2);
|
|
111490
112954
|
if (!livePartition.ok) return "partition identity is no longer representable";
|
|
111491
112955
|
if (!samePartition(livePartition.key, stored.partitionKey))
|
|
111492
112956
|
return "partition identity changed";
|
|
@@ -112824,6 +114288,11 @@ async function initializeBrowserHost(options, bindings) {
|
|
|
112824
114288
|
approvals,
|
|
112825
114289
|
ownership,
|
|
112826
114290
|
downloads,
|
|
114291
|
+
recordingEncoder: options.recordingEncoder ? createRecordingEncoderService({
|
|
114292
|
+
documentUrl: options.recordingEncoder.documentUrl,
|
|
114293
|
+
preloadPath: options.recordingEncoder.preloadPath,
|
|
114294
|
+
log: log2
|
|
114295
|
+
}) : void 0,
|
|
112827
114296
|
log: log2,
|
|
112828
114297
|
onChanged: notifyChanged,
|
|
112829
114298
|
facts: () => facts,
|
|
@@ -113133,6 +114602,7 @@ async function initializeBrowserHost(options, bindings) {
|
|
|
113133
114602
|
approvalsExpiryTimer = null;
|
|
113134
114603
|
}
|
|
113135
114604
|
approvalsOverlay?.dispose("host-stop");
|
|
114605
|
+
disposeAllRecordingEncoders();
|
|
113136
114606
|
registry.destroyAll();
|
|
113137
114607
|
await Promise.allSettled([...releases]);
|
|
113138
114608
|
await cdp.close();
|
|
@@ -116522,9 +117992,9 @@ class TeamBridgeNotifier {
|
|
|
116522
117992
|
const pending = this.pendingOpen;
|
|
116523
117993
|
this.pendingOpen = null;
|
|
116524
117994
|
if (!pending) return null;
|
|
116525
|
-
const
|
|
117995
|
+
const unavailable2 = this.pendingUnavailable;
|
|
116526
117996
|
this.pendingUnavailable = false;
|
|
116527
|
-
return !
|
|
117997
|
+
return !unavailable2 && pending.owner.accountId === this.authority?.accountId ? pending : { unavailable: true };
|
|
116528
117998
|
}
|
|
116529
117999
|
replace(conversationId) {
|
|
116530
118000
|
const previous = this.banners.get(conversationId);
|
|
@@ -116536,8 +118006,8 @@ class TeamBridgeNotifier {
|
|
|
116536
118006
|
retainTarget(notification, target2) {
|
|
116537
118007
|
const conversationId = target2.conversationId;
|
|
116538
118008
|
this.lifetime.retain(notification, () => {
|
|
116539
|
-
const
|
|
116540
|
-
if (
|
|
118009
|
+
const live2 = this.banners.get(conversationId) === notification;
|
|
118010
|
+
if (live2) this.banners.delete(conversationId);
|
|
116541
118011
|
this.open(target2, this.revokedBanners.has(notification));
|
|
116542
118012
|
});
|
|
116543
118013
|
notification.once("close", () => {
|
|
@@ -116546,9 +118016,9 @@ class TeamBridgeNotifier {
|
|
|
116546
118016
|
}
|
|
116547
118017
|
});
|
|
116548
118018
|
}
|
|
116549
|
-
open(target2,
|
|
118019
|
+
open(target2, unavailable2 = false) {
|
|
116550
118020
|
this.pendingOpen = target2;
|
|
116551
|
-
this.pendingUnavailable =
|
|
118021
|
+
this.pendingUnavailable = unavailable2;
|
|
116552
118022
|
const window = this.options.window();
|
|
116553
118023
|
if (window && !window.isDestroyed()) {
|
|
116554
118024
|
this.options.host.signalOpen();
|
|
@@ -116836,10 +118306,10 @@ function runtimeStragglerCount(body, current) {
|
|
|
116836
118306
|
}
|
|
116837
118307
|
function daemonMoveOutcome(report) {
|
|
116838
118308
|
if (report === null) return null;
|
|
116839
|
-
const
|
|
118309
|
+
const failed2 = report.daemons.filter(
|
|
116840
118310
|
(daemon) => daemon.status === "failed" || daemon.status === "unsupervised"
|
|
116841
118311
|
).map((daemon) => daemon.name);
|
|
116842
|
-
return { source: "report", moved:
|
|
118312
|
+
return { source: "report", moved: failed2.length === 0, failed: failed2 };
|
|
116843
118313
|
}
|
|
116844
118314
|
const CHROMIUM_TRANSPORT_CODES = [
|
|
116845
118315
|
"ERR_INTERNET_DISCONNECTED",
|
|
@@ -117043,9 +118513,9 @@ async function reengageDisplacedSessions(input) {
|
|
|
117043
118513
|
return { displaced: [], engaged: [], failed: [], stillResident: [] };
|
|
117044
118514
|
const snapshotIds = snapshot2.map((row) => row.sessionId);
|
|
117045
118515
|
const stillLiveIn = (rows) => {
|
|
117046
|
-
const
|
|
117047
|
-
if (
|
|
117048
|
-
return new Set(snapshotIds.filter((id2) =>
|
|
118516
|
+
const live2 = liveRosterIds(rows);
|
|
118517
|
+
if (live2 === null) return null;
|
|
118518
|
+
return new Set(snapshotIds.filter((id2) => live2.has(id2)));
|
|
117049
118519
|
};
|
|
117050
118520
|
let after = await input.readRoster();
|
|
117051
118521
|
let stillLive = stillLiveIn(after) ?? new Set(snapshotIds);
|
|
@@ -117074,26 +118544,26 @@ async function reengageDisplacedSessions(input) {
|
|
|
117074
118544
|
(row) => stillLiveAtEnd.has(row.sessionId)
|
|
117075
118545
|
);
|
|
117076
118546
|
const engaged = [];
|
|
117077
|
-
const
|
|
118547
|
+
const failed2 = [];
|
|
117078
118548
|
for (const row of displaced) {
|
|
117079
118549
|
try {
|
|
117080
118550
|
if (await input.engage(row)) engaged.push(row.sessionId);
|
|
117081
118551
|
else
|
|
117082
|
-
|
|
118552
|
+
failed2.push({
|
|
117083
118553
|
sessionId: row.sessionId,
|
|
117084
118554
|
reason: "the server did not take the engage"
|
|
117085
118555
|
});
|
|
117086
118556
|
} catch (error) {
|
|
117087
|
-
|
|
118557
|
+
failed2.push({
|
|
117088
118558
|
sessionId: row.sessionId,
|
|
117089
118559
|
reason: error instanceof Error ? error.message : String(error)
|
|
117090
118560
|
});
|
|
117091
118561
|
}
|
|
117092
118562
|
}
|
|
117093
118563
|
input.log?.(
|
|
117094
|
-
`Re-engaged ${engaged.length} of ${displaced.length} displaced session(s)${
|
|
118564
|
+
`Re-engaged ${engaged.length} of ${displaced.length} displaced session(s)${failed2.length > 0 ? `; ${failed2.length} did not answer (${failed2.map((row) => row.sessionId).join(", ")})` : ""}${stillResident.length > 0 ? `; ${stillResident.length} pre-swap runtime(s) still resident when the wait ended (${stillResident.map((row) => row.sessionId).join(", ")}), which nothing re-engages afterwards and which go cold on their own schedule` : ""}`
|
|
117095
118565
|
);
|
|
117096
|
-
return { displaced, engaged, failed, stillResident };
|
|
118566
|
+
return { displaced, engaged, failed: failed2, stillResident };
|
|
117097
118567
|
}
|
|
117098
118568
|
const SESSION_ENGAGE_OPEN_MS = 5e3;
|
|
117099
118569
|
const SESSION_ENGAGE_BEAT_MS = 5e3;
|
|
@@ -117158,8 +118628,8 @@ async function engageSessionThroughStream(input) {
|
|
|
117158
118628
|
let leaseHeld = true;
|
|
117159
118629
|
const leaseAt = input.now();
|
|
117160
118630
|
while (input.now() - startedAt < openMs + holdMs) {
|
|
117161
|
-
const
|
|
117162
|
-
if (
|
|
118631
|
+
const live2 = await input.hasRuntime();
|
|
118632
|
+
if (live2 === true) {
|
|
117163
118633
|
cameUp = true;
|
|
117164
118634
|
break;
|
|
117165
118635
|
}
|
|
@@ -122503,25 +123973,25 @@ ${heal.removed.join("\n")}`,
|
|
|
122503
123973
|
const after = await this.readFleetSnapshot(backend);
|
|
122504
123974
|
const displaced = displacedSessions(snapshot2, after);
|
|
122505
123975
|
const engaged = [];
|
|
122506
|
-
const
|
|
123976
|
+
const failed2 = [];
|
|
122507
123977
|
for (const row of displaced) {
|
|
122508
123978
|
try {
|
|
122509
123979
|
if (await this.engageSessionRuntime(backend, row))
|
|
122510
123980
|
engaged.push(row.sessionId);
|
|
122511
123981
|
else
|
|
122512
|
-
|
|
123982
|
+
failed2.push({
|
|
122513
123983
|
sessionId: row.sessionId,
|
|
122514
123984
|
reason: "the server did not take the engage"
|
|
122515
123985
|
});
|
|
122516
123986
|
} catch (error) {
|
|
122517
|
-
|
|
123987
|
+
failed2.push({
|
|
122518
123988
|
sessionId: row.sessionId,
|
|
122519
123989
|
reason: error instanceof Error ? error.message : String(error)
|
|
122520
123990
|
});
|
|
122521
123991
|
}
|
|
122522
123992
|
}
|
|
122523
123993
|
logger.info(
|
|
122524
|
-
`Re-engaged ${engaged.length} of ${displaced.length} session(s) displaced by the restart${
|
|
123994
|
+
`Re-engaged ${engaged.length} of ${displaced.length} session(s) displaced by the restart${failed2.length > 0 ? `; ${failed2.length} did not answer (${failed2.map((row) => row.sessionId).join(", ")})` : ""}`,
|
|
122525
123995
|
LogFileType.UPDATE_SERVICE
|
|
122526
123996
|
);
|
|
122527
123997
|
if (after === null) return null;
|
|
@@ -126316,6 +127786,10 @@ electron.app.whenReady().then(async () => {
|
|
|
126316
127786
|
rendererUrl,
|
|
126317
127787
|
"browser-approvals-overlay.html"
|
|
126318
127788
|
);
|
|
127789
|
+
const recordingEncoderDocumentUrl = documentUrlFor(
|
|
127790
|
+
rendererUrl,
|
|
127791
|
+
"recording-encoder.html"
|
|
127792
|
+
);
|
|
126319
127793
|
backendService.observeDesktopFeed(
|
|
126320
127794
|
(frame) => {
|
|
126321
127795
|
appAttention.observe(frame);
|
|
@@ -127250,6 +128724,13 @@ electron.app.whenReady().then(async () => {
|
|
|
127250
128724
|
"../preload/browser-approvals-overlay.js"
|
|
127251
128725
|
)
|
|
127252
128726
|
},
|
|
128727
|
+
// The hidden H.264 encoder behind `record_start {quality: "high"}`:
|
|
128728
|
+
// the app's own bundled document and preload, derived like the
|
|
128729
|
+
// documents above and never caller-supplied.
|
|
128730
|
+
recordingEncoder: {
|
|
128731
|
+
documentUrl: recordingEncoderDocumentUrl,
|
|
128732
|
+
preloadPath: path$1.join(__dirname, "../preload/recording-encoder.js")
|
|
128733
|
+
},
|
|
127253
128734
|
preloadPath: path$1.join(__dirname, "../preload/index.js"),
|
|
127254
128735
|
/*
|
|
127255
128736
|
* The console's surfaces are handed the user's own PATH, from the same
|
|
@@ -127479,6 +128960,7 @@ electron.app.on("before-quit", async (event) => {
|
|
|
127479
128960
|
launcherWatch?.stop();
|
|
127480
128961
|
armHeadlessExitDeadline("the app is quitting");
|
|
127481
128962
|
}
|
|
128963
|
+
disposeAllRecordingEncoders();
|
|
127482
128964
|
if (await holdQuitForSessionCookieSnapshot(event)) return;
|
|
127483
128965
|
quitExitDeadline.phase("after the session-cookie hold");
|
|
127484
128966
|
logger.info("App is about to quit", LogFileType.BACKEND);
|
|
@@ -127500,6 +128982,7 @@ electron.app.on("before-quit", async (event) => {
|
|
|
127500
128982
|
);
|
|
127501
128983
|
}
|
|
127502
128984
|
activeUpdateService?.quitForInFlightInstall("app quit");
|
|
128985
|
+
disposeAllRecordingEncoders();
|
|
127503
128986
|
void stopBrowserHost();
|
|
127504
128987
|
quitExitDeadline.phase("awaiting the window close");
|
|
127505
128988
|
});
|