termdock 1.4.265 → 1.4.267
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/.desktop-dist/main.js +4 -3
- package/dist/client/assets/App-BqE8LI-u.js +156 -0
- package/dist/client/assets/App-BqE8LI-u.js.br +0 -0
- package/dist/client/assets/App-BqE8LI-u.js.gz +0 -0
- package/dist/client/assets/{ChangeWalkthroughPanel-BfPRxDiF.js → ChangeWalkthroughPanel-DQ9OebFq.js} +2 -2
- package/dist/client/assets/ChangeWalkthroughPanel-DQ9OebFq.js.br +0 -0
- package/dist/client/assets/ChangeWalkthroughPanel-DQ9OebFq.js.gz +0 -0
- package/dist/client/assets/{DagPlayground-DIFzVISA.js → DagPlayground-DeV5N-IP.js} +1 -1
- package/dist/client/assets/DagPlayground-DeV5N-IP.js.br +0 -0
- package/dist/client/assets/DagPlayground-DeV5N-IP.js.gz +0 -0
- package/dist/client/assets/{DiffLab-gjCZJZHD.js → DiffLab-O24yUnne.js} +1 -1
- package/dist/client/assets/DiffLab-O24yUnne.js.br +0 -0
- package/dist/client/assets/DiffLab-O24yUnne.js.gz +0 -0
- package/dist/client/assets/{DiffReview-_Ehf5r7B.js → DiffReview-D4QwNQmG.js} +1 -1
- package/dist/client/assets/DiffReview-D4QwNQmG.js.br +0 -0
- package/dist/client/assets/DiffReview-D4QwNQmG.js.gz +0 -0
- package/dist/client/assets/{DiffReviewLab-D5ZZmL0c.js → DiffReviewLab-CQC9aCyy.js} +1 -1
- package/dist/client/assets/DiffReviewLab-CQC9aCyy.js.br +0 -0
- package/dist/client/assets/DiffReviewLab-CQC9aCyy.js.gz +0 -0
- package/dist/client/assets/DiffViewer-Bw703Keh.js +37 -0
- package/dist/client/assets/DiffViewer-Bw703Keh.js.br +0 -0
- package/dist/client/assets/DiffViewer-Bw703Keh.js.gz +0 -0
- package/dist/client/assets/{ModelPreview-CD59YJ_a.js → ModelPreview-iqwfAi-Q.js} +1 -1
- package/dist/client/assets/ModelPreview-iqwfAi-Q.js.br +0 -0
- package/dist/client/assets/ModelPreview-iqwfAi-Q.js.gz +0 -0
- package/dist/client/assets/{RightSidebar-CeHCLhLy.js → RightSidebar-CJ5Ro_lE.js} +24 -24
- package/dist/client/assets/RightSidebar-CJ5Ro_lE.js.br +0 -0
- package/dist/client/assets/RightSidebar-CJ5Ro_lE.js.gz +0 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-DSa1Ysa8.js → abnfDiagram-VCTEODGH-CPSz-oKS.js} +1 -1
- package/dist/client/assets/abnfDiagram-VCTEODGH-CPSz-oKS.js.br +0 -0
- package/dist/client/assets/abnfDiagram-VCTEODGH-CPSz-oKS.js.gz +0 -0
- package/dist/client/assets/{app-L3gaEB1i.js → app-CG4wRJiV.js} +12 -12
- package/dist/client/assets/app-CG4wRJiV.js.br +0 -0
- package/dist/client/assets/app-CG4wRJiV.js.gz +0 -0
- package/dist/client/assets/{arc-BheyZ1mz.js → arc-DEku29dO.js} +1 -1
- package/dist/client/assets/arc-DEku29dO.js.br +0 -0
- package/dist/client/assets/arc-DEku29dO.js.gz +0 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-BXlasfrQ.js → architectureDiagram-5GKGNRK7-D-mHitIB.js} +1 -1
- package/dist/client/assets/architectureDiagram-5GKGNRK7-D-mHitIB.js.br +0 -0
- package/dist/client/assets/architectureDiagram-5GKGNRK7-D-mHitIB.js.gz +0 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-DwCl8uZj.js → blockDiagram-I7D4REHJ-CrNXWWMo.js} +1 -1
- package/dist/client/assets/blockDiagram-I7D4REHJ-CrNXWWMo.js.br +0 -0
- package/dist/client/assets/blockDiagram-I7D4REHJ-CrNXWWMo.js.gz +0 -0
- package/dist/client/assets/{c4Diagram-7LVT6UL2-Coq6KCH6.js → c4Diagram-7LVT6UL2-Aabqu3DW.js} +1 -1
- package/dist/client/assets/c4Diagram-7LVT6UL2-Aabqu3DW.js.br +0 -0
- package/dist/client/assets/c4Diagram-7LVT6UL2-Aabqu3DW.js.gz +0 -0
- package/dist/client/assets/channel-C8osiAYX.js +1 -0
- package/dist/client/assets/{chunk-2Q5K7J3B-CUFYwTko.js → chunk-2Q5K7J3B-CtS0wd2P.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-COcgIAqN.js → chunk-5VM5RSS4-BmRWnayq.js} +1 -1
- package/dist/client/assets/{chunk-F27PBJKO-BWhCCTPq.js → chunk-F27PBJKO-B1Xs_Obp.js} +1 -1
- package/dist/client/assets/chunk-F27PBJKO-B1Xs_Obp.js.br +0 -0
- package/dist/client/assets/chunk-F27PBJKO-B1Xs_Obp.js.gz +0 -0
- package/dist/client/assets/{chunk-IMKFNOWR-C7TuNlR1.js → chunk-IMKFNOWR-DGBc6K0o.js} +1 -1
- package/dist/client/assets/chunk-IMKFNOWR-DGBc6K0o.js.br +0 -0
- package/dist/client/assets/chunk-IMKFNOWR-DGBc6K0o.js.gz +0 -0
- package/dist/client/assets/{chunk-JWPE2WC7-DjNz0bcc.js → chunk-JWPE2WC7-ZSQlXy77.js} +1 -1
- package/dist/client/assets/{chunk-POPQ4Y6H-TT5BNkJr.js → chunk-POPQ4Y6H-lOdiBcDa.js} +1 -1
- package/dist/client/assets/{chunk-SVP7TREG-DK9JcY1h.js → chunk-SVP7TREG-BEAii929.js} +1 -1
- package/dist/client/assets/chunk-SVP7TREG-BEAii929.js.br +0 -0
- package/dist/client/assets/chunk-SVP7TREG-BEAii929.js.gz +0 -0
- package/dist/client/assets/{chunk-TICWLB2K-B19MlAfZ.js → chunk-TICWLB2K-DYDwgjz6.js} +1 -1
- package/dist/client/assets/chunk-TICWLB2K-DYDwgjz6.js.br +0 -0
- package/dist/client/assets/chunk-TICWLB2K-DYDwgjz6.js.gz +0 -0
- package/dist/client/assets/{chunk-XXDRQBXY-BI9irqHN.js → chunk-XXDRQBXY-DTyJgD5V.js} +1 -1
- package/dist/client/assets/classDiagram-ZZMXUADV-Dym5rIMp.js +1 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Dym5rIMp.js +1 -0
- package/dist/client/assets/{cose-bilkent-JH36ORCC-DSg7_PN1.js → cose-bilkent-JH36ORCC-B_LczeML.js} +1 -1
- package/dist/client/assets/cose-bilkent-JH36ORCC-B_LczeML.js.br +0 -0
- package/dist/client/assets/cose-bilkent-JH36ORCC-B_LczeML.js.gz +0 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-uC7egYG5.js → cynefin-OW5HDTMX-iUNCJhXp.js} +1 -1
- package/dist/client/assets/cynefin-OW5HDTMX-iUNCJhXp.js.br +0 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-uC7egYG5.js.gz → cynefin-OW5HDTMX-iUNCJhXp.js.gz} +0 -0
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-C-XGZrRz.js → cynefinDiagram-5FMLGOSQ-D0qz1YON.js} +1 -1
- package/dist/client/assets/cynefinDiagram-5FMLGOSQ-D0qz1YON.js.br +0 -0
- package/dist/client/assets/cynefinDiagram-5FMLGOSQ-D0qz1YON.js.gz +0 -0
- package/dist/client/assets/{dagre-GXQ25YYZ-B5YJUKWx.js → dagre-GXQ25YYZ-DoNbof8W.js} +1 -1
- package/dist/client/assets/dagre-GXQ25YYZ-DoNbof8W.js.br +0 -0
- package/dist/client/assets/dagre-GXQ25YYZ-DoNbof8W.js.gz +0 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-Bnyrx-jR.js → diagram-S7CK7UJ4-CjmclMId.js} +1 -1
- package/dist/client/assets/diagram-S7CK7UJ4-CjmclMId.js.br +0 -0
- package/dist/client/assets/diagram-S7CK7UJ4-CjmclMId.js.gz +0 -0
- package/dist/client/assets/{diagram-UQ7AKVKN-CUp603fW.js → diagram-UQ7AKVKN-CL9cPDna.js} +1 -1
- package/dist/client/assets/diagram-UQ7AKVKN-CL9cPDna.js.br +0 -0
- package/dist/client/assets/diagram-UQ7AKVKN-CL9cPDna.js.gz +0 -0
- package/dist/client/assets/{diagram-VSXAHHWV-uIXayijw.js → diagram-VSXAHHWV-BuSsBHdW.js} +1 -1
- package/dist/client/assets/diagram-VSXAHHWV-BuSsBHdW.js.br +0 -0
- package/dist/client/assets/diagram-VSXAHHWV-BuSsBHdW.js.gz +0 -0
- package/dist/client/assets/{diagram-VX7I27RA-6J1oIMOb.js → diagram-VX7I27RA-83S-m6VI.js} +1 -1
- package/dist/client/assets/diagram-VX7I27RA-83S-m6VI.js.br +0 -0
- package/dist/client/assets/diagram-VX7I27RA-83S-m6VI.js.gz +0 -0
- package/dist/client/assets/{diagram-Z3DM3KII-C0WgBWqD.js → diagram-Z3DM3KII-DVBe23Hs.js} +1 -1
- package/dist/client/assets/diagram-Z3DM3KII-DVBe23Hs.js.br +0 -0
- package/dist/client/assets/diagram-Z3DM3KII-DVBe23Hs.js.gz +0 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-B5DEM-bI.js → ebnfDiagram-PWID7BFC-Dg-KWuTD.js} +1 -1
- package/dist/client/assets/ebnfDiagram-PWID7BFC-Dg-KWuTD.js.br +0 -0
- package/dist/client/assets/ebnfDiagram-PWID7BFC-Dg-KWuTD.js.gz +0 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-BzxCr-aA.js → erDiagram-RLTQ6QDP-DSSWaahL.js} +1 -1
- package/dist/client/assets/erDiagram-RLTQ6QDP-DSSWaahL.js.br +0 -0
- package/dist/client/assets/erDiagram-RLTQ6QDP-DSSWaahL.js.gz +0 -0
- package/dist/client/assets/{flowDiagram-HODETNUW-DHjjUn1K.js → flowDiagram-HODETNUW-BdLuB2iN.js} +1 -1
- package/dist/client/assets/flowDiagram-HODETNUW-BdLuB2iN.js.br +0 -0
- package/dist/client/assets/flowDiagram-HODETNUW-BdLuB2iN.js.gz +0 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-wH7qPWQb.js → ganttDiagram-EL5Y4UJY-Chs1ygCY.js} +1 -1
- package/dist/client/assets/ganttDiagram-EL5Y4UJY-Chs1ygCY.js.br +0 -0
- package/dist/client/assets/ganttDiagram-EL5Y4UJY-Chs1ygCY.js.gz +0 -0
- package/dist/client/assets/{gestureArbiter-D6RWPMQo.js → gestureArbiter-CRTAj9c5.js} +1 -1
- package/dist/client/assets/gestureArbiter-CRTAj9c5.js.br +0 -0
- package/dist/client/assets/gestureArbiter-CRTAj9c5.js.gz +0 -0
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-CcY9a3m3.js → gitGraphDiagram-WWUBYQGX-BAo61MYb.js} +1 -1
- package/dist/client/assets/gitGraphDiagram-WWUBYQGX-BAo61MYb.js.br +0 -0
- package/dist/client/assets/gitGraphDiagram-WWUBYQGX-BAo61MYb.js.gz +0 -0
- package/dist/client/assets/{index-BOv8uqyA.css → index--h47b0ln.css} +1 -1
- package/dist/client/assets/index--h47b0ln.css.br +0 -0
- package/dist/client/assets/{index-BOv8uqyA.css.gz → index--h47b0ln.css.gz} +0 -0
- package/dist/client/assets/{infoDiagram-27XIBGKW-0ylnBr_8.js → infoDiagram-27XIBGKW-D_VLCYHJ.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-CjrSMq_a.js → ishikawaDiagram-5VMMS53U-CbDv2mvs.js} +1 -1
- package/dist/client/assets/ishikawaDiagram-5VMMS53U-CbDv2mvs.js.br +0 -0
- package/dist/client/assets/ishikawaDiagram-5VMMS53U-CbDv2mvs.js.gz +0 -0
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-DrzTWkK-.js → journeyDiagram-3NMN7TZE-CV_iBuZn.js} +1 -1
- package/dist/client/assets/journeyDiagram-3NMN7TZE-CV_iBuZn.js.br +0 -0
- package/dist/client/assets/journeyDiagram-3NMN7TZE-CV_iBuZn.js.gz +0 -0
- package/dist/client/assets/{kanban-definition-UXKFOSKX-D9CCE6r8.js → kanban-definition-UXKFOSKX-C7O4Bh1q.js} +1 -1
- package/dist/client/assets/kanban-definition-UXKFOSKX-C7O4Bh1q.js.br +0 -0
- package/dist/client/assets/kanban-definition-UXKFOSKX-C7O4Bh1q.js.gz +0 -0
- package/dist/client/assets/{layout-BjxwetPy.js → layout-klNTG6uR.js} +1 -1
- package/dist/client/assets/layout-klNTG6uR.js.br +0 -0
- package/dist/client/assets/layout-klNTG6uR.js.gz +0 -0
- package/dist/client/assets/{linear-C0mh26-a.js → linear-BGNAzPTT.js} +1 -1
- package/dist/client/assets/linear-BGNAzPTT.js.br +0 -0
- package/dist/client/assets/linear-BGNAzPTT.js.gz +0 -0
- package/dist/client/assets/{mermaid.core-CWIVZHBb.js → mermaid.core-BSzAHLGl.js} +5 -5
- package/dist/client/assets/mermaid.core-BSzAHLGl.js.br +0 -0
- package/dist/client/assets/mermaid.core-BSzAHLGl.js.gz +0 -0
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-BGo9fKR8.js → mindmap-definition-YA3MSWOX-p44N-fmd.js} +1 -1
- package/dist/client/assets/mindmap-definition-YA3MSWOX-p44N-fmd.js.br +0 -0
- package/dist/client/assets/mindmap-definition-YA3MSWOX-p44N-fmd.js.gz +0 -0
- package/dist/client/assets/{passwordBootstrap-CHyPbAR9.js → passwordBootstrap-FAUekDm3.js} +1 -1
- package/dist/client/assets/passwordBootstrap-FAUekDm3.js.br +0 -0
- package/dist/client/assets/passwordBootstrap-FAUekDm3.js.gz +0 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-0Nb1LL5B.js → pegDiagram-XKGWAZYB-D_9s0OO_.js} +1 -1
- package/dist/client/assets/pegDiagram-XKGWAZYB-D_9s0OO_.js.br +0 -0
- package/dist/client/assets/pegDiagram-XKGWAZYB-D_9s0OO_.js.gz +0 -0
- package/dist/client/assets/{pieDiagram-E7YTZNPT-84u6YN0w.js → pieDiagram-E7YTZNPT-B7EbdgJt.js} +1 -1
- package/dist/client/assets/pieDiagram-E7YTZNPT-B7EbdgJt.js.br +0 -0
- package/dist/client/assets/pieDiagram-E7YTZNPT-B7EbdgJt.js.gz +0 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-BUHd3sQq.js → quadrantDiagram-AXDQQJYC-BY028AbD.js} +1 -1
- package/dist/client/assets/quadrantDiagram-AXDQQJYC-BY028AbD.js.br +0 -0
- package/dist/client/assets/quadrantDiagram-AXDQQJYC-BY028AbD.js.gz +0 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-CENx-rxh.js → railroadDiagram-O6MQD6OU-C_SqJJH4.js} +1 -1
- package/dist/client/assets/railroadDiagram-O6MQD6OU-C_SqJJH4.js.br +0 -0
- package/dist/client/assets/railroadDiagram-O6MQD6OU-C_SqJJH4.js.gz +0 -0
- package/dist/client/assets/{referenceLongPress-D9JDfvlW.js → referenceLongPress-zPADrRaZ.js} +1 -1
- package/dist/client/assets/referenceLongPress-zPADrRaZ.js.br +0 -0
- package/dist/client/assets/referenceLongPress-zPADrRaZ.js.gz +0 -0
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-CBQ0Ny7q.js → requirementDiagram-BXWQKSXE-CROJTpxc.js} +1 -1
- package/dist/client/assets/requirementDiagram-BXWQKSXE-CROJTpxc.js.br +0 -0
- package/dist/client/assets/requirementDiagram-BXWQKSXE-CROJTpxc.js.gz +0 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-3bBhyXPE.js → sankeyDiagram-P5KCCOFB-CiWfwd5j.js} +1 -1
- package/dist/client/assets/sankeyDiagram-P5KCCOFB-CiWfwd5j.js.br +0 -0
- package/dist/client/assets/sankeyDiagram-P5KCCOFB-CiWfwd5j.js.gz +0 -0
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BK6pizap.js → sequenceDiagram-WJ2MYXX4-Bv-q4vX3.js} +1 -1
- package/dist/client/assets/sequenceDiagram-WJ2MYXX4-Bv-q4vX3.js.br +0 -0
- package/dist/client/assets/sequenceDiagram-WJ2MYXX4-Bv-q4vX3.js.gz +0 -0
- package/dist/client/assets/{sizeCapture-INFHLROL-3qlKfimL.js → sizeCapture-INFHLROL-TQt_I2TN.js} +1 -1
- package/dist/client/assets/sizeCapture-INFHLROL-TQt_I2TN.js.br +0 -0
- package/dist/client/assets/sizeCapture-INFHLROL-TQt_I2TN.js.gz +0 -0
- package/dist/client/assets/{sparkles-CT3DLxs9.js → sparkles-Cm5WG6yy.js} +1 -1
- package/dist/client/assets/{stateDiagram-D77RDMKH-DJ5Eljth.js → stateDiagram-D77RDMKH-CxWjp4b2.js} +1 -1
- package/dist/client/assets/stateDiagram-D77RDMKH-CxWjp4b2.js.br +0 -0
- package/dist/client/assets/stateDiagram-D77RDMKH-CxWjp4b2.js.gz +0 -0
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DALwTJPG.js +1 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-D2LOfXqZ.js → swimlanes-42K2YHIH-gPs5aEkb.js} +1 -1
- package/dist/client/assets/swimlanes-42K2YHIH-gPs5aEkb.js.br +0 -0
- package/dist/client/assets/swimlanes-42K2YHIH-gPs5aEkb.js.gz +0 -0
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DZL57C2F.js +8 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-CXi-wBS0.js → timeline-definition-24CTP7MA-CSCxdiQd.js} +1 -1
- package/dist/client/assets/timeline-definition-24CTP7MA-CSCxdiQd.js.br +0 -0
- package/dist/client/assets/timeline-definition-24CTP7MA-CSCxdiQd.js.gz +0 -0
- package/dist/client/assets/{triangle-alert-C6No3Q8u.js → triangle-alert-CgKcVAti.js} +1 -1
- package/dist/client/assets/{vennDiagram-4TSXK5OY-CIz0V4J6.js → vennDiagram-4TSXK5OY-BY2UkIDT.js} +1 -1
- package/dist/client/assets/vennDiagram-4TSXK5OY-BY2UkIDT.js.br +0 -0
- package/dist/client/assets/vennDiagram-4TSXK5OY-BY2UkIDT.js.gz +0 -0
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-B0UrTqd3.js → wardleyDiagram-VM6X3IG4-D8yK4oK5.js} +1 -1
- package/dist/client/assets/wardleyDiagram-VM6X3IG4-D8yK4oK5.js.br +0 -0
- package/dist/client/assets/wardleyDiagram-VM6X3IG4-D8yK4oK5.js.gz +0 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-CGda0vcy.js → xychartDiagram-S5SC5T6Z-C4MnXqQN.js} +1 -1
- package/dist/client/assets/xychartDiagram-S5SC5T6Z-C4MnXqQN.js.br +0 -0
- package/dist/client/assets/xychartDiagram-S5SC5T6Z-C4MnXqQN.js.gz +0 -0
- package/dist/client/index.html +2 -2
- package/dist/client/index.html.br +0 -0
- package/dist/client/index.html.gz +0 -0
- package/dist/client/sw.js +1 -1
- package/dist/client/sw.js.br +0 -0
- package/dist/client/sw.js.gz +0 -0
- package/dist/server/android/liveBitrate.js +102 -0
- package/dist/server/android/scrcpy.js +36 -4
- package/dist/server/cli.js +1 -1
- package/dist/server/entry.js +1 -1
- package/dist/server/federation/runtime.js +1 -1
- package/dist/server/onboardingServer.js +1 -2
- package/dist/server/routes/android.js +10 -0
- package/dist/server/routes/filesystem.js +6 -2
- package/dist/server/routes/onboarding.js +0 -99
- package/dist/server/utils/localAccess.js +1 -1
- package/package.json +1 -1
- package/runtime-manifest.json +3 -3
- package/scripts/android-bitrate/CaptureReset.java +76 -0
- package/scripts/android-bitrate/LICENSE +203 -0
- package/scripts/android-bitrate/README.md +38 -0
- package/scripts/android-bitrate/bitrate.jar +0 -0
- package/scripts/android-bitrate/build.sh +28 -0
- package/dist/client/assets/App-u-k6rrzb.js +0 -156
- package/dist/client/assets/App-u-k6rrzb.js.br +0 -0
- package/dist/client/assets/App-u-k6rrzb.js.gz +0 -0
- package/dist/client/assets/ChangeWalkthroughPanel-BfPRxDiF.js.br +0 -0
- package/dist/client/assets/ChangeWalkthroughPanel-BfPRxDiF.js.gz +0 -0
- package/dist/client/assets/DagPlayground-DIFzVISA.js.br +0 -0
- package/dist/client/assets/DagPlayground-DIFzVISA.js.gz +0 -0
- package/dist/client/assets/DiffLab-gjCZJZHD.js.br +0 -0
- package/dist/client/assets/DiffLab-gjCZJZHD.js.gz +0 -0
- package/dist/client/assets/DiffReview-_Ehf5r7B.js.br +0 -0
- package/dist/client/assets/DiffReview-_Ehf5r7B.js.gz +0 -0
- package/dist/client/assets/DiffReviewLab-D5ZZmL0c.js.br +0 -0
- package/dist/client/assets/DiffReviewLab-D5ZZmL0c.js.gz +0 -0
- package/dist/client/assets/DiffViewer-CYn0xF79.js +0 -37
- package/dist/client/assets/DiffViewer-CYn0xF79.js.br +0 -0
- package/dist/client/assets/DiffViewer-CYn0xF79.js.gz +0 -0
- package/dist/client/assets/ModelPreview-CD59YJ_a.js.br +0 -0
- package/dist/client/assets/ModelPreview-CD59YJ_a.js.gz +0 -0
- package/dist/client/assets/RightSidebar-CeHCLhLy.js.br +0 -0
- package/dist/client/assets/RightSidebar-CeHCLhLy.js.gz +0 -0
- package/dist/client/assets/abnfDiagram-VCTEODGH-DSa1Ysa8.js.br +0 -0
- package/dist/client/assets/abnfDiagram-VCTEODGH-DSa1Ysa8.js.gz +0 -0
- package/dist/client/assets/app-L3gaEB1i.js.br +0 -0
- package/dist/client/assets/app-L3gaEB1i.js.gz +0 -0
- package/dist/client/assets/arc-BheyZ1mz.js.br +0 -0
- package/dist/client/assets/arc-BheyZ1mz.js.gz +0 -0
- package/dist/client/assets/architectureDiagram-5GKGNRK7-BXlasfrQ.js.br +0 -0
- package/dist/client/assets/architectureDiagram-5GKGNRK7-BXlasfrQ.js.gz +0 -0
- package/dist/client/assets/blockDiagram-I7D4REHJ-DwCl8uZj.js.br +0 -0
- package/dist/client/assets/blockDiagram-I7D4REHJ-DwCl8uZj.js.gz +0 -0
- package/dist/client/assets/c4Diagram-7LVT6UL2-Coq6KCH6.js.br +0 -0
- package/dist/client/assets/c4Diagram-7LVT6UL2-Coq6KCH6.js.gz +0 -0
- package/dist/client/assets/channel-Cm5edA5B.js +0 -1
- package/dist/client/assets/chunk-F27PBJKO-BWhCCTPq.js.br +0 -0
- package/dist/client/assets/chunk-F27PBJKO-BWhCCTPq.js.gz +0 -0
- package/dist/client/assets/chunk-IMKFNOWR-C7TuNlR1.js.br +0 -0
- package/dist/client/assets/chunk-IMKFNOWR-C7TuNlR1.js.gz +0 -0
- package/dist/client/assets/chunk-SVP7TREG-DK9JcY1h.js.br +0 -0
- package/dist/client/assets/chunk-SVP7TREG-DK9JcY1h.js.gz +0 -0
- package/dist/client/assets/chunk-TICWLB2K-B19MlAfZ.js.br +0 -0
- package/dist/client/assets/chunk-TICWLB2K-B19MlAfZ.js.gz +0 -0
- package/dist/client/assets/classDiagram-ZZMXUADV-o0rDEd1E.js +0 -1
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-o0rDEd1E.js +0 -1
- package/dist/client/assets/cose-bilkent-JH36ORCC-DSg7_PN1.js.br +0 -0
- package/dist/client/assets/cose-bilkent-JH36ORCC-DSg7_PN1.js.gz +0 -0
- package/dist/client/assets/cynefin-OW5HDTMX-uC7egYG5.js.br +0 -0
- package/dist/client/assets/cynefinDiagram-5FMLGOSQ-C-XGZrRz.js.br +0 -0
- package/dist/client/assets/cynefinDiagram-5FMLGOSQ-C-XGZrRz.js.gz +0 -0
- package/dist/client/assets/dagre-GXQ25YYZ-B5YJUKWx.js.br +0 -0
- package/dist/client/assets/dagre-GXQ25YYZ-B5YJUKWx.js.gz +0 -0
- package/dist/client/assets/diagram-S7CK7UJ4-Bnyrx-jR.js.br +0 -0
- package/dist/client/assets/diagram-S7CK7UJ4-Bnyrx-jR.js.gz +0 -0
- package/dist/client/assets/diagram-UQ7AKVKN-CUp603fW.js.br +0 -0
- package/dist/client/assets/diagram-UQ7AKVKN-CUp603fW.js.gz +0 -0
- package/dist/client/assets/diagram-VSXAHHWV-uIXayijw.js.br +0 -0
- package/dist/client/assets/diagram-VSXAHHWV-uIXayijw.js.gz +0 -0
- package/dist/client/assets/diagram-VX7I27RA-6J1oIMOb.js.br +0 -0
- package/dist/client/assets/diagram-VX7I27RA-6J1oIMOb.js.gz +0 -0
- package/dist/client/assets/diagram-Z3DM3KII-C0WgBWqD.js.br +0 -0
- package/dist/client/assets/diagram-Z3DM3KII-C0WgBWqD.js.gz +0 -0
- package/dist/client/assets/ebnfDiagram-PWID7BFC-B5DEM-bI.js.br +0 -0
- package/dist/client/assets/ebnfDiagram-PWID7BFC-B5DEM-bI.js.gz +0 -0
- package/dist/client/assets/erDiagram-RLTQ6QDP-BzxCr-aA.js.br +0 -0
- package/dist/client/assets/erDiagram-RLTQ6QDP-BzxCr-aA.js.gz +0 -0
- package/dist/client/assets/flowDiagram-HODETNUW-DHjjUn1K.js.br +0 -0
- package/dist/client/assets/flowDiagram-HODETNUW-DHjjUn1K.js.gz +0 -0
- package/dist/client/assets/ganttDiagram-EL5Y4UJY-wH7qPWQb.js.br +0 -0
- package/dist/client/assets/ganttDiagram-EL5Y4UJY-wH7qPWQb.js.gz +0 -0
- package/dist/client/assets/gestureArbiter-D6RWPMQo.js.br +0 -0
- package/dist/client/assets/gestureArbiter-D6RWPMQo.js.gz +0 -0
- package/dist/client/assets/gitGraphDiagram-WWUBYQGX-CcY9a3m3.js.br +0 -0
- package/dist/client/assets/gitGraphDiagram-WWUBYQGX-CcY9a3m3.js.gz +0 -0
- package/dist/client/assets/index-BOv8uqyA.css.br +0 -0
- package/dist/client/assets/ishikawaDiagram-5VMMS53U-CjrSMq_a.js.br +0 -0
- package/dist/client/assets/ishikawaDiagram-5VMMS53U-CjrSMq_a.js.gz +0 -0
- package/dist/client/assets/journeyDiagram-3NMN7TZE-DrzTWkK-.js.br +0 -0
- package/dist/client/assets/journeyDiagram-3NMN7TZE-DrzTWkK-.js.gz +0 -0
- package/dist/client/assets/kanban-definition-UXKFOSKX-D9CCE6r8.js.br +0 -0
- package/dist/client/assets/kanban-definition-UXKFOSKX-D9CCE6r8.js.gz +0 -0
- package/dist/client/assets/layout-BjxwetPy.js.br +0 -0
- package/dist/client/assets/layout-BjxwetPy.js.gz +0 -0
- package/dist/client/assets/linear-C0mh26-a.js.br +0 -0
- package/dist/client/assets/linear-C0mh26-a.js.gz +0 -0
- package/dist/client/assets/mermaid.core-CWIVZHBb.js.br +0 -0
- package/dist/client/assets/mermaid.core-CWIVZHBb.js.gz +0 -0
- package/dist/client/assets/mindmap-definition-YA3MSWOX-BGo9fKR8.js.br +0 -0
- package/dist/client/assets/mindmap-definition-YA3MSWOX-BGo9fKR8.js.gz +0 -0
- package/dist/client/assets/passwordBootstrap-CHyPbAR9.js.br +0 -0
- package/dist/client/assets/passwordBootstrap-CHyPbAR9.js.gz +0 -0
- package/dist/client/assets/pegDiagram-XKGWAZYB-0Nb1LL5B.js.br +0 -0
- package/dist/client/assets/pegDiagram-XKGWAZYB-0Nb1LL5B.js.gz +0 -0
- package/dist/client/assets/pieDiagram-E7YTZNPT-84u6YN0w.js.br +0 -0
- package/dist/client/assets/pieDiagram-E7YTZNPT-84u6YN0w.js.gz +0 -0
- package/dist/client/assets/quadrantDiagram-AXDQQJYC-BUHd3sQq.js.br +0 -0
- package/dist/client/assets/quadrantDiagram-AXDQQJYC-BUHd3sQq.js.gz +0 -0
- package/dist/client/assets/railroadDiagram-O6MQD6OU-CENx-rxh.js.br +0 -0
- package/dist/client/assets/railroadDiagram-O6MQD6OU-CENx-rxh.js.gz +0 -0
- package/dist/client/assets/referenceLongPress-D9JDfvlW.js.br +0 -0
- package/dist/client/assets/referenceLongPress-D9JDfvlW.js.gz +0 -0
- package/dist/client/assets/requirementDiagram-BXWQKSXE-CBQ0Ny7q.js.br +0 -0
- package/dist/client/assets/requirementDiagram-BXWQKSXE-CBQ0Ny7q.js.gz +0 -0
- package/dist/client/assets/sankeyDiagram-P5KCCOFB-3bBhyXPE.js.br +0 -0
- package/dist/client/assets/sankeyDiagram-P5KCCOFB-3bBhyXPE.js.gz +0 -0
- package/dist/client/assets/sequenceDiagram-WJ2MYXX4-BK6pizap.js.br +0 -0
- package/dist/client/assets/sequenceDiagram-WJ2MYXX4-BK6pizap.js.gz +0 -0
- package/dist/client/assets/sizeCapture-INFHLROL-3qlKfimL.js.br +0 -0
- package/dist/client/assets/sizeCapture-INFHLROL-3qlKfimL.js.gz +0 -0
- package/dist/client/assets/stateDiagram-D77RDMKH-DJ5Eljth.js.br +0 -0
- package/dist/client/assets/stateDiagram-D77RDMKH-DJ5Eljth.js.gz +0 -0
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-IzUrIY-v.js +0 -1
- package/dist/client/assets/swimlanes-42K2YHIH-D2LOfXqZ.js.br +0 -0
- package/dist/client/assets/swimlanes-42K2YHIH-D2LOfXqZ.js.gz +0 -0
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-fxwyakfK.js +0 -8
- package/dist/client/assets/timeline-definition-24CTP7MA-CXi-wBS0.js.br +0 -0
- package/dist/client/assets/timeline-definition-24CTP7MA-CXi-wBS0.js.gz +0 -0
- package/dist/client/assets/vennDiagram-4TSXK5OY-CIz0V4J6.js.br +0 -0
- package/dist/client/assets/vennDiagram-4TSXK5OY-CIz0V4J6.js.gz +0 -0
- package/dist/client/assets/wardleyDiagram-VM6X3IG4-B0UrTqd3.js.br +0 -0
- package/dist/client/assets/wardleyDiagram-VM6X3IG4-B0UrTqd3.js.gz +0 -0
- package/dist/client/assets/xychartDiagram-S5SC5T6Z-CGda0vcy.js.br +0 -0
- package/dist/client/assets/xychartDiagram-S5SC5T6Z-CGda0vcy.js.gz +0 -0
|
@@ -24,7 +24,6 @@ export function startOnboardingServer(options) {
|
|
|
24
24
|
res.setHeader('Content-Disposition', 'attachment; filename="rootCA.pem"');
|
|
25
25
|
res.send(fs.readFileSync(options.caCertPath));
|
|
26
26
|
});
|
|
27
|
-
app.get('/', (_req, res) => res.redirect('/onboarding'));
|
|
28
27
|
const server = createServer(app);
|
|
29
28
|
server.on('error', (error) => {
|
|
30
29
|
console.warn('[onboarding] HTTP setup server failed:', error);
|
|
@@ -33,7 +32,7 @@ export function startOnboardingServer(options) {
|
|
|
33
32
|
const address = server.address();
|
|
34
33
|
const port = address?.port ?? null;
|
|
35
34
|
const host = getLanIPv4Addresses()[0] ?? 'localhost';
|
|
36
|
-
activeUrl = port ? `http://${host}:${port}/
|
|
35
|
+
activeUrl = port ? `http://${host}:${port}/ca` : null;
|
|
37
36
|
});
|
|
38
37
|
server.listen(0, '0.0.0.0');
|
|
39
38
|
activeServer = server;
|
|
@@ -185,6 +185,7 @@ export function handleAndroidWebSocket(socket, serial, _clientId, requested = {}
|
|
|
185
185
|
socket.on('error', () => { closed = true; clearInterval(flowTimer); if (statsTimer)
|
|
186
186
|
clearInterval(statsTimer); void session?.stop(); session = null; });
|
|
187
187
|
session = createScrcpySession(serial, {
|
|
188
|
+
onBitrateSupport: supported => send({ type: 'bitrate-support', supported }),
|
|
188
189
|
onHeader: header => { send({ type: 'header', ...header }); },
|
|
189
190
|
onFrame: frame => {
|
|
190
191
|
if (closed)
|
|
@@ -226,6 +227,15 @@ export function handleAndroidWebSocket(socket, serial, _clientId, requested = {}
|
|
|
226
227
|
return;
|
|
227
228
|
}
|
|
228
229
|
switch (message.type) {
|
|
230
|
+
case 'bitrate': {
|
|
231
|
+
if (typeof message.requestId !== 'number' || !Number.isSafeInteger(message.requestId)
|
|
232
|
+
|| typeof message.bitRate !== 'number' || !Number.isInteger(message.bitRate)
|
|
233
|
+
|| message.bitRate < 300_000 || message.bitRate > 30_000_000)
|
|
234
|
+
return;
|
|
235
|
+
const requestId = message.requestId, bitRate = message.bitRate;
|
|
236
|
+
void session.setBitrate(bitRate).then(applied => send({ type: 'bitrate-result', requestId, bitRate, applied }));
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
229
239
|
case 'control': {
|
|
230
240
|
if (typeof message.data !== 'string' || message.data.length > 64 * 1024)
|
|
231
241
|
return;
|
|
@@ -4806,9 +4806,13 @@ router.post('/apply-hunk', async (req, res) => {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
await runGitApply(gitRoot, mode, patch, GIT_APPLY_TIMEOUT_MS);
|
|
4808
4808
|
clearGitBundleCacheForRoot(gitRoot);
|
|
4809
|
-
|
|
4809
|
+
// git apply has committed the mutation. A slow/failed workspace scan must
|
|
4810
|
+
// neither delay acknowledgement nor report that successful mutation failed.
|
|
4811
|
+
void refreshGitBundleCacheDetached(resolvedCwd, gitRoot, includeNested, { discoverOnly }).catch((error) => {
|
|
4812
|
+
logFsIoEvent({ id: requestId, action, op: 'git.apply-hunk', event: 'bundle-refresh-error', path: requestedPath, cwd, repoRoot: gitRoot, extra: { mode, error: error instanceof Error ? error.message : String(error) } });
|
|
4813
|
+
});
|
|
4810
4814
|
logFsIo({ id: requestId, action, op: 'git.apply-hunk', startedAt, status: 'ok', path: requestedPath, cwd, repoRoot: gitRoot, extra: { mode } });
|
|
4811
|
-
res.json({ ok: true
|
|
4815
|
+
res.json({ ok: true });
|
|
4812
4816
|
}
|
|
4813
4817
|
catch (error) {
|
|
4814
4818
|
const message = error instanceof Error ? error.message : 'Git apply failed';
|
|
@@ -1,112 +1,13 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import fs from 'fs';
|
|
3
|
-
import QRCode from 'qrcode';
|
|
4
3
|
import { localAccessManager } from '../utils/localAccess.js';
|
|
5
4
|
function sendCaCertificate(res, caCertPath) {
|
|
6
5
|
res.setHeader('Content-Type', 'application/x-x509-ca-cert');
|
|
7
6
|
res.setHeader('Content-Disposition', 'attachment; filename="rootCA.pem"');
|
|
8
7
|
res.send(fs.readFileSync(caCertPath));
|
|
9
8
|
}
|
|
10
|
-
function escapeHtml(value) {
|
|
11
|
-
return value
|
|
12
|
-
.replace(/&/g, '&')
|
|
13
|
-
.replace(/</g, '<')
|
|
14
|
-
.replace(/>/g, '>')
|
|
15
|
-
.replace(/"/g, '"')
|
|
16
|
-
.replace(/'/g, ''');
|
|
17
|
-
}
|
|
18
|
-
function createQrCards(items) {
|
|
19
|
-
return items.map((item) => `
|
|
20
|
-
<div class="qr-card">
|
|
21
|
-
${item.qr ? `<div class="qr"><img src="${item.qr}" alt="QR code for ${escapeHtml(item.url)}" /></div>` : ''}
|
|
22
|
-
<div>
|
|
23
|
-
<div class="label">${escapeHtml(item.label)} · ${escapeHtml(item.address)}</div>
|
|
24
|
-
<code>${escapeHtml(item.url)}</code>
|
|
25
|
-
</div>
|
|
26
|
-
</div>`).join('');
|
|
27
|
-
}
|
|
28
|
-
function createPage(caAvailable, qrItems, targetUrl) {
|
|
29
|
-
const state = localAccessManager.getState();
|
|
30
|
-
const url = escapeHtml(targetUrl ?? state.url);
|
|
31
|
-
const fallbackUrl = escapeHtml(state.fallbackUrl);
|
|
32
|
-
const status = escapeHtml(state.status);
|
|
33
|
-
const reason = state.reason ? escapeHtml(state.reason) : '';
|
|
34
|
-
const caButton = caAvailable
|
|
35
|
-
? '<a class="button" href="/onboarding/ca.crt">Download CA certificate</a>'
|
|
36
|
-
: '<div class="warn">CA file is not configured. Start Termdock with --https-ca <path> to enable certificate download.</div>';
|
|
37
|
-
return `<!doctype html>
|
|
38
|
-
<html lang="en">
|
|
39
|
-
<head>
|
|
40
|
-
<meta charset="utf-8" />
|
|
41
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
42
|
-
<title>Termdock Local Access</title>
|
|
43
|
-
<style>
|
|
44
|
-
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #100F0F; color: #CECDC3; }
|
|
45
|
-
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; }
|
|
46
|
-
.card { border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.05); padding: 20px; }
|
|
47
|
-
h1 { font-size: 28px; margin: 0 0 8px; }
|
|
48
|
-
h2 { font-size: 18px; margin: 24px 0 8px; }
|
|
49
|
-
p, li { color: rgba(255,255,255,.78); line-height: 1.6; }
|
|
50
|
-
code { word-break: break-all; color: #4385BE; }
|
|
51
|
-
.button { display: inline-flex; margin: 12px 0; padding: 12px 16px; border-radius: 999px; background: #879A39; color: #100F0F; font-weight: 700; text-decoration: none; }
|
|
52
|
-
.warn { margin: 12px 0; padding: 12px; border-radius: 12px; background: rgba(208, 162, 21, .15); color: #D0A215; }
|
|
53
|
-
.muted { color: rgba(255,255,255,.55); font-size: 13px; }
|
|
54
|
-
.qr { display: inline-block; margin: 12px 0; padding: 10px; border-radius: 16px; background: #fff; }
|
|
55
|
-
.qr img { display: block; width: 160px; height: 160px; }
|
|
56
|
-
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
|
|
57
|
-
.qr-card { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.04); }
|
|
58
|
-
.label { margin: 4px 0 6px; font-weight: 700; color: rgba(255,255,255,.86); }
|
|
59
|
-
</style>
|
|
60
|
-
</head>
|
|
61
|
-
<body>
|
|
62
|
-
<main>
|
|
63
|
-
<div class="card">
|
|
64
|
-
<h1>Termdock Local Access</h1>
|
|
65
|
-
<p>Scan one of these QR codes to open an IP fallback address on your phone:</p>
|
|
66
|
-
<div class="qr-grid">${createQrCards(qrItems)}</div>
|
|
67
|
-
<p>Install the local CA on your phone first, then open:</p>
|
|
68
|
-
<p><code>${url}</code></p>
|
|
69
|
-
<p class="muted">If mDNS does not resolve on your Wi‑Fi, use this IP fallback after installing the CA: <code>${fallbackUrl}</code></p>
|
|
70
|
-
<p class="muted">Status: ${status}${reason ? ` · ${reason}` : ''}</p>
|
|
71
|
-
${caButton}
|
|
72
|
-
<p class="muted">Short link: <code>/ca</code> (same certificate download)</p>
|
|
73
|
-
<h2>iPhone / iPad</h2>
|
|
74
|
-
<ol>
|
|
75
|
-
<li>Tap “Download CA certificate”.</li>
|
|
76
|
-
<li>Open Settings and install the downloaded profile.</li>
|
|
77
|
-
<li>Go to Settings → General → About → Certificate Trust Settings, then fully trust the CA.</li>
|
|
78
|
-
<li>Return to <code>${url}</code>.</li>
|
|
79
|
-
</ol>
|
|
80
|
-
<h2>Android</h2>
|
|
81
|
-
<ol>
|
|
82
|
-
<li>Tap “Download CA certificate”.</li>
|
|
83
|
-
<li>Install it as a CA certificate from system security settings.</li>
|
|
84
|
-
<li>Return to <code>${url}</code>.</li>
|
|
85
|
-
</ol>
|
|
86
|
-
</div>
|
|
87
|
-
</main>
|
|
88
|
-
</body>
|
|
89
|
-
</html>`;
|
|
90
|
-
}
|
|
91
9
|
export function createOnboardingRouter(options = {}) {
|
|
92
10
|
const router = express.Router();
|
|
93
|
-
router.get('/', async (_req, res) => {
|
|
94
|
-
const caAvailable = Boolean(options.caCertPath && fs.existsSync(options.caCertPath));
|
|
95
|
-
const state = localAccessManager.getState();
|
|
96
|
-
const targetUrl = state.hostname
|
|
97
|
-
? `${state.httpsEnabled ? 'https' : 'http'}://${state.hostname}:${options.port ?? 9834}`
|
|
98
|
-
: state.url;
|
|
99
|
-
const qrItems = await Promise.all(state.interfaces.map(async (entry) => {
|
|
100
|
-
const url = `${state.httpsEnabled ? 'https' : 'http'}://${entry.address}:${options.port ?? 9834}`;
|
|
101
|
-
const qr = await QRCode.toDataURL(url, {
|
|
102
|
-
margin: 1,
|
|
103
|
-
width: 160,
|
|
104
|
-
errorCorrectionLevel: 'M',
|
|
105
|
-
}).catch(() => null);
|
|
106
|
-
return { label: `${entry.label} (${entry.name})`, address: entry.address, url, qr };
|
|
107
|
-
}));
|
|
108
|
-
res.type('html').send(createPage(caAvailable, qrItems, targetUrl));
|
|
109
|
-
});
|
|
110
11
|
router.get('/status', (_req, res) => {
|
|
111
12
|
const state = localAccessManager.getState();
|
|
112
13
|
res.json({
|
|
@@ -58,7 +58,7 @@ function buildState(setting, options, status, reason) {
|
|
|
58
58
|
fallbackHostname,
|
|
59
59
|
url: `${options.scheme}://${hostname}:${options.port}`,
|
|
60
60
|
fallbackUrl: `${options.scheme}://${fallbackHostname}:${options.port}`,
|
|
61
|
-
onboardingUrl: onboardingHost ? `http://${onboardingHost}:${options.onboardingPort ?? options.port}/
|
|
61
|
+
onboardingUrl: onboardingHost ? `http://${onboardingHost}:${options.onboardingPort ?? options.port}/ca` : null,
|
|
62
62
|
status,
|
|
63
63
|
reason,
|
|
64
64
|
httpsEnabled: options.scheme === 'https',
|
package/package.json
CHANGED
package/runtime-manifest.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "termdock",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.267",
|
|
5
5
|
"runtimeProtocolVersion": 1,
|
|
6
6
|
"minimumDesktopVersion": "1.4.46",
|
|
7
7
|
"nodeMajor": 22,
|
|
8
8
|
"dependencyHash": "sha256-K4KyYJuVoQDpZsBM8ZX1Rw3MddOxAzVdp/cPm0iGZz0=",
|
|
9
|
-
"serverBundleHash": "sha256-
|
|
10
|
-
"clientBundleHash": "sha256-
|
|
9
|
+
"serverBundleHash": "sha256-V1RFgDykQcbwFwXuguqt+02C2XDLyuTE4xkUkvj+uLc=",
|
|
10
|
+
"clientBundleHash": "sha256-4qEeyM60W0+Bm7KFYE0ixA728Ln+CzwkQ26HnhAvSiA=",
|
|
11
11
|
"entrypoint": "dist/server/cli.js",
|
|
12
12
|
"clientEntrypoint": "dist/client/index.html"
|
|
13
13
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Based on scrcpy 3.3.4 CaptureReset, Copyright Genymobile.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Termdock addition: a separate, session-scoped bitrate control socket.
|
|
4
|
+
package com.genymobile.scrcpy.video;
|
|
5
|
+
|
|
6
|
+
import android.media.MediaCodec;
|
|
7
|
+
import android.net.LocalSocket;
|
|
8
|
+
import android.net.LocalSocketAddress;
|
|
9
|
+
import android.os.Bundle;
|
|
10
|
+
import java.io.DataInputStream;
|
|
11
|
+
import java.io.DataOutputStream;
|
|
12
|
+
import java.io.IOException;
|
|
13
|
+
import java.util.concurrent.atomic.AtomicBoolean;
|
|
14
|
+
|
|
15
|
+
public class CaptureReset implements SurfaceCapture.CaptureListener {
|
|
16
|
+
private final AtomicBoolean reset = new AtomicBoolean();
|
|
17
|
+
private MediaCodec runningMediaCodec;
|
|
18
|
+
private int bitrate;
|
|
19
|
+
private boolean started;
|
|
20
|
+
|
|
21
|
+
public boolean consumeReset() { return reset.getAndSet(false); }
|
|
22
|
+
|
|
23
|
+
public synchronized void reset() {
|
|
24
|
+
reset.set(true);
|
|
25
|
+
if (runningMediaCodec != null) {
|
|
26
|
+
try { runningMediaCodec.signalEndOfInputStream(); }
|
|
27
|
+
catch (IllegalStateException ignored) { }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public synchronized void setRunningMediaCodec(MediaCodec codec) {
|
|
32
|
+
runningMediaCodec = codec;
|
|
33
|
+
// Reapply after an actual rotation/reset, without causing one ourselves.
|
|
34
|
+
if (codec != null && bitrate > 0) applyBitrate(bitrate);
|
|
35
|
+
String name = System.getProperty("termdock.bitrate");
|
|
36
|
+
if (codec != null && !started && name != null) {
|
|
37
|
+
started = true;
|
|
38
|
+
Thread thread = new Thread(() -> serve(name), "termdock-bitrate");
|
|
39
|
+
thread.setDaemon(true);
|
|
40
|
+
thread.start();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
private synchronized boolean applyBitrate(int value) {
|
|
45
|
+
if (runningMediaCodec == null || value < 300000 || value > 30000000) return false;
|
|
46
|
+
try {
|
|
47
|
+
Bundle params = new Bundle();
|
|
48
|
+
params.putInt(MediaCodec.PARAMETER_KEY_VIDEO_BITRATE, value);
|
|
49
|
+
runningMediaCodec.setParameters(params);
|
|
50
|
+
bitrate = value;
|
|
51
|
+
return true;
|
|
52
|
+
} catch (IllegalArgumentException | IllegalStateException ignored) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private void serve(String name) {
|
|
58
|
+
try (LocalSocket socket = new LocalSocket()) {
|
|
59
|
+
socket.connect(new LocalSocketAddress(name));
|
|
60
|
+
DataInputStream input = new DataInputStream(socket.getInputStream());
|
|
61
|
+
DataOutputStream output = new DataOutputStream(socket.getOutputStream());
|
|
62
|
+
output.writeInt(0x54444231); // TDB1: extension ready, codec is running
|
|
63
|
+
output.flush();
|
|
64
|
+
while (true) {
|
|
65
|
+
int requested = input.readInt();
|
|
66
|
+
output.writeInt(applyBitrate(requested) ? requested : 0);
|
|
67
|
+
output.flush();
|
|
68
|
+
}
|
|
69
|
+
} catch (IOException ignored) {
|
|
70
|
+
// A bitrate-channel failure must never tear down video/control.
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@Override
|
|
75
|
+
public void onInvalidated() { reset(); }
|
|
76
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright (C) 2018 Genymobile
|
|
191
|
+
Copyright (C) 2018-2026 Romain Vimont
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# scrcpy live bitrate extension
|
|
2
|
+
|
|
3
|
+
Termdock loads this 3 KB Android DEX overlay before the installed scrcpy server
|
|
4
|
+
for preview sessions only. Recording uses the unmodified scrcpy executable/server.
|
|
5
|
+
|
|
6
|
+
CaptureReset.java preserves scrcpy 3.3.4's existing ABI and reset behavior,
|
|
7
|
+
adding a session-scoped ADB reverse socket. The running hardware encoder receives
|
|
8
|
+
MediaCodec.PARAMETER_KEY_VIDEO_BITRATE via setParameters, under the same lock
|
|
9
|
+
used to clear the codec before stop/reset. There is no transcoding, frame polling,
|
|
10
|
+
forced keyframe, video reset, resolution change or new video connection.
|
|
11
|
+
|
|
12
|
+
Wire format is big-endian uint32: device sends TDB1 once ready, host sends target
|
|
13
|
+
bps, device replies with that value after setParameters returns, or zero on
|
|
14
|
+
rejection. An ACK confirms API acceptance, not exact vendor output bandwidth.
|
|
15
|
+
One request may be outstanding. Timeout retires only this optional channel;
|
|
16
|
+
video and input keep running.
|
|
17
|
+
|
|
18
|
+
Enabled only for the tested scrcpy 3.3.4 server SHA-256:
|
|
19
|
+
8588238c9a5a00aa542906b6ec7e6d5541d9ffb9b5d0f6e1bc0e365e2303079e
|
|
20
|
+
Both server and overlay hashes are checked in src/server/android/liveBitrate.ts.
|
|
21
|
+
Unrecognized builds (including 4.x), missing assets, rejected updates and channel
|
|
22
|
+
failures retain existing preview quality, without automatic reconnect fallback.
|
|
23
|
+
Extend the allowlist only after verifying the CaptureReset ABI and real-device
|
|
24
|
+
behavior. No global scrcpy installation is modified.
|
|
25
|
+
|
|
26
|
+
Rebuild with JDK, Android platform 33 and build tools 33.0.2:
|
|
27
|
+
|
|
28
|
+
ANDROID_HOME=/path/to/sdk bash scripts/android-bitrate/build.sh
|
|
29
|
+
|
|
30
|
+
Update the overlay SHA-256 in liveBitrate.ts after rebuilding. SurfaceCapture is
|
|
31
|
+
a compile-only ABI stub, deliberately excluded from the DEX. The jar is a runtime
|
|
32
|
+
asset distributed through package.json's scripts inclusion, also copied by the
|
|
33
|
+
desktop runtime packager. Apache-2.0 license is included.
|
|
34
|
+
|
|
35
|
+
Validation: Mi MIX 2S / Android 13 accepted 1.8 → 6 → 0.9 → 4 Mbps within
|
|
36
|
+
one session, continuously producing frames, with one video header and one codec
|
|
37
|
+
configuration packet. Other vendor encoders and macOS/iOS clients require real
|
|
38
|
+
device verification.
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
# Rebuild only this ABI-compatible overlay, never the user's installed scrcpy.
|
|
4
|
+
# SDK 33 and Java 8 bytecode are sufficient; the interface stub is compile-only.
|
|
5
|
+
root="$(cd "$(dirname "$0")" && pwd)"
|
|
6
|
+
sdk="${ANDROID_HOME:?Set ANDROID_HOME to an Android SDK}"
|
|
7
|
+
build_tools="${ANDROID_BUILD_TOOLS:-33.0.2}"
|
|
8
|
+
work="$(mktemp -d)"
|
|
9
|
+
trap 'rm -r "$work"' EXIT
|
|
10
|
+
mkdir -p "$work/classes"
|
|
11
|
+
cat > "$work/SurfaceCapture.java" <<'JAVA'
|
|
12
|
+
package com.genymobile.scrcpy.video;
|
|
13
|
+
public abstract class SurfaceCapture {
|
|
14
|
+
public interface CaptureListener { void onInvalidated(); }
|
|
15
|
+
}
|
|
16
|
+
JAVA
|
|
17
|
+
javac -source 8 -target 8 -bootclasspath "$sdk/platforms/android-33/android.jar" \
|
|
18
|
+
-cp "$sdk/build-tools/$build_tools/core-lambda-stubs.jar" -d "$work/classes" "$work/SurfaceCapture.java" "$root/CaptureReset.java"
|
|
19
|
+
"$sdk/build-tools/$build_tools/d8" --min-api 21 --lib "$sdk/platforms/android-33/android.jar" \
|
|
20
|
+
--output "$work" "$work/classes/com/genymobile/scrcpy/video/CaptureReset.class"
|
|
21
|
+
# Deterministic jar (zip timestamps are fixed).
|
|
22
|
+
python3 - "$work/classes.dex" "$root/bitrate.jar" <<'PY'
|
|
23
|
+
import sys, zipfile
|
|
24
|
+
with zipfile.ZipFile(sys.argv[2], 'w', compression=zipfile.ZIP_DEFLATED) as archive:
|
|
25
|
+
info = zipfile.ZipInfo('classes.dex', (1980, 1, 1, 0, 0, 0))
|
|
26
|
+
info.compress_type = zipfile.ZIP_DEFLATED
|
|
27
|
+
archive.writestr(info, open(sys.argv[1], 'rb').read())
|
|
28
|
+
PY
|