hyperframes 0.8.206 → 0.8.207
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-FFMNAJXJ.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-VBPJZKFT.js} +12 -12
- package/dist/api.js +30 -30
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-JKKOPBCF.js} +14 -13
- package/dist/{audio-VYWWM4DB.js → audio-OXQ3L6DW.js} +22 -22
- package/dist/{auth-GZQZCUPL.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-LI2BJRGO.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-H73CSYT4.js → beats-UDLOEW6U.js} +19 -19
- package/dist/{benchmark-XT3A5REC.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-VIOK66YK.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-252WNPCD.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-KKD5GMAF.js → capture-GLM2ACPM.js} +73 -33
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-A2A5MGQB.js} +18 -18
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-BFW7Z35W.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-XUWBZASR.js → check-WVY7SM7C.js} +47 -47
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-PLEQY3SZ.js} +16 -16
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-XSZUA2DQ.js} +40 -40
- package/dist/{chunk-2S263R6D.js → chunk-526VSRZ4.js} +9 -9
- package/dist/{chunk-SFYLZX5C.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AJSU6KGS.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-QVTCXN42.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-FNNGQ3DB.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-VDVVQNTK.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-DEVZJ4AL.js → chunk-6KOHY5EP.js} +7 -7
- package/dist/{chunk-CIHW6VM2.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-PQYWYBEQ.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-7RWUY3BJ.js} +47 -55
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-4CY5RXXC.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-FULMZCDW.js → chunk-CVZO6TFE.js} +10 -10
- package/dist/{chunk-6ZFDNEMY.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-E2ZZSDDQ.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-PNKLOMHQ.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-XOM3XTJ4.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-3CS6QYL7.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-H4JO7VSI.js → chunk-FVAI7AHF.js} +12 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-CZYS6UKP.js → chunk-H3LQ5X6Q.js} +19 -19
- package/dist/{chunk-AXEEZKIL.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-G6W55MTX.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-VEA7Z4PZ.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-3R6SXPHD.js → chunk-I2TDHVFV.js} +2 -2
- package/dist/{chunk-36QE3P6B.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-63DGZRZP.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-AEC4T4IF.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-5QKJPCQ4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-UMUVGNOH.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-AAX2A7LQ.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-2RT7MXFL.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-RW4DMP2Y.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-LK6KPVX2.js} +167 -55
- package/dist/{chunk-42KN6I6A.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-T6SD37JZ.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-TSJVPPXT.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-OZUAVHFE.js → chunk-NHL5CMO2.js} +3 -3
- package/dist/{chunk-7SXL476O.js → chunk-NJNC2DQV.js} +27 -26
- package/dist/{chunk-FMWACL3L.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-X5HHHFTX.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-BBUK6A7Q.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-CPSGXAYD.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-FJW757TF.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-MFHYBSJC.js → chunk-RPZNQV6D.js} +3 -3
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-GAV56VJL.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-VHVSBOZH.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/{chunk-HJAJ6W4V.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-CNVHMLPI.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-QL4ZYSIB.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-Z3XXLTVB.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-CMDVJP4T.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-3B2DBUQX.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/{chunk-G6QDFWDN.js → chunk-VBPNCOD7.js} +2 -2
- package/dist/{chunk-NNLQTG3M.js → chunk-VH4PNYOS.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
- package/dist/{chunk-HEP5XMXV.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-4DGLKB2H.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-NVLPW3DG.js → chunk-XULJBZ7K.js} +2 -2
- package/dist/{chunk-X7RXXBYM.js → chunk-YJK6HOL5.js} +2 -2
- package/dist/{chunk-2MLMO25E.js → chunk-ZCJ5EGLU.js} +26 -6
- package/dist/{chunk-L5MFWGGU.js → chunk-ZYGIDXAK.js} +528 -327
- package/dist/{clean-N5VSKUVS.js → clean-TL3IPJDN.js} +27 -27
- package/dist/cli.js +55 -55
- package/dist/{cloud-74NF5FXC.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-MP5EOW4D.js} +41 -41
- package/dist/{compiler-4MHMC777.js → compiler-NOPVLJ2S.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-WKNZJY34.js} +16 -16
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-GB4MS7LM.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NXD3Q3KD.js → deploy-HHCFOUFM.js} +1 -1
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-ZY6IFESG.js → dist-L4Z4ZEYW.js} +6 -3
- package/dist/{dist-3ZJMZU75.js → dist-NQEYA4ZX.js} +36 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-JDM65CP7.js} +19 -19
- package/dist/{events-T3CLIYRG.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-RYQYEWBV.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-K5ZMMLTA.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-4PZKSIGE.js} +14 -14
- package/dist/{figma-MYYCX635.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +19 -18
- package/dist/{get-JVIDYMVP.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-E5FB2GFR.js} +12 -12
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-4GUAPJHE.js} +39 -39
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-C2RYIEER.js} +13 -13
- package/dist/{help-XPPSLIRY.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-WNFF6HGU.js} +107 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +74 -69
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-NTIXWA3D.js → init-P6UWPUY3.js} +58 -57
- package/dist/{inspect-MYMCV5E7.js → inspect-MSRPF7ZO.js} +38 -38
- package/dist/{installer-PYJIJ3PJ.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-SBNUYEQE.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-IOMCOABO.js → layout-CDY65XGA.js} +38 -38
- package/dist/{lint-AQWHHMPS.js → lint-CAUNBGPX.js} +12 -9
- package/dist/{lintProject-5A4SCW3S.js → lintProject-ZTSX3AWT.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-3ZDK5JOA.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-QYFYWZOK.js → manager-3JOHHPVR.js} +16 -16
- package/dist/{manager-F2YREC5X.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-4WP22CFN.js} +22 -22
- package/dist/{models-MR55FAUX.js → models-HPWCHAZX.js} +27 -27
- package/dist/{motionShot-DC47S7BT.js → motionShot-I7GDIROQ.js} +22 -22
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-YXWBWTKL.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-ZYPBIA73.js} +24 -24
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-VNBMR6QU.js} +15 -15
- package/dist/{play-S562STR4.js → play-7VI6A7KN.js} +28 -28
- package/dist/{preflight-QWGXMISC.js → preflight-VWV7L45J.js} +16 -16
- package/dist/{present-PGOHZT3L.js → present-CSJGYOFF.js} +23 -23
- package/dist/{preview-JU75H4QN.js → preview-B246ZTVO.js} +48 -36
- package/dist/{producer-H66OMZLW.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-TJ4QVVSP.js} +17 -16
- package/dist/{remove-background-WRCGIU32.js → remove-background-LQ2V7W7N.js} +19 -19
- package/dist/{render-5J5PP3UK.js → render-AWEEPG3F.js} +34 -32
- package/dist/{render-QS3YJCBR.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-VUVTK2JM.js → render-JLTNZ36U.js} +80 -48
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +10 -7
- package/dist/{resolver-QCBWPRSC.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-IZ22SC5W.js → sherpa-4VZWVHWZ.js} +23 -23
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/{skills-3RFMPMJA.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5PHA43DK.js → snapshot-Q7S2FTNG.js} +123 -70
- package/dist/{src-36BQVJL3.js → src-CLAALR5W.js} +20 -19
- package/dist/{src-4YJKYMNF.js → src-ZOXUSGAP.js} +19 -11
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-DQ7PIDPA.js} +25 -25
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-BF9YeBnC.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-NUE227JM.js} +17 -17
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-HVOKP4VI.js} +71 -69
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-W3LRO3TB.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-BDO5DYWP.js → timeline-WOQGXFRV.js} +27 -27
- package/dist/{tokens-47CEMYFV.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-4U74P5TG.js} +21 -21
- package/dist/{transcribe-GEPVJO3A.js → transcribe-JZ3BO546.js} +31 -31
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-47JMOLNN.js} +11 -11
- package/dist/{validate-2OPSQT3W.js → validate-QBJ3SBS4.js} +31 -31
- package/dist/{video-ECWXMY4F.js → video-3ZAUNAR3.js} +16 -14
- package/dist/warmCheck.js +47 -47
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{chunk-X7A7C4JS.js → chunk-EHFZEKQM.js} +3 -3
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
runRenderSetupWorker
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
HYPERFRAMES_BROWSER_MARKER_ARG
|
|
12
|
-
} from "./chunk-K4MJX7SR.js";
|
|
9
|
+
} from "./chunk-EHFZEKQM.js";
|
|
13
10
|
import {
|
|
14
11
|
terminateProcessTree
|
|
15
12
|
} from "./chunk-KGPLIH7B.js";
|
|
13
|
+
import {
|
|
14
|
+
HYPERFRAMES_BROWSER_MARKER_ARG
|
|
15
|
+
} from "./chunk-K4MJX7SR.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/orphanCleanup.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XAGBSYIQ.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-526VSRZ4.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UYPWH7PH.js";
|
|
23
23
|
import {
|
|
24
24
|
launchManagedBrowser,
|
|
25
25
|
resolveManagedGpuMode
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MAUGXKSI.js";
|
|
27
27
|
import {
|
|
28
28
|
gotoWhenSent
|
|
29
29
|
} from "./chunk-MOEGCMKI.js";
|
|
30
30
|
import {
|
|
31
31
|
pageNavigationTimeoutMs
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UKM3JYNB.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
printDeprecationNotice,
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeErrorMessage
|
|
49
49
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -690,7 +690,7 @@ async function collectTweenBoundaries(page) {
|
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
async function bundleProjectHtml(projectDir) {
|
|
693
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
693
|
+
const { bundleToSingleHtml } = await import("./compiler-NOPVLJ2S.js");
|
|
694
694
|
return bundleToSingleHtml(projectDir);
|
|
695
695
|
}
|
|
696
696
|
async function alignViewportToComposition(page, url) {
|
|
@@ -707,15 +707,15 @@ async function alignViewportToComposition(page, url) {
|
|
|
707
707
|
await gotoWhenSent(page, url, pageNavigationTimeoutMs());
|
|
708
708
|
}
|
|
709
709
|
async function runLayoutAudit(projectDir, opts) {
|
|
710
|
-
const { ensureBrowser } = await import("./manager-
|
|
710
|
+
const { ensureBrowser } = await import("./manager-RMYSZ3KI.js");
|
|
711
711
|
const puppeteer = await import("puppeteer-core");
|
|
712
|
-
const { buildChromeArgs } = await import("./src-
|
|
712
|
+
const { buildChromeArgs } = await import("./src-ZOXUSGAP.js");
|
|
713
713
|
const {
|
|
714
714
|
assertWebGpuAdapterAvailable,
|
|
715
715
|
compositionRequiresWebGpu,
|
|
716
716
|
resolveLocalBrowserGpuMode,
|
|
717
717
|
resolveLocalWebGpu
|
|
718
|
-
} = await import("./gpuPolicy-
|
|
718
|
+
} = await import("./gpuPolicy-E5FB2GFR.js");
|
|
719
719
|
const html = await bundleProjectHtml(projectDir);
|
|
720
720
|
const server = await serveStaticProjectHtml(
|
|
721
721
|
projectDir,
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XAGBSYIQ.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UYPWH7PH.js";
|
|
16
16
|
import {
|
|
17
17
|
launchManagedBrowser,
|
|
18
18
|
resolveManagedGpuMode
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MAUGXKSI.js";
|
|
20
20
|
import {
|
|
21
21
|
pageNavigationTimeoutMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UKM3JYNB.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveCompositionViewportFromHtml
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IBZHSU2J.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
} from "./chunk-ZTZA4UWZ.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveNaturalMediaTimelineDuration
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BDJIQZN2.js";
|
|
39
39
|
import {
|
|
40
40
|
decodeWellFormedEscapes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SE2MXV2N.js";
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeErrorMessage
|
|
48
48
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -248,7 +248,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
248
248
|
async function localizeRemoteAssets(html) {
|
|
249
249
|
let dir;
|
|
250
250
|
try {
|
|
251
|
-
const { loadProducer } = await import("./producer-
|
|
251
|
+
const { loadProducer } = await import("./producer-WJLFDVQJ.js");
|
|
252
252
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
253
253
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
254
254
|
const assetDir = dir;
|
|
@@ -269,10 +269,10 @@ async function localizeRemoteAssets(html) {
|
|
|
269
269
|
}
|
|
270
270
|
async function validateInBrowser(project, opts) {
|
|
271
271
|
const projectDir = project.dir;
|
|
272
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
273
|
-
const { ensureBrowser } = await import("./manager-
|
|
274
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
275
|
-
const { lintProject } = await import("./lintProject-
|
|
272
|
+
const { bundleToSingleHtml } = await import("./compiler-NOPVLJ2S.js");
|
|
273
|
+
const { ensureBrowser } = await import("./manager-RMYSZ3KI.js");
|
|
274
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-DQ7PIDPA.js");
|
|
275
|
+
const { lintProject } = await import("./lintProject-ZTSX3AWT.js");
|
|
276
276
|
const lintResult = await lintProject(projectDir);
|
|
277
277
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
278
278
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -293,9 +293,9 @@ async function validateInBrowser(project, opts) {
|
|
|
293
293
|
try {
|
|
294
294
|
const browser = await ensureBrowser();
|
|
295
295
|
const puppeteer = await import("puppeteer-core");
|
|
296
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
296
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-ZOXUSGAP.js");
|
|
297
297
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
298
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
298
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-E5FB2GFR.js");
|
|
299
299
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
300
300
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
301
301
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.207" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.207" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
formatVariableValidationIssue,
|
|
21
21
|
validateVariables
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
23
23
|
import {
|
|
24
24
|
extractCompositionMetadata
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NHA4NRBE.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/variables.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -6,35 +6,32 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LCCYYTEK.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QE4WRS3N.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PL36HK3U.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6IYIS2U7.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JQ32262N.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
32
32
|
loadTranscript,
|
|
33
33
|
patchCaptionHtml
|
|
34
34
|
} from "./chunk-6MUI2H6P.js";
|
|
35
|
-
import {
|
|
36
|
-
normalizeErrorMessage
|
|
37
|
-
} from "./chunk-T2EUWCJE.js";
|
|
38
35
|
import {
|
|
39
36
|
PARAKEET_INSTALL_COMMAND,
|
|
40
37
|
PARAKEET_LANGUAGES,
|
|
@@ -44,6 +41,9 @@ import {
|
|
|
44
41
|
import {
|
|
45
42
|
TRANSCRIPT_FILE
|
|
46
43
|
} from "./chunk-IR35BCLK.js";
|
|
44
|
+
import {
|
|
45
|
+
normalizeErrorMessage
|
|
46
|
+
} from "./chunk-T2EUWCJE.js";
|
|
47
47
|
|
|
48
48
|
// src/api/transcribe.ts
|
|
49
49
|
import { existsSync, realpathSync, rmSync, statSync, writeFileSync } from "fs";
|
|
@@ -11,36 +11,31 @@ import {
|
|
|
11
11
|
findSyncPartner,
|
|
12
12
|
readLinkTiming,
|
|
13
13
|
syncOffsetFrames
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VQB7G5BM.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7PJ3AJB2.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LK6KPVX2.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
isSubCompositionHost,
|
|
37
|
-
topLevelElements,
|
|
38
|
-
trackKindOf
|
|
39
|
-
} from "./chunk-OFRRUYBA.js";
|
|
34
|
+
} from "./chunk-BDJIQZN2.js";
|
|
40
35
|
import {
|
|
41
36
|
resolveReferencedDuration,
|
|
42
37
|
resolveReferencedStart
|
|
43
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
44
39
|
import {
|
|
45
40
|
resolveAuthoredAssetFile
|
|
46
41
|
} from "./chunk-PBNWRWKA.js";
|
|
@@ -53,7 +48,12 @@ import {
|
|
|
53
48
|
readPlaybackRate,
|
|
54
49
|
resolveMediaDuration,
|
|
55
50
|
resolveMediaStartSeconds
|
|
56
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SE2MXV2N.js";
|
|
52
|
+
import {
|
|
53
|
+
isSubCompositionHost,
|
|
54
|
+
topLevelElements,
|
|
55
|
+
trackKindOf
|
|
56
|
+
} from "./chunk-NHA4NRBE.js";
|
|
57
57
|
|
|
58
58
|
// src/timeline/describeProject.ts
|
|
59
59
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
createFileAtomically
|
|
9
|
+
} from "./chunk-EOVYQ3IG.js";
|
|
7
10
|
|
|
8
11
|
// src/utils/pngDimensions.ts
|
|
9
12
|
import { readFileSync } from "fs";
|
|
@@ -91,7 +94,7 @@ function reportArtifacts(command, role, paths, context = readToolContext()) {
|
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
// src/utils/projectLock.ts
|
|
94
|
-
import {
|
|
97
|
+
import { mkdirSync, readFileSync as readFileSync2, unlinkSync } from "fs";
|
|
95
98
|
import { dirname, join } from "path";
|
|
96
99
|
import { setTimeout as sleep } from "timers/promises";
|
|
97
100
|
var ProjectLockTimeout = class extends Error {
|
|
@@ -116,16 +119,8 @@ function alive(pid) {
|
|
|
116
119
|
var sameHolder = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.command === b.command;
|
|
117
120
|
function breakStaleHolder(path, current, holder) {
|
|
118
121
|
const breakPath = `${path}.break`;
|
|
119
|
-
|
|
120
|
-
let acquired = false;
|
|
121
|
-
writeFileSync(breakDraft, JSON.stringify(holder), { flag: "wx" });
|
|
122
|
+
if (!createNew(breakPath, holder)) return false;
|
|
122
123
|
try {
|
|
123
|
-
try {
|
|
124
|
-
linkSync(breakDraft, breakPath);
|
|
125
|
-
} catch (error) {
|
|
126
|
-
if (error.code === "EEXIST") return false;
|
|
127
|
-
throw error;
|
|
128
|
-
}
|
|
129
124
|
if (sameHolder(readHolder(path), current)) {
|
|
130
125
|
try {
|
|
131
126
|
unlinkSync(path);
|
|
@@ -133,24 +128,22 @@ function breakStaleHolder(path, current, holder) {
|
|
|
133
128
|
if (error.code !== "ENOENT") throw error;
|
|
134
129
|
}
|
|
135
130
|
}
|
|
136
|
-
|
|
131
|
+
return tryAcquire(path, holder);
|
|
137
132
|
} finally {
|
|
138
|
-
unlinkSync(breakDraft);
|
|
139
133
|
if (sameHolder(readHolder(breakPath), holder)) unlinkSync(breakPath);
|
|
140
134
|
}
|
|
141
|
-
return acquired;
|
|
142
135
|
}
|
|
143
|
-
function
|
|
144
|
-
const draft = `${path}.${holder.pid}.${holder.startedAt}`;
|
|
145
|
-
writeFileSync(draft, JSON.stringify(holder), { flag: "wx" });
|
|
136
|
+
function createNew(path, holder) {
|
|
146
137
|
try {
|
|
147
|
-
|
|
138
|
+
createFileAtomically(path, JSON.stringify(holder));
|
|
148
139
|
return true;
|
|
149
140
|
} catch (error) {
|
|
150
|
-
if (error.code
|
|
151
|
-
|
|
152
|
-
unlinkSync(draft);
|
|
141
|
+
if (error.code === "EEXIST") return false;
|
|
142
|
+
throw error;
|
|
153
143
|
}
|
|
144
|
+
}
|
|
145
|
+
function tryAcquire(path, holder) {
|
|
146
|
+
if (createNew(path, holder)) return true;
|
|
154
147
|
const current = readHolder(path);
|
|
155
148
|
if (current && !alive(current.pid)) return breakStaleHolder(path, current, holder);
|
|
156
149
|
return false;
|
|
@@ -9,24 +9,24 @@ import {
|
|
|
9
9
|
readToolContext,
|
|
10
10
|
reportArtifacts,
|
|
11
11
|
withProjectLock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GXUONASF.js";
|
|
13
13
|
import {
|
|
14
14
|
beginCheckSnapshots,
|
|
15
15
|
checkSnapshotDirectory,
|
|
16
16
|
finishCheckSnapshots,
|
|
17
17
|
preResolveHostileMediaProxies,
|
|
18
18
|
rectToBbox
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5PYRU5DT.js";
|
|
20
20
|
import {
|
|
21
21
|
collectProjectMedia,
|
|
22
22
|
mediaPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YJK6HOL5.js";
|
|
24
24
|
import {
|
|
25
25
|
captureArtifactRevision
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IYZT62UR.js";
|
|
27
27
|
import {
|
|
28
28
|
trackLintRun
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IW5P4KK7.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
32
32
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
mergeSampleTimes,
|
|
48
48
|
parseAt,
|
|
49
49
|
readMotionSpec
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CVZO6TFE.js";
|
|
51
51
|
import {
|
|
52
52
|
findingAtRoot,
|
|
53
53
|
findingElementKey,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
} from "./chunk-TQBQYO4L.js";
|
|
57
57
|
import {
|
|
58
58
|
resolveProject
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XAGBSYIQ.js";
|
|
60
60
|
import {
|
|
61
61
|
recordArtifacts
|
|
62
62
|
} from "./chunk-XDMZY3H7.js";
|
|
@@ -65,17 +65,17 @@ import {
|
|
|
65
65
|
closeManagedBrowser,
|
|
66
66
|
onStopSignal,
|
|
67
67
|
registerBrowserSessionCleanup
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-MAUGXKSI.js";
|
|
69
69
|
import {
|
|
70
70
|
withRemainingBudget
|
|
71
71
|
} from "./chunk-EHSBBBR2.js";
|
|
72
72
|
import {
|
|
73
73
|
resolveLocalBrowserGpuMode
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LPI7HX4G.js";
|
|
75
75
|
import {
|
|
76
76
|
trackCheckReport,
|
|
77
77
|
trackCommandFailure
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-NSC5A4IR.js";
|
|
79
79
|
import {
|
|
80
80
|
swallowedFlagUsageError
|
|
81
81
|
} from "./chunk-HTIUNMTP.js";
|
|
@@ -95,14 +95,14 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
extractMediaMetadata,
|
|
97
97
|
findHdrAutoPromotion
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-LK6KPVX2.js";
|
|
99
99
|
import {
|
|
100
100
|
lintProject,
|
|
101
101
|
shouldBlockRender
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
103
103
|
import {
|
|
104
104
|
withMeta
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
106
106
|
import {
|
|
107
107
|
normalizeErrorMessage
|
|
108
108
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -2300,7 +2300,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2300
2300
|
};
|
|
2301
2301
|
}
|
|
2302
2302
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2303
|
-
const module = await import("./checkBrowser-
|
|
2303
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2304
2304
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2305
2305
|
}
|
|
2306
2306
|
var adoptedBrowser;
|
|
@@ -2314,7 +2314,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2314
2314
|
if (adopted) return adopted;
|
|
2315
2315
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2316
2316
|
if (html === void 0) return void 0;
|
|
2317
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2317
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-A2A5MGQB.js");
|
|
2318
2318
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2319
2319
|
}
|
|
2320
2320
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2326,11 +2326,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2326
2326
|
return relative(projectDir, path);
|
|
2327
2327
|
}
|
|
2328
2328
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2329
|
-
const module = await import("./checkBrowser-
|
|
2329
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2330
2330
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2331
2331
|
}
|
|
2332
2332
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2333
|
-
const module = await import("./checkBrowser-
|
|
2333
|
+
const module = await import("./checkBrowser-XSZUA2DQ.js");
|
|
2334
2334
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2335
2335
|
}
|
|
2336
2336
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2352,7 +2352,7 @@ function collectMedia(project) {
|
|
|
2352
2352
|
return collectProjectMedia(project.dir);
|
|
2353
2353
|
}
|
|
2354
2354
|
async function inspectAudio(project, media) {
|
|
2355
|
-
const module = await import("./checkAudio-
|
|
2355
|
+
const module = await import("./checkAudio-PLEQY3SZ.js");
|
|
2356
2356
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2357
2357
|
}
|
|
2358
2358
|
function audioCheckFailure(project, error) {
|
|
@@ -2404,7 +2404,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
},
|
|
2406
2406
|
async prepareMedia(project, options) {
|
|
2407
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2407
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-Z2JTBNDS.js");
|
|
2408
2408
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2409
2409
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2410
2410
|
},
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
hdrToSdrToneMapFilter,
|
|
15
15
|
isHeavyForPreview,
|
|
16
16
|
parseFirstFrameColour
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
decodeAuthoredAttribute,
|
|
20
|
-
scanHtmlOpeningTags
|
|
21
|
-
} from "./chunk-OFRRUYBA.js";
|
|
17
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
22
18
|
import {
|
|
23
19
|
mkdirWithinProject,
|
|
24
20
|
realProjectRoot,
|
|
@@ -35,7 +31,11 @@ import {
|
|
|
35
31
|
} from "./chunk-PBNWRWKA.js";
|
|
36
32
|
import {
|
|
37
33
|
rewriteAssetPath
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SE2MXV2N.js";
|
|
35
|
+
import {
|
|
36
|
+
decodeAuthoredAttribute,
|
|
37
|
+
scanHtmlOpeningTags
|
|
38
|
+
} from "./chunk-NHA4NRBE.js";
|
|
39
39
|
|
|
40
40
|
// ../studio-server/dist/chunk-JKPLDWAB.js
|
|
41
41
|
import { statSync } from "fs";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
runCancellableProcess,
|
|
9
9
|
runRenderSetupWorker
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EHFZEKQM.js";
|
|
11
11
|
import {
|
|
12
12
|
getFreeDiskMb
|
|
13
13
|
} from "./chunk-QSFWGZG6.js";
|
|
@@ -469,11 +469,36 @@ Install Chromium manually and point hyperframes to it:
|
|
|
469
469
|
Then re-run your command. The HYPERFRAMES_BROWSER_PATH env var persists for the session.`
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
+
var BROWSER_WAIT_NOTICE_MS = 15e3;
|
|
473
|
+
async function withBrowserWaitNotice(task, notify = console.warn, everyMs = BROWSER_WAIT_NOTICE_MS) {
|
|
474
|
+
const timer = setInterval(
|
|
475
|
+
() => notify(
|
|
476
|
+
"[hyperframes] Still getting Chrome ready; the first use downloads it. Set HYPERFRAMES_BROWSER_PATH to use an installed Chrome instead."
|
|
477
|
+
),
|
|
478
|
+
everyMs
|
|
479
|
+
);
|
|
480
|
+
timer.unref();
|
|
481
|
+
try {
|
|
482
|
+
return await task;
|
|
483
|
+
} finally {
|
|
484
|
+
clearInterval(timer);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
472
487
|
async function ensureBrowser(options) {
|
|
473
|
-
|
|
474
|
-
|
|
488
|
+
const resolved = {
|
|
489
|
+
...options,
|
|
490
|
+
downloadAttempts: options?.downloadAttempts ?? (process.stdout.isTTY ? DOWNLOAD_ATTEMPTS : 1)
|
|
491
|
+
};
|
|
492
|
+
const task = resolved.signal ? ensureBrowserInOwnedProcess(resolved) : ensureBrowserInCurrentProcess(resolved);
|
|
493
|
+
return resolved.onProgress ? task : withBrowserWaitNotice(task);
|
|
475
494
|
}
|
|
476
495
|
async function ensureBrowserInCurrentProcess(options) {
|
|
496
|
+
const configured = browserPathFromEnv();
|
|
497
|
+
if (configured && !existsSync(configured.path)) {
|
|
498
|
+
throw new Error(
|
|
499
|
+
`${configured.name} is set to ${configured.path}, which does not exist. Fix the path or unset it.`
|
|
500
|
+
);
|
|
501
|
+
}
|
|
477
502
|
const fromEnv = findFromEnv();
|
|
478
503
|
if (fromEnv) return fromEnv;
|
|
479
504
|
if (!options?.force) {
|
|
@@ -510,7 +535,8 @@ async function ensureBrowserInOwnedProcess(options) {
|
|
|
510
535
|
"browser",
|
|
511
536
|
{
|
|
512
537
|
force: options.force,
|
|
513
|
-
preferManagedChrome: options.preferManagedChrome
|
|
538
|
+
preferManagedChrome: options.preferManagedChrome,
|
|
539
|
+
downloadAttempts: options.downloadAttempts
|
|
514
540
|
},
|
|
515
541
|
{
|
|
516
542
|
signal,
|
|
@@ -555,18 +581,18 @@ Point hyperframes at an already-installed Chrome/Chromium instead:
|
|
|
555
581
|
|
|
556
582
|
export HYPERFRAMES_BROWSER_PATH="${example}"
|
|
557
583
|
|
|
558
|
-
Then re-run your command. Any Chrome build works for the screenshot capture path; install a real chrome-headless-shell later if you need the perf-optimized BeginFrame path. Alternatively, run inside the hyperframes Docker image which ships a compatible headless-shell.`;
|
|
584
|
+
Run \`hyperframes doctor\` to see which Chrome was found. Then re-run your command. Any Chrome build works for the screenshot capture path; install a real chrome-headless-shell later if you need the perf-optimized BeginFrame path. Alternatively, run inside the hyperframes Docker image which ships a compatible headless-shell.`;
|
|
559
585
|
return new Error(message, { cause: cause instanceof Error ? cause : void 0 });
|
|
560
586
|
}
|
|
561
587
|
var DOWNLOAD_STALL_MS = 6e4;
|
|
562
588
|
var DOWNLOAD_ATTEMPTS = 3;
|
|
563
|
-
async function retryOnStall(run, clear) {
|
|
589
|
+
async function retryOnStall(run, clear, attempts = DOWNLOAD_ATTEMPTS) {
|
|
564
590
|
for (let attempt = 1; ; attempt++) {
|
|
565
591
|
try {
|
|
566
592
|
return await run();
|
|
567
593
|
} catch (err) {
|
|
568
|
-
if (!(err instanceof BrowserDownloadStalledError) || attempt >=
|
|
569
|
-
console.warn(`[hyperframes] ${err.message} Retrying (${attempt}/${
|
|
594
|
+
if (!(err instanceof BrowserDownloadStalledError) || attempt >= attempts) throw err;
|
|
595
|
+
console.warn(`[hyperframes] ${err.message} Retrying (${attempt}/${attempts - 1}).`);
|
|
570
596
|
clear();
|
|
571
597
|
}
|
|
572
598
|
}
|
|
@@ -642,7 +668,8 @@ async function downloadBrowser(options) {
|
|
|
642
668
|
`[hyperframes] Downloaded browser archive was corrupt (${normalizeErrorMessage(err)}); re-downloading.`
|
|
643
669
|
)
|
|
644
670
|
),
|
|
645
|
-
clearStaging
|
|
671
|
+
clearStaging,
|
|
672
|
+
options?.downloadAttempts
|
|
646
673
|
);
|
|
647
674
|
assertExecutableUnpacked(stagingDir, staged.executablePath);
|
|
648
675
|
unzipLog.lines = [];
|
|
@@ -733,9 +760,11 @@ export {
|
|
|
733
760
|
_resetSystemFallbackWarnForTests,
|
|
734
761
|
findSystemBrowser,
|
|
735
762
|
findBrowser,
|
|
763
|
+
withBrowserWaitNotice,
|
|
736
764
|
ensureBrowser,
|
|
737
765
|
isCorruptArchiveError,
|
|
738
766
|
installWithCorruptArchiveRecovery,
|
|
767
|
+
retryOnStall,
|
|
739
768
|
sweepKilledInstalls,
|
|
740
769
|
clearBrowser,
|
|
741
770
|
isLinuxArm
|