hyperframes 0.8.207 → 0.8.208
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-LXFWHBE3.js → add-XMWRBMBR.js} +14 -13
- package/dist/{agentPromptGenerator-D2E62ZP5.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-VBPJZKFT.js → animatedGifPrep-6XURJIPV.js} +8 -7
- package/dist/api.js +19 -18
- package/dist/{asset-JX4RW3GO.js → asset-I5GGEOB2.js} +2 -2
- package/dist/{assetCataloger-JKKOPBCF.js → assetCataloger-YBPXUNUP.js} +10 -8
- package/dist/{audio-OXQ3L6DW.js → audio-GFJCHH5W.js} +410 -128
- package/dist/{auth-JAL7P7ZA.js → auth-QOA55RYR.js} +4 -4
- package/dist/{autoUpdate-MRI2AICE.js → autoUpdate-SPS4QPJU.js} +4 -4
- package/dist/{backgroundChecks-ORR46PBY.js → backgroundChecks-HRJO7YK7.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-IFZYPGIW.js → batchRender-FBP3RKUF.js} +5 -4
- package/dist/{beats-UDLOEW6U.js → beats-VNGJ7F6W.js} +21 -14
- package/dist/{benchmark-VTVDNKSO.js → benchmark-NZ3N3MIV.js} +10 -10
- package/dist/{browser-QJC4BL2Y.js → browser-BD5BKRJ5.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-Z2JTBNDS.js → bundleWithLocalizedFonts-WXVNPAWD.js} +3 -3
- package/dist/{capture-GLM2ACPM.js → capture-CXWXKWS5.js} +62 -36
- package/dist/{capture-2P4JERSX.js → capture-LMJ4TQRL.js} +52 -17
- package/dist/{captureCompositionFrame-A2A5MGQB.js → captureCompositionFrame-ZKVCRYYU.js} +14 -13
- package/dist/{captureFile-RPUEOZO6.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-5ZLVUQVJ.js → catalog-WRXQSCAU.js} +14 -13
- package/dist/{catch-up-FRMVYJHZ.js → catch-up-MDSPABFC.js} +6 -6
- package/dist/{check-WVY7SM7C.js → check-SIBBK5HA.js} +42 -41
- package/dist/{checkAudio-PLEQY3SZ.js → checkAudio-QQBR4HR7.js} +12 -11
- package/dist/{checkBrowser-XSZUA2DQ.js → checkBrowser-4EBJLLIH.js} +34 -33
- package/dist/{chunk-XDMZY3H7.js → chunk-3O2E4Q66.js} +15 -20
- package/dist/{chunk-HVOTYAS4.js → chunk-43MW4SY7.js} +2 -2
- package/dist/{chunk-TSTONNOD.js → chunk-4F5NRJ6M.js} +2 -2
- package/dist/{chunk-JQ32262N.js → chunk-4HT2L6W2.js} +1 -1
- package/dist/{chunk-63DP5CB2.js → chunk-4KG3ESVO.js} +4 -4
- package/dist/{chunk-LPI7HX4G.js → chunk-4LTBQEPD.js} +2 -2
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-XULJBZ7K.js → chunk-5HB4JM7H.js} +2 -2
- package/dist/{chunk-PL36HK3U.js → chunk-6CWKORZO.js} +3 -3
- package/dist/{chunk-ZF3R2IPC.js → chunk-6DSYBW7Z.js} +1 -0
- package/dist/{chunk-T4JGFCXU.js → chunk-6JNSYFOH.js} +4 -4
- package/dist/{chunk-5PYRU5DT.js → chunk-6N7D2GUV.js} +15 -15
- package/dist/{chunk-WL263XM2.js → chunk-6PWQH77E.js} +1 -1
- package/dist/{chunk-UAT2UMTP.js → chunk-6WRN4WC6.js} +1 -1
- package/dist/{chunk-SXOD5J7T.js → chunk-7CPI2DWL.js} +1 -1
- package/dist/{chunk-UYPWH7PH.js → chunk-7PAK7LZ5.js} +11 -11
- package/dist/{chunk-YJK6HOL5.js → chunk-B5MPMIKQ.js} +2 -2
- package/dist/{chunk-KDHHPJOG.js → chunk-BKDQFOKK.js} +4 -4
- package/dist/{chunk-LCCYYTEK.js → chunk-BLCKQPBE.js} +1 -1
- package/dist/chunk-BQMAPNDA.js +4830 -0
- package/dist/{chunk-QE4WRS3N.js → chunk-CP225S5H.js} +3 -3
- package/dist/{chunk-I2TDHVFV.js → chunk-CSWCZA6V.js} +2 -2
- package/dist/{chunk-C53ZNJDZ.js → chunk-D2CE2J2A.js} +1 -1
- package/dist/{chunk-NSC5A4IR.js → chunk-DHQSDCWD.js} +6 -2
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-NHL5CMO2.js → chunk-DXACKQ3F.js} +3 -3
- package/dist/{chunk-IK4JY2LI.js → chunk-EGOXYG3M.js} +2 -2
- package/dist/{chunk-UKM3JYNB.js → chunk-ENRFKCI6.js} +3 -3
- package/dist/{chunk-NWGXTUYS.js → chunk-EQBDKYXR.js} +3 -30
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-CVZO6TFE.js → chunk-EYEEZXLI.js} +11 -11
- package/dist/{chunk-ZCJ5EGLU.js → chunk-FC4WT5FX.js} +79 -1
- package/dist/{chunk-GXUONASF.js → chunk-FFDYRJBE.js} +24 -1
- package/dist/{chunk-NJNC2DQV.js → chunk-G2A6RC5R.js} +52 -9
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-H3LQ5X6Q.js → chunk-GEO6THL3.js} +61 -30
- package/dist/{chunk-RPZNQV6D.js → chunk-GHSO62LK.js} +2 -2
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-XKW4Z7BU.js → chunk-HUKQW4YE.js} +1 -1
- package/dist/{chunk-QZ2JQ6O4.js → chunk-HZN7ICAF.js} +3 -3
- package/dist/{chunk-DJQZ7DEH.js → chunk-IIJVSCSH.js} +15 -15
- package/dist/{chunk-6KCFVLO6.js → chunk-IL2TMC6F.js} +1 -1
- package/dist/{chunk-ZYGIDXAK.js → chunk-J67FSI3Q.js} +104 -58
- package/dist/{chunk-5KBMYSF2.js → chunk-K4PHB3YQ.js} +7 -2
- package/dist/{chunk-HM7SUIQD.js → chunk-KTWGVEN6.js} +3 -3
- package/dist/{chunk-6IYIS2U7.js → chunk-LSMFOZ4F.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-EG3B2VWK.js → chunk-MBGM26P5.js} +16 -21
- package/dist/{chunk-LK6KPVX2.js → chunk-MPO25DQW.js} +291 -160
- package/dist/{chunk-DML6BD4K.js → chunk-MW2NQQ6Z.js} +2 -2
- package/dist/{chunk-MSHL6CF2.js → chunk-MYO77JWR.js} +1 -1
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-VH4PNYOS.js → chunk-NZ6G5YWZ.js} +2 -2
- package/dist/{chunk-LXP6XWJL.js → chunk-ORFRUZPB.js} +1 -1
- package/dist/{chunk-UUOIH4RW.js → chunk-OTXXDONS.js} +2 -2
- package/dist/{chunk-526VSRZ4.js → chunk-P7WGVXR7.js} +6 -6
- package/dist/{chunk-HA3V4XAF.js → chunk-PKVA6MPV.js} +1 -1
- package/dist/{chunk-QTWXVOZI.js → chunk-PSOAGSNO.js} +2 -2
- package/dist/{chunk-ID766OZB.js → chunk-PWEOSJ3E.js} +3 -3
- package/dist/{chunk-EHFZEKQM.js → chunk-Q43YUROE.js} +1 -1
- package/dist/{chunk-7PJ3AJB2.js → chunk-QP2MJYTJ.js} +1 -1
- package/dist/{chunk-7RWUY3BJ.js → chunk-QWBVPWUI.js} +1 -1
- package/dist/{chunk-IYZT62UR.js → chunk-S2OLTAEL.js} +2 -2
- package/dist/{chunk-U32PA6DI.js → chunk-S4KHJERB.js} +1 -1
- package/dist/{chunk-FEO7YW7V.js → chunk-SI7QCT2J.js} +6 -6
- package/dist/{chunk-6Z7XDUUJ.js → chunk-SKKQMW5X.js} +1 -1
- package/dist/{chunk-VAVDAOUA.js → chunk-TNTGGDSD.js} +1 -1
- package/dist/{chunk-EGRIVMCQ.js → chunk-U6KN6OIP.js} +2 -2
- package/dist/{chunk-IBZHSU2J.js → chunk-ULL3U6PV.js} +1 -1
- package/dist/{chunk-IW5P4KK7.js → chunk-VR3JLTZD.js} +3 -3
- package/dist/{chunk-6KOHY5EP.js → chunk-VS4SK7BN.js} +17 -11
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-JKE24AG7.js → chunk-WABB4LZS.js} +1 -1
- package/dist/{chunk-I3TYUQLB.js → chunk-WNMVC3IT.js} +1 -1
- package/dist/{chunk-MAUGXKSI.js → chunk-X6MCIK7L.js} +100 -13
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-PUIG6DHT.js → chunk-XG3IZV62.js} +7 -7
- package/dist/{chunk-VBPNCOD7.js → chunk-XOFBXLMG.js} +2 -2
- package/dist/{chunk-FVAI7AHF.js → chunk-XUQYC5DD.js} +5 -5
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-XAGBSYIQ.js → chunk-Z5TGBEPJ.js} +1 -1
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{clean-TL3IPJDN.js → clean-6GX7WAEC.js} +22 -21
- package/dist/cli.js +56 -56
- package/dist/{cloud-EYMRPJNY.js → cloud-6PFJKLNL.js} +4 -4
- package/dist/{cloudrun-TOJ36NLX.js → cloudrun-UGG3ZFH7.js} +6 -5
- package/dist/{compare-MP5EOW4D.js → compare-P4EBOP4B.js} +33 -32
- package/dist/{compiler-NOPVLJ2S.js → compiler-PG4RKX6K.js} +3 -3
- package/dist/{component-ASACDCZK.js → component-SQPMI3W7.js} +3 -3
- package/dist/{compositions-WKNZJY34.js → compositions-KRIHY3IY.js} +14 -13
- package/dist/{contactSheet-YOBPATEM.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-DQTFHP3G.js → delete-T5TO4SV6.js} +7 -7
- package/dist/{deploy-HHCFOUFM.js → deploy-AO6LQR5G.js} +6 -6
- package/dist/{dist-NQEYA4ZX.js → dist-23AAB5X2.js} +2 -2
- package/dist/{dist-L4Z4ZEYW.js → dist-6IMEDVMC.js} +1 -1
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-JDM65CP7.js → doctor-QBUJQ655.js} +16 -15
- package/dist/{events-RKRHRLJD.js → events-J7CESLKQ.js} +4 -4
- package/dist/{events-MBRNA3UF.js → events-SIZO7YHI.js} +5 -5
- package/dist/{feedback-LZWIWV5J.js → feedback-74WOJ5PN.js} +12 -12
- package/dist/{ffmpeg-4PZKSIGE.js → ffmpeg-AKUP6U2S.js} +10 -9
- package/dist/{figma-QFNYUT3F.js → figma-GGMYRR4Q.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -10
- package/dist/{get-2B5ENJOH.js → get-PLKAI6JM.js} +7 -7
- package/dist/{gpuPolicy-E5FB2GFR.js → gpuPolicy-EYDAAPJF.js} +8 -7
- package/dist/{grade-compare-4GUAPJHE.js → grade-compare-UADJP4AV.js} +33 -32
- package/dist/{heifImagePrep-C2RYIEER.js → heifImagePrep-KDF3OPOK.js} +9 -8
- package/dist/{help-XGDAXV67.js → help-WSQQ555Q.js} +1 -1
- package/dist/{history-WNFF6HGU.js → history-VSQ2DQ3V.js} +9 -9
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-BR2LKGJD.js → info-MOQ4LRC3.js} +9 -9
- package/dist/{init-P6UWPUY3.js → init-EONQSZJG.js} +32 -31
- package/dist/{inspect-MSRPF7ZO.js → inspect-OLCVLHOU.js} +32 -31
- package/dist/{installer-MPUQS3ZX.js → installer-GHISA75B.js} +4 -4
- package/dist/{keyframes-J6K66QTO.js → keyframes-DGQYCY24.js} +8 -8
- package/dist/{lambda-LJ2OSWFJ.js → lambda-AMMWF2YH.js} +14 -13
- package/dist/{layout-CDY65XGA.js → layout-R6CAPGRO.js} +32 -31
- package/dist/{lint-CAUNBGPX.js → lint-QZJEYPHD.js} +9 -9
- package/dist/{lintProject-ZTSX3AWT.js → lintProject-W3YVHAGP.js} +1 -1
- package/dist/{list-33BYQNRZ.js → list-KCJID4SP.js} +7 -7
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-5QMRKOHK.js → login-7HKBEPJS.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-3JOHHPVR.js → manager-6YSKJMVD.js} +11 -10
- package/dist/{manager-RMYSZ3KI.js → manager-Z7W4GQGF.js} +4 -4
- package/dist/{media-treatment-4WP22CFN.js → media-treatment-E3DL6LEZ.js} +25 -22
- package/dist/{models-HPWCHAZX.js → models-URWI7YEG.js} +15 -14
- package/dist/{motionShot-I7GDIROQ.js → motionShot-27IXMDJK.js} +18 -17
- package/dist/{normalize-audio-VTMXPSC7.js → normalize-audio-WGRLPR3P.js} +9 -9
- package/dist/{open-SAO7OQTT.js → open-LQ35PLEN.js} +13 -13
- package/dist/{parakeetRunner-ZYPBIA73.js → parakeetRunner-XASVIDTI.js} +16 -15
- package/dist/{pipeline-VNBMR6QU.js → pipeline-GA7QVCHS.js} +11 -10
- package/dist/{play-7VI6A7KN.js → play-RYZP77CI.js} +21 -21
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-VWV7L45J.js → preflight-HJFSJXXF.js} +12 -11
- package/dist/{present-CSJGYOFF.js → present-YBMLOWZV.js} +17 -17
- package/dist/{preview-B246ZTVO.js → preview-QIRKJCRV.js} +23 -22
- package/dist/{producer-WJLFDVQJ.js → producer-524FDOLX.js} +1 -1
- package/dist/{projectConfig-OMR46ZWQ.js → projectConfig-IDQN5ZRW.js} +6 -6
- package/dist/{publication-AA7NNYET.js → publication-3X3IGSDO.js} +2 -2
- package/dist/{publish-TJ4QVVSP.js → publish-2BF7K6HX.js} +13 -13
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-LQ2V7W7N.js → remove-background-EZBCEFT6.js} +12 -11
- package/dist/{render-E5QJG74D.js → render-EFUA2A6A.js} +6 -5
- package/dist/{render-JLTNZ36U.js → render-JFMTAXHD.js} +43 -41
- package/dist/{render-AWEEPG3F.js → render-TEEBI2UT.js} +30 -26
- package/dist/{render-batch-U4T4VSCM.js → render-batch-XTYNXVSW.js} +7 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-GXCTUKPV.js → resolver-FZS6TN6B.js} +4 -4
- package/dist/{screenshotCapture-X6OKIXCB.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-4VZWVHWZ.js → sherpa-TQIAIKTH.js} +15 -14
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-WUKR7SUE.js → skills-S6ZG5KKH.js} +7 -7
- package/dist/{skillsUpdateCheck-YXRBY3JC.js → skillsUpdateCheck-XC7JQL3F.js} +5 -5
- package/dist/{snapshot-Q7S2FTNG.js → snapshot-ERYZIM32.js} +66 -47
- package/dist/{src-ZOXUSGAP.js → src-6XOMREMS.js} +7 -6
- package/dist/{src-CLAALR5W.js → src-OL6RHPE4.js} +10 -9
- package/dist/{staticProjectServer-DQ7PIDPA.js → staticProjectServer-JYDDGPAH.js} +16 -16
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/{hyperframes-player-Cm5aBiKq.js → hyperframes-player-5dRdMVOq.js} +3 -3
- package/dist/studio/assets/{index-BF9YeBnC.js → index-Bu3mJUU2.js} +71 -71
- package/dist/studio/assets/{index-BrqAmMRt.js → index-ZqyQ91pm.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-NUE227JM.js → studio-api-GRU4SHKD.js} +9 -9
- package/dist/{studioServer-HVOKP4VI.js → studioServer-OYPBEI5B.js} +54 -53
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-2Y5JXLDB.js → telemetry-CPYINR63.js} +5 -5
- package/dist/{timeline-WOQGXFRV.js → timeline-RGK5BMPD.js} +23 -22
- package/dist/{tokens-T3OHTWUC.js → tokens-EX4BOWRW.js} +2 -2
- package/dist/{transcribe-4U74P5TG.js → transcribe-MK367I6A.js} +14 -13
- package/dist/{transcribe-JZ3BO546.js → transcribe-RI52JMVW.js} +21 -20
- package/dist/{updateCheck-6EUAGAM4.js → updateCheck-BIEJKQI4.js} +4 -4
- package/dist/{upgrade-55K6F4MP.js → upgrade-ES3UUI7O.js} +4 -4
- package/dist/{urlDownloader-47JMOLNN.js → urlDownloader-XAGYSTAG.js} +7 -6
- package/dist/{validate-QBJ3SBS4.js → validate-A6GZHNEI.js} +26 -25
- package/dist/{video-3ZAUNAR3.js → video-OEMGR3MN.js} +10 -8
- package/dist/warmCheck.js +42 -41
- package/package.json +1 -1
- package/dist/chunk-BDJIQZN2.js +0 -4830
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -46,10 +46,10 @@ ${c.bold("ENV VARS:")}
|
|
|
46
46
|
var auth_default = defineCommand({
|
|
47
47
|
meta: { name: "auth", description: "Sign in to HeyGen and manage credentials" },
|
|
48
48
|
subCommands: {
|
|
49
|
-
login: () => import("./login-
|
|
50
|
-
status: () => import("./status-
|
|
51
|
-
logout: () => import("./logout-
|
|
52
|
-
refresh: () => import("./refresh-
|
|
49
|
+
login: () => import("./login-7HKBEPJS.js").then((m) => m.default),
|
|
50
|
+
status: () => import("./status-DTP6ZYDU.js").then((m) => m.default),
|
|
51
|
+
logout: () => import("./logout-3IID4KXD.js").then((m) => m.default),
|
|
52
|
+
refresh: () => import("./refresh-3IRHJEQA.js").then((m) => m.default)
|
|
53
53
|
},
|
|
54
54
|
async run({ args }) {
|
|
55
55
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
detectInstaller,
|
|
13
13
|
installInvocation,
|
|
14
14
|
updateCheckDisabled
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U6KN6OIP.js";
|
|
16
16
|
import "./chunk-K4WIOZFP.js";
|
|
17
17
|
import {
|
|
18
18
|
readConfig,
|
|
19
19
|
withFileLock,
|
|
20
20
|
writeConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NEASABW6.js";
|
|
22
22
|
import "./chunk-WERLJGIC.js";
|
|
23
23
|
import "./chunk-ISN5GRYI.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
25
|
+
import "./chunk-EU7MVORF.js";
|
|
26
26
|
import "./chunk-M2WBOQ2Q.js";
|
|
27
27
|
|
|
28
28
|
// src/utils/autoUpdate.ts
|
|
@@ -6,20 +6,20 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
skillsCheckDue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NZ6G5YWZ.js";
|
|
10
10
|
import {
|
|
11
11
|
updateCheckDue
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U6KN6OIP.js";
|
|
13
13
|
import "./chunk-K4WIOZFP.js";
|
|
14
14
|
import {
|
|
15
15
|
readConfig,
|
|
16
16
|
readConfigFresh,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NEASABW6.js";
|
|
19
19
|
import "./chunk-WERLJGIC.js";
|
|
20
20
|
import "./chunk-ISN5GRYI.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
22
|
+
import "./chunk-EU7MVORF.js";
|
|
23
23
|
import "./chunk-M2WBOQ2Q.js";
|
|
24
24
|
|
|
25
25
|
// src/utils/backgroundChecks.ts
|
|
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
refreshSkillsCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NZ6G5YWZ.js";
|
|
10
10
|
import {
|
|
11
11
|
checkForUpdate
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U6KN6OIP.js";
|
|
13
13
|
import "./chunk-K4WIOZFP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-NEASABW6.js";
|
|
15
15
|
import "./chunk-WERLJGIC.js";
|
|
16
16
|
import "./chunk-ISN5GRYI.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
18
|
+
import "./chunk-EU7MVORF.js";
|
|
19
19
|
import "./chunk-M2WBOQ2Q.js";
|
|
20
20
|
|
|
21
21
|
// src/backgroundChecksWorker.ts
|
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
loadProjectVariableSchema,
|
|
9
9
|
reportVariableIssues,
|
|
10
10
|
validateVariablesAgainstSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MBGM26P5.js";
|
|
12
12
|
import "./chunk-ZBAF6L74.js";
|
|
13
|
+
import "./chunk-XFMO3BEN.js";
|
|
13
14
|
import {
|
|
14
15
|
errorBox
|
|
15
16
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -19,8 +20,8 @@ import {
|
|
|
19
20
|
import {
|
|
20
21
|
c
|
|
21
22
|
} from "./chunk-ZTZA4UWZ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QWBVPWUI.js";
|
|
24
|
+
import "./chunk-BQMAPNDA.js";
|
|
24
25
|
import "./chunk-VC76R6W2.js";
|
|
25
26
|
import "./chunk-OFQWTKPW.js";
|
|
26
27
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -36,7 +37,7 @@ import "./chunk-3422KMTD.js";
|
|
|
36
37
|
import "./chunk-WC4MTXGN.js";
|
|
37
38
|
import {
|
|
38
39
|
normalizeErrorMessage
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EU7MVORF.js";
|
|
40
41
|
import "./chunk-M2WBOQ2Q.js";
|
|
41
42
|
|
|
42
43
|
// src/commands/batchRender.ts
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
finish,
|
|
11
11
|
rhythmSteps,
|
|
12
12
|
tempoOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6DSYBW7Z.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveProject
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z5TGBEPJ.js";
|
|
17
17
|
import "./chunk-K2FLNJVB.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DHQSDCWD.js";
|
|
19
|
+
import "./chunk-PSOAGSNO.js";
|
|
20
20
|
import "./chunk-VWG7OQKU.js";
|
|
21
21
|
import {
|
|
22
22
|
defineCommand
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
c
|
|
30
30
|
} from "./chunk-ZTZA4UWZ.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-GHSO62LK.js";
|
|
32
|
+
import "./chunk-QWBVPWUI.js";
|
|
33
33
|
import {
|
|
34
34
|
parseHTMLContent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BQMAPNDA.js";
|
|
36
36
|
import "./chunk-VC76R6W2.js";
|
|
37
37
|
import {
|
|
38
38
|
isSafePath,
|
|
@@ -43,7 +43,7 @@ import "./chunk-634HSJ3J.js";
|
|
|
43
43
|
import "./chunk-FXMKHHPO.js";
|
|
44
44
|
import "./chunk-QSFWGZG6.js";
|
|
45
45
|
import "./chunk-XT6MXC7A.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-FC4WT5FX.js";
|
|
47
47
|
import "./chunk-CZGHFATT.js";
|
|
48
48
|
import "./chunk-VAS6HQX3.js";
|
|
49
49
|
import "./chunk-PBNWRWKA.js";
|
|
@@ -62,16 +62,16 @@ import "./chunk-3422KMTD.js";
|
|
|
62
62
|
import "./chunk-WC4MTXGN.js";
|
|
63
63
|
import "./chunk-UIOZIIB7.js";
|
|
64
64
|
import "./chunk-K4WIOZFP.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-NEASABW6.js";
|
|
66
66
|
import "./chunk-WERLJGIC.js";
|
|
67
67
|
import "./chunk-ISN5GRYI.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
69
|
+
import "./chunk-EU7MVORF.js";
|
|
70
70
|
import "./chunk-M2WBOQ2Q.js";
|
|
71
71
|
|
|
72
72
|
// src/commands/beats.ts
|
|
73
|
-
import { existsSync, readFileSync, mkdirSync, writeFileSync } from "fs";
|
|
74
|
-
import { join, dirname } from "path";
|
|
73
|
+
import { existsSync, readFileSync, mkdirSync, statSync, writeFileSync } from "fs";
|
|
74
|
+
import { join, dirname, resolve } from "path";
|
|
75
75
|
|
|
76
76
|
// ../core/dist/beats/beatDetection.js
|
|
77
77
|
var STRENGTH_WINDOW_S = 0.05;
|
|
@@ -200,7 +200,8 @@ function findMusicAudioSrc(html) {
|
|
|
200
200
|
// src/commands/beats.ts
|
|
201
201
|
var examples = [
|
|
202
202
|
["Generate the beat file for the current project", "hyperframes beats"],
|
|
203
|
-
["Generate for a specific directory", "hyperframes beats ./my-video"]
|
|
203
|
+
["Generate for a specific directory", "hyperframes beats ./my-video"],
|
|
204
|
+
["Beats of a single audio file", "hyperframes audio music.mp3 --only beats --json"]
|
|
204
205
|
];
|
|
205
206
|
function fail(message) {
|
|
206
207
|
console.error(c.error(message));
|
|
@@ -266,6 +267,12 @@ var beats_default = defineCommand({
|
|
|
266
267
|
json: { type: "boolean", description: "Output result as JSON", default: false }
|
|
267
268
|
},
|
|
268
269
|
async run({ args }) {
|
|
270
|
+
if (args.dir && existsSync(resolve(args.dir)) && statSync(resolve(args.dir)).isFile()) {
|
|
271
|
+
const file = JSON.stringify(args.dir);
|
|
272
|
+
fail(
|
|
273
|
+
/\.html?$/i.test(args.dir) ? `${args.dir} is a file; beats takes the project folder: hyperframes beats ${JSON.stringify(dirname(args.dir))}` : `${args.dir} is a file; beats takes a project folder. For one audio or video file run: hyperframes audio ${file} --only beats --json`
|
|
274
|
+
);
|
|
275
|
+
}
|
|
269
276
|
const project = resolveProject(args.dir);
|
|
270
277
|
const { rel, audioPath } = resolveMusicTarget(project);
|
|
271
278
|
if (!args.json) console.log(c.dim(`Analyzing ${rel}\u2026`));
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
} from "./chunk-WMQNIQDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
loadProducer
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S4KHJERB.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveProject
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z5TGBEPJ.js";
|
|
16
16
|
import {
|
|
17
17
|
errorBox,
|
|
18
18
|
formatBytes,
|
|
19
19
|
formatDuration
|
|
20
20
|
} from "./chunk-K2FLNJVB.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DHQSDCWD.js";
|
|
22
|
+
import "./chunk-PSOAGSNO.js";
|
|
23
23
|
import "./chunk-VWG7OQKU.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
} from "./chunk-ZTZA4UWZ.js";
|
|
35
35
|
import {
|
|
36
36
|
fpsToFfmpegArg
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-QWBVPWUI.js";
|
|
38
|
+
import "./chunk-BQMAPNDA.js";
|
|
39
39
|
import "./chunk-VC76R6W2.js";
|
|
40
40
|
import "./chunk-OFQWTKPW.js";
|
|
41
41
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -54,13 +54,13 @@ import "./chunk-WC4MTXGN.js";
|
|
|
54
54
|
import "./chunk-UIOZIIB7.js";
|
|
55
55
|
import {
|
|
56
56
|
withMeta
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-U6KN6OIP.js";
|
|
58
58
|
import "./chunk-K4WIOZFP.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-NEASABW6.js";
|
|
60
60
|
import "./chunk-WERLJGIC.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
63
|
+
import "./chunk-EU7MVORF.js";
|
|
64
64
|
import "./chunk-M2WBOQ2Q.js";
|
|
65
65
|
|
|
66
66
|
// src/commands/benchmark.ts
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
} from "./chunk-K2FLNJVB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackBrowserInstall
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-DHQSDCWD.js";
|
|
19
|
+
import "./chunk-PSOAGSNO.js";
|
|
20
20
|
import "./chunk-VWG7OQKU.js";
|
|
21
21
|
import {
|
|
22
22
|
defineCommand
|
|
@@ -36,23 +36,23 @@ import {
|
|
|
36
36
|
ensureBrowser,
|
|
37
37
|
findBrowser,
|
|
38
38
|
isLinuxArm
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-KTWGVEN6.js";
|
|
40
|
+
import "./chunk-Q43YUROE.js";
|
|
41
41
|
import "./chunk-KGPLIH7B.js";
|
|
42
42
|
import "./chunk-QSFWGZG6.js";
|
|
43
43
|
import "./chunk-XT6MXC7A.js";
|
|
44
44
|
import {
|
|
45
45
|
managedChromeVersion
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ERUQ3S6D.js";
|
|
47
47
|
import "./chunk-UIOZIIB7.js";
|
|
48
48
|
import "./chunk-K4WIOZFP.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-NEASABW6.js";
|
|
50
50
|
import "./chunk-WERLJGIC.js";
|
|
51
51
|
import "./chunk-ISN5GRYI.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-MW2NQQ6Z.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeErrorMessage
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-EU7MVORF.js";
|
|
56
56
|
import "./chunk-M2WBOQ2Q.js";
|
|
57
57
|
|
|
58
58
|
// src/commands/browser.ts
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
} from "./chunk-ZTZA4UWZ.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeErrorMessage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EU7MVORF.js";
|
|
13
13
|
import "./chunk-M2WBOQ2Q.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/bundleWithLocalizedFonts.ts
|
|
16
16
|
async function bundleWithLocalizedFonts(projectDir, localizeFonts = localizeWithProducer, bundleOptions) {
|
|
17
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
17
|
+
const { bundleToSingleHtml } = await import("./compiler-PG4RKX6K.js");
|
|
18
18
|
const html = await bundleToSingleHtml(projectDir, bundleOptions);
|
|
19
19
|
return localizeFonts(html);
|
|
20
20
|
}
|
|
21
21
|
async function loadFontInjector() {
|
|
22
22
|
try {
|
|
23
|
-
const { loadProducer } = await import("./producer-
|
|
23
|
+
const { loadProducer } = await import("./producer-524FDOLX.js");
|
|
24
24
|
const mod = await loadProducer();
|
|
25
25
|
return mod.injectDeterministicFontFaces ?? null;
|
|
26
26
|
} catch {
|
|
@@ -23,19 +23,26 @@ import {
|
|
|
23
23
|
resolvePublicAddress,
|
|
24
24
|
safeFetch,
|
|
25
25
|
totalDrops
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K4PHB3YQ.js";
|
|
27
27
|
import {
|
|
28
28
|
captureUpstreamProxy,
|
|
29
29
|
connectAuthority,
|
|
30
30
|
openUpstreamTunnel
|
|
31
31
|
} from "./chunk-TSYRN646.js";
|
|
32
|
+
import {
|
|
33
|
+
captureSiteName,
|
|
34
|
+
localUrlRewriter,
|
|
35
|
+
resolveLocalCaptureTarget,
|
|
36
|
+
rewriteLocalCaptureOutput,
|
|
37
|
+
rewriteStrings,
|
|
38
|
+
startLocalPageServer
|
|
39
|
+
} from "./chunk-DROFHVQD.js";
|
|
32
40
|
import {
|
|
33
41
|
CaptureDirRefusedError,
|
|
34
42
|
NavigationDeadlineError,
|
|
35
43
|
ensureCaptureDirSync,
|
|
36
|
-
removeTreeBestEffortAsync,
|
|
37
44
|
writeCaptureFileSync
|
|
38
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-EQBDKYXR.js";
|
|
39
46
|
import {
|
|
40
47
|
loadOptionalPackage,
|
|
41
48
|
loadSharp
|
|
@@ -50,7 +57,7 @@ import {
|
|
|
50
57
|
closeManagedBrowser,
|
|
51
58
|
launchManagedBrowser,
|
|
52
59
|
registerBrowserSessionCleanup
|
|
53
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-X6MCIK7L.js";
|
|
54
61
|
import {
|
|
55
62
|
navigateForCapture,
|
|
56
63
|
waitForPageReady
|
|
@@ -62,7 +69,7 @@ import {
|
|
|
62
69
|
isNavigationTimeoutError,
|
|
63
70
|
withRemainingBudget
|
|
64
71
|
} from "./chunk-EHSBBBR2.js";
|
|
65
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-4LTBQEPD.js";
|
|
66
73
|
import {
|
|
67
74
|
writeNewFileSync
|
|
68
75
|
} from "./chunk-XMRA7CQG.js";
|
|
@@ -75,11 +82,14 @@ import {
|
|
|
75
82
|
diag
|
|
76
83
|
} from "./chunk-VWG7OQKU.js";
|
|
77
84
|
import "./chunk-JVBRJMOP.js";
|
|
78
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-MPO25DQW.js";
|
|
86
|
+
import {
|
|
87
|
+
removeTreeBestEffortAsync
|
|
88
|
+
} from "./chunk-Z5J67X44.js";
|
|
79
89
|
import "./chunk-5S7W3TUO.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-GHSO62LK.js";
|
|
91
|
+
import "./chunk-QWBVPWUI.js";
|
|
92
|
+
import "./chunk-BQMAPNDA.js";
|
|
83
93
|
import "./chunk-VC76R6W2.js";
|
|
84
94
|
import "./chunk-OFQWTKPW.js";
|
|
85
95
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -88,8 +98,8 @@ import "./chunk-634HSJ3J.js";
|
|
|
88
98
|
import "./chunk-FXMKHHPO.js";
|
|
89
99
|
import "./chunk-KGPLIH7B.js";
|
|
90
100
|
import "./chunk-K4MJX7SR.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-ERUQ3S6D.js";
|
|
102
|
+
import "./chunk-FC4WT5FX.js";
|
|
93
103
|
import "./chunk-CZGHFATT.js";
|
|
94
104
|
import "./chunk-VAS6HQX3.js";
|
|
95
105
|
import "./chunk-PBNWRWKA.js";
|
|
@@ -106,7 +116,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
106
116
|
import "./chunk-UIOZIIB7.js";
|
|
107
117
|
import {
|
|
108
118
|
normalizeErrorMessage
|
|
109
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-EU7MVORF.js";
|
|
110
120
|
import "./chunk-M2WBOQ2Q.js";
|
|
111
121
|
|
|
112
122
|
// src/capture/partialCapture.ts
|
|
@@ -157,7 +167,7 @@ function createPartialCaptureState(opts) {
|
|
|
157
167
|
};
|
|
158
168
|
}
|
|
159
169
|
function writePartialCaptureBundle(opts, state, lastPhase) {
|
|
160
|
-
const hostname =
|
|
170
|
+
const hostname = captureSiteName(opts.url);
|
|
161
171
|
const extractedDir = ensureCaptureDirSync(opts.outputDir, join(opts.outputDir, "extracted"));
|
|
162
172
|
writeCaptureFileSync(join(extractedDir, "tokens.json"), serializeTokensForCapture(state.tokens));
|
|
163
173
|
writeCaptureFileSync(
|
|
@@ -425,7 +435,7 @@ async function launchCaptureBrowser(options) {
|
|
|
425
435
|
args: [
|
|
426
436
|
...captureBrowserArgs(options.disableWebgl, options.width, options.height),
|
|
427
437
|
`--proxy-server=${proxy.url}`,
|
|
428
|
-
|
|
438
|
+
`--proxy-bypass-list=<-loopback>${options.localOrigin ? `;${new URL(options.localOrigin).host}` : ""}`,
|
|
429
439
|
"--disable-quic",
|
|
430
440
|
"--force-webrtc-ip-handling-policy=disable_non_proxied_udp"
|
|
431
441
|
]
|
|
@@ -934,14 +944,14 @@ function loadEnvFile(startDir) {
|
|
|
934
944
|
async function generateProjectScaffold(outputDir, url, tokens, animationCatalog, hasScreenshots, hasLotties, hasShaders, catalogedAssets, progress, warnings, detectedLibraries) {
|
|
935
945
|
const metaPath = join3(outputDir, "meta.json");
|
|
936
946
|
if (!existsSync(metaPath)) {
|
|
937
|
-
const hostname =
|
|
947
|
+
const hostname = captureSiteName(url);
|
|
938
948
|
writeNewFileSync(
|
|
939
949
|
metaPath,
|
|
940
950
|
JSON.stringify({ id: hostname + "-video", name: tokens.title || hostname }, null, 2)
|
|
941
951
|
);
|
|
942
952
|
}
|
|
943
953
|
try {
|
|
944
|
-
const { generateAgentPrompt } = await import("./agentPromptGenerator-
|
|
954
|
+
const { generateAgentPrompt } = await import("./agentPromptGenerator-4NJ252MR.js");
|
|
945
955
|
generateAgentPrompt(
|
|
946
956
|
outputDir,
|
|
947
957
|
url,
|
|
@@ -3462,7 +3472,7 @@ ${err.stack}` : normalizeErrorMessage(err);
|
|
|
3462
3472
|
await runAnimationCapture();
|
|
3463
3473
|
const runScreenshotCapture = async () => {
|
|
3464
3474
|
progress("screenshots", "Capturing scroll screenshots...");
|
|
3465
|
-
const { captureScrollScreenshots } = await import("./screenshotCapture-
|
|
3475
|
+
const { captureScrollScreenshots } = await import("./screenshotCapture-HOW4VSV6.js");
|
|
3466
3476
|
if (!canWrite()) {
|
|
3467
3477
|
screenshotOutcome = {
|
|
3468
3478
|
kind: "failed",
|
|
@@ -3508,7 +3518,7 @@ ${err.stack}` : normalizeErrorMessage(err);
|
|
|
3508
3518
|
});
|
|
3509
3519
|
progress("design", "Cataloging assets...");
|
|
3510
3520
|
try {
|
|
3511
|
-
const { catalogAssets } = await import("./assetCataloger-
|
|
3521
|
+
const { catalogAssets } = await import("./assetCataloger-YBPXUNUP.js");
|
|
3512
3522
|
catalogedAssets = await catalogAssets(page1);
|
|
3513
3523
|
progress("design", `${catalogedAssets.length} assets cataloged`);
|
|
3514
3524
|
if (catalogedAssets.length === 0) {
|
|
@@ -4001,7 +4011,7 @@ ${extracted.bodyHtml}
|
|
|
4001
4011
|
if (remainingMs() > 0 && canWrite()) {
|
|
4002
4012
|
phase("contact-sheets", "started");
|
|
4003
4013
|
try {
|
|
4004
|
-
const { createScrollContactSheet, createAssetContactSheet, createSvgContactSheet } = await import("./contactSheet-
|
|
4014
|
+
const { createScrollContactSheet, createAssetContactSheet, createSvgContactSheet } = await import("./contactSheet-RYAE7Y5D.js");
|
|
4005
4015
|
const contactSheetBudget = { remainingMs };
|
|
4006
4016
|
const runScrollContactSheet = async () => {
|
|
4007
4017
|
const scrollSheets = await createScrollContactSheet(
|
|
@@ -4073,7 +4083,7 @@ ${extracted.bodyHtml}
|
|
|
4073
4083
|
|
|
4074
4084
|
// src/capture/captureAttempt.ts
|
|
4075
4085
|
var DEFAULT_POST_NAVIGATION_BUDGET_MS = 12e4;
|
|
4076
|
-
async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, state) {
|
|
4086
|
+
async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, state, localOrigin) {
|
|
4077
4087
|
const {
|
|
4078
4088
|
url,
|
|
4079
4089
|
outputDir,
|
|
@@ -4088,7 +4098,9 @@ async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, s
|
|
|
4088
4098
|
onPhase
|
|
4089
4099
|
} = opts;
|
|
4090
4100
|
const initialUrl = new URL(url);
|
|
4091
|
-
if (
|
|
4101
|
+
if (localOrigin !== void 0) {
|
|
4102
|
+
if (initialUrl.origin !== localOrigin) throw new Error("Local capture URL must use its server");
|
|
4103
|
+
} else if (!["http:", "https:"].includes(initialUrl.protocol) || initialUrl.username || initialUrl.password) {
|
|
4092
4104
|
throw new Error("Capture requires a public HTTP or HTTPS URL without credentials");
|
|
4093
4105
|
}
|
|
4094
4106
|
const downloadByteBudget = createCaptureDownloadBudget();
|
|
@@ -4125,14 +4137,15 @@ async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, s
|
|
|
4125
4137
|
ensureCaptureDirSync(outputDir, join11(outputDir, "screenshots"));
|
|
4126
4138
|
ensureCaptureDirSync(outputDir, join11(outputDir, "assets"));
|
|
4127
4139
|
progress("browser", "Launching headless Chrome...");
|
|
4128
|
-
const { ensureBrowser } = await import("./manager-
|
|
4140
|
+
const { ensureBrowser } = await import("./manager-Z7W4GQGF.js");
|
|
4129
4141
|
const browser = await ensureBrowser();
|
|
4130
4142
|
const captureBrowser = await launchCaptureBrowser({
|
|
4131
4143
|
executablePath: browser.executablePath,
|
|
4132
4144
|
protocolTimeout: captureProtocolTimeoutMs(timeout, budgetMs),
|
|
4133
4145
|
disableWebgl,
|
|
4134
4146
|
width: viewportWidth,
|
|
4135
|
-
height: viewportHeight
|
|
4147
|
+
height: viewportHeight,
|
|
4148
|
+
localOrigin
|
|
4136
4149
|
});
|
|
4137
4150
|
const chromeBrowser = captureBrowser.browser;
|
|
4138
4151
|
watchdog.registerBrowser(captureBrowser);
|
|
@@ -4332,14 +4345,33 @@ async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, s
|
|
|
4332
4345
|
|
|
4333
4346
|
// src/capture/index.ts
|
|
4334
4347
|
async function captureWebsite(opts, onProgress) {
|
|
4348
|
+
if (opts.localFile === void 0) {
|
|
4349
|
+
if (opts.localRoot !== void 0) throw new Error("localRoot requires localFile");
|
|
4350
|
+
return captureTarget(opts, onProgress);
|
|
4351
|
+
}
|
|
4352
|
+
const local = resolveLocalCaptureTarget(opts.localFile, opts.localRoot);
|
|
4353
|
+
const server = await startLocalPageServer(local);
|
|
4354
|
+
const rewrite = localUrlRewriter(server.origin, local.root);
|
|
4355
|
+
try {
|
|
4356
|
+
const result = await captureTarget({ ...opts, url: server.url }, onProgress, server.origin);
|
|
4357
|
+
return { ...rewriteStrings(result, rewrite), url: local.fileUrl };
|
|
4358
|
+
} finally {
|
|
4359
|
+
await server.close();
|
|
4360
|
+
rewriteLocalCaptureOutput(opts.outputDir, rewrite, local.fileUrl);
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
async function captureTarget(opts, onProgress, localOrigin) {
|
|
4335
4364
|
const watchdog = createCaptureWatchdog(opts.captureDeadlineMs);
|
|
4336
4365
|
const state = createPartialCaptureState(opts);
|
|
4337
|
-
const
|
|
4366
|
+
const run = (disableWebgl) => captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, state, localOrigin);
|
|
4367
|
+
const settle = async (attempt) => {
|
|
4368
|
+
const outcome = await runWithWatchdog(attempt, watchdog.promise);
|
|
4369
|
+
if (outcome.kind === "deadline") return deadlineResult(opts, state);
|
|
4370
|
+
if (outcome.kind === "error") throw outcome.error;
|
|
4371
|
+
return outcome.result;
|
|
4372
|
+
};
|
|
4338
4373
|
try {
|
|
4339
|
-
|
|
4340
|
-
if (first.kind === "deadline") return deadlineResult(opts, state);
|
|
4341
|
-
if (first.kind === "error") throw first.error;
|
|
4342
|
-
return first.result;
|
|
4374
|
+
return await settle(run(false));
|
|
4343
4375
|
} catch (err) {
|
|
4344
4376
|
if (!(err instanceof NavigationDeadlineError) || watchdog.expired() || !err.webglObserved) {
|
|
4345
4377
|
throw err;
|
|
@@ -4353,14 +4385,8 @@ async function captureWebsite(opts, onProgress) {
|
|
|
4353
4385
|
remainingMs: null,
|
|
4354
4386
|
reason: "webgl-disabled-retry"
|
|
4355
4387
|
});
|
|
4356
|
-
const
|
|
4357
|
-
|
|
4358
|
-
if (second.kind === "deadline") return deadlineResult(opts, state);
|
|
4359
|
-
if (second.kind === "error") throw second.error;
|
|
4360
|
-
return {
|
|
4361
|
-
...second.result,
|
|
4362
|
-
warnings: [.../* @__PURE__ */ new Set([...state.warnings, ...second.result.warnings])]
|
|
4363
|
-
};
|
|
4388
|
+
const second = await settle(run(true));
|
|
4389
|
+
return { ...second, warnings: [.../* @__PURE__ */ new Set([...state.warnings, ...second.warnings])] };
|
|
4364
4390
|
} finally {
|
|
4365
4391
|
watchdog.dispose();
|
|
4366
4392
|
}
|