hyperframes 0.9.46 → 0.9.48
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-3FQLHIZ6.js → add-3H4DG4RA.js} +13 -13
- package/dist/{agentPromptGenerator-Y4WVIS7O.js → agentPromptGenerator-PIHKWDAW.js} +6 -5
- package/dist/{animatedGifPrep-6IFABDM3.js → animatedGifPrep-SXYSHW6I.js} +5 -4
- package/dist/api.js +29 -28
- package/dist/{appHistory-LZCGD54D.js → appHistory-DK2XI4EZ.js} +2 -2
- package/dist/{asset-KPQAHAZ7.js → asset-43VALPNF.js} +2 -2
- package/dist/{assetCataloger-3FGGZTTX.js → assetCataloger-MUOL6FRF.js} +8 -7
- package/dist/{audio-7RADC3X7.js → audio-ZHGSDLJR.js} +13 -12
- package/dist/{auth-CHHUN4IL.js → auth-UXRKOJQB.js} +2 -2
- package/dist/{autoUpdate-H72HIWTL.js → autoUpdate-PMEPQG65.js} +2 -2
- package/dist/{avatars-XLQOPLVQ.js → avatars-QFBWZAIE.js} +9 -8
- package/dist/{backgroundChecks-ACOSRT3C.js → backgroundChecks-OK6SI7BE.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JG5MSARZ.js → batchRender-XYL2E7IX.js} +2 -2
- package/dist/{beats-RZQQEVK3.js → beats-O23QKE6J.js} +5 -5
- package/dist/{benchmark-PJ6P5PI7.js → benchmark-DKBSDIX5.js} +7 -7
- package/dist/{billing-4DCA7C7L.js → billing-ZZCU3K3Q.js} +12 -12
- package/dist/{browser-CEAT5YF3.js → browser-4X6WZ6UD.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-U6PRV3XO.js → bundleWithLocalizedFonts-M64DWYM5.js} +1 -1
- package/dist/{capture-JRITMVAO.js → capture-JJARZBDS.js} +88 -269
- package/dist/{capture-KJIHJTDP.js → capture-O3W6P6DB.js} +5 -5
- package/dist/{captureCompositionFrame-TURWWCHG.js → captureCompositionFrame-JLTAV6VN.js} +12 -11
- package/dist/{captureFile-JFNQEK4R.js → captureFile-R5JZ7WRA.js} +2 -2
- package/dist/{catalog-W7436LYB.js → catalog-4A4CPKPT.js} +13 -13
- package/dist/{catch-up-TXDSUZZF.js → catch-up-EUQFPFMU.js} +7 -7
- package/dist/{check-RF4BU4YS.js → check-IZ6SFIGR.js} +41 -40
- package/dist/{checkAudio-355J7YK4.js → checkAudio-5IRYPK3A.js} +8 -7
- package/dist/{checkBrowser-K3EFUVEG.js → checkBrowser-HUCHMJV4.js} +33 -32
- package/dist/{chunk-BN7UITKY.js → chunk-22EEGJLH.js} +12 -9
- package/dist/{chunk-HC5D2SDF.js → chunk-2GS3N3TZ.js} +1 -1
- package/dist/{chunk-UGT4SXWS.js → chunk-3JWNN5PN.js} +71 -175
- package/dist/{chunk-4IU2UP4A.js → chunk-3LH7DND6.js} +2 -2
- package/dist/{chunk-THKMCTAA.js → chunk-44EG3TMN.js} +1 -1
- package/dist/{chunk-WWMPS3LM.js → chunk-47MEWWCO.js} +2 -2
- package/dist/{chunk-QPI4PPHA.js → chunk-4BJYQXFF.js} +3 -3
- package/dist/{chunk-Y7V4GGFQ.js → chunk-4HP2MTKM.js} +1 -1
- package/dist/{chunk-JL45V2DZ.js → chunk-4WDBYCUK.js} +1 -1
- package/dist/{chunk-HGLLFTCP.js → chunk-4XETQ5LC.js} +1 -1
- package/dist/{chunk-7HDLRWT6.js → chunk-4Y5IDZOJ.js} +1 -1
- package/dist/{chunk-GUVBME3S.js → chunk-5AJNQMML.js} +2 -2
- package/dist/{chunk-BVSG3ZQQ.js → chunk-5DW2DEHX.js} +1 -1
- package/dist/{chunk-C44GJVPH.js → chunk-5IE7DN6I.js} +2 -2
- package/dist/{chunk-6OCZCBLT.js → chunk-5MHENUR3.js} +3 -3
- package/dist/{chunk-ACUFGUTH.js → chunk-67QXALQY.js} +69 -16
- package/dist/{chunk-ORKXVTJI.js → chunk-6DNSUUKB.js} +6 -6
- package/dist/{chunk-NRNZJELI.js → chunk-7RHN6N5F.js} +1 -1
- package/dist/{chunk-NN267VD6.js → chunk-7SNB3KGY.js} +2 -2
- package/dist/{chunk-EZXMEROT.js → chunk-7X2TCJJ7.js} +1 -1
- package/dist/{chunk-EQ6MHHC2.js → chunk-AOITLZJO.js} +1 -1
- package/dist/{chunk-OLKDBDIZ.js → chunk-B2WXMYMA.js} +17 -9
- package/dist/{chunk-VN2BQZSL.js → chunk-BEPEMS56.js} +4 -4
- package/dist/{chunk-MNQ2N4YH.js → chunk-BM6LSTMG.js} +3 -3
- package/dist/{chunk-J5ZACODW.js → chunk-CDBPBLYJ.js} +2 -2
- package/dist/{chunk-LRHW62CP.js → chunk-CTWD5ND3.js} +10 -10
- package/dist/{chunk-IR4JEH5Q.js → chunk-CZBTUYLW.js} +2 -2
- package/dist/{chunk-VNEVQU4Y.js → chunk-DACTRVDQ.js} +3 -3
- package/dist/{chunk-GTA7W75W.js → chunk-DE3JRSGT.js} +44 -2
- package/dist/{chunk-5TF5KKGF.js → chunk-DFJIVRYU.js} +1 -1
- package/dist/{chunk-VVQQJIRX.js → chunk-E5OW6L6E.js} +2 -2
- package/dist/{chunk-KDA3LTQU.js → chunk-ESXZZU25.js} +3 -3
- package/dist/{chunk-WKD5W3TN.js → chunk-EVRVYDKJ.js} +4 -4
- package/dist/{chunk-ISPEHDUQ.js → chunk-EWMPCW7J.js} +1 -1
- package/dist/{chunk-BR6FHEP5.js → chunk-FCNMU7LC.js} +2 -2
- package/dist/{chunk-WH6EXEDN.js → chunk-FF3VETCD.js} +1 -1
- package/dist/{chunk-KH2HGTPT.js → chunk-FFZE3G5R.js} +1 -1
- package/dist/{chunk-EHV6WJDU.js → chunk-FLHKID4G.js} +2 -2
- package/dist/{chunk-IT2YDRMD.js → chunk-G55B5LP6.js} +1 -1
- package/dist/{chunk-R2SL4STW.js → chunk-GXPAR6JC.js} +2 -2
- package/dist/{chunk-5VNF24CQ.js → chunk-GZSJYNAJ.js} +28 -25
- package/dist/{chunk-GCI34AB3.js → chunk-HD5RVDL6.js} +1 -1
- package/dist/{chunk-DIUOG4KA.js → chunk-HZXRORAG.js} +2 -2
- package/dist/{chunk-RK5KGIYX.js → chunk-I2UMQAOQ.js} +1 -1
- package/dist/{chunk-PYXBD4ZH.js → chunk-I4OQGQ5M.js} +1 -1
- package/dist/{chunk-P4JJRVSY.js → chunk-I542AQXY.js} +2 -2
- package/dist/{chunk-AK6PJNCY.js → chunk-IK7DQLH7.js} +6 -6
- package/dist/{chunk-DYRXALWM.js → chunk-IMNIW22F.js} +1 -1
- package/dist/{chunk-V3TXAAMF.js → chunk-IPTZMILN.js} +1 -1
- package/dist/{chunk-M3NFK4OF.js → chunk-IQA5CXNE.js} +1 -1
- package/dist/{chunk-HMPPBQUY.js → chunk-JET2QWI5.js} +2 -2
- package/dist/{chunk-LHSVECRX.js → chunk-JN4ING5S.js} +2 -2
- package/dist/{chunk-VC4R6DPZ.js → chunk-JUI6DQFD.js} +3 -3
- package/dist/{chunk-FZUM2FWY.js → chunk-JX7623IE.js} +5 -275
- package/dist/{chunk-TMGMUL3J.js → chunk-JYOOWDQK.js} +1 -1
- package/dist/{chunk-OYUASBFR.js → chunk-LIQZZ6AE.js} +1 -1
- package/dist/{chunk-XRQQIE2X.js → chunk-M3MXR3HG.js} +2 -2
- package/dist/{chunk-TZRMV44S.js → chunk-M5PWCI3M.js} +3 -3
- package/dist/{chunk-S4PA46LO.js → chunk-MOTJT42J.js} +2 -2
- package/dist/{chunk-43GCSOM5.js → chunk-MR7VKWYT.js} +1 -1
- package/dist/{chunk-OXTPNY3V.js → chunk-MXOWNQCI.js} +1 -1
- package/dist/{chunk-37ZR6H7S.js → chunk-MZ2LNNLT.js} +6 -6
- package/dist/{chunk-GHQ2B7CB.js → chunk-NAUOUIEW.js} +1 -1
- package/dist/{chunk-MZZN4RLK.js → chunk-NECZT66A.js} +2 -2
- package/dist/{chunk-RWHVILFO.js → chunk-OFAEOC67.js} +6 -6
- package/dist/{chunk-QYAZSX4L.js → chunk-OO4R2IFF.js} +1 -1
- package/dist/{chunk-RHB37MXS.js → chunk-P4FZ67X5.js} +3 -3
- package/dist/{chunk-MKXMXMRH.js → chunk-PBTXEWFY.js} +7 -7
- package/dist/{chunk-6M2D5R5Q.js → chunk-PCH55NAO.js} +1 -1
- package/dist/{chunk-EOO255GS.js → chunk-POCPG2WI.js} +7 -7
- package/dist/{chunk-AQQK6BFW.js → chunk-PVR4LBWK.js} +10 -10
- package/dist/{upstreamProxy-W5FWAT5Z.js → chunk-QCAKISPA.js} +0 -11
- package/dist/{chunk-HMEMBYTA.js → chunk-QQSVDBSH.js} +16 -14
- package/dist/{chunk-SLNSV3HI.js → chunk-RCTY7VNK.js} +1 -1
- package/dist/{chunk-LK2GOIB7.js → chunk-RGGQBF7T.js} +1 -1
- package/dist/{chunk-S54GG7OD.js → chunk-RV6ZSL4E.js} +3 -3
- package/dist/{chunk-5BK52ECX.js → chunk-SGLUNJTO.js} +2 -2
- package/dist/{chunk-ZEPP4IYU.js → chunk-SXMAJMTP.js} +3 -3
- package/dist/{chunk-ONLHSDFK.js → chunk-T4TF22AD.js} +5 -5
- package/dist/{chunk-X3EWYERU.js → chunk-TM4PTEAL.js} +1 -1
- package/dist/{chunk-FKHIDW46.js → chunk-TPVRUKKI.js} +4 -4
- package/dist/{chunk-CL5IBQJC.js → chunk-U7ZCBWNM.js} +4 -0
- package/dist/{chunk-F3TMSCSZ.js → chunk-UAU4SIOQ.js} +3 -3
- package/dist/chunk-UG3G4HEH.js +701 -0
- package/dist/{chunk-ZQMS7HXL.js → chunk-ULNYVLR5.js} +1 -1
- package/dist/{chunk-EH4AQ3DS.js → chunk-UX4HQHMS.js} +3 -3
- package/dist/{chunk-37GD3CWK.js → chunk-VOJ3ICMF.js} +1 -1
- package/dist/{chunk-WOG6H6QL.js → chunk-VTLYJLGX.js} +2 -2
- package/dist/{chunk-ZH2LHLVS.js → chunk-W4JWPYLU.js} +1 -1
- package/dist/{chunk-PHEXH35X.js → chunk-W56YNDIJ.js} +1 -1
- package/dist/{chunk-ESYKCW5A.js → chunk-WN4W76IQ.js} +1 -1
- package/dist/{chunk-PE7IEERM.js → chunk-WT2OKPEW.js} +3 -3
- package/dist/{chunk-JRDSR3YU.js → chunk-XUCEC2EI.js} +1 -1
- package/dist/{chunk-Y3NV4IJX.js → chunk-YRXIEP35.js} +1 -1
- package/dist/{chunk-VS5SC7OM.js → chunk-YZERHM3O.js} +2 -2
- package/dist/{chunk-6LWG6HAU.js → chunk-Z2DDFW7J.js} +9 -9
- package/dist/{chunk-J2PFGVTU.js → chunk-Z2EKCD7H.js} +1 -1
- package/dist/{chunk-D2UY5VC3.js → chunk-Z46RV43W.js} +1 -1
- package/dist/{chunk-EYAHZIYQ.js → chunk-ZJTSSZVG.js} +1 -1
- package/dist/{chunk-3WASKIY5.js → chunk-ZQMK76GC.js} +1 -1
- package/dist/{chunk-ZJ6LT2NW.js → chunk-ZR7CJIH3.js} +58 -35
- package/dist/{clean-XEOLR4BJ.js → clean-YTQ7THRZ.js} +16 -15
- package/dist/cli.js +65 -65
- package/dist/{cloud-A4HVQUQM.js → cloud-5C5SCK4H.js} +2 -2
- package/dist/{cloud-FIUFEYC3.js → cloud-NYF5MJVW.js} +4 -4
- package/dist/{cloudrun-O3I4TRAZ.js → cloudrun-XXGMWBUO.js} +3 -3
- package/dist/{compare-LRJSRWR3.js → compare-Z32R2SCB.js} +31 -30
- package/dist/{component-UB7BMON5.js → component-UAZQ4P7D.js} +3 -3
- package/dist/{compositions-E3EDTQ3J.js → compositions-WRX752GP.js} +9 -8
- package/dist/{contactSheet-2JNX5JCQ.js → contactSheet-O3FOOHOX.js} +3 -3
- package/dist/{curve-QLYI5ZTJ.js → curve-GPONFTFR.js} +9 -8
- package/dist/{cuts-Y2XN3NND.js → cuts-RC2WIAYL.js} +10 -9
- package/dist/{delete-CJBPT67E.js → delete-MDRUJACW.js} +4 -4
- package/dist/{deploy-J2NMEORU.js → deploy-EV4JCQW6.js} +2 -2
- package/dist/{describeProject-TPF3Z2HR.js → describeProject-D2MMDRME.js} +6 -5
- package/dist/{destroy-ORZHOLMM.js → destroy-IBQ64X7C.js} +2 -2
- package/dist/{deterministicFonts-4JVXQH5F.js → deterministicFonts-QY4KNTOU.js} +2 -2
- package/dist/{diff-5KBBWVT7.js → diff-BGZFEZ7V.js} +31 -30
- package/dist/{dist-UGBEQYQQ.js → dist-BKWVQR7A.js} +8 -8
- package/dist/{dist-YLXB4RLU.js → dist-YX7FMBUD.js} +3 -1
- package/dist/{doctor-H2OX6GBM.js → doctor-TDF4VFEI.js} +9 -8
- package/dist/{energy-274ABZCI.js → energy-DDE435SP.js} +10 -9
- package/dist/{events-SDXGCMWR.js → events-CQLKSC62.js} +2 -2
- package/dist/{events-72RX4ARF.js → events-IFAKMWNL.js} +11 -10
- package/dist/{events-3ZG334OJ.js → events-WA3SQMWZ.js} +4 -4
- package/dist/{execute-QFAHJM6Q.js → execute-H337HQ2I.js} +24 -23
- package/dist/{extract-PMFDZHVG.js → extract-LOH2HC74.js} +10 -9
- package/dist/{face-SS3SCFVS.js → face-RMDNBINB.js} +11 -10
- package/dist/{feedback-GUOORIB3.js → feedback-QX4CBEFU.js} +6 -6
- package/dist/{ffmpeg-6OO3GLBM.js → ffmpeg-LXWLSIJN.js} +5 -4
- package/dist/{figma-7UPOW7FE.js → figma-QNCIZZKI.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -8
- package/dist/{frames-U3YGMMMJ.js → frames-M3ZAUTAZ.js} +12 -11
- package/dist/{generate-AUPHWEEL.js → generate-JHWY26CH.js} +21 -20
- package/dist/{get-A2NZGSFG.js → get-UOPVKIUK.js} +4 -4
- package/dist/{gpuPolicy-W433AKJE.js → gpuPolicy-4UHHZMH7.js} +5 -4
- package/dist/{grade-compare-5C2LRNHQ.js → grade-compare-TRTR3HGM.js} +30 -29
- package/dist/{heifImagePrep-D446M7WT.js → heifImagePrep-7DRKOFIJ.js} +6 -5
- package/dist/{help-3LV7M6B7.js → help-XBJ3CPJG.js} +1 -1
- package/dist/{history-ZQHBWWZE.js → history-4NBOWTAK.js} +9 -9
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-XQ2IJOMG.js → info-6OUYHW5G.js} +11 -10
- package/dist/{init-ZKRYYGOT.js → init-U4UGYE5D.js} +27 -26
- package/dist/{ink-A53ZJM3Y.js → ink-3K5U33XB.js} +10 -9
- package/dist/{inspect-MQ4EK7IR.js → inspect-U6QLWQW2.js} +31 -30
- package/dist/{installer-FC2Z2XXY.js → installer-2LTM4GWP.js} +5 -5
- package/dist/{keyframes-B55NHFTC.js → keyframes-HRT4ICFF.js} +7 -7
- package/dist/{lambda-2QOMUSG6.js → lambda-QCYXB7S3.js} +10 -9
- package/dist/{layout-7YH7VP7S.js → layout-S6E5YVK5.js} +31 -30
- package/dist/{lint-KAJRCNL2.js → lint-JNQUZ5H6.js} +7 -7
- package/dist/{list-RNSNNZQE.js → list-IEATKMVG.js} +4 -4
- package/dist/{localPage-GJ6C7W53.js → localPage-KKLCOLJR.js} +6 -5
- package/dist/{login-JVPXGRUD.js → login-BWXQWFKL.js} +4 -4
- package/dist/{look-YVXOUUZD.js → look-5EMJASLS.js} +10 -9
- package/dist/{manager-54RABD4L.js → manager-7XKYKMB7.js} +6 -5
- package/dist/{measure-3YFE6T4L.js → measure-UW3MUWR7.js} +11 -11
- package/dist/{media-treatment-JGN2SUZ4.js → media-treatment-C26U3INH.js} +11 -10
- package/dist/{media-use-2I2N7TE5.js → media-use-IGSJKXLU.js} +3 -3
- package/dist/{models-QSEJP7DQ.js → models-XQMHEBHU.js} +9 -8
- package/dist/{motionShot-2NLQJU33.js → motionShot-PH2I6VOO.js} +14 -13
- package/dist/{normalize-audio-64TH5ILM.js → normalize-audio-ROHXFODM.js} +7 -7
- package/dist/{open-64HC2QB2.js → open-UAGIY4HR.js} +15 -15
- package/dist/{parakeetRunner-V7U32IZL.js → parakeetRunner-OOJI6E2B.js} +11 -10
- package/dist/{pipeline-OMPNZQWD.js → pipeline-GQUCPCXS.js} +8 -7
- package/dist/{plan-TFZG6XYY.js → plan-PNV4KSCO.js} +18 -17
- package/dist/{play-4UDHK5VX.js → play-UEEYAMEA.js} +19 -19
- package/dist/{preflight-4WCKA5GQ.js → preflight-E6FYCMJX.js} +6 -5
- package/dist/{present-6P7GSOPW.js → present-ZKBO5RTJ.js} +13 -13
- package/dist/{preview-BT4WQGVC.js → preview-SQFT4TGS.js} +20 -19
- package/dist/{probe-FH3TBZ4E.js → probe-35RQ7WQ6.js} +10 -9
- package/dist/{producer-FSE66NZO.js → producer-7PCYSXHR.js} +1 -1
- package/dist/{projectConfig-UW5YWKWL.js → projectConfig-LSJSU4UR.js} +8 -8
- package/dist/publicNetwork-CWRD7PSE.js +34 -0
- package/dist/{publication-SHADGLOC.js → publication-4EYVOO47.js} +3 -3
- package/dist/{publish-T3CTDP4X.js → publish-UEF3X6G7.js} +13 -13
- package/dist/{remove-background-O2TPD3D2.js → remove-background-KES26J53.js} +9 -8
- package/dist/{render-BVHGKYHI.js → render-4C7Q32BC.js} +37 -36
- package/dist/{render-3CA3HN76.js → render-GH2KWOVT.js} +24 -23
- package/dist/{render-NPNT5RU7.js → render-IFRE426H.js} +4 -4
- package/dist/{render-batch-PKXLME2H.js → render-batch-2BWEMPAQ.js} +4 -4
- package/dist/{resolver-4XARUMYN.js → resolver-PM56BNET.js} +5 -5
- package/dist/{reverse-JFMJXJGH.js → reverse-I6VOINAN.js} +1 -1
- package/dist/{screenshotCapture-VQHYCPIL.js → screenshotCapture-HXTGIPHY.js} +8 -7
- package/dist/{service-EUTTPCZS.js → service-KXRPG74T.js} +9 -8
- package/dist/{share-2B4TPNAM.js → share-G2UPZLLH.js} +12 -11
- package/dist/{sherpa-KCSNZSHQ.js → sherpa-P3IEXV3S.js} +10 -9
- package/dist/{skills-C2ANFQ34.js → skills-4KNW2APN.js} +7 -7
- package/dist/{skillsUpdateCheck-5SHCR7NW.js → skillsUpdateCheck-XRXMK2BR.js} +3 -3
- package/dist/{snapshot-5FUXM5ZY.js → snapshot-MSTKQXSJ.js} +42 -41
- package/dist/{src-LPQZ7OIH.js → src-5O3RW44E.js} +9 -7
- package/dist/{src-BBV5FVBE.js → src-EJXQBNFT.js} +8 -7
- package/dist/{start-72LKTGKX.js → start-WERFNWUG.js} +19 -18
- package/dist/{staticProjectServer-SZCFUX63.js → staticProjectServer-MTL5UOLQ.js} +18 -17
- package/dist/{status-YTVMG6TS.js → status-MOLSRFMM.js} +12 -12
- package/dist/studio/assets/{hyperframes-player-CjQNefFs.js → hyperframes-player-DYtpqF4w.js} +1 -1
- package/dist/studio/assets/{index-B85NqQ6A.js → index-D_6Nvt4M.js} +121 -121
- package/dist/studio/assets/index-pSFnTYYo.js +469 -0
- package/dist/studio/assets/pausedVideoDecoder-D_jYmpmj.js +1 -0
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PQS4K2CS.js → studio-api-BTDNUTUL.js} +8 -8
- package/dist/{studioServer-2MVX2Y4H.js → studioServer-A73V7BGB.js} +55 -54
- package/dist/{sync-2B3MWR6Z.js → sync-VV4THGGW.js} +10 -9
- package/dist/{synthesize-KF5QG6ZN.js → synthesize-HOLHQCR2.js} +2 -2
- package/dist/{telemetry-CJEW3BVT.js → telemetry-VTF2M5AG.js} +4 -4
- package/dist/{templates-HXOBKWG7.js → templates-IDYVXLRA.js} +12 -12
- package/dist/{timeline-HIRADRSL.js → timeline-RHXNE24Z.js} +18 -17
- package/dist/{tokens-6UWEIY7L.js → tokens-TYYUI63J.js} +2 -2
- package/dist/{transcribe-W5JTJ34L.js → transcribe-5JGZPJCT.js} +24 -23
- package/dist/{transcribe-WGMHJ2EN.js → transcribe-ZC22NJXV.js} +8 -7
- package/dist/{tts-IF65L6CN.js → tts-3VHEX4RB.js} +1 -1
- package/dist/{update-HAAZ3VDJ.js → update-QIVTZXMN.js} +9 -9
- package/dist/{updateCheck-WEE7DFPV.js → updateCheck-7RZEDERP.js} +2 -2
- package/dist/{upgrade-GVNUJJPT.js → upgrade-HYRR4ZLW.js} +4 -4
- package/dist/{urlDownloader-KIIAJEO5.js → urlDownloader-YPKIQ2PI.js} +4 -3
- package/dist/{validate-2R3OKTIA.js → validate-ZWUJ2E2U.js} +24 -23
- package/dist/{video-IFAQCSQX.js → video-CNLMBOOB.js} +8 -7
- package/dist/{voices-NXOZK3PB.js → voices-4GOW5GZG.js} +19 -18
- package/dist/warmCheck.js +41 -40
- package/package.json +1 -1
- package/dist/chunk-TSYRN646.js +0 -84
- package/dist/studio/assets/codec-D3GU4v7H.js +0 -314
- package/dist/studio/assets/index-B7N7k0rf.js +0 -150
- package/dist/studio/assets/pausedVideoDecoder-CPaoO7Pl.js +0 -1
|
@@ -6,16 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
CAPTURE_USER_AGENT,
|
|
9
|
-
assertPublicHostname,
|
|
10
9
|
downloadAndRewriteFonts,
|
|
11
10
|
downloadAssets,
|
|
12
11
|
isPrivateUrl,
|
|
13
12
|
mergeDrops,
|
|
14
13
|
noDrops,
|
|
15
|
-
resolvePublicAddress,
|
|
16
14
|
safeFetch,
|
|
17
15
|
totalDrops
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JX7623IE.js";
|
|
19
17
|
import {
|
|
20
18
|
createCaptureWatchdog,
|
|
21
19
|
runWithWatchdog
|
|
@@ -24,11 +22,7 @@ import {
|
|
|
24
22
|
CAPTURE_PHASE_SCHEMA,
|
|
25
23
|
DEFAULT_MAX_SCREENSHOTS
|
|
26
24
|
} from "./chunk-P36MALQF.js";
|
|
27
|
-
import
|
|
28
|
-
captureUpstreamProxy,
|
|
29
|
-
connectAuthority,
|
|
30
|
-
openUpstreamTunnel
|
|
31
|
-
} from "./chunk-TSYRN646.js";
|
|
25
|
+
import "./chunk-QCAKISPA.js";
|
|
32
26
|
import {
|
|
33
27
|
captureSiteName,
|
|
34
28
|
localUrlRewriter,
|
|
@@ -36,13 +30,13 @@ import {
|
|
|
36
30
|
rewriteLocalCaptureOutput,
|
|
37
31
|
rewriteStrings,
|
|
38
32
|
startLocalPageServer
|
|
39
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CDBPBLYJ.js";
|
|
40
34
|
import {
|
|
41
35
|
CaptureDirRefusedError,
|
|
42
36
|
NavigationDeadlineError,
|
|
43
37
|
ensureCaptureDirSync,
|
|
44
38
|
writeCaptureFileSync
|
|
45
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HD5RVDL6.js";
|
|
46
40
|
import {
|
|
47
41
|
PROJECT_ENV_KEYS,
|
|
48
42
|
applyDotEnv
|
|
@@ -57,23 +51,23 @@ import {
|
|
|
57
51
|
navigateForCapture,
|
|
58
52
|
settleAcrossNavigation,
|
|
59
53
|
waitForPageReady
|
|
60
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-47MEWWCO.js";
|
|
61
55
|
import {
|
|
62
56
|
captureProtocolTimeoutMs,
|
|
63
57
|
isDegradableEvaluateTimeoutError,
|
|
64
58
|
isNavigationTimeoutError,
|
|
65
59
|
withRemainingBudget
|
|
66
60
|
} from "./chunk-YGGZ23BB.js";
|
|
67
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-WN4W76IQ.js";
|
|
68
62
|
import {
|
|
69
63
|
closeManagedBrowser,
|
|
70
64
|
launchManagedBrowser,
|
|
71
65
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-GXPAR6JC.js";
|
|
67
|
+
import "./chunk-E5OW6L6E.js";
|
|
74
68
|
import {
|
|
75
69
|
writeNewFileSync
|
|
76
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7RHN6N5F.js";
|
|
77
71
|
import {
|
|
78
72
|
createCaptureDownloadBudget,
|
|
79
73
|
readBoundedResponse
|
|
@@ -81,18 +75,21 @@ import {
|
|
|
81
75
|
import {
|
|
82
76
|
diag
|
|
83
77
|
} from "./chunk-MCDNAIFF.js";
|
|
78
|
+
import "./chunk-3JWNN5PN.js";
|
|
84
79
|
import {
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
browserProxyArgs,
|
|
81
|
+
createPublicOnlyProfile,
|
|
82
|
+
startCaptureProxy
|
|
83
|
+
} from "./chunk-UG3G4HEH.js";
|
|
87
84
|
import {
|
|
88
85
|
removeTreeBestEffortAsync
|
|
89
86
|
} from "./chunk-Z5J67X44.js";
|
|
90
87
|
import "./chunk-5S7W3TUO.js";
|
|
91
88
|
import "./chunk-D54ZDCZR.js";
|
|
92
89
|
import "./chunk-7SY3DERR.js";
|
|
93
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-DE3JRSGT.js";
|
|
94
91
|
import "./chunk-3GXQPCJC.js";
|
|
95
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-U7ZCBWNM.js";
|
|
96
93
|
import "./chunk-FXMKHHPO.js";
|
|
97
94
|
import "./chunk-DQZRNGDS.js";
|
|
98
95
|
import "./chunk-VC76R6W2.js";
|
|
@@ -212,11 +209,6 @@ function writePartialCaptureBundle(opts, state, lastPhase) {
|
|
|
212
209
|
};
|
|
213
210
|
}
|
|
214
211
|
|
|
215
|
-
// src/capture/launchCaptureBrowser.ts
|
|
216
|
-
import { mkdtemp, mkdir, writeFile } from "fs/promises";
|
|
217
|
-
import { tmpdir } from "os";
|
|
218
|
-
import { join as join2 } from "path";
|
|
219
|
-
|
|
220
212
|
// src/capture/browserLaunchArgs.ts
|
|
221
213
|
function captureBrowserArgs(disableWebgl, viewportWidth, viewportHeight, platform = process.platform) {
|
|
222
214
|
const needsLinuxSandboxException = platform === "linux";
|
|
@@ -231,171 +223,6 @@ function captureBrowserArgs(disableWebgl, viewportWidth, viewportHeight, platfor
|
|
|
231
223
|
];
|
|
232
224
|
}
|
|
233
225
|
|
|
234
|
-
// src/capture/captureProxy.ts
|
|
235
|
-
import { createServer, request } from "http";
|
|
236
|
-
import { connect } from "net";
|
|
237
|
-
var CONNECTION_TIMEOUT_MS = 15e3;
|
|
238
|
-
var HOP_HEADERS = /* @__PURE__ */ new Set([
|
|
239
|
-
"connection",
|
|
240
|
-
"proxy-connection",
|
|
241
|
-
"proxy-authorization",
|
|
242
|
-
"proxy-authenticate",
|
|
243
|
-
"keep-alive",
|
|
244
|
-
"te",
|
|
245
|
-
"trailer",
|
|
246
|
-
"transfer-encoding",
|
|
247
|
-
"upgrade"
|
|
248
|
-
]);
|
|
249
|
-
function forwardHeaders(message) {
|
|
250
|
-
const headers = { ...message.headers };
|
|
251
|
-
const connection = String(headers.connection ?? "").split(",");
|
|
252
|
-
for (const name of [...HOP_HEADERS, ...connection]) delete headers[name.trim().toLowerCase()];
|
|
253
|
-
return headers;
|
|
254
|
-
}
|
|
255
|
-
function destination(raw, tunnel) {
|
|
256
|
-
const url = new URL(tunnel ? `https://${raw}` : raw);
|
|
257
|
-
if (url.username || url.password || url.hash || (tunnel ? url.protocol !== "https:" || url.pathname !== "/" || !!url.search : url.protocol !== "http:")) {
|
|
258
|
-
throw new Error("Unsupported capture destination");
|
|
259
|
-
}
|
|
260
|
-
return url;
|
|
261
|
-
}
|
|
262
|
-
function refuse(response) {
|
|
263
|
-
if (!response.headersSent) response.writeHead(403, { Connection: "close" });
|
|
264
|
-
response.end();
|
|
265
|
-
}
|
|
266
|
-
async function httpPeer(url, proxy) {
|
|
267
|
-
if (!proxy) {
|
|
268
|
-
const hostname = await resolvePublicAddress(url.hostname);
|
|
269
|
-
return { hostname, family: 4, port: url.port || 80, path: url.pathname + url.search };
|
|
270
|
-
}
|
|
271
|
-
assertPublicHostname(url.hostname);
|
|
272
|
-
return { hostname: proxy.host, port: proxy.port, path: url.href };
|
|
273
|
-
}
|
|
274
|
-
async function forwardHttp(incoming, response, sockets, proxy) {
|
|
275
|
-
try {
|
|
276
|
-
const url = destination(incoming.url ?? "", false);
|
|
277
|
-
const peer = await httpPeer(url, proxy);
|
|
278
|
-
if (incoming.destroyed || response.destroyed) return;
|
|
279
|
-
const headers = forwardHeaders(incoming);
|
|
280
|
-
headers.host = url.host;
|
|
281
|
-
if (proxy?.authorization) headers["proxy-authorization"] = proxy.authorization;
|
|
282
|
-
const upstream = request(
|
|
283
|
-
{
|
|
284
|
-
...peer,
|
|
285
|
-
method: incoming.method,
|
|
286
|
-
headers,
|
|
287
|
-
agent: false,
|
|
288
|
-
signal: AbortSignal.timeout(3e4)
|
|
289
|
-
},
|
|
290
|
-
(received) => {
|
|
291
|
-
response.writeHead(received.statusCode ?? 502, forwardHeaders(received));
|
|
292
|
-
received.on("error", () => response.destroy());
|
|
293
|
-
received.pipe(response);
|
|
294
|
-
}
|
|
295
|
-
);
|
|
296
|
-
upstream.on("socket", (socket) => trackSocket(socket, sockets));
|
|
297
|
-
upstream.setTimeout(
|
|
298
|
-
CONNECTION_TIMEOUT_MS,
|
|
299
|
-
() => upstream.destroy(new Error("Capture request timed out"))
|
|
300
|
-
);
|
|
301
|
-
upstream.on("error", () => {
|
|
302
|
-
if (!response.headersSent) response.writeHead(502, { Connection: "close" });
|
|
303
|
-
response.end();
|
|
304
|
-
});
|
|
305
|
-
response.on("close", () => upstream.destroy());
|
|
306
|
-
incoming.on("error", () => upstream.destroy());
|
|
307
|
-
incoming.pipe(upstream);
|
|
308
|
-
} catch {
|
|
309
|
-
refuse(response);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
function trackSocket(socket, sockets) {
|
|
313
|
-
sockets.add(socket);
|
|
314
|
-
socket.once("close", () => sockets.delete(socket));
|
|
315
|
-
socket.on("error", () => socket.destroy());
|
|
316
|
-
}
|
|
317
|
-
async function forwardTunnelViaUpstream(url, proxy, client, head, sockets) {
|
|
318
|
-
let upstream;
|
|
319
|
-
try {
|
|
320
|
-
upstream = await openUpstreamTunnel(proxy, connectAuthority(url), {
|
|
321
|
-
onSocket: (socket) => trackSocket(socket, sockets)
|
|
322
|
-
});
|
|
323
|
-
} catch {
|
|
324
|
-
if (!client.destroyed) {
|
|
325
|
-
client.end("HTTP/1.1 502 Bad Gateway\r\nConnection: close\r\nContent-Length: 0\r\n\r\n");
|
|
326
|
-
}
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
if (client.destroyed) return void upstream.destroy();
|
|
330
|
-
upstream.setTimeout(CONNECTION_TIMEOUT_MS, () => upstream.destroy());
|
|
331
|
-
client.write("HTTP/1.1 200 Connection Established\r\n\r\n");
|
|
332
|
-
if (head.length) upstream.write(head);
|
|
333
|
-
upstream.pipe(client);
|
|
334
|
-
client.pipe(upstream);
|
|
335
|
-
upstream.once("close", () => client.destroy());
|
|
336
|
-
client.once("close", () => upstream.destroy());
|
|
337
|
-
}
|
|
338
|
-
async function forwardTunnel(incoming, client, head, sockets, proxy) {
|
|
339
|
-
try {
|
|
340
|
-
const url = destination(incoming.url ?? "", true);
|
|
341
|
-
if (proxy) {
|
|
342
|
-
assertPublicHostname(url.hostname);
|
|
343
|
-
return await forwardTunnelViaUpstream(url, proxy, client, head, sockets);
|
|
344
|
-
}
|
|
345
|
-
const address = await resolvePublicAddress(url.hostname);
|
|
346
|
-
if (client.destroyed) return;
|
|
347
|
-
const upstream = connect({ host: address, family: 4, port: Number(url.port || 443) });
|
|
348
|
-
trackSocket(upstream, sockets);
|
|
349
|
-
const connectDeadline = setTimeout(() => upstream.destroy(), CONNECTION_TIMEOUT_MS);
|
|
350
|
-
connectDeadline.unref();
|
|
351
|
-
upstream.once("close", () => clearTimeout(connectDeadline));
|
|
352
|
-
upstream.setTimeout(CONNECTION_TIMEOUT_MS, () => upstream.destroy());
|
|
353
|
-
upstream.once("connect", () => {
|
|
354
|
-
clearTimeout(connectDeadline);
|
|
355
|
-
if (client.destroyed) return upstream.destroy();
|
|
356
|
-
client.write("HTTP/1.1 200 Connection Established\r\n\r\n");
|
|
357
|
-
if (head.length) upstream.write(head);
|
|
358
|
-
upstream.pipe(client);
|
|
359
|
-
client.pipe(upstream);
|
|
360
|
-
});
|
|
361
|
-
upstream.once("close", () => client.destroy());
|
|
362
|
-
client.once("close", () => upstream.destroy());
|
|
363
|
-
} catch {
|
|
364
|
-
client.end("HTTP/1.1 403 Forbidden\r\nConnection: close\r\nContent-Length: 0\r\n\r\n");
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
async function startCaptureProxy() {
|
|
368
|
-
const proxy = captureUpstreamProxy();
|
|
369
|
-
const sockets = /* @__PURE__ */ new Set();
|
|
370
|
-
const server = createServer(
|
|
371
|
-
(incoming, response) => void forwardHttp(incoming, response, sockets, proxy)
|
|
372
|
-
);
|
|
373
|
-
server.on("connection", (socket) => trackSocket(socket, sockets));
|
|
374
|
-
server.on(
|
|
375
|
-
"connect",
|
|
376
|
-
(incoming, socket, head) => void forwardTunnel(incoming, socket, head, sockets, proxy)
|
|
377
|
-
);
|
|
378
|
-
server.on("upgrade", (_incoming, socket) => socket.destroy());
|
|
379
|
-
server.maxConnections = 128;
|
|
380
|
-
server.headersTimeout = CONNECTION_TIMEOUT_MS;
|
|
381
|
-
server.requestTimeout = 3e4;
|
|
382
|
-
server.keepAliveTimeout = 1e3;
|
|
383
|
-
await listenOnBrowserSafePort(server, "127.0.0.1");
|
|
384
|
-
const address = server.address();
|
|
385
|
-
if (!address || typeof address === "string") throw new Error("Capture proxy did not bind");
|
|
386
|
-
let closing;
|
|
387
|
-
return {
|
|
388
|
-
url: `http://127.0.0.1:${address.port}`,
|
|
389
|
-
close() {
|
|
390
|
-
closing ??= new Promise((resolve2) => {
|
|
391
|
-
server.close(() => resolve2());
|
|
392
|
-
for (const socket of sockets) socket.destroy();
|
|
393
|
-
});
|
|
394
|
-
return closing;
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
|
|
399
226
|
// src/capture/launchCaptureBrowser.ts
|
|
400
227
|
async function launchCaptureBrowser(options) {
|
|
401
228
|
const proxy = await startCaptureProxy();
|
|
@@ -419,15 +246,7 @@ async function launchCaptureBrowser(options) {
|
|
|
419
246
|
return closing;
|
|
420
247
|
};
|
|
421
248
|
try {
|
|
422
|
-
|
|
423
|
-
profile = profilePath;
|
|
424
|
-
await mkdir(join2(profile, "Default"));
|
|
425
|
-
await writeFile(
|
|
426
|
-
join2(profile, "Default", "Preferences"),
|
|
427
|
-
JSON.stringify({
|
|
428
|
-
webrtc: { ip_handling_policy: "disable_non_proxied_udp" }
|
|
429
|
-
})
|
|
430
|
-
);
|
|
249
|
+
profile = await createPublicOnlyProfile("hf-capture-profile-");
|
|
431
250
|
unregister = registerBrowserSessionCleanup(close);
|
|
432
251
|
const puppeteer = await import("puppeteer-core");
|
|
433
252
|
browser = await launchManagedBrowser(puppeteer.default, {
|
|
@@ -438,10 +257,10 @@ async function launchCaptureBrowser(options) {
|
|
|
438
257
|
// Linux containers may lack the user namespaces Chromium's sandbox requires.
|
|
439
258
|
args: [
|
|
440
259
|
...captureBrowserArgs(options.disableWebgl, options.width, options.height),
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
260
|
+
...browserProxyArgs(
|
|
261
|
+
proxy.url,
|
|
262
|
+
options.localOrigin ? new URL(options.localOrigin).host : void 0
|
|
263
|
+
)
|
|
445
264
|
]
|
|
446
265
|
});
|
|
447
266
|
const newPage = browser.newPage.bind(browser);
|
|
@@ -678,7 +497,7 @@ function candidatePriority(url, contentType) {
|
|
|
678
497
|
|
|
679
498
|
// src/capture/captureAttempt.ts
|
|
680
499
|
import { existsSync as existsSync5 } from "fs";
|
|
681
|
-
import { join as
|
|
500
|
+
import { join as join10 } from "path";
|
|
682
501
|
|
|
683
502
|
// src/capture/lazyScrollForCapture.ts
|
|
684
503
|
var LAZY_SCROLL_STEP_DELAY_MS = 400;
|
|
@@ -930,7 +749,7 @@ async function collectAnimationCatalog(page, cdpAnimations, cdp, opts = {}) {
|
|
|
930
749
|
|
|
931
750
|
// src/capture/scaffolding.ts
|
|
932
751
|
import { existsSync, readFileSync } from "fs";
|
|
933
|
-
import { join as
|
|
752
|
+
import { join as join2, resolve } from "path";
|
|
934
753
|
function loadEnvFile(startDir) {
|
|
935
754
|
if (process.env.HYPERFRAMES_NO_CAPTURE_DOTENV === "1") return;
|
|
936
755
|
try {
|
|
@@ -948,7 +767,7 @@ function loadEnvFile(startDir) {
|
|
|
948
767
|
}
|
|
949
768
|
}
|
|
950
769
|
async function generateProjectScaffold(outputDir, url, tokens, animationCatalog, hasScreenshots, hasLotties, hasShaders, catalogedAssets, progress, warnings, detectedLibraries) {
|
|
951
|
-
const metaPath =
|
|
770
|
+
const metaPath = join2(outputDir, "meta.json");
|
|
952
771
|
if (!existsSync(metaPath)) {
|
|
953
772
|
const hostname = captureSiteName(url);
|
|
954
773
|
writeNewFileSync(
|
|
@@ -957,7 +776,7 @@ async function generateProjectScaffold(outputDir, url, tokens, animationCatalog,
|
|
|
957
776
|
);
|
|
958
777
|
}
|
|
959
778
|
try {
|
|
960
|
-
const { generateAgentPrompt } = await import("./agentPromptGenerator-
|
|
779
|
+
const { generateAgentPrompt } = await import("./agentPromptGenerator-PIHKWDAW.js");
|
|
961
780
|
const kept = generateAgentPrompt(
|
|
962
781
|
outputDir,
|
|
963
782
|
url,
|
|
@@ -991,18 +810,18 @@ function detectBlockedPage(evidence) {
|
|
|
991
810
|
}
|
|
992
811
|
|
|
993
812
|
// src/capture/responseRecord.ts
|
|
994
|
-
import { join as
|
|
813
|
+
import { join as join3 } from "path";
|
|
995
814
|
var RESPONSE_RECORD_FILENAME = "response.json";
|
|
996
815
|
function writeResponseRecord(extractedDir, record2) {
|
|
997
816
|
writeCaptureFileSync(
|
|
998
|
-
|
|
817
|
+
join3(extractedDir, RESPONSE_RECORD_FILENAME),
|
|
999
818
|
JSON.stringify(record2, null, 2),
|
|
1000
819
|
"utf-8"
|
|
1001
820
|
);
|
|
1002
821
|
}
|
|
1003
822
|
|
|
1004
823
|
// src/capture/navigationPhase.ts
|
|
1005
|
-
import { join as
|
|
824
|
+
import { join as join4 } from "path";
|
|
1006
825
|
async function navigatePage(context) {
|
|
1007
826
|
let navigation;
|
|
1008
827
|
try {
|
|
@@ -1056,7 +875,7 @@ async function checkPageContent(context) {
|
|
|
1056
875
|
function persistNavigationResult(context, navigationResponse, pageContentCheck) {
|
|
1057
876
|
context.httpStatus = navigationResponse ? navigationResponse.status() : null;
|
|
1058
877
|
if (context.canWrite()) {
|
|
1059
|
-
writeResponseRecord(
|
|
878
|
+
writeResponseRecord(join4(context.outputDir, "extracted"), { status: context.httpStatus });
|
|
1060
879
|
}
|
|
1061
880
|
const blockedReason = detectBlockedPage({
|
|
1062
881
|
httpStatus: context.httpStatus,
|
|
@@ -1123,7 +942,7 @@ import {
|
|
|
1123
942
|
fstatSync,
|
|
1124
943
|
closeSync
|
|
1125
944
|
} from "fs";
|
|
1126
|
-
import { basename, join as
|
|
945
|
+
import { basename, join as join5 } from "path";
|
|
1127
946
|
var DEFAULT_VISION_REQUEST_TIMEOUT_MS = 3e4;
|
|
1128
947
|
function resolveVisionPhaseCompletion(outcome, remainingMs) {
|
|
1129
948
|
if (outcome.budgetExhausted || remainingMs <= 0) {
|
|
@@ -1188,7 +1007,7 @@ function resolveVisionRequestTimeoutMs() {
|
|
|
1188
1007
|
const configured = Number(process.env.HYPERFRAMES_VISION_TIMEOUT_MS);
|
|
1189
1008
|
return Number.isFinite(configured) && configured > 0 ? configured : DEFAULT_VISION_REQUEST_TIMEOUT_MS;
|
|
1190
1009
|
}
|
|
1191
|
-
async function runBoundedVisionRequest(
|
|
1010
|
+
async function runBoundedVisionRequest(request, timeoutMs) {
|
|
1192
1011
|
const controller = new AbortController();
|
|
1193
1012
|
let timer;
|
|
1194
1013
|
const timeout = new Promise((_resolve, reject) => {
|
|
@@ -1198,7 +1017,7 @@ async function runBoundedVisionRequest(request2, timeoutMs) {
|
|
|
1198
1017
|
}, timeoutMs);
|
|
1199
1018
|
});
|
|
1200
1019
|
try {
|
|
1201
|
-
return await Promise.race([
|
|
1020
|
+
return await Promise.race([request(controller.signal), timeout]);
|
|
1202
1021
|
} finally {
|
|
1203
1022
|
if (timer) clearTimeout(timer);
|
|
1204
1023
|
}
|
|
@@ -1450,7 +1269,7 @@ async function captionImagesWithGemini(outputDir, progress, warnings, options =
|
|
|
1450
1269
|
return response.text?.trim() || "";
|
|
1451
1270
|
};
|
|
1452
1271
|
}
|
|
1453
|
-
const imageFiles = readdirSync(
|
|
1272
|
+
const imageFiles = readdirSync(join5(outputDir, "assets")).filter(
|
|
1454
1273
|
(f) => /\.(png|jpg|jpeg|webp|gif)$/i.test(f)
|
|
1455
1274
|
);
|
|
1456
1275
|
const BATCH_SIZE = 20;
|
|
@@ -1478,7 +1297,7 @@ async function captionImagesWithGemini(outputDir, progress, warnings, options =
|
|
|
1478
1297
|
const batch = imageFiles.slice(i, i + BATCH_SIZE);
|
|
1479
1298
|
const results = await Promise.allSettled(
|
|
1480
1299
|
batch.map(async (file) => {
|
|
1481
|
-
const filePath =
|
|
1300
|
+
const filePath = join5(outputDir, "assets", file);
|
|
1482
1301
|
const fd = openSync(filePath, "r", 384);
|
|
1483
1302
|
let buffer;
|
|
1484
1303
|
try {
|
|
@@ -1517,11 +1336,11 @@ async function captionImagesWithGemini(outputDir, progress, warnings, options =
|
|
|
1517
1336
|
`${Object.keys(geminiCaptions).length} images captioned with ${providerName}`
|
|
1518
1337
|
);
|
|
1519
1338
|
const svgFiles = [];
|
|
1520
|
-
const assetsDir =
|
|
1339
|
+
const assetsDir = join5(outputDir, "assets");
|
|
1521
1340
|
for (const f of readdirSync(assetsDir)) {
|
|
1522
1341
|
if (/\.svg$/i.test(f)) svgFiles.push({ file: f, relPath: f });
|
|
1523
1342
|
}
|
|
1524
|
-
const svgsSubdir =
|
|
1343
|
+
const svgsSubdir = join5(assetsDir, "svgs");
|
|
1525
1344
|
if (existsSync2(svgsSubdir)) {
|
|
1526
1345
|
for (const f of readdirSync(svgsSubdir)) {
|
|
1527
1346
|
if (/\.svg$/i.test(f)) svgFiles.push({ file: f, relPath: `svgs/${f}` });
|
|
@@ -1555,7 +1374,7 @@ async function captionImagesWithGemini(outputDir, progress, warnings, options =
|
|
|
1555
1374
|
sharp.concurrency(1);
|
|
1556
1375
|
try {
|
|
1557
1376
|
for (const { relPath } of batch) {
|
|
1558
|
-
const filePath =
|
|
1377
|
+
const filePath = join5(assetsDir, relPath);
|
|
1559
1378
|
try {
|
|
1560
1379
|
const svgSource = readFileSync2(filePath, "utf-8");
|
|
1561
1380
|
const lightFillHits = (svgSource.match(/fill\s*=\s*["'](#fff(fff)?|white|#[ef][ef][ef]|#[ef]{6})["']/gi) || []).length;
|
|
@@ -1630,11 +1449,11 @@ function generateAssetDescriptions(outputDir, tokens, catalogedAssets, geminiCap
|
|
|
1630
1449
|
const uncaptionedLines = [];
|
|
1631
1450
|
const svgLines = [];
|
|
1632
1451
|
const fontLines = [];
|
|
1633
|
-
const assetsPath =
|
|
1452
|
+
const assetsPath = join5(outputDir, "assets");
|
|
1634
1453
|
try {
|
|
1635
1454
|
for (const file of readdirSync(assetsPath)) {
|
|
1636
1455
|
if (file === "svgs" || file === "fonts" || file === "lottie" || file === "videos") continue;
|
|
1637
|
-
const filePath =
|
|
1456
|
+
const filePath = join5(assetsPath, file);
|
|
1638
1457
|
const stat = statSync(filePath);
|
|
1639
1458
|
if (!stat.isFile()) continue;
|
|
1640
1459
|
const sizeKb = Math.round(stat.size / 1024);
|
|
@@ -1663,7 +1482,7 @@ function generateAssetDescriptions(outputDir, tokens, catalogedAssets, geminiCap
|
|
|
1663
1482
|
} catch {
|
|
1664
1483
|
}
|
|
1665
1484
|
try {
|
|
1666
|
-
const svgsPath =
|
|
1485
|
+
const svgsPath = join5(assetsPath, "svgs");
|
|
1667
1486
|
for (const file of readdirSync(svgsPath)) {
|
|
1668
1487
|
if (!file.endsWith(".svg")) continue;
|
|
1669
1488
|
const svgMatch = tokens.svgs.find(
|
|
@@ -1682,7 +1501,7 @@ function generateAssetDescriptions(outputDir, tokens, catalogedAssets, geminiCap
|
|
|
1682
1501
|
} catch {
|
|
1683
1502
|
}
|
|
1684
1503
|
try {
|
|
1685
|
-
const fontsPath =
|
|
1504
|
+
const fontsPath = join5(assetsPath, "fonts");
|
|
1686
1505
|
for (const file of readdirSync(fontsPath)) {
|
|
1687
1506
|
fontLines.push(`fonts/${file} \u2014 font file`);
|
|
1688
1507
|
}
|
|
@@ -1691,7 +1510,7 @@ function generateAssetDescriptions(outputDir, tokens, catalogedAssets, geminiCap
|
|
|
1691
1510
|
const videoLines = [];
|
|
1692
1511
|
try {
|
|
1693
1512
|
const manifest = JSON.parse(
|
|
1694
|
-
readFileSync2(
|
|
1513
|
+
readFileSync2(join5(outputDir, "extracted", "video-manifest.json"), "utf-8")
|
|
1695
1514
|
);
|
|
1696
1515
|
for (const v of manifest) {
|
|
1697
1516
|
if (!v.localPath) continue;
|
|
@@ -1709,7 +1528,7 @@ function generateAssetDescriptions(outputDir, tokens, catalogedAssets, geminiCap
|
|
|
1709
1528
|
}
|
|
1710
1529
|
|
|
1711
1530
|
// src/capture/coreExtractionPhase.ts
|
|
1712
|
-
import { join as
|
|
1531
|
+
import { join as join7 } from "path";
|
|
1713
1532
|
|
|
1714
1533
|
// src/capture/htmlExtractor.ts
|
|
1715
1534
|
var DEFAULT_SETTLE_TIME = 3e3;
|
|
@@ -2953,7 +2772,7 @@ async function extractDesignStyles(page) {
|
|
|
2953
2772
|
// src/capture/mediaCapture.ts
|
|
2954
2773
|
import { createHash } from "crypto";
|
|
2955
2774
|
import { readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "fs";
|
|
2956
|
-
import { join as
|
|
2775
|
+
import { join as join6, extname } from "path";
|
|
2957
2776
|
|
|
2958
2777
|
// src/capture/lottiePreviewRequests.ts
|
|
2959
2778
|
var LOTTIE_RUNTIME_URL = "https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.12.2/lottie.min.js";
|
|
@@ -2965,9 +2784,9 @@ function allowedLottieRequest(url, resourceType) {
|
|
|
2965
2784
|
}
|
|
2966
2785
|
async function guardLottiePreviewRequests(page) {
|
|
2967
2786
|
await page.setRequestInterception(true);
|
|
2968
|
-
page.on("request", (
|
|
2969
|
-
if (
|
|
2970
|
-
const action = allowedLottieRequest(
|
|
2787
|
+
page.on("request", (request) => {
|
|
2788
|
+
if (request.isInterceptResolutionHandled()) return;
|
|
2789
|
+
const action = allowedLottieRequest(request.url(), request.resourceType()) ? request.continue() : request.abort("blockedbyclient");
|
|
2971
2790
|
void action.catch(() => {
|
|
2972
2791
|
});
|
|
2973
2792
|
});
|
|
@@ -3012,7 +2831,7 @@ async function saveLottieAnimations(discoveredLotties, lottieDir, outputDir, bud
|
|
|
3012
2831
|
if (savedHashes.has(hash)) continue;
|
|
3013
2832
|
savedHashes.add(hash);
|
|
3014
2833
|
if (!validLottieJson(jsonData)) continue;
|
|
3015
|
-
writeCaptureFileSync(
|
|
2834
|
+
writeCaptureFileSync(join6(lottieDir, `animation-${savedCount}.json`), jsonData, "utf-8");
|
|
3016
2835
|
savedCount++;
|
|
3017
2836
|
}
|
|
3018
2837
|
} catch {
|
|
@@ -3022,18 +2841,18 @@ async function saveLottieAnimations(discoveredLotties, lottieDir, outputDir, bud
|
|
|
3022
2841
|
}
|
|
3023
2842
|
async function renderLottiePreviews(chromeBrowser, lottieDir, outputDir, budget = {}) {
|
|
3024
2843
|
const manifest = [];
|
|
3025
|
-
const previewDir =
|
|
2844
|
+
const previewDir = join6(lottieDir, "previews");
|
|
3026
2845
|
ensureCaptureDirSync(outputDir, previewDir);
|
|
3027
2846
|
for (const file of readdirSync2(lottieDir)) {
|
|
3028
2847
|
if (!file.endsWith(".json")) continue;
|
|
3029
2848
|
if (liveRemainingMs(budget, 1) <= 0) break;
|
|
3030
2849
|
try {
|
|
3031
|
-
const raw = JSON.parse(readFileSync3(
|
|
2850
|
+
const raw = JSON.parse(readFileSync3(join6(lottieDir, file), "utf-8"));
|
|
3032
2851
|
const fr = raw.fr || 30;
|
|
3033
2852
|
const dur = ((raw.op || 0) - (raw.ip || 0)) / fr;
|
|
3034
2853
|
const previewName = file.replace(".json", "-preview.png");
|
|
3035
2854
|
let preview;
|
|
3036
|
-
const fileSize = statSync2(
|
|
2855
|
+
const fileSize = statSync2(join6(lottieDir, file)).size;
|
|
3037
2856
|
if (fileSize <= 2e6) {
|
|
3038
2857
|
let previewPage;
|
|
3039
2858
|
try {
|
|
@@ -3042,7 +2861,7 @@ async function renderLottiePreviews(chromeBrowser, lottieDir, outputDir, budget
|
|
|
3042
2861
|
if (liveRemainingMs(budget, 1) <= 0) break;
|
|
3043
2862
|
await guardLottiePreviewRequests(previewPage);
|
|
3044
2863
|
await previewPage.setViewport({ width: 400, height: 400 });
|
|
3045
|
-
const animData = JSON.parse(readFileSync3(
|
|
2864
|
+
const animData = JSON.parse(readFileSync3(join6(lottieDir, file), "utf-8"));
|
|
3046
2865
|
const midFrame = Math.floor(((raw.op || 0) - (raw.ip || 0)) * 0.3);
|
|
3047
2866
|
await previewPage.setContent(
|
|
3048
2867
|
`<!DOCTYPE html>
|
|
@@ -3073,7 +2892,7 @@ async function renderLottiePreviews(chromeBrowser, lottieDir, outputDir, budget
|
|
|
3073
2892
|
});
|
|
3074
2893
|
if (liveRemainingMs(budget, 1) > 0) {
|
|
3075
2894
|
const shot = await previewPage.screenshot({ type: "png", omitBackground: true });
|
|
3076
|
-
writeCaptureFileSync(
|
|
2895
|
+
writeCaptureFileSync(join6(previewDir, previewName), shot);
|
|
3077
2896
|
preview = `assets/lottie/previews/${previewName}`;
|
|
3078
2897
|
}
|
|
3079
2898
|
} catch {
|
|
@@ -3097,7 +2916,7 @@ async function renderLottiePreviews(chromeBrowser, lottieDir, outputDir, budget
|
|
|
3097
2916
|
}
|
|
3098
2917
|
if (manifest.length > 0) {
|
|
3099
2918
|
writeCaptureFileSync(
|
|
3100
|
-
|
|
2919
|
+
join6(outputDir, "extracted", "lottie-manifest.json"),
|
|
3101
2920
|
JSON.stringify(manifest, null, 2),
|
|
3102
2921
|
"utf-8"
|
|
3103
2922
|
);
|
|
@@ -3138,7 +2957,7 @@ async function downloadVideoBody(srcUrl, filename, videosDir, timeoutMs) {
|
|
|
3138
2957
|
}
|
|
3139
2958
|
if (total < 1024) return null;
|
|
3140
2959
|
const safe = /\.[a-z0-9]+$/i.test(filename) ? filename.replace(/[^\w.-]/g, "_") : `video${ext}`;
|
|
3141
|
-
writeCaptureFileSync(
|
|
2960
|
+
writeCaptureFileSync(join6(videosDir, safe), Buffer.concat(chunks));
|
|
3142
2961
|
return `assets/videos/${safe}`;
|
|
3143
2962
|
} catch {
|
|
3144
2963
|
return null;
|
|
@@ -3250,9 +3069,9 @@ async function captureVideoManifest(page, outputDir, progress, opts) {
|
|
|
3250
3069
|
}
|
|
3251
3070
|
const merged = [...byKey.values()];
|
|
3252
3071
|
if (merged.length === 0) return;
|
|
3253
|
-
const videoManifestDir =
|
|
3072
|
+
const videoManifestDir = join6(outputDir, "assets", "videos");
|
|
3254
3073
|
ensureCaptureDirSync(outputDir, videoManifestDir);
|
|
3255
|
-
const previewDir =
|
|
3074
|
+
const previewDir = join6(videoManifestDir, "previews");
|
|
3256
3075
|
ensureCaptureDirSync(outputDir, previewDir);
|
|
3257
3076
|
const videoManifest = [];
|
|
3258
3077
|
const dlStart = Date.now();
|
|
@@ -3289,7 +3108,7 @@ async function captureVideoManifest(page, outputDir, progress, opts) {
|
|
|
3289
3108
|
height: Math.min(rect.height, 1080)
|
|
3290
3109
|
}
|
|
3291
3110
|
});
|
|
3292
|
-
writeCaptureFileSync(
|
|
3111
|
+
writeCaptureFileSync(join6(previewDir, previewName), shot);
|
|
3293
3112
|
preview = `assets/videos/previews/${previewName}`;
|
|
3294
3113
|
}
|
|
3295
3114
|
}
|
|
@@ -3319,7 +3138,7 @@ async function captureVideoManifest(page, outputDir, progress, opts) {
|
|
|
3319
3138
|
}
|
|
3320
3139
|
if (videoManifest.length > 0) {
|
|
3321
3140
|
writeCaptureFileSync(
|
|
3322
|
-
|
|
3141
|
+
join6(outputDir, "extracted", "video-manifest.json"),
|
|
3323
3142
|
JSON.stringify(videoManifest, null, 2),
|
|
3324
3143
|
"utf-8"
|
|
3325
3144
|
);
|
|
@@ -3464,7 +3283,7 @@ async function runCoreExtraction(input) {
|
|
|
3464
3283
|
await collectNetworkLotties();
|
|
3465
3284
|
const saveDiscoveredLotties = async () => {
|
|
3466
3285
|
if (discoveredLotties.length > 0 && remainingMs() > 0) {
|
|
3467
|
-
const lottieDir =
|
|
3286
|
+
const lottieDir = join7(outputDir, "assets", "lottie");
|
|
3468
3287
|
if (!canWrite()) return;
|
|
3469
3288
|
const lottieBudget = { remainingMs, byteBudget: downloadByteBudget };
|
|
3470
3289
|
const savedCount = await saveLottieAnimations(
|
|
@@ -3496,7 +3315,7 @@ async function runCoreExtraction(input) {
|
|
|
3496
3315
|
capturedShaders = unique;
|
|
3497
3316
|
if (canWrite()) {
|
|
3498
3317
|
writeCaptureFileSync(
|
|
3499
|
-
|
|
3318
|
+
join7(outputDir, "extracted", "shaders.json"),
|
|
3500
3319
|
JSON.stringify(unique, null, 2),
|
|
3501
3320
|
"utf-8"
|
|
3502
3321
|
);
|
|
@@ -3514,7 +3333,7 @@ async function runCoreExtraction(input) {
|
|
|
3514
3333
|
state.tokens = tokens;
|
|
3515
3334
|
if (canWrite()) {
|
|
3516
3335
|
writeCaptureFileSync(
|
|
3517
|
-
|
|
3336
|
+
join7(outputDir, "extracted", "tokens.json"),
|
|
3518
3337
|
serializeTokensForCapture(tokens),
|
|
3519
3338
|
"utf-8"
|
|
3520
3339
|
);
|
|
@@ -3525,7 +3344,7 @@ async function runCoreExtraction(input) {
|
|
|
3525
3344
|
state.designStyles = designStyles;
|
|
3526
3345
|
if (canWrite()) {
|
|
3527
3346
|
writeCaptureFileSync(
|
|
3528
|
-
|
|
3347
|
+
join7(outputDir, "extracted", "design-styles.json"),
|
|
3529
3348
|
JSON.stringify(designStyles, null, 2),
|
|
3530
3349
|
"utf-8"
|
|
3531
3350
|
);
|
|
@@ -3573,7 +3392,7 @@ ${err.stack}` : normalizeErrorMessage(err);
|
|
|
3573
3392
|
await runAnimationCapture();
|
|
3574
3393
|
const runScreenshotCapture = async () => {
|
|
3575
3394
|
progress("screenshots", "Capturing scroll screenshots...");
|
|
3576
|
-
const { captureScrollScreenshots } = await import("./screenshotCapture-
|
|
3395
|
+
const { captureScrollScreenshots } = await import("./screenshotCapture-HXTGIPHY.js");
|
|
3577
3396
|
if (!canWrite()) {
|
|
3578
3397
|
screenshotOutcome = {
|
|
3579
3398
|
kind: "failed",
|
|
@@ -3619,7 +3438,7 @@ ${err.stack}` : normalizeErrorMessage(err);
|
|
|
3619
3438
|
});
|
|
3620
3439
|
progress("design", "Cataloging assets...");
|
|
3621
3440
|
try {
|
|
3622
|
-
const { catalogAssets } = await import("./assetCataloger-
|
|
3441
|
+
const { catalogAssets } = await import("./assetCataloger-MUOL6FRF.js");
|
|
3623
3442
|
catalogedAssets = await catalogAssets(page1);
|
|
3624
3443
|
progress("design", `${catalogedAssets.length} assets cataloged`);
|
|
3625
3444
|
if (catalogedAssets.length === 0) {
|
|
@@ -3691,11 +3510,11 @@ ${err.stack}` : normalizeErrorMessage(err);
|
|
|
3691
3510
|
|
|
3692
3511
|
// src/capture/postExtractionPhase.ts
|
|
3693
3512
|
import { existsSync as existsSync4 } from "fs";
|
|
3694
|
-
import { join as
|
|
3513
|
+
import { join as join9 } from "path";
|
|
3695
3514
|
|
|
3696
3515
|
// src/capture/fontMetadataExtractor.ts
|
|
3697
3516
|
import { readdirSync as readdirSync3, readFileSync as readFileSync4, existsSync as existsSync3 } from "fs";
|
|
3698
|
-
import { join as
|
|
3517
|
+
import { join as join8 } from "path";
|
|
3699
3518
|
import * as fontkit from "fontkit";
|
|
3700
3519
|
function isFontCollection(value) {
|
|
3701
3520
|
return value.type === "TTC" || value.type === "DFont";
|
|
@@ -3706,7 +3525,7 @@ function extractFontMetadata(fontsDir, outputPath) {
|
|
|
3706
3525
|
if (existsSync3(fontsDir)) {
|
|
3707
3526
|
const fontFiles = readdirSync3(fontsDir).filter((f) => /\.(woff2?|ttf|otf)$/i.test(f));
|
|
3708
3527
|
for (const filename of fontFiles) {
|
|
3709
|
-
const fullPath =
|
|
3528
|
+
const fullPath = join8(fontsDir, filename);
|
|
3710
3529
|
const meta = readSingleFont(fullPath, filename);
|
|
3711
3530
|
if (meta.identified) {
|
|
3712
3531
|
files.push(meta);
|
|
@@ -3880,7 +3699,7 @@ function hasVisionCredentials(skipVision) {
|
|
|
3880
3699
|
}
|
|
3881
3700
|
function writeAssetDescriptionsFile(outputDir, lines, header) {
|
|
3882
3701
|
writeCaptureFileSync(
|
|
3883
|
-
|
|
3702
|
+
join9(outputDir, "extracted", "asset-descriptions.md"),
|
|
3884
3703
|
header + lines.map((line) => `- ${line}`).join("\n") + "\n",
|
|
3885
3704
|
"utf-8"
|
|
3886
3705
|
);
|
|
@@ -3923,8 +3742,8 @@ async function runPostExtraction(input) {
|
|
|
3923
3742
|
);
|
|
3924
3743
|
try {
|
|
3925
3744
|
const fontsManifest = extractFontMetadata(
|
|
3926
|
-
|
|
3927
|
-
|
|
3745
|
+
join9(outputDir, "assets", "fonts"),
|
|
3746
|
+
join9(outputDir, "extracted", "fonts-manifest.json")
|
|
3928
3747
|
);
|
|
3929
3748
|
if (fontsManifest.families.length > 0) {
|
|
3930
3749
|
const summary = fontsManifest.families.map((f) => `${f.family}${f.variable ? " (variable)" : ""} \xD7 ${f.fileCount}`).join(", ");
|
|
@@ -3955,7 +3774,7 @@ async function runPostExtraction(input) {
|
|
|
3955
3774
|
};
|
|
3956
3775
|
if (canWrite()) {
|
|
3957
3776
|
writeCaptureFileSync(
|
|
3958
|
-
|
|
3777
|
+
join9(outputDir, "extracted", "animations.json"),
|
|
3959
3778
|
JSON.stringify(leanCatalog, null, 2),
|
|
3960
3779
|
"utf-8"
|
|
3961
3780
|
);
|
|
@@ -3978,7 +3797,7 @@ async function runPostExtraction(input) {
|
|
|
3978
3797
|
state.assets = assets;
|
|
3979
3798
|
if (canWrite()) {
|
|
3980
3799
|
writeCaptureFileSync(
|
|
3981
|
-
|
|
3800
|
+
join9(outputDir, "extracted", "icons-manifest.json"),
|
|
3982
3801
|
JSON.stringify(assetPass.icons, null, 2),
|
|
3983
3802
|
"utf-8"
|
|
3984
3803
|
);
|
|
@@ -4030,7 +3849,7 @@ async function runPostExtraction(input) {
|
|
|
4030
3849
|
if (assets.length && Array.isArray(tokens.sections)) {
|
|
4031
3850
|
if (canWrite()) {
|
|
4032
3851
|
writeCaptureFileSync(
|
|
4033
|
-
|
|
3852
|
+
join9(outputDir, "extracted", "tokens.json"),
|
|
4034
3853
|
serializeTokensForCapture(tokens),
|
|
4035
3854
|
"utf-8"
|
|
4036
3855
|
);
|
|
@@ -4053,14 +3872,14 @@ ${extracted.bodyHtml}
|
|
|
4053
3872
|
`;
|
|
4054
3873
|
state.pageHtml = pageHtml;
|
|
4055
3874
|
if (canWrite())
|
|
4056
|
-
writeCaptureFileSync(
|
|
3875
|
+
writeCaptureFileSync(join9(outputDir, "extracted", "page.html"), pageHtml, "utf-8");
|
|
4057
3876
|
} catch (err) {
|
|
4058
3877
|
warnings.push(`page.html write failed: ${err}`);
|
|
4059
3878
|
}
|
|
4060
3879
|
if (visibleTextContent) {
|
|
4061
3880
|
if (canWrite()) {
|
|
4062
3881
|
writeCaptureFileSync(
|
|
4063
|
-
|
|
3882
|
+
join9(outputDir, "extracted", "visible-text.txt"),
|
|
4064
3883
|
visibleTextContent,
|
|
4065
3884
|
"utf-8"
|
|
4066
3885
|
);
|
|
@@ -4118,12 +3937,12 @@ ${extracted.bodyHtml}
|
|
|
4118
3937
|
if (remainingMs() > 0 && canWrite()) {
|
|
4119
3938
|
phase("contact-sheets", "started");
|
|
4120
3939
|
try {
|
|
4121
|
-
const { createScrollContactSheet, createAssetContactSheet, createSvgContactSheet } = await import("./contactSheet-
|
|
3940
|
+
const { createScrollContactSheet, createAssetContactSheet, createSvgContactSheet } = await import("./contactSheet-O3FOOHOX.js");
|
|
4122
3941
|
const contactSheetBudget = { remainingMs };
|
|
4123
3942
|
const runScrollContactSheet = async () => {
|
|
4124
3943
|
const scrollSheets = await createScrollContactSheet(
|
|
4125
|
-
|
|
4126
|
-
|
|
3944
|
+
join9(outputDir, "screenshots"),
|
|
3945
|
+
join9(outputDir, "screenshots", "contact-sheet.jpg"),
|
|
4127
3946
|
contactSheetBudget
|
|
4128
3947
|
);
|
|
4129
3948
|
if (scrollSheets.length > 0)
|
|
@@ -4134,11 +3953,11 @@ ${extracted.bodyHtml}
|
|
|
4134
3953
|
};
|
|
4135
3954
|
await runScrollContactSheet();
|
|
4136
3955
|
const runAssetContactSheet = async () => {
|
|
4137
|
-
const assetsImgDir =
|
|
3956
|
+
const assetsImgDir = join9(outputDir, "assets");
|
|
4138
3957
|
if (existsSync4(assetsImgDir)) {
|
|
4139
3958
|
const assetSheets = await createAssetContactSheet(
|
|
4140
3959
|
assetsImgDir,
|
|
4141
|
-
|
|
3960
|
+
join9(outputDir, "assets", "contact-sheet.jpg"),
|
|
4142
3961
|
contactSheetBudget
|
|
4143
3962
|
);
|
|
4144
3963
|
if (assetSheets.length > 0)
|
|
@@ -4150,11 +3969,11 @@ ${extracted.bodyHtml}
|
|
|
4150
3969
|
};
|
|
4151
3970
|
await runAssetContactSheet();
|
|
4152
3971
|
const runSvgContactSheet = async () => {
|
|
4153
|
-
const svgsDir =
|
|
4154
|
-
const assetsRootDir =
|
|
3972
|
+
const svgsDir = join9(outputDir, "assets", "svgs");
|
|
3973
|
+
const assetsRootDir = join9(outputDir, "assets");
|
|
4155
3974
|
const hasSvgsDir = existsSync4(svgsDir);
|
|
4156
3975
|
if (hasSvgsDir) ensureCaptureDirSync(outputDir, svgsDir);
|
|
4157
|
-
const svgOutputPath = hasSvgsDir ?
|
|
3976
|
+
const svgOutputPath = hasSvgsDir ? join9(outputDir, "assets", "svgs", "contact-sheet.jpg") : join9(outputDir, "assets", "contact-sheet-svgs.jpg");
|
|
4158
3977
|
const svgSheets = await createSvgContactSheet(
|
|
4159
3978
|
svgsDir,
|
|
4160
3979
|
svgOutputPath,
|
|
@@ -4240,9 +4059,9 @@ async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, s
|
|
|
4240
4059
|
};
|
|
4241
4060
|
phase("browser", "started");
|
|
4242
4061
|
loadEnvFile(outputDir);
|
|
4243
|
-
ensureCaptureDirSync(outputDir,
|
|
4244
|
-
ensureCaptureDirSync(outputDir,
|
|
4245
|
-
ensureCaptureDirSync(outputDir,
|
|
4062
|
+
ensureCaptureDirSync(outputDir, join10(outputDir, "extracted"));
|
|
4063
|
+
ensureCaptureDirSync(outputDir, join10(outputDir, "screenshots"));
|
|
4064
|
+
ensureCaptureDirSync(outputDir, join10(outputDir, "assets"));
|
|
4246
4065
|
progress("browser", "Launching headless Chrome...");
|
|
4247
4066
|
const { ensureBrowser } = await import("./manager-25RJ4IZN.js");
|
|
4248
4067
|
const browser = await ensureBrowser();
|
|
@@ -4420,7 +4239,7 @@ async function captureWebsiteAttempt(opts, onProgress, disableWebgl, watchdog, s
|
|
|
4420
4239
|
animationCatalog,
|
|
4421
4240
|
screenshots.length > 0,
|
|
4422
4241
|
discoveredLotties.length > 0,
|
|
4423
|
-
existsSync5(
|
|
4242
|
+
existsSync5(join10(outputDir, "extracted", "shaders.json")),
|
|
4424
4243
|
catalogedAssets,
|
|
4425
4244
|
progress,
|
|
4426
4245
|
warnings,
|