hyperframes 0.9.31 → 0.9.33
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-53MR45WI.js → add-GDXM36YQ.js} +18 -18
- package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-KPNDH2EI.js} +36 -19
- package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-SAKETEZ2.js} +11 -11
- package/dist/api.js +51 -46
- package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
- package/dist/{asset-Y3YAVXJ3.js → asset-KOJC72AQ.js} +2 -2
- package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-Q4ZFUI6G.js} +13 -13
- package/dist/{audio-TRDZQ2NW.js → audio-XZBBXKQC.js} +32 -30
- package/dist/{auth-MN66MWGN.js → auth-X45YSZGE.js} +4 -4
- package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-77XWQ564.js} +3 -3
- package/dist/{avatars-F2COSI7P.js → avatars-D3D22TI2.js} +20 -19
- package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-2L2RWFJ3.js} +4 -4
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-CI6OFGS5.js → batchRender-O7J47H2Z.js} +5 -5
- package/dist/{beats-GBCNB763.js → beats-6RVVU56H.js} +15 -15
- package/dist/{benchmark-AHHMJBDN.js → benchmark-D5JRNAVQ.js} +12 -12
- package/dist/{billing-HME22C5A.js → billing-WT4DGZII.js} +20 -19
- package/dist/{browser-VZTIOZI3.js → browser-2OR737P4.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
- package/dist/{capture-ZILHWIOF.js → capture-23X2CK56.js} +82 -39
- package/dist/{capture-NU2ZIXJB.js → capture-B34FTO6G.js} +4 -4
- package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-TPZKEVKN.js} +19 -19
- package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
- package/dist/{catalog-NVEGPXGE.js → catalog-ACHSYU5Z.js} +18 -18
- package/dist/{catch-up-W7ST5JSZ.js → catch-up-FGANS2BB.js} +12 -12
- package/dist/{check-BZ652RYH.js → check-DXK4L5WP.js} +54 -54
- package/dist/{checkAudio-5NVSRMGL.js → checkAudio-4ISYJED3.js} +20 -20
- package/dist/{checkBrowser-YN454IBU.js → checkBrowser-5ECMULMP.js} +47 -47
- package/dist/{chunk-Q7EIUAYK.js → chunk-23354HMA.js} +3 -3
- package/dist/{chunk-W4OMDRZF.js → chunk-2I4DQZLQ.js} +28 -8
- package/dist/{chunk-O4Z4D4KA.js → chunk-2KYLVWLO.js} +1 -1
- package/dist/{chunk-BJSUKOWW.js → chunk-2LMCARA5.js} +2 -2
- package/dist/{chunk-XB77LMOP.js → chunk-2QTGQGYA.js} +1 -1
- package/dist/{chunk-JULHFF3J.js → chunk-2RBQLV6B.js} +1 -1
- package/dist/{chunk-R5U5PFDJ.js → chunk-2TBW7UOF.js} +5177 -4970
- package/dist/{chunk-RCWPVC4M.js → chunk-3J32XVJ6.js} +2 -2
- package/dist/{chunk-CP4FVXKZ.js → chunk-45ZQI734.js} +2 -2
- package/dist/{chunk-LHBQW4GJ.js → chunk-4CHGNFCS.js} +23 -15
- package/dist/{chunk-RLYYA6IR.js → chunk-4DLYTSWQ.js} +15 -8
- package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-ZSELEQI2.js → chunk-4US5QCXR.js} +408 -219
- package/dist/{chunk-CWOUPW5E.js → chunk-4WZU4FYS.js} +4 -4
- package/dist/{chunk-B7H5RCKP.js → chunk-5GYTBKZA.js} +2 -2
- package/dist/{chunk-4HSE3FWO.js → chunk-5RVPI6QL.js} +4 -4
- package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
- package/dist/{chunk-KAICKZZK.js → chunk-6QEEF5RR.js} +1 -1
- package/dist/{chunk-5Q3TTLGB.js → chunk-6RV2QY4K.js} +31 -31
- package/dist/{chunk-3SZ43GZG.js → chunk-6ZVUTYNB.js} +6 -6
- package/dist/{chunk-C4U6FRZH.js → chunk-76KUCQXD.js} +14 -11
- package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
- package/dist/{chunk-GRHBVTBK.js → chunk-7LTXT7ME.js} +11 -9
- package/dist/{chunk-RBECDLMQ.js → chunk-7UUUV4PN.js} +1 -1
- package/dist/{chunk-X3HQA3YE.js → chunk-A4VXOJZO.js} +10 -8
- package/dist/{chunk-OJSOH2LS.js → chunk-ADYMQM7T.js} +2 -2
- package/dist/{chunk-GSXHYLW4.js → chunk-AIC7T7CC.js} +2 -2
- package/dist/{chunk-MQOO5Z4U.js → chunk-B66UZ2YK.js} +9 -9
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-T7PFJH2B.js → chunk-BBL6STGK.js} +2 -2
- package/dist/{chunk-5AMGFTMU.js → chunk-C2VZ7UPE.js} +18 -18
- package/dist/{chunk-CUORARXJ.js → chunk-CDI3CCAU.js} +7 -7
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
- package/dist/{chunk-OOEZ3FT3.js → chunk-CHM3QYLF.js} +3 -3
- package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
- package/dist/{chunk-DJVSNDF3.js → chunk-CNJLBAKM.js} +133 -22
- package/dist/chunk-DDDSTRHU.js +3890 -0
- package/dist/{chunk-AWL5M7BX.js → chunk-DGC2RIQE.js} +4 -4
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-WSPGX2SM.js → chunk-DMZER7D5.js} +1 -1
- package/dist/{chunk-3DIYMOES.js → chunk-ERJBWDPM.js} +7 -7
- package/dist/{chunk-56MGA4FM.js → chunk-ETWXZQN5.js} +2 -2
- package/dist/{chunk-MMAPQWUP.js → chunk-EX533ULK.js} +2 -2
- package/dist/{chunk-HM3PIREE.js → chunk-EX7WPDFA.js} +2 -2
- package/dist/{chunk-MX3UCKZR.js → chunk-FRH3CPW5.js} +1 -1
- package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
- package/dist/{chunk-FKW5FP4C.js → chunk-G55YEL2L.js} +129 -89
- package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
- package/dist/{chunk-44VR2CWT.js → chunk-GHLLC6LJ.js} +2 -2
- package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
- package/dist/{chunk-BCMR6DE4.js → chunk-HEXTAQYG.js} +2 -2
- package/dist/{chunk-URXVZMSI.js → chunk-HMB3IAVP.js} +2 -2
- package/dist/{chunk-22PWPQVX.js → chunk-HPKW6UVW.js} +6 -6
- package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
- package/dist/{chunk-YJVJCNK4.js → chunk-I35B5RWZ.js} +3 -3
- package/dist/{chunk-SCWMPY3F.js → chunk-I3PA54IU.js} +1 -1
- package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
- package/dist/{chunk-CWN75OWQ.js → chunk-IYLGUQFR.js} +19 -7
- package/dist/chunk-JCJJCYCP.js +392 -0
- package/dist/{chunk-P7LZ2WSQ.js → chunk-JSVCF4A6.js} +4 -4
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-OBRKDUCE.js → chunk-KIAY63AB.js} +38 -4
- package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
- package/dist/{chunk-6VNDEMSP.js → chunk-L6BFXQ6S.js} +8 -4
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-ZOOY4LEZ.js → chunk-MA35E5OY.js} +3 -3
- package/dist/{chunk-IHWNDG5C.js → chunk-MDBEAWP2.js} +3 -3
- package/dist/{chunk-TEOIEMTR.js → chunk-MDGNQWFN.js} +1 -1
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-O7ZX5DHD.js → chunk-MP36L7OJ.js} +2 -2
- package/dist/{chunk-5LLDGJGZ.js → chunk-MVIUSNPZ.js} +1 -1
- package/dist/{chunk-IIMW46LC.js → chunk-N2C7WJDG.js} +1 -1
- package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
- package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
- package/dist/{chunk-AQJA7TAQ.js → chunk-NQFIMBXS.js} +2 -2
- package/dist/{chunk-G5DZZEQF.js → chunk-O2T6ZTLN.js} +1 -1
- package/dist/{chunk-RHUYVGFO.js → chunk-O5CNNVRY.js} +7 -7
- package/dist/{chunk-6WHOI52Z.js → chunk-OD7PLYYX.js} +8 -8
- package/dist/{chunk-K7JA32EI.js → chunk-PNP2BO3U.js} +2 -2
- package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-SEVZKBMA.js → chunk-QWM3NY2E.js} +4 -4
- package/dist/{chunk-ZQYRP22G.js → chunk-R45WFVRA.js} +1 -1
- package/dist/{chunk-PGGMJW7B.js → chunk-RCB4SGTB.js} +35 -7
- package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
- package/dist/{chunk-5HVQV4H4.js → chunk-RGYOCAHC.js} +2 -2
- package/dist/{chunk-GFDXA5QO.js → chunk-ROXILOZ6.js} +2 -2
- package/dist/{chunk-G5S72X6Q.js → chunk-SIGASWB7.js} +4 -4
- package/dist/{chunk-J5LQW6VB.js → chunk-SOAQ3XXB.js} +2 -2
- package/dist/{chunk-RLQOYHXT.js → chunk-SUXEL7G4.js} +15 -15
- package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
- package/dist/{chunk-Q77TZ76B.js → chunk-SWPI27QV.js} +8 -8
- package/dist/{chunk-T54RTTFW.js → chunk-T3GSTIBS.js} +3 -3
- package/dist/chunk-TFBPCJPG.js +26 -0
- package/dist/{chunk-XDIHAX2C.js → chunk-U77L3ZQZ.js} +1 -1
- package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
- package/dist/{chunk-7XZS4PNM.js → chunk-UE2WSWNA.js} +1 -1
- package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
- package/dist/{chunk-KAHWO4XC.js → chunk-VKZSAAXZ.js} +3 -3
- package/dist/chunk-VQJLTYEK.js +453 -0
- package/dist/{chunk-5YYGPTBP.js → chunk-VZQXHYEI.js} +3 -3
- package/dist/{chunk-OZNJ2QD5.js → chunk-W2FSQBUR.js} +17 -17
- package/dist/{chunk-RVI665CP.js → chunk-W5PW26KE.js} +1 -1
- package/dist/{chunk-KKUBMYCY.js → chunk-WIMVXPYG.js} +12 -12
- package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
- package/dist/{chunk-OB6DVKHE.js → chunk-WYPRTHXQ.js} +2 -2
- package/dist/{chunk-ELWX6CAA.js → chunk-XDDBSGBD.js} +2 -2
- package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
- package/dist/{chunk-3OA75WJW.js → chunk-XFXCI4IP.js} +16 -9
- package/dist/{chunk-RJA64ACI.js → chunk-XQWWFIBR.js} +2 -2
- package/dist/{chunk-FK3KV32T.js → chunk-XSHJ37U3.js} +27 -24
- package/dist/{chunk-Y6RU3H6C.js → chunk-XUDJ5XSQ.js} +6 -6
- package/dist/{chunk-DFSAC4F4.js → chunk-XVVPEWNX.js} +1 -1
- package/dist/chunk-Y5DOT5NQ.js +57 -0
- package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
- package/dist/{chunk-L6ZLOJBI.js → chunk-YDG3OXH3.js} +3 -2
- package/dist/{chunk-SQ63BIR2.js → chunk-YNFHZ4RI.js} +3 -3
- package/dist/{chunk-5BIMSULZ.js → chunk-YSHUIQ3I.js} +2 -2
- package/dist/chunk-YTUPQTXA.js +560 -0
- package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
- package/dist/chunk-ZOAANTVI.js +193 -0
- package/dist/{clean-WYXHI2DO.js → clean-3IN64RHM.js} +31 -31
- package/dist/cli.js +71 -69
- package/dist/{cloud-X52P5AIE.js → cloud-LBUZBUP6.js} +4 -4
- package/dist/{cloud-TDXVUIUM.js → cloud-SVYXHFEG.js} +9 -8
- package/dist/{cloudrun-36IR6ZKU.js → cloudrun-PZOF2QGL.js} +8 -8
- package/dist/{compare-R2KXOV2I.js → compare-UOJ3LXQQ.js} +46 -46
- package/dist/{compiler-FRWUFIQC.js → compiler-5ZDHBKBQ.js} +9 -7
- package/dist/{component-TIBQY7KQ.js → component-EVIPLTTJ.js} +3 -3
- package/dist/{compositions-NQPORXIX.js → compositions-R4GG5FBO.js} +17 -17
- package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-DTLRPBSB.js → curve-LR3PSRW3.js} +16 -16
- package/dist/{cuts-73HKU767.js → cuts-DHCOBAFT.js} +17 -17
- package/dist/{delete-HIHA436T.js → delete-MMGGU3QP.js} +12 -11
- package/dist/deploy-SKIGUTM2.js +213 -0
- package/dist/{describeProject-4A5UXQ25.js → describeProject-L7HNTBPV.js} +12 -12
- package/dist/{destroy-4DOMPOYB.js → destroy-5HSMMDH7.js} +22 -18
- package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
- package/dist/{diff-JPADFUMV.js → diff-KR7VKPYL.js} +48 -47
- package/dist/{dist-EFXKPJJT.js → dist-3MFNUZSN.js} +4 -4
- package/dist/{dist-KWXQYTRT.js → dist-HK3AZNNL.js} +22 -22
- package/dist/{dist-FKEKIXVL.js → dist-ZGYPFYOH.js} +4 -4
- package/dist/docs/rendering.md +2 -0
- package/dist/{doctor-3OO3CONL.js → doctor-G7VGNSA5.js} +18 -18
- package/dist/{energy-XFPN5YIL.js → energy-H7EEH6WO.js} +17 -17
- package/dist/{events-6ONCYFB5.js → events-5ATZCZTK.js} +4 -4
- package/dist/{events-QWPZT3EQ.js → events-ASG27IXP.js} +19 -19
- package/dist/{events-G2MME5LQ.js → events-YD6N7OPQ.js} +9 -9
- package/dist/execute-OAS454OB.js +109 -0
- package/dist/{extract-3EV72SMY.js → extract-645SENLA.js} +20 -20
- package/dist/{face-JZS6P3AT.js → face-WRT5XH4I.js} +19 -19
- package/dist/{feedback-JVWBHRQG.js → feedback-3LKLR5MV.js} +22 -17
- package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-PXKIZL2X.js} +11 -11
- package/dist/{figma-KPHTDMCQ.js → figma-RIEVJJBW.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -20
- package/dist/{frames-KRVRJTKC.js → frames-OTB3J5W3.js} +19 -19
- package/dist/{generate-X2MYGFZX.js → generate-IUKCZW2D.js} +33 -32
- package/dist/{get-QM24BI7N.js → get-6WVQ7TBV.js} +12 -11
- package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-HXSVAEU4.js} +11 -11
- package/dist/{grade-compare-W5N5LH4X.js → grade-compare-TCAYHDEF.js} +47 -47
- package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-GXIMK4HK.js} +12 -12
- package/dist/{help-LWS4YWMO.js → help-RGOL5EJD.js} +2 -1
- package/dist/{history-SG34LBJY.js → history-XKPRGJGS.js} +15 -15
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +42 -42
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-2FC43IYB.js → info-EYBBC42V.js} +19 -19
- package/dist/{init-GKY5OKDV.js → init-F2FWPSMA.js} +36 -36
- package/dist/{ink-7UK6YCUY.js → ink-BWFERAAT.js} +17 -17
- package/dist/{inspect-ZB2NTNQA.js → inspect-74N7L3BW.js} +44 -44
- package/dist/{installer-GALVXWPC.js → installer-LOUR7G4R.js} +8 -8
- package/dist/{keyframes-LSP4FLHT.js → keyframes-WB5PTKFE.js} +15 -13
- package/dist/{lambda-3F32DRYF.js → lambda-JYCNXUKB.js} +20 -20
- package/dist/{layout-XPGS3QTX.js → layout-P52EVR24.js} +44 -44
- package/dist/{lint-Q5SO57RK.js → lint-SL55KAS2.js} +15 -15
- package/dist/{lintProject-5CBL7VFV.js → lintProject-46WU53VC.js} +4 -4
- package/dist/{list-FL5RYSFT.js → list-LN6CQH52.js} +14 -13
- package/dist/{localPage-IOHQETQT.js → localPage-L6OJU3UH.js} +12 -12
- package/dist/{login-D4TCWDDW.js → login-WTOAMDID.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-G2BT4E4A.js → look-O6ESLJRP.js} +17 -17
- package/dist/{manager-F6WI43DQ.js → manager-CMEZWENF.js} +12 -12
- package/dist/{measure-VXQQHYMZ.js → measure-NEIXU53P.js} +11 -11
- package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-6CAQG7MU.js} +19 -19
- package/dist/{media-use-63LZFAID.js → media-use-IXJFMKU7.js} +16 -9
- package/dist/{models-MWUVU4CY.js → models-TZALWUEY.js} +15 -15
- package/dist/{motionShot-U4YDT7UV.js → motionShot-OQYK6G6M.js} +24 -24
- package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-43PJLOBY.js} +15 -15
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-DRLXHOW2.js → open-EOX6QY4M.js} +20 -20
- package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-STHAXQAF.js} +19 -19
- package/dist/{pipeline-MAIRRYD6.js → pipeline-RRWZHFBQ.js} +14 -14
- package/dist/plan-JWUSMF4W.js +88 -0
- package/dist/{play-33A3EXX3.js → play-TUKTST32.js} +40 -34
- package/dist/{preflight-HSWMKB2Q.js → preflight-L42JKT6F.js} +12 -12
- package/dist/{present-HJIFEIDH.js → present-Z7HRDXPV.js} +34 -28
- package/dist/{preview-J6Z6RKMN.js → preview-HGTIRAV3.js} +31 -31
- package/dist/{probe-RA4VOGYY.js → probe-RXK44FY7.js} +17 -17
- package/dist/{producer-KWP2B4A5.js → producer-KJ2RZDJ3.js} +1 -1
- package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
- package/dist/{projectConfig-3YIGHLNE.js → projectConfig-K36NTJXP.js} +11 -11
- package/dist/{publication-QRUY2WJK.js → publication-OZWLT6K6.js} +6 -6
- package/dist/{publish-GV3I3GUL.js → publish-CRUTXNYM.js} +92 -30
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-UUITKXEQ.js → remove-background-R37HZPCG.js} +15 -15
- package/dist/{render-ZITQXHJP.js → render-EZMKBT7V.js} +57 -52
- package/dist/{render-NHVDJRFD.js → render-SU2XTMJL.js} +8 -8
- package/dist/{render-EC67XXR2.js → render-ZHCPCISN.js} +101 -937
- package/dist/{render-batch-RII4F3PD.js → render-batch-YIUOEAAL.js} +8 -8
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-R3FXDZKS.js → resolver-DLCKRKQR.js} +8 -8
- package/dist/{reverse-2GJ5Y3WM.js → reverse-4FAVXIER.js} +1 -1
- package/dist/{run-24USN7TA.js → run-H4GVEJVS.js} +8 -6
- package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-CQF5FYVI.js} +14 -14
- package/dist/service-XDQOULGD.js +68 -0
- package/dist/share-CUCQALE7.js +274 -0
- package/dist/{sherpa-YIJR47GX.js → sherpa-WZNRQUVC.js} +18 -18
- package/dist/sherpaWorker.js +1 -1
- package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +21 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
- package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
- package/dist/{skills-DM3XC7RQ.js → skills-J52DBZAK.js} +12 -12
- package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
- package/dist/{snapshot-72RQQXHW.js → snapshot-ZIRQFDA7.js} +94 -69
- package/dist/{src-SPFGPZZQ.js → src-7BGBN6SS.js} +18 -18
- package/dist/{src-C43KUEBY.js → src-C3XYMTF4.js} +12 -10
- package/dist/{start-FSYSYLI7.js → start-QG2XNMYN.js} +31 -30
- package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
- package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-TWMEFK3T.js} +28 -28
- package/dist/{status-TE74GP4Q.js → status-3UPA5WPI.js} +26 -24
- package/dist/studio/assets/{codec-DXM4vA6G.js → codec-qz1-OXLj.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-2eG1zFX5.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-Ob53qo6K.js → index-DDmhnfrS.js} +189 -189
- package/dist/studio/assets/{index-Bw4stQMm.js → index-DUveJ_YP.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-JAOHMYPG.js → studio-api-Z42OO4JJ.js} +22 -22
- package/dist/{studioServer-RHCPM4CN.js → studioServer-SMN3RMVL.js} +455 -71
- package/dist/{sync-UZJ7DOUA.js → sync-ONTI2WSI.js} +17 -17
- package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
- package/dist/{telemetry-TFOEA2PM.js → telemetry-RRXALB5D.js} +9 -9
- package/dist/{templates-2AHM5TZ3.js → templates-BHFOSD6F.js} +23 -22
- package/dist/{timeline-ZGV323MP.js → timeline-Z5IHY5TN.js} +28 -28
- package/dist/{tokens-ERUFEWUA.js → tokens-MZVEPARM.js} +2 -2
- package/dist/{transcribe-6HLYS7NV.js → transcribe-5IZS4BGW.js} +37 -36
- package/dist/{transcribe-M5UZ2XFG.js → transcribe-M5N3YZZU.js} +15 -15
- package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
- package/dist/{update-JDVI2XTM.js → update-EVPWBIKY.js} +14 -13
- package/dist/{updateCheck-GDTYPXKO.js → updateCheck-2UUEF6TC.js} +5 -3
- package/dist/{upgrade-SJKYBA4X.js → upgrade-DK45FD4K.js} +6 -4
- package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-3MPHIDSA.js} +10 -10
- package/dist/{validate-IUTHTA2N.js → validate-W27TQ367.js} +36 -36
- package/dist/{video-4BJ7WHI2.js → video-TI372QGV.js} +13 -13
- package/dist/{voices-UDSFBPZX.js → voices-FZV4PGT6.js} +30 -29
- package/dist/warmCheck.js +55 -55
- package/dist/warmCheckClient.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-2X4PQEYM.js +0 -34
- package/dist/deploy-EB3FS2BT.js +0 -361
|
@@ -4,45 +4,60 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
shareError
|
|
9
|
+
} from "./chunk-Y5DOT5NQ.js";
|
|
10
|
+
import {
|
|
11
|
+
ReviewFailed,
|
|
12
|
+
fileSha256Base64,
|
|
13
|
+
latestShareRender,
|
|
14
|
+
shareContentFingerprint,
|
|
15
|
+
shareSite,
|
|
16
|
+
trackShareInteraction,
|
|
17
|
+
versionOnPage
|
|
18
|
+
} from "./chunk-DDDSTRHU.js";
|
|
7
19
|
import {
|
|
8
20
|
acquireRenderLock,
|
|
9
21
|
describeRenderLockHolder,
|
|
10
22
|
renderJobObservabilityTelemetryPayload,
|
|
11
23
|
renderObservabilityTelemetryPayload,
|
|
12
24
|
startRenderCpuSampler
|
|
13
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-23354HMA.js";
|
|
14
26
|
import {
|
|
15
27
|
HANDOFF_READY,
|
|
16
28
|
desktopDownloadUrl,
|
|
17
29
|
desktopInstalled,
|
|
18
30
|
insideHostApp,
|
|
19
31
|
openInDesktop
|
|
20
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VZQXHYEI.js";
|
|
21
33
|
import {
|
|
22
34
|
resolveRenderBrowser
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-3J32XVJ6.js";
|
|
36
|
+
import "./chunk-ZIYXPDKY.js";
|
|
37
|
+
import "./chunk-X7MTZ4T2.js";
|
|
38
|
+
import "./chunk-M3BJEZ7E.js";
|
|
25
39
|
import {
|
|
26
40
|
loadSharpInBackground
|
|
27
41
|
} from "./chunk-NL4RCLQF.js";
|
|
42
|
+
import "./chunk-BAWGEGKD.js";
|
|
28
43
|
import "./chunk-6BEFEWFB.js";
|
|
29
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MP36L7OJ.js";
|
|
30
45
|
import "./chunk-X7MTZ4T2.js";
|
|
31
|
-
import "./chunk-GGDJLN5I.js";
|
|
32
46
|
import {
|
|
33
47
|
seekCompositionTimeline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-SUXEL7G4.js";
|
|
49
|
+
import "./chunk-JSVCF4A6.js";
|
|
50
|
+
import "./chunk-YGGZ23BB.js";
|
|
51
|
+
import "./chunk-7UUUV4PN.js";
|
|
52
|
+
import "./chunk-REJ4NIBY.js";
|
|
36
53
|
import "./chunk-262C25DQ.js";
|
|
37
|
-
import "./chunk-YJVJCNK4.js";
|
|
38
54
|
import {
|
|
39
55
|
GSAP_VENDOR_FILES,
|
|
40
56
|
readBundleFile,
|
|
41
57
|
resolveGsapVendorDir
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-RBECDLMQ.js";
|
|
58
|
+
} from "./chunk-2QTGQGYA.js";
|
|
59
|
+
import "./chunk-I35B5RWZ.js";
|
|
60
|
+
import "./chunk-2KYLVWLO.js";
|
|
46
61
|
import {
|
|
47
62
|
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
48
63
|
PREVIEW_BUNDLE_OPTIONS,
|
|
@@ -60,10 +75,12 @@ import {
|
|
|
60
75
|
previewAllowedHostsFromEnv,
|
|
61
76
|
sameOriginPost,
|
|
62
77
|
thumbnailDeviceScaleFactor
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-G55YEL2L.js";
|
|
79
|
+
import "./chunk-QWM3NY2E.js";
|
|
80
|
+
import "./chunk-XUDJ5XSQ.js";
|
|
66
81
|
import "./chunk-DONVZZLV.js";
|
|
82
|
+
import "./chunk-XSHJ37U3.js";
|
|
83
|
+
import "./chunk-2LMCARA5.js";
|
|
67
84
|
import {
|
|
68
85
|
DEFAULT_HISTORY_ROOT,
|
|
69
86
|
DELETED_VERSION,
|
|
@@ -76,79 +93,79 @@ import {
|
|
|
76
93
|
historyCache,
|
|
77
94
|
identifyFileWrite,
|
|
78
95
|
openProjectHistory
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-FK3KV32T.js";
|
|
81
|
-
import "./chunk-BJSUKOWW.js";
|
|
82
|
-
import "./chunk-ALVXFXUG.js";
|
|
96
|
+
} from "./chunk-XDRSEU2I.js";
|
|
83
97
|
import "./chunk-BZULWFMJ.js";
|
|
84
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-NQFIMBXS.js";
|
|
85
99
|
import "./chunk-LIWK3MFR.js";
|
|
86
100
|
import {
|
|
87
101
|
resolveCaptureBrowserGpuMode,
|
|
88
102
|
resolveLocalBrowserGpuMode,
|
|
89
103
|
resolveLocalWebGpu
|
|
90
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-BBL6STGK.js";
|
|
105
|
+
import {
|
|
106
|
+
isLinkFreeWithinProject
|
|
107
|
+
} from "./chunk-WXOOAAT4.js";
|
|
91
108
|
import {
|
|
92
109
|
resolveAutoProxy
|
|
93
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-SOAQ3XXB.js";
|
|
94
111
|
import "./chunk-XT7X6QCP.js";
|
|
95
|
-
import "./chunk-
|
|
112
|
+
import "./chunk-GBIASKIH.js";
|
|
96
113
|
import "./chunk-HVW7ABXD.js";
|
|
97
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-W5PW26KE.js";
|
|
98
115
|
import "./chunk-JHOCK3DG.js";
|
|
99
|
-
import "./chunk-
|
|
100
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-RCB4SGTB.js";
|
|
117
|
+
import "./chunk-76KUCQXD.js";
|
|
101
118
|
import "./chunk-AWDFDFI3.js";
|
|
102
119
|
import "./chunk-P6LJ4Y32.js";
|
|
103
120
|
import "./chunk-D3UCUI7G.js";
|
|
104
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-G2XAFJ2B.js";
|
|
105
122
|
import {
|
|
106
123
|
renderMotionBlurTelemetryPayload,
|
|
107
124
|
trackRenderComplete,
|
|
108
125
|
trackRenderError
|
|
109
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-ADYMQM7T.js";
|
|
110
127
|
import {
|
|
111
128
|
canaryDecisionsForStudio,
|
|
112
129
|
resetTelemetryPostureCache,
|
|
113
130
|
shouldTrack
|
|
114
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-YSHUIQ3I.js";
|
|
115
132
|
import "./chunk-PXVQOMKL.js";
|
|
116
133
|
import "./chunk-MCDNAIFF.js";
|
|
117
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-DMW5SSUN.js";
|
|
118
135
|
import "./chunk-JNHJX2BZ.js";
|
|
119
136
|
import "./chunk-54HJ63Q2.js";
|
|
120
137
|
import "./chunk-JCNPHRGX.js";
|
|
121
138
|
import {
|
|
122
139
|
encoderJobOptions
|
|
123
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-64F653HO.js";
|
|
141
|
+
import "./chunk-ZB2XGJSP.js";
|
|
124
142
|
import {
|
|
125
143
|
createStudioManualEditsRenderBodyScript,
|
|
126
144
|
isProjectIgnoredDir
|
|
127
145
|
} from "./chunk-EVMY7IPL.js";
|
|
128
|
-
import "./chunk-ZB2XGJSP.js";
|
|
129
146
|
import {
|
|
130
147
|
assertWebGpuAdapterAvailable,
|
|
131
148
|
compositionRequiresWebGpu
|
|
132
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-2TBW7UOF.js";
|
|
133
150
|
import "./chunk-Z5J67X44.js";
|
|
134
151
|
import "./chunk-5S7W3TUO.js";
|
|
135
152
|
import "./chunk-D3MUHMFG.js";
|
|
136
|
-
import "./chunk-
|
|
153
|
+
import "./chunk-KIAY63AB.js";
|
|
137
154
|
import {
|
|
138
155
|
isAtomicTempPath,
|
|
139
156
|
replaceFileAtomically
|
|
140
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-IEEIPTDW.js";
|
|
141
158
|
import "./chunk-3GXQPCJC.js";
|
|
142
159
|
import {
|
|
143
160
|
GSAP_CDN_VERSION,
|
|
144
161
|
fpsToNumber
|
|
145
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-EX7WPDFA.js";
|
|
146
163
|
import "./chunk-FXMKHHPO.js";
|
|
147
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-XDDBSGBD.js";
|
|
148
165
|
import "./chunk-VC76R6W2.js";
|
|
149
166
|
import {
|
|
150
167
|
realpath
|
|
151
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-HZTRKUKE.js";
|
|
152
169
|
import "./chunk-RQVDTPGD.js";
|
|
153
170
|
import "./chunk-BMDABBHG.js";
|
|
154
171
|
import "./chunk-PV4XID2A.js";
|
|
@@ -161,14 +178,14 @@ import {
|
|
|
161
178
|
} from "./chunk-FOZBANEN.js";
|
|
162
179
|
import "./chunk-K4MJX7SR.js";
|
|
163
180
|
import "./chunk-WE42NVH7.js";
|
|
164
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-CNJLBAKM.js";
|
|
165
182
|
import {
|
|
166
183
|
isWithinProjectRoot
|
|
167
|
-
} from "./chunk-
|
|
168
|
-
import "./chunk-
|
|
184
|
+
} from "./chunk-K2Z6OXEI.js";
|
|
185
|
+
import "./chunk-KRWPTZBY.js";
|
|
169
186
|
import "./chunk-FBN2M2HK.js";
|
|
170
187
|
import "./chunk-6MKM2RVL.js";
|
|
171
|
-
import "./chunk-
|
|
188
|
+
import "./chunk-N7C7U3ZR.js";
|
|
172
189
|
import "./chunk-FR7YBU3H.js";
|
|
173
190
|
import "./chunk-DPVXBVLL.js";
|
|
174
191
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -184,14 +201,14 @@ import {
|
|
|
184
201
|
import {
|
|
185
202
|
isDevMode
|
|
186
203
|
} from "./chunk-ISN5GRYI.js";
|
|
187
|
-
import "./chunk-GR2E54E6.js";
|
|
188
204
|
import "./chunk-ADVVQX4I.js";
|
|
205
|
+
import "./chunk-GR2E54E6.js";
|
|
189
206
|
import "./chunk-66W5IWLO.js";
|
|
190
207
|
import "./chunk-CPHQTXP5.js";
|
|
191
208
|
import "./chunk-QBXDU24O.js";
|
|
192
209
|
import {
|
|
193
210
|
VERSION
|
|
194
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-45ZQI734.js";
|
|
195
212
|
import "./chunk-E63BDV4Z.js";
|
|
196
213
|
import {
|
|
197
214
|
detectAgentRuntime
|
|
@@ -201,7 +218,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
201
218
|
import "./chunk-M2WBOQ2Q.js";
|
|
202
219
|
|
|
203
220
|
// src/server/studioServer.ts
|
|
204
|
-
import { Hono } from "hono";
|
|
221
|
+
import { Hono as Hono2 } from "hono";
|
|
205
222
|
import { streamSSE } from "hono/streaming";
|
|
206
223
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
207
224
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -366,7 +383,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
366
383
|
async function buildFromSource() {
|
|
367
384
|
if (!existsSync(ENTRY_TS)) return null;
|
|
368
385
|
try {
|
|
369
|
-
const mod = await import("./dist-
|
|
386
|
+
const mod = await import("./dist-ZGYPFYOH.js");
|
|
370
387
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
371
388
|
const source = mod.loadHyperframeRuntimeSource();
|
|
372
389
|
if (source) return source;
|
|
@@ -377,7 +394,7 @@ async function buildFromSource() {
|
|
|
377
394
|
}
|
|
378
395
|
async function getInlinedRuntime() {
|
|
379
396
|
try {
|
|
380
|
-
const mod = await import("./dist-
|
|
397
|
+
const mod = await import("./dist-ZGYPFYOH.js");
|
|
381
398
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
382
399
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
383
400
|
}
|
|
@@ -632,6 +649,368 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
632
649
|
});
|
|
633
650
|
}
|
|
634
651
|
|
|
652
|
+
// src/server/shareRoutes.ts
|
|
653
|
+
import { randomUUID } from "crypto";
|
|
654
|
+
import { Hono } from "hono";
|
|
655
|
+
import { bodyLimit } from "hono/body-limit";
|
|
656
|
+
|
|
657
|
+
// src/server/shareBoundary.ts
|
|
658
|
+
import { randomBytes, timingSafeEqual } from "crypto";
|
|
659
|
+
function localShareRequestAllowed(request) {
|
|
660
|
+
const host = request.headers.get("host");
|
|
661
|
+
if (!host || request.headers.get("sec-fetch-site") !== "same-origin") return false;
|
|
662
|
+
try {
|
|
663
|
+
const local = new URL(`http://${host}`);
|
|
664
|
+
if (local.host !== host || !["localhost", "127.0.0.1", "[::1]"].includes(local.hostname))
|
|
665
|
+
return false;
|
|
666
|
+
const origin = request.headers.get("origin");
|
|
667
|
+
if (origin !== null) return origin === local.origin;
|
|
668
|
+
const referer = request.headers.get("referer");
|
|
669
|
+
return referer !== null && new URL(referer).origin === local.origin;
|
|
670
|
+
} catch {
|
|
671
|
+
return false;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function createShareCsrf() {
|
|
675
|
+
const token = randomBytes(32).toString("base64url");
|
|
676
|
+
return {
|
|
677
|
+
token,
|
|
678
|
+
accepts(value) {
|
|
679
|
+
return value !== null && Buffer.byteLength(value) === Buffer.byteLength(token) && timingSafeEqual(Buffer.from(value), Buffer.from(token));
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// src/server/shareEvents.ts
|
|
685
|
+
function shareEventInput(value) {
|
|
686
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
687
|
+
if (Object.keys(value).length !== 2 || !("event" in value)) return null;
|
|
688
|
+
if (value.event === "share_link_copied" && "via" in value && value.via === "copy")
|
|
689
|
+
return { event: value.event, via: "copy" };
|
|
690
|
+
if (value.event !== "share_opened" || !("link" in value)) return null;
|
|
691
|
+
const link = ["none", "live", "changed"];
|
|
692
|
+
const chosen = link.find((item) => item === value.link);
|
|
693
|
+
return chosen ? { event: value.event, link: chosen } : null;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// src/server/sharePresentation.ts
|
|
697
|
+
function presentShare(value) {
|
|
698
|
+
const held = value.share?.held || value.share?.takedown || value.share?.sharingState?.state === "subscription_required";
|
|
699
|
+
return {
|
|
700
|
+
upToDate: value.upToDate,
|
|
701
|
+
updated: value.updated,
|
|
702
|
+
state: presentedState(value, Boolean(held)),
|
|
703
|
+
url: held ? null : value.url ?? value.previousUrl,
|
|
704
|
+
failure: value.state === "failed" ? value.version.failure : null,
|
|
705
|
+
hasReadyVersion: value.ready || Boolean(value.previousUrl),
|
|
706
|
+
manageUrl: value.manageUrl,
|
|
707
|
+
// Desktop's watcher does not cover every portable render input.
|
|
708
|
+
changed: knownChanges(value),
|
|
709
|
+
audience: value.share?.access ?? null,
|
|
710
|
+
spaceId: value.share?.space?.id ?? null,
|
|
711
|
+
source: value.source.at
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
function presentSpaces(spaces) {
|
|
715
|
+
return spaces.map((space) => ({
|
|
716
|
+
id: space.space_id,
|
|
717
|
+
name: space.name || (space.kind === "personal" ? "Personal workspace" : space.space_id),
|
|
718
|
+
bound: space.bound === true,
|
|
719
|
+
canCreate: space.can_create_review,
|
|
720
|
+
...planOffer(space.review_entitlements),
|
|
721
|
+
audiences: [
|
|
722
|
+
"private",
|
|
723
|
+
...space.review_entitlements?.allowed_collaborative_access_modes ?? []
|
|
724
|
+
],
|
|
725
|
+
used: space.review_entitlements?.projects_used_up_to_limit ?? null,
|
|
726
|
+
limit: space.review_entitlements?.project_limit ?? null
|
|
727
|
+
}));
|
|
728
|
+
}
|
|
729
|
+
function knownChanges(value) {
|
|
730
|
+
if (!value.share) return false;
|
|
731
|
+
return value.version.last && !value.version.last.current ? true : null;
|
|
732
|
+
}
|
|
733
|
+
function planOffer(entitlements) {
|
|
734
|
+
const plan = entitlements?.plan ?? null;
|
|
735
|
+
return { plan, upgradeUrl: plan === "free" ? `${shareSite()}/pricing` : null };
|
|
736
|
+
}
|
|
737
|
+
function presentedState(value, held) {
|
|
738
|
+
if (held) return "unavailable";
|
|
739
|
+
if (value.state === "failed" || value.state === "not_shared" || value.state === "link_off")
|
|
740
|
+
return value.state;
|
|
741
|
+
return value.ready ? "ready" : "processing";
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
// src/server/shareSessions.ts
|
|
745
|
+
function shareSessionKey(value) {
|
|
746
|
+
return JSON.stringify([value.owner, value.heygen, value.heygenApi]);
|
|
747
|
+
}
|
|
748
|
+
function createShareSessions(create) {
|
|
749
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
750
|
+
function session() {
|
|
751
|
+
let service = null;
|
|
752
|
+
return {
|
|
753
|
+
get: () => service ??= create(),
|
|
754
|
+
reset: () => {
|
|
755
|
+
service = null;
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
return {
|
|
760
|
+
open() {
|
|
761
|
+
const token = createShareCsrf().token;
|
|
762
|
+
if (sessions.size >= 128) {
|
|
763
|
+
const oldest = sessions.keys().next().value;
|
|
764
|
+
if (oldest) sessions.delete(oldest);
|
|
765
|
+
}
|
|
766
|
+
sessions.set(token, session());
|
|
767
|
+
return token;
|
|
768
|
+
},
|
|
769
|
+
get: (token) => sessions.get(token)
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
// src/server/shareFreshness.ts
|
|
774
|
+
var dependencies = {
|
|
775
|
+
render: latestShareRender,
|
|
776
|
+
fingerprint: shareContentFingerprint,
|
|
777
|
+
uploaded: versionOnPage,
|
|
778
|
+
checksum: fileSha256Base64
|
|
779
|
+
};
|
|
780
|
+
async function presentPortableShare(projectDir, state, deps = dependencies) {
|
|
781
|
+
const result = presentShare(state);
|
|
782
|
+
try {
|
|
783
|
+
const render = deps.render(projectDir);
|
|
784
|
+
if (!render?.contentFingerprint) return result;
|
|
785
|
+
const last = await deps.uploaded(projectDir);
|
|
786
|
+
if (!matchesUpload(state, last)) return result;
|
|
787
|
+
if (await deps.checksum(render.path) !== last.checksum) return result;
|
|
788
|
+
const current = await deps.fingerprint(projectDir);
|
|
789
|
+
result.changed = current && current !== render.contentFingerprint ? true : null;
|
|
790
|
+
} catch {
|
|
791
|
+
}
|
|
792
|
+
return result;
|
|
793
|
+
}
|
|
794
|
+
function matchesUpload(state, last) {
|
|
795
|
+
return Boolean(
|
|
796
|
+
last?.checksum && last.projectId === state.share?.projectId && last.exportedAt === state.version.last?.exportedAt
|
|
797
|
+
);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
// src/server/shareRoutes.ts
|
|
801
|
+
var AUDIENCES = ["public", "team", "invite", "private"];
|
|
802
|
+
function actionInput(value) {
|
|
803
|
+
if (!isRecord(value)) return null;
|
|
804
|
+
const record = Object.fromEntries(Object.entries(value));
|
|
805
|
+
if (Object.keys(record).some(
|
|
806
|
+
(key) => !["action", "audience", "space", "videoOnly", "includeSource"].includes(key)
|
|
807
|
+
))
|
|
808
|
+
return null;
|
|
809
|
+
const { action, audience, space, videoOnly, includeSource } = record;
|
|
810
|
+
if (!isAction(action)) return null;
|
|
811
|
+
const chosen = AUDIENCES.find((mode) => mode === audience);
|
|
812
|
+
if (audience !== void 0 && !chosen) return null;
|
|
813
|
+
const options = actionOptions(space, videoOnly, includeSource);
|
|
814
|
+
if (!options) return null;
|
|
815
|
+
if (["share", "access"].includes(action) && !chosen) return null;
|
|
816
|
+
return {
|
|
817
|
+
action,
|
|
818
|
+
audience: chosen,
|
|
819
|
+
...options
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
function isRecord(value) {
|
|
823
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
824
|
+
}
|
|
825
|
+
function isAction(value) {
|
|
826
|
+
return ["share", "update", "access", "off", "on", "login"].some((action) => action === value);
|
|
827
|
+
}
|
|
828
|
+
function actionOptions(space, videoOnly, includeSource) {
|
|
829
|
+
if (!validSpace(space)) return null;
|
|
830
|
+
if (![videoOnly, includeSource].every(optionalBoolean)) return null;
|
|
831
|
+
if (includeSource === true && videoOnly === true) return null;
|
|
832
|
+
const options = {};
|
|
833
|
+
if (typeof space === "string") options.space = space;
|
|
834
|
+
if (videoOnly === true) options.videoOnly = true;
|
|
835
|
+
if (includeSource === true) options.includeSource = true;
|
|
836
|
+
return options;
|
|
837
|
+
}
|
|
838
|
+
function optionalBoolean(value) {
|
|
839
|
+
return value === void 0 || typeof value === "boolean";
|
|
840
|
+
}
|
|
841
|
+
function validSpace(value) {
|
|
842
|
+
return value === void 0 || typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value);
|
|
843
|
+
}
|
|
844
|
+
var defaultCreate = async (path, progress) => (await import("./service-XDQOULGD.js")).createShareService(path, progress, {
|
|
845
|
+
surface: "local_studio",
|
|
846
|
+
pinIdentity: true
|
|
847
|
+
});
|
|
848
|
+
async function defaultLogin() {
|
|
849
|
+
const { startAuthorizationCodeFlow } = await import("./oauth-SAVP2YM4.js");
|
|
850
|
+
await startAuthorizationCodeFlow({ timeoutMs: 3e5 });
|
|
851
|
+
}
|
|
852
|
+
function mountShareRoutes(app, projectDir, create = defaultCreate, login = defaultLogin, track = trackShareInteraction) {
|
|
853
|
+
const routes = new Hono();
|
|
854
|
+
let job = null;
|
|
855
|
+
const hasRunningJob = () => job?.state === "running";
|
|
856
|
+
let jobOwner = null;
|
|
857
|
+
let loginToken = null;
|
|
858
|
+
const sessions = createShareSessions(
|
|
859
|
+
() => create(projectDir, (progress) => {
|
|
860
|
+
if (job?.state === "running" && progress) job.step = progress.step;
|
|
861
|
+
})
|
|
862
|
+
);
|
|
863
|
+
const visibleJob = async (token) => {
|
|
864
|
+
if (loginToken === token && job && job.state !== "done") return job;
|
|
865
|
+
const session = sessions.get(token);
|
|
866
|
+
if (!session) return null;
|
|
867
|
+
const key = shareSessionKey(await (await session.get()).checkSession());
|
|
868
|
+
return key === jobOwner ? job : null;
|
|
869
|
+
};
|
|
870
|
+
routes.use("*", async (c, next) => {
|
|
871
|
+
c.header("Cache-Control", "no-store");
|
|
872
|
+
if (!localShareRequestAllowed(c.req.raw))
|
|
873
|
+
return c.json({ code: "forbidden", message: "Open sharing from this local Studio." }, 403);
|
|
874
|
+
if (c.req.path !== "/api/share/bootstrap" && !sessions.get(c.req.header("x-hyperframes-share-csrf") ?? ""))
|
|
875
|
+
return c.json({ code: "forbidden", message: "Refresh Studio to reconnect sharing." }, 403);
|
|
876
|
+
return next();
|
|
877
|
+
});
|
|
878
|
+
routes.use("*", bodyLimit({ maxSize: 4096 }));
|
|
879
|
+
routes.get("/bootstrap", (c) => c.json({ csrf: sessions.open() }));
|
|
880
|
+
routes.post("/events", async (c) => {
|
|
881
|
+
const event = shareEventInput(await c.req.json().catch(() => null));
|
|
882
|
+
if (!event) return c.json({ code: "invalid_event", message: "Unknown sharing event." }, 400);
|
|
883
|
+
track(event, "local_studio");
|
|
884
|
+
return c.body(null, 204);
|
|
885
|
+
});
|
|
886
|
+
routes.get("/snapshot", async (c) => {
|
|
887
|
+
try {
|
|
888
|
+
const sharing = await sessions.get(c.req.header("x-hyperframes-share-csrf")).get();
|
|
889
|
+
const [state, spaces, capabilities] = await Promise.all([
|
|
890
|
+
sharing.status(),
|
|
891
|
+
sharing.spaces(),
|
|
892
|
+
sharing.capabilities()
|
|
893
|
+
]);
|
|
894
|
+
return c.json({
|
|
895
|
+
versionSharing: capabilities.versionSharing,
|
|
896
|
+
share: await presentPortableShare(projectDir, state),
|
|
897
|
+
spaces: presentSpaces(spaces),
|
|
898
|
+
job: await visibleJob(c.req.header("x-hyperframes-share-csrf"))
|
|
899
|
+
});
|
|
900
|
+
} catch (error) {
|
|
901
|
+
return c.json(
|
|
902
|
+
{
|
|
903
|
+
...await presentError(error, c.req.header("x-hyperframes-share-csrf")),
|
|
904
|
+
job: loginToken === c.req.header("x-hyperframes-share-csrf") && job && job.state !== "done" ? job : null
|
|
905
|
+
},
|
|
906
|
+
400
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
routes.get("/jobs/:id", async (c) => {
|
|
911
|
+
try {
|
|
912
|
+
const current = await visibleJob(c.req.header("x-hyperframes-share-csrf"));
|
|
913
|
+
return current?.id === c.req.param("id") ? c.json(current) : c.json(
|
|
914
|
+
{ code: "job_not_found", message: "Refresh sharing to see the current state." },
|
|
915
|
+
404
|
|
916
|
+
);
|
|
917
|
+
} catch (error) {
|
|
918
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
routes.post("/actions", async (c) => {
|
|
922
|
+
const input = actionInput(await c.req.json().catch(() => null));
|
|
923
|
+
if (!input)
|
|
924
|
+
return c.json(
|
|
925
|
+
{ code: "invalid_action", message: "Choose a valid sharing action and audience." },
|
|
926
|
+
400
|
|
927
|
+
);
|
|
928
|
+
const token = c.req.header("x-hyperframes-share-csrf");
|
|
929
|
+
const session = sessions.get(token);
|
|
930
|
+
if (hasRunningJob())
|
|
931
|
+
return c.json(
|
|
932
|
+
{
|
|
933
|
+
code: "share_busy",
|
|
934
|
+
message: "Sharing is already in progress.",
|
|
935
|
+
job: await visibleJob(token).catch(() => null)
|
|
936
|
+
},
|
|
937
|
+
409
|
|
938
|
+
);
|
|
939
|
+
let owner = null;
|
|
940
|
+
if (input.action !== "login") {
|
|
941
|
+
try {
|
|
942
|
+
owner = await sessionOwner(session);
|
|
943
|
+
} catch (error) {
|
|
944
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
if (hasRunningJob())
|
|
948
|
+
return c.json({ code: "share_busy", message: "Sharing is already in progress." }, 409);
|
|
949
|
+
jobOwner = owner;
|
|
950
|
+
loginToken = input.action === "login" ? token : null;
|
|
951
|
+
const current = {
|
|
952
|
+
id: randomUUID(),
|
|
953
|
+
state: "running",
|
|
954
|
+
step: actionStep(input),
|
|
955
|
+
result: null,
|
|
956
|
+
error: null
|
|
957
|
+
};
|
|
958
|
+
job = current;
|
|
959
|
+
void runJob(current, input, session, token);
|
|
960
|
+
return c.json(current, 202);
|
|
961
|
+
});
|
|
962
|
+
async function runJob(current, input, session, token) {
|
|
963
|
+
try {
|
|
964
|
+
if (input.action === "login") {
|
|
965
|
+
await login();
|
|
966
|
+
session.reset();
|
|
967
|
+
}
|
|
968
|
+
const sharing = await session.get();
|
|
969
|
+
const result = await executeAction(sharing, input);
|
|
970
|
+
jobOwner = shareSessionKey(await sharing.checkSession());
|
|
971
|
+
current.result = await presentPortableShare(projectDir, result);
|
|
972
|
+
current.state = "done";
|
|
973
|
+
} catch (error) {
|
|
974
|
+
current.error = await presentError(error, token);
|
|
975
|
+
current.state = "failed";
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
async function presentError(error, token) {
|
|
979
|
+
if (!(error instanceof ReviewFailed) || error.status !== 401) return shareError(error);
|
|
980
|
+
const session = sessions.get(token);
|
|
981
|
+
if (!session) return shareError(error);
|
|
982
|
+
try {
|
|
983
|
+
await (await session.get()).checkSession(true);
|
|
984
|
+
return {
|
|
985
|
+
code: "sharing_not_admitted",
|
|
986
|
+
message: "You're signed in, but sharing isn't accepting this sign-in. Try again later or contact support."
|
|
987
|
+
};
|
|
988
|
+
} catch (verificationError) {
|
|
989
|
+
return shareError(verificationError);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
app.route("/api/share", routes);
|
|
993
|
+
}
|
|
994
|
+
function executeAction(sharing, input) {
|
|
995
|
+
if (input.action === "login") return sharing.status();
|
|
996
|
+
if (input.action === "access" && input.audience) return sharing.setAccess(input.audience);
|
|
997
|
+
if (input.action === "off") return sharing.linkOff();
|
|
998
|
+
if (input.action === "on") return sharing.linkOn();
|
|
999
|
+
return sharing.run({
|
|
1000
|
+
action: input.action === "update" ? "update" : "share",
|
|
1001
|
+
audience: input.audience,
|
|
1002
|
+
space: input.space,
|
|
1003
|
+
videoOnly: input.videoOnly,
|
|
1004
|
+
includeSource: input.includeSource
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
function actionStep(input) {
|
|
1008
|
+
return input.action === "login" ? "signing_in" : "preparing";
|
|
1009
|
+
}
|
|
1010
|
+
async function sessionOwner(session) {
|
|
1011
|
+
return shareSessionKey(await (await session.get()).checkSession());
|
|
1012
|
+
}
|
|
1013
|
+
|
|
635
1014
|
// src/server/thumbnailPages.ts
|
|
636
1015
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
637
1016
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -701,13 +1080,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
701
1080
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
702
1081
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
703
1082
|
async function loadStudioProducer() {
|
|
704
|
-
if (!isDevMode()) return await import("./src-
|
|
1083
|
+
if (!isDevMode()) return await import("./src-7BGBN6SS.js");
|
|
705
1084
|
if (!process.versions.bun) {
|
|
706
1085
|
throw new Error(
|
|
707
1086
|
"Studio dev-mode rendering requires bun (the producer is loaded from TypeScript source, which Node cannot resolve). Restart the studio with `bun run studio`."
|
|
708
1087
|
);
|
|
709
1088
|
}
|
|
710
|
-
return await import("./src-
|
|
1089
|
+
return await import("./src-7BGBN6SS.js");
|
|
711
1090
|
}
|
|
712
1091
|
function resolveDistDir() {
|
|
713
1092
|
return resolveStudioBundle().dir;
|
|
@@ -823,7 +1202,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
823
1202
|
try {
|
|
824
1203
|
if (isShuttingDown()) return null;
|
|
825
1204
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
826
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
1205
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-C3XYMTF4.js");
|
|
827
1206
|
let executablePath;
|
|
828
1207
|
try {
|
|
829
1208
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -998,7 +1377,7 @@ function createStudioServer(options) {
|
|
|
998
1377
|
resolveProject: (id) => id === projectId ? project : null,
|
|
999
1378
|
async bundle(dir, options2) {
|
|
1000
1379
|
try {
|
|
1001
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1380
|
+
const { bundleToSingleHtml } = await import("./compiler-5ZDHBKBQ.js");
|
|
1002
1381
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1003
1382
|
html = html.replace(
|
|
1004
1383
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1011,13 +1390,16 @@ function createStudioServer(options) {
|
|
|
1011
1390
|
}
|
|
1012
1391
|
},
|
|
1013
1392
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1014
|
-
const { injectDeterministicFontFaces } = await import("./deterministicFonts-
|
|
1015
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1016
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1017
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
1393
|
+
const { injectDeterministicFontFaces } = await import("./deterministicFonts-2ZPRAI3C.js");
|
|
1394
|
+
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-SAKETEZ2.js");
|
|
1395
|
+
const { prepareHeifImageInputs } = await import("./heifImagePrep-GXIMK4HK.js");
|
|
1396
|
+
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-3MPHIDSA.js");
|
|
1018
1397
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1019
1398
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1020
1399
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
1400
|
+
const preparedDirs = [gifOutputDir, gifDownloadDir, heifOutputDir];
|
|
1401
|
+
if (!preparedDirs.every((dir) => isLinkFreeWithinProject(project2.dir, dir)))
|
|
1402
|
+
return injectDeterministicFontFaces(html);
|
|
1021
1403
|
const { html: htmlWithJpegs } = await prepareHeifImageInputs(html, {
|
|
1022
1404
|
projectDir: project2.dir,
|
|
1023
1405
|
downloadDir: gifDownloadDir,
|
|
@@ -1046,7 +1428,7 @@ function createStudioServer(options) {
|
|
|
1046
1428
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1047
1429
|
},
|
|
1048
1430
|
async lint(html, opts) {
|
|
1049
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1431
|
+
const { lintHyperframeHtml } = await import("./dist-3MFNUZSN.js");
|
|
1050
1432
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1051
1433
|
},
|
|
1052
1434
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1192,7 +1574,7 @@ function createStudioServer(options) {
|
|
|
1192
1574
|
startBackgroundRemoval(opts) {
|
|
1193
1575
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1194
1576
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1195
|
-
const pipeline = await import("./pipeline-
|
|
1577
|
+
const pipeline = await import("./pipeline-RRWZHFBQ.js").catch(
|
|
1196
1578
|
() => import(sourcePipelinePath)
|
|
1197
1579
|
);
|
|
1198
1580
|
return pipeline.render(renderOpts);
|
|
@@ -1277,8 +1659,8 @@ function createStudioServer(options) {
|
|
|
1277
1659
|
}
|
|
1278
1660
|
},
|
|
1279
1661
|
async listRegistryCatalog() {
|
|
1280
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1281
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1662
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-DLCKRKQR.js");
|
|
1663
|
+
const { loadProjectConfig } = await import("./projectConfig-K36NTJXP.js");
|
|
1282
1664
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1283
1665
|
const entries = await listRegistryItems(void 0, registry);
|
|
1284
1666
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1287,9 +1669,9 @@ function createStudioServer(options) {
|
|
|
1287
1669
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1288
1670
|
},
|
|
1289
1671
|
async installRegistryBlock(opts) {
|
|
1290
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1291
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1292
|
-
const { registryTargetPath } = await import("./publication-
|
|
1672
|
+
const { addToProject, primaryInstalledTarget } = await import("./add-GDXM36YQ.js");
|
|
1673
|
+
const { recordRewrittenInstall } = await import("./installer-LOUR7G4R.js");
|
|
1674
|
+
const { registryTargetPath } = await import("./publication-OZWLT6K6.js");
|
|
1293
1675
|
const { result, item } = await addToProject({
|
|
1294
1676
|
name: opts.blockName,
|
|
1295
1677
|
projectDir: opts.project.dir,
|
|
@@ -1313,7 +1695,7 @@ function createStudioServer(options) {
|
|
|
1313
1695
|
};
|
|
1314
1696
|
}
|
|
1315
1697
|
};
|
|
1316
|
-
const app = new
|
|
1698
|
+
const app = new Hono2();
|
|
1317
1699
|
const allowedHosts = previewAllowedHostsFromEnv();
|
|
1318
1700
|
app.use(async function refuseUnknownHost(c, next) {
|
|
1319
1701
|
const host = c.req.header("host") ?? new URL(c.req.url).host;
|
|
@@ -1404,8 +1786,8 @@ function createStudioServer(options) {
|
|
|
1404
1786
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1405
1787
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1406
1788
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1407
|
-
import("./preflight-
|
|
1408
|
-
import("./ffmpeg-
|
|
1789
|
+
import("./preflight-L42JKT6F.js"),
|
|
1790
|
+
import("./ffmpeg-PXKIZL2X.js")
|
|
1409
1791
|
]);
|
|
1410
1792
|
const { outcomes } = await runEnvironmentChecks();
|
|
1411
1793
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1422,9 +1804,10 @@ function createStudioServer(options) {
|
|
|
1422
1804
|
});
|
|
1423
1805
|
});
|
|
1424
1806
|
mountDesktopRoutes(app, projectDir);
|
|
1807
|
+
mountShareRoutes(app, projectDir);
|
|
1425
1808
|
let cachedFFmpegPath;
|
|
1426
1809
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1427
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1810
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-PXKIZL2X.js");
|
|
1428
1811
|
if (!cachedFFmpegPath) {
|
|
1429
1812
|
cachedFFmpegPath = findFFmpeg();
|
|
1430
1813
|
}
|
|
@@ -1529,9 +1912,10 @@ function createStudioServer(options) {
|
|
|
1529
1912
|
}
|
|
1530
1913
|
let html = indexContent.toString("utf-8");
|
|
1531
1914
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1915
|
+
html = html.replace(
|
|
1916
|
+
"<head>",
|
|
1917
|
+
`<head><meta name="hyperframes-local-share" content="1">${headScript}`
|
|
1918
|
+
);
|
|
1535
1919
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1536
1920
|
});
|
|
1537
1921
|
const shutdown = async () => {
|
|
@@ -1540,7 +1924,7 @@ function createStudioServer(options) {
|
|
|
1540
1924
|
});
|
|
1541
1925
|
const renders = [...inFlightRenders];
|
|
1542
1926
|
for (const [abortController] of renders) abortController.abort();
|
|
1543
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1927
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-C3XYMTF4.js");
|
|
1544
1928
|
killTrackedProcesses();
|
|
1545
1929
|
const closeBrowsers = Promise.allSettled([
|
|
1546
1930
|
closeThumbnailBrowser().catch(() => {
|