hyperframes 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-PXF5OGLI.js → add-JNKCTPWJ.js} +16 -16
- package/dist/{agentPromptGenerator-DWNK722M.js → agentPromptGenerator-DSF7AEVE.js} +8 -8
- package/dist/{animatedGifPrep-FFBCFFIY.js → animatedGifPrep-BIEUMGB3.js} +8 -8
- package/dist/api.js +45 -23
- package/dist/{asset-FZVMLDSY.js → asset-V6JAJRCF.js} +2 -2
- package/dist/{assetCataloger-FXBZK55R.js → assetCataloger-SCLH2WAC.js} +9 -9
- package/dist/{audio-QYNPBNZQ.js → audio-JX76VDCY.js} +15 -15
- package/dist/{auth-2FBS4QC4.js → auth-TRE4ASYT.js} +2 -2
- package/dist/{autoUpdate-VFGRGQTO.js → autoUpdate-D5UUCIOR.js} +2 -2
- package/dist/{avatars-UVZFK2JR.js → avatars-26EUVWXR.js} +12 -12
- package/dist/{backgroundChecks-FN53YXTW.js → backgroundChecks-RM5GWZIW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JB3D6X7U.js → batchRender-5ZEQ6U4N.js} +5 -5
- package/dist/{beats-5BJMEGGA.js → beats-3YW7MGZY.js} +22 -14
- package/dist/{benchmark-MP4JGPYM.js → benchmark-MYQTWUO3.js} +10 -10
- package/dist/{billing-XSPWEAYT.js → billing-2X3JNNM4.js} +95 -19
- package/dist/{browser-V4EB7UNU.js → browser-CQSY36GL.js} +3 -3
- package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
- package/dist/{capture-L5TGT4SW.js → capture-IK5GIWOS.js} +20 -23
- package/dist/{capture-SQHH4HBC.js → capture-NWBNWBIX.js} +3 -3
- package/dist/{captureCompositionFrame-BAYKFJMM.js → captureCompositionFrame-KR3PELMO.js} +13 -13
- package/dist/{catalog-OLP2O5W6.js → catalog-2Q73F42B.js} +16 -16
- package/dist/{catch-up-LJWHENVV.js → catch-up-JP3FL3FX.js} +4 -4
- package/dist/{check-KGAKP3H5.js → check-UIMXDUPK.js} +46 -46
- package/dist/{checkAudio-QWBAUBJ2.js → checkAudio-CSX4G35O.js} +12 -12
- package/dist/{checkBrowser-J5UUWIPK.js → checkBrowser-MTCJVJYJ.js} +39 -39
- package/dist/{chunk-5Z7YSZRF.js → chunk-2BDSLTEG.js} +9 -9
- package/dist/{chunk-NXQMN7YC.js → chunk-2L4HQ5K4.js} +1 -1
- package/dist/{chunk-SGLX72IQ.js → chunk-2NHPNI42.js} +10 -10
- package/dist/{chunk-2WGAXAM7.js → chunk-2OIONPKY.js} +3 -3
- package/dist/{chunk-MJEE2WSS.js → chunk-2SYOEZ2Z.js} +2 -2
- package/dist/{chunk-O4Q44I77.js → chunk-2YT656R2.js} +6 -6
- package/dist/{chunk-VIEMTLSI.js → chunk-35RZMUTX.js} +7 -7
- package/dist/{chunk-U7AB4D6T.js → chunk-3B7TDQEW.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-Z23O7MZ3.js → chunk-3BHDAXDA.js} +4 -8
- package/dist/{chunk-BYWQQMTB.js → chunk-3CXUZSLE.js} +2 -2
- package/dist/{chunk-EP6GCDZ6.js → chunk-4MY6FPX4.js} +1 -1
- package/dist/{chunk-6U6KMYIV.js → chunk-4NE6CBMW.js} +1 -1
- package/dist/{chunk-N2SXD5EG.js → chunk-53UV2EUT.js} +3 -3
- package/dist/{chunk-AR6IO4RY.js → chunk-5ENBFVPD.js} +2 -2
- package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
- package/dist/{chunk-NW5QHUZO.js → chunk-6FOO4QTU.js} +1 -1
- package/dist/{chunk-WCNUB6WU.js → chunk-6OSVMSGV.js} +9 -9
- package/dist/{chunk-XHY36WZF.js → chunk-6UM5C4R6.js} +2 -2
- package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
- package/dist/{chunk-AB6DKVKC.js → chunk-6ZRGEVAM.js} +85 -25
- package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
- package/dist/{chunk-3BLPPIJA.js → chunk-7LQVFIO4.js} +4 -4
- package/dist/{chunk-4HGTJHKB.js → chunk-7NPHPQH5.js} +2 -2
- package/dist/{chunk-CLT3CJKG.js → chunk-AOJBIFKU.js} +1 -1
- package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
- package/dist/{chunk-QVW57TUW.js → chunk-BNUN7KXZ.js} +2 -2
- package/dist/{chunk-2YVIA2BX.js → chunk-BXCPOMS3.js} +9 -7
- package/dist/{chunk-H6FRRSHM.js → chunk-CMPHS5E6.js} +2 -2
- package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
- package/dist/{chunk-CKZVLS3K.js → chunk-CZ5NNJ6H.js} +50 -20
- package/dist/{chunk-F6PFZMQU.js → chunk-D3FZQL5R.js} +8 -8
- package/dist/{chunk-TX3JT67F.js → chunk-DD47NQJZ.js} +1 -1
- package/dist/{chunk-EQSUX64Q.js → chunk-DSIGJUNY.js} +1 -1
- package/dist/{chunk-ZPJVKYDL.js → chunk-DTU4XJNP.js} +3 -3
- package/dist/{chunk-BE7Y3PJZ.js → chunk-DTZSKJV5.js} +3 -3
- package/dist/{chunk-6PGTJG3M.js → chunk-DVJUBMS7.js} +1 -1
- package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
- package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
- package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
- package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
- package/dist/{chunk-N43XGFAZ.js → chunk-FF3VKFCN.js} +126 -66
- package/dist/{chunk-WSZWPYRG.js → chunk-FQFWGAON.js} +2 -2
- package/dist/{chunk-OPOYDJEW.js → chunk-FZRTCVU6.js} +1 -1
- package/dist/{chunk-FJIN5OWZ.js → chunk-GY7D2OEQ.js} +2 -2
- package/dist/chunk-HNZ2FZIB.js +45 -0
- package/dist/{chunk-7S2LS53F.js → chunk-HVIQQCLM.js} +13 -13
- package/dist/{chunk-7WSL3PT3.js → chunk-HZSAOL5O.js} +2 -2
- package/dist/{chunk-UPI2MZ5L.js → chunk-I5PI43EI.js} +1 -1
- package/dist/{chunk-MGAGDEBC.js → chunk-IO3BC2ZK.js} +1 -1
- package/dist/{chunk-JGTJEQ5X.js → chunk-IPZ3QGDO.js} +2 -2
- package/dist/{chunk-GPHY5R35.js → chunk-K5CK4G75.js} +3 -3
- package/dist/{chunk-RBF3AF7R.js → chunk-L24GJQNZ.js} +16 -12
- package/dist/chunk-LSUM6RTW.js +20 -0
- package/dist/{chunk-KHF5WT6E.js → chunk-LZYXYJMX.js} +1 -1
- package/dist/{chunk-H4VII7WN.js → chunk-M34AOUVK.js} +5 -5
- package/dist/{chunk-ITDHT7AO.js → chunk-MWPPZOY5.js} +4 -4
- package/dist/{chunk-2IB3XVAR.js → chunk-MY2W7VWC.js} +14 -14
- package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
- package/dist/{chunk-3SZZLHHM.js → chunk-NBUPR3ZF.js} +1 -1
- package/dist/{chunk-YHID4CM3.js → chunk-NLEIM52W.js} +83 -21
- package/dist/{chunk-TBXV7O3Z.js → chunk-NWFIYKEI.js} +4 -4
- package/dist/{chunk-N7EA7GWU.js → chunk-O4ONYFY3.js} +1 -1
- package/dist/{chunk-AIK4ETUZ.js → chunk-O4ZD7TVR.js} +17 -1
- package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
- package/dist/{chunk-ZMRRTWKP.js → chunk-PA27AW3Y.js} +1 -1
- package/dist/{chunk-YMP5FTA3.js → chunk-PCY67JUL.js} +303 -29
- package/dist/{chunk-RADODJYB.js → chunk-PYPW33ET.js} +2 -2
- package/dist/{chunk-C5VZTKW2.js → chunk-QSEHVJFA.js} +67 -211
- package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
- package/dist/{chunk-MBX3BHW3.js → chunk-SAAJ2O7A.js} +1 -1
- package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
- package/dist/{chunk-WGQW65DO.js → chunk-SSBAETRX.js} +5 -5
- package/dist/{chunk-LGVUQ4GC.js → chunk-T32JKZX3.js} +3 -3
- package/dist/{chunk-NR2W7HUH.js → chunk-T4FLVFQE.js} +1 -1
- package/dist/{chunk-KWGOABKQ.js → chunk-TESXTEV5.js} +1 -1
- package/dist/{chunk-2IATDUYU.js → chunk-TRK77R5G.js} +1 -1
- package/dist/{chunk-T5ZEMZ3K.js → chunk-TTBCQFRY.js} +2 -2
- package/dist/{chunk-7AMCGJDM.js → chunk-U22NZEQV.js} +1 -1
- package/dist/{chunk-2ASPXS4U.js → chunk-VD5G4Y6U.js} +1 -1
- package/dist/{chunk-RL52TNCM.js → chunk-W7ITBVJE.js} +2 -2
- package/dist/{chunk-SXAZR7M4.js → chunk-WAH2X7FF.js} +2 -2
- package/dist/{chunk-HTSVFS4G.js → chunk-WXYV47JX.js} +2 -2
- package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
- package/dist/{chunk-SM4F4H3T.js → chunk-X46MRJYK.js} +1 -1
- package/dist/{chunk-EZCMP7NJ.js → chunk-XMOWL46H.js} +1 -1
- package/dist/{chunk-SFO4FLUG.js → chunk-YBR4L5JA.js} +1 -1
- package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
- package/dist/{chunk-7Z7SREEU.js → chunk-ZE2QZHUH.js} +1 -1
- package/dist/{chunk-RWQEWEOV.js → chunk-ZNHWAGMH.js} +1 -1
- package/dist/{chunk-NMYRVKIL.js → chunk-ZSAKJRZB.js} +5 -5
- package/dist/{chunk-472XCBCV.js → chunk-ZZBO3GF5.js} +2 -2
- package/dist/{clean-NNYMY7FD.js → clean-P3SZCIFU.js} +20 -20
- package/dist/cli.js +60 -60
- package/dist/{cloud-6FBCPI3B.js → cloud-G7YQIVI7.js} +4 -4
- package/dist/{cloudrun-D4V4TV6S.js → cloudrun-LXZT5UDK.js} +7 -7
- package/dist/{compare-J3JV4AZ3.js → compare-BHQHEOMX.js} +35 -35
- package/dist/{compiler-5ANBCHB7.js → compiler-V72QWKGC.js} +5 -5
- package/dist/{component-QFREWBT5.js → component-6GDCT3GK.js} +3 -3
- package/dist/{compositions-NUTRZGAZ.js → compositions-JM6HKCRF.js} +12 -12
- package/dist/{curve-LR4THVRF.js → curve-Y7JRXLIJ.js} +12 -12
- package/dist/{cuts-5WPLSRM2.js → cuts-LDVDQTRL.js} +13 -13
- package/dist/{delete-KLIVMSTG.js → delete-NCZIKWHU.js} +2 -2
- package/dist/{deploy-CDWKRTWY.js → deploy-R4OEJEB6.js} +5 -2
- package/dist/{describeProject-YJEOPIW7.js → describeProject-4GKZTYHA.js} +10 -10
- package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
- package/dist/{diff-KY6T2E32.js → diff-C53GPSNU.js} +42 -24
- package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
- package/dist/{dist-TQKOMXXI.js → dist-TI44VPHO.js} +3 -3
- package/dist/{dist-GVCHAZJU.js → dist-TJZSSDR2.js} +13 -13
- package/dist/{doctor-HLG4AP3Q.js → doctor-V4RICWU2.js} +12 -12
- package/dist/{energy-3T3DDIEN.js → energy-S5Z7CGSB.js} +13 -13
- package/dist/{events-LB2RDZX3.js → events-6HROTYLC.js} +11 -3
- package/dist/{events-HZG5BWCQ.js → events-QKJE5XRN.js} +2 -2
- package/dist/{events-ZZNUYUCY.js → events-RAJGQK7Y.js} +14 -14
- package/dist/{extract-7STXIEDI.js → extract-RYGWEC5V.js} +13 -13
- package/dist/{face-3DWRLSWO.js → face-IWRDW2QO.js} +13 -13
- package/dist/{feedback-4V2HGHTZ.js → feedback-HQTDLLPE.js} +9 -9
- package/dist/{ffmpeg-5BWHEWVW.js → ffmpeg-BX334YEK.js} +8 -8
- package/dist/{figma-4SSCW6YU.js → figma-P6U76KGI.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-V3OUCXX6.js → frames-G2WYTVWV.js} +14 -14
- package/dist/{generate-W4HW4MJQ.js → generate-ZUE2AVOB.js} +35 -16
- package/dist/{get-FXFV3VDQ.js → get-7C3UC46A.js} +2 -2
- package/dist/{gpuPolicy-X4BOE2HD.js → gpuPolicy-5ZVYYWXN.js} +8 -8
- package/dist/{grade-compare-PV62LISL.js → grade-compare-IS3OVI7R.js} +39 -39
- package/dist/{heifImagePrep-2K2I4SCP.js → heifImagePrep-FBLLKI3P.js} +9 -9
- package/dist/{help-R2ASMVJB.js → help-2MPB27YU.js} +1 -1
- package/dist/{history-X24EZSOO.js → history-Q5EBBFPW.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DJ6TZSEF.js → info-TNG5QGFC.js} +9 -9
- package/dist/{init-GQ2GRVQS.js → init-UFPBBWC7.js} +37 -32
- package/dist/{ink-L4VRIFJ7.js → ink-UTPJHGZR.js} +13 -13
- package/dist/{inspect-5IXDDOJN.js → inspect-KXKKPWKX.js} +37 -37
- package/dist/{installer-ZIBXFENP.js → installer-UTFXM6KP.js} +7 -7
- package/dist/{keyframes-ASFH5XYJ.js → keyframes-S6V36BW6.js} +6 -6
- package/dist/{lambda-ELYE5XIZ.js → lambda-XWHALRKM.js} +13 -13
- package/dist/{layout-NNGVQWY4.js → layout-SSVKZKCZ.js} +37 -37
- package/dist/{lint-GYJFRDI2.js → lint-OQWGRKG5.js} +9 -9
- package/dist/{lintProject-NGMRZDNT.js → lintProject-Z2TEXMY4.js} +3 -3
- package/dist/{list-UBFDCTVO.js → list-FYLBMEL7.js} +2 -2
- package/dist/{localPage-DHAVU3EM.js → localPage-4GSU6N3J.js} +8 -8
- package/dist/{login-OKJT7QWG.js → login-JKFCYHRS.js} +4 -4
- package/dist/{look-4GINLBBO.js → look-WQ2DOKXH.js} +13 -13
- package/dist/{manager-Q5X74T5D.js → manager-F4F4A734.js} +9 -9
- package/dist/{measure-LICRA4FH.js → measure-XIFLTAMC.js} +11 -11
- package/dist/{media-treatment-PM3WLJZ4.js → media-treatment-S3LHQSQQ.js} +16 -16
- package/dist/{media-use-NUORYIBQ.js → media-use-NFM3ZXCF.js} +3 -3
- package/dist/{models-V2XJYFY5.js → models-G4KNLV66.js} +12 -12
- package/dist/{motionShot-YBJB6L3C.js → motionShot-IJGA5CBH.js} +16 -16
- package/dist/{normalize-audio-LUAEDEUM.js → normalize-audio-UP54N6J4.js} +11 -11
- package/dist/{open-RTL2AU5C.js → open-TAEKCYDB.js} +16 -16
- package/dist/{parakeetRunner-FBEL64JM.js → parakeetRunner-WFA4K7BH.js} +13 -13
- package/dist/{pipeline-2VN2FDAL.js → pipeline-SNENB5MZ.js} +11 -11
- package/dist/{play-U3EXVEC7.js → play-QTYMY453.js} +27 -27
- package/dist/{preflight-Z3U5OGW3.js → preflight-CZUKW3CW.js} +9 -9
- package/dist/{present-NXEDFMC4.js → present-KVHQECWG.js} +19 -19
- package/dist/{preview-AUDJW3KE.js → preview-6U62DM4P.js} +24 -24
- package/dist/{probe-QQXAWDZG.js → probe-UCVL3JDC.js} +13 -13
- package/dist/{producer-DNWWPGFA.js → producer-A4RPG3XL.js} +1 -1
- package/dist/{projectConfig-FMXOJBJY.js → projectConfig-FIW6FPZW.js} +10 -10
- package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
- package/dist/{publish-7HSXMQEF.js → publish-VKSABRA4.js} +18 -15
- package/dist/{remove-background-AIYMKXZW.js → remove-background-CJJ54SHA.js} +12 -12
- package/dist/{render-RMPWJTY4.js → render-2YY64XPU.js} +346 -64
- package/dist/{render-SAAQKFHE.js → render-G54RA46B.js} +202 -35
- package/dist/{render-FD7LHCCC.js → render-I2MWX5GH.js} +7 -7
- package/dist/{render-batch-WPHP27VT.js → render-batch-X562GNRH.js} +10 -10
- package/dist/renderSetupWorker.js +3 -3
- package/dist/{resolver-E7IHSWCQ.js → resolver-GC4ZLQPV.js} +7 -7
- package/dist/{reverse-GHX5LUSV.js → reverse-2KZQ65Y7.js} +1 -1
- package/dist/{sherpa-QQZMXXO5.js → sherpa-SLRKS4SR.js} +12 -12
- package/dist/skills/hyperframes/SKILL.md +3 -1
- package/dist/skills/hyperframes/references/format.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
- package/dist/{skills-WCXVUM6C.js → skills-SOXKW42T.js} +6 -6
- package/dist/{skillsUpdateCheck-PEVW2JO6.js → skillsUpdateCheck-4RUEBT6B.js} +3 -3
- package/dist/{snapshot-2ACZXDLZ.js → snapshot-KIWJWZGW.js} +48 -48
- package/dist/{src-WISBTYBV.js → src-ABVBEVVK.js} +12 -12
- package/dist/{src-DA2HOM3K.js → src-DYWF24IK.js} +7 -7
- package/dist/{start-DDOWW7K5.js → start-EADJCDST.js} +49 -27
- package/dist/{staticProjectServer-MQ7H4MGQ.js → staticProjectServer-UCHJYCR6.js} +24 -24
- package/dist/{status-74IZXJKQ.js → status-E4OUQSHN.js} +45 -2
- package/dist/studio/assets/{hyperframes-player-B2_9tPTr.js → hyperframes-player-CfYFgHV8.js} +1 -1
- package/dist/studio/assets/{index-DToBQdGg.js → index-COfhX0Gz.js} +4 -4
- package/dist/studio/assets/{index-BHe_y2lu.js → index-Cj5x3rVD.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-UABUZ3PZ.js → studio-api-RGOTUJXP.js} +13 -13
- package/dist/{studioServer-FGXZA75B.js → studioServer-72COILB5.js} +61 -61
- package/dist/{sync-AVGYYG4D.js → sync-5Z5OQFB3.js} +13 -13
- package/dist/{telemetry-7IM2NV22.js → telemetry-OQ2JM37Y.js} +3 -3
- package/dist/{templates-5CWKOSBX.js → templates-YH5CUHHN.js} +45 -2
- package/dist/{timeline-A7R54T7C.js → timeline-IWU2T2BX.js} +21 -21
- package/dist/{tokens-W6RQVKWV.js → tokens-F7IBDWGE.js} +2 -2
- package/dist/{transcribe-N2C2MYCG.js → transcribe-GL3J3JB3.js} +11 -11
- package/dist/{transcribe-GPOMREHS.js → transcribe-YXDOCF32.js} +32 -20
- package/dist/{update-X643YOPS.js → update-MR5NL567.js} +7 -7
- package/dist/{updateCheck-O7IUSOXN.js → updateCheck-ONT2ZVAF.js} +2 -2
- package/dist/{upgrade-6NWYJUFT.js → upgrade-BJEGLKQS.js} +3 -3
- package/dist/{urlDownloader-PFHIVGDF.js → urlDownloader-3PV5WURP.js} +7 -7
- package/dist/{validate-IIFU6OEG.js → validate-GTTWJYCS.js} +26 -26
- package/dist/{video-R6TSXZMN.js → video-VP6X6YL5.js} +9 -9
- package/dist/{voices-Y572PKNN.js → voices-3EO2NQ5Q.js} +33 -14
- package/dist/warmCheck.js +46 -46
- package/package.json +1 -1
- package/dist/chunk-TSCUYZ4B.js +0 -29
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
deliveryFlagArgs,
|
|
9
9
|
parseDeliveryFlags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZE2QZHUH.js";
|
|
11
11
|
import {
|
|
12
12
|
hasExplicitCompositionArg,
|
|
13
13
|
resolveCompositionEntryArg
|
|
@@ -17,33 +17,33 @@ import {
|
|
|
17
17
|
} from "./chunk-WEWXIQPN.js";
|
|
18
18
|
import {
|
|
19
19
|
maybePromptRenderFeedback
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3B7TDQEW.js";
|
|
21
21
|
import {
|
|
22
22
|
reportVariableIssues,
|
|
23
23
|
resolveVariablesArg,
|
|
24
24
|
validateVariablesAgainstProject
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WXYV47JX.js";
|
|
26
26
|
import "./chunk-ZBAF6L74.js";
|
|
27
27
|
import {
|
|
28
28
|
renderJobObservabilityTelemetryPayload,
|
|
29
29
|
startRenderCpuSampler
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-X46MRJYK.js";
|
|
31
31
|
import {
|
|
32
32
|
formatLintStartupMessage
|
|
33
33
|
} from "./chunk-B2RMMRJB.js";
|
|
34
34
|
import {
|
|
35
35
|
desktopHint
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZZBO3GF5.js";
|
|
37
37
|
import {
|
|
38
38
|
runEnvironmentChecks
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4NE6CBMW.js";
|
|
40
40
|
import "./chunk-XQ26I3PL.js";
|
|
41
41
|
import {
|
|
42
42
|
makeOutputFolder
|
|
43
43
|
} from "./chunk-3S27CPV7.js";
|
|
44
44
|
import {
|
|
45
45
|
createRenderCancellationScope
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DD47NQJZ.js";
|
|
47
47
|
import {
|
|
48
48
|
H264EncoderUnavailableError,
|
|
49
49
|
chromeLaunchRemediation,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
findFFmpeg,
|
|
52
52
|
findFFprobe,
|
|
53
53
|
getFFmpegInstallHint
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZNHWAGMH.js";
|
|
55
55
|
import {
|
|
56
56
|
markRenderSucceeded,
|
|
57
57
|
runPostRenderStep,
|
|
@@ -60,24 +60,27 @@ import {
|
|
|
60
60
|
import {
|
|
61
61
|
RenderQualityError,
|
|
62
62
|
extractSafeRenderErrorCode
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-FF3VKFCN.js";
|
|
64
|
+
import "./chunk-EOCFNE53.js";
|
|
65
|
+
import "./chunk-TTBCQFRY.js";
|
|
66
|
+
import "./chunk-CMPHS5E6.js";
|
|
67
67
|
import "./chunk-X7MTZ4T2.js";
|
|
68
68
|
import "./chunk-BZ56MTDX.js";
|
|
69
69
|
import "./chunk-FI4I7CME.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
alive,
|
|
72
|
+
captureArtifactRevision,
|
|
73
|
+
readHolder,
|
|
74
|
+
release
|
|
75
|
+
} from "./chunk-DX4OFRBN.js";
|
|
76
|
+
import "./chunk-YBR4L5JA.js";
|
|
74
77
|
import "./chunk-X7MTZ4T2.js";
|
|
75
78
|
import {
|
|
76
79
|
loadProducer
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-NBUPR3ZF.js";
|
|
78
81
|
import {
|
|
79
82
|
resolveProject
|
|
80
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-AOJBIFKU.js";
|
|
81
84
|
import {
|
|
82
85
|
windowsChromeCrashRemediation
|
|
83
86
|
} from "./chunk-262C25DQ.js";
|
|
@@ -86,49 +89,51 @@ import {
|
|
|
86
89
|
parseHlsSegmentSecondsArg,
|
|
87
90
|
resolveBrowserTimeoutMsArg,
|
|
88
91
|
resolveDefaultFpsArg
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
92
|
+
} from "./chunk-DTU4XJNP.js";
|
|
93
|
+
import "./chunk-U22NZEQV.js";
|
|
91
94
|
import "./chunk-US4BCRYB.js";
|
|
92
95
|
import {
|
|
93
96
|
recordRenderSuccess,
|
|
94
97
|
registerRenderOutput
|
|
95
98
|
} from "./chunk-XLPCBE2Q.js";
|
|
96
99
|
import "./chunk-ALVXFXUG.js";
|
|
100
|
+
import {
|
|
101
|
+
errorBox,
|
|
102
|
+
formatBytes,
|
|
103
|
+
formatRenderPipelineDetail,
|
|
104
|
+
formatRenderSummaryDetail,
|
|
105
|
+
formatScreenshotFallbackHint,
|
|
106
|
+
resolvePrintedCaptureMode
|
|
107
|
+
} from "./chunk-M3JU24AI.js";
|
|
108
|
+
import "./chunk-EHZESMRB.js";
|
|
97
109
|
import {
|
|
98
110
|
loadProjectConfig,
|
|
99
111
|
readProjectConfigWithStatus,
|
|
100
112
|
seedProjectAuthoringSkill
|
|
101
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-PA27AW3Y.js";
|
|
102
114
|
import "./chunk-XT7X6QCP.js";
|
|
103
115
|
import "./chunk-5YPMCCCA.js";
|
|
116
|
+
import {
|
|
117
|
+
createFileAtomically
|
|
118
|
+
} from "./chunk-A4ZTSQLW.js";
|
|
104
119
|
import {
|
|
105
120
|
normalizeSkillSlug
|
|
106
121
|
} from "./chunk-HVW7ABXD.js";
|
|
107
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-VD5G4Y6U.js";
|
|
108
123
|
import "./chunk-JHOCK3DG.js";
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-K5CK4G75.js";
|
|
125
|
+
import "./chunk-7LQVFIO4.js";
|
|
111
126
|
import "./chunk-AWDFDFI3.js";
|
|
112
127
|
import "./chunk-P6LJ4Y32.js";
|
|
113
|
-
import "./chunk-T2WJO4XM.js";
|
|
114
|
-
import {
|
|
115
|
-
errorBox,
|
|
116
|
-
formatBytes,
|
|
117
|
-
formatRenderPipelineDetail,
|
|
118
|
-
formatRenderSummaryDetail,
|
|
119
|
-
formatScreenshotFallbackHint,
|
|
120
|
-
resolvePrintedCaptureMode
|
|
121
|
-
} from "./chunk-M3JU24AI.js";
|
|
122
|
-
import "./chunk-EHZESMRB.js";
|
|
123
|
-
import "./chunk-A4ZTSQLW.js";
|
|
124
128
|
import "./chunk-D3UCUI7G.js";
|
|
129
|
+
import "./chunk-T2WJO4XM.js";
|
|
125
130
|
import {
|
|
126
131
|
trackRenderComplete,
|
|
127
132
|
trackRenderError,
|
|
128
133
|
trackRenderObservation,
|
|
129
134
|
trackRenderPreflightRejected
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import "./chunk-
|
|
135
|
+
} from "./chunk-O4ZD7TVR.js";
|
|
136
|
+
import "./chunk-XMOWL46H.js";
|
|
132
137
|
import "./chunk-PXVQOMKL.js";
|
|
133
138
|
import "./chunk-MCDNAIFF.js";
|
|
134
139
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -143,7 +148,7 @@ import {
|
|
|
143
148
|
} from "./chunk-HOCC4J5C.js";
|
|
144
149
|
import "./chunk-VEIGTKYZ.js";
|
|
145
150
|
import "./chunk-EVMY7IPL.js";
|
|
146
|
-
import "./chunk-
|
|
151
|
+
import "./chunk-ZB2XGJSP.js";
|
|
147
152
|
import {
|
|
148
153
|
CaptureFailure,
|
|
149
154
|
EXTRACT_CACHE_DIR_DISABLED_ALIASES,
|
|
@@ -153,11 +158,11 @@ import {
|
|
|
153
158
|
audioFailureDiagnostics,
|
|
154
159
|
isVideoFrameFormat,
|
|
155
160
|
sandboxDeniedRemediation
|
|
156
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-6ZRGEVAM.js";
|
|
157
162
|
import "./chunk-Z5J67X44.js";
|
|
158
163
|
import "./chunk-5S7W3TUO.js";
|
|
159
164
|
import "./chunk-D3MUHMFG.js";
|
|
160
|
-
import "./chunk-
|
|
165
|
+
import "./chunk-53UV2EUT.js";
|
|
161
166
|
import "./chunk-YWRUQ7XZ.js";
|
|
162
167
|
import {
|
|
163
168
|
DISTRIBUTED_FPS,
|
|
@@ -166,9 +171,9 @@ import {
|
|
|
166
171
|
fpsToNumber,
|
|
167
172
|
isDistributedFps,
|
|
168
173
|
parseFps
|
|
169
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-N7ZKI2CE.js";
|
|
170
175
|
import "./chunk-MEJH7VEA.js";
|
|
171
|
-
import "./chunk-
|
|
176
|
+
import "./chunk-EAO46VPT.js";
|
|
172
177
|
import "./chunk-VC76R6W2.js";
|
|
173
178
|
import "./chunk-OFQWTKPW.js";
|
|
174
179
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -177,7 +182,8 @@ import "./chunk-TK7THLRO.js";
|
|
|
177
182
|
import "./chunk-FXMKHHPO.js";
|
|
178
183
|
import "./chunk-7RFIT26L.js";
|
|
179
184
|
import {
|
|
180
|
-
killOrphanedProcessesForRender
|
|
185
|
+
killOrphanedProcessesForRender,
|
|
186
|
+
processIdentity
|
|
181
187
|
} from "./chunk-PV4XID2A.js";
|
|
182
188
|
import {
|
|
183
189
|
runRenderSetupWorker
|
|
@@ -194,7 +200,7 @@ import "./chunk-WE42NVH7.js";
|
|
|
194
200
|
import {
|
|
195
201
|
lintProject,
|
|
196
202
|
shouldBlockRender
|
|
197
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-CZ5NNJ6H.js";
|
|
198
204
|
import {
|
|
199
205
|
collectSubCompositionSrcs
|
|
200
206
|
} from "./chunk-WVRAFHJU.js";
|
|
@@ -202,13 +208,13 @@ import "./chunk-CZGHFATT.js";
|
|
|
202
208
|
import {
|
|
203
209
|
FFMPEG_PATH_ENV
|
|
204
210
|
} from "./chunk-HYRPH6LL.js";
|
|
205
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-OHQRQE7F.js";
|
|
206
212
|
import {
|
|
207
213
|
checkOutputResolutionCompatibility,
|
|
208
214
|
isAspectAgnosticResolutionAlias,
|
|
209
215
|
normalizeResolutionFlag,
|
|
210
216
|
suggestMatchingPreset
|
|
211
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-CUCP7FKH.js";
|
|
212
218
|
import "./chunk-FR7YBU3H.js";
|
|
213
219
|
import "./chunk-DPVXBVLL.js";
|
|
214
220
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -216,7 +222,9 @@ import "./chunk-2RY2LWAA.js";
|
|
|
216
222
|
import "./chunk-EPQC3FGZ.js";
|
|
217
223
|
import "./chunk-WC4MTXGN.js";
|
|
218
224
|
import "./chunk-FBN2M2HK.js";
|
|
219
|
-
import
|
|
225
|
+
import {
|
|
226
|
+
hyperframesCacheDir
|
|
227
|
+
} from "./chunk-766MOTIZ.js";
|
|
220
228
|
import "./chunk-BR2JQQC5.js";
|
|
221
229
|
import {
|
|
222
230
|
readConfigFresh,
|
|
@@ -240,7 +248,7 @@ import "./chunk-FYZFURBN.js";
|
|
|
240
248
|
import "./chunk-QBXDU24O.js";
|
|
241
249
|
import {
|
|
242
250
|
VERSION
|
|
243
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-FQFWGAON.js";
|
|
244
252
|
import {
|
|
245
253
|
normalizeErrorMessage
|
|
246
254
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -250,7 +258,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
250
258
|
import "./chunk-M2WBOQ2Q.js";
|
|
251
259
|
|
|
252
260
|
// src/commands/render.ts
|
|
253
|
-
import { mkdtempSync, readdirSync, readFileSync as
|
|
261
|
+
import { mkdtempSync, readdirSync as readdirSync2, readFileSync as readFileSync5, statSync as statSync2, writeFileSync as writeFileSync2, rmSync } from "fs";
|
|
254
262
|
|
|
255
263
|
// src/commands/render/plan.ts
|
|
256
264
|
import { statSync } from "fs";
|
|
@@ -691,6 +699,7 @@ function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
|
|
|
691
699
|
resumeSegments: args.resume ?? false,
|
|
692
700
|
keepSegments: args["keep-segments"] ?? false,
|
|
693
701
|
bestEffort: args["best-effort"] ?? true,
|
|
702
|
+
waitForRenderSlot: args.wait ?? true,
|
|
694
703
|
batchJson,
|
|
695
704
|
effectiveQuiet: quiet || batchJson,
|
|
696
705
|
strictAll: args["strict-all"] ?? false,
|
|
@@ -783,8 +792,259 @@ async function warnForSlideshow(plan) {
|
|
|
783
792
|
}
|
|
784
793
|
}
|
|
785
794
|
|
|
795
|
+
// src/utils/renderLock.ts
|
|
796
|
+
import { existsSync as existsSync2 } from "fs";
|
|
797
|
+
import { dirname as dirname3 } from "path";
|
|
798
|
+
|
|
799
|
+
// src/utils/renderLockClaim.ts
|
|
800
|
+
import { chmodSync, existsSync, mkdirSync, unlinkSync as unlinkSync2 } from "fs";
|
|
801
|
+
|
|
802
|
+
// src/utils/renderLockOwners.ts
|
|
803
|
+
import { randomBytes } from "crypto";
|
|
804
|
+
import { readdirSync, readFileSync as readFileSync3, unlinkSync, writeFileSync } from "fs";
|
|
805
|
+
import { basename, dirname as dirname2, join as join2 } from "path";
|
|
806
|
+
var markerPrefix = (lockPath) => `${basename(lockPath)}.owner-`;
|
|
807
|
+
var HELD_CODES = new Set(process.platform === "win32" ? ["EPERM", "EBUSY", "EACCES"] : ["EBUSY"]);
|
|
808
|
+
var UNREMOVABLE_CODES = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "EBUSY"]);
|
|
809
|
+
var errorCode = (error) => error.code ?? "";
|
|
810
|
+
function isHeldError(error) {
|
|
811
|
+
return HELD_CODES.has(errorCode(error));
|
|
812
|
+
}
|
|
813
|
+
function startToken(pid) {
|
|
814
|
+
return process.platform === "win32" ? null : processIdentity(pid);
|
|
815
|
+
}
|
|
816
|
+
function writeOwnerMarker(lockPath, owner) {
|
|
817
|
+
const name = `${markerPrefix(lockPath)}${owner.pid}-${randomBytes(6).toString("hex")}`;
|
|
818
|
+
const marker = join2(dirname2(lockPath), name);
|
|
819
|
+
writeFileSync(marker, JSON.stringify(owner), { flag: "wx" });
|
|
820
|
+
return marker;
|
|
821
|
+
}
|
|
822
|
+
function removeIfPresent(marker) {
|
|
823
|
+
try {
|
|
824
|
+
unlinkSync(marker);
|
|
825
|
+
} catch (error) {
|
|
826
|
+
if (!UNREMOVABLE_CODES.has(errorCode(error))) throw error;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
function recordedIdentity(marker) {
|
|
830
|
+
try {
|
|
831
|
+
const owner = JSON.parse(readFileSync3(marker, "utf8"));
|
|
832
|
+
return typeof owner.identity === "string" ? owner.identity : null;
|
|
833
|
+
} catch {
|
|
834
|
+
return null;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
function sameProcess(pid, identity) {
|
|
838
|
+
if (!Number.isInteger(pid) || pid <= 0 || !alive(pid)) return false;
|
|
839
|
+
const current = identity && startToken(pid);
|
|
840
|
+
return !identity || !current || current === identity;
|
|
841
|
+
}
|
|
842
|
+
function liveOtherOwners(lockPath, own) {
|
|
843
|
+
const dir = dirname2(lockPath);
|
|
844
|
+
const prefix = markerPrefix(lockPath);
|
|
845
|
+
let live = 0;
|
|
846
|
+
for (const name of readdirSync(dir)) {
|
|
847
|
+
if (!name.startsWith(prefix)) continue;
|
|
848
|
+
const marker = join2(dir, name);
|
|
849
|
+
if (marker === own) continue;
|
|
850
|
+
if (sameProcess(Number(name.slice(prefix.length).split("-")[0]), recordedIdentity(marker))) {
|
|
851
|
+
live += 1;
|
|
852
|
+
} else removeIfPresent(marker);
|
|
853
|
+
}
|
|
854
|
+
return live;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// src/utils/renderLockClaim.ts
|
|
858
|
+
var RenderLockStaleBreak = class extends Error {
|
|
859
|
+
constructor(breakPath) {
|
|
860
|
+
super(
|
|
861
|
+
`A render that was reclaiming the render slot stopped part way and left ${breakPath}. No render is using it: delete that file, then run the render again.`
|
|
862
|
+
);
|
|
863
|
+
this.breakPath = breakPath;
|
|
864
|
+
this.name = "RenderLockStaleBreak";
|
|
865
|
+
}
|
|
866
|
+
breakPath;
|
|
867
|
+
};
|
|
868
|
+
var RenderLockUnwritable = class extends Error {
|
|
869
|
+
constructor(dir, cause) {
|
|
870
|
+
super(
|
|
871
|
+
`This account cannot write to ${dir}, where renders take their turn. If accounts share HYPERFRAMES_CACHE_DIR, make the folder writable for all of them (chmod 777 ${dir}); otherwise unset HYPERFRAMES_CACHE_DIR.`,
|
|
872
|
+
{ cause }
|
|
873
|
+
);
|
|
874
|
+
this.dir = dir;
|
|
875
|
+
this.name = "RenderLockUnwritable";
|
|
876
|
+
}
|
|
877
|
+
dir;
|
|
878
|
+
};
|
|
879
|
+
function ensureLockDir(dir) {
|
|
880
|
+
if (mkdirSync(dir, { recursive: true }) !== void 0 && process.platform !== "win32") {
|
|
881
|
+
chmodSync(dir, 511);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
var holderAlive = (holder) => sameProcess(holder.pid, holder.identity);
|
|
885
|
+
var sameRecord = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.identity === b.identity;
|
|
886
|
+
function createExclusive(path, holder) {
|
|
887
|
+
try {
|
|
888
|
+
createFileAtomically(path, JSON.stringify(holder));
|
|
889
|
+
return true;
|
|
890
|
+
} catch (error) {
|
|
891
|
+
if (error.code === "EEXIST") return false;
|
|
892
|
+
throw error;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
var writerAbsent = (file, lockPath, marker) => existsSync(file) && !readHolder(file) && liveOtherOwners(lockPath, marker) === 0;
|
|
896
|
+
async function takeOver(path, holder, observed, marker, beforeReplace) {
|
|
897
|
+
const breakPath = `${path}.break`;
|
|
898
|
+
if (!createExclusive(breakPath, holder)) {
|
|
899
|
+
const breaker = readHolder(breakPath);
|
|
900
|
+
if (breaker ? holderAlive(breaker) : !writerAbsent(breakPath, path, marker)) return false;
|
|
901
|
+
throw new RenderLockStaleBreak(breakPath);
|
|
902
|
+
}
|
|
903
|
+
try {
|
|
904
|
+
await beforeReplace?.();
|
|
905
|
+
const stillStale = observed ? sameRecord(readHolder(path), observed) : writerAbsent(path, path, marker);
|
|
906
|
+
if (stillStale) removeIfPresent(path);
|
|
907
|
+
return createExclusive(path, holder);
|
|
908
|
+
} finally {
|
|
909
|
+
if (sameRecord(readHolder(breakPath), holder)) unlinkSync2(breakPath);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
async function claimSlot(path, holder, marker, beforeReplace) {
|
|
913
|
+
if (createExclusive(path, holder)) return true;
|
|
914
|
+
const current = readHolder(path);
|
|
915
|
+
if (current ? holderAlive(current) : !writerAbsent(path, path, marker)) return false;
|
|
916
|
+
return takeOver(path, holder, current, marker, beforeReplace);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
// src/utils/renderLock.ts
|
|
920
|
+
var RenderLockBusy = class extends Error {
|
|
921
|
+
constructor(holder, path) {
|
|
922
|
+
super(`Another render is running (${describeRenderLockHolder(holder, Date.now())})`);
|
|
923
|
+
this.holder = holder;
|
|
924
|
+
this.path = path;
|
|
925
|
+
this.name = "RenderLockBusy";
|
|
926
|
+
}
|
|
927
|
+
holder;
|
|
928
|
+
path;
|
|
929
|
+
};
|
|
930
|
+
var POLL_MS = 1e3;
|
|
931
|
+
var renderLockPath = () => hyperframesCacheDir("locks", "render.lock");
|
|
932
|
+
function renderLockDisabled(env = process.env) {
|
|
933
|
+
const value = env.HYPERFRAMES_RENDER_LOCK?.trim().toLowerCase();
|
|
934
|
+
return value === "off" || value === "0" || value === "false";
|
|
935
|
+
}
|
|
936
|
+
function describeRenderLockHolder(holder, now) {
|
|
937
|
+
if (!holder) return "holder unknown";
|
|
938
|
+
const seconds = Math.max(0, Math.round((now - holder.startedAt) / 1e3));
|
|
939
|
+
const running = seconds >= 60 ? `${Math.floor(seconds / 60)}m ${seconds % 60}s` : `${seconds}s`;
|
|
940
|
+
return `pid ${holder.pid}, project ${holder.project}, running ${running}`;
|
|
941
|
+
}
|
|
942
|
+
function pause(ms, signal) {
|
|
943
|
+
return new Promise((resolve4, reject) => {
|
|
944
|
+
if (signal?.aborted) return reject(signal.reason);
|
|
945
|
+
const onAbort = () => {
|
|
946
|
+
clearTimeout(timer);
|
|
947
|
+
reject(signal?.reason);
|
|
948
|
+
};
|
|
949
|
+
const timer = setTimeout(() => {
|
|
950
|
+
signal?.removeEventListener("abort", onAbort);
|
|
951
|
+
resolve4();
|
|
952
|
+
}, ms);
|
|
953
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
var sameWaitTarget = (a, b) => a?.pid === b?.pid && a?.startedAt === b?.startedAt;
|
|
957
|
+
async function acquireRenderLock(options) {
|
|
958
|
+
if (renderLockDisabled(options.env)) return () => {
|
|
959
|
+
};
|
|
960
|
+
const contender = prepareContender(options);
|
|
961
|
+
let waitingBehind;
|
|
962
|
+
let retriedVanished = false;
|
|
963
|
+
for (; ; ) {
|
|
964
|
+
options.signal?.throwIfAborted();
|
|
965
|
+
const releaseSlot = await claimOnce(contender);
|
|
966
|
+
if (releaseSlot) return releaseSlot;
|
|
967
|
+
const { path } = contender;
|
|
968
|
+
const current = readHolder(path);
|
|
969
|
+
retriedVanished = !current && !existsSync2(path) && !retriedVanished;
|
|
970
|
+
if (retriedVanished) continue;
|
|
971
|
+
if (!options.wait) throw new RenderLockBusy(current, path);
|
|
972
|
+
if (waitingBehind === void 0 || !sameWaitTarget(waitingBehind, current)) {
|
|
973
|
+
waitingBehind = current;
|
|
974
|
+
options.onWait?.(current, path);
|
|
975
|
+
}
|
|
976
|
+
await pause(options.pollMs ?? POLL_MS, options.signal);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
function prepareContender(options) {
|
|
980
|
+
const path = options.path ?? renderLockPath();
|
|
981
|
+
ensureLockDir(dirname3(path));
|
|
982
|
+
liveOtherOwners(path);
|
|
983
|
+
const pid = options.pid ?? process.pid;
|
|
984
|
+
const identity = startToken(pid);
|
|
985
|
+
return {
|
|
986
|
+
path,
|
|
987
|
+
holder: { pid, command: "render", startedAt: Date.now(), project: options.project, identity },
|
|
988
|
+
owner: { pid, identity },
|
|
989
|
+
claim: options.claim ?? ((lock, holder, marker) => claimSlot(lock, holder, marker, options.beforeReplace))
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
var notWritable = (error) => process.platform !== "win32" && ["EACCES", "EPERM"].includes(error.code ?? "");
|
|
993
|
+
async function claimOnce({ path, holder, owner, claim }) {
|
|
994
|
+
let marker;
|
|
995
|
+
try {
|
|
996
|
+
marker = writeOwnerMarker(path, owner);
|
|
997
|
+
} catch (error) {
|
|
998
|
+
throw notWritable(error) ? new RenderLockUnwritable(dirname3(path), error) : error;
|
|
999
|
+
}
|
|
1000
|
+
let held = false;
|
|
1001
|
+
try {
|
|
1002
|
+
held = await claim(path, holder, marker);
|
|
1003
|
+
} catch (error) {
|
|
1004
|
+
if (notWritable(error)) throw new RenderLockUnwritable(dirname3(path), error);
|
|
1005
|
+
if (!isHeldError(error)) throw error;
|
|
1006
|
+
} finally {
|
|
1007
|
+
if (!held) removeIfPresent(marker);
|
|
1008
|
+
}
|
|
1009
|
+
if (!held) return null;
|
|
1010
|
+
return () => {
|
|
1011
|
+
release(path, holder);
|
|
1012
|
+
removeIfPresent(marker);
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
// src/commands/render/renderSlot.ts
|
|
1017
|
+
async function acquireRenderSlot(plan, signal, lock = {}) {
|
|
1018
|
+
try {
|
|
1019
|
+
return await acquireRenderLock({
|
|
1020
|
+
project: plan.project.dir,
|
|
1021
|
+
wait: plan.waitForRenderSlot,
|
|
1022
|
+
signal,
|
|
1023
|
+
onWait: (holder, path) => console.error(
|
|
1024
|
+
c.warn(
|
|
1025
|
+
` Waiting for another render to finish (${describeRenderLockHolder(holder, Date.now())}). Renders run one at a time per user account; pass --no-wait to stop instead.`
|
|
1026
|
+
) + c.dim(`
|
|
1027
|
+
Lock: ${path}`)
|
|
1028
|
+
),
|
|
1029
|
+
...lock
|
|
1030
|
+
});
|
|
1031
|
+
} catch (error) {
|
|
1032
|
+
if (error instanceof RenderLockStaleBreak || error instanceof RenderLockUnwritable) {
|
|
1033
|
+
errorBox("The render slot cannot be taken", error.message);
|
|
1034
|
+
return failCommand(1, error);
|
|
1035
|
+
}
|
|
1036
|
+
if (!(error instanceof RenderLockBusy)) throw error;
|
|
1037
|
+
errorBox(
|
|
1038
|
+
"Another render is running for this user account",
|
|
1039
|
+
describeRenderLockHolder(error.holder, Date.now()),
|
|
1040
|
+
"Rerun without --no-wait to start when it finishes, or set HYPERFRAMES_RENDER_LOCK=off to render side by side. Set HYPERFRAMES_CACHE_DIR to a shared folder to share the slot across user accounts."
|
|
1041
|
+
);
|
|
1042
|
+
return failCommand(1, error);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
|
|
786
1046
|
// src/commands/render/execute.ts
|
|
787
|
-
import { readFileSync as
|
|
1047
|
+
import { readFileSync as readFileSync4 } from "fs";
|
|
788
1048
|
import { tmpdir } from "os";
|
|
789
1049
|
function renderLintContinuationHint(strictErrors) {
|
|
790
1050
|
return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
|
|
@@ -799,7 +1059,7 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
|
799
1059
|
let batchModule;
|
|
800
1060
|
let preparedBatch;
|
|
801
1061
|
if (plan.batchPath) {
|
|
802
|
-
batchModule = await import("./batchRender-
|
|
1062
|
+
batchModule = await import("./batchRender-5ZEQ6U4N.js");
|
|
803
1063
|
try {
|
|
804
1064
|
preparedBatch = batchModule.prepareBatchRender({
|
|
805
1065
|
batchPath: plan.batchPath,
|
|
@@ -821,6 +1081,19 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
|
821
1081
|
assertRenderActive(cancellation);
|
|
822
1082
|
await runResolutionPreflight(plan, dependencies.checkResolution);
|
|
823
1083
|
assertRenderActive(cancellation);
|
|
1084
|
+
const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
|
|
1085
|
+
try {
|
|
1086
|
+
assertRenderActive(cancellation);
|
|
1087
|
+
await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
|
|
1088
|
+
batchModule,
|
|
1089
|
+
preparedBatch
|
|
1090
|
+
});
|
|
1091
|
+
} finally {
|
|
1092
|
+
releaseSlot?.();
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
|
|
1096
|
+
const { batchModule, preparedBatch } = batch;
|
|
824
1097
|
if (plan.batchPath && batchModule && preparedBatch) {
|
|
825
1098
|
await executeBatchRender(
|
|
826
1099
|
plan,
|
|
@@ -832,6 +1105,12 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
|
832
1105
|
);
|
|
833
1106
|
return;
|
|
834
1107
|
}
|
|
1108
|
+
reportSingleRenderNotes(plan, variables);
|
|
1109
|
+
const options = renderOptionsFromPlan(plan, browserPath, variables);
|
|
1110
|
+
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
1111
|
+
await execute(plan.project.dir, plan.outputPath, options, cancellation);
|
|
1112
|
+
}
|
|
1113
|
+
function reportSingleRenderNotes(plan, variables) {
|
|
835
1114
|
if (variables && Object.keys(variables).length > 0) {
|
|
836
1115
|
const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
|
|
837
1116
|
reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
|
|
@@ -841,9 +1120,6 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
|
841
1120
|
c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
|
|
842
1121
|
);
|
|
843
1122
|
}
|
|
844
|
-
const options = renderOptionsFromPlan(plan, browserPath, variables);
|
|
845
|
-
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
846
|
-
await execute(plan.project.dir, plan.outputPath, options, cancellation);
|
|
847
1123
|
}
|
|
848
1124
|
function renderOptionsFromPlan(plan, browserPath, variables) {
|
|
849
1125
|
const options = {
|
|
@@ -900,7 +1176,7 @@ function assertRenderActive(cancellation) {
|
|
|
900
1176
|
cancellation?.signal.throwIfAborted();
|
|
901
1177
|
}
|
|
902
1178
|
async function refuseLowDiskBeforeBrowserDownload(plan) {
|
|
903
|
-
const { checkDisk } = await import("./preflight-
|
|
1179
|
+
const { checkDisk } = await import("./preflight-CZUKW3CW.js");
|
|
904
1180
|
await (await import("./manager-SAXHANEY.js")).sweepKilledInstalls();
|
|
905
1181
|
const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
|
|
906
1182
|
const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
|
|
@@ -999,7 +1275,7 @@ async function runResolutionPreflight(plan, checkResolution) {
|
|
|
999
1275
|
if (!plan.outputResolution) return;
|
|
1000
1276
|
let issue;
|
|
1001
1277
|
try {
|
|
1002
|
-
issue = await checkResolution(
|
|
1278
|
+
issue = await checkResolution(readFileSync4(plan.renderTarget, "utf8"), plan.outputResolution, {
|
|
1003
1279
|
alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
|
|
1004
1280
|
hdrRequested: plan.hdrMode === "force-hdr",
|
|
1005
1281
|
aspectAgnostic: plan.outputResolutionAspectAgnostic
|
|
@@ -1081,7 +1357,7 @@ async function executeBatchRender(plan, browserPath, batchModule, preparedBatch,
|
|
|
1081
1357
|
|
|
1082
1358
|
// src/commands/render.ts
|
|
1083
1359
|
import { freemem, tmpdir as tmpdir2 } from "os";
|
|
1084
|
-
import { resolve as resolve3, dirname as
|
|
1360
|
+
import { resolve as resolve3, dirname as dirname4, join as join3, basename as basename2 } from "path";
|
|
1085
1361
|
import { execFileSync as execFileSync2, spawn } from "child_process";
|
|
1086
1362
|
|
|
1087
1363
|
// src/utils/webmAlphaCheck.ts
|
|
@@ -1676,6 +1952,11 @@ var render_default = defineCommand({
|
|
|
1676
1952
|
description: "Allow output with structured capture-readiness warnings (default). Use --no-best-effort to fail on missing or unready media.",
|
|
1677
1953
|
default: true
|
|
1678
1954
|
},
|
|
1955
|
+
wait: {
|
|
1956
|
+
type: "boolean",
|
|
1957
|
+
description: "Wait while another render of this user account runs, then start (default): renders side by side starve each other. Use --no-wait to fail at once instead. Env: HYPERFRAMES_RENDER_LOCK=off lets renders run side by side; HYPERFRAMES_CACHE_DIR set to a shared folder shares the slot across user accounts.",
|
|
1958
|
+
default: true
|
|
1959
|
+
},
|
|
1679
1960
|
strict: {
|
|
1680
1961
|
type: "boolean",
|
|
1681
1962
|
description: "Fail render on lint errors",
|
|
@@ -1780,7 +2061,8 @@ var render_default = defineCommand({
|
|
|
1780
2061
|
{
|
|
1781
2062
|
renderDocker,
|
|
1782
2063
|
renderLocal,
|
|
1783
|
-
checkResolution: checkRenderResolutionPreflight
|
|
2064
|
+
checkResolution: checkRenderResolutionPreflight,
|
|
2065
|
+
acquireRenderSlot
|
|
1784
2066
|
},
|
|
1785
2067
|
cancellation
|
|
1786
2068
|
);
|
|
@@ -1864,8 +2146,8 @@ function ensureDockerImage(version, platform, quiet) {
|
|
|
1864
2146
|
}
|
|
1865
2147
|
if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
|
|
1866
2148
|
const dockerfilePath = resolveDockerfilePath();
|
|
1867
|
-
const tmpDir = mkdtempSync(
|
|
1868
|
-
|
|
2149
|
+
const tmpDir = mkdtempSync(join3(tmpdir2(), "hyperframes-docker-"));
|
|
2150
|
+
writeFileSync2(join3(tmpDir, "Dockerfile"), readFileSync5(dockerfilePath));
|
|
1869
2151
|
const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
|
|
1870
2152
|
try {
|
|
1871
2153
|
execFileSync2(
|
|
@@ -1936,8 +2218,8 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
1936
2218
|
errorBox(failure.title, failure.message, failure.hint);
|
|
1937
2219
|
failCommand();
|
|
1938
2220
|
}
|
|
1939
|
-
const outputDir =
|
|
1940
|
-
const outputFilename =
|
|
2221
|
+
const outputDir = dirname4(outputPath);
|
|
2222
|
+
const outputFilename = basename2(outputPath);
|
|
1941
2223
|
const dockerArgs = buildDockerRunArgs({
|
|
1942
2224
|
imageTag,
|
|
1943
2225
|
projectDir: resolve3(projectDir),
|
|
@@ -2077,7 +2359,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2077
2359
|
}
|
|
2078
2360
|
const preflight = await runEnvironmentChecks({
|
|
2079
2361
|
projectDir,
|
|
2080
|
-
diskPaths: [tmpdir2(),
|
|
2362
|
+
diskPaths: [tmpdir2(), dirname4(outputPath)],
|
|
2081
2363
|
browserPath: options.browserPath,
|
|
2082
2364
|
includeBrowser: true,
|
|
2083
2365
|
includeDisk: true,
|
|
@@ -2827,10 +3109,10 @@ function readOutputFootprint(outputPath) {
|
|
|
2827
3109
|
const stat = statSync2(outputPath);
|
|
2828
3110
|
if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
|
|
2829
3111
|
let total = 0;
|
|
2830
|
-
for (const entry of
|
|
3112
|
+
for (const entry of readdirSync2(outputPath, { withFileTypes: true })) {
|
|
2831
3113
|
if (!entry.isFile()) continue;
|
|
2832
3114
|
try {
|
|
2833
|
-
total += statSync2(
|
|
3115
|
+
total += statSync2(join3(outputPath, entry.name)).size;
|
|
2834
3116
|
} catch {
|
|
2835
3117
|
}
|
|
2836
3118
|
}
|