hyperframes 0.9.28-alpha.1 → 0.9.29
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/README.md +5 -2
- package/dist/{add-YDZMFKR3.js → add-BRXFSBYO.js} +14 -14
- package/dist/{agentPromptGenerator-AUXZZCIG.js → agentPromptGenerator-NJL6ZJQA.js} +7 -7
- package/dist/{animatedGifPrep-2DYVIBA4.js → animatedGifPrep-AVZAMI2D.js} +7 -7
- package/dist/api.js +38 -39
- package/dist/{asset-JHM3VF72.js → asset-FEAC2U74.js} +2 -2
- package/dist/{assetCataloger-2OB46SVM.js → assetCataloger-WGNEAI5A.js} +8 -8
- package/dist/{audio-T6YSLT2D.js → audio-PBKCPYW2.js} +24 -25
- package/dist/{auth-YSTRUKED.js → auth-IPHKPGNV.js} +4 -4
- package/dist/{autoUpdate-VYRYBZG6.js → autoUpdate-4HUTYRYX.js} +3 -3
- package/dist/{avatars-UU53IDAK.js → avatars-U2XLC3OS.js} +15 -16
- package/dist/{backgroundChecks-FNACAOZD.js → backgroundChecks-4Q4R56DT.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-KWIPFU5Q.js → batchRender-AL6DO5IA.js} +4 -4
- package/dist/{beats-X2LCSMYD.js → beats-VS4P6KKZ.js} +11 -11
- package/dist/{benchmark-4OB6M2FR.js → benchmark-MGDPACXB.js} +11 -11
- package/dist/{billing-DC6ODLSG.js → billing-JLASHFQM.js} +15 -16
- package/dist/{browser-PUJD4WCC.js → browser-FU4TZSMT.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-7HQEKW2H.js → bundleWithLocalizedFonts-B2XFORNZ.js} +1 -1
- package/dist/{capture-IGQR6HTG.js → capture-CFESIHJR.js} +22 -22
- package/dist/{capture-PUB5WBLQ.js → capture-LL7WE2S7.js} +3 -3
- package/dist/{captureCompositionFrame-JT6HGVU7.js → captureCompositionFrame-DABFEOQO.js} +14 -14
- package/dist/{catalog-5NC5EV6Z.js → catalog-U6CHLXTI.js} +14 -14
- package/dist/{catch-up-6RJNWB5I.js → catch-up-DMREF334.js} +9 -9
- package/dist/{check-FXZOPV3Y.js → check-ILJC6WYD.js} +45 -44
- package/dist/{checkAudio-VSHZXO4J.js → checkAudio-MWSP2436.js} +15 -15
- package/dist/{checkBrowser-EOSAXIHJ.js → checkBrowser-HC3LYH6H.js} +38 -38
- package/dist/{chunk-W3XARNFW.js → chunk-2YZ6GA4E.js} +1 -1
- package/dist/{chunk-XGRXNWDK.js → chunk-3JFV42QB.js} +3 -3
- package/dist/{chunk-4J2J57RS.js → chunk-42MHKDVP.js} +3 -3
- package/dist/{chunk-UYVQDKGC.js → chunk-47JZ2UQC.js} +1 -1
- package/dist/{chunk-QTDTCTGB.js → chunk-4N3UVDIJ.js} +4 -6
- package/dist/{chunk-R6PUBUA4.js → chunk-4TCEF2I7.js} +1 -1
- package/dist/{chunk-C6S2NYQ4.js → chunk-4TPTB6PY.js} +4 -4
- package/dist/{chunk-6UJOLK4G.js → chunk-5QGDLMU3.js} +2 -2
- package/dist/{chunk-QB2USW3R.js → chunk-5RLMHG3E.js} +1 -1
- package/dist/{chunk-ME6L6GUF.js → chunk-6FHIR4KD.js} +1 -1
- package/dist/{chunk-2Q3Y7CI3.js → chunk-6JAB5BHX.js} +7 -7
- package/dist/{chunk-BP75ZLZ5.js → chunk-6LCIO2YY.js} +2 -2
- package/dist/chunk-72LMHSPL.js +29 -0
- package/dist/{chunk-FF25S7ZC.js → chunk-74PW4UVC.js} +1 -1
- package/dist/{chunk-44LVKFXU.js → chunk-76MHB2H6.js} +1 -1
- package/dist/{chunk-GTZVTATR.js → chunk-77B6C7CU.js} +2 -2
- package/dist/{chunk-XHP3V4WH.js → chunk-7GJKUOPX.js} +31 -20
- package/dist/{chunk-3BWFZFJK.js → chunk-7TION72L.js} +18 -18
- package/dist/{chunk-HPR2BPFS.js → chunk-AOPNJEQC.js} +2 -2
- package/dist/{chunk-MEVLYDL2.js → chunk-BJYCLZBQ.js} +1 -1
- package/dist/{chunk-TYPFNWE6.js → chunk-BX2BIU6Z.js} +1 -1
- package/dist/{chunk-SXGLW3OW.js → chunk-BYJEUZNT.js} +3 -3
- package/dist/{chunk-W4DMQZL5.js → chunk-BZULWFMJ.js} +11 -2
- package/dist/{chunk-YSIDK3VE.js → chunk-C25RSEQN.js} +12 -12
- package/dist/{chunk-CHCMXYER.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-VSQ5NWCF.js → chunk-DJVSNDF3.js} +3 -3
- package/dist/{chunk-N5TVFPYQ.js → chunk-DYKBB5HB.js} +1 -1
- package/dist/{chunk-IADGTP5X.js → chunk-EIVSIGS2.js} +3 -3
- package/dist/{chunk-3T6BFAKZ.js → chunk-F24B2PLD.js} +1 -1
- package/dist/{chunk-XLX7TDCI.js → chunk-FJPHKCWU.js} +17 -17
- package/dist/{chunk-CE765XG3.js → chunk-FNC3JNO7.js} +1 -1
- package/dist/{chunk-BF6RWOUF.js → chunk-FXPDWYD7.js} +100 -50
- package/dist/{chunk-SCPMSSQW.js → chunk-GGDJLN5I.js} +0 -20
- package/dist/{chunk-GNG7XNUY.js → chunk-GISQ7VOP.js} +15 -15
- package/dist/{chunk-VYEPG2N6.js → chunk-GQNV4DG6.js} +1 -1
- package/dist/{chunk-4XGKXBYH.js → chunk-GTUTZIRR.js} +22 -4
- package/dist/{chunk-63PVDQ6R.js → chunk-H5BHEZ4B.js} +2 -2
- package/dist/{chunk-OPGYOHU6.js → chunk-HCC7XLD7.js} +2 -2
- package/dist/{chunk-5YDJTVOQ.js → chunk-HLRYLZFX.js} +2 -2
- package/dist/{chunk-AAENGP3S.js → chunk-IOPIOX5K.js} +66 -16
- package/dist/{chunk-WYA575QX.js → chunk-IQKMIYLG.js} +5 -7
- package/dist/{chunk-XFE4R6I4.js → chunk-ITWIFUDS.js} +1 -1
- package/dist/{chunk-HW325JBH.js → chunk-IX3K55NA.js} +4 -4
- package/dist/{chunk-3OKVZXTH.js → chunk-IXMO4RXK.js} +2 -2
- package/dist/{chunk-WIJGRX5X.js → chunk-IYYZMZD2.js} +1 -1
- package/dist/{chunk-NVNKKVDH.js → chunk-J7PDBGQM.js} +2 -2
- package/dist/{chunk-4OZVFZCO.js → chunk-JLUOG6S2.js} +1 -1
- package/dist/{chunk-QKAXPYTV.js → chunk-JVAD6LD7.js} +38 -21
- package/dist/{chunk-6ODX6SHY.js → chunk-L2GOO2UY.js} +2 -2
- package/dist/{chunk-OJ5HAKL6.js → chunk-L6OXEDJQ.js} +7 -7
- package/dist/{chunk-CG65CRMP.js → chunk-LDTJCZZ2.js} +2 -2
- package/dist/{chunk-AHRX3FHF.js → chunk-LMCFILEY.js} +3 -3
- package/dist/{chunk-FID757D3.js → chunk-LP7B3JLC.js} +0 -1
- package/dist/{chunk-WXEXQLVV.js → chunk-M457GQGR.js} +344 -216
- package/dist/{chunk-TLVXCOMV.js → chunk-MKZ34726.js} +2 -2
- package/dist/{chunk-O2JZ6C3S.js → chunk-MTJ46TG7.js} +7 -7
- package/dist/{chunk-7U2B7OF6.js → chunk-MVJ7AX6W.js} +1 -1
- package/dist/{chunk-3MYEF34S.js → chunk-NFUXYBOR.js} +1 -1
- package/dist/{chunk-RERVXE6J.js → chunk-NHJ5YUBZ.js} +2 -2
- package/dist/{chunk-YFDCU6X5.js → chunk-NSQLSL42.js} +6 -6
- package/dist/{chunk-KJ5QBEMN.js → chunk-NURN5W6M.js} +6 -8
- package/dist/{chunk-WCPH2JRB.js → chunk-NXFUEPWT.js} +35 -21
- package/dist/{chunk-ALCP5OEW.js → chunk-NZUUKNNZ.js} +1 -1
- package/dist/{chunk-IMSLXLUI.js → chunk-OSDNRYQJ.js} +1 -1
- package/dist/{chunk-36G3XDN6.js → chunk-OY4YSQBK.js} +2 -2
- package/dist/{chunk-XOON4QRF.js → chunk-PGZSYDLZ.js} +1 -1
- package/dist/{chunk-5ROYFGQT.js → chunk-PVRJKEU5.js} +1 -1
- package/dist/{chunk-STTUDVAI.js → chunk-Q7FX7HOX.js} +1 -1
- package/dist/{chunk-KCRVZA7B.js → chunk-QBRBXVCE.js} +1 -1
- package/dist/{chunk-NHRLZESZ.js → chunk-RYFVUPXH.js} +1 -1
- package/dist/{chunk-Q6TVZY36.js → chunk-RYT22J4V.js} +2 -2
- package/dist/{chunk-J5CDV66Q.js → chunk-RZK5ZGVX.js} +4 -4
- package/dist/{chunk-MPC3L6A3.js → chunk-S3S3IHCR.js} +1 -1
- package/dist/chunk-SBYFFP7R.js +413 -0
- package/dist/{chunk-WOSVLHQH.js → chunk-SCNC7YPB.js} +1 -1
- package/dist/{chunk-7GZ4E5ID.js → chunk-SCUKEERJ.js} +4 -4
- package/dist/{chunk-WFO2PDZD.js → chunk-SS7OEJGR.js} +35 -18
- package/dist/{chunk-TF7VWCJM.js → chunk-TCQKCUDA.js} +1 -1
- package/dist/{chunk-JX4BEVC3.js → chunk-TIWO5QKS.js} +66 -52
- package/dist/{chunk-6RHKGQRA.js → chunk-TM5H5ZY3.js} +2 -2
- package/dist/{chunk-AJVYQVDB.js → chunk-U5RXCKWJ.js} +1 -1
- package/dist/{chunk-GVBAVADJ.js → chunk-UCCD6SY7.js} +1 -1
- package/dist/{chunk-LSSUDIEM.js → chunk-UKAZEO7A.js} +5 -5
- package/dist/{chunk-MWBRY5HN.js → chunk-USOP5XTT.js} +3 -3
- package/dist/{chunk-7XHVHBFV.js → chunk-V4Z37HFN.js} +3 -3
- package/dist/{chunk-2BSPL7YE.js → chunk-V4ZFL2E2.js} +3 -3
- package/dist/{chunk-7D4PARGG.js → chunk-VWEELCAJ.js} +6 -6
- package/dist/{chunk-YJBGA3W6.js → chunk-VXWASGGT.js} +2 -2
- package/dist/{chunk-JHSHEJU7.js → chunk-XGGEOBH2.js} +2 -2
- package/dist/{chunk-FZUIGBYD.js → chunk-XKSHWUIF.js} +3 -3
- package/dist/{chunk-ZMQYQHZU.js → chunk-XVDXYUQJ.js} +1 -1
- package/dist/{chunk-4TU5M4WX.js → chunk-YXNRWPF5.js} +31 -29
- package/dist/{chunk-DFKD43CD.js → chunk-ZCRATF6D.js} +3 -3
- package/dist/{chunk-COAB2OXQ.js → chunk-ZGQZTSP2.js} +1 -1
- package/dist/{chunk-PSGS27VB.js → chunk-ZQXK4L4G.js} +2 -2
- package/dist/{chunk-3Q7LAXFJ.js → chunk-ZUXES5HA.js} +2 -2
- package/dist/{chunk-L666J5OJ.js → chunk-ZY3N64NC.js} +2 -2
- package/dist/{clean-5WXYKIWX.js → clean-YU7AM7DC.js} +23 -23
- package/dist/cli.js +67 -69
- package/dist/{cloud-TEJ6UVBU.js → cloud-QJMPTQ3N.js} +5 -6
- package/dist/{cloud-X2ZPQOFN.js → cloud-U7RRT2TA.js} +4 -4
- package/dist/{cloudrun-A7DU7DQE.js → cloudrun-T7VVPRDG.js} +7 -7
- package/dist/{compare-URG6E3VF.js → compare-USGR7PZL.js} +36 -36
- package/dist/{compiler-J43BE6LC.js → compiler-ZSIKBZBR.js} +4 -4
- package/dist/{component-BE2ZLBPY.js → component-RIFXLYK3.js} +3 -3
- package/dist/{compositions-DJPSPCYI.js → compositions-QHRNVZ2K.js} +13 -13
- package/dist/{curve-I6CGCMG5.js → curve-BX46Q4OW.js} +12 -12
- package/dist/{cuts-TRTRMTCZ.js → cuts-JRLHBLOX.js} +13 -13
- package/dist/{delete-UMO7XCW3.js → delete-SE7ABVTH.js} +8 -9
- package/dist/{deploy-T2CETGFF.js → deploy-AQUEV6ND.js} +6 -6
- package/dist/{describeProject-AJ2SFRCN.js → describeProject-XBT7PHZD.js} +8 -8
- package/dist/{deterministicFonts-UZIF5XZW.js → deterministicFonts-SKRN3TCP.js} +2 -2
- package/dist/{diff-KCVI66ZW.js → diff-6TZLA6KU.js} +39 -40
- package/dist/{dist-AUYCAQMA.js → dist-ALNMJZ7K.js} +15 -15
- package/dist/{dist-4JHP47NU.js → dist-EFXKPJJT.js} +2 -2
- package/dist/{dist-F3Y2XHZL.js → dist-QRXJMFI7.js} +3 -3
- package/dist/{doctor-UTIGHYSY.js → doctor-DDKKCJMO.js} +12 -12
- package/dist/{energy-PJUDIY2I.js → energy-HC7BNZ5E.js} +13 -13
- package/dist/{events-ZMFIRGW4.js → events-EETQNKK2.js} +15 -15
- package/dist/{events-HI2WDYGV.js → events-KNH677YB.js} +4 -4
- package/dist/{events-P6Q6GB6K.js → events-ZRVQOB4Y.js} +8 -8
- package/dist/{extract-4RYOD7LZ.js → extract-I3J3ZK55.js} +16 -16
- package/dist/{face-X3DR3L7V.js → face-HJUZ2OXQ.js} +14 -14
- package/dist/{feedback-WOE25OSG.js → feedback-M6I5AVZ5.js} +14 -15
- package/dist/{ffmpeg-N3LZ7XBX.js → ffmpeg-OAKTUK5S.js} +7 -7
- package/dist/{figma-VPG54R3O.js → figma-RFAPGGBF.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-VNQ5P43E.js → frames-FOAWRBW4.js} +14 -14
- package/dist/{generate-ZCTFKNNW.js → generate-FLG6B7RX.js} +26 -27
- package/dist/{get-K374EYQS.js → get-I5JCIGPW.js} +8 -9
- package/dist/{gpuPolicy-SAEOR4QY.js → gpuPolicy-SLVPAQK2.js} +7 -7
- package/dist/{grade-compare-UHNGFSNR.js → grade-compare-R3UOE4WI.js} +38 -38
- package/dist/{gsapParserAcorn-5YD4N6HQ.js → gsapParserAcorn-SKGP4R4N.js} +1 -1
- package/dist/{heifImagePrep-R7NDS5FP.js → heifImagePrep-BOIWW7FW.js} +8 -8
- package/dist/{help-6DADTB2R.js → help-NVQZEN6A.js} +1 -1
- package/dist/{history-2K4FPC4P.js → history-AGNMVDRQ.js} +12 -12
- package/dist/hyperframes-player.global.js +2 -2
- package/dist/{info-7NZB6ZUO.js → info-EXAJSKZP.js} +15 -15
- package/dist/{init-UVGSTDBD.js → init-Z7FZ7U5J.js} +29 -29
- package/dist/{ink-3GBOCKAV.js → ink-QYCQXNUY.js} +13 -13
- package/dist/{inspect-XWAQWM2Y.js → inspect-ZJNHBIJI.js} +35 -35
- package/dist/{installer-AJESSC5Y.js → installer-VPGNKCEU.js} +5 -5
- package/dist/{keyframes-7C6LAP5V.js → keyframes-QYRES5IL.js} +15 -12
- package/dist/{lambda-Y2BEBCDQ.js → lambda-3I4IV63E.js} +13 -13
- package/dist/{layout-Z35EOSYQ.js → layout-J33Y6DD7.js} +35 -35
- package/dist/{lint-QU5JDQX3.js → lint-JT74BZWJ.js} +12 -12
- package/dist/{lintProject-Z6TG3Z34.js → lintProject-5CBL7VFV.js} +2 -2
- package/dist/{list-6KUDG4X7.js → list-NOWT754O.js} +10 -11
- package/dist/{localPage-SM5JBV4M.js → localPage-66UVNGQR.js} +7 -7
- package/dist/{login-XCR35XUC.js → login-3JR3HXS6.js} +7 -8
- package/dist/{logout-AHGR3X5U.js → logout-FJ444652.js} +4 -6
- package/dist/{look-O452Y7XO.js → look-NKCQENM7.js} +13 -13
- package/dist/{manager-GCFCVNYS.js → manager-ML4OLLSM.js} +8 -8
- package/dist/{measure-D54QYN6X.js → measure-VSZBVJJZ.js} +11 -11
- package/dist/{media-treatment-LPL2SZ7W.js → media-treatment-733EANTU.js} +15 -15
- package/dist/{media-use-VL2EL53W.js → media-use-IUN5ATZQ.js} +7 -9
- package/dist/{models-YFFUQ757.js → models-A6FBCVFA.js} +11 -11
- package/dist/{motionShot-QHWXLUJM.js → motionShot-PVWZLEMB.js} +19 -19
- package/dist/{normalize-audio-72PTXCD7.js → normalize-audio-XD4QE5NE.js} +11 -11
- package/dist/{open-BLPP4OPX.js → open-TWEEOMZA.js} +14 -14
- package/dist/{parakeetRunner-3A66RNGS.js → parakeetRunner-GP47AAVT.js} +13 -13
- package/dist/{pipeline-BFMEIMNZ.js → pipeline-5HUQFOCY.js} +10 -10
- package/dist/{play-KG2B7KMX.js → play-ZOZRB5OG.js} +26 -26
- package/dist/{preflight-YNGNNHZC.js → preflight-NTJMXUS2.js} +8 -8
- package/dist/{present-WGQEDRXJ.js → present-IMQS3KJ7.js} +22 -22
- package/dist/{preview-JM6GYVIL.js → preview-JSK5IKSR.js} +23 -23
- package/dist/{probe-B5H6PBIG.js → probe-ZLRD2TRZ.js} +13 -13
- package/dist/{producer-QIHOQ53I.js → producer-ZZROH3WZ.js} +1 -1
- package/dist/{projectConfig-GJL2ZGOU.js → projectConfig-UHYPGWD5.js} +7 -7
- package/dist/{publication-BLLVTVD6.js → publication-5KOANEHK.js} +3 -3
- package/dist/{publish-CYPJA7T7.js → publish-C3ARXH6D.js} +23 -83
- package/dist/{refresh-TB4TNH7R.js → refresh-YY4K2RWR.js} +3 -4
- package/dist/{remove-background-MHKW4EBR.js → remove-background-VDTWA7BL.js} +11 -11
- package/dist/{render-F35USXZA.js → render-P27DEH4H.js} +44 -45
- package/dist/{render-RUEXLOWE.js → render-TSV3XTQV.js} +6 -6
- package/dist/{render-RTPE3OBI.js → render-UF5XKGO5.js} +939 -317
- package/dist/{render-batch-QFGQD5FM.js → render-batch-ISMXAG7F.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-HQIDF3TF.js → resolver-ZWNLOG6O.js} +5 -5
- package/dist/{reverse-BEQHRYSZ.js → reverse-J4CLVRPY.js} +1 -1
- package/dist/{run-EVZGKUEX.js → run-UPKPPRV7.js} +4 -5
- package/dist/{screenshotCapture-4NDEWYCU.js → screenshotCapture-ZZE3GMOF.js} +8 -8
- package/dist/{sherpa-MNU3ORFR.js → sherpa-7ISRANWA.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +0 -20
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/{skills-3R6EC5PV.js → skills-AAETAWZH.js} +11 -11
- package/dist/{skillsUpdateCheck-TRRXLL46.js → skillsUpdateCheck-KCP2EYKX.js} +4 -4
- package/dist/{snapshot-BYNK523M.js → snapshot-5PMHOVPR.js} +51 -49
- package/dist/{src-EZMBCQBY.js → src-CHPZUZZ3.js} +12 -12
- package/dist/{src-FZ4EJHOK.js → src-NIMSUB4P.js} +6 -6
- package/dist/{start-FRPRXMEN.js → start-6D25MEIJ.js} +24 -25
- package/dist/{staticProjectServer-FF6IBUD6.js → staticProjectServer-LM3YLJ6K.js} +20 -20
- package/dist/{status-QZ7PKGAJ.js → status-22TRM6DI.js} +18 -20
- package/dist/studio/assets/{codec-DqodFzhT.js → codec-D84nARi6.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D03oERxc.js → hyperframes-player-C2-hh0bR.js} +2 -2
- package/dist/studio/assets/{index-9kcxLnm3.js → index-B0rj7KmJ.js} +1 -1
- package/dist/studio/assets/{index-DuOvEv27.js → index-D3lR9-ik.js} +184 -184
- package/dist/studio/assets/{index-Cq2w6U13.css → index-dsfjBidg.css} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-pYFINB0c.js → pausedVideoDecoder-D8vnt-Wd.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-RBURPKYX.js → studio-api-LSWAJEK4.js} +15 -15
- package/dist/{studioServer-YZDNK3AO.js → studioServer-MC57HJAV.js} +84 -435
- package/dist/{sync-6MHJVU4M.js → sync-SEN3M7GA.js} +13 -13
- package/dist/{telemetry-CLB2O4ZK.js → telemetry-NP2FXZQL.js} +8 -8
- package/dist/{templates-HFQXIAO2.js → templates-QN7ZUHHZ.js} +18 -19
- package/dist/{timeline-ORRCS7NO.js → timeline-V43AACFE.js} +22 -22
- package/dist/{tokens-OTBA5VQ3.js → tokens-NOFZVX4P.js} +2 -2
- package/dist/{transcribe-EMXH7CGF.js → transcribe-FGVGCTEU.js} +10 -10
- package/dist/{transcribe-PJIFWND6.js → transcribe-IVZ4OASF.js} +28 -29
- package/dist/{tts-NANTORLP.js → tts-HOZ6X3MD.js} +1 -1
- package/dist/{update-RT6R53XR.js → update-LML5YVLT.js} +12 -12
- package/dist/{updateCheck-LSLLTUFX.js → updateCheck-FFHCGLRU.js} +3 -3
- package/dist/{upgrade-SSPKJYOW.js → upgrade-UWT2FB5Y.js} +4 -4
- package/dist/{urlDownloader-FTYUJP2D.js → urlDownloader-4RWM3UH2.js} +6 -6
- package/dist/{validate-SN2JDYNN.js → validate-ZNK2THUV.js} +29 -29
- package/dist/{video-Z522PCEM.js → video-QXVXG7PW.js} +8 -8
- package/dist/{voices-AQWUK6GK.js → voices-JI7QOSLT.js} +23 -24
- package/dist/warmCheck.js +45 -44
- package/package.json +1 -2
- package/dist/chunk-37RCPDCR.js +0 -173
- package/dist/chunk-4UBGQTAT.js +0 -387
- package/dist/chunk-DGXKMYIX.js +0 -343
- package/dist/chunk-JE2YBPC5.js +0 -152
- package/dist/chunk-OUOZGJJF.js +0 -538
- package/dist/chunk-Q5JJDC2L.js +0 -51
- package/dist/chunk-QABQKJPY.js +0 -3761
- package/dist/contract/LICENSE-Unicode.txt +0 -39
- package/dist/contract/path-policy.json +0 -311
- package/dist/contract/unicode-15.1.0.json +0 -6179
- package/dist/execute-AUPUAYPW.js +0 -109
- package/dist/oauth-KUPQUH6E.js +0 -40
- package/dist/plan-2MKSJEUW.js +0 -88
- package/dist/service-XCT7W4PQ.js +0 -68
- package/dist/share-KRKP6VYV.js +0 -241
- package/dist/{destroy-IWHFUGJL.js → destroy-YAMTVR2W.js} +4 -4
- package/dist/{synthesize-NJKCIPKW.js → synthesize-MDW4ZWTN.js} +5 -5
|
@@ -5,54 +5,43 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
ReviewFailed,
|
|
12
|
-
fileSha256Base64,
|
|
13
|
-
latestShareRender,
|
|
14
|
-
shareContentFingerprint,
|
|
15
|
-
shareSite,
|
|
16
|
-
trackShareInteraction,
|
|
17
|
-
versionOnPage
|
|
18
|
-
} from "./chunk-QABQKJPY.js";
|
|
19
|
-
import {
|
|
8
|
+
acquireRenderLock,
|
|
9
|
+
describeRenderLockHolder,
|
|
20
10
|
renderJobObservabilityTelemetryPayload,
|
|
21
11
|
renderObservabilityTelemetryPayload,
|
|
22
12
|
startRenderCpuSampler
|
|
23
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SBYFFP7R.js";
|
|
24
14
|
import {
|
|
25
15
|
HANDOFF_READY,
|
|
26
16
|
desktopDownloadUrl,
|
|
27
17
|
desktopInstalled,
|
|
28
18
|
insideHostApp,
|
|
29
19
|
openInDesktop
|
|
30
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VXWASGGT.js";
|
|
31
21
|
import {
|
|
32
22
|
resolveRenderBrowser
|
|
33
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DYKBB5HB.js";
|
|
34
24
|
import "./chunk-54FVSPRH.js";
|
|
35
|
-
import "./chunk-JE2YBPC5.js";
|
|
36
25
|
import {
|
|
37
26
|
loadSharpInBackground
|
|
38
27
|
} from "./chunk-NL4RCLQF.js";
|
|
39
|
-
import "./chunk-WXEXQLVV.js";
|
|
40
28
|
import "./chunk-6BEFEWFB.js";
|
|
41
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-Q7FX7HOX.js";
|
|
42
30
|
import "./chunk-X7MTZ4T2.js";
|
|
31
|
+
import "./chunk-GGDJLN5I.js";
|
|
43
32
|
import {
|
|
44
33
|
seekCompositionTimeline
|
|
45
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GISQ7VOP.js";
|
|
46
35
|
import {
|
|
47
36
|
GSAP_VENDOR_FILES,
|
|
48
37
|
readBundleFile,
|
|
49
38
|
resolveGsapVendorDir
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-YGGZ23BB.js";
|
|
52
|
-
import "./chunk-MEVLYDL2.js";
|
|
39
|
+
} from "./chunk-OSDNRYQJ.js";
|
|
53
40
|
import "./chunk-262C25DQ.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-42MHKDVP.js";
|
|
42
|
+
import "./chunk-U5RXCKWJ.js";
|
|
43
|
+
import "./chunk-YGGZ23BB.js";
|
|
44
|
+
import "./chunk-BJYCLZBQ.js";
|
|
56
45
|
import {
|
|
57
46
|
PREVIEW_BUNDLE_OPTIONS,
|
|
58
47
|
affectsPreview,
|
|
@@ -64,12 +53,10 @@ import {
|
|
|
64
53
|
getElementScreenshotClip,
|
|
65
54
|
getMimeType,
|
|
66
55
|
thumbnailDeviceScaleFactor
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-TIWO5QKS.js";
|
|
57
|
+
import "./chunk-IX3K55NA.js";
|
|
58
|
+
import "./chunk-LMCFILEY.js";
|
|
70
59
|
import "./chunk-DONVZZLV.js";
|
|
71
|
-
import "./chunk-7XHVHBFV.js";
|
|
72
|
-
import "./chunk-3MYEF34S.js";
|
|
73
60
|
import {
|
|
74
61
|
DEFAULT_HISTORY_ROOT,
|
|
75
62
|
DELETED_VERSION,
|
|
@@ -82,26 +69,28 @@ import {
|
|
|
82
69
|
historyCache,
|
|
83
70
|
identifyFileWrite,
|
|
84
71
|
openProjectHistory
|
|
85
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FXPDWYD7.js";
|
|
73
|
+
import "./chunk-V4Z37HFN.js";
|
|
74
|
+
import "./chunk-NFUXYBOR.js";
|
|
86
75
|
import "./chunk-ALVXFXUG.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-BZULWFMJ.js";
|
|
77
|
+
import "./chunk-AOPNJEQC.js";
|
|
89
78
|
import "./chunk-FGFVUKPP.js";
|
|
90
79
|
import {
|
|
91
80
|
resolveCaptureBrowserGpuMode,
|
|
92
81
|
resolveLocalBrowserGpuMode,
|
|
93
82
|
resolveLocalWebGpu
|
|
94
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-LDTJCZZ2.js";
|
|
95
84
|
import {
|
|
96
85
|
resolveAutoProxy
|
|
97
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-IYYZMZD2.js";
|
|
98
87
|
import "./chunk-XT7X6QCP.js";
|
|
99
88
|
import "./chunk-FRBQ3FIM.js";
|
|
100
89
|
import "./chunk-HVW7ABXD.js";
|
|
101
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-6FHIR4KD.js";
|
|
102
91
|
import "./chunk-JHOCK3DG.js";
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-3JFV42QB.js";
|
|
93
|
+
import "./chunk-MVJ7AX6W.js";
|
|
105
94
|
import "./chunk-AWDFDFI3.js";
|
|
106
95
|
import "./chunk-P6LJ4Y32.js";
|
|
107
96
|
import "./chunk-D3UCUI7G.js";
|
|
@@ -110,15 +99,15 @@ import {
|
|
|
110
99
|
renderMotionBlurTelemetryPayload,
|
|
111
100
|
trackRenderComplete,
|
|
112
101
|
trackRenderError
|
|
113
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-GTUTZIRR.js";
|
|
114
103
|
import {
|
|
115
104
|
canaryDecisionsForStudio,
|
|
116
105
|
resetTelemetryPostureCache,
|
|
117
106
|
shouldTrack
|
|
118
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-OY4YSQBK.js";
|
|
119
108
|
import "./chunk-PXVQOMKL.js";
|
|
120
109
|
import "./chunk-MCDNAIFF.js";
|
|
121
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-LP7B3JLC.js";
|
|
122
111
|
import "./chunk-JNHJX2BZ.js";
|
|
123
112
|
import "./chunk-54HJ63Q2.js";
|
|
124
113
|
import "./chunk-VU4EPKFI.js";
|
|
@@ -133,11 +122,11 @@ import "./chunk-ZB2XGJSP.js";
|
|
|
133
122
|
import {
|
|
134
123
|
assertWebGpuAdapterAvailable,
|
|
135
124
|
compositionRequiresWebGpu
|
|
136
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-7GJKUOPX.js";
|
|
137
126
|
import "./chunk-Z5J67X44.js";
|
|
138
127
|
import "./chunk-5S7W3TUO.js";
|
|
139
128
|
import "./chunk-D3MUHMFG.js";
|
|
140
|
-
import "./chunk-
|
|
129
|
+
import "./chunk-NHJ5YUBZ.js";
|
|
141
130
|
import {
|
|
142
131
|
isAtomicTempPath,
|
|
143
132
|
replaceFileAtomically
|
|
@@ -146,15 +135,16 @@ import "./chunk-3GXQPCJC.js";
|
|
|
146
135
|
import {
|
|
147
136
|
GSAP_CDN_VERSION,
|
|
148
137
|
fpsToNumber
|
|
149
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-RYT22J4V.js";
|
|
150
139
|
import "./chunk-FXMKHHPO.js";
|
|
151
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-F24B2PLD.js";
|
|
152
141
|
import "./chunk-VC76R6W2.js";
|
|
153
142
|
import {
|
|
154
143
|
realpath
|
|
155
144
|
} from "./chunk-OFQWTKPW.js";
|
|
156
145
|
import "./chunk-RQVDTPGD.js";
|
|
157
146
|
import "./chunk-BMDABBHG.js";
|
|
147
|
+
import "./chunk-PV4XID2A.js";
|
|
158
148
|
import {
|
|
159
149
|
runRenderSetupWorker
|
|
160
150
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -164,14 +154,14 @@ import {
|
|
|
164
154
|
} from "./chunk-FOZBANEN.js";
|
|
165
155
|
import "./chunk-K4MJX7SR.js";
|
|
166
156
|
import "./chunk-WE42NVH7.js";
|
|
167
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-DJVSNDF3.js";
|
|
168
158
|
import {
|
|
169
159
|
isWithinProjectRoot
|
|
170
160
|
} from "./chunk-WVRAFHJU.js";
|
|
171
161
|
import "./chunk-HYRPH6LL.js";
|
|
172
162
|
import "./chunk-FBN2M2HK.js";
|
|
173
163
|
import "./chunk-6MKM2RVL.js";
|
|
174
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-IOPIOX5K.js";
|
|
175
165
|
import "./chunk-FR7YBU3H.js";
|
|
176
166
|
import "./chunk-DPVXBVLL.js";
|
|
177
167
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -187,14 +177,14 @@ import {
|
|
|
187
177
|
import {
|
|
188
178
|
isDevMode
|
|
189
179
|
} from "./chunk-ISN5GRYI.js";
|
|
190
|
-
import "./chunk-ADVVQX4I.js";
|
|
191
180
|
import "./chunk-GR2E54E6.js";
|
|
181
|
+
import "./chunk-ADVVQX4I.js";
|
|
192
182
|
import "./chunk-66W5IWLO.js";
|
|
193
183
|
import "./chunk-PQYICV7O.js";
|
|
194
184
|
import "./chunk-QBXDU24O.js";
|
|
195
185
|
import {
|
|
196
186
|
VERSION
|
|
197
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-TM5H5ZY3.js";
|
|
198
188
|
import "./chunk-E63BDV4Z.js";
|
|
199
189
|
import {
|
|
200
190
|
detectAgentRuntime
|
|
@@ -204,7 +194,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
204
194
|
import "./chunk-M2WBOQ2Q.js";
|
|
205
195
|
|
|
206
196
|
// src/server/studioServer.ts
|
|
207
|
-
import { Hono
|
|
197
|
+
import { Hono } from "hono";
|
|
208
198
|
import { streamSSE } from "hono/streaming";
|
|
209
199
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
210
200
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -369,7 +359,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
369
359
|
async function buildFromSource() {
|
|
370
360
|
if (!existsSync(ENTRY_TS)) return null;
|
|
371
361
|
try {
|
|
372
|
-
const mod = await import("./dist-
|
|
362
|
+
const mod = await import("./dist-QRXJMFI7.js");
|
|
373
363
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
374
364
|
const source = mod.loadHyperframeRuntimeSource();
|
|
375
365
|
if (source) return source;
|
|
@@ -380,7 +370,7 @@ async function buildFromSource() {
|
|
|
380
370
|
}
|
|
381
371
|
async function getInlinedRuntime() {
|
|
382
372
|
try {
|
|
383
|
-
const mod = await import("./dist-
|
|
373
|
+
const mod = await import("./dist-QRXJMFI7.js");
|
|
384
374
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
385
375
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
386
376
|
}
|
|
@@ -677,358 +667,6 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
677
667
|
});
|
|
678
668
|
}
|
|
679
669
|
|
|
680
|
-
// src/server/shareRoutes.ts
|
|
681
|
-
import { randomUUID } from "crypto";
|
|
682
|
-
import { Hono } from "hono";
|
|
683
|
-
import { bodyLimit } from "hono/body-limit";
|
|
684
|
-
|
|
685
|
-
// src/server/shareBoundary.ts
|
|
686
|
-
import { randomBytes, timingSafeEqual } from "crypto";
|
|
687
|
-
function localShareRequestAllowed(request) {
|
|
688
|
-
const host = request.headers.get("host");
|
|
689
|
-
if (!host || request.headers.get("sec-fetch-site") !== "same-origin") return false;
|
|
690
|
-
try {
|
|
691
|
-
const local = new URL(`http://${host}`);
|
|
692
|
-
if (local.host !== host || !["localhost", "127.0.0.1", "[::1]"].includes(local.hostname))
|
|
693
|
-
return false;
|
|
694
|
-
const origin = request.headers.get("origin");
|
|
695
|
-
if (origin !== null) return origin === local.origin;
|
|
696
|
-
const referer = request.headers.get("referer");
|
|
697
|
-
return referer !== null && new URL(referer).origin === local.origin;
|
|
698
|
-
} catch {
|
|
699
|
-
return false;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
function createShareCsrf() {
|
|
703
|
-
const token = randomBytes(32).toString("base64url");
|
|
704
|
-
return {
|
|
705
|
-
token,
|
|
706
|
-
accepts(value) {
|
|
707
|
-
return value !== null && Buffer.byteLength(value) === Buffer.byteLength(token) && timingSafeEqual(Buffer.from(value), Buffer.from(token));
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// src/server/shareEvents.ts
|
|
713
|
-
function shareEventInput(value) {
|
|
714
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
715
|
-
if (Object.keys(value).length !== 2 || !("event" in value)) return null;
|
|
716
|
-
if (value.event === "share_link_copied" && "via" in value && value.via === "copy")
|
|
717
|
-
return { event: value.event, via: "copy" };
|
|
718
|
-
if (value.event !== "share_opened" || !("link" in value)) return null;
|
|
719
|
-
const link = ["none", "live", "changed"];
|
|
720
|
-
const chosen = link.find((item) => item === value.link);
|
|
721
|
-
return chosen ? { event: value.event, link: chosen } : null;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
// src/server/sharePresentation.ts
|
|
725
|
-
function presentShare(value) {
|
|
726
|
-
const held = value.share?.held || value.share?.takedown || value.share?.sharingState?.state === "subscription_required";
|
|
727
|
-
return {
|
|
728
|
-
state: presentedState(value, Boolean(held)),
|
|
729
|
-
url: held ? null : value.url ?? value.previousUrl,
|
|
730
|
-
failure: value.state === "failed" ? value.version.failure : null,
|
|
731
|
-
hasReadyVersion: value.ready || Boolean(value.previousUrl),
|
|
732
|
-
manageUrl: value.manageUrl,
|
|
733
|
-
// Desktop's watcher does not cover every portable render input.
|
|
734
|
-
changed: knownChanges(value),
|
|
735
|
-
audience: value.share?.access ?? null,
|
|
736
|
-
spaceId: value.share?.space?.id ?? null,
|
|
737
|
-
source: value.source.at
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
function presentSpaces(spaces) {
|
|
741
|
-
return spaces.map((space) => ({
|
|
742
|
-
id: space.space_id,
|
|
743
|
-
name: space.name || (space.kind === "personal" ? "Personal workspace" : space.space_id),
|
|
744
|
-
bound: space.bound === true,
|
|
745
|
-
canCreate: space.can_create_review,
|
|
746
|
-
...planOffer(space.review_entitlements),
|
|
747
|
-
audiences: [
|
|
748
|
-
"private",
|
|
749
|
-
...space.review_entitlements?.allowed_collaborative_access_modes ?? []
|
|
750
|
-
],
|
|
751
|
-
used: space.review_entitlements?.projects_used_up_to_limit ?? null,
|
|
752
|
-
limit: space.review_entitlements?.project_limit ?? null
|
|
753
|
-
}));
|
|
754
|
-
}
|
|
755
|
-
function knownChanges(value) {
|
|
756
|
-
if (!value.share) return false;
|
|
757
|
-
return value.version.last && !value.version.last.current ? true : null;
|
|
758
|
-
}
|
|
759
|
-
function planOffer(entitlements) {
|
|
760
|
-
const plan = entitlements?.plan ?? null;
|
|
761
|
-
return { plan, upgradeUrl: plan === "free" ? `${shareSite()}/pricing` : null };
|
|
762
|
-
}
|
|
763
|
-
function presentedState(value, held) {
|
|
764
|
-
if (held) return "unavailable";
|
|
765
|
-
if (value.state === "failed" || value.state === "not_shared" || value.state === "link_off")
|
|
766
|
-
return value.state;
|
|
767
|
-
return value.ready ? "ready" : "processing";
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
// src/server/shareSessions.ts
|
|
771
|
-
function shareSessionKey(value) {
|
|
772
|
-
return JSON.stringify([value.owner, value.heygen, value.heygenApi]);
|
|
773
|
-
}
|
|
774
|
-
function createShareSessions(create) {
|
|
775
|
-
const sessions = /* @__PURE__ */ new Map();
|
|
776
|
-
function session() {
|
|
777
|
-
let service = null;
|
|
778
|
-
return {
|
|
779
|
-
get: () => service ??= create(),
|
|
780
|
-
reset: () => {
|
|
781
|
-
service = null;
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
return {
|
|
786
|
-
open() {
|
|
787
|
-
const token = createShareCsrf().token;
|
|
788
|
-
if (sessions.size >= 128) {
|
|
789
|
-
const oldest = sessions.keys().next().value;
|
|
790
|
-
if (oldest) sessions.delete(oldest);
|
|
791
|
-
}
|
|
792
|
-
sessions.set(token, session());
|
|
793
|
-
return token;
|
|
794
|
-
},
|
|
795
|
-
get: (token) => sessions.get(token)
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
// src/server/shareFreshness.ts
|
|
800
|
-
var dependencies = {
|
|
801
|
-
render: latestShareRender,
|
|
802
|
-
fingerprint: shareContentFingerprint,
|
|
803
|
-
uploaded: versionOnPage,
|
|
804
|
-
checksum: fileSha256Base64
|
|
805
|
-
};
|
|
806
|
-
async function presentPortableShare(projectDir, state, deps = dependencies) {
|
|
807
|
-
const result = presentShare(state);
|
|
808
|
-
try {
|
|
809
|
-
const render = deps.render(projectDir);
|
|
810
|
-
if (!render?.contentFingerprint) return result;
|
|
811
|
-
const last = await deps.uploaded(projectDir);
|
|
812
|
-
if (!matchesUpload(state, last)) return result;
|
|
813
|
-
if (await deps.checksum(render.path) !== last.checksum) return result;
|
|
814
|
-
const current = await deps.fingerprint(projectDir);
|
|
815
|
-
result.changed = current && current !== render.contentFingerprint ? true : null;
|
|
816
|
-
} catch {
|
|
817
|
-
}
|
|
818
|
-
return result;
|
|
819
|
-
}
|
|
820
|
-
function matchesUpload(state, last) {
|
|
821
|
-
return Boolean(
|
|
822
|
-
last?.checksum && last.projectId === state.share?.projectId && last.exportedAt === state.version.last?.exportedAt
|
|
823
|
-
);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
// src/server/shareRoutes.ts
|
|
827
|
-
var AUDIENCES = ["public", "team", "invite", "private"];
|
|
828
|
-
function actionInput(value) {
|
|
829
|
-
if (!isRecord(value)) return null;
|
|
830
|
-
const record = Object.fromEntries(Object.entries(value));
|
|
831
|
-
if (Object.keys(record).some((key) => !["action", "audience", "space", "videoOnly"].includes(key)))
|
|
832
|
-
return null;
|
|
833
|
-
const { action, audience, space, videoOnly } = record;
|
|
834
|
-
if (!isAction(action)) return null;
|
|
835
|
-
const chosen = AUDIENCES.find((mode) => mode === audience);
|
|
836
|
-
if (audience !== void 0 && !chosen) return null;
|
|
837
|
-
const options = actionOptions(space, videoOnly);
|
|
838
|
-
if (!options) return null;
|
|
839
|
-
if (["share", "access"].includes(action) && !chosen) return null;
|
|
840
|
-
return {
|
|
841
|
-
action,
|
|
842
|
-
audience: chosen,
|
|
843
|
-
...options
|
|
844
|
-
};
|
|
845
|
-
}
|
|
846
|
-
function isRecord(value) {
|
|
847
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
848
|
-
}
|
|
849
|
-
function isAction(value) {
|
|
850
|
-
return ["share", "update", "access", "off", "on", "login"].some((action) => action === value);
|
|
851
|
-
}
|
|
852
|
-
function actionOptions(space, videoOnly) {
|
|
853
|
-
if (!validSpace(space)) return null;
|
|
854
|
-
if (videoOnly !== void 0 && typeof videoOnly !== "boolean") return null;
|
|
855
|
-
const options = {};
|
|
856
|
-
if (typeof space === "string") options.space = space;
|
|
857
|
-
if (videoOnly === true) options.videoOnly = true;
|
|
858
|
-
return options;
|
|
859
|
-
}
|
|
860
|
-
function validSpace(value) {
|
|
861
|
-
return value === void 0 || typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value);
|
|
862
|
-
}
|
|
863
|
-
var defaultCreate = async (path, progress) => (await import("./service-XCT7W4PQ.js")).createShareService(path, progress, {
|
|
864
|
-
surface: "local_studio",
|
|
865
|
-
pinIdentity: true
|
|
866
|
-
});
|
|
867
|
-
async function defaultLogin() {
|
|
868
|
-
const { startAuthorizationCodeFlow } = await import("./oauth-KUPQUH6E.js");
|
|
869
|
-
await startAuthorizationCodeFlow({ timeoutMs: 3e5 });
|
|
870
|
-
}
|
|
871
|
-
function mountShareRoutes(app, projectDir, create = defaultCreate, login = defaultLogin, track = trackShareInteraction) {
|
|
872
|
-
const routes = new Hono();
|
|
873
|
-
let job = null;
|
|
874
|
-
const hasRunningJob = () => job?.state === "running";
|
|
875
|
-
let jobOwner = null;
|
|
876
|
-
let loginToken = null;
|
|
877
|
-
const sessions = createShareSessions(
|
|
878
|
-
() => create(projectDir, (progress) => {
|
|
879
|
-
if (job?.state === "running" && progress) job.step = progress.step;
|
|
880
|
-
})
|
|
881
|
-
);
|
|
882
|
-
const visibleJob = async (token) => {
|
|
883
|
-
if (loginToken === token && job && job.state !== "done") return job;
|
|
884
|
-
const session = sessions.get(token);
|
|
885
|
-
if (!session) return null;
|
|
886
|
-
const key = shareSessionKey(await (await session.get()).checkSession());
|
|
887
|
-
return key === jobOwner ? job : null;
|
|
888
|
-
};
|
|
889
|
-
routes.use("*", async (c, next) => {
|
|
890
|
-
c.header("Cache-Control", "no-store");
|
|
891
|
-
if (!localShareRequestAllowed(c.req.raw))
|
|
892
|
-
return c.json({ code: "forbidden", message: "Open sharing from this local Studio." }, 403);
|
|
893
|
-
if (c.req.path !== "/api/share/bootstrap" && !sessions.get(c.req.header("x-hyperframes-share-csrf") ?? ""))
|
|
894
|
-
return c.json({ code: "forbidden", message: "Refresh Studio to reconnect sharing." }, 403);
|
|
895
|
-
return next();
|
|
896
|
-
});
|
|
897
|
-
routes.use("*", bodyLimit({ maxSize: 4096 }));
|
|
898
|
-
routes.get("/bootstrap", (c) => c.json({ csrf: sessions.open() }));
|
|
899
|
-
routes.post("/events", async (c) => {
|
|
900
|
-
const event = shareEventInput(await c.req.json().catch(() => null));
|
|
901
|
-
if (!event) return c.json({ code: "invalid_event", message: "Unknown sharing event." }, 400);
|
|
902
|
-
track(event, "local_studio");
|
|
903
|
-
return c.body(null, 204);
|
|
904
|
-
});
|
|
905
|
-
routes.get("/snapshot", async (c) => {
|
|
906
|
-
try {
|
|
907
|
-
const sharing = await sessions.get(c.req.header("x-hyperframes-share-csrf")).get();
|
|
908
|
-
const [state, spaces, capabilities] = await Promise.all([
|
|
909
|
-
sharing.status(),
|
|
910
|
-
sharing.spaces(),
|
|
911
|
-
sharing.capabilities()
|
|
912
|
-
]);
|
|
913
|
-
return c.json({
|
|
914
|
-
versionSharing: capabilities.versionSharing,
|
|
915
|
-
share: await presentPortableShare(projectDir, state),
|
|
916
|
-
spaces: presentSpaces(spaces),
|
|
917
|
-
job: await visibleJob(c.req.header("x-hyperframes-share-csrf"))
|
|
918
|
-
});
|
|
919
|
-
} catch (error) {
|
|
920
|
-
return c.json(
|
|
921
|
-
{
|
|
922
|
-
...await presentError(error, c.req.header("x-hyperframes-share-csrf")),
|
|
923
|
-
job: loginToken === c.req.header("x-hyperframes-share-csrf") && job && job.state !== "done" ? job : null
|
|
924
|
-
},
|
|
925
|
-
400
|
|
926
|
-
);
|
|
927
|
-
}
|
|
928
|
-
});
|
|
929
|
-
routes.get("/jobs/:id", async (c) => {
|
|
930
|
-
try {
|
|
931
|
-
const current = await visibleJob(c.req.header("x-hyperframes-share-csrf"));
|
|
932
|
-
return current?.id === c.req.param("id") ? c.json(current) : c.json(
|
|
933
|
-
{ code: "job_not_found", message: "Refresh sharing to see the current state." },
|
|
934
|
-
404
|
|
935
|
-
);
|
|
936
|
-
} catch (error) {
|
|
937
|
-
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
routes.post("/actions", async (c) => {
|
|
941
|
-
const input = actionInput(await c.req.json().catch(() => null));
|
|
942
|
-
if (!input)
|
|
943
|
-
return c.json(
|
|
944
|
-
{ code: "invalid_action", message: "Choose a valid sharing action and audience." },
|
|
945
|
-
400
|
|
946
|
-
);
|
|
947
|
-
const token = c.req.header("x-hyperframes-share-csrf");
|
|
948
|
-
const session = sessions.get(token);
|
|
949
|
-
if (hasRunningJob())
|
|
950
|
-
return c.json(
|
|
951
|
-
{
|
|
952
|
-
code: "share_busy",
|
|
953
|
-
message: "Sharing is already in progress.",
|
|
954
|
-
job: await visibleJob(token).catch(() => null)
|
|
955
|
-
},
|
|
956
|
-
409
|
|
957
|
-
);
|
|
958
|
-
let owner = null;
|
|
959
|
-
if (input.action !== "login") {
|
|
960
|
-
try {
|
|
961
|
-
owner = await sessionOwner(session);
|
|
962
|
-
} catch (error) {
|
|
963
|
-
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
if (hasRunningJob())
|
|
967
|
-
return c.json({ code: "share_busy", message: "Sharing is already in progress." }, 409);
|
|
968
|
-
jobOwner = owner;
|
|
969
|
-
loginToken = input.action === "login" ? token : null;
|
|
970
|
-
const current = {
|
|
971
|
-
id: randomUUID(),
|
|
972
|
-
state: "running",
|
|
973
|
-
step: actionStep(input),
|
|
974
|
-
result: null,
|
|
975
|
-
error: null
|
|
976
|
-
};
|
|
977
|
-
job = current;
|
|
978
|
-
void runJob(current, input, session, token);
|
|
979
|
-
return c.json(current, 202);
|
|
980
|
-
});
|
|
981
|
-
async function runJob(current, input, session, token) {
|
|
982
|
-
try {
|
|
983
|
-
if (input.action === "login") {
|
|
984
|
-
await login();
|
|
985
|
-
session.reset();
|
|
986
|
-
}
|
|
987
|
-
const sharing = await session.get();
|
|
988
|
-
const result = await executeAction(sharing, input);
|
|
989
|
-
jobOwner = shareSessionKey(await sharing.checkSession());
|
|
990
|
-
current.result = await presentPortableShare(projectDir, result);
|
|
991
|
-
current.state = "done";
|
|
992
|
-
} catch (error) {
|
|
993
|
-
current.error = await presentError(error, token);
|
|
994
|
-
current.state = "failed";
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
async function presentError(error, token) {
|
|
998
|
-
if (!(error instanceof ReviewFailed) || error.status !== 401) return shareError(error);
|
|
999
|
-
const session = sessions.get(token);
|
|
1000
|
-
if (!session) return shareError(error);
|
|
1001
|
-
try {
|
|
1002
|
-
await (await session.get()).checkSession(true);
|
|
1003
|
-
return {
|
|
1004
|
-
code: "sharing_not_admitted",
|
|
1005
|
-
message: "You're signed in, but sharing isn't accepting this sign-in. Try again later or contact support."
|
|
1006
|
-
};
|
|
1007
|
-
} catch (verificationError) {
|
|
1008
|
-
return shareError(verificationError);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
app.route("/api/share", routes);
|
|
1012
|
-
}
|
|
1013
|
-
function executeAction(sharing, input) {
|
|
1014
|
-
if (input.action === "login") return sharing.status();
|
|
1015
|
-
if (input.action === "access" && input.audience) return sharing.setAccess(input.audience);
|
|
1016
|
-
if (input.action === "off") return sharing.linkOff();
|
|
1017
|
-
if (input.action === "on") return sharing.linkOn();
|
|
1018
|
-
return sharing.run({
|
|
1019
|
-
action: input.action === "update" ? "update" : "share",
|
|
1020
|
-
audience: input.audience,
|
|
1021
|
-
space: input.space,
|
|
1022
|
-
videoOnly: input.videoOnly
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
function actionStep(input) {
|
|
1026
|
-
return input.action === "login" ? "signing_in" : "preparing";
|
|
1027
|
-
}
|
|
1028
|
-
async function sessionOwner(session) {
|
|
1029
|
-
return shareSessionKey(await (await session.get()).checkSession());
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
670
|
// src/server/thumbnailPages.ts
|
|
1033
671
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
1034
672
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -1098,13 +736,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
1098
736
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
1099
737
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
1100
738
|
async function loadStudioProducer() {
|
|
1101
|
-
if (!isDevMode()) return await import("./src-
|
|
739
|
+
if (!isDevMode()) return await import("./src-CHPZUZZ3.js");
|
|
1102
740
|
if (!process.versions.bun) {
|
|
1103
741
|
throw new Error(
|
|
1104
742
|
"Studio dev-mode rendering requires bun (the producer is loaded from TypeScript source, which Node cannot resolve). Restart the studio with `bun run studio`."
|
|
1105
743
|
);
|
|
1106
744
|
}
|
|
1107
|
-
return await import("./src-
|
|
745
|
+
return await import("./src-CHPZUZZ3.js");
|
|
1108
746
|
}
|
|
1109
747
|
function resolveDistDir() {
|
|
1110
748
|
return resolveStudioBundle().dir;
|
|
@@ -1220,7 +858,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
1220
858
|
try {
|
|
1221
859
|
if (isShuttingDown()) return null;
|
|
1222
860
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
1223
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
861
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-NIMSUB4P.js");
|
|
1224
862
|
let executablePath;
|
|
1225
863
|
try {
|
|
1226
864
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1395,7 +1033,7 @@ function createStudioServer(options) {
|
|
|
1395
1033
|
resolveProject: (id) => id === projectId ? project : null,
|
|
1396
1034
|
async bundle(dir, options2) {
|
|
1397
1035
|
try {
|
|
1398
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1036
|
+
const { bundleToSingleHtml } = await import("./compiler-ZSIKBZBR.js");
|
|
1399
1037
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1400
1038
|
html = html.replace(
|
|
1401
1039
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1408,10 +1046,10 @@ function createStudioServer(options) {
|
|
|
1408
1046
|
}
|
|
1409
1047
|
},
|
|
1410
1048
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1411
|
-
const { injectDeterministicFontFaces } = await import("./deterministicFonts-
|
|
1412
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1413
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1414
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
1049
|
+
const { injectDeterministicFontFaces } = await import("./deterministicFonts-SKRN3TCP.js");
|
|
1050
|
+
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-AVZAMI2D.js");
|
|
1051
|
+
const { prepareHeifImageInputs } = await import("./heifImagePrep-BOIWW7FW.js");
|
|
1052
|
+
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-4RWM3UH2.js");
|
|
1415
1053
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1416
1054
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1417
1055
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1443,7 +1081,7 @@ function createStudioServer(options) {
|
|
|
1443
1081
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1444
1082
|
},
|
|
1445
1083
|
async lint(html, opts) {
|
|
1446
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1084
|
+
const { lintHyperframeHtml } = await import("./dist-EFXKPJJT.js");
|
|
1447
1085
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1448
1086
|
},
|
|
1449
1087
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1517,13 +1155,26 @@ function createStudioServer(options) {
|
|
|
1517
1155
|
state.progress = j.progress;
|
|
1518
1156
|
if (j.currentStage) state.stage = j.currentStage;
|
|
1519
1157
|
};
|
|
1520
|
-
await
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1158
|
+
const releaseSlot = await acquireRenderLock({
|
|
1159
|
+
project: opts.project.dir,
|
|
1160
|
+
wait: true,
|
|
1161
|
+
signal: abortController.signal,
|
|
1162
|
+
onWait: (holder) => {
|
|
1163
|
+
state.stage = `Waiting for another render (${describeRenderLockHolder(holder, Date.now())})`;
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
state.stage = void 0;
|
|
1167
|
+
try {
|
|
1168
|
+
await executeRenderJob(
|
|
1169
|
+
job,
|
|
1170
|
+
opts.project.dir,
|
|
1171
|
+
opts.outputPath,
|
|
1172
|
+
onProgress,
|
|
1173
|
+
abortController.signal
|
|
1174
|
+
);
|
|
1175
|
+
} finally {
|
|
1176
|
+
releaseSlot();
|
|
1177
|
+
}
|
|
1527
1178
|
if (abortController.signal.aborted) {
|
|
1528
1179
|
removeCancelledOutput();
|
|
1529
1180
|
return;
|
|
@@ -1575,7 +1226,7 @@ function createStudioServer(options) {
|
|
|
1575
1226
|
startBackgroundRemoval(opts) {
|
|
1576
1227
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1577
1228
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1578
|
-
const pipeline = await import("./pipeline-
|
|
1229
|
+
const pipeline = await import("./pipeline-5HUQFOCY.js").catch(
|
|
1579
1230
|
() => import(sourcePipelinePath)
|
|
1580
1231
|
);
|
|
1581
1232
|
return pipeline.render(renderOpts);
|
|
@@ -1660,8 +1311,8 @@ function createStudioServer(options) {
|
|
|
1660
1311
|
}
|
|
1661
1312
|
},
|
|
1662
1313
|
async listRegistryCatalog() {
|
|
1663
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1664
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1314
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-ZWNLOG6O.js");
|
|
1315
|
+
const { loadProjectConfig } = await import("./projectConfig-UHYPGWD5.js");
|
|
1665
1316
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1666
1317
|
const entries = await listRegistryItems(void 0, registry);
|
|
1667
1318
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1670,9 +1321,9 @@ function createStudioServer(options) {
|
|
|
1670
1321
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1671
1322
|
},
|
|
1672
1323
|
async installRegistryBlock(opts) {
|
|
1673
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1674
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1675
|
-
const { registryTargetPath } = await import("./publication-
|
|
1324
|
+
const { addToProject, primaryInstalledTarget } = await import("./add-BRXFSBYO.js");
|
|
1325
|
+
const { recordRewrittenInstall } = await import("./installer-VPGNKCEU.js");
|
|
1326
|
+
const { registryTargetPath } = await import("./publication-5KOANEHK.js");
|
|
1676
1327
|
const { result, item } = await addToProject({
|
|
1677
1328
|
name: opts.blockName,
|
|
1678
1329
|
projectDir: opts.project.dir,
|
|
@@ -1696,7 +1347,7 @@ function createStudioServer(options) {
|
|
|
1696
1347
|
};
|
|
1697
1348
|
}
|
|
1698
1349
|
};
|
|
1699
|
-
const app = new
|
|
1350
|
+
const app = new Hono();
|
|
1700
1351
|
app.get("/__hyperframes_config", (c) => {
|
|
1701
1352
|
const serve = async () => {
|
|
1702
1353
|
const serverBuildSignature = await loadPreviewServerBuildSignature();
|
|
@@ -1776,8 +1427,8 @@ function createStudioServer(options) {
|
|
|
1776
1427
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1777
1428
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1778
1429
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1779
|
-
import("./preflight-
|
|
1780
|
-
import("./ffmpeg-
|
|
1430
|
+
import("./preflight-NTJMXUS2.js"),
|
|
1431
|
+
import("./ffmpeg-OAKTUK5S.js")
|
|
1781
1432
|
]);
|
|
1782
1433
|
const { outcomes } = await runEnvironmentChecks();
|
|
1783
1434
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1794,10 +1445,9 @@ function createStudioServer(options) {
|
|
|
1794
1445
|
});
|
|
1795
1446
|
});
|
|
1796
1447
|
mountDesktopRoutes(app, projectDir);
|
|
1797
|
-
mountShareRoutes(app, projectDir);
|
|
1798
1448
|
let cachedFFmpegPath;
|
|
1799
1449
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1800
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1450
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-OAKTUK5S.js");
|
|
1801
1451
|
if (!cachedFFmpegPath) {
|
|
1802
1452
|
cachedFFmpegPath = findFFmpeg();
|
|
1803
1453
|
}
|
|
@@ -1902,10 +1552,9 @@ function createStudioServer(options) {
|
|
|
1902
1552
|
}
|
|
1903
1553
|
let html = indexContent.toString("utf-8");
|
|
1904
1554
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1905
|
-
|
|
1906
|
-
"<head>",
|
|
1907
|
-
|
|
1908
|
-
);
|
|
1555
|
+
if (headScript) {
|
|
1556
|
+
html = html.replace("<head>", `<head>${headScript}`);
|
|
1557
|
+
}
|
|
1909
1558
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1910
1559
|
});
|
|
1911
1560
|
const shutdown = async () => {
|
|
@@ -1914,7 +1563,7 @@ function createStudioServer(options) {
|
|
|
1914
1563
|
});
|
|
1915
1564
|
const renders = [...inFlightRenders];
|
|
1916
1565
|
for (const [abortController] of renders) abortController.abort();
|
|
1917
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1566
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-NIMSUB4P.js");
|
|
1918
1567
|
killTrackedProcesses();
|
|
1919
1568
|
const closeBrowsers = Promise.allSettled([
|
|
1920
1569
|
closeThumbnailBrowser().catch(() => {
|