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
|
@@ -5,8 +5,9 @@ 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
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ancestor,
|
|
9
|
+
fullAncestor
|
|
10
|
+
} from "./chunk-WC4MTXGN.js";
|
|
10
11
|
|
|
11
12
|
// ../parsers/dist/compositionContract.js
|
|
12
13
|
var COMPOSITION_CONTRACT_VERSION = 1;
|
|
@@ -1299,43 +1300,152 @@ function parseProgram(script) {
|
|
|
1299
1300
|
}
|
|
1300
1301
|
function literalString(node) {
|
|
1301
1302
|
if (node?.type === "Literal" && typeof node.value === "string") return node.value;
|
|
1302
|
-
if (node?.type === "TemplateLiteral" && node.expressions
|
|
1303
|
-
return node.quasis
|
|
1303
|
+
if (node?.type === "TemplateLiteral" && node.expressions.length === 0) {
|
|
1304
|
+
return node.quasis[0]?.value.cooked ?? void 0;
|
|
1304
1305
|
}
|
|
1305
1306
|
return void 0;
|
|
1306
1307
|
}
|
|
1307
1308
|
function memberName(node) {
|
|
1308
1309
|
if (node?.type !== "MemberExpression") return void 0;
|
|
1309
|
-
if (!node.computed && node.property
|
|
1310
|
+
if (!node.computed && node.property.type === "Identifier") return node.property.name;
|
|
1310
1311
|
return literalString(node.property);
|
|
1311
1312
|
}
|
|
1312
|
-
function
|
|
1313
|
-
|
|
1314
|
-
|
|
1313
|
+
function isFunctionScope(node) {
|
|
1314
|
+
return node.type === "Program" || node.type === "FunctionDeclaration" || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression" || node.type === "StaticBlock";
|
|
1315
|
+
}
|
|
1316
|
+
function isScope(node) {
|
|
1317
|
+
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";
|
|
1318
|
+
}
|
|
1319
|
+
function declarePattern(pattern, initializer, scope, initializerScope = scope) {
|
|
1320
|
+
switch (pattern.type) {
|
|
1321
|
+
case "Identifier":
|
|
1322
|
+
if (initializer || !scope.bindings.has(pattern.name)) {
|
|
1323
|
+
scope.bindings.set(pattern.name, { initializer, scope: initializerScope });
|
|
1324
|
+
}
|
|
1325
|
+
break;
|
|
1326
|
+
case "RestElement":
|
|
1327
|
+
declarePattern(pattern.argument, null, scope);
|
|
1328
|
+
break;
|
|
1329
|
+
case "AssignmentPattern":
|
|
1330
|
+
declarePattern(pattern.left, null, scope);
|
|
1331
|
+
break;
|
|
1332
|
+
case "ArrayPattern":
|
|
1333
|
+
case "ObjectPattern":
|
|
1334
|
+
declarePatterns(destructuredPatterns(pattern), scope);
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
function declarePatterns(patterns, scope) {
|
|
1339
|
+
for (const pattern of patterns) declarePattern(pattern, null, scope);
|
|
1340
|
+
}
|
|
1341
|
+
function destructuredPatterns(pattern) {
|
|
1342
|
+
if (pattern.type === "ObjectPattern") {
|
|
1343
|
+
return pattern.properties.map(
|
|
1344
|
+
(property) => property.type === "RestElement" ? property.argument : property.value
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
return pattern.elements.filter((element) => element !== null);
|
|
1348
|
+
}
|
|
1349
|
+
function declareOptionalPattern(pattern, scope) {
|
|
1350
|
+
if (pattern) declarePattern(pattern, null, scope);
|
|
1351
|
+
}
|
|
1352
|
+
function declareScopedName(node, scope) {
|
|
1353
|
+
switch (node.type) {
|
|
1354
|
+
case "FunctionExpression":
|
|
1355
|
+
case "FunctionDeclaration":
|
|
1356
|
+
declareOptionalPattern(node.id, scope);
|
|
1357
|
+
declarePatterns(node.params, scope);
|
|
1358
|
+
break;
|
|
1359
|
+
case "ArrowFunctionExpression":
|
|
1360
|
+
declarePatterns(node.params, scope);
|
|
1361
|
+
break;
|
|
1362
|
+
case "ClassDeclaration":
|
|
1363
|
+
case "ClassExpression":
|
|
1364
|
+
declareOptionalPattern(node.id, scope);
|
|
1365
|
+
break;
|
|
1366
|
+
case "CatchClause":
|
|
1367
|
+
declareOptionalPattern(node.param, scope);
|
|
1368
|
+
break;
|
|
1369
|
+
case "ImportDeclaration":
|
|
1370
|
+
declarePatterns(
|
|
1371
|
+
node.specifiers.map((specifier) => specifier.local),
|
|
1372
|
+
scope
|
|
1373
|
+
);
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
function lookupBinding(name, scope) {
|
|
1378
|
+
for (let current = scope; current; current = current.parent) {
|
|
1379
|
+
const binding = current.bindings.get(name);
|
|
1380
|
+
if (binding) return binding;
|
|
1381
|
+
}
|
|
1382
|
+
return void 0;
|
|
1383
|
+
}
|
|
1384
|
+
function collectBindings(ast) {
|
|
1385
|
+
const root = { bindings: /* @__PURE__ */ new Map() };
|
|
1386
|
+
const scopes = new WeakMap([[ast, root]]);
|
|
1387
|
+
const scopeAt = (ancestors, functionOnly = false) => {
|
|
1388
|
+
let parent = root;
|
|
1389
|
+
let selected = root;
|
|
1390
|
+
for (const node of ancestors) {
|
|
1391
|
+
if (!isScope(node)) continue;
|
|
1392
|
+
let scope = scopes.get(node);
|
|
1393
|
+
if (!scope) {
|
|
1394
|
+
scope = { parent, bindings: /* @__PURE__ */ new Map() };
|
|
1395
|
+
scopes.set(node, scope);
|
|
1396
|
+
}
|
|
1397
|
+
parent = scope;
|
|
1398
|
+
if (!functionOnly || isFunctionScope(node)) selected = scope;
|
|
1399
|
+
}
|
|
1400
|
+
return selected;
|
|
1401
|
+
};
|
|
1402
|
+
fullAncestor(ast, (node, _state, ancestors) => {
|
|
1403
|
+
const scope = scopeAt(ancestors);
|
|
1404
|
+
if (node.type === "VariableDeclarator") {
|
|
1405
|
+
const declaration = ancestors.at(-2);
|
|
1406
|
+
const bindingScope = scopeAt(
|
|
1407
|
+
ancestors,
|
|
1408
|
+
declaration?.type === "VariableDeclaration" && declaration.kind === "var"
|
|
1409
|
+
);
|
|
1410
|
+
declarePattern(node.id, node.init ?? null, bindingScope, scope);
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
if ((node.type === "FunctionDeclaration" || node.type === "ClassDeclaration") && node.id) {
|
|
1414
|
+
declarePattern(node.id, null, scopeAt(ancestors.slice(0, -1)));
|
|
1415
|
+
}
|
|
1416
|
+
declareScopedName(node, scope);
|
|
1417
|
+
});
|
|
1418
|
+
return scopeAt;
|
|
1419
|
+
}
|
|
1420
|
+
function lookupSelector(node, scope, seen = /* @__PURE__ */ new Set()) {
|
|
1421
|
+
if (node?.type === "Identifier") {
|
|
1422
|
+
const binding = lookupBinding(node.name, scope);
|
|
1423
|
+
if (!binding || seen.has(binding)) return void 0;
|
|
1424
|
+
seen.add(binding);
|
|
1425
|
+
return lookupSelector(binding.initializer, binding.scope, seen);
|
|
1426
|
+
}
|
|
1427
|
+
return selectorFromDomLookup(node);
|
|
1428
|
+
}
|
|
1429
|
+
function selectorFromDomLookup(node) {
|
|
1430
|
+
if (node?.type !== "CallExpression" || node.callee.type !== "MemberExpression") {
|
|
1315
1431
|
return void 0;
|
|
1316
1432
|
}
|
|
1317
1433
|
const method = memberName(node.callee);
|
|
1318
1434
|
if (method !== "getElementById" && method !== "querySelector") return void 0;
|
|
1319
|
-
const value = literalString(node.arguments
|
|
1435
|
+
const value = literalString(node.arguments[0]);
|
|
1320
1436
|
if (!value) return void 0;
|
|
1321
1437
|
return method === "getElementById" ? `#${value}` : value;
|
|
1322
1438
|
}
|
|
1323
1439
|
function extractMediaSrcMutations(script) {
|
|
1324
1440
|
try {
|
|
1325
1441
|
const ast = parseProgram(script);
|
|
1326
|
-
const
|
|
1327
|
-
simple(ast, {
|
|
1328
|
-
VariableDeclarator(node) {
|
|
1329
|
-
if (node.id?.type !== "Identifier") return;
|
|
1330
|
-
const selector = lookupSelector(node.init, bindings);
|
|
1331
|
-
if (selector) bindings.set(node.id.name, selector);
|
|
1332
|
-
}
|
|
1333
|
-
});
|
|
1442
|
+
const scopeAt = collectBindings(ast);
|
|
1334
1443
|
const mutations = [];
|
|
1335
|
-
|
|
1336
|
-
AssignmentExpression(node) {
|
|
1337
|
-
if (node.operator !== "=" || memberName(node.left) !== "src")
|
|
1338
|
-
|
|
1444
|
+
ancestor(ast, {
|
|
1445
|
+
AssignmentExpression(node, _state, ancestors) {
|
|
1446
|
+
if (node.operator !== "=" || node.left.type !== "MemberExpression" || memberName(node.left) !== "src")
|
|
1447
|
+
return;
|
|
1448
|
+
const selector = lookupSelector(node.left.object, scopeAt(ancestors));
|
|
1339
1449
|
if (!selector) return;
|
|
1340
1450
|
mutations.push({
|
|
1341
1451
|
selector,
|
|
@@ -1343,10 +1453,11 @@ function extractMediaSrcMutations(script) {
|
|
|
1343
1453
|
raw: script.slice(node.start, node.end)
|
|
1344
1454
|
});
|
|
1345
1455
|
},
|
|
1346
|
-
CallExpression(node) {
|
|
1347
|
-
if (memberName(node.callee) !== "setAttribute")
|
|
1348
|
-
|
|
1349
|
-
|
|
1456
|
+
CallExpression(node, _state, ancestors) {
|
|
1457
|
+
if (node.callee.type !== "MemberExpression" || memberName(node.callee) !== "setAttribute")
|
|
1458
|
+
return;
|
|
1459
|
+
if (literalString(node.arguments[0])?.toLowerCase() !== "src") return;
|
|
1460
|
+
const selector = lookupSelector(node.callee.object, scopeAt(ancestors));
|
|
1350
1461
|
if (!selector) return;
|
|
1351
1462
|
mutations.push({
|
|
1352
1463
|
selector,
|
|
@@ -6,10 +6,10 @@ 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-IBZHSU2J.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NHA4NRBE.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/lambda/_dimensions.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NSC5A4IR.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QTWXVOZI.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-YD4AW5ZX.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-4PZKSIGE.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/utils/checkFindings.ts
|
|
9
|
+
var SEVERITY = { info: 0, warning: 1, error: 2 };
|
|
10
|
+
function findingAtRoot(code, severity, message, sourceFile) {
|
|
11
|
+
return {
|
|
12
|
+
code,
|
|
13
|
+
severity,
|
|
14
|
+
message,
|
|
15
|
+
selector: "[data-composition-id]",
|
|
16
|
+
dataAttributes: {},
|
|
17
|
+
sourceFile,
|
|
18
|
+
bbox: { x: 0, y: 0, width: 0, height: 0 },
|
|
19
|
+
time: 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function findingElementKey(finding) {
|
|
23
|
+
return JSON.stringify([finding.sourceFile, finding.selector]);
|
|
24
|
+
}
|
|
25
|
+
function groupSampledFindings(findings, compareEvidence = () => 0) {
|
|
26
|
+
const groups = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const finding of findings) {
|
|
28
|
+
const key = JSON.stringify([findingElementKey(finding), finding.code]);
|
|
29
|
+
const times = finding.times ?? [finding.time];
|
|
30
|
+
const group = groups.get(key);
|
|
31
|
+
if (!group) {
|
|
32
|
+
groups.set(key, { finding, times: new Set(times) });
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
for (const time of times) group.times.add(time);
|
|
36
|
+
const severity = SEVERITY[finding.severity] - SEVERITY[group.finding.severity];
|
|
37
|
+
if (severity > 0 || severity === 0 && compareEvidence(finding, group.finding) > 0) {
|
|
38
|
+
group.finding = finding;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return [...groups.values()].map(({ finding, times }) => ({
|
|
42
|
+
...finding,
|
|
43
|
+
times: [...times].sort((a, b) => a - b)
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
function formatFindingTimes(finding) {
|
|
47
|
+
return `t=${(finding.times ?? [finding.time]).join(", ")}s`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
findingAtRoot,
|
|
52
|
+
findingElementKey,
|
|
53
|
+
groupSampledFindings,
|
|
54
|
+
formatFindingTimes
|
|
55
|
+
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MSHL6CF2.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.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-2Y5JXLDB.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/capture/upstreamProxy.ts
|
|
9
|
+
import { request as httpRequest } from "http";
|
|
10
|
+
var CAPTURE_PROXY_ENV = "HYPERFRAMES_CAPTURE_PROXY";
|
|
11
|
+
var TUNNEL_TIMEOUT_MS = 15e3;
|
|
12
|
+
function defaultPort(target) {
|
|
13
|
+
return target.port || (target.protocol === "https:" ? "443" : "80");
|
|
14
|
+
}
|
|
15
|
+
function captureUpstreamProxy(env = process.env) {
|
|
16
|
+
const raw = env[CAPTURE_PROXY_ENV]?.trim();
|
|
17
|
+
if (!raw) return void 0;
|
|
18
|
+
let url;
|
|
19
|
+
let credentials;
|
|
20
|
+
try {
|
|
21
|
+
url = new URL(raw);
|
|
22
|
+
if (url.username || url.password) {
|
|
23
|
+
credentials = `${decodeURIComponent(url.username)}:${decodeURIComponent(url.password)}`;
|
|
24
|
+
}
|
|
25
|
+
} catch {
|
|
26
|
+
throw new Error(`${CAPTURE_PROXY_ENV} is not a valid proxy URL`);
|
|
27
|
+
}
|
|
28
|
+
if (url.protocol !== "http:") {
|
|
29
|
+
throw new Error(`${CAPTURE_PROXY_ENV} must be an http:// proxy URL`);
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
host: url.hostname.replace(/^\[(.*)\]$/, "$1"),
|
|
33
|
+
port: Number(url.port || 80),
|
|
34
|
+
authorization: credentials ? `Basic ${Buffer.from(credentials).toString("base64")}` : void 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function connectAuthority(target) {
|
|
38
|
+
return `${target.hostname}:${defaultPort(target)}`;
|
|
39
|
+
}
|
|
40
|
+
function openUpstreamTunnel(proxy, authority, options = {}) {
|
|
41
|
+
return new Promise((resolve, reject) => {
|
|
42
|
+
const req = httpRequest({
|
|
43
|
+
host: proxy.host,
|
|
44
|
+
port: proxy.port,
|
|
45
|
+
method: "CONNECT",
|
|
46
|
+
path: authority,
|
|
47
|
+
headers: {
|
|
48
|
+
host: authority,
|
|
49
|
+
...proxy.authorization ? { "proxy-authorization": proxy.authorization } : {}
|
|
50
|
+
},
|
|
51
|
+
agent: false,
|
|
52
|
+
signal: options.signal
|
|
53
|
+
});
|
|
54
|
+
req.once("socket", (socket) => options.onSocket?.(socket));
|
|
55
|
+
req.setTimeout(
|
|
56
|
+
TUNNEL_TIMEOUT_MS,
|
|
57
|
+
() => req.destroy(new Error("Upstream proxy CONNECT timed out"))
|
|
58
|
+
);
|
|
59
|
+
req.once("connect", (response, socket, head) => {
|
|
60
|
+
const status = response.statusCode ?? 0;
|
|
61
|
+
if (status < 200 || status >= 300) {
|
|
62
|
+
socket.destroy();
|
|
63
|
+
reject(new Error(`Upstream proxy refused CONNECT with HTTP ${status}`));
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
socket.setTimeout(0);
|
|
67
|
+
if (head.length) socket.unshift(head);
|
|
68
|
+
resolve(socket);
|
|
69
|
+
});
|
|
70
|
+
req.once("response", (response) => {
|
|
71
|
+
response.resume();
|
|
72
|
+
req.destroy();
|
|
73
|
+
reject(new Error(`Upstream proxy refused CONNECT with HTTP ${response.statusCode}`));
|
|
74
|
+
});
|
|
75
|
+
req.once("error", reject);
|
|
76
|
+
req.end();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
captureUpstreamProxy,
|
|
82
|
+
connectAuthority,
|
|
83
|
+
openUpstreamTunnel
|
|
84
|
+
};
|
|
@@ -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-QTWXVOZI.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -6,7 +6,7 @@ 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-7PJ3AJB2.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LK6KPVX2.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -43,8 +43,8 @@ function windowsChromeCrashRemediation(errorMessage) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// src/utils/renderArgs.ts
|
|
46
|
-
import { readFileSync
|
|
47
|
-
import {
|
|
46
|
+
import { readFileSync } from "fs";
|
|
47
|
+
import { resolve } from "path";
|
|
48
48
|
var MIN_PAGE_NAVIGATION_TIMEOUT_MS = 1;
|
|
49
49
|
var MAX_PAGE_NAVIGATION_TIMEOUT_SECONDS = 86400;
|
|
50
50
|
function parseBrowserTimeoutMsArg(raw) {
|
|
@@ -106,70 +106,6 @@ function pageNavigationTimeoutMs(minimumTimeoutMs = 0) {
|
|
|
106
106
|
minimumTimeoutMs
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
function normalizeCompositionEntryArg(raw) {
|
|
110
|
-
const trimmed = raw?.trim().replace(/^\.\//, "") || void 0;
|
|
111
|
-
return !trimmed || trimmed === "." ? void 0 : trimmed;
|
|
112
|
-
}
|
|
113
|
-
function hasExplicitCompositionArg(raw) {
|
|
114
|
-
return normalizeCompositionEntryArg(raw) !== void 0;
|
|
115
|
-
}
|
|
116
|
-
function parseCompositionEntryArg(raw, projectDir, stat, real = realpathOrSame) {
|
|
117
|
-
const trimmed = normalizeCompositionEntryArg(raw);
|
|
118
|
-
if (!trimmed) return { ok: true, value: void 0 };
|
|
119
|
-
const absProjectDir = resolve(projectDir);
|
|
120
|
-
const entryPath = resolve(absProjectDir, trimmed);
|
|
121
|
-
const relativeEntry = [absProjectDir, real(absProjectDir)].flatMap((root) => [entryPath, real(entryPath)].map((path) => relative(root, path))).find((rel) => rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel));
|
|
122
|
-
if (relativeEntry === void 0) {
|
|
123
|
-
return { ok: false, error: { kind: "outside-project", entryFile: trimmed } };
|
|
124
|
-
}
|
|
125
|
-
let entryStat;
|
|
126
|
-
try {
|
|
127
|
-
entryStat = stat(entryPath);
|
|
128
|
-
} catch {
|
|
129
|
-
return { ok: false, error: { kind: "not-found", entryFile: trimmed } };
|
|
130
|
-
}
|
|
131
|
-
if (!entryStat.isFile()) {
|
|
132
|
-
return { ok: false, error: { kind: "not-a-file", entryFile: trimmed } };
|
|
133
|
-
}
|
|
134
|
-
return { ok: true, value: relativeEntry.split(sep).join("/") };
|
|
135
|
-
}
|
|
136
|
-
function realpathOrSame(path) {
|
|
137
|
-
try {
|
|
138
|
-
return realpathSync(path);
|
|
139
|
-
} catch {
|
|
140
|
-
return path;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function compositionEntryErrorMessage(error) {
|
|
144
|
-
switch (error.kind) {
|
|
145
|
-
case "outside-project":
|
|
146
|
-
return {
|
|
147
|
-
title: "Invalid composition path",
|
|
148
|
-
message: `Entry file must stay inside the project directory: ${error.entryFile}`
|
|
149
|
-
};
|
|
150
|
-
case "not-found":
|
|
151
|
-
return {
|
|
152
|
-
title: "Composition not found",
|
|
153
|
-
message: `"${error.entryFile}" does not exist in the project directory.`,
|
|
154
|
-
hint: "Pass a path to a .html file relative to the project root (e.g. compositions/intro.html)."
|
|
155
|
-
};
|
|
156
|
-
case "not-a-file":
|
|
157
|
-
return {
|
|
158
|
-
title: "Invalid composition path",
|
|
159
|
-
message: `"${error.entryFile}" is a directory, not an .html file.`,
|
|
160
|
-
hint: "Pass a path to a .html file (e.g. compositions/intro.html), or omit --composition to render index.html."
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
function resolveCompositionEntryArg(raw, projectDir, stat) {
|
|
165
|
-
const result = parseCompositionEntryArg(raw, projectDir, stat);
|
|
166
|
-
if (!result.ok) {
|
|
167
|
-
const { title, message, hint } = compositionEntryErrorMessage(result.error);
|
|
168
|
-
errorBox(title, message, hint);
|
|
169
|
-
failUsage();
|
|
170
|
-
}
|
|
171
|
-
return result.value;
|
|
172
|
-
}
|
|
173
109
|
function resolveDefaultFpsArg(explicitFps, projectDir, indexPath, entryFile) {
|
|
174
110
|
if (explicitFps != null) return explicitFps;
|
|
175
111
|
try {
|
|
@@ -218,8 +154,6 @@ export {
|
|
|
218
154
|
windowsChromeCrashRemediation,
|
|
219
155
|
resolveBrowserTimeoutMsArg,
|
|
220
156
|
pageNavigationTimeoutMs,
|
|
221
|
-
hasExplicitCompositionArg,
|
|
222
|
-
resolveCompositionEntryArg,
|
|
223
157
|
resolveDefaultFpsArg,
|
|
224
158
|
parseGifLoopArg,
|
|
225
159
|
parseHlsSegmentSecondsArg
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XKW4Z7BU.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
22
22
|
import {
|
|
23
23
|
isCompositionVariable
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SE2MXV2N.js";
|
|
25
25
|
|
|
26
26
|
// src/registry/installer.ts
|
|
27
27
|
import { createHash } from "crypto";
|
|
@@ -8,31 +8,31 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MAUGXKSI.js";
|
|
12
12
|
import {
|
|
13
13
|
gotoWhenSent
|
|
14
14
|
} from "./chunk-MOEGCMKI.js";
|
|
15
15
|
import {
|
|
16
16
|
pageNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UKM3JYNB.js";
|
|
19
19
|
import {
|
|
20
20
|
oneProcessOverPipe
|
|
21
21
|
} from "./chunk-DKPNNYBZ.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCompositionViewportFromHtml
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IBZHSU2J.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLocalBrowserGpuMode,
|
|
27
27
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LPI7HX4G.js";
|
|
29
29
|
import {
|
|
30
30
|
c
|
|
31
31
|
} from "./chunk-ZTZA4UWZ.js";
|
|
32
32
|
import {
|
|
33
33
|
assertWebGpuAdapterAvailable,
|
|
34
34
|
compositionRequiresWebGpu
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LK6KPVX2.js";
|
|
36
36
|
import {
|
|
37
37
|
normalizeErrorMessage
|
|
38
38
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -140,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
140
140
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
141
141
|
});
|
|
142
142
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
143
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
143
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-ZOXUSGAP.js");
|
|
144
144
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
145
145
|
await waitForImagesReady(
|
|
146
146
|
page,
|
|
@@ -189,7 +189,7 @@ async function installPageFunctionGuard(page) {
|
|
|
189
189
|
async function openSettledCompositionPage(html, url, options) {
|
|
190
190
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
191
191
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
192
|
-
const answer = (await import("./staticProjectServer-
|
|
192
|
+
const answer = (await import("./staticProjectServer-DQ7PIDPA.js")).inProcessAnswer(url);
|
|
193
193
|
const noListen = answer !== void 0;
|
|
194
194
|
let chromeBrowser;
|
|
195
195
|
try {
|
|
@@ -200,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
200
200
|
options.onBrowserReady?.();
|
|
201
201
|
const page = await chromeBrowser.newPage();
|
|
202
202
|
await installPageFunctionGuard(page);
|
|
203
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
203
|
+
const { installMediaRenderIdBridge } = await import("./src-ZOXUSGAP.js");
|
|
204
204
|
await installMediaRenderIdBridge(page);
|
|
205
205
|
await page.setViewport(viewport);
|
|
206
206
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
@@ -216,10 +216,10 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
216
216
|
}
|
|
217
217
|
async function launchCompositionBrowser(html, noListen, options) {
|
|
218
218
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
219
|
-
const { ensureBrowser, findSystemBrowser } = await import("./manager-
|
|
219
|
+
const { ensureBrowser, findSystemBrowser } = await import("./manager-RMYSZ3KI.js");
|
|
220
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
221
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-ZOXUSGAP.js");
|
|
223
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
225
|
let softwareWebGpu = false;
|