hyperframes 0.8.213 → 0.8.216
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-GRJ6BQMO.js → add-2RWN7JAI.js} +18 -15
- package/dist/{agentPromptGenerator-2HTUGEKK.js → agentPromptGenerator-RVE5RWTH.js} +9 -8
- package/dist/{animatedGifPrep-7KPZBZXD.js → animatedGifPrep-I32BS5HI.js} +9 -8
- package/dist/api.js +20 -19
- package/dist/{asset-YVIFFWCU.js → asset-YLZ5UGVE.js} +2 -2
- package/dist/{assetCataloger-IZW7LPCT.js → assetCataloger-B4KOZO3V.js} +10 -9
- package/dist/{audio-X7274SUF.js → audio-VUOJ7MOJ.js} +180 -64
- package/dist/{auth-II6SIDJD.js → auth-3UL65CN7.js} +4 -4
- package/dist/{autoUpdate-WJIT74BG.js → autoUpdate-FEK5AHLP.js} +4 -3
- package/dist/{backgroundChecks-NMKJAES7.js → backgroundChecks-VJSQ3REH.js} +5 -4
- package/dist/backgroundChecksWorker.js +6 -5
- package/dist/{batchRender-I7GRY73M.js → batchRender-NC6SUDYN.js} +4 -4
- package/dist/{beats-6VXALJZT.js → beats-KSUZ23LE.js} +25 -19
- package/dist/{benchmark-RLIRA74V.js → benchmark-TRVQ7EPQ.js} +15 -12
- package/dist/{browser-7T3JMNTR.js → browser-3LJ3SLQ4.js} +10 -7
- package/dist/{bundleWithLocalizedFonts-C2LP6QZZ.js → bundleWithLocalizedFonts-Y7VGIRFK.js} +2 -2
- package/dist/{capture-V4HWHG7C.js → capture-NC5OO4D2.js} +3 -3
- package/dist/{capture-OZFDTN4A.js → capture-NT2SOO5J.js} +17 -16
- package/dist/{captureCompositionFrame-WZAVXCRQ.js → captureCompositionFrame-PAJRNURH.js} +15 -14
- package/dist/{catalog-UFC7JS4T.js → catalog-BOGZ2BQD.js} +19 -16
- package/dist/{catch-up-YBNKJDWJ.js → catch-up-FGF5SAEW.js} +10 -7
- package/dist/{check-ESQJHRGA.js → check-IG6NIMSC.js} +46 -43
- package/dist/{checkAudio-OIIBWFBF.js → checkAudio-6B2FKTIU.js} +14 -13
- package/dist/{checkBrowser-WAWL6TKX.js → checkBrowser-D6MZRCTH.js} +39 -36
- package/dist/{chunk-7LOVQRUJ.js → chunk-2JV6FKNZ.js} +3 -3
- package/dist/{chunk-WSEPFRJV.js → chunk-3AOXAXTA.js} +1 -1
- package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
- package/dist/{chunk-V2H5UABS.js → chunk-3S2WWGJJ.js} +3 -3
- package/dist/{chunk-ENE4IKFX.js → chunk-43USF7JF.js} +11 -11
- package/dist/{chunk-VTX27LET.js → chunk-4EEVTNDU.js} +3 -3
- package/dist/{chunk-MFC2PE7D.js → chunk-4MWUMT3T.js} +2 -2
- package/dist/chunk-4WEWHZZO.js +24 -0
- package/dist/{chunk-7JWRVKN4.js → chunk-4YIKQM4K.js} +1 -1
- package/dist/{chunk-SZOCI3JJ.js → chunk-557ZJMFI.js} +2 -2
- package/dist/{chunk-DQ26IA5P.js → chunk-5XTOAZMR.js} +1 -1
- package/dist/{chunk-LGDRKQKL.js → chunk-6HJUC2VX.js} +3 -3
- package/dist/{chunk-MBSESQED.js → chunk-6LQL2BVD.js} +1 -1
- package/dist/{chunk-F4EX52FU.js → chunk-7P76YIVS.js} +1 -1
- package/dist/{chunk-3OYLHBQZ.js → chunk-7RPXLY6U.js} +1 -1
- package/dist/{chunk-KSMCX5EP.js → chunk-ACAU2AK2.js} +4 -4
- package/dist/{chunk-I3G45TWG.js → chunk-BHWXSO6T.js} +1 -1
- package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
- package/dist/{chunk-5ODMV7X6.js → chunk-BTYR7Y3Z.js} +2 -2
- package/dist/{chunk-PAZ7WUYZ.js → chunk-BYHG2T5X.js} +2 -2
- package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
- package/dist/{chunk-ISMOBMWF.js → chunk-CX4TSC7T.js} +98 -37
- package/dist/{chunk-DJFEYX23.js → chunk-DFA5GTRJ.js} +1 -1
- package/dist/{chunk-KY67MTBH.js → chunk-DYHAZFK3.js} +336 -3
- package/dist/{chunk-TCCCAEZD.js → chunk-EB44YMQO.js} +3 -3
- package/dist/{chunk-LYON3VGF.js → chunk-EJTVBW42.js} +2 -2
- package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
- package/dist/{chunk-QHWVCKC5.js → chunk-FUSUFW2L.js} +1 -1
- package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
- package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
- package/dist/{chunk-NGJS5H5E.js → chunk-GTKUQUZ6.js} +1 -1
- package/dist/{chunk-ZGG53XZX.js → chunk-I3VXWMQW.js} +7 -7
- package/dist/chunk-IVRKWQTX.js +5061 -0
- package/dist/{chunk-4645UHJF.js → chunk-JF3RF6GS.js} +3 -2
- package/dist/{chunk-FGIMC5I4.js → chunk-JFFQWMNE.js} +5 -5
- package/dist/{chunk-EQ66MVWZ.js → chunk-JOZQFSOV.js} +1 -1
- package/dist/{chunk-STK62RL7.js → chunk-KBTXAUCZ.js} +1 -1
- package/dist/{chunk-X4SBDDLS.js → chunk-KSC4O2RY.js} +4 -0
- package/dist/{chunk-FHO3FXTW.js → chunk-KYXBPFI7.js} +8 -6
- package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
- package/dist/{chunk-CLA4XSBO.js → chunk-LGZP4IR2.js} +3 -3
- package/dist/{chunk-TLXK5A2N.js → chunk-MKL6JGDL.js} +35 -30
- package/dist/{chunk-IHYWP4V5.js → chunk-MO6DJMZP.js} +1 -1
- package/dist/{chunk-2GS2RUVI.js → chunk-MU66MHZB.js} +2 -2
- package/dist/{chunk-Z7QHOT65.js → chunk-MYHAS5U2.js} +13 -17
- package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
- package/dist/{chunk-S3ZWVEGQ.js → chunk-NWYJZAPP.js} +1 -1
- package/dist/{chunk-2WELGDXU.js → chunk-OFJTXNRS.js} +5 -5
- package/dist/{chunk-TWCICOCI.js → chunk-OPLEWQHF.js} +1 -1
- package/dist/{chunk-BVHNFPRF.js → chunk-OWU2BURB.js} +2 -2
- package/dist/{chunk-HWHPYCBZ.js → chunk-PNE2Y42T.js} +1 -1
- package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
- package/dist/chunk-PXVQOMKL.js +39 -0
- package/dist/{chunk-AJ3QW6RX.js → chunk-Q3OKLJ34.js} +3 -3
- package/dist/chunk-QBXDU24O.js +20 -0
- package/dist/{chunk-L34IH4SH.js → chunk-QETCWXRM.js} +5 -5
- package/dist/{chunk-H3I2VLLL.js → chunk-QGMRSNG5.js} +8 -4
- package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
- package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
- package/dist/{chunk-53VXGZ3L.js → chunk-RH5Y75UX.js} +2 -2
- package/dist/{chunk-ZTCILR3V.js → chunk-RIGQABEL.js} +1 -1
- package/dist/{chunk-ZSRNM6LP.js → chunk-RKS7GO4O.js} +1 -1
- package/dist/{chunk-7I5N36JA.js → chunk-RN7RQBW3.js} +2 -2
- package/dist/{chunk-N3MOQTRS.js → chunk-ROUK3OL2.js} +8 -8
- package/dist/{chunk-BE6XXZAR.js → chunk-RXQU3QM4.js} +11 -11
- package/dist/{chunk-XNY2KI2Z.js → chunk-SBBYMUWY.js} +1 -1
- package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
- package/dist/{chunk-GNSNCIHF.js → chunk-SPFTXNKQ.js} +20 -15
- package/dist/{chunk-46HYDDZ5.js → chunk-TBEU55KU.js} +1 -1
- package/dist/{chunk-76T7KAYD.js → chunk-TQSKEMSL.js} +48 -9
- package/dist/{chunk-O63A26XQ.js → chunk-U54ZBLTF.js} +2 -2
- package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
- package/dist/{chunk-D3Q2TABU.js → chunk-UIETUYFT.js} +1 -1
- package/dist/{chunk-4BXPCS5B.js → chunk-UJEEURID.js} +15 -15
- package/dist/{chunk-DKEZSH6M.js → chunk-URUUGFZD.js} +3 -3
- package/dist/{chunk-LTQXIYNL.js → chunk-USQTLRSD.js} +3 -3
- package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
- package/dist/{chunk-NP4G4WPP.js → chunk-VDFY4FE5.js} +12 -11
- package/dist/{chunk-KL2UJXCY.js → chunk-VPA5YKEY.js} +2 -2
- package/dist/{chunk-CTZJSMGU.js → chunk-VZBJ5BQF.js} +1 -1
- package/dist/{chunk-KVFOQ3EM.js → chunk-VZENYSX7.js} +103 -13
- package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
- package/dist/{chunk-CCLBOLYU.js → chunk-YBNF5ZOC.js} +1 -1
- package/dist/{chunk-TDNPJHEQ.js → chunk-YT4DR2UT.js} +7 -7
- package/dist/{chunk-LALMFSLB.js → chunk-Z4W7ND2L.js} +7 -7
- package/dist/{chunk-Z65ZQYBW.js → chunk-ZRK7ZEWI.js} +3 -3
- package/dist/{clean-XBQ54UZX.js → clean-WPLBDRSW.js} +23 -22
- package/dist/cli.js +61 -59
- package/dist/{cloud-E2GUGXXL.js → cloud-VMSG2SJB.js} +4 -4
- package/dist/{cloudrun-IAPFT66T.js → cloudrun-AXB4G6X2.js} +5 -5
- package/dist/commands/layout-audit.browser.js +37 -0
- package/dist/{compare-2VPIOCLV.js → compare-NVW3E74E.js} +36 -33
- package/dist/{compiler-3ED6KJYN.js → compiler-GHX7QLHL.js} +4 -4
- package/dist/{component-IH2KSDNM.js → component-ZQAP7CBI.js} +3 -3
- package/dist/{compositions-MIMF2GM3.js → compositions-FKHNCB6H.js} +17 -14
- package/dist/{delete-5H5EYSYK.js → delete-XYC7FN6A.js} +8 -6
- package/dist/{deploy-DMQT34K2.js → deploy-DOJS666X.js} +2 -2
- package/dist/{dist-ANQ2CIIO.js → dist-3Q2DNDSR.js} +17 -3
- package/dist/{dist-OKQM7BQ3.js → dist-KXFW5H5Q.js} +2 -2
- package/dist/{doctor-MTRZJQZZ.js → doctor-7CUFMW3Y.js} +16 -15
- package/dist/{events-2GNMM2YS.js → events-K7HUJ4DO.js} +9 -6
- package/dist/{events-TBKM6B5H.js → events-KGXVDZV7.js} +9 -6
- package/dist/{feedback-6NNSKXQP.js → feedback-F7WLYJGJ.js} +17 -14
- package/dist/{ffmpeg-622QCJLB.js → ffmpeg-ZFHN4YZ2.js} +9 -8
- package/dist/{figma-TFHZ3N5A.js → figma-7QKRKT5Q.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-P6RA7MAU.js → get-XKPYG6IC.js} +8 -6
- package/dist/{gpuPolicy-CK2XDEAM.js → gpuPolicy-A74BROG6.js} +9 -8
- package/dist/{grade-compare-LK6U7OJD.js → grade-compare-7SR62TE5.js} +37 -34
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-3OXKQUEZ.js → heifImagePrep-XTCBHE3B.js} +10 -9
- package/dist/{help-YENCFXYK.js → help-B7CXC4J5.js} +3 -3
- package/dist/{history-V3E4UCMY.js → history-3INEHHZ4.js} +12 -9
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +71 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-ZGKQMX3Z.js → info-J3U63EFT.js} +14 -11
- package/dist/{init-D6PJI2TA.js → init-2IEXXRG2.js} +35 -32
- package/dist/{inspect-UCHLILOX.js → inspect-IRJABR66.js} +37 -34
- package/dist/{installer-CV2OKJFW.js → installer-6JLQM6OJ.js} +5 -5
- package/dist/{keyframes-2IJTDJ7K.js → keyframes-G2TSKZRL.js} +12 -9
- package/dist/{lambda-GKZBKWTK.js → lambda-QFFFCFK3.js} +13 -12
- package/dist/{layout-KKPRCTME.js → layout-INRUYIDJ.js} +37 -34
- package/dist/{lint-NAC6M4NT.js → lint-BHPBD7Z3.js} +15 -12
- package/dist/{lintProject-MSATZIK7.js → lintProject-SZIPPOJR.js} +2 -2
- package/dist/{list-QRMXOTNB.js → list-BGL5PH6J.js} +8 -6
- package/dist/{localPage-KMXALM7A.js → localPage-MLFDX4Y6.js} +9 -8
- package/dist/{login-GBN5ZMEA.js → login-ABDL65L6.js} +19 -18
- package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
- package/dist/{manager-GPDDRQIW.js → manager-DEKPCPWH.js} +11 -10
- package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
- package/dist/{media-treatment-4Q7G27JJ.js → media-treatment-BQDTCBIT.js} +31 -19
- package/dist/{models-7KJF4LYJ.js → models-SJIA5QDV.js} +13 -12
- package/dist/{motionShot-DQAX2QTZ.js → motionShot-46J3W5UJ.js} +19 -18
- package/dist/{normalize-audio-K7VCJQYJ.js → normalize-audio-UXAJSQKI.js} +16 -13
- package/dist/{open-ZSBVR3KC.js → open-DHRYP3N3.js} +18 -15
- package/dist/{parakeetRunner-XXZHJYKO.js → parakeetRunner-WKMM4TYU.js} +15 -14
- package/dist/{pipeline-KNLOS5CL.js → pipeline-EIVKRUX2.js} +13 -12
- package/dist/{play-GQWF7MU5.js → play-J5A7KHNF.js} +27 -24
- package/dist/{preflight-UMKQ5C5W.js → preflight-GKIQIXFQ.js} +12 -11
- package/dist/{present-X7BPH35M.js → present-ZDXILGQJ.js} +23 -20
- package/dist/{preview-5Q7HPEOF.js → preview-A2MLHZFF.js} +25 -22
- package/dist/{producer-IXOPGETH.js → producer-NYWYRG4X.js} +1 -1
- package/dist/{projectConfig-YGI5AINR.js → projectConfig-DY6FHC7A.js} +7 -7
- package/dist/{publication-ZSDCS2ST.js → publication-N4WHPZOW.js} +3 -3
- package/dist/{publish-S2IIRPFZ.js → publish-26W6VDND.js} +17 -15
- package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
- package/dist/{remove-background-F2WFDCNM.js → remove-background-JYUB75RB.js} +14 -13
- package/dist/{render-CHRSSQNM.js → render-AQH2VMHO.js} +125 -72
- package/dist/{render-NVHUPEDG.js → render-JZWO3VX3.js} +25 -22
- package/dist/{render-WYBQO4SR.js → render-YPI6CDRS.js} +6 -6
- package/dist/{render-batch-SDGA2643.js → render-batch-GR2Y3F2S.js} +6 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-3W2OPVGC.js → resolver-LTLSX6DR.js} +5 -5
- package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
- package/dist/{sherpa-HCPAOYGA.js → sherpa-2DJ33LQP.js} +14 -13
- package/dist/sherpaWorker.js +1 -1
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
- package/dist/skills/media-use/references/meta.md +6 -5
- package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
- package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
- package/dist/{skills-KOVM4OP5.js → skills-OF7XMPKX.js} +11 -8
- package/dist/{skillsUpdateCheck-ISMQFMPY.js → skillsUpdateCheck-E3HPT4PS.js} +5 -4
- package/dist/{snapshot-K7LVZDHG.js → snapshot-6F5XK22M.js} +60 -40
- package/dist/{src-QEFKMRH7.js → src-JUJFZ6GC.js} +12 -7
- package/dist/{src-FUMXFZYG.js → src-UNN3TXHH.js} +11 -10
- package/dist/{staticProjectServer-MF57NBIU.js → staticProjectServer-DLSH7DHS.js} +21 -20
- package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
- package/dist/studio/assets/{hyperframes-player-Bb6n05RB.js → hyperframes-player-D38lr2hR.js} +3 -3
- package/dist/studio/assets/{index-pq574E5O.js → index-C-DCQ7nQ.js} +121 -121
- package/dist/studio/assets/{index-DOtf09XR.js → index-CJ28BLvq.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-Y4S3W7XE.js → studio-api-5YATSN7H.js} +11 -11
- package/dist/{studioServer-5LUZQOQV.js → studioServer-O3FSLOUF.js} +58 -55
- package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
- package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
- package/dist/{telemetry-NTO4FJFN.js → telemetry-CY7V7FIN.js} +6 -5
- package/dist/{telemetry-TJMB5BTF.js → telemetry-MMCJ2ORL.js} +9 -6
- package/dist/{timeline-CU6CIWYL.js → timeline-ZBJTZK6E.js} +26 -23
- package/dist/{tokens-7P4N2FWN.js → tokens-JFYRYRDK.js} +2 -2
- package/dist/{transcribe-TFDEQFMG.js → transcribe-QUMMQM34.js} +13 -12
- package/dist/{transcribe-FZ7JK6QS.js → transcribe-UVQQ3OMR.js} +23 -20
- package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
- package/dist/{updateCheck-HUDVZHVM.js → updateCheck-VMMBGLTI.js} +4 -3
- package/dist/{upgrade-KP4RQZKY.js → upgrade-4VYNPIFQ.js} +4 -3
- package/dist/{urlDownloader-5SHSHWMB.js → urlDownloader-EAPV3CZL.js} +8 -7
- package/dist/{validate-VWX423M4.js → validate-JJG6Q6IH.js} +31 -28
- package/dist/{video-K4L2YFU2.js → video-7MJZ7IYL.js} +10 -9
- package/dist/warmCheck.js +47 -44
- package/dist/warmCheckClient.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-N3ZAIZF3.js +0 -4870
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
// ../core/dist/envProxy.js
|
|
9
|
+
function envProxyEnabled(env = process.env, execArgv = process.execArgv) {
|
|
10
|
+
const flags = [...execArgv, ...env["NODE_OPTIONS"]?.split(/\s+/u) ?? []];
|
|
11
|
+
return env["NODE_USE_ENV_PROXY"] === "1" || flags.includes("--use-env-proxy");
|
|
12
|
+
}
|
|
13
|
+
function fetchGoesThroughEnvProxy(env = process.env, execArgv = process.execArgv) {
|
|
14
|
+
return Boolean((env["HTTPS_PROXY"] ?? env["https_proxy"])?.trim()) && envProxyEnabled(env, execArgv);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
envProxyEnabled,
|
|
19
|
+
fetchGoesThroughEnvProxy
|
|
20
|
+
};
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
} from "./chunk-Y65ZU7XY.js";
|
|
11
11
|
import {
|
|
12
12
|
downloadFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-R4EWRIDL.js";
|
|
14
14
|
import {
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BHWXSO6T.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OWU2BURB.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VZENYSX7.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -391,7 +391,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
391
391
|
}
|
|
392
392
|
async function probeMedia(inputPath) {
|
|
393
393
|
const isImage = inferInputKind(inputPath) === "image";
|
|
394
|
-
const engine = await import("./src-
|
|
394
|
+
const engine = await import("./src-JUJFZ6GC.js");
|
|
395
395
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
396
396
|
if (isImage) {
|
|
397
397
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TQSKEMSL.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-634HSJ3J.js";
|
|
15
15
|
import {
|
|
16
16
|
getPowerState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LAGZGKKN.js";
|
|
18
18
|
import {
|
|
19
19
|
readConfig
|
|
20
20
|
} from "./chunk-ZCHULPJZ.js";
|
|
@@ -431,9 +431,13 @@ function trackAuthLoginCompleted(method, distinctId) {
|
|
|
431
431
|
function trackAuthLoginFailed(method, reason, distinctId) {
|
|
432
432
|
trackEvent("auth_login_failed", { method, reason }, distinctId);
|
|
433
433
|
}
|
|
434
|
-
function identifyUser(distinctId) {
|
|
434
|
+
function identifyUser(distinctId, traits = {}) {
|
|
435
435
|
if (!distinctId) return;
|
|
436
|
-
trackEvent(
|
|
436
|
+
trackEvent(
|
|
437
|
+
"$identify",
|
|
438
|
+
{ $anon_distinct_id: readConfig().anonymousId, $set: traits },
|
|
439
|
+
distinctId
|
|
440
|
+
);
|
|
437
441
|
}
|
|
438
442
|
function trackRenderPreflightRejected(props) {
|
|
439
443
|
trackEvent("render_preflight_rejected", { kind: props.kind });
|
|
@@ -6,13 +6,28 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/utils/download.ts
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
closeSync,
|
|
11
|
+
createWriteStream,
|
|
12
|
+
existsSync,
|
|
13
|
+
openSync,
|
|
14
|
+
readdirSync,
|
|
15
|
+
readFileSync,
|
|
16
|
+
renameSync,
|
|
17
|
+
statSync,
|
|
18
|
+
unlinkSync,
|
|
19
|
+
writeFileSync,
|
|
20
|
+
writeSync
|
|
21
|
+
} from "fs";
|
|
11
22
|
import { get as httpsGet } from "https";
|
|
12
23
|
import { once } from "events";
|
|
13
24
|
import { Transform } from "stream";
|
|
25
|
+
import { basename, dirname, join } from "path";
|
|
14
26
|
import { pipeline } from "stream/promises";
|
|
27
|
+
import { setTimeout as sleep } from "timers/promises";
|
|
28
|
+
import { randomUUID } from "crypto";
|
|
15
29
|
var DEFAULT_DOWNLOAD_TIMEOUT_MS = 3e4;
|
|
30
|
+
var LOCK_POLL_MS = 500;
|
|
16
31
|
var REDIRECT_CODES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
17
32
|
function redirectTarget(location, from) {
|
|
18
33
|
return new URL(location, from).toString();
|
|
@@ -49,8 +64,8 @@ function measureDownload(options, startBytes, totalBytes) {
|
|
|
49
64
|
complete: () => options.onProgress?.(receivedBytes, totalBytes)
|
|
50
65
|
};
|
|
51
66
|
}
|
|
52
|
-
function getUrl(url, signal, offset, onResponse) {
|
|
53
|
-
const headers = offset > 0 ? { Range: `bytes=${offset}
|
|
67
|
+
function getUrl(url, signal, offset, etag, onResponse) {
|
|
68
|
+
const headers = offset > 0 ? { Range: `bytes=${offset}-`, ...etag ? { "If-Range": etag } : {} } : void 0;
|
|
54
69
|
if (!signal && !headers) return httpsGet(url, onResponse);
|
|
55
70
|
return httpsGet(
|
|
56
71
|
url,
|
|
@@ -94,6 +109,11 @@ function planResponse(res, offset) {
|
|
|
94
109
|
async function writeBody(res, tmp, plan, state, options) {
|
|
95
110
|
state.received = plan.start;
|
|
96
111
|
state.total = plan.total;
|
|
112
|
+
if (!plan.append) {
|
|
113
|
+
const etag = res.headers.etag;
|
|
114
|
+
state.etag = typeof etag === "string" ? etag : null;
|
|
115
|
+
state.onFreshBody?.(state.etag);
|
|
116
|
+
}
|
|
97
117
|
const meter = measureDownload(options, plan.start, plan.total);
|
|
98
118
|
const file = createWriteStream(tmp, { flags: plan.append ? "a" : "w" });
|
|
99
119
|
try {
|
|
@@ -151,7 +171,7 @@ function downloadAttempt(url, tmp, state, options) {
|
|
|
151
171
|
};
|
|
152
172
|
let request;
|
|
153
173
|
try {
|
|
154
|
-
request = getUrl(u, options.signal, offset, onResponse);
|
|
174
|
+
request = getUrl(u, options.signal, offset, state.etag, onResponse);
|
|
155
175
|
} catch (error) {
|
|
156
176
|
reject(error);
|
|
157
177
|
return;
|
|
@@ -172,28 +192,148 @@ function downloadAttempt(url, tmp, state, options) {
|
|
|
172
192
|
follow(url);
|
|
173
193
|
});
|
|
174
194
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
195
|
+
function processAlive(pid) {
|
|
196
|
+
try {
|
|
197
|
+
process.kill(pid, 0);
|
|
198
|
+
return true;
|
|
199
|
+
} catch (error) {
|
|
200
|
+
return error.code === "EPERM";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
var heldLocks = /* @__PURE__ */ new Set();
|
|
204
|
+
function readLock(lock) {
|
|
205
|
+
try {
|
|
206
|
+
return readFileSync(lock, "utf8");
|
|
207
|
+
} catch {
|
|
208
|
+
return "";
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function lockIsStale(owner) {
|
|
212
|
+
const pid = Number(owner.split(" ")[0]);
|
|
213
|
+
if (!(pid > 0)) return false;
|
|
214
|
+
return pid === process.pid ? !heldLocks.has(owner) : !processAlive(pid);
|
|
215
|
+
}
|
|
216
|
+
async function acquireLock(lock, signal) {
|
|
217
|
+
const owner = `${process.pid} ${randomUUID()}`;
|
|
218
|
+
let waited = false;
|
|
219
|
+
for (; ; ) {
|
|
220
|
+
try {
|
|
221
|
+
const fd = openSync(lock, "wx");
|
|
222
|
+
writeSync(fd, owner);
|
|
223
|
+
closeSync(fd);
|
|
224
|
+
heldLocks.add(owner);
|
|
225
|
+
return { owner, waited };
|
|
226
|
+
} catch (error) {
|
|
227
|
+
if (error.code !== "EEXIST") throw error;
|
|
228
|
+
}
|
|
229
|
+
const seen = readLock(lock);
|
|
230
|
+
if (lockIsStale(seen) && readLock(lock) === seen) {
|
|
231
|
+
removePartialFile(lock);
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
signal?.throwIfAborted();
|
|
235
|
+
waited = true;
|
|
236
|
+
await sleep(LOCK_POLL_MS);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function removeStrayPartials(dest) {
|
|
240
|
+
const prefix = `${basename(dest)}.`;
|
|
241
|
+
let names = [];
|
|
242
|
+
try {
|
|
243
|
+
names = readdirSync(dirname(dest));
|
|
244
|
+
} catch {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
for (const name of names) {
|
|
248
|
+
const pid = name.startsWith(prefix) && name.endsWith(".tmp") ? Number(name.slice(prefix.length).split(".")[0]) : 0;
|
|
249
|
+
if (pid > 0 && !processAlive(pid)) removePartialFile(join(dirname(dest), name));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function resumableEtag(meta, url) {
|
|
253
|
+
try {
|
|
254
|
+
const recorded = JSON.parse(readFileSync(meta, "utf8"));
|
|
255
|
+
return recorded.url === url && typeof recorded.etag === "string" ? recorded.etag : null;
|
|
256
|
+
} catch {
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function afterFailure(error, attempt) {
|
|
261
|
+
const message = error instanceof Error ? error.message : "";
|
|
262
|
+
if (attempt.aborted || message.startsWith("Download exceeded")) return "discard";
|
|
263
|
+
if (attempt.progressed) return "continue";
|
|
264
|
+
if (attempt.resumed && message.startsWith("Download failed: HTTP")) return "restart";
|
|
265
|
+
return attempt.resumable ? "keep" : "discard";
|
|
266
|
+
}
|
|
267
|
+
function discardPart(part) {
|
|
268
|
+
removePartialFile(part);
|
|
269
|
+
removePartialFile(`${part}.json`);
|
|
270
|
+
}
|
|
271
|
+
function openPart(url, dest) {
|
|
272
|
+
const part = `${dest}.part`;
|
|
273
|
+
removeStrayPartials(dest);
|
|
274
|
+
const etag = resumableEtag(`${part}.json`, url);
|
|
275
|
+
if (!etag) removePartialFile(part);
|
|
276
|
+
return {
|
|
277
|
+
received: etag ? fileSize(part) : 0,
|
|
278
|
+
total: null,
|
|
279
|
+
etag,
|
|
280
|
+
onFreshBody: (fresh) => {
|
|
281
|
+
if (fresh) writeFileSync(`${part}.json`, JSON.stringify({ url, etag: fresh }));
|
|
282
|
+
else removePartialFile(`${part}.json`);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function assertComplete(part, state) {
|
|
287
|
+
const size = fileSize(part);
|
|
288
|
+
if (state.total !== null && size !== state.total) {
|
|
289
|
+
state.received = size;
|
|
290
|
+
throw new Error(`Download incomplete: ${size} of ${state.total} bytes`);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
async function publishPart(part, dest, options) {
|
|
294
|
+
try {
|
|
295
|
+
await options.verify?.(part);
|
|
296
|
+
} catch (error) {
|
|
297
|
+
discardPart(part);
|
|
298
|
+
throw error;
|
|
299
|
+
}
|
|
300
|
+
renameSync(part, dest);
|
|
301
|
+
removePartialFile(`${part}.json`);
|
|
302
|
+
}
|
|
303
|
+
async function downloadToPart(url, dest, options) {
|
|
304
|
+
const part = `${dest}.part`;
|
|
305
|
+
const state = openPart(url, dest);
|
|
178
306
|
for (; ; ) {
|
|
179
307
|
const before = state.received;
|
|
180
308
|
try {
|
|
181
|
-
await downloadAttempt(url,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
state.received = size;
|
|
185
|
-
throw new Error(`Download incomplete: ${size} of ${state.total} bytes`);
|
|
186
|
-
}
|
|
187
|
-
renameSync(tmp, dest);
|
|
188
|
-
return;
|
|
309
|
+
await downloadAttempt(url, part, state, options);
|
|
310
|
+
assertComplete(part, state);
|
|
311
|
+
break;
|
|
189
312
|
} catch (error) {
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
313
|
+
const step = afterFailure(error, {
|
|
314
|
+
aborted: options.signal?.aborted === true,
|
|
315
|
+
progressed: state.received > before,
|
|
316
|
+
resumed: before > 0,
|
|
317
|
+
resumable: state.etag !== null && state.received > 0
|
|
318
|
+
});
|
|
319
|
+
if (step === "continue") continue;
|
|
320
|
+
if (step !== "keep") discardPart(part);
|
|
321
|
+
if (step !== "restart") throw error;
|
|
322
|
+
state.received = 0;
|
|
323
|
+
state.etag = null;
|
|
195
324
|
}
|
|
196
325
|
}
|
|
326
|
+
await publishPart(part, dest, options);
|
|
327
|
+
}
|
|
328
|
+
async function downloadFile(url, dest, options = {}) {
|
|
329
|
+
const lock = `${dest}.lock`;
|
|
330
|
+
const { owner, waited } = await acquireLock(lock, options.signal);
|
|
331
|
+
try {
|
|
332
|
+
if (!(waited && existsSync(dest))) await downloadToPart(url, dest, options);
|
|
333
|
+
} finally {
|
|
334
|
+
heldLocks.delete(owner);
|
|
335
|
+
if (readLock(lock) === owner) removePartialFile(lock);
|
|
336
|
+
}
|
|
197
337
|
}
|
|
198
338
|
|
|
199
339
|
export {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FUSUFW2L.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DYHAZFK3.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3AOXAXTA.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VZENYSX7.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RXQU3QM4.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EB44YMQO.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GTKUQUZ6.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FUSUFW2L.js";
|
|
28
28
|
import {
|
|
29
29
|
listenOnBrowserSafePort
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VZENYSX7.js";
|
|
31
31
|
import {
|
|
32
32
|
stripSdrPngColourTags
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Q3OKLJ34.js";
|
|
34
34
|
import {
|
|
35
35
|
PREVIEW_PROXY_BOX_PARAM,
|
|
36
36
|
parsePreviewProxyBox
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DYHAZFK3.js";
|
|
38
38
|
import {
|
|
39
39
|
decodeWellFormedEscapes
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KSC4O2RY.js";
|
|
41
41
|
|
|
42
42
|
// src/utils/staticProjectServer.ts
|
|
43
43
|
import { createServer, request as httpRequest } from "http";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OFJTXNRS.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VZBJ5BQF.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-URUUGFZD.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
scanProjectMedia,
|
|
71
71
|
shouldPrewarmProxy,
|
|
72
72
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EB44YMQO.js";
|
|
74
74
|
import {
|
|
75
75
|
probeAudioTrack,
|
|
76
76
|
probeMediaMetadata
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-MO6DJMZP.js";
|
|
78
78
|
import {
|
|
79
79
|
STUDIO_MOTION_PATH,
|
|
80
80
|
createStudioMotionRenderBodyScript,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
ensureHfIds,
|
|
116
116
|
stampHfIdsInPlace,
|
|
117
117
|
stripSdrPngColourTags
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-Q3OKLJ34.js";
|
|
119
119
|
import {
|
|
120
120
|
GSAP_BASE_URL_META,
|
|
121
121
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
normalizeGsapLocalRoot,
|
|
133
133
|
parseFps,
|
|
134
134
|
parsePreviewProxyBox
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-DYHAZFK3.js";
|
|
136
136
|
import {
|
|
137
137
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
138
138
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
resolveRateSpec,
|
|
148
148
|
sourceTimeAt,
|
|
149
149
|
stripEmbeddedRuntimeScripts
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-IVRKWQTX.js";
|
|
151
151
|
import {
|
|
152
152
|
ProjectRootMissingError,
|
|
153
153
|
folderGone,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
rewriteCssAssetUrls,
|
|
175
175
|
rewriteInlineStyleAssetUrls,
|
|
176
176
|
sameInstant
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-KSC4O2RY.js";
|
|
178
178
|
import {
|
|
179
179
|
HTML_ATTRIBUTE_ENTITIES,
|
|
180
180
|
MagicString,
|
|
@@ -5592,7 +5592,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5592
5592
|
let block = extractGsapScriptBlock(html);
|
|
5593
5593
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5594
5594
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5595
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5595
|
+
const { GSAP_CDN } = await import("./dist-3Q2DNDSR.js");
|
|
5596
5596
|
const bootstrap = [
|
|
5597
5597
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5598
5598
|
"<script>",
|
|
@@ -8914,7 +8914,7 @@ function growRootToFit(document2) {
|
|
|
8914
8914
|
}
|
|
8915
8915
|
if (end > rootDuration + EPSILON) root.setAttribute("data-duration", String(round3(end)));
|
|
8916
8916
|
}
|
|
8917
|
-
var COPIED_PICTURE_ATTRS = ["class", "style", "data-color-grading"];
|
|
8917
|
+
var COPIED_PICTURE_ATTRS = ["class", "style", "data-color-grading", "data-color-group"];
|
|
8918
8918
|
function buildStill(document2, video, input) {
|
|
8919
8919
|
const img = document2.createElement("img");
|
|
8920
8920
|
img.setAttribute("id", input.id);
|
|
@@ -12,6 +12,22 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// src/capture/navigateForCapture.ts
|
|
14
14
|
var NETWORK_IDLE_ATTEMPT_MS = 3e4;
|
|
15
|
+
var PROXY_FAILURES = {
|
|
16
|
+
"net::ERR_TUNNEL_CONNECTION_FAILED": (host) => `Your network's proxy refused the connection to ${host}. Ask whoever runs it to allow ${host}.`,
|
|
17
|
+
"net::ERR_PROXY_CONNECTION_FAILED": () => "Could not reach your network's proxy. Check the proxy address and that the proxy is running, or ask whoever runs it."
|
|
18
|
+
};
|
|
19
|
+
var PROXY_FAILURE = new RegExp(Object.keys(PROXY_FAILURES).join("|"));
|
|
20
|
+
function explainProxyRefusal(err, url) {
|
|
21
|
+
const said = err instanceof Error ? err.message : String(err);
|
|
22
|
+
const code = PROXY_FAILURE.exec(said)?.[0];
|
|
23
|
+
if (!code) return err;
|
|
24
|
+
let host = "the site";
|
|
25
|
+
try {
|
|
26
|
+
host = new URL(url).host;
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
return new Error(`${PROXY_FAILURES[code](host)} (${code})`, { cause: err });
|
|
30
|
+
}
|
|
15
31
|
function networkIdleAttemptTimeoutMs(totalTimeoutMs) {
|
|
16
32
|
return Math.min(NETWORK_IDLE_ATTEMPT_MS, Math.max(0, totalTimeoutMs));
|
|
17
33
|
}
|
|
@@ -30,13 +46,12 @@ async function navigateForCapture(page, url, totalTimeoutMs) {
|
|
|
30
46
|
};
|
|
31
47
|
} catch (err) {
|
|
32
48
|
if (!isNavigationTimeoutError(err) || networkIdleTimeoutMs >= totalTimeoutMs) {
|
|
33
|
-
throw err;
|
|
49
|
+
throw explainProxyRefusal(err, url);
|
|
34
50
|
}
|
|
35
51
|
}
|
|
36
52
|
const fallbackTimeoutMs = totalTimeoutMs - networkIdleTimeoutMs;
|
|
37
|
-
const response = await page.goto(url, {
|
|
38
|
-
|
|
39
|
-
timeout: fallbackTimeoutMs
|
|
53
|
+
const response = await page.goto(url, { waitUntil: "domcontentloaded", timeout: fallbackTimeoutMs }).catch((err) => {
|
|
54
|
+
throw explainProxyRefusal(err, url);
|
|
40
55
|
});
|
|
41
56
|
return {
|
|
42
57
|
response,
|
|
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-43USF7JF.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UJEEURID.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ROUK3OL2.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RXQU3QM4.js";
|
|
23
23
|
import {
|
|
24
24
|
artifactDirectory,
|
|
25
25
|
finishSnapshotRun
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
proxyVariantFor,
|
|
32
32
|
resolveProxies,
|
|
33
33
|
scanProjectMediaCodecMap
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EB44YMQO.js";
|
|
35
35
|
import {
|
|
36
36
|
AUDIT_SEEK_OPTIONS,
|
|
37
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
seekCompositionTimeline,
|
|
46
46
|
seekInPage,
|
|
47
47
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VDFY4FE5.js";
|
|
49
49
|
import {
|
|
50
50
|
findStageProxyBox
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GTKUQUZ6.js";
|
|
52
52
|
import {
|
|
53
53
|
resolveAutoProxy
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FUSUFW2L.js";
|
|
55
55
|
import {
|
|
56
56
|
BrowserCleanupError,
|
|
57
57
|
closeManagedBrowser,
|
|
58
58
|
onStopSignal
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-OWU2BURB.js";
|
|
60
60
|
import {
|
|
61
61
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IVRKWQTX.js";
|
|
63
63
|
import {
|
|
64
64
|
normalizeErrorMessage
|
|
65
65
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -463,19 +463,24 @@ function elapsedText(ms) {
|
|
|
463
463
|
function startCopyHeartbeat(sources, cached) {
|
|
464
464
|
const startedAt = Date.now();
|
|
465
465
|
const latest = /* @__PURE__ */ new Map();
|
|
466
|
+
const total = cached.filter((isCached) => !isCached).length;
|
|
467
|
+
let finished = 0;
|
|
466
468
|
const timer = setInterval(() => {
|
|
467
469
|
for (const [index, { doneSeconds, totalSeconds }] of latest) {
|
|
468
470
|
if (cached[index]) continue;
|
|
469
471
|
const done = totalSeconds ? `${Math.min(100, Math.floor(doneSeconds / totalSeconds * 100))}%` : "";
|
|
470
472
|
console.error(
|
|
471
|
-
`[hyperframes] browser-playable
|
|
473
|
+
`[hyperframes] making browser-playable copies: ${finished} of ${total} done. ${sources[index].file}: ${done || `${Math.floor(doneSeconds)}s done`} (${elapsedText(Date.now() - startedAt)} so far)`
|
|
472
474
|
);
|
|
473
475
|
}
|
|
474
476
|
}, COPY_HEARTBEAT_MS);
|
|
475
477
|
timer.unref();
|
|
476
478
|
return {
|
|
477
479
|
progress: (index, progress) => void latest.set(index, progress),
|
|
478
|
-
settled: (index) =>
|
|
480
|
+
settled: (index) => {
|
|
481
|
+
latest.delete(index);
|
|
482
|
+
if (!cached[index]) finished += 1;
|
|
483
|
+
},
|
|
479
484
|
stop: () => clearInterval(timer)
|
|
480
485
|
};
|
|
481
486
|
}
|
|
@@ -573,7 +578,7 @@ function proxyFailedDraft(message) {
|
|
|
573
578
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
574
579
|
}
|
|
575
580
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
576
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
581
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-Y7VGIRFK.js");
|
|
577
582
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
578
583
|
}
|
|
579
584
|
function withCapturePreviewMark(html) {
|
|
@@ -635,7 +640,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
635
640
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
636
641
|
}));
|
|
637
642
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
638
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
643
|
+
const { analyzeClipMediaFit } = await import("./src-JUJFZ6GC.js");
|
|
639
644
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
640
645
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
641
646
|
}
|
|
@@ -772,7 +777,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
772
777
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
773
778
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
774
779
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
775
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
780
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-Y7VGIRFK.js");
|
|
776
781
|
return withCapturePreviewMark(
|
|
777
782
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
778
783
|
);
|