hyperframes 0.8.207 → 0.8.209
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/dist/{add-LXFWHBE3.js → add-VZKUIZEH.js} +17 -15
- package/dist/{agentPromptGenerator-D2E62ZP5.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-VBPJZKFT.js → animatedGifPrep-PN4G4YPJ.js} +10 -7
- package/dist/api.js +24 -20
- package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
- package/dist/{asset-JX4RW3GO.js → asset-I4PHGE57.js} +2 -2
- package/dist/{assetCataloger-JKKOPBCF.js → assetCataloger-LRAUXQ46.js} +12 -8
- package/dist/{audio-OXQ3L6DW.js → audio-T7SAVYED.js} +424 -133
- package/dist/{auth-JAL7P7ZA.js → auth-GP6HTQT3.js} +4 -4
- package/dist/{autoUpdate-MRI2AICE.js → autoUpdate-Z6GFPZAG.js} +4 -4
- package/dist/{backgroundChecks-ORR46PBY.js → backgroundChecks-ZJ7JV52S.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-IFZYPGIW.js → batchRender-J3ETE23Y.js} +5 -4
- package/dist/{beats-UDLOEW6U.js → beats-WF4FJCM5.js} +25 -15
- package/dist/{benchmark-VTVDNKSO.js → benchmark-B7UPP4PQ.js} +10 -10
- package/dist/{browser-QJC4BL2Y.js → browser-SIUYD43U.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-Z2JTBNDS.js → bundleWithLocalizedFonts-RRGFY3XV.js} +3 -3
- package/dist/{capture-2P4JERSX.js → capture-J3GLHUKI.js} +52 -17
- package/dist/{capture-GLM2ACPM.js → capture-VYS4PCCJ.js} +66 -39
- package/dist/{captureCompositionFrame-A2A5MGQB.js → captureCompositionFrame-SVLMPQYC.js} +16 -14
- package/dist/{captureFile-RPUEOZO6.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-5ZLVUQVJ.js → catalog-DVBNR422.js} +17 -15
- package/dist/{catch-up-FRMVYJHZ.js → catch-up-OBPMV7KG.js} +9 -8
- package/dist/{check-WVY7SM7C.js → check-MEALXNZK.js} +47 -44
- package/dist/{checkAudio-PLEQY3SZ.js → checkAudio-RZ7WQYVN.js} +23 -13
- package/dist/{checkBrowser-XSZUA2DQ.js → checkBrowser-2LEQ2LSX.js} +39 -36
- package/dist/{chunk-526VSRZ4.js → chunk-3A4SB326.js} +6 -6
- package/dist/{chunk-GXUONASF.js → chunk-3PTZ2TD4.js} +25 -2
- package/dist/{chunk-JQ32262N.js → chunk-3PUXUIWB.js} +1 -1
- package/dist/chunk-3RATCY3W.js +205 -0
- package/dist/{chunk-MAUGXKSI.js → chunk-4BXEPVSA.js} +113 -20
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-VBPNCOD7.js → chunk-5T4DP25D.js} +5 -3
- package/dist/{chunk-IBZHSU2J.js → chunk-66PNSZ7K.js} +1 -1
- package/dist/{chunk-WL263XM2.js → chunk-6PWQH77E.js} +1 -1
- package/dist/chunk-7VZEOCUY.js +98 -0
- package/dist/{chunk-VAVDAOUA.js → chunk-A7GDBL6D.js} +1 -1
- package/dist/{chunk-UAT2UMTP.js → chunk-AQTODJWP.js} +1 -1
- package/dist/{chunk-5KBMYSF2.js → chunk-BYPDKF36.js} +7 -2
- package/dist/{chunk-EG3B2VWK.js → chunk-CA3PXWN4.js} +16 -21
- package/dist/{chunk-FEO7YW7V.js → chunk-CBM4ZUVN.js} +6 -6
- package/dist/{chunk-6KCFVLO6.js → chunk-CIDCNE2D.js} +21 -5
- package/dist/{chunk-C53ZNJDZ.js → chunk-D2CE2J2A.js} +1 -1
- package/dist/chunk-D3MUHMFG.js +16 -0
- package/dist/{chunk-5PYRU5DT.js → chunk-D6T5BNSK.js} +18 -17
- package/dist/{chunk-PUIG6DHT.js → chunk-DR47DSOY.js} +7 -7
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-YJK6HOL5.js → chunk-DVIX7UPH.js} +2 -2
- package/dist/{chunk-QTWXVOZI.js → chunk-EA5FUMJN.js} +2 -2
- package/dist/{chunk-NWGXTUYS.js → chunk-EQBDKYXR.js} +3 -30
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-IW5P4KK7.js → chunk-EVYDKSML.js} +3 -3
- package/dist/{chunk-FVAI7AHF.js → chunk-F4O4G4ZW.js} +5 -5
- package/dist/{chunk-6KOHY5EP.js → chunk-FB5BXGGF.js} +17 -11
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-DJQZ7DEH.js → chunk-GQZHLF5P.js} +15 -15
- package/dist/{chunk-ZYGIDXAK.js → chunk-H7B526GH.js} +114 -65
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-I2TDHVFV.js → chunk-I3ICHLHV.js} +2 -2
- package/dist/{chunk-CVZO6TFE.js → chunk-IJPFVMIE.js} +11 -11
- package/dist/{chunk-LK6KPVX2.js → chunk-IQNS7O4W.js} +403 -290
- package/dist/{chunk-XDMZY3H7.js → chunk-J7A73K2B.js} +43 -35
- package/dist/{chunk-RPZNQV6D.js → chunk-JC6BAQOG.js} +4 -10
- package/dist/{chunk-HA3V4XAF.js → chunk-JJRMN2RV.js} +63 -200
- package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
- package/dist/{chunk-QE4WRS3N.js → chunk-KGBFHYHX.js} +4 -4
- package/dist/{chunk-HM7SUIQD.js → chunk-KTWGVEN6.js} +3 -3
- package/dist/{chunk-7PJ3AJB2.js → chunk-L5XVBFUM.js} +1 -1
- package/dist/{chunk-NSC5A4IR.js → chunk-L7MGVFR4.js} +7 -2
- package/dist/{chunk-I3TYUQLB.js → chunk-LJ7H2A2C.js} +1 -1
- package/dist/{chunk-VH4PNYOS.js → chunk-LV4NWCJS.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-7RWUY3BJ.js → chunk-MI4V4HPE.js} +1 -1
- package/dist/{chunk-SXOD5J7T.js → chunk-MKALOCDV.js} +1 -1
- package/dist/{chunk-UKM3JYNB.js → chunk-MVNTJGDX.js} +3 -3
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-H3LQ5X6Q.js → chunk-NJZRXELC.js} +68 -34
- package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
- package/dist/{chunk-LCCYYTEK.js → chunk-NXNDHV26.js} +1 -1
- package/dist/{chunk-JKE24AG7.js → chunk-OK3QLJSF.js} +1 -1
- package/dist/{chunk-63DP5CB2.js → chunk-OML6HQQN.js} +4 -4
- package/dist/{chunk-UUOIH4RW.js → chunk-P2FSCR5B.js} +2 -2
- package/dist/{chunk-ZCJ5EGLU.js → chunk-P327BIJR.js} +66 -1
- package/dist/{chunk-HVOTYAS4.js → chunk-P3OKYRGA.js} +3 -3
- package/dist/{chunk-U32PA6DI.js → chunk-PYVYF64E.js} +1 -1
- package/dist/{chunk-EHFZEKQM.js → chunk-Q43YUROE.js} +1 -1
- package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
- package/dist/{chunk-NHL5CMO2.js → chunk-QIKZ2HZJ.js} +3 -3
- package/dist/{chunk-IK4JY2LI.js → chunk-R52YM6ZK.js} +2 -2
- package/dist/{chunk-DML6BD4K.js → chunk-RAONLDN5.js} +2 -2
- package/dist/{chunk-MSHL6CF2.js → chunk-RJO4X3AA.js} +1 -1
- package/dist/{chunk-6IYIS2U7.js → chunk-RVG2JNDU.js} +2 -2
- package/dist/{chunk-UYPWH7PH.js → chunk-SE6S4SGZ.js} +13 -15
- package/dist/{chunk-NJNC2DQV.js → chunk-SNLXWCET.js} +105 -46
- package/dist/{chunk-TSTONNOD.js → chunk-SOXQXX2M.js} +2 -2
- package/dist/{chunk-EGRIVMCQ.js → chunk-SPMKVI6H.js} +2 -2
- package/dist/{chunk-PL36HK3U.js → chunk-SWHCYFEF.js} +27 -5
- package/dist/{chunk-ID766OZB.js → chunk-TF7YE7J5.js} +3 -3
- package/dist/{chunk-XAGBSYIQ.js → chunk-TSM67ADU.js} +1 -1
- package/dist/{chunk-KDHHPJOG.js → chunk-U5IZUWBW.js} +4 -4
- package/dist/{chunk-T4JGFCXU.js → chunk-V4VXWOIF.js} +4 -4
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-LXP6XWJL.js → chunk-W32DVMX3.js} +2 -2
- package/dist/{chunk-LPI7HX4G.js → chunk-WLVHSGVL.js} +2 -2
- package/dist/chunk-XCIHCPJK.js +106 -0
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-XKW4Z7BU.js → chunk-Y2EVJBR6.js} +1 -1
- package/dist/{chunk-QZ2JQ6O4.js → chunk-YCGLT5B4.js} +3 -3
- package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
- package/dist/{chunk-ZF3R2IPC.js → chunk-YRO3PXWU.js} +2 -85
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-XULJBZ7K.js → chunk-Z67J3TTU.js} +5 -3
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{chunk-6Z7XDUUJ.js → chunk-ZMIRSWN6.js} +1 -1
- package/dist/{chunk-IYZT62UR.js → chunk-ZPILPVYU.js} +2 -2
- package/dist/chunk-ZXTSUXSL.js +4870 -0
- package/dist/{clean-TL3IPJDN.js → clean-VWCYLOVI.js} +26 -22
- package/dist/cli.js +58 -58
- package/dist/{cloud-EYMRPJNY.js → cloud-HU3RXCVE.js} +4 -4
- package/dist/{cloudrun-TOJ36NLX.js → cloudrun-OST6QBYD.js} +6 -5
- package/dist/commands/layout-audit.browser.js +1 -0
- package/dist/{compare-MP5EOW4D.js → compare-U2MJWZAH.js} +38 -35
- package/dist/{compiler-NOPVLJ2S.js → compiler-DSP4MVEC.js} +5 -3
- package/dist/{component-ASACDCZK.js → component-EC5XU6KR.js} +3 -3
- package/dist/{compositions-WKNZJY34.js → compositions-AKYCTF4G.js} +16 -13
- package/dist/{contactSheet-YOBPATEM.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-DQTFHP3G.js → delete-Z5MOEZM2.js} +10 -9
- package/dist/{deploy-HHCFOUFM.js → deploy-Y4LFVYXT.js} +6 -6
- package/dist/{dist-L4Z4ZEYW.js → dist-73YTUT3W.js} +1 -1
- package/dist/{dist-NQEYA4ZX.js → dist-JJL4QUDL.js} +2 -2
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-JDM65CP7.js → doctor-7234U557.js} +18 -15
- package/dist/{events-RKRHRLJD.js → events-RUIZNTG3.js} +4 -4
- package/dist/{events-MBRNA3UF.js → events-SII53QYO.js} +5 -5
- package/dist/{feedback-LZWIWV5J.js → feedback-6CCDDQ36.js} +12 -12
- package/dist/{ffmpeg-4PZKSIGE.js → ffmpeg-C4VWK4M2.js} +12 -9
- package/dist/{figma-QFNYUT3F.js → figma-GAN63U5U.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -10
- package/dist/{get-2B5ENJOH.js → get-RZGUHZB4.js} +10 -9
- package/dist/{gpuPolicy-E5FB2GFR.js → gpuPolicy-BGJRCLP4.js} +10 -7
- package/dist/{grade-compare-4GUAPJHE.js → grade-compare-XOBN52WV.js} +38 -35
- package/dist/{heifImagePrep-C2RYIEER.js → heifImagePrep-DCHSYGW7.js} +11 -8
- package/dist/{help-XGDAXV67.js → help-O2IV6PUC.js} +1 -1
- package/dist/{history-WNFF6HGU.js → history-GPTEM4UX.js} +11 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-BR2LKGJD.js → info-7Y3JPN7C.js} +9 -9
- package/dist/{init-P6UWPUY3.js → init-L6W5WG5K.js} +40 -34
- package/dist/{inspect-MSRPF7ZO.js → inspect-MQZANGQY.js} +37 -34
- package/dist/{installer-MPUQS3ZX.js → installer-DCIMLYB6.js} +4 -4
- package/dist/{keyframes-J6K66QTO.js → keyframes-WNJIKL4G.js} +8 -8
- package/dist/{lambda-LJ2OSWFJ.js → lambda-FEA4SSFK.js} +16 -13
- package/dist/{layout-CDY65XGA.js → layout-AUQAYDJU.js} +37 -34
- package/dist/{lint-CAUNBGPX.js → lint-A33IHYID.js} +9 -9
- package/dist/{lintProject-ZTSX3AWT.js → lintProject-KCN7MRBN.js} +1 -1
- package/dist/{list-33BYQNRZ.js → list-56JHCET6.js} +10 -9
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-5QMRKOHK.js → login-HUOM4GNP.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-3JOHHPVR.js → manager-SDRJOMPR.js} +13 -10
- package/dist/{manager-RMYSZ3KI.js → manager-Z7W4GQGF.js} +4 -4
- package/dist/{media-treatment-4WP22CFN.js → media-treatment-5TGZOD67.js} +27 -22
- package/dist/{models-HPWCHAZX.js → models-ABDX6TXI.js} +17 -14
- package/dist/{motionShot-I7GDIROQ.js → motionShot-AV2WRH2C.js} +20 -18
- package/dist/{normalize-audio-VTMXPSC7.js → normalize-audio-M7T25DST.js} +12 -9
- package/dist/{open-SAO7OQTT.js → open-IRNZY5XN.js} +17 -16
- package/dist/{parakeetRunner-ZYPBIA73.js → parakeetRunner-2EJUIMOJ.js} +21 -17
- package/dist/{pipeline-VNBMR6QU.js → pipeline-QGKOJKXS.js} +13 -10
- package/dist/{play-7VI6A7KN.js → play-2SQLHM5B.js} +26 -23
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-VWV7L45J.js → preflight-ZHXMG2SM.js} +14 -11
- package/dist/{present-CSJGYOFF.js → present-RERVL6R7.js} +21 -18
- package/dist/{preview-B246ZTVO.js → preview-S6RQOMHE.js} +28 -25
- package/dist/{producer-WJLFDVQJ.js → producer-DBRGH2FI.js} +1 -1
- package/dist/{projectConfig-OMR46ZWQ.js → projectConfig-TUMDULTL.js} +9 -8
- package/dist/{publication-AA7NNYET.js → publication-7VGXIFVZ.js} +2 -2
- package/dist/{publish-TJ4QVVSP.js → publish-KJB2AGHL.js} +18 -15
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-LQ2V7W7N.js → remove-background-EFWXPLS4.js} +14 -11
- package/dist/{render-AWEEPG3F.js → render-5O5ARP6C.js} +65 -62
- package/dist/{render-JLTNZ36U.js → render-7S6UBLOE.js} +50 -48
- package/dist/{render-E5QJG74D.js → render-HV6AA22W.js} +6 -5
- package/dist/{render-batch-U4T4VSCM.js → render-batch-7UEOULJJ.js} +7 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-GXCTUKPV.js → resolver-HFTEER5V.js} +4 -4
- package/dist/{screenshotCapture-X6OKIXCB.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-4VZWVHWZ.js → sherpa-HSSM76FL.js} +20 -16
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-WUKR7SUE.js → skills-RQO5K6WL.js} +7 -7
- package/dist/{skillsUpdateCheck-YXRBY3JC.js → skillsUpdateCheck-S5WL2YLZ.js} +5 -5
- package/dist/{snapshot-Q7S2FTNG.js → snapshot-4RGI235E.js} +119 -66
- package/dist/{src-ZOXUSGAP.js → src-ALOV4D57.js} +26 -10
- package/dist/{src-CLAALR5W.js → src-D75YYW2M.js} +12 -9
- package/dist/{staticProjectServer-DQ7PIDPA.js → staticProjectServer-DIHWPJ6B.js} +21 -18
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/{hyperframes-player-Cm5aBiKq.js → hyperframes-player-CMH8OeX2.js} +3 -3
- package/dist/studio/assets/{index-BF9YeBnC.js → index-DQam8zzE.js} +71 -71
- package/dist/studio/assets/{index-BrqAmMRt.js → index-DjHzuJGR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-NUE227JM.js → studio-api-A2VSWTVF.js} +13 -10
- package/dist/{studioServer-HVOKP4VI.js → studioServer-PECYWZHS.js} +60 -57
- package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-2Y5JXLDB.js → telemetry-YDGXGOLH.js} +5 -5
- package/dist/{timeline-WOQGXFRV.js → timeline-5WUEEKZ3.js} +27 -23
- package/dist/{tokens-T3OHTWUC.js → tokens-XVFZPIUZ.js} +2 -2
- package/dist/{transcribe-JZ3BO546.js → transcribe-QWDUIJWK.js} +26 -22
- package/dist/{transcribe-4U74P5TG.js → transcribe-TTJ6CDQT.js} +17 -13
- package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
- package/dist/{updateCheck-6EUAGAM4.js → updateCheck-P7STSJ6Q.js} +4 -4
- package/dist/{upgrade-55K6F4MP.js → upgrade-NEIZ3KVL.js} +4 -4
- package/dist/{urlDownloader-47JMOLNN.js → urlDownloader-ZZFNGZNG.js} +9 -6
- package/dist/{validate-QBJ3SBS4.js → validate-T2SLBOXG.js} +30 -27
- package/dist/{video-3ZAUNAR3.js → video-7OHSBSRT.js} +12 -8
- package/dist/warmCheck.js +47 -44
- package/package.json +1 -1
- package/dist/chunk-BDJIQZN2.js +0 -4830
- package/dist/chunk-DKPNNYBZ.js +0 -44
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -17,48 +17,48 @@ import {
|
|
|
17
17
|
preResolveHostileMediaProxies,
|
|
18
18
|
runBrowserCheck,
|
|
19
19
|
samplingBrowserCount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D6T5BNSK.js";
|
|
21
21
|
import "./chunk-X7MTZ4T2.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-IJPFVMIE.js";
|
|
23
23
|
import "./chunk-TQBQYO4L.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-GQZHLF5P.js";
|
|
25
|
+
import "./chunk-TSM67ADU.js";
|
|
26
|
+
import "./chunk-3A4SB326.js";
|
|
27
|
+
import "./chunk-QIKZ2HZJ.js";
|
|
28
28
|
import "./chunk-X7MTZ4T2.js";
|
|
29
29
|
import "./chunk-XUHOIDKG.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-SNLXWCET.js";
|
|
31
|
+
import "./chunk-TF7YE7J5.js";
|
|
32
32
|
import "./chunk-VQB7G5BM.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-CIDCNE2D.js";
|
|
34
|
+
import "./chunk-J7A73K2B.js";
|
|
35
|
+
import "./chunk-JJRMN2RV.js";
|
|
36
|
+
import "./chunk-3RATCY3W.js";
|
|
36
37
|
import "./chunk-ALVXFXUG.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-SE6S4SGZ.js";
|
|
39
|
+
import "./chunk-4BXEPVSA.js";
|
|
39
40
|
import "./chunk-MOEGCMKI.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-7PJ3AJB2.js";
|
|
41
|
+
import "./chunk-MVNTJGDX.js";
|
|
42
|
+
import "./chunk-L5XVBFUM.js";
|
|
43
43
|
import "./chunk-K2FLNJVB.js";
|
|
44
44
|
import "./chunk-EHSBBBR2.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-66PNSZ7K.js";
|
|
46
|
+
import "./chunk-WLVHSGVL.js";
|
|
47
|
+
import "./chunk-W32DVMX3.js";
|
|
48
48
|
import "./chunk-XT7X6QCP.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-KCLBO65Y.js";
|
|
50
50
|
import "./chunk-HVW7ABXD.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-A7GDBL6D.js";
|
|
52
52
|
import "./chunk-JHOCK3DG.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-P2FSCR5B.js";
|
|
54
|
+
import "./chunk-Y2EVJBR6.js";
|
|
55
55
|
import "./chunk-AWDFDFI3.js";
|
|
56
56
|
import "./chunk-P6LJ4Y32.js";
|
|
57
57
|
import "./chunk-GMECXFAN.js";
|
|
58
58
|
import "./chunk-W4DMQZL5.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-NQ2INEHX.js";
|
|
60
|
+
import "./chunk-L7MGVFR4.js";
|
|
61
|
+
import "./chunk-EA5FUMJN.js";
|
|
62
62
|
import "./chunk-VWG7OQKU.js";
|
|
63
63
|
import "./chunk-S3S4TGEH.js";
|
|
64
64
|
import "./chunk-54HJ63Q2.js";
|
|
@@ -67,11 +67,14 @@ import "./chunk-ZTZA4UWZ.js";
|
|
|
67
67
|
import "./chunk-5YHQBCWH.js";
|
|
68
68
|
import "./chunk-EVMY7IPL.js";
|
|
69
69
|
import "./chunk-7FMUTGOH.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-IQNS7O4W.js";
|
|
71
|
+
import "./chunk-Z5J67X44.js";
|
|
71
72
|
import "./chunk-5S7W3TUO.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-D3MUHMFG.js";
|
|
74
|
+
import "./chunk-JC6BAQOG.js";
|
|
75
|
+
import "./chunk-XCIHCPJK.js";
|
|
76
|
+
import "./chunk-MI4V4HPE.js";
|
|
77
|
+
import "./chunk-ZXTSUXSL.js";
|
|
75
78
|
import "./chunk-VC76R6W2.js";
|
|
76
79
|
import "./chunk-OFQWTKPW.js";
|
|
77
80
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -82,8 +85,8 @@ import "./chunk-KGPLIH7B.js";
|
|
|
82
85
|
import "./chunk-QSFWGZG6.js";
|
|
83
86
|
import "./chunk-XT6MXC7A.js";
|
|
84
87
|
import "./chunk-K4MJX7SR.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-ERUQ3S6D.js";
|
|
89
|
+
import "./chunk-P327BIJR.js";
|
|
87
90
|
import "./chunk-CZGHFATT.js";
|
|
88
91
|
import "./chunk-VAS6HQX3.js";
|
|
89
92
|
import "./chunk-PBNWRWKA.js";
|
|
@@ -96,13 +99,13 @@ import "./chunk-2RY2LWAA.js";
|
|
|
96
99
|
import "./chunk-3422KMTD.js";
|
|
97
100
|
import "./chunk-WC4MTXGN.js";
|
|
98
101
|
import "./chunk-UIOZIIB7.js";
|
|
99
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-SPMKVI6H.js";
|
|
100
103
|
import "./chunk-K4WIOZFP.js";
|
|
101
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-NEASABW6.js";
|
|
102
105
|
import "./chunk-WERLJGIC.js";
|
|
103
106
|
import "./chunk-ISN5GRYI.js";
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
107
|
+
import "./chunk-RAONLDN5.js";
|
|
108
|
+
import "./chunk-EU7MVORF.js";
|
|
106
109
|
import "./chunk-M2WBOQ2Q.js";
|
|
107
110
|
export {
|
|
108
111
|
captureFindingCrops,
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SNLXWCET.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JJRMN2RV.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-66PNSZ7K.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-W32DVMX3.js";
|
|
28
28
|
import {
|
|
29
29
|
stripSdrPngColourTags
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JC6BAQOG.js";
|
|
31
31
|
import {
|
|
32
32
|
PREVIEW_PROXY_BOX_PARAM,
|
|
33
33
|
parsePreviewProxyBox
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MI4V4HPE.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
37
|
} from "./chunk-SE2MXV2N.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createFileAtomically
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQ2INEHX.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/pngDimensions.ts
|
|
12
12
|
import { readFileSync } from "fs";
|
|
@@ -178,9 +178,32 @@ async function withProjectLock(projectDir, command, run, context = readToolConte
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
// src/utils/timeoutArg.ts
|
|
182
|
+
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
|
|
183
|
+
function parseTimeoutMs(raw, fallback, floorMs = 0, warn = console.error) {
|
|
184
|
+
if (raw === void 0 || raw === null || raw === "") return fallback;
|
|
185
|
+
const text = String(raw).trim();
|
|
186
|
+
const match = /^(\d+(?:\.\d+)?)\s*(ms|s|m)?$/i.exec(text);
|
|
187
|
+
if (!match) {
|
|
188
|
+
warn(`[hyperframes] --timeout "${text}" is not a duration; using ${fallback} ms.`);
|
|
189
|
+
return fallback;
|
|
190
|
+
}
|
|
191
|
+
const unit = match[2]?.toLowerCase();
|
|
192
|
+
const ms = Math.round(Number(match[1]) * UNIT_MS[unit ?? "ms"]);
|
|
193
|
+
if (ms <= 0) return fallback;
|
|
194
|
+
const used = Math.max(ms, floorMs);
|
|
195
|
+
if (!unit && ms < 1e3) {
|
|
196
|
+
warn(
|
|
197
|
+
`[hyperframes] --timeout ${text} is ${ms} ms, so ${used} ms is used. Write ${text}s for seconds.`
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
return used;
|
|
201
|
+
}
|
|
202
|
+
|
|
181
203
|
export {
|
|
182
204
|
pngDimensions,
|
|
183
205
|
readToolContext,
|
|
184
206
|
reportArtifacts,
|
|
185
|
-
withProjectLock
|
|
207
|
+
withProjectLock,
|
|
208
|
+
parseTimeoutMs
|
|
186
209
|
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
videoStreamHasAlpha
|
|
9
|
+
} from "./chunk-5S7W3TUO.js";
|
|
10
|
+
import {
|
|
11
|
+
decodableAudioStream
|
|
12
|
+
} from "./chunk-D3MUHMFG.js";
|
|
13
|
+
import {
|
|
14
|
+
firstFrameColourArgs,
|
|
15
|
+
parseFirstFrameColour
|
|
16
|
+
} from "./chunk-MI4V4HPE.js";
|
|
17
|
+
import {
|
|
18
|
+
findFfBinary
|
|
19
|
+
} from "./chunk-VAS6HQX3.js";
|
|
20
|
+
|
|
21
|
+
// ../studio-server/dist/chunk-X73QTST2.js
|
|
22
|
+
import { execFile } from "child_process";
|
|
23
|
+
import { extname } from "path";
|
|
24
|
+
var execFileRunner = (command, args, options) => new Promise((resolvePromise) => {
|
|
25
|
+
execFile(
|
|
26
|
+
command,
|
|
27
|
+
args,
|
|
28
|
+
{ timeout: options?.timeout, maxBuffer: options?.maxBuffer, windowsHide: true },
|
|
29
|
+
(error, stdout, stderr) => {
|
|
30
|
+
if (error && error.code === "ENOENT") {
|
|
31
|
+
resolvePromise({ status: null, stdout: "", stderr: "", error });
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (error) {
|
|
35
|
+
const status = typeof error.code === "number" ? error.code : 1;
|
|
36
|
+
resolvePromise({ status, stdout: stdout ?? "", stderr: stderr ?? "" });
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
resolvePromise({ status: 0, stdout: stdout ?? "", stderr: stderr ?? "" });
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
var VIDEO_EXT = /* @__PURE__ */ new Set([
|
|
44
|
+
".mp4",
|
|
45
|
+
".mov",
|
|
46
|
+
".webm",
|
|
47
|
+
".mkv",
|
|
48
|
+
".avi",
|
|
49
|
+
".m4v",
|
|
50
|
+
".mxf",
|
|
51
|
+
".mts",
|
|
52
|
+
".m2ts",
|
|
53
|
+
".ts"
|
|
54
|
+
]);
|
|
55
|
+
var IMAGE_EXT = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".avif"]);
|
|
56
|
+
var AUDIO_EXT = /* @__PURE__ */ new Set([".mp3", ".wav", ".ogg", ".m4a", ".aac", ".flac"]);
|
|
57
|
+
function lower(value) {
|
|
58
|
+
return value?.toLowerCase() ?? "";
|
|
59
|
+
}
|
|
60
|
+
function inferKindFromPath(path) {
|
|
61
|
+
const ext = extname(path).toLowerCase();
|
|
62
|
+
if (VIDEO_EXT.has(ext)) return "video";
|
|
63
|
+
if (IMAGE_EXT.has(ext)) return "image";
|
|
64
|
+
if (AUDIO_EXT.has(ext)) return "audio";
|
|
65
|
+
return "unknown";
|
|
66
|
+
}
|
|
67
|
+
function colorLabel(input) {
|
|
68
|
+
if (input.isHdr) {
|
|
69
|
+
if (input.hdrTransfer === "pq") return "HDR PQ";
|
|
70
|
+
if (input.hdrTransfer === "hlg") return "HDR HLG";
|
|
71
|
+
return "HDR";
|
|
72
|
+
}
|
|
73
|
+
if (input.colorPrimaries.includes("bt709") || input.colorSpace.includes("bt709") || input.colorTransfer.includes("bt709")) {
|
|
74
|
+
return "SDR Rec.709";
|
|
75
|
+
}
|
|
76
|
+
return "SDR/unknown";
|
|
77
|
+
}
|
|
78
|
+
function classifyMediaColor(stream) {
|
|
79
|
+
const colorPrimaries = lower(stream?.color_primaries);
|
|
80
|
+
const colorSpace = lower(stream?.color_space);
|
|
81
|
+
const colorTransfer = lower(stream?.color_transfer);
|
|
82
|
+
const isHdr = colorPrimaries.includes("bt2020") || colorSpace.includes("bt2020") || colorTransfer === "smpte2084" || colorTransfer === "arib-std-b67";
|
|
83
|
+
const hdrTransfer = isHdr ? colorTransfer === "smpte2084" ? "pq" : colorTransfer === "arib-std-b67" ? "hlg" : "unknown" : null;
|
|
84
|
+
return {
|
|
85
|
+
dynamicRange: stream ? isHdr ? "hdr" : "sdr" : "unknown",
|
|
86
|
+
hdrTransfer,
|
|
87
|
+
label: stream ? colorLabel({ isHdr, hdrTransfer, colorPrimaries, colorSpace, colorTransfer }) : "Unknown",
|
|
88
|
+
isHdr,
|
|
89
|
+
codecName: stream?.codec_name,
|
|
90
|
+
profile: stream?.profile,
|
|
91
|
+
pixelFormat: stream?.pix_fmt,
|
|
92
|
+
colorSpace: stream?.color_space,
|
|
93
|
+
colorTransfer: stream?.color_transfer,
|
|
94
|
+
colorPrimaries: stream?.color_primaries,
|
|
95
|
+
bitsPerRawSample: stream?.bits_per_raw_sample
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async function probeFirstFrameColour(filePath, runner = execFileRunner) {
|
|
99
|
+
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffmpeg");
|
|
100
|
+
if (!ffmpegPath) return {};
|
|
101
|
+
const result = await runner(ffmpegPath, firstFrameColourArgs(filePath), {
|
|
102
|
+
timeout: 15e3,
|
|
103
|
+
maxBuffer: 1024 * 1024
|
|
104
|
+
});
|
|
105
|
+
return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
|
|
106
|
+
}
|
|
107
|
+
function bitDepthOf(stream) {
|
|
108
|
+
const raw = Number(stream.bits_per_raw_sample);
|
|
109
|
+
if (Number.isFinite(raw) && raw > 0) return raw;
|
|
110
|
+
const suffixed = /(\d{1,3})(?:le|be)$/.exec(stream.pix_fmt ?? "");
|
|
111
|
+
return suffixed ? Number(suffixed[1]) : 8;
|
|
112
|
+
}
|
|
113
|
+
function sourceFactsOf(stream, formatBitrate) {
|
|
114
|
+
if (!stream?.width || !stream.height) return void 0;
|
|
115
|
+
const bitrate = Number(stream.bit_rate ?? formatBitrate);
|
|
116
|
+
return {
|
|
117
|
+
width: stream.width,
|
|
118
|
+
height: stream.height,
|
|
119
|
+
bitDepth: bitDepthOf(stream),
|
|
120
|
+
bitrate: Number.isFinite(bitrate) ? bitrate : 0
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
var STREAM_SUMMARY_MAX = 12;
|
|
124
|
+
function summarizeStream(stream) {
|
|
125
|
+
const flags = Object.entries(stream.disposition ?? {}).filter(([, on]) => on === 1).map(([name]) => name);
|
|
126
|
+
return `${stream.codec_type ?? "?"}:${stream.codec_name ?? "?"}[${flags.join(",")}]`;
|
|
127
|
+
}
|
|
128
|
+
function audioOf(streams) {
|
|
129
|
+
const audioStream = decodableAudioStream(streams);
|
|
130
|
+
return audioStream === null ? { hasAudio: false } : { hasAudio: true, audioStream };
|
|
131
|
+
}
|
|
132
|
+
function metadataFromProbe(kind, parsed) {
|
|
133
|
+
const stream = parsed.streams?.find((item) => {
|
|
134
|
+
if (kind === "image") return item.codec_type === "video";
|
|
135
|
+
return item.codec_type === kind && item.disposition?.attached_pic !== 1;
|
|
136
|
+
});
|
|
137
|
+
const metadata = {
|
|
138
|
+
kind,
|
|
139
|
+
color: classifyMediaColor(stream),
|
|
140
|
+
streams: (parsed.streams ?? []).slice(0, STREAM_SUMMARY_MAX).map(summarizeStream)
|
|
141
|
+
};
|
|
142
|
+
if (kind === "video") {
|
|
143
|
+
Object.assign(metadata, audioOf(parsed.streams ?? []));
|
|
144
|
+
metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
|
|
145
|
+
const duration = Number(parsed.format?.duration);
|
|
146
|
+
if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
|
|
147
|
+
metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
|
|
148
|
+
}
|
|
149
|
+
return metadata;
|
|
150
|
+
}
|
|
151
|
+
async function probeAudioTrack(filePath, runner = execFileRunner) {
|
|
152
|
+
const result = await runner(
|
|
153
|
+
findFfBinary("ffprobe") ?? "ffprobe",
|
|
154
|
+
[
|
|
155
|
+
...["-v", "error", "-select_streams", "a"],
|
|
156
|
+
...["-show_entries", "stream=codec_type,codec_name,channels", "-of", "json", "--", filePath]
|
|
157
|
+
],
|
|
158
|
+
{ timeout: 3e4 }
|
|
159
|
+
);
|
|
160
|
+
if (result.status !== 0) return null;
|
|
161
|
+
const streams = JSON.parse(String(result.stdout || "{}")).streams ?? [];
|
|
162
|
+
const stream = decodableAudioStream(streams);
|
|
163
|
+
return stream === null ? null : { stream, channels: streams[stream]?.channels ?? 0 };
|
|
164
|
+
}
|
|
165
|
+
async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
166
|
+
const kind = inferKindFromPath(filePath);
|
|
167
|
+
if (kind === "audio" || kind === "unknown") {
|
|
168
|
+
return { kind, color: classifyMediaColor(null) };
|
|
169
|
+
}
|
|
170
|
+
const ffprobePath = findFfBinary("ffprobe", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffprobe");
|
|
171
|
+
if (!ffprobePath) {
|
|
172
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
173
|
+
}
|
|
174
|
+
const result = await runner(
|
|
175
|
+
ffprobePath,
|
|
176
|
+
[
|
|
177
|
+
"-v",
|
|
178
|
+
"error",
|
|
179
|
+
"-show_entries",
|
|
180
|
+
"stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
|
|
181
|
+
"-of",
|
|
182
|
+
"json",
|
|
183
|
+
"--",
|
|
184
|
+
filePath
|
|
185
|
+
],
|
|
186
|
+
{ timeout: 15e3, maxBuffer: 1024 * 1024 }
|
|
187
|
+
);
|
|
188
|
+
if (result.error?.code === "ENOENT") {
|
|
189
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
190
|
+
}
|
|
191
|
+
if (result.status !== 0) {
|
|
192
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe failed" };
|
|
193
|
+
}
|
|
194
|
+
try {
|
|
195
|
+
return metadataFromProbe(kind, JSON.parse(String(result.stdout || "{}")));
|
|
196
|
+
} catch {
|
|
197
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe returned invalid json" };
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export {
|
|
202
|
+
probeFirstFrameColour,
|
|
203
|
+
probeAudioTrack,
|
|
204
|
+
probeMediaMetadata
|
|
205
|
+
};
|
|
@@ -5,19 +5,20 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
+
resolveCaptureBrowserGpuMode
|
|
9
|
+
} from "./chunk-WLVHSGVL.js";
|
|
10
|
+
import {
|
|
11
|
+
requestCliExit
|
|
12
|
+
} from "./chunk-JVBRJMOP.js";
|
|
13
|
+
import {
|
|
14
|
+
explainChromeLaunchFailure,
|
|
8
15
|
inAgentSandbox,
|
|
9
16
|
isOneProcessOverPipe,
|
|
10
17
|
machServiceDenied,
|
|
11
18
|
oneProcessOverPipe,
|
|
12
19
|
pipeLaunchClosedOnMac,
|
|
13
20
|
sandboxDeniedRemediation
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-LPI7HX4G.js";
|
|
18
|
-
import {
|
|
19
|
-
requestCliExit
|
|
20
|
-
} from "./chunk-JVBRJMOP.js";
|
|
21
|
+
} from "./chunk-IQNS7O4W.js";
|
|
21
22
|
import {
|
|
22
23
|
processIsAlive
|
|
23
24
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -26,7 +27,53 @@ import {
|
|
|
26
27
|
} from "./chunk-K4MJX7SR.js";
|
|
27
28
|
import {
|
|
28
29
|
normalizeErrorMessage
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EU7MVORF.js";
|
|
31
|
+
|
|
32
|
+
// src/browser/chromeTree.ts
|
|
33
|
+
import { execFile } from "child_process";
|
|
34
|
+
import { promisify } from "util";
|
|
35
|
+
var PS_TIMEOUT_MS = 2e3;
|
|
36
|
+
async function processTable() {
|
|
37
|
+
let stdout;
|
|
38
|
+
try {
|
|
39
|
+
({ stdout } = await promisify(execFile)("ps", ["-axo", "pid=,ppid=,command="], {
|
|
40
|
+
maxBuffer: 16 * 1024 * 1024,
|
|
41
|
+
timeout: PS_TIMEOUT_MS
|
|
42
|
+
}));
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (error.killed) return [];
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
return stdout.split("\n").flatMap((line) => {
|
|
48
|
+
const row = /^\s*(\d+)\s+(\d+)\s+(.*)$/.exec(line);
|
|
49
|
+
return row ? [{ pid: Number(row[1]), ppid: Number(row[2]), command: row[3] }] : [];
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
async function chromeDescendants(rootPid) {
|
|
53
|
+
const table = await processTable();
|
|
54
|
+
const found = [];
|
|
55
|
+
const queue = [rootPid];
|
|
56
|
+
while (queue.length > 0) {
|
|
57
|
+
const parent = queue.shift();
|
|
58
|
+
for (const row of table) {
|
|
59
|
+
if (row.ppid !== parent) continue;
|
|
60
|
+
found.push({ pid: row.pid, command: row.command });
|
|
61
|
+
queue.push(row.pid);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return found;
|
|
65
|
+
}
|
|
66
|
+
async function reapChromeTree(members) {
|
|
67
|
+
if (members.length === 0) return;
|
|
68
|
+
const commands = new Map((await processTable()).map((row) => [row.pid, row.command]));
|
|
69
|
+
for (const { pid, command } of members) {
|
|
70
|
+
if (commands.get(pid) !== command) continue;
|
|
71
|
+
try {
|
|
72
|
+
process.kill(pid, "SIGKILL");
|
|
73
|
+
} catch {
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
30
77
|
|
|
31
78
|
// src/browser/windowsChromeWatchdog.ts
|
|
32
79
|
import { spawn } from "child_process";
|
|
@@ -83,10 +130,13 @@ var BrowserCleanupError = class extends AggregateError {
|
|
|
83
130
|
var browsers = /* @__PURE__ */ new Set();
|
|
84
131
|
var closing = /* @__PURE__ */ new WeakMap();
|
|
85
132
|
var watchdogs = /* @__PURE__ */ new WeakMap();
|
|
133
|
+
var gracefulClose = /* @__PURE__ */ new WeakMap();
|
|
86
134
|
var pending = /* @__PURE__ */ new Map();
|
|
135
|
+
var diagnosing = /* @__PURE__ */ new Set();
|
|
87
136
|
var sessionCleanups = /* @__PURE__ */ new Set();
|
|
88
137
|
var CLOSE_GRACE_MS = 1e3;
|
|
89
138
|
var LAUNCH_TIMEOUT_MS = 3e4;
|
|
139
|
+
var SLOW_START_NOTICE_MS = 5e3;
|
|
90
140
|
var EXIT_POLL_MS = 50;
|
|
91
141
|
var listening = false;
|
|
92
142
|
var shutdown;
|
|
@@ -120,11 +170,15 @@ async function resolveManagedGpuMode(requestedMode, chromePath, context = {}) {
|
|
|
120
170
|
return resolveCaptureBrowserGpuMode(requestedMode, chromePath, {
|
|
121
171
|
launch: async (puppeteer, options) => {
|
|
122
172
|
context.signal?.throwIfAborted();
|
|
123
|
-
const browser = await launchManagedBrowser(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
173
|
+
const browser = await launchManagedBrowser(
|
|
174
|
+
puppeteer,
|
|
175
|
+
{
|
|
176
|
+
...options,
|
|
177
|
+
...context.noListen ? oneProcessOverPipe(options) : {},
|
|
178
|
+
signal: context.signal
|
|
179
|
+
},
|
|
180
|
+
{ diagnose: false }
|
|
181
|
+
);
|
|
128
182
|
try {
|
|
129
183
|
context.onBrowser?.(browser);
|
|
130
184
|
} catch (error) {
|
|
@@ -135,24 +189,45 @@ async function resolveManagedGpuMode(requestedMode, chromePath, context = {}) {
|
|
|
135
189
|
close: closeManagedBrowser
|
|
136
190
|
});
|
|
137
191
|
}
|
|
138
|
-
async function launchManagedBrowser(puppeteer, options) {
|
|
192
|
+
async function launchManagedBrowser(puppeteer, options, { diagnose = true } = {}) {
|
|
139
193
|
const sandboxed = isOneProcessOverPipe(options) || inAgentSandbox();
|
|
140
194
|
try {
|
|
141
195
|
return await launchOwnedBrowser(puppeteer, sandboxed ? oneProcessOverPipe(options) : options);
|
|
142
196
|
} catch (error) {
|
|
143
197
|
const unnamedSeatbelt = !sandboxed && (machServiceDenied(normalizeErrorMessage(error)) || pipeLaunchClosedOnMac(error));
|
|
144
|
-
if (!unnamedSeatbelt)
|
|
198
|
+
if (!unnamedSeatbelt)
|
|
199
|
+
throw await withStartupDiagnosis(withRemediation(error), puppeteer, options, diagnose);
|
|
145
200
|
return launchOwnedBrowser(puppeteer, oneProcessOverPipe(options)).catch(
|
|
146
|
-
(retryError) => {
|
|
147
|
-
throw withRemediation(retryError);
|
|
201
|
+
async (retryError) => {
|
|
202
|
+
throw await withStartupDiagnosis(withRemediation(retryError), puppeteer, options, diagnose);
|
|
148
203
|
}
|
|
149
204
|
);
|
|
150
205
|
}
|
|
151
206
|
}
|
|
207
|
+
async function withStartupDiagnosis(error, puppeteer, options, diagnose) {
|
|
208
|
+
if (!diagnose || !options.executablePath || options.signal?.aborted || shutdown) return error;
|
|
209
|
+
if (!(error instanceof Error)) return error;
|
|
210
|
+
if (sandboxDeniedRemediation(normalizeErrorMessage(error))) return error;
|
|
211
|
+
const args = await (async () => puppeteer.defaultArgs({
|
|
212
|
+
headless: options.headless ?? true,
|
|
213
|
+
args: withHyperframesBrowserMarker(options.args)
|
|
214
|
+
}))().catch(() => void 0);
|
|
215
|
+
if (!args) return error;
|
|
216
|
+
const abort = new AbortController();
|
|
217
|
+
diagnosing.add(abort);
|
|
218
|
+
try {
|
|
219
|
+
return await explainChromeLaunchFailure(error, options.executablePath, args, abort.signal);
|
|
220
|
+
} finally {
|
|
221
|
+
diagnosing.delete(abort);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
152
224
|
function withRemediation(error) {
|
|
153
225
|
const remediation = sandboxDeniedRemediation(normalizeErrorMessage(error));
|
|
154
226
|
return remediation ? new Error(remediation, { cause: error }) : error;
|
|
155
227
|
}
|
|
228
|
+
function destroyBrowserPipes(child) {
|
|
229
|
+
for (const pipe of child.stdio ?? []) pipe?.destroy();
|
|
230
|
+
}
|
|
156
231
|
async function launchOwnedBrowser(puppeteer, options) {
|
|
157
232
|
if (shutdown) throw new Error("The CLI is stopping; no browser can start.");
|
|
158
233
|
ownSignals();
|
|
@@ -175,6 +250,7 @@ async function launchOwnedBrowser(puppeteer, options) {
|
|
|
175
250
|
() => abort.abort(new Error(`The browser did not finish starting within ${limit} ms.`)),
|
|
176
251
|
limit
|
|
177
252
|
) : void 0;
|
|
253
|
+
const slow = setTimeout(() => console.error("Chrome is still starting..."), SLOW_START_NOTICE_MS);
|
|
178
254
|
pending.set(launch, abort);
|
|
179
255
|
try {
|
|
180
256
|
const browser = await launch;
|
|
@@ -183,10 +259,16 @@ async function launchOwnedBrowser(puppeteer, options) {
|
|
|
183
259
|
browsers.add(browser);
|
|
184
260
|
const watchdog = watchChromeTree(child, launchedAt);
|
|
185
261
|
if (watchdog) watchdogs.set(browser, watchdog);
|
|
186
|
-
|
|
262
|
+
gracefulClose.set(browser, browser.close.bind(browser));
|
|
263
|
+
browser.close = () => closeManagedBrowser(browser);
|
|
264
|
+
child.once("exit", () => {
|
|
265
|
+
browsers.delete(browser);
|
|
266
|
+
destroyBrowserPipes(child);
|
|
267
|
+
});
|
|
187
268
|
return browser;
|
|
188
269
|
} finally {
|
|
189
270
|
clearTimeout(timer);
|
|
271
|
+
clearTimeout(slow);
|
|
190
272
|
pending.delete(launch);
|
|
191
273
|
}
|
|
192
274
|
}
|
|
@@ -199,7 +281,7 @@ function untilLaunchOrAbort(launch, signal) {
|
|
|
199
281
|
return Promise.race([launch, aborted]);
|
|
200
282
|
}
|
|
201
283
|
async function closeManagedBrowsers() {
|
|
202
|
-
for (const abort of pending.values()) abort.abort();
|
|
284
|
+
for (const abort of [...pending.values(), ...diagnosing]) abort.abort();
|
|
203
285
|
await Promise.allSettled(pending.keys());
|
|
204
286
|
const results = await Promise.allSettled([...browsers].map(closeManagedBrowser));
|
|
205
287
|
results.push(...await Promise.allSettled([...sessionCleanups].map((cleanup) => cleanup())));
|
|
@@ -240,10 +322,18 @@ async function closeBrowser(browser) {
|
|
|
240
322
|
watchdogs.get(browser)?.release(clean);
|
|
241
323
|
}
|
|
242
324
|
}
|
|
325
|
+
async function descendantsToReap(pid) {
|
|
326
|
+
if (pid === void 0 || process.platform === "win32") return [];
|
|
327
|
+
return chromeDescendants(pid).catch(() => []);
|
|
328
|
+
}
|
|
329
|
+
function closeGracefully(browser) {
|
|
330
|
+
return (gracefulClose.get(browser) ?? (() => browser.close()))();
|
|
331
|
+
}
|
|
243
332
|
async function closedWithoutKill(browser) {
|
|
244
333
|
const child = browser.process();
|
|
245
334
|
if (!child) throw new Error("A managed browser lost its owned process.");
|
|
246
335
|
if (child.exitCode !== null || child.signalCode !== null) return false;
|
|
336
|
+
const tree = await descendantsToReap(child.pid);
|
|
247
337
|
const exited = new Promise((resolve) => child.once("exit", () => resolve()));
|
|
248
338
|
let timer;
|
|
249
339
|
let poll;
|
|
@@ -252,7 +342,9 @@ async function closedWithoutKill(browser) {
|
|
|
252
342
|
});
|
|
253
343
|
try {
|
|
254
344
|
await Promise.race([
|
|
255
|
-
browser
|
|
345
|
+
closeGracefully(browser).catch(
|
|
346
|
+
(error) => console.warn("Browser close failed:", error)
|
|
347
|
+
),
|
|
256
348
|
grace
|
|
257
349
|
]);
|
|
258
350
|
const clean = child.exitCode !== null || child.signalCode !== null;
|
|
@@ -270,6 +362,7 @@ async function closedWithoutKill(browser) {
|
|
|
270
362
|
}, EXIT_POLL_MS);
|
|
271
363
|
});
|
|
272
364
|
await Promise.race([exited, goneBeforeExitEvent, exitLimit]);
|
|
365
|
+
await reapChromeTree(tree).catch(() => void 0);
|
|
273
366
|
return clean;
|
|
274
367
|
} finally {
|
|
275
368
|
clearTimeout(timer);
|
|
@@ -8,12 +8,14 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z67J3TTU.js";
|
|
12
12
|
import {
|
|
13
|
-
renameWithRetry,
|
|
14
13
|
runFfmpeg,
|
|
15
14
|
runFfprobe
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IQNS7O4W.js";
|
|
16
|
+
import {
|
|
17
|
+
renameWithRetry
|
|
18
|
+
} from "./chunk-XCIHCPJK.js";
|
|
17
19
|
import {
|
|
18
20
|
parseHTML
|
|
19
21
|
} from "./chunk-GWTIFRF5.js";
|