hyperframes 0.9.28 → 0.9.30
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-XQCABYNY.js → add-JBBBMWP4.js} +8 -8
- package/dist/{agentPromptGenerator-S2SYZY3A.js → agentPromptGenerator-NJL6ZJQA.js} +2 -2
- package/dist/{animatedGifPrep-SACSOT4A.js → animatedGifPrep-AVZAMI2D.js} +2 -2
- package/dist/api.js +27 -27
- package/dist/{asset-JPI3LFG4.js → asset-VFG5LF4B.js} +5 -5
- package/dist/{assetCataloger-TJQ5OLMV.js → assetCataloger-WGNEAI5A.js} +3 -3
- package/dist/{audio-RG6NXOMI.js → audio-URYC7ND7.js} +16 -16
- package/dist/{auth-7G2OCS7L.js → auth-E4ZBU47K.js} +6 -6
- package/dist/{autoUpdate-7RS75ENY.js → autoUpdate-CEYR6IHF.js} +4 -4
- package/dist/{avatars-KWPVXWXC.js → avatars-ZPRQ3ZCD.js} +11 -11
- package/dist/{backgroundChecks-5HHWQH5H.js → backgroundChecks-BL4XMMXE.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-AL6DO5IA.js → batchRender-FK7U2GUF.js} +4 -4
- package/dist/{beats-XHKWF5KT.js → beats-XK4QL74K.js} +8 -8
- package/dist/{benchmark-57RNYMON.js → benchmark-MABRDF7U.js} +11 -11
- package/dist/{billing-FXAMQKDS.js → billing-2CABBLDC.js} +9 -9
- package/dist/{browser-TV2VPWQJ.js → browser-SHU4XK5O.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-YGHFRVJW.js → bundleWithLocalizedFonts-W7SSOXOO.js} +3 -3
- package/dist/{capture-GPT5V4ND.js → capture-CFESIHJR.js} +8 -8
- package/dist/{capture-LHPSRQ4R.js → capture-VPWHIN5C.js} +5 -5
- package/dist/{captureCompositionFrame-TLV2WC4Q.js → captureCompositionFrame-MT3CHQJ6.js} +9 -9
- package/dist/{catalog-7A3MMFTN.js → catalog-BBPONQOO.js} +9 -9
- package/dist/{catch-up-SEGXPPOX.js → catch-up-DEZVG3A5.js} +8 -8
- package/dist/{check-OP5AR33W.js → check-LIC6DYFD.js} +29 -29
- package/dist/{checkAudio-QDAUXX7W.js → checkAudio-RHF5CWWX.js} +7 -7
- package/dist/{checkBrowser-OGE3A52R.js → checkBrowser-LUHIFDJZ.js} +22 -22
- package/dist/{chunk-U46YQL7E.js → chunk-2B2IMLUQ.js} +1 -1
- package/dist/{chunk-SJOA2RCP.js → chunk-2II5FCVK.js} +9 -9
- package/dist/{chunk-P5USY2GC.js → chunk-2NK3K7JL.js} +2 -2
- package/dist/{chunk-BF6RWOUF.js → chunk-2QUQKYOK.js} +135 -61
- package/dist/{chunk-MMCMEW7K.js → chunk-2YZ6GA4E.js} +1 -1
- package/dist/{chunk-IQKMIYLG.js → chunk-3OA75WJW.js} +2 -2
- package/dist/{chunk-SCNC7YPB.js → chunk-3YNJAXA5.js} +1 -1
- package/dist/{chunk-7M26J4R3.js → chunk-4TCEF2I7.js} +1 -1
- package/dist/{chunk-L5KXLXFY.js → chunk-5IAFM6M5.js} +9 -9
- package/dist/{chunk-EOJ2PMOV.js → chunk-5QGDLMU3.js} +2 -2
- package/dist/{chunk-257XUBNU.js → chunk-5RLMHG3E.js} +1 -1
- package/dist/{chunk-W7TS3CZA.js → chunk-74PW4UVC.js} +1 -1
- package/dist/{chunk-RFLV3WR5.js → chunk-76MHB2H6.js} +1 -1
- package/dist/{chunk-PEJQV2RL.js → chunk-7DMIAJD7.js} +10 -10
- package/dist/{chunk-QT766HQV.js → chunk-7GJKUOPX.js} +14 -17
- package/dist/{chunk-M457GQGR.js → chunk-7NDF2MO3.js} +1 -1
- package/dist/{chunk-VOVC3QCN.js → chunk-AGHSWES2.js} +3 -3
- package/dist/{chunk-UPR5TMLG.js → chunk-AJCFMDFQ.js} +1 -1
- package/dist/{chunk-AVXIDAFJ.js → chunk-AMZ22QP7.js} +30 -11
- package/dist/{chunk-SDYZOTB7.js → chunk-AOPNJEQC.js} +2 -2
- package/dist/{chunk-PF23WT5C.js → chunk-AW2M5TZW.js} +7 -7
- package/dist/{chunk-F5QBIIFT.js → chunk-AWD2MWWL.js} +1 -1
- package/dist/{chunk-YU2KLER7.js → chunk-B23DUMZ4.js} +2 -2
- package/dist/{chunk-AA2DNXEJ.js → chunk-BUYUJ3EV.js} +7 -7
- package/dist/{chunk-ZUXES5HA.js → chunk-CK3DD2MC.js} +2 -2
- package/dist/{chunk-PQYICV7O.js → chunk-CPHQTXP5.js} +17 -2
- package/dist/{chunk-NURN5W6M.js → chunk-CWN75OWQ.js} +2 -2
- package/dist/{chunk-6OQPKRPJ.js → chunk-D2LIT7UR.js} +1 -1
- package/dist/{chunk-D5HNV6G6.js → chunk-DYKBB5HB.js} +1 -1
- package/dist/{chunk-YSAK7PJZ.js → chunk-EBU7T3WZ.js} +2 -2
- package/dist/{chunk-LAI7UTBM.js → chunk-EPOBJVVG.js} +22 -22
- package/dist/{chunk-LXAJQXHM.js → chunk-F4Z2UPAA.js} +2 -2
- package/dist/{chunk-6WCOY6MS.js → chunk-FJQGA6H6.js} +6 -6
- package/dist/{chunk-SQRI67KR.js → chunk-FNC3JNO7.js} +1 -1
- package/dist/{chunk-J237HI2F.js → chunk-G3WGKT3B.js} +160 -25
- package/dist/{chunk-J3X2RZON.js → chunk-G7PITEUH.js} +1 -1
- package/dist/{chunk-55ZEUSPW.js → chunk-GQNV4DG6.js} +1 -1
- package/dist/{chunk-UVF4HXPW.js → chunk-HCC7XLD7.js} +2 -2
- package/dist/{chunk-NXVDTRXA.js → chunk-HKWKMXAC.js} +2 -2
- package/dist/{chunk-ZWJ7PWTY.js → chunk-HLRYLZFX.js} +2 -2
- package/dist/{chunk-LPB7T67S.js → chunk-J4Z7LQKU.js} +2 -2
- package/dist/{chunk-GUHCMOE2.js → chunk-J7PDBGQM.js} +1 -1
- package/dist/{chunk-VU4EPKFI.js → chunk-JCNPHRGX.js} +1 -1
- package/dist/{chunk-CSCK6RGC.js → chunk-JVAD6LD7.js} +31 -14
- package/dist/{chunk-E54N6IPY.js → chunk-KMGF6GJU.js} +4 -4
- package/dist/{chunk-CINCDA5M.js → chunk-LDTJCZZ2.js} +2 -2
- package/dist/{chunk-FGFVUKPP.js → chunk-LIWK3MFR.js} +1 -1
- package/dist/{chunk-U5RXCKWJ.js → chunk-LRDS7MG5.js} +1 -1
- package/dist/{chunk-7FYGCIHK.js → chunk-MKZ34726.js} +2 -2
- package/dist/{chunk-5RUGBDAC.js → chunk-MSL2BS73.js} +1 -1
- package/dist/{chunk-W4EAYORI.js → chunk-NBF7SU6Q.js} +5 -5
- package/dist/{chunk-UAEL2JEL.js → chunk-NLKHXPTZ.js} +4 -4
- package/dist/{chunk-5E6Y7CW3.js → chunk-NTNS5EFN.js} +2 -2
- package/dist/{chunk-WMZDESYF.js → chunk-NZUUKNNZ.js} +1 -1
- package/dist/{chunk-VXWASGGT.js → chunk-P74B5H73.js} +1 -1
- package/dist/{chunk-IX22RYJO.js → chunk-PGZSYDLZ.js} +1 -1
- package/dist/{chunk-T37WJWV2.js → chunk-PIEVAPKP.js} +1 -1
- package/dist/{chunk-7DGBOZ4N.js → chunk-PV2D2TZV.js} +1 -1
- package/dist/{chunk-XPGH4KBU.js → chunk-PVRJKEU5.js} +1 -1
- package/dist/{chunk-P2A6MYSQ.js → chunk-Q7FX7HOX.js} +1 -1
- package/dist/{chunk-E3UFWFZZ.js → chunk-QBRBXVCE.js} +1 -1
- package/dist/{chunk-JMPTLXJQ.js → chunk-RCYKUNVZ.js} +2 -2
- package/dist/{chunk-6UMISKCG.js → chunk-RZK5ZGVX.js} +4 -4
- package/dist/{chunk-XLERIR2V.js → chunk-S3S3IHCR.js} +1 -1
- package/dist/{chunk-E53UDY74.js → chunk-SP5GQGP2.js} +2 -2
- package/dist/{chunk-MPKBIC4Z.js → chunk-SPPSVPY7.js} +3 -3
- package/dist/{chunk-B4TLQLGI.js → chunk-T6VQGCN3.js} +1 -1
- package/dist/{chunk-V4M7PKBM.js → chunk-TNZ2EF2Y.js} +3 -3
- package/dist/{chunk-TTKJF3LI.js → chunk-UPVM6UDG.js} +62 -15
- package/dist/{chunk-TMYY4DV4.js → chunk-UTU3HSJS.js} +1 -1
- package/dist/{chunk-X7NFWMWW.js → chunk-UY3H42VE.js} +1 -1
- package/dist/{chunk-G4D7EBDQ.js → chunk-V4ZFL2E2.js} +2 -2
- package/dist/{chunk-VCMPKZFN.js → chunk-VHOETOGT.js} +11 -11
- package/dist/{chunk-UZGRZRD6.js → chunk-VMLPDIR6.js} +1 -1
- package/dist/{chunk-Z677PTBA.js → chunk-VPQXRTEW.js} +5 -5
- package/dist/{chunk-L2GOO2UY.js → chunk-WAXPM7TK.js} +1 -1
- package/dist/{chunk-NUUN7XB4.js → chunk-WCSEEQ5R.js} +2 -2
- package/dist/{chunk-K77GTFH3.js → chunk-WGVWW6O4.js} +2 -2
- package/dist/{chunk-O5P75JID.js → chunk-WJPEMXI3.js} +2 -2
- package/dist/{chunk-X2YNB244.js → chunk-XKSHWUIF.js} +3 -3
- package/dist/{chunk-A7HPQVS5.js → chunk-XVDXYUQJ.js} +1 -1
- package/dist/{chunk-FBLCK3YJ.js → chunk-YAKPBJOU.js} +32 -18
- package/dist/{chunk-EENM7GX3.js → chunk-YJYEKNJG.js} +3 -3
- package/dist/{chunk-PL5C5FKM.js → chunk-YNRQTFYH.js} +2 -2
- package/dist/{chunk-SWEC6N6N.js → chunk-YZH2IWEE.js} +2 -2
- package/dist/{chunk-DKSCZYFP.js → chunk-ZGQZTSP2.js} +1 -1
- package/dist/{chunk-4N3UVDIJ.js → chunk-ZLDYDO64.js} +1 -1
- package/dist/{clean-UGV3DTVQ.js → clean-AGQEPUBC.js} +13 -13
- package/dist/cli.js +67 -67
- package/dist/{cloud-SDC56AHY.js → cloud-H5HJH6SD.js} +6 -6
- package/dist/{cloud-QJMPTQ3N.js → cloud-TDXVUIUM.js} +5 -5
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-7BR5FKOC.js} +6 -6
- package/dist/{colors-SS2KTOKM.js → colors-NMNY26B5.js} +2 -2
- package/dist/{compare-LG42JVYH.js → compare-YWZ6O2FL.js} +18 -18
- package/dist/{component-OPAFYBPO.js → component-MX2PJOTA.js} +6 -6
- package/dist/{compositions-JP655NT3.js → compositions-PLT4OLGR.js} +10 -10
- package/dist/{curve-RN7HDXOS.js → curve-BJYCZUEY.js} +9 -9
- package/dist/{cuts-ET7N7IBU.js → cuts-TWAVF7WI.js} +10 -10
- package/dist/{delete-5552CGT5.js → delete-3KCBCPBD.js} +11 -11
- package/dist/{deploy-NMFEPGRQ.js → deploy-KWTMJNBL.js} +4 -4
- package/dist/{describeProject-CWLV5OAT.js → describeProject-HZLM3B55.js} +5 -5
- package/dist/{destroy-YAMTVR2W.js → destroy-4DOMPOYB.js} +2 -2
- package/dist/{diff-HZX2TISC.js → diff-XC6IU3IY.js} +25 -25
- package/dist/{dist-O45G7NET.js → dist-M5WQQ6WE.js} +6 -2
- package/dist/{docs-ZSVK3VZD.js → docs-YTM4NX2R.js} +2 -2
- package/dist/{doctor-IYEYULPD.js → doctor-VRUSZ6GH.js} +9 -9
- package/dist/{energy-YXEPVRKW.js → energy-VNAAJYAW.js} +10 -10
- package/dist/{events-KYCNM6C3.js → events-6WYNARX7.js} +5 -5
- package/dist/{events-JAY5YNEU.js → events-MR72RS47.js} +12 -12
- package/dist/{events-GA24CH3D.js → events-WZJTLFCQ.js} +6 -6
- package/dist/{extract-TFEVGLLS.js → extract-MKOCZIFN.js} +10 -10
- package/dist/{face-NP7JGAE7.js → face-NIV5ZSUX.js} +10 -10
- package/dist/{feedback-UPYWXKHN.js → feedback-A4F4G5JO.js} +12 -12
- package/dist/{ffmpeg-RYNM3JM2.js → ffmpeg-OAKTUK5S.js} +2 -2
- package/dist/{figma-PL4YF6AD.js → figma-4WZIDYAD.js} +5 -5
- package/dist/fontLocalizeCli.js +5 -5
- package/dist/{frames-7CHO3XUP.js → frames-DAKLRIWG.js} +11 -11
- package/dist/{generate-I3UK6VFX.js → generate-NRPHH4NJ.js} +17 -17
- package/dist/{get-DRFSJ333.js → get-ISXQCK3G.js} +11 -11
- package/dist/{gpuPolicy-OAUKEMJC.js → gpuPolicy-SLVPAQK2.js} +2 -2
- package/dist/{grade-compare-PYDF6Y6J.js → grade-compare-TVMAAZVC.js} +19 -19
- package/dist/{heifImagePrep-23E67GBA.js → heifImagePrep-BOIWW7FW.js} +3 -3
- package/dist/{help-N2SPZK4D.js → help-ZOYDS3YW.js} +3 -3
- package/dist/{history-LXYOTFY7.js → history-CLGGMJ7Z.js} +11 -11
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-ENAE5IAD.js → info-ZTFII4N4.js} +12 -12
- package/dist/{init-DMKB6PK6.js → init-RCDPQKFA.js} +22 -22
- package/dist/{ink-ANDD7W6Y.js → ink-2ATPIDWC.js} +10 -10
- package/dist/{inspect-2XZYCFMK.js → inspect-GDMUC5F6.js} +20 -20
- package/dist/{keyframes-UKUFE6ZF.js → keyframes-EPAX446T.js} +10 -10
- package/dist/{lambda-T4WMAZZV.js → lambda-HG6Y6KOH.js} +14 -14
- package/dist/{layout-FX2Q65LB.js → layout-KXBKGHOS.js} +20 -20
- package/dist/{lint-AHORS3BL.js → lint-O62OPAW7.js} +11 -11
- package/dist/{list-H7F3WXD4.js → list-4HWWKMM6.js} +12 -12
- package/dist/{localPage-UUSOCL7L.js → localPage-66UVNGQR.js} +2 -2
- package/dist/{login-6ORXT7JS.js → login-2H4XMPUT.js} +12 -29
- package/dist/{logout-FJ444652.js → logout-7SMEH7JL.js} +4 -4
- package/dist/{look-XFA3GQDV.js → look-W6PV445D.js} +10 -10
- package/dist/{manager-ZGVNWYBK.js → manager-ML4OLLSM.js} +3 -3
- package/dist/{measure-WIARVYP6.js → measure-CWOXQCGH.js} +11 -11
- package/dist/{media-treatment-L2OD4GAB.js → media-treatment-SDGXF2PK.js} +11 -11
- package/dist/{media-use-SYSDJH23.js → media-use-NWNX24MD.js} +6 -6
- package/dist/{models-YOGYUKBX.js → models-J2P2DLSA.js} +10 -10
- package/dist/{motionShot-II6JZGTO.js → motionShot-VQ2KFPMR.js} +11 -11
- package/dist/{normalize-audio-L6V6T2XW.js → normalize-audio-MABOG5XR.js} +8 -8
- package/dist/{open-BPGKTYYV.js → open-KWTFPDML.js} +9 -9
- package/dist/{parakeetRunner-BWX3UQH4.js → parakeetRunner-GP47AAVT.js} +7 -7
- package/dist/{pipeline-O3VKDLBZ.js → pipeline-5HUQFOCY.js} +5 -5
- package/dist/{play-NLZ4D4VN.js → play-6MSC2ZCU.js} +13 -13
- package/dist/{policies-5G7G26ZX.js → policies-5RUNO47I.js} +2 -2
- package/dist/{preflight-HEAPQ7N7.js → preflight-NTJMXUS2.js} +3 -3
- package/dist/{present-XPLUCZ5Z.js → present-X5T75QS4.js} +13 -13
- package/dist/{preview-JAWCYDZP.js → preview-7NW7RUET.js} +15 -15
- package/dist/{probe-3AL2MBSY.js → probe-XTZVXTQ2.js} +10 -10
- package/dist/{producer-OQETVMJH.js → producer-ZZROH3WZ.js} +1 -1
- package/dist/{progress-OOEHTBBU.js → progress-TGYZ2TKQ.js} +2 -2
- package/dist/{prompts-RYVLXI7Q.js → prompts-7VQEH645.js} +2 -2
- package/dist/{publish-C3ARXH6D.js → publish-3BBHK2NK.js} +8 -8
- package/dist/{refresh-YY4K2RWR.js → refresh-47T6Z2PK.js} +4 -4
- package/dist/{remove-background-2SNU7KAA.js → remove-background-W7WMLL5C.js} +9 -9
- package/dist/{render-FFA55SPM.js → render-5G6745C3.js} +32 -32
- package/dist/{render-TSV3XTQV.js → render-ZGCH2FZJ.js} +4 -4
- package/dist/{render-IKHZUOCM.js → render-ZIBXBMNI.js} +26 -26
- package/dist/{render-batch-ISMXAG7F.js → render-batch-ONWJJ627.js} +4 -4
- package/dist/{reverse-74KYO2KF.js → reverse-5YTLWWDZ.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-24USN7TA.js} +5 -5
- package/dist/{screenshotCapture-HBOH5VXI.js → screenshotCapture-ZZE3GMOF.js} +2 -2
- package/dist/{sherpa-DBCTQWM3.js → sherpa-7ISRANWA.js} +6 -6
- package/dist/{sites-NWEJJNAZ.js → sites-LILUBMRM.js} +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/{skills-YYOPM674.js → skills-YMSZHKK4.js} +10 -10
- package/dist/{skillsUpdateCheck-2G4HUWXT.js → skillsUpdateCheck-YJYYN5CH.js} +5 -5
- package/dist/{snapshot-FSN6MIFT.js → snapshot-4MZGXL4A.js} +27 -27
- package/dist/{src-PZKWEQB3.js → src-CHPZUZZ3.js} +4 -4
- package/dist/{src-W2OMGCC2.js → src-NIMSUB4P.js} +1 -1
- package/dist/{start-BC3LQ6XM.js → start-FPEBVENS.js} +60 -29
- package/dist/{staticProjectServer-NOC42RG6.js → staticProjectServer-XZNME57Y.js} +5 -5
- package/dist/{status-GAMGQR6J.js → status-7TRDJU47.js} +10 -10
- package/dist/studio/assets/{codec-DqZyhFXM.js → codec-B1UWDNJp.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-aBBb_UoJ.js → hyperframes-player-DQd2VPm2.js} +1 -1
- package/dist/studio/assets/{index-CceqlOsz.js → index-B7CtVv8e.js} +1 -1
- package/dist/studio/assets/{index-nztwvLTw.js → index-gkyTLE7n.js} +5 -5
- package/dist/studio/assets/{pausedVideoDecoder-CwC0h32O.js → pausedVideoDecoder-Bfv1WSlz.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-2I44WB4P.js → studio-api-JKJXAELI.js} +6 -2
- package/dist/{studioServer-YOES7J26.js → studioServer-UCRCZOLS.js} +59 -85
- package/dist/{sync-SAFSREBK.js → sync-E72XNR2G.js} +10 -10
- package/dist/{telemetry-JKUAFRWX.js → telemetry-L5D3U4IO.js} +6 -6
- package/dist/{telemetry-5CLJMTHU.js → telemetry-M722DCXI.js} +3 -3
- package/dist/{templates-T63OMFEN.js → templates-O7HEL7HC.js} +9 -9
- package/dist/{timeline-4WIGTZRE.js → timeline-QTODTYKQ.js} +15 -15
- package/dist/{tokens-JK3XREP4.js → tokens-D7JYFE2K.js} +5 -5
- package/dist/{transcribe-DWCOZPAN.js → transcribe-D2WFL2RO.js} +20 -20
- package/dist/{transcribe-APCPBJXE.js → transcribe-FGVGCTEU.js} +5 -5
- package/dist/{tts-HOZ6X3MD.js → tts-IXX2HHHJ.js} +4 -4
- package/dist/{update-I3DN6NUV.js → update-SCMEUTRM.js} +11 -11
- package/dist/{updateCheck-5C2PHZ24.js → updateCheck-KNTQDXMN.js} +4 -4
- package/dist/{upgrade-KBMPHPSY.js → upgrade-V2BP5PAQ.js} +7 -7
- package/dist/{urlDownloader-T5UKNPTJ.js → urlDownloader-4RWM3UH2.js} +1 -1
- package/dist/{validate-YNITWYCF.js → validate-W3E6QVJ6.js} +18 -18
- package/dist/{video-JRQOXAZ2.js → video-KC4AFMAY.js} +5 -5
- package/dist/{voices-7QS4D5EP.js → voices-7N6QU3C6.js} +15 -15
- package/dist/warmCheck.js +29 -29
- package/package.json +1 -1
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
idleWindow,
|
|
21
21
|
preResolveHostileMediaProxies,
|
|
22
22
|
rectToBbox
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VHOETOGT.js";
|
|
24
24
|
import {
|
|
25
25
|
collectProjectMedia,
|
|
26
26
|
mediaPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-V4ZFL2E2.js";
|
|
28
28
|
import {
|
|
29
29
|
captureArtifactRevision
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-J4Z7LQKU.js";
|
|
31
31
|
import {
|
|
32
32
|
trackLintRun
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RCYKUNVZ.js";
|
|
34
34
|
import {
|
|
35
35
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
36
36
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
mergeSampleTimes,
|
|
52
52
|
parseAt,
|
|
53
53
|
readMotionSpec
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2II5FCVK.js";
|
|
55
55
|
import {
|
|
56
56
|
findingAtRoot,
|
|
57
57
|
findingElementKey,
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
} from "./chunk-GGDJLN5I.js";
|
|
66
66
|
import {
|
|
67
67
|
resolveProject
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-B23DUMZ4.js";
|
|
69
69
|
import {
|
|
70
70
|
recordArtifacts
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-2QUQKYOK.js";
|
|
72
72
|
import {
|
|
73
73
|
CACHE_DIR_NAME
|
|
74
74
|
} from "./chunk-V4Z37HFN.js";
|
|
@@ -76,17 +76,17 @@ import {
|
|
|
76
76
|
BrowserCleanupError,
|
|
77
77
|
onStopSignal,
|
|
78
78
|
registerBrowserSessionCleanup
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-AOPNJEQC.js";
|
|
80
80
|
import {
|
|
81
81
|
resolveLocalBrowserGpuMode
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-LDTJCZZ2.js";
|
|
83
83
|
import {
|
|
84
84
|
trackCheckReport,
|
|
85
85
|
trackCommandFailure
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-NTNS5EFN.js";
|
|
87
87
|
import {
|
|
88
88
|
swallowedFlagUsageError
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-AJCFMDFQ.js";
|
|
90
90
|
import {
|
|
91
91
|
defineCommand
|
|
92
92
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -98,23 +98,23 @@ import {
|
|
|
98
98
|
} from "./chunk-54HJ63Q2.js";
|
|
99
99
|
import {
|
|
100
100
|
c
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-JCNPHRGX.js";
|
|
102
102
|
import {
|
|
103
103
|
DEFAULT_CONFIG,
|
|
104
104
|
extractMediaMetadata,
|
|
105
105
|
findHdrAutoPromotion,
|
|
106
106
|
gradingKeepsSdr
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-7GJKUOPX.js";
|
|
108
108
|
import {
|
|
109
109
|
lintProject,
|
|
110
110
|
unmountedNotice
|
|
111
111
|
} from "./chunk-DJVSNDF3.js";
|
|
112
112
|
import {
|
|
113
113
|
withMeta
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-UPVM6UDG.js";
|
|
115
115
|
import {
|
|
116
116
|
recordLastCheck
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-AWD2MWWL.js";
|
|
118
118
|
import {
|
|
119
119
|
failureMessage,
|
|
120
120
|
jsonFailure
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
} from "./chunk-66W5IWLO.js";
|
|
127
127
|
import {
|
|
128
128
|
VERSION
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-SP5GQGP2.js";
|
|
130
130
|
import {
|
|
131
131
|
normalizeErrorMessage
|
|
132
132
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -2294,7 +2294,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
2296
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2297
|
-
const module = await import("./checkBrowser-
|
|
2297
|
+
const module = await import("./checkBrowser-LUHIFDJZ.js");
|
|
2298
2298
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2299
2299
|
}
|
|
2300
2300
|
var adoptedBrowser;
|
|
@@ -2308,7 +2308,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2308
2308
|
if (adopted) return adopted;
|
|
2309
2309
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2310
2310
|
if (html === void 0) return void 0;
|
|
2311
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2311
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-MT3CHQJ6.js");
|
|
2312
2312
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2313
2313
|
}
|
|
2314
2314
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2320,11 +2320,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2320
2320
|
return relative(projectDir, path);
|
|
2321
2321
|
}
|
|
2322
2322
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2323
|
-
const module = await import("./checkBrowser-
|
|
2323
|
+
const module = await import("./checkBrowser-LUHIFDJZ.js");
|
|
2324
2324
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2325
2325
|
}
|
|
2326
2326
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2327
|
-
const module = await import("./checkBrowser-
|
|
2327
|
+
const module = await import("./checkBrowser-LUHIFDJZ.js");
|
|
2328
2328
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2329
2329
|
}
|
|
2330
2330
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2346,7 +2346,7 @@ function collectMedia(project) {
|
|
|
2346
2346
|
return collectProjectMedia(project.dir);
|
|
2347
2347
|
}
|
|
2348
2348
|
async function inspectAudio(project, media) {
|
|
2349
|
-
const module = await import("./checkAudio-
|
|
2349
|
+
const module = await import("./checkAudio-RHF5CWWX.js");
|
|
2350
2350
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2351
2351
|
}
|
|
2352
2352
|
function audioCheckFailure(project, error) {
|
|
@@ -2531,7 +2531,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
},
|
|
2533
2533
|
async prepareMedia(project, options) {
|
|
2534
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2534
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-W7SSOXOO.js");
|
|
2535
2535
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2536
2536
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2537
2537
|
},
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LIWK3MFR.js";
|
|
10
10
|
import {
|
|
11
11
|
cssVariableName,
|
|
12
12
|
slugify
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-WZJTLFCQ.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-EXA6R6SW.js";
|
|
10
10
|
import {
|
|
11
11
|
R
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D2LIT7UR.js";
|
|
13
13
|
import {
|
|
14
14
|
buildNpxCommand
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-JJ47LVJ7.js";
|
|
19
19
|
import {
|
|
20
20
|
trackSkillsInstallSkipped
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NTNS5EFN.js";
|
|
22
22
|
import {
|
|
23
23
|
diag
|
|
24
24
|
} from "./chunk-MCDNAIFF.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-DL4OD7IA.js";
|
|
28
28
|
import {
|
|
29
29
|
c
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JCNPHRGX.js";
|
|
31
31
|
import {
|
|
32
32
|
FALLBACK_CORE_SKILLS,
|
|
33
33
|
RETIRED_SKILLS,
|
|
@@ -39,11 +39,11 @@ import {
|
|
|
39
39
|
isCoreSkill,
|
|
40
40
|
presentSkills,
|
|
41
41
|
retiredSkillNotice
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KMGF6GJU.js";
|
|
43
43
|
import {
|
|
44
44
|
NO_UPDATE_NOTICE,
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UPVM6UDG.js";
|
|
47
47
|
import {
|
|
48
48
|
failureMessage,
|
|
49
49
|
jsonFailure
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-66W5IWLO.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SP5GQGP2.js";
|
|
58
58
|
|
|
59
59
|
// src/commands/skills.ts
|
|
60
60
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
resolveProjectSignature,
|
|
48
48
|
serveWhileOpen,
|
|
49
49
|
settledFileTag
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-2QUQKYOK.js";
|
|
51
51
|
import {
|
|
52
52
|
PROXY_PARAMS_VERSION,
|
|
53
53
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
isPrivateProjectPath,
|
|
85
85
|
pinWithinProject,
|
|
86
86
|
realFilePath,
|
|
87
|
-
resolveWithinProject,
|
|
87
|
+
resolveWithinProject as resolveWithinProject2,
|
|
88
88
|
walkDir
|
|
89
89
|
} from "./chunk-ALVXFXUG.js";
|
|
90
90
|
import {
|
|
@@ -158,7 +158,8 @@ import {
|
|
|
158
158
|
isProjectRootMissing,
|
|
159
159
|
isSafePath,
|
|
160
160
|
mkdirWithinProject,
|
|
161
|
-
realpath
|
|
161
|
+
realpath,
|
|
162
|
+
resolveWithinProject
|
|
162
163
|
} from "./chunk-OFQWTKPW.js";
|
|
163
164
|
import {
|
|
164
165
|
isWithinProjectRoot,
|
|
@@ -221,6 +222,93 @@ function findUnsafeDomPatchValues(value) {
|
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
224
|
|
|
225
|
+
// ../studio-server/dist/chunk-FJ5C22OV.js
|
|
226
|
+
import { hostname, networkInterfaces } from "os";
|
|
227
|
+
function isLoopbackHost(host) {
|
|
228
|
+
if (!host) return false;
|
|
229
|
+
const bracketed = /^\[([^\]]+)\]/.exec(host);
|
|
230
|
+
const hostname2 = (bracketed ? bracketed[1] : host.split(":")[0])?.toLowerCase() ?? "";
|
|
231
|
+
if (hostname2 === "localhost" || hostname2 === "::1" || hostname2 === "0:0:0:0:0:0:0:1") return true;
|
|
232
|
+
return /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostname2);
|
|
233
|
+
}
|
|
234
|
+
function hostnameOf(host) {
|
|
235
|
+
if (!host) return "";
|
|
236
|
+
const bracketed = /^\[([^\]]+)\]/.exec(host);
|
|
237
|
+
return (bracketed ? bracketed[1] : host.split(":")[0])?.toLowerCase() ?? "";
|
|
238
|
+
}
|
|
239
|
+
function localNames() {
|
|
240
|
+
const names = /* @__PURE__ */ new Set();
|
|
241
|
+
try {
|
|
242
|
+
for (const entries of Object.values(networkInterfaces())) {
|
|
243
|
+
for (const entry of entries ?? []) names.add(entry.address.toLowerCase());
|
|
244
|
+
}
|
|
245
|
+
const self = hostname().toLowerCase();
|
|
246
|
+
if (self !== "") {
|
|
247
|
+
names.add(self);
|
|
248
|
+
names.add(`${self}.local`);
|
|
249
|
+
const short = self.split(".")[0];
|
|
250
|
+
if (short !== void 0 && short !== "") {
|
|
251
|
+
names.add(short);
|
|
252
|
+
names.add(`${short}.local`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
} catch {
|
|
256
|
+
}
|
|
257
|
+
return names;
|
|
258
|
+
}
|
|
259
|
+
function hostMatchesBind(host, bind) {
|
|
260
|
+
const requested = hostnameOf(host);
|
|
261
|
+
if (requested === "") return false;
|
|
262
|
+
const bound = bind.toLowerCase();
|
|
263
|
+
if (requested === bound) return true;
|
|
264
|
+
return bound === "0.0.0.0" || bound === "::" || bound === "*" ? localNames().has(requested) : false;
|
|
265
|
+
}
|
|
266
|
+
var PREVIEW_ALLOWED_HOSTS_ENV = "HYPERFRAMES_PREVIEW_ALLOWED_HOSTS";
|
|
267
|
+
function previewAllowedHostsFromEnv(env = process.env) {
|
|
268
|
+
return (env[PREVIEW_ALLOWED_HOSTS_ENV] ?? "").split(",").map((host) => host.trim()).filter((host) => host !== "");
|
|
269
|
+
}
|
|
270
|
+
function requestHost(headers) {
|
|
271
|
+
return firstForwarded(headers.forwardedHost) ?? headers.host;
|
|
272
|
+
}
|
|
273
|
+
function identityAllowed(host) {
|
|
274
|
+
if (isLoopbackHost(host)) return true;
|
|
275
|
+
const bind = (process.env["HYPERFRAMES_PREVIEW_HOST"] ?? "").trim();
|
|
276
|
+
if (bind === "" || isLoopbackHost(bind)) return false;
|
|
277
|
+
return hostMatchesBind(host, bind);
|
|
278
|
+
}
|
|
279
|
+
function hostAllowed(host, allowedHosts) {
|
|
280
|
+
if (identityAllowed(host)) return true;
|
|
281
|
+
if (!allowedHosts) return false;
|
|
282
|
+
const name = hostnameOf(host);
|
|
283
|
+
return name !== "" && allowedHosts.some((allowed) => hostnameOf(allowed) === name);
|
|
284
|
+
}
|
|
285
|
+
function hostHeaderAllowed(host, allowedHosts) {
|
|
286
|
+
return host !== void 0 && host !== "" && hostAllowed(host, allowedHosts);
|
|
287
|
+
}
|
|
288
|
+
function firstForwarded(value) {
|
|
289
|
+
const first = value?.split(",")[0]?.trim();
|
|
290
|
+
return first === "" ? void 0 : first;
|
|
291
|
+
}
|
|
292
|
+
function originMatches(origin, host, proto) {
|
|
293
|
+
let parsed;
|
|
294
|
+
try {
|
|
295
|
+
parsed = new URL(origin);
|
|
296
|
+
} catch {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return false;
|
|
300
|
+
if (proto !== void 0 && parsed.protocol !== `${proto}:`) return false;
|
|
301
|
+
return parsed.host.toLowerCase() === host.toLowerCase();
|
|
302
|
+
}
|
|
303
|
+
function sameOriginPost(headers) {
|
|
304
|
+
const host = firstForwarded(headers.forwardedHost) ?? headers.host;
|
|
305
|
+
if (!host || !hostAllowed(host, headers.allowedHosts)) return false;
|
|
306
|
+
if (headers.fetchSite && headers.fetchSite !== "same-origin") return false;
|
|
307
|
+
if (headers.origin === void 0) return true;
|
|
308
|
+
const proto = firstForwarded(headers.forwardedProto) ?? headers.proto;
|
|
309
|
+
return originMatches(headers.origin, host, proto);
|
|
310
|
+
}
|
|
311
|
+
|
|
224
312
|
// ../studio-server/dist/chunk-7ROCGO5U.js
|
|
225
313
|
import { createHash } from "crypto";
|
|
226
314
|
import { closeSync, constants, fstatSync, openSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -4000,8 +4088,8 @@ function rootHeadContent(rootHtml) {
|
|
|
4000
4088
|
return rootHtml.match(/<head[^>]*>([\s\S]*?)<\/head>/i)?.[1] ?? "";
|
|
4001
4089
|
}
|
|
4002
4090
|
function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, rawOverride, gsapBaseUrl) {
|
|
4003
|
-
const compFile =
|
|
4004
|
-
if (!existsSync(compFile)) return null;
|
|
4091
|
+
const compFile = resolveWithinProject(projectDir, compPath);
|
|
4092
|
+
if (!compFile || !existsSync(compFile)) return null;
|
|
4005
4093
|
const rawComp = rawOverride ?? readFileSync3(compFile, "utf-8");
|
|
4006
4094
|
let compHeadContent = "";
|
|
4007
4095
|
let rewrittenContent;
|
|
@@ -4037,9 +4125,10 @@ function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, raw
|
|
|
4037
4125
|
deferScriptsUntilFonts(scriptsDoc);
|
|
4038
4126
|
rewrittenContent = scriptsDoc.body.innerHTML;
|
|
4039
4127
|
rewrittenContent = tagRootCompositionFile(rewrittenContent, compPath);
|
|
4040
|
-
const indexPath =
|
|
4128
|
+
const indexPath = resolveWithinProject(projectDir, "index.html");
|
|
4041
4129
|
let headContent = "";
|
|
4042
|
-
if (
|
|
4130
|
+
if (indexPath && existsSync(indexPath))
|
|
4131
|
+
headContent = rootHeadContent(readFileSync3(indexPath, "utf-8"));
|
|
4043
4132
|
if (baseHref && !hasBaseElement(headContent)) {
|
|
4044
4133
|
headContent = `<base href="${baseHref}">
|
|
4045
4134
|
${headContent}`;
|
|
@@ -4132,13 +4221,13 @@ function validateSourcePath(sourcePath) {
|
|
|
4132
4221
|
}
|
|
4133
4222
|
function canonicalProjectFile(projectDir, sourcePath) {
|
|
4134
4223
|
validateSourcePath(sourcePath);
|
|
4135
|
-
return canonicalProjectPath(projectDir,
|
|
4224
|
+
return canonicalProjectPath(projectDir, resolveWithinProject2(projectDir, sourcePath));
|
|
4136
4225
|
}
|
|
4137
4226
|
function canonicalDependency(projectDir, ownerAbs, sourcePath) {
|
|
4138
4227
|
validateSourcePath(sourcePath);
|
|
4139
4228
|
return canonicalProjectPath(
|
|
4140
4229
|
projectDir,
|
|
4141
|
-
|
|
4230
|
+
resolveWithinProject2(projectDir, relative(projectDir, resolve3(dirname2(ownerAbs), sourcePath)))
|
|
4142
4231
|
);
|
|
4143
4232
|
}
|
|
4144
4233
|
function validateDependencyGraph(projectDir, targetAbs, sourceAbs) {
|
|
@@ -4274,7 +4363,7 @@ function projectReader(projectDir) {
|
|
|
4274
4363
|
const sources = /* @__PURE__ */ new Map();
|
|
4275
4364
|
return (compPath) => {
|
|
4276
4365
|
if (!sources.has(compPath)) {
|
|
4277
|
-
const file =
|
|
4366
|
+
const file = resolveWithinProject2(projectDir, compPath);
|
|
4278
4367
|
let source = null;
|
|
4279
4368
|
try {
|
|
4280
4369
|
source = file ? readFileSync2(file, "utf-8") : null;
|
|
@@ -4805,7 +4894,7 @@ async function resolveProjectPath(c, adapter, route, opts) {
|
|
|
4805
4894
|
if (filePath.includes("\0")) {
|
|
4806
4895
|
return { error: c.json({ error: "forbidden", why: "nul" }, 403) };
|
|
4807
4896
|
}
|
|
4808
|
-
const absPath = (opts?.pin ? pinWithinProject :
|
|
4897
|
+
const absPath = (opts?.pin ? pinWithinProject : resolveWithinProject2)(project.dir, filePath);
|
|
4809
4898
|
if (!absPath) {
|
|
4810
4899
|
if (isDanglingSymlinkInProject(project.dir, resolve2(project.dir, filePath))) {
|
|
4811
4900
|
return { error: c.json({ error: "not found", why: "dangling_symlink" }, 404) };
|
|
@@ -7228,7 +7317,7 @@ function registerFileRoutes(api, adapter) {
|
|
|
7228
7317
|
if (typeof newPath !== "string" || !newPath || newPath.includes("\0") || /[\uD800-\uDFFF]/u.test(newPath)) {
|
|
7229
7318
|
return c.json({ error: "newPath required" }, 400);
|
|
7230
7319
|
}
|
|
7231
|
-
const newAbs =
|
|
7320
|
+
const newAbs = resolveWithinProject2(res.project.dir, newPath);
|
|
7232
7321
|
if (!newAbs) {
|
|
7233
7322
|
return c.json({ error: "forbidden" }, 403);
|
|
7234
7323
|
}
|
|
@@ -7248,12 +7337,12 @@ function registerFileRoutes(api, adapter) {
|
|
|
7248
7337
|
if (!body.path || body.path.includes("\0")) {
|
|
7249
7338
|
return c.json({ error: "path required" }, 400);
|
|
7250
7339
|
}
|
|
7251
|
-
const srcAbs =
|
|
7340
|
+
const srcAbs = resolveWithinProject2(project.dir, body.path);
|
|
7252
7341
|
if (!srcAbs || !existsSync4(srcAbs)) {
|
|
7253
7342
|
return c.json({ error: "not found" }, 404);
|
|
7254
7343
|
}
|
|
7255
7344
|
const copyPath = generateCopyPath(project.dir, body.path);
|
|
7256
|
-
const destAbs =
|
|
7345
|
+
const destAbs = resolveWithinProject2(project.dir, copyPath);
|
|
7257
7346
|
if (!destAbs) {
|
|
7258
7347
|
return c.json({ error: "forbidden" }, 403);
|
|
7259
7348
|
}
|
|
@@ -7279,7 +7368,7 @@ function registerFileRoutes(api, adapter) {
|
|
|
7279
7368
|
if (!project) return c.json({ error: "not found" }, 404);
|
|
7280
7369
|
if (folderGone(project.dir)) return projectDirMissing(c);
|
|
7281
7370
|
const subDir = c.req.query("dir") ?? "";
|
|
7282
|
-
const targetDir = subDir ?
|
|
7371
|
+
const targetDir = subDir ? resolveWithinProject2(project.dir, subDir) : project.dir;
|
|
7283
7372
|
if (!targetDir) return c.json({ error: "forbidden" }, 403);
|
|
7284
7373
|
const formData = await c.req.formData();
|
|
7285
7374
|
mkdirWithinProject(project.dir, targetDir);
|
|
@@ -7949,7 +8038,7 @@ ${etag}`;
|
|
|
7949
8038
|
if (vars.error !== void 0) return c.json({ error: vars.error }, 400);
|
|
7950
8039
|
const previewVariables = vars.values;
|
|
7951
8040
|
const compPath = requestSubPath(c.req.url, "projects/:id/preview/comp");
|
|
7952
|
-
const compFile =
|
|
8041
|
+
const compFile = resolveWithinProject2(project.dir, compPath);
|
|
7953
8042
|
if (compFile) recordPreviewRead(project.dir, compFile);
|
|
7954
8043
|
recordPreviewRead(project.dir, "index.html");
|
|
7955
8044
|
if (!compFile || !existsSync5(compFile) || !statSync4(compFile).isFile()) {
|
|
@@ -8199,7 +8288,7 @@ var RENDER_ARTIFACT_EXTENSIONS = [...RENDER_EXTENSIONS, ".meta.json"];
|
|
|
8199
8288
|
function resolveRenderArtifacts(directories, jobId) {
|
|
8200
8289
|
const artifacts = [...new Set(directories)].filter(existsSync6).flatMap(
|
|
8201
8290
|
(directory) => RENDER_ARTIFACT_EXTENSIONS.map(
|
|
8202
|
-
(extension) =>
|
|
8291
|
+
(extension) => resolveWithinProject2(directory, `${jobId}${extension}`)
|
|
8203
8292
|
)
|
|
8204
8293
|
);
|
|
8205
8294
|
return artifacts.every((path) => path !== null) ? artifacts : null;
|
|
@@ -8260,7 +8349,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8260
8349
|
const outputResolution = VALID_RESOLUTIONS.has(body.resolution ?? "") ? body.resolution : void 0;
|
|
8261
8350
|
let composition;
|
|
8262
8351
|
if (typeof body.composition === "string" && body.composition.length > 0) {
|
|
8263
|
-
if (!
|
|
8352
|
+
if (!resolveWithinProject2(project.dir, body.composition)) {
|
|
8264
8353
|
if (folderGone(project.dir)) return projectDirMissing(c);
|
|
8265
8354
|
return c.json({ error: "composition path must be within the project directory" }, 400);
|
|
8266
8355
|
}
|
|
@@ -8414,7 +8503,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8414
8503
|
const filename = c.req.path.split("/renders/file/")[1];
|
|
8415
8504
|
if (!filename) return c.json({ error: "missing filename" }, 400);
|
|
8416
8505
|
const rendersDir = adapter.rendersDir(project);
|
|
8417
|
-
const fp =
|
|
8506
|
+
const fp = resolveWithinProject2(rendersDir, filename);
|
|
8418
8507
|
if (!fp || isPrivateProjectFile(project.dir, fp)) return c.json({ error: "forbidden" }, 403);
|
|
8419
8508
|
if (!existsSync6(fp)) return c.json({ error: "not found" }, 404);
|
|
8420
8509
|
return renderFileResponse(fp, "inline", filename, c.req.method);
|
|
@@ -8425,7 +8514,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8425
8514
|
const rendersDir = adapter.rendersDir(project);
|
|
8426
8515
|
if (!existsSync6(rendersDir)) return c.json({ renders: [] });
|
|
8427
8516
|
const files = readdirSync3(rendersDir).filter((f) => RENDER_EXTENSIONS.some((extension) => f.endsWith(extension))).flatMap((f) => {
|
|
8428
|
-
const fp =
|
|
8517
|
+
const fp = resolveWithinProject2(rendersDir, f);
|
|
8429
8518
|
return fp && !isPrivateProjectFile(project.dir, fp) ? [{ f, fp }] : [];
|
|
8430
8519
|
}).map(({ f, fp }) => {
|
|
8431
8520
|
const stat2 = statSync5(fp);
|
|
@@ -8751,7 +8840,7 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8751
8840
|
const { project, signature: projectSignature } = resolved;
|
|
8752
8841
|
let compPath = requestSubPath(c.req.url, "projects/:id/thumbnail");
|
|
8753
8842
|
if (compPath && !compPath.includes(".")) compPath += ".html";
|
|
8754
|
-
const htmlFile =
|
|
8843
|
+
const htmlFile = resolveWithinProject2(project.dir, compPath);
|
|
8755
8844
|
const source = htmlFile ? readFileOnce(htmlFile) : "not-a-file";
|
|
8756
8845
|
if (source === "not-a-file") return c.json({ error: "not found" }, 404);
|
|
8757
8846
|
const inputSignature = await compositionInputSignature(project.dir, compPath, projectSignature);
|
|
@@ -9735,7 +9824,7 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9735
9824
|
if (/^(?:https?:|data:|blob:)/i.test(assetPath)) {
|
|
9736
9825
|
return c.json({ error: "media metadata requires a project-local asset" }, 400);
|
|
9737
9826
|
}
|
|
9738
|
-
const filePath =
|
|
9827
|
+
const filePath = resolveWithinProject2(project.dir, assetPath);
|
|
9739
9828
|
if (!filePath) return c.json({ error: "forbidden" }, 403);
|
|
9740
9829
|
if (!existsSync10(filePath)) return c.json({ error: "media not found" }, 404);
|
|
9741
9830
|
return c.json({ path: assetPath, metadata: await readMediaMetadata(filePath) });
|
|
@@ -9757,7 +9846,7 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9757
9846
|
if (/^(?:https?:|data:|blob:)/i.test(inputAssetPath)) {
|
|
9758
9847
|
return c.json({ error: "background removal requires a project-local media asset" }, 400);
|
|
9759
9848
|
}
|
|
9760
|
-
const inputPath =
|
|
9849
|
+
const inputPath = resolveWithinProject2(project.dir, inputAssetPath);
|
|
9761
9850
|
if (!inputPath) return c.json({ error: "forbidden" }, 403);
|
|
9762
9851
|
if (!existsSync10(inputPath)) return c.json({ error: "input media not found" }, 404);
|
|
9763
9852
|
const inputIsVideo = isVideoPath(inputAssetPath);
|
|
@@ -9769,7 +9858,7 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9769
9858
|
if (requestedOutput && containsNullByte(requestedOutput)) {
|
|
9770
9859
|
return c.json({ error: "forbidden" }, 403);
|
|
9771
9860
|
}
|
|
9772
|
-
if (requestedOutput && !
|
|
9861
|
+
if (requestedOutput && !resolveWithinProject2(project.dir, requestedOutput)) {
|
|
9773
9862
|
return c.json({ error: "forbidden" }, 403);
|
|
9774
9863
|
}
|
|
9775
9864
|
const taken = outputsInFlight(mediaJobs);
|
|
@@ -10084,8 +10173,49 @@ async function answerRefusedFrameWithPage(c, next) {
|
|
|
10084
10173
|
headers
|
|
10085
10174
|
});
|
|
10086
10175
|
}
|
|
10087
|
-
function
|
|
10176
|
+
function urlHost(url) {
|
|
10177
|
+
try {
|
|
10178
|
+
return new URL(url).host || void 0;
|
|
10179
|
+
} catch {
|
|
10180
|
+
return void 0;
|
|
10181
|
+
}
|
|
10182
|
+
}
|
|
10183
|
+
function urlScheme(url) {
|
|
10184
|
+
try {
|
|
10185
|
+
return new URL(url).protocol.replace(/:$/, "") || void 0;
|
|
10186
|
+
} catch {
|
|
10187
|
+
return void 0;
|
|
10188
|
+
}
|
|
10189
|
+
}
|
|
10190
|
+
function createStudioApi(adapter, options = {}) {
|
|
10088
10191
|
const api = new Hono();
|
|
10192
|
+
api.use(async function rejectCrossOriginWrites(c, next) {
|
|
10193
|
+
if (c.req.method === "GET" || c.req.method === "HEAD" || c.req.method === "OPTIONS") {
|
|
10194
|
+
return next();
|
|
10195
|
+
}
|
|
10196
|
+
const allowed = sameOriginPost({
|
|
10197
|
+
host: c.req.header("host") ?? urlHost(c.req.url),
|
|
10198
|
+
origin: c.req.header("origin"),
|
|
10199
|
+
fetchSite: c.req.header("sec-fetch-site"),
|
|
10200
|
+
proto: urlScheme(c.req.url),
|
|
10201
|
+
forwardedProto: c.req.header("x-forwarded-proto"),
|
|
10202
|
+
forwardedHost: c.req.header("x-forwarded-host"),
|
|
10203
|
+
allowedHosts: options.allowedHosts
|
|
10204
|
+
});
|
|
10205
|
+
if (!allowed) {
|
|
10206
|
+
const refusedHost = requestHost({
|
|
10207
|
+
host: c.req.header("host") ?? urlHost(c.req.url),
|
|
10208
|
+
forwardedHost: c.req.header("x-forwarded-host")
|
|
10209
|
+
}) ?? "unknown host";
|
|
10210
|
+
return c.json(
|
|
10211
|
+
{
|
|
10212
|
+
error: `forbidden: writes from host "${refusedHost}" are not allowed. Set ${PREVIEW_ALLOWED_HOSTS_ENV}=${refusedHost} to allow it (comma separated for several hosts).`
|
|
10213
|
+
},
|
|
10214
|
+
403
|
|
10215
|
+
);
|
|
10216
|
+
}
|
|
10217
|
+
return next();
|
|
10218
|
+
});
|
|
10089
10219
|
api.use("/projects/:id/preview/*", answerRefusedFrameWithPage);
|
|
10090
10220
|
api.use("/projects/:id/preview", answerRefusedFrameWithPage);
|
|
10091
10221
|
api.use(async function answerProjectDirMissingAfterErrorHandlers(c, next) {
|
|
@@ -10275,6 +10405,11 @@ function updateBackgroundRemovalProgress(state, event) {
|
|
|
10275
10405
|
}
|
|
10276
10406
|
|
|
10277
10407
|
export {
|
|
10408
|
+
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
10409
|
+
previewAllowedHostsFromEnv,
|
|
10410
|
+
identityAllowed,
|
|
10411
|
+
hostHeaderAllowed,
|
|
10412
|
+
sameOriginPost,
|
|
10278
10413
|
stampProjectHfIds,
|
|
10279
10414
|
stampProjectHfIdsAsync,
|
|
10280
10415
|
getElementScreenshotClip,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J7PDBGQM.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7GJKUOPX.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-IEXRKKHC.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-LLMSX6V6.js";
|
|
10
10
|
import {
|
|
11
11
|
readCompositionFps
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LRDS7MG5.js";
|
|
13
13
|
import {
|
|
14
14
|
findSyncPartner,
|
|
15
15
|
readLinkTiming,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7GJKUOPX.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XKSHWUIF.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S3S3IHCR.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
30
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YNRQTFYH.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2QUQKYOK.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|