hyperframes 0.9.1 → 0.9.3
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-LA6SUF76.js → add-NWSVMTMY.js} +12 -12
- package/dist/{agentPromptGenerator-JJU55BVC.js → agentPromptGenerator-7WPRSD2B.js} +6 -6
- package/dist/{animatedGifPrep-AI2PWTUM.js → animatedGifPrep-ARJB7VKZ.js} +6 -6
- package/dist/api.js +19 -19
- package/dist/{asset-5Y5I2SRR.js → asset-PMV7EMPY.js} +2 -2
- package/dist/{assetCataloger-ZJL3QF7H.js → assetCataloger-CW5ZF3EA.js} +7 -7
- package/dist/{audio-PTC232QG.js → audio-AYMZG3JI.js} +14 -14
- package/dist/{auth-SSVSRIDE.js → auth-YCKUAZMW.js} +1 -1
- package/dist/{autoUpdate-RTYJ3N6U.js → autoUpdate-C3OVDSJ7.js} +2 -2
- package/dist/{backgroundChecks-5QXE3I27.js → backgroundChecks-27PYCU56.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-URRYTZUE.js → batchRender-PBG4CGXF.js} +3 -3
- package/dist/{beats-T3VU7WB6.js → beats-WETFDMWG.js} +8 -8
- package/dist/{benchmark-SHL3OH6E.js → benchmark-VIISD4NB.js} +8 -8
- package/dist/{browser-AHPIKCDX.js → browser-FWDS345L.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-YWOC66CY.js → bundleWithLocalizedFonts-KBSF7WWN.js} +2 -2
- package/dist/{capture-FMGRTD4U.js → capture-4XJA235Z.js} +11 -11
- package/dist/{capture-G4O5MXQB.js → capture-KLDMUL25.js} +3 -3
- package/dist/{captureCompositionFrame-BUPQVJVL.js → captureCompositionFrame-TL5DY3IC.js} +11 -11
- package/dist/{catalog-V6B6RXFE.js → catalog-O2JZGWCQ.js} +12 -12
- package/dist/{catch-up-7KLU3YPA.js → catch-up-4LHO7VC5.js} +4 -4
- package/dist/{check-VM7ET6MB.js → check-GH3ESQCJ.js} +39 -39
- package/dist/{checkAudio-RXWKXU62.js → checkAudio-GMQUD43Q.js} +9 -9
- package/dist/{checkBrowser-YH43NV46.js → checkBrowser-EXB55OSU.js} +32 -32
- package/dist/{chunk-X67ACTZ7.js → chunk-3EUFRJDT.js} +7 -4
- package/dist/{chunk-DRKW2UF7.js → chunk-3PPJNMDL.js} +1 -1
- package/dist/{chunk-RGM5BCE3.js → chunk-3SQLCJBU.js} +1 -1
- package/dist/{chunk-VV3F4QJP.js → chunk-3TSTVDBN.js} +1 -1
- package/dist/{chunk-DKEVSKLR.js → chunk-4JRB7Z3Y.js} +1 -1
- package/dist/{chunk-EEOCX42I.js → chunk-4NICETCR.js} +1 -1
- package/dist/{chunk-QM6CELHP.js → chunk-4YHANIGZ.js} +3 -3
- package/dist/{chunk-TEOGTHIZ.js → chunk-52IMFRLQ.js} +14 -13
- package/dist/{chunk-FWOYWSRK.js → chunk-6MSBCAWN.js} +3 -3
- package/dist/{chunk-UZJY5S6C.js → chunk-6YT7HWVE.js} +1 -1
- package/dist/{chunk-6P3WIVAB.js → chunk-A37ZYNF2.js} +1 -1
- package/dist/{chunk-CXDZE5PF.js → chunk-AOZGJMJV.js} +1 -1
- package/dist/{chunk-Z4QZCJPX.js → chunk-AQ7RL2LW.js} +2 -2
- package/dist/{chunk-ZFQSXMX6.js → chunk-BGHKFD3T.js} +1 -1
- package/dist/{chunk-P3TR5I66.js → chunk-BJWGYU5Y.js} +2 -2
- package/dist/{chunk-UZNF24QH.js → chunk-DV5HERBR.js} +2 -2
- package/dist/{chunk-466STTBD.js → chunk-ELWTUL6P.js} +2 -2
- package/dist/{chunk-AEQV7SBT.js → chunk-EP4SZ4Q7.js} +1 -1
- package/dist/{chunk-F53TMQSD.js → chunk-F6OEVGWZ.js} +1 -1
- package/dist/{chunk-HV23H4FI.js → chunk-FHZUYZE7.js} +1 -1
- package/dist/{chunk-MILRLELA.js → chunk-GDYVJQIZ.js} +13 -13
- package/dist/{chunk-MGWULMAO.js → chunk-GUZDUCWN.js} +2 -2
- package/dist/{chunk-3S26BVBZ.js → chunk-GYH3IKW2.js} +3 -3
- package/dist/{chunk-LIUJACWM.js → chunk-HYRFAJAT.js} +1 -1
- package/dist/{chunk-HBQLT4LW.js → chunk-J6ILNTQN.js} +1 -1
- package/dist/{chunk-MKK3VHR6.js → chunk-JDM247Z3.js} +7 -7
- package/dist/{chunk-MWFZDRBX.js → chunk-JGLOO2TU.js} +5 -5
- package/dist/{chunk-YQVLBT2P.js → chunk-K2A3YASA.js} +5 -5
- package/dist/{chunk-3BRY4FWJ.js → chunk-KLLMWGA6.js} +1 -1
- package/dist/{chunk-RL5WHPX3.js → chunk-KSX76LZR.js} +51 -33
- package/dist/{chunk-OOYETMCB.js → chunk-KW5QUEOQ.js} +19 -19
- package/dist/{chunk-DWUIMFJB.js → chunk-KXKSG7YI.js} +2 -2
- package/dist/{chunk-MU2KWMSZ.js → chunk-L3OZV3UQ.js} +2 -2
- package/dist/{chunk-LFZ3QUCU.js → chunk-LF6Y2NW2.js} +1 -1
- package/dist/{chunk-4EBPYENN.js → chunk-LQCC4C64.js} +9 -9
- package/dist/{chunk-YABUBACD.js → chunk-LYRR5QEW.js} +1 -1
- package/dist/{chunk-TFB3I26A.js → chunk-LZRMO35E.js} +1 -1
- package/dist/{chunk-XOANWVIT.js → chunk-M35ASY5D.js} +1 -1
- package/dist/{chunk-QVIWKU4E.js → chunk-M4ZBZSNI.js} +20 -8
- package/dist/chunk-MFSRGVZG.js +5030 -0
- package/dist/{chunk-3TTZHRQV.js → chunk-N3SUUHBH.js} +1 -1
- package/dist/{chunk-CIB53K5W.js → chunk-N5RKJQEH.js} +1 -1
- package/dist/{chunk-GFD2HHF2.js → chunk-NASVSJQK.js} +1 -0
- package/dist/{chunk-TCC5GD2O.js → chunk-NJG3TE3S.js} +3 -3
- package/dist/{chunk-V3LI4PZ7.js → chunk-NJQRQEDK.js} +2 -2
- package/dist/{chunk-DT4WPURD.js → chunk-NLDG4RPK.js} +1 -1
- package/dist/{chunk-3FZJ36DK.js → chunk-NNGOKPDX.js} +1 -1
- package/dist/{chunk-7Y7IIMYF.js → chunk-NZ35JIRT.js} +9 -9
- package/dist/{chunk-KIHELC2D.js → chunk-OS7TTSND.js} +1 -1
- package/dist/{chunk-6CZ24YJW.js → chunk-P6HALV2D.js} +1 -1
- package/dist/{chunk-VV5NU3XP.js → chunk-QN4CNGPQ.js} +1 -1
- package/dist/{chunk-RA6V3CEH.js → chunk-QUSKUXVE.js} +2 -2
- package/dist/{chunk-AGYOQ6FS.js → chunk-RX6JF3NL.js} +3 -3
- package/dist/{chunk-Q22ZZPA7.js → chunk-RXYZSD7A.js} +2 -2
- package/dist/{chunk-JEFQMJQR.js → chunk-RZMWWOS7.js} +1 -1
- package/dist/{chunk-UJFCWYS6.js → chunk-RZPY6MDM.js} +1 -1
- package/dist/{chunk-64SHPFOU.js → chunk-SK3PA7HC.js} +2 -2
- package/dist/{chunk-IOEZGUKO.js → chunk-SRYZBN4K.js} +2 -2
- package/dist/{chunk-EE3ZBV3S.js → chunk-SUCPNYHK.js} +50 -3
- package/dist/{chunk-WYKRGEDD.js → chunk-TABWG4IT.js} +8 -1
- package/dist/{chunk-SJ2GRRBB.js → chunk-TVHLRGPF.js} +7 -7
- package/dist/{chunk-KUU6CLU7.js → chunk-UBVGTHQP.js} +11 -8
- package/dist/{chunk-3BG7L7NU.js → chunk-UEZAP3BO.js} +1 -1
- package/dist/{chunk-743K5PLC.js → chunk-UNNWK2JI.js} +2 -2
- package/dist/{chunk-G3GYYN42.js → chunk-UPI2EEOL.js} +1 -1
- package/dist/{chunk-OYJPQJLV.js → chunk-UREVHKCW.js} +43 -3
- package/dist/{chunk-ZM5PG3S5.js → chunk-VCJ3RLHQ.js} +2 -2
- package/dist/{chunk-G6OKQMJI.js → chunk-VEIGTKYZ.js} +10 -1
- package/dist/{chunk-KVYAHFDT.js → chunk-VUANJYUD.js} +2 -2
- package/dist/{chunk-XYE4IIPM.js → chunk-WFMYK76M.js} +4 -4
- package/dist/{chunk-MKSOLUHC.js → chunk-WGY5AKV4.js} +1 -1
- package/dist/{chunk-LIP2WQZD.js → chunk-WJX4A3IH.js} +13 -13
- package/dist/{chunk-FG54EGT2.js → chunk-X5HZ56HA.js} +1 -1
- package/dist/{chunk-TQ7IBVEN.js → chunk-XMTPFGPD.js} +1 -1
- package/dist/{chunk-UFZ6CGVH.js → chunk-YMURBIUA.js} +47 -13
- package/dist/{chunk-ZHC2FFUL.js → chunk-YQLIUSY7.js} +3 -3
- package/dist/{chunk-IVNAVSZU.js → chunk-YXCDL3RD.js} +1 -1
- package/dist/{chunk-LXGQEXUG.js → chunk-Z3KQYFUV.js} +3 -3
- package/dist/{chunk-6TYB2NGI.js → chunk-ZG3N2RPH.js} +1 -1
- package/dist/{clean-MQDQZQYG.js → clean-LC6RS4IG.js} +17 -17
- package/dist/cli.js +62 -60
- package/dist/{cloud-C55BDE2U.js → cloud-PIRJVOK5.js} +4 -4
- package/dist/{cloudrun-SSR4U6SW.js → cloudrun-BYQPGHTF.js} +4 -4
- package/dist/{compare-3LAT2JAL.js → compare-2ADTV43G.js} +29 -29
- package/dist/{compiler-VG3XLVW5.js → compiler-UEPRJKBD.js} +3 -3
- package/dist/{component-DFEJJRMG.js → component-BE7DH74D.js} +3 -3
- package/dist/{compositions-3TV3ZLYE.js → compositions-HH34BEOX.js} +10 -10
- package/dist/{curve-ZEZYGDID.js → curve-JX44LODX.js} +10 -10
- package/dist/{cuts-3GFYYAB5.js → cuts-IIXW7MYG.js} +11 -11
- package/dist/{delete-SAJEM2GS.js → delete-HLYUSNAQ.js} +2 -2
- package/dist/{deploy-ITEXLN64.js → deploy-6TJ4IYL5.js} +1 -1
- package/dist/{describeProject-2AOSIR73.js → describeProject-RI2A2JDQ.js} +7 -7
- package/dist/{diff-KBY6U375.js → diff-KIYXNVXE.js} +22 -22
- package/dist/{dist-33RPV7WP.js → dist-6FIIUR6D.js} +2 -2
- package/dist/{dist-YZJ25VQL.js → dist-IHPMKRYN.js} +1 -1
- package/dist/{doctor-KPPD5QGL.js → doctor-BW5SXYD6.js} +10 -10
- package/dist/{energy-CMQOFKWI.js → energy-Q6U4IMQP.js} +11 -11
- package/dist/{events-NEEC6EWY.js → events-4IWKLOCR.js} +2 -2
- package/dist/{events-JJ56QYE7.js → events-FD7TXLK7.js} +12 -12
- package/dist/{events-E7PDBLVA.js → events-P5SAJJVG.js} +3 -3
- package/dist/{extract-QC4CVKFU.js → extract-P5TKDTTW.js} +11 -11
- package/dist/{face-BCGROEQN.js → face-3FTPC2ZL.js} +11 -11
- package/dist/{feedback-FRYTNOKI.js → feedback-NL5UYUHT.js} +6 -6
- package/dist/{ffmpeg-ECBNDC2O.js → ffmpeg-BOXLIJAQ.js} +6 -6
- package/dist/{figma-VNEBULDB.js → figma-XWTLQXZW.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{frames-2SW5DKKS.js → frames-ZILKTSKO.js} +12 -12
- package/dist/{generate-RICGYHAF.js → generate-7UKX6ABW.js} +13 -13
- package/dist/{get-QZ4FJSK4.js → get-6JV7KGTM.js} +2 -2
- package/dist/{gpuPolicy-ZNG3KI5O.js → gpuPolicy-C6SQ5IY3.js} +6 -6
- package/dist/{grade-compare-4MPYWWC3.js → grade-compare-AMTWNUT4.js} +30 -30
- package/dist/{heifImagePrep-PU55SI4G.js → heifImagePrep-VL7KOCKD.js} +7 -7
- package/dist/{help-WJHI4CY7.js → help-6TW5UXKE.js} +1 -1
- package/dist/{history-25V6X7K2.js → history-BBFCPEFJ.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-GEIOUKEJ.js → info-JACXETYM.js} +7 -7
- package/dist/{init-XIUMCSHF.js → init-JMYL22Y5.js} +27 -27
- package/dist/{ink-GC3PNMSW.js → ink-AW2XKRLO.js} +11 -11
- package/dist/{inspect-7N73GQLN.js → inspect-5WOMJTHH.js} +30 -30
- package/dist/{installer-76PUUFUA.js → installer-WRIPRO7P.js} +4 -4
- package/dist/{keyframes-KTFKX2D5.js → keyframes-GTBNJNY4.js} +6 -6
- package/dist/{lambda-C77S2WBA.js → lambda-Y4WNMTV5.js} +10 -10
- package/dist/{layout-OBZ3MIS6.js → layout-5KBIO2CY.js} +30 -30
- package/dist/{lint-6Z4AU6VJ.js → lint-YCZFN7EC.js} +7 -7
- package/dist/{lintProject-JCKFNQZM.js → lintProject-SG4KRUAV.js} +1 -1
- package/dist/{list-RWZ5PFV5.js → list-DQCQINX4.js} +2 -2
- package/dist/{localPage-3XYLIQKZ.js → localPage-GGIDTF4A.js} +6 -6
- package/dist/{login-NG3RBTGV.js → login-W6HPKUCC.js} +4 -4
- package/dist/{look-TVUFEWL2.js → look-J3EIOKIR.js} +11 -11
- package/dist/{manager-QUXH76BC.js → manager-GXCIO6AV.js} +7 -7
- package/dist/{measure-AG2ZSWIX.js → measure-CN2A3IZY.js} +11 -11
- package/dist/{media-treatment-IZ6NWGZY.js → media-treatment-UY5LCNM5.js} +12 -12
- package/dist/{media-use-6ECM25H6.js → media-use-DLUMWJDU.js} +1 -1
- package/dist/{models-JRLQQ6EJ.js → models-6JWAVFZX.js} +10 -10
- package/dist/{motionShot-I4AUSEQN.js → motionShot-2FNVPAXB.js} +14 -14
- package/dist/{normalize-audio-56ZQSWFL.js → normalize-audio-6KRLNKU5.js} +8 -8
- package/dist/{open-65XKMXFS.js → open-K5T3DAX5.js} +12 -12
- package/dist/{parakeetRunner-4TX6EWS5.js → parakeetRunner-FRVDYFI7.js} +11 -11
- package/dist/{pipeline-BJUOIKB4.js → pipeline-HZTSP2O3.js} +9 -9
- package/dist/{play-ZKZ2XWYK.js → play-QJGTMJJU.js} +21 -21
- package/dist/{preflight-2HVP2YKG.js → preflight-4UCEW3VI.js} +7 -7
- package/dist/{present-IFIEJJDE.js → present-HKTEDR2P.js} +16 -16
- package/dist/{preview-C22ZXQ7K.js → preview-LK4K5ET7.js} +18 -18
- package/dist/{probe-GFJCK7B6.js → probe-5FQQXNKV.js} +10 -10
- package/dist/{producer-SWMMOBS7.js → producer-GVXPQQ2H.js} +1 -1
- package/dist/{projectConfig-KQAF253E.js → projectConfig-HR6DG3LV.js} +7 -7
- package/dist/{publication-4TBCB2O6.js → publication-ZDDDABRK.js} +2 -2
- package/dist/{publish-BAG4KFYS.js → publish-UTSFWLH5.js} +10 -10
- package/dist/{remove-background-SPIM5UNR.js → remove-background-UCI5SJ7B.js} +10 -10
- package/dist/{render-HWXYMZMU.js → render-H66JS3A3.js} +5 -5
- package/dist/{render-ZXX3VCER.js → render-PXFSYPTM.js} +33 -33
- package/dist/{render-S2VA65IJ.js → render-RJLWIVGX.js} +15 -15
- package/dist/{render-batch-ATLJKRLE.js → render-batch-Q2LHYTF5.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-KU4XYZBR.js → resolver-6WC7RO7O.js} +5 -5
- package/dist/{sherpa-VI2AAWOK.js → sherpa-RPI2FY7W.js} +10 -10
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/skill-lifecycle.md +1 -1
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
- package/dist/skills/media-use/references/heygen.md +4 -4
- package/dist/{skills-F5GLTKRO.js → skills-5GES277Y.js} +5 -5
- package/dist/{skillsUpdateCheck-4US4SMPP.js → skillsUpdateCheck-B2M6U2XL.js} +3 -3
- package/dist/{snapshot-47DSSS6S.js → snapshot-KG7YZVMZ.js} +35 -35
- package/dist/{src-TTXATWIY.js → src-B644ONLF.js} +5 -5
- package/dist/{src-BADMTJQD.js → src-KYGXTF6B.js} +9 -9
- package/dist/{staticProjectServer-N2VV2CPE.js → staticProjectServer-G3D4J7AM.js} +19 -19
- package/dist/studio/assets/{hyperframes-player-D2rjxvnX.js → hyperframes-player-BHCO0AJz.js} +1 -1
- package/dist/studio/assets/{index-Dh1BiGcb.js → index-CWzE624c.js} +155 -155
- package/dist/studio/assets/{index-CgtbZxHa.js → index-VhjEqQ4-.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-4VZRUVAJ.js → studio-api-OEZIX2NY.js} +17 -10
- package/dist/{studioServer-J55HVAF6.js → studioServer-MRXZ7ESE.js} +49 -49
- package/dist/{sync-52R4DHUE.js → sync-CFHYEHZY.js} +11 -11
- package/dist/{telemetry-ELNF3NFD.js → telemetry-PEE4QWFW.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/{timeline-MWMMKAPM.js → timeline-PXGMJPF5.js} +20 -20
- package/dist/{tokens-NQB2AF4K.js → tokens-D4527YUF.js} +2 -2
- package/dist/{transcribe-ZUF2OFS4.js → transcribe-JAQAME5S.js} +17 -17
- package/dist/{transcribe-YHKJ4WYP.js → transcribe-K4AYVYPV.js} +9 -9
- package/dist/{updateCheck-JDBFGDEG.js → updateCheck-KK2T5QGE.js} +2 -2
- package/dist/{upgrade-REBAN2Q2.js → upgrade-WTE3UGLS.js} +2 -2
- package/dist/{urlDownloader-2HGS4OFI.js → urlDownloader-3OVTM6UV.js} +5 -5
- package/dist/{validate-HADI32OP.js → validate-PIGAXOXV.js} +23 -23
- package/dist/{video-3GOOXUVC.js → video-QKOH7GUF.js} +7 -7
- package/dist/warmCheck.js +39 -39
- package/package.json +1 -1
- package/dist/chunk-HIULMAN3.js +0 -5030
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BJWGYU5Y.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -9165,6 +9165,7 @@ ${right.raw}`)
|
|
|
9165
9165
|
const findings = [];
|
|
9166
9166
|
const canInheritFromHost = options.isSubComposition || rawSource.trimStart().toLowerCase().startsWith("<template");
|
|
9167
9167
|
for (const script of scripts) {
|
|
9168
|
+
if (script.index === -1) continue;
|
|
9168
9169
|
const content = script.content;
|
|
9169
9170
|
if (!/gsap\.timeline/.test(content)) continue;
|
|
9170
9171
|
const hasRegistration = WINDOW_TIMELINE_ASSIGN_PATTERN.test(content) || TIMELINE_REGISTRY_OBJECT_LITERAL_PATTERN.test(content);
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VCJ3RLHQ.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3TSTVDBN.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NASVSJQK.js";
|
|
24
24
|
import {
|
|
25
25
|
SPLIT_BOUNDARY_EPSILON_S,
|
|
26
26
|
readClipTiming,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4NICETCR.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-PEE4QWFW.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A37ZYNF2.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-T5ELONXY.js";
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RX6JF3NL.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A37ZYNF2.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GUZDUCWN.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SRYZBN4K.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
assertWebGpuAdapterAvailable,
|
|
36
36
|
compositionRequiresWebGpu,
|
|
37
37
|
oneProcessOverPipe
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UREVHKCW.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeErrorMessage
|
|
41
41
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-B644ONLF.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-G3D4J7AM.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-B644ONLF.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
225
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
|
|
226
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
227
227
|
const puppeteer = await import("puppeteer-core");
|
|
228
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-B644ONLF.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LF6Y2NW2.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AOZGJMJV.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3TSTVDBN.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YXCDL3RD.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-5LOZWO2M.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UREVHKCW.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3TSTVDBN.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UREVHKCW.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry
|
|
14
14
|
} from "./chunk-YWRUQ7XZ.js";
|
|
15
15
|
import {
|
|
16
16
|
parseAnimatedGifMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3TSTVDBN.js";
|
|
18
18
|
import {
|
|
19
19
|
parseHTML
|
|
20
20
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RXYZSD7A.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UREVHKCW.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UREVHKCW.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-B644ONLF.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-WTUIK6Y4.js";
|
|
10
10
|
import {
|
|
11
11
|
Fix
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EP4SZ4Q7.js";
|
|
13
13
|
import {
|
|
14
14
|
refreshIfNeeded,
|
|
15
15
|
resolveCloudAuthHeaders,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
// src/heygen/v3.ts
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { appendFileSync, existsSync, mkdirSync, readFileSync } from "fs";
|
|
30
|
-
import { join } from "path";
|
|
30
|
+
import { dirname, join } from "path";
|
|
31
31
|
var RUNNING = /* @__PURE__ */ new Set(["pending", "processing", "queued", "running", "waiting", "in_progress"]);
|
|
32
32
|
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
33
33
|
function idempotencyKey(route, parts) {
|
|
@@ -198,8 +198,55 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
|
198
198
|
}
|
|
199
199
|
return job;
|
|
200
200
|
}
|
|
201
|
+
var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
|
|
202
|
+
async function publicVoices(language, limit) {
|
|
203
|
+
const headers = {
|
|
204
|
+
...await resolveCloudAuthHeaders().catch(noSignIn),
|
|
205
|
+
accept: "application/json"
|
|
206
|
+
};
|
|
207
|
+
const query = new URLSearchParams({ type: "public", language, limit: String(limit) });
|
|
208
|
+
const res = await fetch(`${resolveCloudBaseUrl()}/v3/voices?${query}`, {
|
|
209
|
+
headers,
|
|
210
|
+
signal: AbortSignal.timeout(3e4)
|
|
211
|
+
}).catch((err) => {
|
|
212
|
+
throw new Fix(
|
|
213
|
+
`no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
|
|
214
|
+
"run the same command again"
|
|
215
|
+
);
|
|
216
|
+
});
|
|
217
|
+
const value = await res.json().catch(() => null);
|
|
218
|
+
if (!res.ok || !isRecord(value) || !Array.isArray(value.data))
|
|
219
|
+
throw new Fix(`HeyGen ${res.status} listing its voices`, "run the same command again");
|
|
220
|
+
return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
|
|
221
|
+
}
|
|
222
|
+
async function senderScope() {
|
|
223
|
+
return (await jobSender()).scope;
|
|
224
|
+
}
|
|
225
|
+
var picksFile = (projectDir) => projectDir ? join(projectDir, ".hyperframes", "heygen-jobs.jsonl") : join(configDir(), "heygen-voice-picks.jsonl");
|
|
226
|
+
function keptVoice(projectDir, request) {
|
|
227
|
+
const file = picksFile(projectDir);
|
|
228
|
+
if (!existsSync(file)) return void 0;
|
|
229
|
+
for (const line of readFileSync(file, "utf8").split("\n")) {
|
|
230
|
+
const entry = line ? JSON.parse(line) : null;
|
|
231
|
+
if (isRecord(entry) && entry.voice_pick === request && isVoice(entry.voice)) return entry.voice;
|
|
232
|
+
}
|
|
233
|
+
return void 0;
|
|
234
|
+
}
|
|
235
|
+
function keepVoice(projectDir, request, voice) {
|
|
236
|
+
const file = picksFile(projectDir);
|
|
237
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
238
|
+
appendFileSync(
|
|
239
|
+
file,
|
|
240
|
+
`${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), voice_pick: request, voice })}
|
|
241
|
+
`
|
|
242
|
+
);
|
|
243
|
+
}
|
|
201
244
|
|
|
202
245
|
export {
|
|
203
246
|
idempotencyKey,
|
|
204
|
-
runJob
|
|
247
|
+
runJob,
|
|
248
|
+
publicVoices,
|
|
249
|
+
senderScope,
|
|
250
|
+
keptVoice,
|
|
251
|
+
keepVoice
|
|
205
252
|
};
|
|
@@ -6,6 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/utils/didYouMean.ts
|
|
9
|
+
import { existsSync } from "fs";
|
|
9
10
|
function editDistance(a, b) {
|
|
10
11
|
let previous = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
11
12
|
for (let i = 1; i <= a.length; i++) {
|
|
@@ -54,9 +55,15 @@ function synonymMatch(input, candidates) {
|
|
|
54
55
|
const target = COMMAND_SYNONYMS[input];
|
|
55
56
|
return target !== void 0 && [...candidates].includes(target) ? target : void 0;
|
|
56
57
|
}
|
|
58
|
+
function fileHint(word, path, names) {
|
|
59
|
+
if (path.length === 0 || names.length === 0 || !existsSync(word)) return void 0;
|
|
60
|
+
const group = ["hyperframes", ...path].join(" ");
|
|
61
|
+
return `'${word}' is a file; name a command first: '${group} <${names.join("|")}> ${word}'.`;
|
|
62
|
+
}
|
|
57
63
|
|
|
58
64
|
export {
|
|
59
65
|
closestMatch,
|
|
60
66
|
closestNames,
|
|
61
|
-
synonymMatch
|
|
67
|
+
synonymMatch,
|
|
68
|
+
fileHint
|
|
62
69
|
};
|
|
@@ -6,33 +6,33 @@ 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-J6ILNTQN.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KXKSG7YI.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SUCPNYHK.js";
|
|
20
20
|
import {
|
|
21
21
|
runFfmpeg
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EP4SZ4Q7.js";
|
|
23
23
|
import {
|
|
24
24
|
initialModelForLanguage,
|
|
25
25
|
transcribe
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6MSBCAWN.js";
|
|
27
27
|
import {
|
|
28
28
|
createRenderCancellationScope,
|
|
29
29
|
stoppedByCancelSignal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NLDG4RPK.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_MODEL,
|
|
33
33
|
findWhisper,
|
|
34
34
|
isWhisperUnavailable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KLLMWGA6.js";
|
|
36
36
|
import {
|
|
37
37
|
formatSrt,
|
|
38
38
|
formatVtt,
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KSX76LZR.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,23 +18,26 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M4ZBZSNI.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-A37ZYNF2.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LZRMO35E.js";
|
|
28
|
+
import {
|
|
29
|
+
openRangeEnd
|
|
30
|
+
} from "./chunk-VEIGTKYZ.js";
|
|
28
31
|
import {
|
|
29
32
|
listenOnBrowserSafePort
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UREVHKCW.js";
|
|
31
34
|
import {
|
|
32
35
|
stripSdrPngColourTags
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VCJ3RLHQ.js";
|
|
34
37
|
import {
|
|
35
38
|
PREVIEW_PROXY_BOX_PARAM,
|
|
36
39
|
parsePreviewProxyBox
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3TSTVDBN.js";
|
|
38
41
|
import {
|
|
39
42
|
decodeWellFormedEscapes
|
|
40
43
|
} from "./chunk-C2KEGBR3.js";
|
|
@@ -122,7 +125,7 @@ function serveFileWithRange(filePath, rangeHeader, res, contentType = getMimeTyp
|
|
|
122
125
|
if (match) {
|
|
123
126
|
const hasStart = match[1] !== "";
|
|
124
127
|
start = hasStart ? Number(match[1]) : Math.max(0, size - Number(match[2]));
|
|
125
|
-
end = !hasStart ? last : match[2] !== "" ? Math.min(Number(match[2]), last) : last;
|
|
128
|
+
end = !hasStart ? last : match[2] !== "" ? Math.min(Number(match[2]), last) : openRangeEnd(start, last, contentType);
|
|
126
129
|
if (start > end || start > last) {
|
|
127
130
|
res.writeHead(416, { ...headers, "Content-Range": `bytes */${size}` });
|
|
128
131
|
res.end();
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LZRMO35E.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3TSTVDBN.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-3TSTVDBN.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-MFSRGVZG.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
} from "./chunk-WE42NVH7.js";
|
|
104
104
|
import {
|
|
105
105
|
resolveReferencedStart
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-NASVSJQK.js";
|
|
107
107
|
import {
|
|
108
108
|
FFMPEG_PATH_ENV,
|
|
109
109
|
FFPROBE_PATH_ENV,
|
|
@@ -2630,6 +2630,44 @@ function holdRenderFrameVideos(ids, renderIdAttr) {
|
|
|
2630
2630
|
}).observe(document, { childList: true, subtree: true });
|
|
2631
2631
|
}
|
|
2632
2632
|
|
|
2633
|
+
// ../engine/src/services/webglRelease.ts
|
|
2634
|
+
function recordWebglContexts() {
|
|
2635
|
+
const w = window;
|
|
2636
|
+
w.__hf_gl_contexts = [];
|
|
2637
|
+
const canvasProto = HTMLCanvasElement.prototype;
|
|
2638
|
+
const orig = canvasProto.getContext;
|
|
2639
|
+
canvasProto.getContext = function(type, attrs) {
|
|
2640
|
+
const ctx = orig.call(this, type, attrs);
|
|
2641
|
+
if (ctx && (type === "webgl" || type === "webgl2" || type === "experimental-webgl")) {
|
|
2642
|
+
const list = w.__hf_gl_contexts ?? [];
|
|
2643
|
+
if (!list.some((r) => r.ctx === ctx)) list.push({ canvas: this, ctx });
|
|
2644
|
+
w.__hf_gl_contexts = list;
|
|
2645
|
+
}
|
|
2646
|
+
return ctx;
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2649
|
+
async function releaseEndedWebglContexts(page, time) {
|
|
2650
|
+
return page.evaluate((t) => {
|
|
2651
|
+
const clipWindow = window.__hf?.clipWindow;
|
|
2652
|
+
if (!clipWindow) return 0;
|
|
2653
|
+
const hasEnded = (el) => {
|
|
2654
|
+
for (let up = el; up; up = up.parentElement) {
|
|
2655
|
+
const span = up.hasAttribute("data-hf-clip-hidden") ? clipWindow(up) : null;
|
|
2656
|
+
if (span && Number.isFinite(span.end) && span.end <= t) return true;
|
|
2657
|
+
}
|
|
2658
|
+
return false;
|
|
2659
|
+
};
|
|
2660
|
+
const live = (window.__hf_gl_contexts ?? []).filter(
|
|
2661
|
+
(r) => !r.lost && hasEnded(r.canvas)
|
|
2662
|
+
);
|
|
2663
|
+
for (const rec of live) {
|
|
2664
|
+
rec.lost = true;
|
|
2665
|
+
rec.ctx.getExtension("WEBGL_lose_context")?.loseContext();
|
|
2666
|
+
}
|
|
2667
|
+
return live.length;
|
|
2668
|
+
}, time);
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2633
2671
|
// ../engine/src/services/drawElementCaptureError.ts
|
|
2634
2672
|
var DrawElementCaptureError = class extends Error {
|
|
2635
2673
|
frameIndex;
|
|
@@ -6044,6 +6082,7 @@ async function constructCaptureSession(input) {
|
|
|
6044
6082
|
}
|
|
6045
6083
|
});
|
|
6046
6084
|
await installMediaPageHooks(page, options);
|
|
6085
|
+
await page.evaluateOnNewDocument(recordWebglContexts);
|
|
6047
6086
|
if (useDrawElement) {
|
|
6048
6087
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
6049
6088
|
await page.evaluateOnNewDocument(instrumentAcceleratedCanvases);
|
|
@@ -7103,6 +7142,7 @@ async function prepareFrameForCapture(session, frameIndex, time, seekOptions, he
|
|
|
7103
7142
|
const seekStart = Date.now();
|
|
7104
7143
|
session.captureStep = "seeking the timeline";
|
|
7105
7144
|
const hasPendingComposite = await seekPageTimeline(page, quantizedTime, seekOptions);
|
|
7145
|
+
await releaseEndedWebglContexts(page, quantizedTime);
|
|
7106
7146
|
session.captureStep = "decoding CSS background images";
|
|
7107
7147
|
await decodeDynamicCssBackgroundImages(page);
|
|
7108
7148
|
const seekMs = Date.now() - seekStart;
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
warnUnknownEnumValues,
|
|
59
59
|
wrapInlineScriptWithErrorBoundary,
|
|
60
60
|
wrapScopedCompositionScript
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-MFSRGVZG.js";
|
|
62
62
|
import {
|
|
63
63
|
cssVariableName
|
|
64
64
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
collectExternalStyles,
|
|
71
71
|
lintHyperframeHtml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-NASVSJQK.js";
|
|
73
73
|
import {
|
|
74
74
|
readTextFile
|
|
75
75
|
} from "./chunk-WVRAFHJU.js";
|
|
@@ -122,7 +122,16 @@ function encoderJobOptions(opts) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
// ../studio-server/dist/chunk-6HAB346W.js
|
|
126
|
+
var MAX_OPEN_MEDIA_RANGE_BYTES = 4 * 1024 * 1024;
|
|
127
|
+
var isMedia = (contentType) => /^(audio|video)\//i.test(contentType);
|
|
128
|
+
function openRangeEnd(start, last, contentType) {
|
|
129
|
+
return isMedia(contentType) ? Math.min(last, start + MAX_OPEN_MEDIA_RANGE_BYTES - 1) : last;
|
|
130
|
+
}
|
|
131
|
+
|
|
125
132
|
export {
|
|
126
133
|
parseEncoderOptions,
|
|
127
|
-
encoderJobOptions
|
|
134
|
+
encoderJobOptions,
|
|
135
|
+
MAX_OPEN_MEDIA_RANGE_BYTES,
|
|
136
|
+
openRangeEnd
|
|
128
137
|
};
|