hyperframes 0.8.205 → 0.8.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/hyperframes.mjs +1 -0
- package/dist/{add-BA4AU262.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-VBPJZKFT.js} +21 -15
- package/dist/api.js +31 -31
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-KCDVTNC3.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-JKKOPBCF.js} +15 -14
- package/dist/{audio-KDBPEHRS.js → audio-OXQ3L6DW.js} +24 -24
- package/dist/{auth-IMPBZZXJ.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AN4HWKET.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-VTQJ4JH6.js → beats-UDLOEW6U.js} +21 -21
- package/dist/{benchmark-PBEWHJ5K.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-E7ANEHNU.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-MP7R72WU.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-XODFC4S4.js → capture-GLM2ACPM.js} +81 -41
- package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-A2A5MGQB.js} +19 -19
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-ORVCCEQR.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-SYAQOXTT.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-6SQR6SSA.js → check-WVY7SM7C.js} +50 -48
- package/dist/checkAudio-PLEQY3SZ.js +201 -0
- package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-XSZUA2DQ.js} +42 -41
- package/dist/{chunk-JFNB4CMI.js → chunk-526VSRZ4.js} +20 -8
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-CUGADCIV.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-TZ7MTRVJ.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-KBZSMKKD.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-GLBEBBS2.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-GSTFETKE.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-EXRHI43B.js → chunk-6KOHY5EP.js} +10 -9
- package/dist/{chunk-CU76YDPX.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-XNAIYEKD.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-6GAYBX5C.js → chunk-7RWUY3BJ.js} +64 -62
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-75WNFDRU.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-GBQCTZON.js → chunk-CVZO6TFE.js} +13 -43
- package/dist/{chunk-RQDVTUVD.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-KAIQPYCM.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-BTYT3RT3.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-OB7QARSN.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-V4K4BSCM.js → chunk-EHFZEKQM.js} +57 -5
- package/dist/{chunk-H4MSJ2NZ.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-FNBEYIZH.js → chunk-FVAI7AHF.js} +13 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-L6N2TLXR.js → chunk-H3LQ5X6Q.js} +84 -79
- package/dist/{chunk-MVXOY5RC.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-WB55EQNJ.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-G445Y3YG.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-IKYXXIMP.js → chunk-I2TDHVFV.js} +3 -3
- package/dist/{chunk-3N4T6I3O.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-AECL3B23.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-2FEOM3ZT.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-4UIEQIF4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-C4LV6L4Q.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-N7VQD4WB.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-EUFBE5BW.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-6NC4KBS2.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-J2E3VVOS.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-A42PDANH.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-T2UR3T4L.js → chunk-LK6KPVX2.js} +263 -74
- package/dist/{chunk-RWOWD3PW.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-UR6BAPOD.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-4RPCYGZG.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-AII6P2TC.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-26OI2B2X.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-SVVAUJPL.js → chunk-NHA4NRBE.js} +136 -25
- package/dist/{chunk-5F6B6KMK.js → chunk-NHL5CMO2.js} +18 -3
- package/dist/{chunk-NF6KI46X.js → chunk-NJNC2DQV.js} +31 -28
- package/dist/{chunk-I7IXUCKL.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-57I5KNTL.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-TOEIJ4WF.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-BA7MQJXG.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-7V7OUKTU.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-V2XXV2EH.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-BHOGXIBO.js → chunk-RPZNQV6D.js} +58 -826
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-HADQPG7O.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-32R2AFZ3.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-ZSUWGNIT.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-BZ727KLT.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-5PVPGWMH.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-TGS33LDU.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-UEOGIZ3Q.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-MASFRPCB.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-LSQM3NBR.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/chunk-VBPNCOD7.js +355 -0
- package/dist/{chunk-HQ3CFNHL.js → chunk-VH4PNYOS.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
- package/dist/{chunk-ZB6SCA4J.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-LQUMMPGK.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-6YYFNGCS.js → chunk-XULJBZ7K.js} +7 -4
- package/dist/chunk-YJK6HOL5.js +29 -0
- package/dist/{chunk-KVNXEAVT.js → chunk-ZCJ5EGLU.js} +30 -10
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-AECSY5LT.js → chunk-ZYGIDXAK.js} +569 -378
- package/dist/{clean-BW7NHQS5.js → clean-TL3IPJDN.js} +28 -28
- package/dist/cli.js +55 -55
- package/dist/{cloud-TZVXTWZO.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-KRIETALO.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-WYWHJ4CR.js → compare-MP5EOW4D.js} +40 -40
- package/dist/{compiler-ANIPXLJ7.js → compiler-NOPVLJ2S.js} +15 -15
- package/dist/{component-CY7DCX56.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-5YEB24E3.js → compositions-WKNZJY34.js} +19 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-6642PDON.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NZP6TZLS.js → deploy-HHCFOUFM.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-V2BGP46S.js → dist-L4Z4ZEYW.js} +7 -4
- package/dist/{dist-DGFC75NC.js → dist-NQEYA4ZX.js} +44 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-ZW4A2FS3.js → doctor-JDM65CP7.js} +20 -20
- package/dist/{events-NJU4VFDA.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-XRCHY2F6.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-NQLSZMES.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-4PZKSIGE.js} +15 -15
- package/dist/{figma-TJAMP2CI.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -18
- package/dist/{get-RRZ3O26X.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-E5FB2GFR.js} +13 -13
- package/dist/{grade-compare-P7PE3NAA.js → grade-compare-4GUAPJHE.js} +40 -40
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/heifImagePrep-C2RYIEER.js +53 -0
- package/dist/{help-6RELRVIW.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-GIIDYND3.js → history-WNFF6HGU.js} +108 -60
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +75 -68
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-LBUA2DXE.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-QUPXBONY.js → init-P6UWPUY3.js} +59 -58
- package/dist/{inspect-CL42DJZ4.js → inspect-MSRPF7ZO.js} +40 -39
- package/dist/inspection.js +4 -4
- package/dist/{installer-VR7XDLR3.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-LELLROMA.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-I6KFXWOO.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-NR6SNRZE.js → layout-CDY65XGA.js} +40 -39
- package/dist/{lint-DYEMSEQR.js → lint-CAUNBGPX.js} +13 -10
- package/dist/{lintProject-EA4NPL2X.js → lintProject-ZTSX3AWT.js} +7 -4
- package/dist/{list-RDURYO5U.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-VKLET5OL.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-IYT3THJN.js → manager-3JOHHPVR.js} +17 -17
- package/dist/{manager-7TSUZKXU.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4WP22CFN.js} +23 -23
- package/dist/{models-LLPVGC2E.js → models-HPWCHAZX.js} +28 -28
- package/dist/{motionShot-6A6HH6IK.js → motionShot-I7GDIROQ.js} +23 -23
- package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-J4ZT4X3C.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-ZYPBIA73.js} +25 -25
- package/dist/{pipeline-RRVLGALQ.js → pipeline-VNBMR6QU.js} +16 -16
- package/dist/{play-QGJSXUVM.js → play-7VI6A7KN.js} +42 -32
- package/dist/{preflight-SP2ZERBE.js → preflight-VWV7L45J.js} +17 -17
- package/dist/{present-UR4YBHMX.js → present-CSJGYOFF.js} +37 -27
- package/dist/{preview-6ENCRU4C.js → preview-B246ZTVO.js} +60 -45
- package/dist/{producer-OMHZRY6A.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-NGS7GJ47.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-6NYQA22Y.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-E6RE5VHB.js → publish-TJ4QVVSP.js} +18 -17
- package/dist/{remove-background-66PQRA7R.js → remove-background-LQ2V7W7N.js} +20 -20
- package/dist/{render-ZLRJUFMX.js → render-AWEEPG3F.js} +39 -37
- package/dist/{render-SBAZWXPO.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-IMSGS6BD.js → render-JLTNZ36U.js} +83 -51
- package/dist/{render-batch-MO7LYZSP.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-QMBVTAKT.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-JZRDL3OE.js → sherpa-4VZWVHWZ.js} +24 -24
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/{skills-YBTEWFYS.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5F5UV6H5.js → snapshot-Q7S2FTNG.js} +143 -77
- package/dist/{src-WWXYV2TS.js → src-CLAALR5W.js} +26 -19
- package/dist/{src-UTW3F2PM.js → src-ZOXUSGAP.js} +24 -12
- package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-DQ7PIDPA.js} +26 -26
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-dy6GQJn4.js → index-BF9YeBnC.js} +142 -142
- package/dist/studio/assets/{index-C8hp9Y7c.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BHZ3PHL2.js → studio-api-NUE227JM.js} +18 -18
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-AFUXWRB5.js → studioServer-HVOKP4VI.js} +81 -70
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QZHRXGRY.js} +30 -8
- package/dist/{telemetry-UYKOT4OJ.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-K5NLEMH4.js → timeline-WOQGXFRV.js} +28 -28
- package/dist/{tokens-FCOSWE2O.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-SIFMTW5W.js → transcribe-4U74P5TG.js} +22 -22
- package/dist/{transcribe-K2QTXDQR.js → transcribe-JZ3BO546.js} +32 -32
- package/dist/{tts-5I2AJNLM.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-TUPAJXQQ.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-L4775QID.js → urlDownloader-47JMOLNN.js} +12 -12
- package/dist/{validate-4HVVMEBV.js → validate-QBJ3SBS4.js} +32 -32
- package/dist/{video-4OGPF3IE.js → video-3ZAUNAR3.js} +17 -15
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-ZUQZP6QD.js +0 -3986
- package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LK6KPVX2.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-ZOXUSGAP.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeNewFileSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XMRA7CQG.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeSkillSlug
|
|
12
12
|
} from "./chunk-HVW7ABXD.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_REGISTRY_URL
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XKW4Z7BU.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/projectConfig.ts
|
|
18
18
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
} from "./chunk-DKPNNYBZ.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LPI7HX4G.js";
|
|
18
18
|
import {
|
|
19
19
|
requestCliExit
|
|
20
20
|
} from "./chunk-JVBRJMOP.js";
|
|
21
|
+
import {
|
|
22
|
+
processIsAlive
|
|
23
|
+
} from "./chunk-KGPLIH7B.js";
|
|
21
24
|
import {
|
|
22
25
|
withHyperframesBrowserMarker
|
|
23
26
|
} from "./chunk-K4MJX7SR.js";
|
|
24
27
|
import {
|
|
25
28
|
normalizeErrorMessage
|
|
26
29
|
} from "./chunk-T2EUWCJE.js";
|
|
27
|
-
import {
|
|
28
|
-
processIsAlive
|
|
29
|
-
} from "./chunk-KGPLIH7B.js";
|
|
30
30
|
|
|
31
31
|
// src/browser/windowsChromeWatchdog.ts
|
|
32
32
|
import { spawn } from "child_process";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NHA4NRBE.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -5,18 +5,20 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
|
+
// src/utils/port.ts
|
|
9
|
+
function parsePort(value, option = "--port") {
|
|
10
|
+
const message = `${option} must be an integer between 1 and 65535`;
|
|
11
|
+
if (!/^\d+$/.test(value)) throw new Error(message);
|
|
12
|
+
const port = Number(value);
|
|
13
|
+
if (port < 1 || port > 65535) throw new Error(message);
|
|
14
|
+
return port;
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
// src/utils/openBrowser.ts
|
|
9
18
|
import { spawn } from "child_process";
|
|
10
19
|
function parseRemoteDebuggingPort(value) {
|
|
11
20
|
if (value === void 0 || value === "") return void 0;
|
|
12
|
-
|
|
13
|
-
throw new Error("--remote-debugging-port must be an integer between 1 and 65535");
|
|
14
|
-
}
|
|
15
|
-
const port = Number(value);
|
|
16
|
-
if (port < 1 || port > 65535) {
|
|
17
|
-
throw new Error("--remote-debugging-port must be an integer between 1 and 65535");
|
|
18
|
-
}
|
|
19
|
-
return port;
|
|
21
|
+
return parsePort(value, "--remote-debugging-port");
|
|
20
22
|
}
|
|
21
23
|
function validateRemoteDebuggingPortDeps(deps) {
|
|
22
24
|
if (!deps.remoteDebuggingPort) return null;
|
|
@@ -55,6 +57,7 @@ function openBrowser(url, options = {}) {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export {
|
|
60
|
+
parsePort,
|
|
58
61
|
parseRemoteDebuggingPort,
|
|
59
62
|
validateRemoteDebuggingPortDeps,
|
|
60
63
|
openBrowser
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-MBRNA3UF.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
ancestor,
|
|
19
19
|
full,
|
|
20
|
+
fullAncestor,
|
|
20
21
|
simple
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WC4MTXGN.js";
|
|
22
23
|
import {
|
|
23
24
|
__toESM
|
|
24
25
|
} from "./chunk-M2WBOQ2Q.js";
|
|
@@ -1260,7 +1261,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
1260
1261
|
const mediaTime = time - start;
|
|
1261
1262
|
if (time >= start && time < end) {
|
|
1262
1263
|
if (Math.abs(media.currentTime - mediaTime) > 0.1) {
|
|
1263
|
-
media.currentTime = mediaTime;
|
|
1264
|
+
media.currentTime = mediaTime + ${Number(options.mediaElementLeadSeconds ?? 0)};
|
|
1264
1265
|
}
|
|
1265
1266
|
if (media.paused && !${timelineVar}.paused()) {
|
|
1266
1267
|
media.play().catch(function() {});
|
|
@@ -4701,43 +4702,152 @@ function parseProgram2(script) {
|
|
|
4701
4702
|
}
|
|
4702
4703
|
function literalString(node) {
|
|
4703
4704
|
if (node?.type === "Literal" && typeof node.value === "string") return node.value;
|
|
4704
|
-
if (node?.type === "TemplateLiteral" && node.expressions
|
|
4705
|
-
return node.quasis
|
|
4705
|
+
if (node?.type === "TemplateLiteral" && node.expressions.length === 0) {
|
|
4706
|
+
return node.quasis[0]?.value.cooked ?? void 0;
|
|
4706
4707
|
}
|
|
4707
4708
|
return void 0;
|
|
4708
4709
|
}
|
|
4709
4710
|
function memberName(node) {
|
|
4710
4711
|
if (node?.type !== "MemberExpression") return void 0;
|
|
4711
|
-
if (!node.computed && node.property
|
|
4712
|
+
if (!node.computed && node.property.type === "Identifier") return node.property.name;
|
|
4712
4713
|
return literalString(node.property);
|
|
4713
4714
|
}
|
|
4714
|
-
function
|
|
4715
|
-
|
|
4716
|
-
|
|
4715
|
+
function isFunctionScope(node) {
|
|
4716
|
+
return node.type === "Program" || node.type === "FunctionDeclaration" || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression" || node.type === "StaticBlock";
|
|
4717
|
+
}
|
|
4718
|
+
function isScope(node) {
|
|
4719
|
+
return isFunctionScope(node) || node.type === "BlockStatement" || node.type === "CatchClause" || node.type === "ForStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "SwitchStatement" || node.type === "ClassDeclaration" || node.type === "ClassExpression";
|
|
4720
|
+
}
|
|
4721
|
+
function declarePattern(pattern, initializer, scope, initializerScope = scope) {
|
|
4722
|
+
switch (pattern.type) {
|
|
4723
|
+
case "Identifier":
|
|
4724
|
+
if (initializer || !scope.bindings.has(pattern.name)) {
|
|
4725
|
+
scope.bindings.set(pattern.name, { initializer, scope: initializerScope });
|
|
4726
|
+
}
|
|
4727
|
+
break;
|
|
4728
|
+
case "RestElement":
|
|
4729
|
+
declarePattern(pattern.argument, null, scope);
|
|
4730
|
+
break;
|
|
4731
|
+
case "AssignmentPattern":
|
|
4732
|
+
declarePattern(pattern.left, null, scope);
|
|
4733
|
+
break;
|
|
4734
|
+
case "ArrayPattern":
|
|
4735
|
+
case "ObjectPattern":
|
|
4736
|
+
declarePatterns(destructuredPatterns(pattern), scope);
|
|
4737
|
+
break;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
function declarePatterns(patterns, scope) {
|
|
4741
|
+
for (const pattern of patterns) declarePattern(pattern, null, scope);
|
|
4742
|
+
}
|
|
4743
|
+
function destructuredPatterns(pattern) {
|
|
4744
|
+
if (pattern.type === "ObjectPattern") {
|
|
4745
|
+
return pattern.properties.map(
|
|
4746
|
+
(property) => property.type === "RestElement" ? property.argument : property.value
|
|
4747
|
+
);
|
|
4748
|
+
}
|
|
4749
|
+
return pattern.elements.filter((element) => element !== null);
|
|
4750
|
+
}
|
|
4751
|
+
function declareOptionalPattern(pattern, scope) {
|
|
4752
|
+
if (pattern) declarePattern(pattern, null, scope);
|
|
4753
|
+
}
|
|
4754
|
+
function declareScopedName(node, scope) {
|
|
4755
|
+
switch (node.type) {
|
|
4756
|
+
case "FunctionExpression":
|
|
4757
|
+
case "FunctionDeclaration":
|
|
4758
|
+
declareOptionalPattern(node.id, scope);
|
|
4759
|
+
declarePatterns(node.params, scope);
|
|
4760
|
+
break;
|
|
4761
|
+
case "ArrowFunctionExpression":
|
|
4762
|
+
declarePatterns(node.params, scope);
|
|
4763
|
+
break;
|
|
4764
|
+
case "ClassDeclaration":
|
|
4765
|
+
case "ClassExpression":
|
|
4766
|
+
declareOptionalPattern(node.id, scope);
|
|
4767
|
+
break;
|
|
4768
|
+
case "CatchClause":
|
|
4769
|
+
declareOptionalPattern(node.param, scope);
|
|
4770
|
+
break;
|
|
4771
|
+
case "ImportDeclaration":
|
|
4772
|
+
declarePatterns(
|
|
4773
|
+
node.specifiers.map((specifier) => specifier.local),
|
|
4774
|
+
scope
|
|
4775
|
+
);
|
|
4776
|
+
break;
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
function lookupBinding(name, scope) {
|
|
4780
|
+
for (let current = scope; current; current = current.parent) {
|
|
4781
|
+
const binding = current.bindings.get(name);
|
|
4782
|
+
if (binding) return binding;
|
|
4783
|
+
}
|
|
4784
|
+
return void 0;
|
|
4785
|
+
}
|
|
4786
|
+
function collectBindings(ast) {
|
|
4787
|
+
const root = { bindings: /* @__PURE__ */ new Map() };
|
|
4788
|
+
const scopes = new WeakMap([[ast, root]]);
|
|
4789
|
+
const scopeAt = (ancestors, functionOnly = false) => {
|
|
4790
|
+
let parent = root;
|
|
4791
|
+
let selected = root;
|
|
4792
|
+
for (const node of ancestors) {
|
|
4793
|
+
if (!isScope(node)) continue;
|
|
4794
|
+
let scope = scopes.get(node);
|
|
4795
|
+
if (!scope) {
|
|
4796
|
+
scope = { parent, bindings: /* @__PURE__ */ new Map() };
|
|
4797
|
+
scopes.set(node, scope);
|
|
4798
|
+
}
|
|
4799
|
+
parent = scope;
|
|
4800
|
+
if (!functionOnly || isFunctionScope(node)) selected = scope;
|
|
4801
|
+
}
|
|
4802
|
+
return selected;
|
|
4803
|
+
};
|
|
4804
|
+
fullAncestor(ast, (node, _state, ancestors) => {
|
|
4805
|
+
const scope = scopeAt(ancestors);
|
|
4806
|
+
if (node.type === "VariableDeclarator") {
|
|
4807
|
+
const declaration = ancestors.at(-2);
|
|
4808
|
+
const bindingScope = scopeAt(
|
|
4809
|
+
ancestors,
|
|
4810
|
+
declaration?.type === "VariableDeclaration" && declaration.kind === "var"
|
|
4811
|
+
);
|
|
4812
|
+
declarePattern(node.id, node.init ?? null, bindingScope, scope);
|
|
4813
|
+
return;
|
|
4814
|
+
}
|
|
4815
|
+
if ((node.type === "FunctionDeclaration" || node.type === "ClassDeclaration") && node.id) {
|
|
4816
|
+
declarePattern(node.id, null, scopeAt(ancestors.slice(0, -1)));
|
|
4817
|
+
}
|
|
4818
|
+
declareScopedName(node, scope);
|
|
4819
|
+
});
|
|
4820
|
+
return scopeAt;
|
|
4821
|
+
}
|
|
4822
|
+
function lookupSelector(node, scope, seen = /* @__PURE__ */ new Set()) {
|
|
4823
|
+
if (node?.type === "Identifier") {
|
|
4824
|
+
const binding = lookupBinding(node.name, scope);
|
|
4825
|
+
if (!binding || seen.has(binding)) return void 0;
|
|
4826
|
+
seen.add(binding);
|
|
4827
|
+
return lookupSelector(binding.initializer, binding.scope, seen);
|
|
4828
|
+
}
|
|
4829
|
+
return selectorFromDomLookup(node);
|
|
4830
|
+
}
|
|
4831
|
+
function selectorFromDomLookup(node) {
|
|
4832
|
+
if (node?.type !== "CallExpression" || node.callee.type !== "MemberExpression") {
|
|
4717
4833
|
return void 0;
|
|
4718
4834
|
}
|
|
4719
4835
|
const method = memberName(node.callee);
|
|
4720
4836
|
if (method !== "getElementById" && method !== "querySelector") return void 0;
|
|
4721
|
-
const value = literalString(node.arguments
|
|
4837
|
+
const value = literalString(node.arguments[0]);
|
|
4722
4838
|
if (!value) return void 0;
|
|
4723
4839
|
return method === "getElementById" ? `#${value}` : value;
|
|
4724
4840
|
}
|
|
4725
4841
|
function extractMediaSrcMutations(script) {
|
|
4726
4842
|
try {
|
|
4727
4843
|
const ast = parseProgram2(script);
|
|
4728
|
-
const
|
|
4729
|
-
simple(ast, {
|
|
4730
|
-
VariableDeclarator(node) {
|
|
4731
|
-
if (node.id?.type !== "Identifier") return;
|
|
4732
|
-
const selector = lookupSelector(node.init, bindings);
|
|
4733
|
-
if (selector) bindings.set(node.id.name, selector);
|
|
4734
|
-
}
|
|
4735
|
-
});
|
|
4844
|
+
const scopeAt = collectBindings(ast);
|
|
4736
4845
|
const mutations = [];
|
|
4737
|
-
|
|
4738
|
-
AssignmentExpression(node) {
|
|
4739
|
-
if (node.operator !== "=" || memberName(node.left) !== "src")
|
|
4740
|
-
|
|
4846
|
+
ancestor(ast, {
|
|
4847
|
+
AssignmentExpression(node, _state, ancestors) {
|
|
4848
|
+
if (node.operator !== "=" || node.left.type !== "MemberExpression" || memberName(node.left) !== "src")
|
|
4849
|
+
return;
|
|
4850
|
+
const selector = lookupSelector(node.left.object, scopeAt(ancestors));
|
|
4741
4851
|
if (!selector) return;
|
|
4742
4852
|
mutations.push({
|
|
4743
4853
|
selector,
|
|
@@ -4745,10 +4855,11 @@ function extractMediaSrcMutations(script) {
|
|
|
4745
4855
|
raw: script.slice(node.start, node.end)
|
|
4746
4856
|
});
|
|
4747
4857
|
},
|
|
4748
|
-
CallExpression(node) {
|
|
4749
|
-
if (memberName(node.callee) !== "setAttribute")
|
|
4750
|
-
|
|
4751
|
-
|
|
4858
|
+
CallExpression(node, _state, ancestors) {
|
|
4859
|
+
if (node.callee.type !== "MemberExpression" || memberName(node.callee) !== "setAttribute")
|
|
4860
|
+
return;
|
|
4861
|
+
if (literalString(node.arguments[0])?.toLowerCase() !== "src") return;
|
|
4862
|
+
const selector = lookupSelector(node.callee.object, scopeAt(ancestors));
|
|
4752
4863
|
if (!selector) return;
|
|
4753
4864
|
mutations.push({
|
|
4754
4865
|
selector,
|
|
@@ -6,14 +6,17 @@ 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-NJNC2DQV.js";
|
|
10
|
+
import {
|
|
11
|
+
stripSdrPngColourTags
|
|
12
|
+
} from "./chunk-RPZNQV6D.js";
|
|
10
13
|
import {
|
|
11
14
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BDJIQZN2.js";
|
|
13
16
|
|
|
14
17
|
// src/utils/compositionServer.ts
|
|
15
18
|
import { createHash } from "crypto";
|
|
16
|
-
import { createReadStream, existsSync, statSync } from "fs";
|
|
19
|
+
import { createReadStream, existsSync, readFileSync, statSync } from "fs";
|
|
17
20
|
import { resolve, dirname } from "path";
|
|
18
21
|
import { Readable } from "stream";
|
|
19
22
|
import { fileURLToPath } from "url";
|
|
@@ -61,6 +64,9 @@ function revalidatedResponse(body, contentType, ifNoneMatch) {
|
|
|
61
64
|
if (ifNoneMatch === etag) return new Response(null, { status: 304, headers });
|
|
62
65
|
return new Response(body, { status: 200, headers });
|
|
63
66
|
}
|
|
67
|
+
function untaggedPngBody(filePath, contentType) {
|
|
68
|
+
return contentType === "image/png" ? stripSdrPngColourTags(readFileSync(filePath)) : null;
|
|
69
|
+
}
|
|
64
70
|
function buildRangeResponse(filePath, contentType, rangeHeader, ifNoneMatch) {
|
|
65
71
|
const { size, mtimeMs } = statSync(filePath);
|
|
66
72
|
const last = size - 1;
|
|
@@ -69,6 +75,15 @@ function buildRangeResponse(filePath, contentType, rangeHeader, ifNoneMatch) {
|
|
|
69
75
|
ETag: `"${mtimeMs.toString(36)}-${size.toString(36)}"`
|
|
70
76
|
};
|
|
71
77
|
if (ifNoneMatch === cache.ETag) return new Response(null, { status: 304, headers: cache });
|
|
78
|
+
const untagged = untaggedPngBody(filePath, contentType);
|
|
79
|
+
if (untagged) {
|
|
80
|
+
const headers = {
|
|
81
|
+
...cache,
|
|
82
|
+
"Content-Type": contentType,
|
|
83
|
+
"Content-Length": `${untagged.length}`
|
|
84
|
+
};
|
|
85
|
+
return new Response(new Uint8Array(untagged), { status: 200, headers });
|
|
86
|
+
}
|
|
72
87
|
const match = rangeHeader ? /^bytes=(\d*)-(\d*)$/.exec(rangeHeader.trim()) : null;
|
|
73
88
|
const body = (start2, end2) => size === 0 ? null : Readable.toWeb(createReadStream(filePath, { start: start2, end: end2 }));
|
|
74
89
|
if (!match) {
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ID766OZB.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VQB7G5BM.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_TARGET_LUFS,
|
|
29
29
|
absoluteLoudnessPlan,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6KCFVLO6.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
scanProjectMedia,
|
|
71
71
|
shouldPrewarmProxy,
|
|
72
72
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-HA3V4XAF.js";
|
|
74
74
|
import {
|
|
75
75
|
STUDIO_MOTION_PATH,
|
|
76
76
|
createStudioMotionRenderBodyScript,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
import {
|
|
86
86
|
findTimelineScript,
|
|
87
87
|
parseGsapScriptAcorn
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-W4DMQZL5.js";
|
|
89
89
|
import {
|
|
90
90
|
atomicTempPath,
|
|
91
91
|
createFileAtomically,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "./chunk-EOVYQ3IG.js";
|
|
94
94
|
import {
|
|
95
95
|
parseEncoderOptions
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-5YHQBCWH.js";
|
|
97
97
|
import {
|
|
98
98
|
STUDIO_MANUAL_EDITS_PATH
|
|
99
99
|
} from "./chunk-EVMY7IPL.js";
|
|
@@ -103,6 +103,12 @@ import {
|
|
|
103
103
|
fontDirectories,
|
|
104
104
|
locateSystemFont
|
|
105
105
|
} from "./chunk-7FMUTGOH.js";
|
|
106
|
+
import {
|
|
107
|
+
addScenePartsManifest,
|
|
108
|
+
ensureHfIds,
|
|
109
|
+
stampHfIdsInPlace,
|
|
110
|
+
stripSdrPngColourTags
|
|
111
|
+
} from "./chunk-RPZNQV6D.js";
|
|
106
112
|
import {
|
|
107
113
|
GSAP_BASE_URL_META,
|
|
108
114
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -118,12 +124,7 @@ import {
|
|
|
118
124
|
normalizeGsapLocalRoot,
|
|
119
125
|
parseFps,
|
|
120
126
|
parsePreviewProxyBox
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
addScenePartsManifest,
|
|
124
|
-
ensureHfIds,
|
|
125
|
-
stampHfIdsInPlace
|
|
126
|
-
} from "./chunk-BHOGXIBO.js";
|
|
127
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
127
128
|
import {
|
|
128
129
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
129
130
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -137,15 +138,7 @@ import {
|
|
|
137
138
|
resolveRateSpec,
|
|
138
139
|
sourceTimeAt,
|
|
139
140
|
stripEmbeddedRuntimeScripts
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import {
|
|
142
|
-
HTML_ATTRIBUTE_ENTITIES,
|
|
143
|
-
MagicString,
|
|
144
|
-
VALID_CANVAS_RESOLUTIONS,
|
|
145
|
-
decodeAuthoredAttribute,
|
|
146
|
-
scanHtmlOpeningTags,
|
|
147
|
-
unrollComputedTimeline
|
|
148
|
-
} from "./chunk-SVVAUJPL.js";
|
|
141
|
+
} from "./chunk-BDJIQZN2.js";
|
|
149
142
|
import {
|
|
150
143
|
ProjectRootMissingError,
|
|
151
144
|
folderGone,
|
|
@@ -172,7 +165,15 @@ import {
|
|
|
172
165
|
rewriteCssAssetUrls,
|
|
173
166
|
rewriteInlineStyleAssetUrls,
|
|
174
167
|
sameInstant
|
|
175
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-SE2MXV2N.js";
|
|
169
|
+
import {
|
|
170
|
+
HTML_ATTRIBUTE_ENTITIES,
|
|
171
|
+
MagicString,
|
|
172
|
+
VALID_CANVAS_RESOLUTIONS,
|
|
173
|
+
decodeAuthoredAttribute,
|
|
174
|
+
scanHtmlOpeningTags,
|
|
175
|
+
unrollComputedTimeline
|
|
176
|
+
} from "./chunk-NHA4NRBE.js";
|
|
176
177
|
import {
|
|
177
178
|
parseHTML
|
|
178
179
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -180,7 +181,7 @@ import {
|
|
|
180
181
|
ancestor,
|
|
181
182
|
full,
|
|
182
183
|
simple
|
|
183
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-WC4MTXGN.js";
|
|
184
185
|
|
|
185
186
|
// ../studio-server/dist/chunk-FJBJJURY.js
|
|
186
187
|
import { createHash } from "crypto";
|
|
@@ -366,6 +367,7 @@ var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
|
366
367
|
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
367
368
|
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
368
369
|
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
370
|
+
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
369
371
|
|
|
370
372
|
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
371
373
|
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
@@ -4691,7 +4693,7 @@ function resolveGsapWriter(env) {
|
|
|
4691
4693
|
throw new Error(`Invalid ${GSAP_WRITER_MIGRATION.flag}=${configured}; expected recast or acorn`);
|
|
4692
4694
|
}
|
|
4693
4695
|
async function loadGsapParser() {
|
|
4694
|
-
return import("./gsapParser-
|
|
4696
|
+
return import("./gsapParser-3H7ON3DO.js");
|
|
4695
4697
|
}
|
|
4696
4698
|
function isDanglingSymlinkInProject(projectDir, lexicalPath) {
|
|
4697
4699
|
if (!isSafePath(projectDir, dirname3(lexicalPath))) return false;
|
|
@@ -5550,7 +5552,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5550
5552
|
let block = extractGsapScriptBlock(html);
|
|
5551
5553
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5552
5554
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5553
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5555
|
+
const { GSAP_CDN } = await import("./dist-NQEYA4ZX.js");
|
|
5554
5556
|
const bootstrap = [
|
|
5555
5557
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5556
5558
|
"<script>",
|
|
@@ -7927,8 +7929,9 @@ ${etag}`;
|
|
|
7927
7929
|
servedContentType = PROXY_VARIANT_CONFIG[proxyVariant].contentType;
|
|
7928
7930
|
}
|
|
7929
7931
|
const textBuffer = isText ? Buffer.from(readFileSync6(file, "utf-8"), "utf-8") : null;
|
|
7930
|
-
const
|
|
7931
|
-
const
|
|
7932
|
+
const heldBuffer = textBuffer ?? (contentType === "image/png" ? stripSdrPngColourTags(readFileSync6(file)) : null);
|
|
7933
|
+
const totalSize = heldBuffer ? heldBuffer.length : statSync4(servedPath).size;
|
|
7934
|
+
const bodyFor = (start, end) => heldBuffer ? new Uint8Array(heldBuffer.subarray(start, end + 1)) : (
|
|
7932
7935
|
// Node's web stream type and the DOM one do not overlap for tsc on
|
|
7933
7936
|
// every platform's lib set; the double cast is the documented bridge.
|
|
7934
7937
|
Readable.toWeb(
|
|
@@ -9928,7 +9931,7 @@ function registerHistoryRoutes(api, adapter) {
|
|
|
9928
9931
|
);
|
|
9929
9932
|
}
|
|
9930
9933
|
function previewErrorPage(status) {
|
|
9931
|
-
const message =
|
|
9934
|
+
const message = refusedPreviewMessage(status);
|
|
9932
9935
|
return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
|
|
9933
9936
|
}
|
|
9934
9937
|
async function answerRefusedFrameWithPage(c, next) {
|
|
@@ -6,15 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/capture/captureFile.ts
|
|
9
|
-
import {
|
|
10
|
-
mkdirSync,
|
|
11
|
-
mkdtempSync,
|
|
12
|
-
realpathSync,
|
|
13
|
-
renameSync,
|
|
14
|
-
rmSync,
|
|
15
|
-
statSync,
|
|
16
|
-
writeFileSync
|
|
17
|
-
} from "fs";
|
|
9
|
+
import { mkdirSync, mkdtempSync, realpathSync, renameSync, statSync, writeFileSync } from "fs";
|
|
18
10
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
19
11
|
|
|
20
12
|
// src/capture/captureErrors.ts
|
|
@@ -35,6 +27,35 @@ var CaptureDirRefusedError = class extends Error {
|
|
|
35
27
|
}
|
|
36
28
|
};
|
|
37
29
|
|
|
30
|
+
// ../core/dist/removeTree.js
|
|
31
|
+
import { rmSync } from "fs";
|
|
32
|
+
import { rm } from "fs/promises";
|
|
33
|
+
var RETRY = { recursive: true, force: true, maxRetries: 10, retryDelay: 100 };
|
|
34
|
+
function refusal(path, error) {
|
|
35
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
36
|
+
return `[cleanup] could not remove ${path}: ${reason}`;
|
|
37
|
+
}
|
|
38
|
+
function removeTreeWithRetry(path, remove = rmSync) {
|
|
39
|
+
remove(path, RETRY);
|
|
40
|
+
}
|
|
41
|
+
async function removeTreeWithRetryAsync(path, remove = rm) {
|
|
42
|
+
await remove(path, RETRY);
|
|
43
|
+
}
|
|
44
|
+
function removeTreeBestEffort(path, options = {}) {
|
|
45
|
+
try {
|
|
46
|
+
removeTreeWithRetry(path, options.remove);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
(options.warn ?? console.warn)(refusal(path, error));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function removeTreeBestEffortAsync(path, options = {}) {
|
|
52
|
+
try {
|
|
53
|
+
await removeTreeWithRetryAsync(path, options.remove);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
(options.warn ?? console.warn)(refusal(path, error));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
38
59
|
// src/capture/captureFile.ts
|
|
39
60
|
function publishCaptureFileSync(path, data, options) {
|
|
40
61
|
const stagingDir = mkdtempSync(join(dirname(path), ".capture-"));
|
|
@@ -43,7 +64,7 @@ function publishCaptureFileSync(path, data, options) {
|
|
|
43
64
|
writeCaptureFileSync(staged, data, { ...options, flag: "wx" });
|
|
44
65
|
renameSync(staged, path);
|
|
45
66
|
} finally {
|
|
46
|
-
|
|
67
|
+
removeTreeBestEffort(stagingDir);
|
|
47
68
|
}
|
|
48
69
|
}
|
|
49
70
|
function writeCaptureFileSync(path, data, options) {
|
|
@@ -99,6 +120,7 @@ function ensureCaptureDirSync(root, dir) {
|
|
|
99
120
|
export {
|
|
100
121
|
NavigationDeadlineError,
|
|
101
122
|
CaptureDirRefusedError,
|
|
123
|
+
removeTreeBestEffortAsync,
|
|
102
124
|
writeCaptureFileSync,
|
|
103
125
|
ensureCaptureDirSync
|
|
104
126
|
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
stoppedByCancelSignal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6IYIS2U7.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_MODEL,
|
|
12
12
|
ensureModel,
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
hasFFmpeg,
|
|
15
15
|
pinnedWhisperModel,
|
|
16
16
|
sha256File
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JQ32262N.js";
|
|
18
18
|
import {
|
|
19
19
|
findFFmpeg,
|
|
20
20
|
findFFprobe,
|
|
21
21
|
getFFmpegInstallHint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IK4JY2LI.js";
|
|
23
23
|
import {
|
|
24
24
|
findWavChunk
|
|
25
25
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-63DP5CB2.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LK6KPVX2.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EGRIVMCQ.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-PSX5SF2N.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-DML6BD4K.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -234,7 +234,7 @@ function checkEnvironment() {
|
|
|
234
234
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
235
235
|
}
|
|
236
236
|
async function checkWhisper() {
|
|
237
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
237
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-3JOHHPVR.js");
|
|
238
238
|
const result = findWhisper();
|
|
239
239
|
if (result) {
|
|
240
240
|
return { ok: true, detail: result.executablePath };
|