hyperframes 0.8.138 → 0.8.140
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-IZQPSHT5.js → add-7SPPQB64.js} +20 -22
- package/dist/{animatedGifPrep-MQF3GRFW.js → animatedGifPrep-HN3CJSFX.js} +15 -8
- package/dist/{asset-RNZX4ISG.js → asset-AZMFUTRL.js} +3 -3
- package/dist/{assetCataloger-5YRUY3PJ.js → assetCataloger-TQUWYLHE.js} +6 -3
- package/dist/{auth-LUELYGJ4.js → auth-XGY74R4A.js} +7 -7
- package/dist/{autoUpdate-ECMQWUU5.js → autoUpdate-44NTJBQU.js} +2 -2
- package/dist/{backgroundChecks-PBEJMSA3.js → backgroundChecks-ET4DJEPG.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-2GXKBPFQ.js → batchRender-HTWWNF3P.js} +11 -8
- package/dist/beat-analyzer.global.js +5 -2
- package/dist/{beats-AAAZVDOY.js → beats-4GYTZUZG.js} +24 -17
- package/dist/{benchmark-EI767IB4.js → benchmark-CJQHE3QN.js} +20 -23
- package/dist/{browser-KAA2VXYH.js → browser-NXOVPGDG.js} +14 -28
- package/dist/{bundleWithLocalizedFonts-MWDYAPGB.js → bundleWithLocalizedFonts-6PJP54TC.js} +5 -5
- package/dist/{capture-IRRHK6BT.js → capture-5EHGRJZM.js} +2 -2
- package/dist/{capture-VYT5NQQI.js → capture-EHOMO4MP.js} +22 -15
- package/dist/{catalog-FYTZ2ET6.js → catalog-PTX5Z52R.js} +28 -30
- package/dist/{catch-up-XH3OAKQR.js → catch-up-I45SPSCU.js} +11 -25
- package/dist/{check-MUMIOK5K.js → check-LJ7LG7OI.js} +72 -54
- package/dist/{checkBrowser-LKSZFOU6.js → checkBrowser-6EK5E4PG.js} +81 -36
- package/dist/chunk-24OWOBQH.js +3656 -0
- package/dist/{chunk-3F6YLT72.js → chunk-2GMKWYEH.js} +12 -12
- package/dist/{chunk-KRLYIT22.js → chunk-5IKJONRY.js} +1 -1
- package/dist/chunk-6IHWCZ3W.js +54 -0
- package/dist/{chunk-P5WDMFBB.js → chunk-6U3MN4HW.js} +5 -106
- package/dist/chunk-A4KQZXZI.js +116 -0
- package/dist/{chunk-MKVKVMUH.js → chunk-ABJNXQUA.js} +10 -10
- package/dist/{chunk-YGXLBX3N.js → chunk-ASW6NWON.js} +1 -1
- package/dist/chunk-B3I3XJ47.js +3711 -0
- package/dist/{chunk-FSSMOTMS.js → chunk-BJ5JWOES.js} +1 -1
- package/dist/{chunk-OBC75KXL.js → chunk-BQKEGPPL.js} +1 -1
- package/dist/{chunk-SHB5VDMH.js → chunk-BRITLL56.js} +1 -1
- package/dist/{chunk-VR5UQWGV.js → chunk-C2JUHIG5.js} +6 -6
- package/dist/{chunk-YNBXJWSD.js → chunk-DDQ4LOML.js} +1 -1
- package/dist/{chunk-HUZYBV2Z.js → chunk-DQNOPYAG.js} +1 -1
- package/dist/{chunk-JH556Q42.js → chunk-EDYBFSPE.js} +2 -2
- package/dist/{chunk-SIMYRD5P.js → chunk-F3SPK6SO.js} +78 -20
- package/dist/chunk-FXMKHHPO.js +123 -0
- package/dist/chunk-G75ENCEZ.js +283 -0
- package/dist/{chunk-MIOBYUXT.js → chunk-GQJZORQP.js} +1 -1
- package/dist/{chunk-Y6W4DVPS.js → chunk-HKCNZITN.js} +1 -1
- package/dist/{chunk-APMG37MX.js → chunk-IFY57LUW.js} +1 -1
- package/dist/{chunk-JOUVZO7M.js → chunk-IRBESGJ7.js} +4 -4
- package/dist/chunk-JFKL3WAE.js +161 -0
- package/dist/{chunk-WH6PRFNX.js → chunk-JSGANFFH.js} +12 -3
- package/dist/{chunk-S3S2LSZX.js → chunk-KDPYVTEU.js} +2 -1
- package/dist/{chunk-PHXBLIKK.js → chunk-KECV5G4V.js} +165 -59
- package/dist/{chunk-SDRKEYZV.js → chunk-KFQNMY36.js} +8 -8
- package/dist/{chunk-QPOK6I32.js → chunk-KJLY2SDJ.js} +2 -2
- package/dist/{chunk-SZITAGRK.js → chunk-KMKWRIMC.js} +1 -1
- package/dist/{chunk-UUMK6VME.js → chunk-KOEWEFHK.js} +1 -1
- package/dist/{chunk-HXXX6N2G.js → chunk-L2H2L22P.js} +2 -2
- package/dist/{chunk-DJMXTKKK.js → chunk-LQG6GPVK.js} +1 -1
- package/dist/{chunk-GJGVYREG.js → chunk-MHK5DE2P.js} +268 -1964
- package/dist/{chunk-W3KQCJVP.js → chunk-MTVDXB6S.js} +18 -289
- package/dist/{chunk-IRYC5BRO.js → chunk-MU6C2VP6.js} +7 -7
- package/dist/{chunk-P75OFLZN.js → chunk-MUINFURL.js} +2 -2
- package/dist/{chunk-L5E5ZN6G.js → chunk-PB3P4MKP.js} +1 -1
- package/dist/{chunk-PHRWQQOJ.js → chunk-PE2I3AFA.js} +1 -1
- package/dist/{chunk-DXHYACUC.js → chunk-PFJFHNU3.js} +3 -3
- package/dist/{chunk-KBUUCAIZ.js → chunk-PPKFM5WE.js} +2 -2
- package/dist/{chunk-RH5VML6E.js → chunk-PUBKHEEA.js} +13 -13
- package/dist/{chunk-R6C6URKB.js → chunk-QBK7WKHT.js} +8 -8
- package/dist/{chunk-I3BRUEKD.js → chunk-QG3PDRSO.js} +1 -1
- package/dist/{chunk-RLNB3JCY.js → chunk-QP3BRKGF.js} +1 -163
- package/dist/chunk-QZ3AZTXI.js +1740 -0
- package/dist/{chunk-GNHJ4ONK.js → chunk-SLEPCESN.js} +2 -2
- package/dist/chunk-T76PLPD6.js +57 -0
- package/dist/{chunk-7Y5SMPRV.js → chunk-TPECLKPA.js} +168 -165
- package/dist/{chunk-IC5L6L7K.js → chunk-TYT2TLJR.js} +1 -1
- package/dist/{chunk-ASPTQ6DT.js → chunk-U7E736AJ.js} +1 -1
- package/dist/chunk-UOFAE5RF.js +42 -0
- package/dist/chunk-USDEMXXL.js +110 -0
- package/dist/{chunk-5K33TNUJ.js → chunk-VVJFZU6B.js} +2 -2
- package/dist/{chunk-XQODEVF3.js → chunk-WKTHUC2R.js} +1 -1
- package/dist/{chunk-7OLMGFDN.js → chunk-WQBA3MH4.js} +3 -3
- package/dist/{chunk-STA43FMY.js → chunk-WY5OODN5.js} +71 -3855
- package/dist/{chunk-JCRJBB4E.js → chunk-X3X3VETN.js} +8 -8
- package/dist/{chunk-ZTZ7NCJT.js → chunk-XTFJOR3K.js} +1 -1
- package/dist/chunk-YA62XGXS.js +45 -0
- package/dist/{clean-LZPDOAV4.js → clean-Y3AQITOX.js} +29 -20
- package/dist/cli.js +55 -55
- package/dist/{cloud-RVAH5NNL.js → cloud-TDPOMBZF.js} +7 -7
- package/dist/{cloudrun-NFGM6TRT.js → cloudrun-FPAVAVHP.js} +11 -8
- package/dist/commands/layout-audit.browser.js +37 -8
- package/dist/commands/motion-signature.browser.js +51 -2
- package/dist/{compare-S3M5OAL2.js → compare-LHL225ND.js} +40 -31
- package/dist/{compiler-SZ4GTYFB.js → compiler-RTU3KTLF.js} +7 -3
- package/dist/{component-PR2WZTQ4.js → component-L2YX7J56.js} +4 -4
- package/dist/{compositions-6RYXH2UA.js → compositions-V2UZKG7S.js} +23 -16
- package/dist/{delete-EO7C3LQ6.js → delete-OXZEXUQY.js} +8 -8
- package/dist/{dist-RVC3JTID.js → dist-N33CM63P.js} +21 -15
- package/dist/{dist-OJTEVNJR.js → dist-NZSQCYOF.js} +3 -1
- package/dist/{doctor-UTCCMN32.js → doctor-MWTPSIVD.js} +20 -13
- package/dist/{events-RE3OR6KY.js → events-4TZGQZWF.js} +6 -22
- package/dist/{events-RCGWL4LI.js → events-7VJJGC3D.js} +10 -23
- package/dist/{feedback-V7C64JIR.js → feedback-HSGAPVN7.js} +67 -45
- package/dist/{figma-26LOX5PV.js → figma-AMC6FAK3.js} +6 -6
- package/dist/fontLocalizeCli.js +17 -10
- package/dist/{get-E2K2JRTV.js → get-Y7DFEFYM.js} +8 -8
- package/dist/{gpuPolicy-Z3PQN6ZK.js → gpuPolicy-A45VSUKR.js} +15 -8
- package/dist/{grade-compare-OTZDU463.js → grade-compare-ERSA3OUI.js} +40 -31
- package/dist/{gsapParser-2OL54XZ5.js → gsapParser-UP3PNPC2.js} +3 -2
- package/dist/{help-IRSQLNI5.js → help-TW2AADLZ.js} +4 -4
- package/dist/{history-G44U6762.js → history-DKGDSVWF.js} +12 -30
- package/dist/hyperframe-runtime.js +59 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +59 -59
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-KXQ2TAHX.js → info-I3NRRNX4.js} +17 -20
- package/dist/{init-7SXMLHJE.js → init-5Y3ZWZNF.js} +50 -41
- package/dist/{inspect-7JTINR25.js → inspect-BJQKBB3X.js} +39 -30
- package/dist/{installer-RH4E6WXT.js → installer-27K4JS2I.js} +8 -5
- package/dist/{keyframes-PIV573S6.js → keyframes-6V2NZO22.js} +14 -25
- package/dist/{lambda-GO5HAA4S.js → lambda-AIMF3K4A.js} +16 -13
- package/dist/{layout-N2736OO3.js → layout-YAPEBTU4.js} +39 -30
- package/dist/{lint-WUXZ5WWZ.js → lint-3LWWUIV7.js} +17 -23
- package/dist/{lintProject-ANMPLBIT.js → lintProject-LM3XZRPZ.js} +3 -1
- package/dist/{list-QF7AMX5F.js → list-NTSGEZJ6.js} +8 -8
- package/dist/{login-6RGSXHQJ.js → login-ZTDFGCCW.js} +9 -9
- package/dist/{logout-Q654A3SI.js → logout-GJXZQKOA.js} +5 -5
- package/dist/{media-treatment-T4KDEDYW.js → media-treatment-ARHX446F.js} +21 -20
- package/dist/{models-6JMNK3XI.js → models-VHNQVTHG.js} +20 -13
- package/dist/{motionShot-74WM7KF6.js → motionShot-35HCSNCI.js} +22 -15
- package/dist/{normalize-O76AC4HE.js → normalize-IGLHCWTF.js} +0 -4
- package/dist/{normalize-audio-ZZU36ZMD.js → normalize-audio-AUC73JH3.js} +13 -26
- package/dist/{open-G523K45B.js → open-C5LVNU3U.js} +11 -25
- package/dist/{pipeline-AKDGCWRE.js → pipeline-4GDTK54T.js} +15 -8
- package/dist/{play-SHIGXVON.js → play-U7UANF7Z.js} +38 -32
- package/dist/{preflight-6ERLORWK.js → preflight-Y5DN5D37.js} +3 -18
- package/dist/{present-QOYYNZCE.js → present-X6V6TX3E.js} +32 -26
- package/dist/{preview-KUXTDJL3.js → preview-K43RTRU2.js} +33 -26
- package/dist/{producer-CH33JXHK.js → producer-PVMFMW23.js} +1 -1
- package/dist/{projectConfig-NKIPRWAE.js → projectConfig-PI6MEN2T.js} +10 -7
- package/dist/{publication-4RBVVR5Z.js → publication-67C7KVTL.js} +6 -3
- package/dist/{publish-OLHR4Z4U.js → publish-RBV7EAMH.js} +27 -20
- package/dist/{refresh-K24ETHMA.js → refresh-MFITBIKV.js} +5 -5
- package/dist/{remove-background-NPKZSIPY.js → remove-background-Z2ECZX2Q.js} +22 -15
- package/dist/{render-UOKPAJNH.js → render-2GQMQBU3.js} +10 -7
- package/dist/{render-GYYGWYQC.js → render-EFU4BZRZ.js} +23 -26
- package/dist/{render-P4NWFUS7.js → render-YBS3XGRJ.js} +52 -32
- package/dist/{render-batch-ZDG3EXSD.js → render-batch-QC64OTB5.js} +11 -8
- package/dist/{renderCancellation-QYQLWHZY.js → renderCancellation-NTVU7IMB.js} +15 -8
- package/dist/renderSetupWorker.js +4 -2
- package/dist/{resolver-CWH3VVB7.js → resolver-GBWYG3EI.js} +8 -5
- package/dist/{sherpa-WEQE23S5.js → sherpa-ZW6PWJS4.js} +46 -14
- package/dist/sherpaWorker.js +11 -3
- package/dist/skills/hyperframes/references/capability-menu.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +5 -0
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/SKILL.md +6 -4
- package/dist/skills/media-use/audio/scripts/lib/host-audio.mjs +28 -0
- package/dist/skills/media-use/audio/scripts/lib/host-audio.test.mjs +106 -0
- package/dist/skills/media-use/references/setup-providers.md +3 -2
- package/dist/skills/media-use/scripts/lib/heygen-cli.mjs +21 -1
- package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +14 -0
- package/dist/skills/media-use/scripts/resolve.mjs +11 -6
- package/dist/{skills-BVONI6TC.js → skills-VKZAX5AS.js} +15 -30
- package/dist/{skillsUpdateCheck-KKDPTFM7.js → skillsUpdateCheck-PAY2OPDE.js} +3 -3
- package/dist/{snapshot-PWZFJEDR.js → snapshot-SD5R3NWX.js} +41 -32
- package/dist/{src-YO7MAWGD.js → src-7SSERHNP.js} +19 -11
- package/dist/{src-HH4C5GZV.js → src-RXTXL3VL.js} +16 -9
- package/dist/{staticProjectServer-PR5INXSA.js → staticProjectServer-XELJXX4J.js} +24 -16
- package/dist/{status-AK67DTED.js → status-JA6SKQVH.js} +7 -24
- package/dist/studio/assets/{hyperframes-player-B30apksz.js → hyperframes-player-BLuyxnK7.js} +1 -1
- package/dist/studio/assets/{index-DXVvWfQG.js → index-CWfuDCoA.js} +1 -1
- package/dist/studio/assets/{index-DIJuIBwI.js → index-Dr3Bo9uH.js} +1 -1
- package/dist/studio/assets/{index-BdjA0CLD.js → index-VAHDM_zL.js} +210 -210
- package/dist/studio/{chunk-4S3AYCOG.js → chunk-H2DUOXTF.js} +3 -2
- package/dist/studio/{chunk-TDWGXBUT.js → chunk-TFLU2MGI.js} +1 -6
- package/dist/studio/chunk-TFLU2MGI.js.map +1 -0
- package/dist/studio/{chunk-7UQWVN52.js → chunk-UYWON5AX.js} +2 -2
- package/dist/studio/{domEditingLayers-IEVLO54Z.js → domEditingLayers-KBTPQKGA.js} +3 -3
- package/dist/studio/index.d.ts +20 -3
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +7327 -6265
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +2 -2
- package/dist/{studio-api-NFJMFAB7.js → studio-api-4FNUZPJ4.js} +40 -28
- package/dist/{studioServer-TQZVCIEL.js → studioServer-GHLL3F2M.js} +99 -68
- package/dist/{system-ZWIBWWE6.js → system-OQLOGGPJ.js} +2 -19
- package/dist/{telemetry-63L2ORO3.js → telemetry-7AO77PMH.js} +8 -23
- package/dist/{timeline-QKZQL5DJ.js → timeline-6LTHSRXM.js} +32 -22
- package/dist/{tokens-ELK62U4A.js → tokens-K6B46KNL.js} +3 -3
- package/dist/{transcribe-OSK7HEOJ.js → transcribe-CLLISRLZ.js} +18 -9
- package/dist/{transcribe-VKSXTM7K.js → transcribe-K2OU6FZF.js} +37 -78
- package/dist/{updateCheck-PM4FEI7P.js → updateCheck-X6UQBS6I.js} +2 -2
- package/dist/{upgrade-G635QCNO.js → upgrade-BZFKEADI.js} +5 -5
- package/dist/{urlDownloader-MVYQTP73.js → urlDownloader-VAVUXYEQ.js} +14 -7
- package/dist/{validate-AZTMI3HR.js → validate-VO5KEXWN.js} +26 -19
- package/dist/{video-H56FK33V.js → video-JV6Y4UJR.js} +18 -11
- package/package.json +1 -1
- package/dist/chunk-UINDCCO7.js +0 -3742
- package/dist/studio/chunk-TDWGXBUT.js.map +0 -1
- package/dist/{chunk-I465DBM6.js → chunk-246MOR5U.js} +3 -3
- package/dist/{deploy-MX76RZ36.js → deploy-5G4Z6LPA.js} +1 -1
- package/dist/{destroy-H2TZBYHH.js → destroy-GFQLTIY3.js} +1 -1
- package/dist/{docs-QAPJEGLS.js → docs-MPOM3PHH.js} +3 -3
- package/dist/{policies-FSDZVS2E.js → policies-4FEXMXPK.js} +3 -3
- package/dist/{progress-FBIEEB7Y.js → progress-5AM2MZ7V.js} +3 -3
- package/dist/{sites-TNVKZS73.js → sites-HZMADOA3.js} +1 -1
- package/dist/studio/{chunk-4S3AYCOG.js.map → chunk-H2DUOXTF.js.map} +0 -0
- package/dist/studio/{chunk-7UQWVN52.js.map → chunk-UYWON5AX.js.map} +0 -0
- package/dist/studio/{domEditingLayers-IEVLO54Z.js.map → domEditingLayers-KBTPQKGA.js.map} +0 -0
- package/dist/{telemetry-2YC4SGQU.js → telemetry-W5AKPI4R.js} +3 -3
- package/dist/{tts-FU35O6YB.js → tts-TOHSPWEG.js} +4 -4
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
EncoderInterruptedError,
|
|
17
17
|
encoderFailureError,
|
|
18
18
|
prepareAnimatedGifInputs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SLEPCESN.js";
|
|
20
20
|
import {
|
|
21
21
|
createStudioPositionSeekReapplyScript
|
|
22
22
|
} from "./chunk-KC5XXX3X.js";
|
|
@@ -28,7 +28,6 @@ import {
|
|
|
28
28
|
HF_AUDIO_GROUP_TAG,
|
|
29
29
|
HLS_MASTER_PLAYLIST,
|
|
30
30
|
HLS_VIDEO_PLAYLIST,
|
|
31
|
-
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
32
31
|
MIXED_AUDIO_FILENAME,
|
|
33
32
|
ManagedChildProcess,
|
|
34
33
|
NotMediaPayloadError,
|
|
@@ -87,13 +86,11 @@ import {
|
|
|
87
86
|
formatHdrAutoPromotionWarning,
|
|
88
87
|
frameFileExtension,
|
|
89
88
|
getCapturePerfSummary,
|
|
90
|
-
getCgroupMemoryLimitMb,
|
|
91
89
|
getCompositionDuration,
|
|
92
90
|
getDrawElementVerificationDetails,
|
|
93
91
|
getEncoderPreset,
|
|
94
92
|
getFfmpegBinary,
|
|
95
93
|
getFfprobeBinary,
|
|
96
|
-
getSystemTotalMb,
|
|
97
94
|
groupIntoLayers,
|
|
98
95
|
initTransparentBackground,
|
|
99
96
|
initializeSession,
|
|
@@ -144,7 +141,22 @@ import {
|
|
|
144
141
|
validateEngineConfigSnapshot,
|
|
145
142
|
verifyDiskDrawElementSamples,
|
|
146
143
|
writeCapturedFrame
|
|
147
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-TPECLKPA.js";
|
|
145
|
+
import {
|
|
146
|
+
assignBundledRuntimeCompositionIds,
|
|
147
|
+
buildVariablesByCompScript,
|
|
148
|
+
emitMountedModuleScripts,
|
|
149
|
+
emitRootCompositionVariableStyles,
|
|
150
|
+
ensureExternalLinkTag,
|
|
151
|
+
ensureExternalScriptTag,
|
|
152
|
+
inlineSubCompositions,
|
|
153
|
+
prepareFlattenedInnerRoot
|
|
154
|
+
} from "./chunk-6U3MN4HW.js";
|
|
155
|
+
import {
|
|
156
|
+
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
157
|
+
getCgroupMemoryLimitMb,
|
|
158
|
+
getSystemTotalMb
|
|
159
|
+
} from "./chunk-USDEMXXL.js";
|
|
148
160
|
import {
|
|
149
161
|
HF_VFX_ATTR,
|
|
150
162
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -157,12 +169,10 @@ import {
|
|
|
157
169
|
parseFps,
|
|
158
170
|
parseVfxChain,
|
|
159
171
|
readMediaStartBasis,
|
|
160
|
-
redactKnownPaths,
|
|
161
|
-
redactTelemetryString,
|
|
162
172
|
resolveAbsoluteMediaStartSeconds,
|
|
163
173
|
resolveAuthoredTimingWindow,
|
|
164
174
|
toFps
|
|
165
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-QP3BRKGF.js";
|
|
166
176
|
import {
|
|
167
177
|
CANVAS_DIMENSIONS,
|
|
168
178
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -174,20 +184,9 @@ import {
|
|
|
174
184
|
normalizeResolutionFlag,
|
|
175
185
|
suggestMatchingPreset
|
|
176
186
|
} from "./chunk-OZUQF4NB.js";
|
|
177
|
-
import {
|
|
178
|
-
assignBundledRuntimeCompositionIds,
|
|
179
|
-
buildVariablesByCompScript,
|
|
180
|
-
emitMountedModuleScripts,
|
|
181
|
-
emitRootCompositionVariableStyles,
|
|
182
|
-
ensureExternalLinkTag,
|
|
183
|
-
ensureExternalScriptTag,
|
|
184
|
-
inlineSubCompositions,
|
|
185
|
-
prepareFlattenedInnerRoot
|
|
186
|
-
} from "./chunk-P5WDMFBB.js";
|
|
187
187
|
import {
|
|
188
188
|
COMPOSITION_SOURCE_URL,
|
|
189
189
|
HF_COLOR_GRADING_ATTR,
|
|
190
|
-
MAX_AUDIO_GAIN,
|
|
191
190
|
MEDIA_RENDER_ID_ATTR,
|
|
192
191
|
assignMediaRenderIds,
|
|
193
192
|
clampDurations,
|
|
@@ -211,16 +210,25 @@ import {
|
|
|
211
210
|
shouldClampResolvedMediaDuration,
|
|
212
211
|
sourceTimeAt,
|
|
213
212
|
styleElementsFor
|
|
214
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-B3I3XJ47.js";
|
|
214
|
+
import {
|
|
215
|
+
MAX_AUDIO_GAIN
|
|
216
|
+
} from "./chunk-YA62XGXS.js";
|
|
217
|
+
import {
|
|
218
|
+
redactKnownPaths,
|
|
219
|
+
redactTelemetryString
|
|
220
|
+
} from "./chunk-T76PLPD6.js";
|
|
215
221
|
import {
|
|
216
222
|
chromeMajorCeiling
|
|
217
223
|
} from "./chunk-TWWSYAKJ.js";
|
|
224
|
+
import {
|
|
225
|
+
lintHyperframeHtml
|
|
226
|
+
} from "./chunk-WY5OODN5.js";
|
|
218
227
|
import {
|
|
219
228
|
isUnresolvedAssetPlaceholder,
|
|
220
|
-
lintHyperframeHtml,
|
|
221
229
|
readProjectFile,
|
|
222
230
|
resolveProjectRelativeSrc
|
|
223
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-JFKL3WAE.js";
|
|
224
232
|
import {
|
|
225
233
|
CSS_URL_RE,
|
|
226
234
|
checkSubCompositionUsability,
|
|
@@ -1166,10 +1174,11 @@ function applyRenderModeHints(alreadyForced, compiled, log = defaultLogger) {
|
|
|
1166
1174
|
});
|
|
1167
1175
|
return { forceScreenshot: true, autoSelected: true };
|
|
1168
1176
|
}
|
|
1169
|
-
function updateJobStatus(job, status, stage, progress, onProgress) {
|
|
1177
|
+
function updateJobStatus(job, status, stage, progress, onProgress, stageProgress) {
|
|
1170
1178
|
job.warnings ??= [];
|
|
1171
1179
|
job.status = status;
|
|
1172
1180
|
job.currentStage = stage;
|
|
1181
|
+
job.stageProgress = stageProgress;
|
|
1173
1182
|
const boundedProgress = Math.max(0, Math.min(100, Math.round(progress)));
|
|
1174
1183
|
job.progress = Math.max(job.progress, boundedProgress);
|
|
1175
1184
|
if (status === "failed" || status === "complete" || status === "cancelled") {
|
|
@@ -1181,15 +1190,54 @@ function updateJobStatus(job, status, stage, progress, onProgress) {
|
|
|
1181
1190
|
var PROGRESS_REPORT_INTERVAL_MS = 250;
|
|
1182
1191
|
var lastFrameReportAt = /* @__PURE__ */ new WeakMap();
|
|
1183
1192
|
var lastStartupReportAt = /* @__PURE__ */ new WeakMap();
|
|
1184
|
-
|
|
1193
|
+
var lastReportSent = /* @__PURE__ */ new WeakMap();
|
|
1194
|
+
function reportThrottled(lastReportAt, job, stage, progress, onProgress, force, stageProgress, status = "rendering") {
|
|
1185
1195
|
const now = Date.now();
|
|
1186
1196
|
const last = lastReportAt.get(job);
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
|
|
1197
|
+
const sent = `${stage}|${progress}`;
|
|
1198
|
+
const due = lastReportSent.get(job) !== sent && (force || last === void 0 || now - last >= PROGRESS_REPORT_INTERVAL_MS);
|
|
1199
|
+
if (due) {
|
|
1200
|
+
lastReportAt.set(job, now);
|
|
1201
|
+
lastReportSent.set(job, sent);
|
|
1202
|
+
}
|
|
1203
|
+
updateJobStatus(job, status, stage, progress, due ? onProgress : void 0, stageProgress);
|
|
1204
|
+
}
|
|
1205
|
+
function reportFrameProgress(job, stage, progress, onProgress, done, total) {
|
|
1206
|
+
reportThrottled(lastFrameReportAt, job, stage, progress, onProgress, done === total, {
|
|
1207
|
+
code: "capture",
|
|
1208
|
+
done,
|
|
1209
|
+
total
|
|
1210
|
+
});
|
|
1190
1211
|
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1212
|
+
var lastEncodeReportAt = /* @__PURE__ */ new WeakMap();
|
|
1213
|
+
function reportEncodeProgress(job, done, total, onProgress, from) {
|
|
1214
|
+
if (total <= 0) return;
|
|
1215
|
+
const frames = Math.min(done, total);
|
|
1216
|
+
reportThrottled(
|
|
1217
|
+
lastEncodeReportAt,
|
|
1218
|
+
job,
|
|
1219
|
+
`Encoding frame ${frames}/${total}`,
|
|
1220
|
+
from + (90 - from) * frames / total,
|
|
1221
|
+
onProgress,
|
|
1222
|
+
frames === total,
|
|
1223
|
+
{ code: "encode", done: frames, total },
|
|
1224
|
+
"encoding"
|
|
1225
|
+
);
|
|
1226
|
+
}
|
|
1227
|
+
var lastAssembleReportAt = /* @__PURE__ */ new WeakMap();
|
|
1228
|
+
function reportAssembleProgress(job, done, total, onProgress) {
|
|
1229
|
+
if (total <= 0) return;
|
|
1230
|
+
const seconds = Math.min(done, total);
|
|
1231
|
+
reportThrottled(
|
|
1232
|
+
lastAssembleReportAt,
|
|
1233
|
+
job,
|
|
1234
|
+
"Assembling final video",
|
|
1235
|
+
90 + 9 * seconds / total,
|
|
1236
|
+
onProgress,
|
|
1237
|
+
seconds >= total,
|
|
1238
|
+
{ code: "assemble", done: seconds, total },
|
|
1239
|
+
"assembling"
|
|
1240
|
+
);
|
|
1193
1241
|
}
|
|
1194
1242
|
var workerPhasesByJob = /* @__PURE__ */ new WeakMap();
|
|
1195
1243
|
function reportWorkerStartup(job, progress, onProgress) {
|
|
@@ -1207,7 +1255,8 @@ function reportWorkerStartup(job, progress, onProgress) {
|
|
|
1207
1255
|
`Starting browsers (${ready}/${progress.activeWorkers} ready)`,
|
|
1208
1256
|
job.progress,
|
|
1209
1257
|
onProgress,
|
|
1210
|
-
false
|
|
1258
|
+
false,
|
|
1259
|
+
{ code: "start_browsers", done: ready, total: progress.activeWorkers }
|
|
1211
1260
|
);
|
|
1212
1261
|
}
|
|
1213
1262
|
var materializePathModule = {
|
|
@@ -3601,7 +3650,8 @@ async function runWorkerEncodePipelineLoop(session, totalFrames, job, currentEnc
|
|
|
3601
3650
|
`Streaming frame ${prev.idx + 1}/${totalFrames}`,
|
|
3602
3651
|
Math.round(25 + (prev.idx + 1) / totalFrames * 55),
|
|
3603
3652
|
onProgress,
|
|
3604
|
-
prev.idx + 1
|
|
3653
|
+
prev.idx + 1,
|
|
3654
|
+
totalFrames
|
|
3605
3655
|
);
|
|
3606
3656
|
};
|
|
3607
3657
|
const batchNRaw = Number(process.env.HF_DE_BATCH ?? "4");
|
|
@@ -3620,7 +3670,8 @@ async function runWorkerEncodePipelineLoop(session, totalFrames, job, currentEnc
|
|
|
3620
3670
|
`Streaming frame ${item.idx + 1}/${totalFrames}`,
|
|
3621
3671
|
Math.round(25 + (item.idx + 1) / totalFrames * 55),
|
|
3622
3672
|
onProgress,
|
|
3623
|
-
item.idx + 1
|
|
3673
|
+
item.idx + 1,
|
|
3674
|
+
totalFrames
|
|
3624
3675
|
);
|
|
3625
3676
|
}
|
|
3626
3677
|
};
|
|
@@ -3832,7 +3883,8 @@ async function runCaptureStreamingStage(input) {
|
|
|
3832
3883
|
`Streaming frame ${progress.capturedFrames}/${progress.totalFrames} (${workerCount} workers)`,
|
|
3833
3884
|
Math.round(25 + frameProgress * 55),
|
|
3834
3885
|
onProgress,
|
|
3835
|
-
progress.capturedFrames
|
|
3886
|
+
progress.capturedFrames,
|
|
3887
|
+
progress.totalFrames
|
|
3836
3888
|
);
|
|
3837
3889
|
},
|
|
3838
3890
|
onFrameBuffer,
|
|
@@ -3950,7 +4002,8 @@ async function runCaptureStreamingStage(input) {
|
|
|
3950
4002
|
`Streaming frame ${i + 1}/${totalFrames}`,
|
|
3951
4003
|
Math.round(progress),
|
|
3952
4004
|
onProgress,
|
|
3953
|
-
i + 1
|
|
4005
|
+
i + 1,
|
|
4006
|
+
totalFrames
|
|
3954
4007
|
);
|
|
3955
4008
|
}
|
|
3956
4009
|
}
|
|
@@ -3963,12 +4016,16 @@ async function runCaptureStreamingStage(input) {
|
|
|
3963
4016
|
await closeCaptureSession(session);
|
|
3964
4017
|
}
|
|
3965
4018
|
}
|
|
3966
|
-
const
|
|
4019
|
+
const encodeFrom = job.progress;
|
|
4020
|
+
const encodeResult = await currentEncoder.close(
|
|
4021
|
+
(frames) => reportEncodeProgress(job, frames, totalFrames, onProgress, encodeFrom)
|
|
4022
|
+
);
|
|
3967
4023
|
streamingEncoderClosed = true;
|
|
3968
4024
|
assertNotAborted();
|
|
3969
4025
|
if (!encodeResult.success) {
|
|
3970
4026
|
throw encoderFailureError("Streaming encode failed", encodeResult);
|
|
3971
4027
|
}
|
|
4028
|
+
reportEncodeProgress(job, totalFrames, totalFrames, onProgress, encodeFrom);
|
|
3972
4029
|
return {
|
|
3973
4030
|
success: true,
|
|
3974
4031
|
encodeMs: encodeResult.durationMs,
|
|
@@ -4034,7 +4091,8 @@ async function captureSegmentFrames(ctx, segment, encoder) {
|
|
|
4034
4091
|
`Streaming frame ${i + 1}/${ctx.totalFrames} (segment ${segment.index + 1}/${ctx.segmentCount}` + (ctx.skipped > 0 ? `, skipped ${ctx.skipped}` : "") + ")",
|
|
4035
4092
|
Math.round(25 + (i + 1) / ctx.totalFrames * 55),
|
|
4036
4093
|
ctx.onProgress,
|
|
4037
|
-
i + 1
|
|
4094
|
+
i + 1,
|
|
4095
|
+
ctx.totalFrames
|
|
4038
4096
|
);
|
|
4039
4097
|
}
|
|
4040
4098
|
}
|
|
@@ -8374,7 +8432,8 @@ async function runCaptureStage(input) {
|
|
|
8374
8432
|
`Capturing frame ${progress.capturedFrames}/${progress.totalFrames} (${progress.activeWorkers} workers)`,
|
|
8375
8433
|
Math.round(25 + frameProgress * 45),
|
|
8376
8434
|
onProgress,
|
|
8377
|
-
progress.capturedFrames
|
|
8435
|
+
progress.capturedFrames,
|
|
8436
|
+
progress.totalFrames
|
|
8378
8437
|
);
|
|
8379
8438
|
},
|
|
8380
8439
|
cfg: captureCfg,
|
|
@@ -8510,7 +8569,8 @@ async function captureSessionFrames(session, { input, rangeStart, rangeEnd, resu
|
|
|
8510
8569
|
`Capturing frame ${fileIndex + 1}/${rangeFrames}`,
|
|
8511
8570
|
Math.round(25 + (fileIndex + 1) / rangeFrames * 45),
|
|
8512
8571
|
onProgress,
|
|
8513
|
-
fileIndex + 1
|
|
8572
|
+
fileIndex + 1,
|
|
8573
|
+
rangeFrames
|
|
8514
8574
|
);
|
|
8515
8575
|
};
|
|
8516
8576
|
if (session.workerEncodeEnabled) {
|
|
@@ -8764,7 +8824,8 @@ async function runSequentialLayeredFrameLoop(input) {
|
|
|
8764
8824
|
`Layered composite frame ${i + 1}/${job.totalFrames}`,
|
|
8765
8825
|
Math.round(25 + (i + 1) / totalFrames * 55),
|
|
8766
8826
|
onProgress,
|
|
8767
|
-
i + 1
|
|
8827
|
+
i + 1,
|
|
8828
|
+
totalFrames
|
|
8768
8829
|
);
|
|
8769
8830
|
}
|
|
8770
8831
|
}
|
|
@@ -9061,7 +9122,8 @@ async function runHybridLayeredFrameLoop(input) {
|
|
|
9061
9122
|
`Layered composite frame ${framesWritten}/${job.totalFrames}`,
|
|
9062
9123
|
Math.round(25 + framesWritten / totalFrames * 55),
|
|
9063
9124
|
onProgress,
|
|
9064
|
-
framesWritten
|
|
9125
|
+
framesWritten,
|
|
9126
|
+
totalFrames
|
|
9065
9127
|
);
|
|
9066
9128
|
};
|
|
9067
9129
|
const poolRef = shaderPool;
|
|
@@ -9449,12 +9511,16 @@ async function runCaptureHdrStage(input) {
|
|
|
9449
9511
|
await closeCaptureSession(domSession);
|
|
9450
9512
|
domSessionClosed = true;
|
|
9451
9513
|
}
|
|
9452
|
-
const
|
|
9514
|
+
const encodeFrom = job.progress;
|
|
9515
|
+
const hdrEncodeResult = await hdrEncoder.close(
|
|
9516
|
+
(frames) => reportEncodeProgress(job, frames, totalFrames, onProgress, encodeFrom)
|
|
9517
|
+
);
|
|
9453
9518
|
hdrEncoderClosed = true;
|
|
9454
9519
|
assertNotAborted();
|
|
9455
9520
|
if (!hdrEncodeResult.success) {
|
|
9456
9521
|
throw encoderFailureError("HDR encode failed", hdrEncodeResult);
|
|
9457
9522
|
}
|
|
9523
|
+
reportEncodeProgress(job, totalFrames, totalFrames, onProgress, encodeFrom);
|
|
9458
9524
|
captureDurationMs = Date.now() - stageStart;
|
|
9459
9525
|
encodeMs = hdrEncodeResult.durationMs;
|
|
9460
9526
|
} catch (error) {
|
|
@@ -9625,6 +9691,14 @@ async function encodeGifFromDir(framesDir, framePattern, outputPath, input) {
|
|
|
9625
9691
|
rmSync6(input.palettePath, { force: true });
|
|
9626
9692
|
}
|
|
9627
9693
|
}
|
|
9694
|
+
function startEncodeProgress(job, stage, onProgress) {
|
|
9695
|
+
const total = job.totalFrames ?? 0;
|
|
9696
|
+
updateJobStatus(job, "encoding", stage, 75, onProgress, {
|
|
9697
|
+
code: "encode",
|
|
9698
|
+
...total > 0 && { done: 0, total }
|
|
9699
|
+
});
|
|
9700
|
+
return (frames = total) => reportEncodeProgress(job, frames, total, onProgress, 75);
|
|
9701
|
+
}
|
|
9628
9702
|
async function runEncodeStage(input) {
|
|
9629
9703
|
const {
|
|
9630
9704
|
job,
|
|
@@ -9650,7 +9724,7 @@ async function runEncodeStage(input) {
|
|
|
9650
9724
|
} = input;
|
|
9651
9725
|
const stage5Start = Date.now();
|
|
9652
9726
|
if (isPngSequence) {
|
|
9653
|
-
|
|
9727
|
+
const encoded = startEncodeProgress(job, "Writing PNG sequence", onProgress);
|
|
9654
9728
|
if (!existsSync14(outputPath)) mkdirSync7(outputPath, { recursive: true });
|
|
9655
9729
|
const captured = readdirSync4(framesDir).filter((name) => name.endsWith(".png")).sort();
|
|
9656
9730
|
if (captured.length === 0) {
|
|
@@ -9668,11 +9742,12 @@ async function runEncodeStage(input) {
|
|
|
9668
9742
|
`[Render] png-sequence: ${MIXED_AUDIO_FILENAME} sidecar written to ${outputPath}/${MIXED_AUDIO_FILENAME}`
|
|
9669
9743
|
);
|
|
9670
9744
|
}
|
|
9745
|
+
encoded();
|
|
9671
9746
|
return { encodeMs: Date.now() - stage5Start };
|
|
9672
9747
|
}
|
|
9673
9748
|
const engineCfg = input.engineConfig ?? job.config.producerConfig ?? resolveConfig();
|
|
9674
9749
|
if (isGif) {
|
|
9675
|
-
|
|
9750
|
+
const encoded = startEncodeProgress(job, "Encoding GIF", onProgress);
|
|
9676
9751
|
if (hasAudio) {
|
|
9677
9752
|
log.warn("[Render] GIF output does not support audio; audio tracks will be ignored.");
|
|
9678
9753
|
}
|
|
@@ -9691,9 +9766,10 @@ async function runEncodeStage(input) {
|
|
|
9691
9766
|
if (!encodeResult2.success) {
|
|
9692
9767
|
throw encoderFailureError("Encoding failed", encodeResult2);
|
|
9693
9768
|
}
|
|
9769
|
+
encoded();
|
|
9694
9770
|
return { encodeMs: Date.now() - stage5Start };
|
|
9695
9771
|
}
|
|
9696
|
-
|
|
9772
|
+
const onFramesEncoded = startEncodeProgress(job, "Encoding video", onProgress);
|
|
9697
9773
|
const baseScaledEncodeTimeout = Math.ceil((job.duration ?? 0) * 4e3);
|
|
9698
9774
|
const scaledEncodeTimeout = baseScaledEncodeTimeout * (job.config.quality === "high" ? 6 : 1);
|
|
9699
9775
|
const videoEngineCfg = scaledEncodeTimeout > engineCfg.ffmpegEncodeTimeout ? { ...engineCfg, ffmpegEncodeTimeout: scaledEncodeTimeout } : engineCfg;
|
|
@@ -9724,19 +9800,22 @@ async function runEncodeStage(input) {
|
|
|
9724
9800
|
encoderOpts,
|
|
9725
9801
|
chunkedEncodeSize,
|
|
9726
9802
|
abortSignal,
|
|
9727
|
-
videoEngineCfg
|
|
9803
|
+
videoEngineCfg,
|
|
9804
|
+
onFramesEncoded
|
|
9728
9805
|
) : await encodeFramesFromDir(
|
|
9729
9806
|
framesDir,
|
|
9730
9807
|
framePattern,
|
|
9731
9808
|
videoOnlyPath,
|
|
9732
9809
|
encoderOpts,
|
|
9733
9810
|
abortSignal,
|
|
9734
|
-
videoEngineCfg
|
|
9811
|
+
videoEngineCfg,
|
|
9812
|
+
onFramesEncoded
|
|
9735
9813
|
);
|
|
9736
9814
|
assertNotAborted();
|
|
9737
9815
|
if (!encodeResult.success) {
|
|
9738
9816
|
throw encoderFailureError("Encoding failed", encodeResult);
|
|
9739
9817
|
}
|
|
9818
|
+
onFramesEncoded();
|
|
9740
9819
|
return { encodeMs: Date.now() - stage5Start };
|
|
9741
9820
|
}
|
|
9742
9821
|
|
|
@@ -10151,7 +10230,22 @@ function recordLimiterAttenuation(job, audioLoweredDb) {
|
|
|
10151
10230
|
{ audioLoweredDb }
|
|
10152
10231
|
);
|
|
10153
10232
|
}
|
|
10233
|
+
function startAssembleProgress(job, seconds, onProgress) {
|
|
10234
|
+
updateJobStatus(job, "assembling", "Assembling final video", 90, onProgress, {
|
|
10235
|
+
code: "assemble",
|
|
10236
|
+
...seconds > 0 && { done: 0, total: seconds }
|
|
10237
|
+
});
|
|
10238
|
+
if (seconds <= 0) return void 0;
|
|
10239
|
+
return (done) => reportAssembleProgress(job, done, seconds, onProgress);
|
|
10240
|
+
}
|
|
10154
10241
|
async function runAssembleStage(input) {
|
|
10242
|
+
const { job, onProgress } = input;
|
|
10243
|
+
const seconds = job.duration ?? 0;
|
|
10244
|
+
const result = await assembleOutput(input, startAssembleProgress(job, seconds, onProgress));
|
|
10245
|
+
reportAssembleProgress(job, seconds, seconds, onProgress);
|
|
10246
|
+
return result;
|
|
10247
|
+
}
|
|
10248
|
+
async function assembleOutput(input, onSecondsWritten) {
|
|
10155
10249
|
const {
|
|
10156
10250
|
job,
|
|
10157
10251
|
videoOnlyPath,
|
|
@@ -10160,12 +10254,10 @@ async function runAssembleStage(input) {
|
|
|
10160
10254
|
hasAudio,
|
|
10161
10255
|
format,
|
|
10162
10256
|
abortSignal,
|
|
10163
|
-
assertNotAborted
|
|
10164
|
-
onProgress
|
|
10257
|
+
assertNotAborted
|
|
10165
10258
|
} = input;
|
|
10166
10259
|
const isHls = format === "hls";
|
|
10167
10260
|
const stage6Start = Date.now();
|
|
10168
|
-
updateJobStatus(job, "assembling", "Assembling final video", 90, onProgress);
|
|
10169
10261
|
if (hasAudio) {
|
|
10170
10262
|
const audioExtension = extname3(audioOutputPath);
|
|
10171
10263
|
const audioStem = audioExtension ? audioOutputPath.slice(0, -audioExtension.length) : audioOutputPath;
|
|
@@ -10192,7 +10284,8 @@ async function runAssembleStage(input) {
|
|
|
10192
10284
|
{
|
|
10193
10285
|
audioCodec: "aac"
|
|
10194
10286
|
},
|
|
10195
|
-
job.config.fps
|
|
10287
|
+
job.config.fps,
|
|
10288
|
+
onSecondsWritten
|
|
10196
10289
|
);
|
|
10197
10290
|
assertNotAborted();
|
|
10198
10291
|
if (!muxResult.success) {
|
|
@@ -10207,7 +10300,8 @@ async function runAssembleStage(input) {
|
|
|
10207
10300
|
outputPath,
|
|
10208
10301
|
abortSignal,
|
|
10209
10302
|
void 0,
|
|
10210
|
-
job.config.fps
|
|
10303
|
+
job.config.fps,
|
|
10304
|
+
onSecondsWritten
|
|
10211
10305
|
);
|
|
10212
10306
|
assertNotAborted();
|
|
10213
10307
|
if (!faststartResult.success) {
|
|
@@ -11339,7 +11433,9 @@ async function executeRenderPipeline(input) {
|
|
|
11339
11433
|
});
|
|
11340
11434
|
}
|
|
11341
11435
|
const stage1Start = Date.now();
|
|
11342
|
-
updateJobStatus(job, "preprocessing", "Compiling composition", 5, onProgress
|
|
11436
|
+
updateJobStatus(job, "preprocessing", "Compiling composition", 5, onProgress, {
|
|
11437
|
+
code: "compile"
|
|
11438
|
+
});
|
|
11343
11439
|
const compileResult = await observeRenderStage(
|
|
11344
11440
|
observability,
|
|
11345
11441
|
"compile",
|
|
@@ -11471,7 +11567,9 @@ async function executeRenderPipeline(input) {
|
|
|
11471
11567
|
compositionHash,
|
|
11472
11568
|
beginFrameStalled: probeResult.beginFrameStalled
|
|
11473
11569
|
});
|
|
11474
|
-
updateJobStatus(job, "preprocessing", "Extracting video frames", 10, onProgress
|
|
11570
|
+
updateJobStatus(job, "preprocessing", "Extracting video frames", 10, onProgress, {
|
|
11571
|
+
code: "extract_video"
|
|
11572
|
+
});
|
|
11475
11573
|
const compiledDir = join25(workDir, "compiled");
|
|
11476
11574
|
const extractResult = await observeRenderStage(
|
|
11477
11575
|
observability,
|
|
@@ -11549,7 +11647,9 @@ async function executeRenderPipeline(input) {
|
|
|
11549
11647
|
nativeHdrVideoCount: nativeHdrVideoIds.size,
|
|
11550
11648
|
nativeHdrImageCount: nativeHdrImageIds.size
|
|
11551
11649
|
});
|
|
11552
|
-
updateJobStatus(job, "preprocessing", "Processing audio tracks", 20, onProgress
|
|
11650
|
+
updateJobStatus(job, "preprocessing", "Processing audio tracks", 20, onProgress, {
|
|
11651
|
+
code: "process_audio"
|
|
11652
|
+
});
|
|
11553
11653
|
const audioResult = await observeRenderStage(
|
|
11554
11654
|
observability,
|
|
11555
11655
|
"audio_process",
|
|
@@ -11592,7 +11692,9 @@ async function executeRenderPipeline(input) {
|
|
|
11592
11692
|
);
|
|
11593
11693
|
}
|
|
11594
11694
|
const stage4Start = Date.now();
|
|
11595
|
-
updateJobStatus(job, "rendering", "Starting frame capture", 25, onProgress
|
|
11695
|
+
updateJobStatus(job, "rendering", "Starting frame capture", 25, onProgress, {
|
|
11696
|
+
code: "start_browsers"
|
|
11697
|
+
});
|
|
11596
11698
|
if (!fileServer) {
|
|
11597
11699
|
const fileServerStart = observability.stageStart("file_server", { reused: false });
|
|
11598
11700
|
try {
|
|
@@ -11618,7 +11720,9 @@ async function executeRenderPipeline(input) {
|
|
|
11618
11720
|
}
|
|
11619
11721
|
const framesDir = join25(workDir, "captured-frames");
|
|
11620
11722
|
if (!existsSync15(framesDir)) mkdirSync8(framesDir, { recursive: true });
|
|
11621
|
-
updateJobStatus(job, "rendering", "Checking browser GPU", 25, onProgress
|
|
11723
|
+
updateJobStatus(job, "rendering", "Checking browser GPU", 25, onProgress, {
|
|
11724
|
+
code: "start_browsers"
|
|
11725
|
+
});
|
|
11622
11726
|
const resolvedBrowserGpuMode = await resolveBrowserGpuMode(cfg.browserGpuMode, {
|
|
11623
11727
|
chromePath: resolveHeadlessShellPath(cfg),
|
|
11624
11728
|
browserTimeout: cfg.browserTimeout
|
|
@@ -11811,7 +11915,9 @@ async function executeRenderPipeline(input) {
|
|
|
11811
11915
|
}
|
|
11812
11916
|
});
|
|
11813
11917
|
if (job.config.workers === void 0 && totalFrames >= 60 && !htmlInCanvasDetected && !cfg.lowMemoryMode && !deInversionEligible && !deParallelRouterEligible) {
|
|
11814
|
-
updateJobStatus(job, "rendering", "Measuring capture speed", 25, onProgress
|
|
11918
|
+
updateJobStatus(job, "rendering", "Measuring capture speed", 25, onProgress, {
|
|
11919
|
+
code: "start_browsers"
|
|
11920
|
+
});
|
|
11815
11921
|
const outcome = await observeRenderStage(
|
|
11816
11922
|
observability,
|
|
11817
11923
|
"capture_calibration",
|
|
@@ -14213,7 +14319,7 @@ function startServer(options = {}) {
|
|
|
14213
14319
|
});
|
|
14214
14320
|
async function shutdown(signal) {
|
|
14215
14321
|
log.info(`Received ${signal}, shutting down`);
|
|
14216
|
-
const { drainBrowserPool } = await import("./src-
|
|
14322
|
+
const { drainBrowserPool } = await import("./src-7SSERHNP.js");
|
|
14217
14323
|
await drainBrowserPool().catch(() => {
|
|
14218
14324
|
});
|
|
14219
14325
|
const handle = await Promise.race([
|
|
@@ -15336,7 +15442,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
|
|
|
15336
15442
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
15337
15443
|
if (probeResult.probeSession) {
|
|
15338
15444
|
try {
|
|
15339
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
15445
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-7SSERHNP.js");
|
|
15340
15446
|
await closeCaptureSession2(probeResult.probeSession);
|
|
15341
15447
|
} catch (err) {
|
|
15342
15448
|
log.warn("[plan] probe session close failed", {
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
launchManagedBrowser,
|
|
12
12
|
resolveManagedGpuMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BQKEGPPL.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveDiagnosticNavigationTimeoutMs,
|
|
16
16
|
windowsChromeCrashRemediation
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TYT2TLJR.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveLocalBrowserGpuMode
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
c
|
|
23
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
20
|
+
} from "./chunk-PE2I3AFA.js";
|
|
24
21
|
import {
|
|
25
22
|
assertWebGpuAdapterAvailable,
|
|
26
23
|
compositionRequiresWebGpu
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TPECLKPA.js";
|
|
28
25
|
import {
|
|
29
26
|
normalizeErrorMessage
|
|
30
27
|
} from "./chunk-KNU5COPB.js";
|
|
28
|
+
import {
|
|
29
|
+
c
|
|
30
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
31
31
|
|
|
32
32
|
// src/capture/captureCompositionFrame.ts
|
|
33
33
|
import { spawn } from "child_process";
|
|
@@ -103,7 +103,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
103
103
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-CT3D67CG.js");
|
|
104
104
|
const browser = await ensureBrowser();
|
|
105
105
|
const puppeteer = await import("puppeteer-core");
|
|
106
|
-
const { buildChromeArgs } = await import("./src-
|
|
106
|
+
const { buildChromeArgs } = await import("./src-7SSERHNP.js");
|
|
107
107
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
108
108
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
109
109
|
const launch = async (executablePath) => {
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MHK5DE2P.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B3I3XJ47.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WKTHUC2R.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -221,7 +221,7 @@ var asset_default = defineCommand({
|
|
|
221
221
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
224
|
+
const { trackFigmaImport } = await import("./telemetry-7AO77PMH.js");
|
|
225
225
|
trackFigmaImport({
|
|
226
226
|
phase: "asset",
|
|
227
227
|
reused: results.every((r) => r.reused),
|