hyperframes 0.9.32 → 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-HYI4YJC5.js → add-GDXM36YQ.js} +13 -13
- package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-KPNDH2EI.js} +7 -7
- package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-SAKETEZ2.js} +7 -7
- package/dist/api.js +39 -38
- package/dist/{asset-7FG3M3FQ.js → asset-KOJC72AQ.js} +2 -2
- package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-Q4ZFUI6G.js} +8 -8
- package/dist/{audio-R6ZG62DU.js → audio-XZBBXKQC.js} +25 -24
- package/dist/{auth-IPDYZXOG.js → auth-X45YSZGE.js} +4 -4
- package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-77XWQ564.js} +3 -3
- package/dist/{avatars-A45VFUZ4.js → avatars-D3D22TI2.js} +16 -15
- package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-2L2RWFJ3.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-VBSYVQA7.js → batchRender-O7J47H2Z.js} +3 -3
- package/dist/{beats-UPJ3KANG.js → beats-6RVVU56H.js} +11 -11
- package/dist/{benchmark-2RWYJGL2.js → benchmark-D5JRNAVQ.js} +10 -10
- package/dist/{billing-MD66MJTA.js → billing-WT4DGZII.js} +15 -14
- package/dist/{browser-JXCS62NX.js → browser-2OR737P4.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
- package/dist/{capture-DJ4WRP62.js → capture-23X2CK56.js} +44 -24
- package/dist/{capture-M6DT5WZT.js → capture-B34FTO6G.js} +3 -3
- package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-TPZKEVKN.js} +15 -15
- package/dist/{catalog-GW45OWKU.js → catalog-ACHSYU5Z.js} +13 -13
- package/dist/{catch-up-YKJQ4IYC.js → catch-up-FGANS2BB.js} +8 -8
- package/dist/{check-7QTKMPGA.js → check-DXK4L5WP.js} +44 -44
- package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-4ISYJED3.js} +15 -15
- package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-5ECMULMP.js} +37 -37
- package/dist/{chunk-5VN7ZXJR.js → chunk-23354HMA.js} +1 -1
- package/dist/{chunk-GCJRV7LU.js → chunk-2I4DQZLQ.js} +1 -1
- package/dist/{chunk-WTO4DHBH.js → chunk-2KYLVWLO.js} +1 -1
- package/dist/{chunk-3R2X2VKB.js → chunk-2LMCARA5.js} +1 -1
- package/dist/{chunk-TVQNABOI.js → chunk-2QTGQGYA.js} +1 -1
- package/dist/{chunk-TLUDJLBN.js → chunk-2RBQLV6B.js} +1 -1
- package/dist/{chunk-EJPWGGPK.js → chunk-2TBW7UOF.js} +5150 -4985
- package/dist/{chunk-P5E3RHW3.js → chunk-3J32XVJ6.js} +1 -1
- package/dist/{chunk-LHFBKUVY.js → chunk-45ZQI734.js} +2 -2
- package/dist/{chunk-G7NKYELQ.js → chunk-4CHGNFCS.js} +4 -4
- package/dist/{chunk-34S7GYVK.js → chunk-4DLYTSWQ.js} +15 -8
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-SXOIG6VG.js → chunk-4US5QCXR.js} +231 -176
- package/dist/{chunk-XH6LGDIB.js → chunk-4WZU4FYS.js} +3 -3
- package/dist/{chunk-NNOAOQLT.js → chunk-5GYTBKZA.js} +2 -2
- package/dist/{chunk-K72X2YXR.js → chunk-5RVPI6QL.js} +4 -4
- package/dist/{chunk-M6FNCANA.js → chunk-6QEEF5RR.js} +1 -1
- package/dist/{chunk-MYFAVVA6.js → chunk-6RV2QY4K.js} +29 -29
- package/dist/{chunk-LXIEKLAC.js → chunk-6ZVUTYNB.js} +5 -5
- package/dist/{chunk-JMV63CNH.js → chunk-76KUCQXD.js} +1 -1
- package/dist/{chunk-GWSCUFGL.js → chunk-7LTXT7ME.js} +11 -9
- package/dist/{chunk-LBQQNNRC.js → chunk-7UUUV4PN.js} +1 -1
- package/dist/{chunk-6BI6URO2.js → chunk-A4VXOJZO.js} +4 -3
- package/dist/{chunk-2W4VQ3YZ.js → chunk-ADYMQM7T.js} +2 -2
- package/dist/{chunk-PXY3JZP2.js → chunk-AIC7T7CC.js} +2 -2
- package/dist/{chunk-KG3TONXU.js → chunk-B66UZ2YK.js} +9 -9
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-SIRYW7SY.js → chunk-BBL6STGK.js} +2 -2
- package/dist/{chunk-GTHRXU37.js → chunk-C2VZ7UPE.js} +18 -18
- package/dist/{chunk-I3QXWJ7V.js → chunk-CDI3CCAU.js} +5 -5
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-4CSZZXL6.js → chunk-CHM3QYLF.js} +3 -3
- package/dist/{chunk-VB3JZKMN.js → chunk-CNJLBAKM.js} +29 -8
- package/dist/chunk-DDDSTRHU.js +3890 -0
- package/dist/{chunk-GJUL3PRV.js → chunk-DGC2RIQE.js} +3 -3
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-HXQDDCGY.js → chunk-DMZER7D5.js} +1 -1
- package/dist/{chunk-XPT4GC6X.js → chunk-ERJBWDPM.js} +6 -6
- package/dist/{chunk-NXSKZE3C.js → chunk-ETWXZQN5.js} +1 -1
- package/dist/{chunk-E5S4QMX7.js → chunk-EX533ULK.js} +1 -1
- package/dist/{chunk-3367VNGK.js → chunk-EX7WPDFA.js} +1 -1
- package/dist/{chunk-JHX76QFC.js → chunk-FRH3CPW5.js} +1 -1
- package/dist/{chunk-EXW2LV4K.js → chunk-G55YEL2L.js} +24 -24
- package/dist/{chunk-WLNQAJQC.js → chunk-GHLLC6LJ.js} +2 -2
- package/dist/{chunk-SFPIVVUE.js → chunk-HEXTAQYG.js} +1 -1
- package/dist/{chunk-ADP2GIBS.js → chunk-HMB3IAVP.js} +1 -1
- package/dist/{chunk-Z6X64P6C.js → chunk-HPKW6UVW.js} +6 -6
- package/dist/{chunk-BA3EQ2KL.js → chunk-I35B5RWZ.js} +3 -3
- package/dist/{chunk-2NMBD5AH.js → chunk-I3PA54IU.js} +1 -1
- package/dist/{chunk-AOQRVS63.js → chunk-IYLGUQFR.js} +7 -5
- package/dist/chunk-JCJJCYCP.js +392 -0
- package/dist/{chunk-G6JLFSII.js → chunk-JSVCF4A6.js} +4 -4
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-YIE5FU73.js → chunk-KIAY63AB.js} +37 -3
- package/dist/{chunk-X6DWLN55.js → chunk-L6BFXQ6S.js} +7 -3
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-M6LAGO6O.js → chunk-MA35E5OY.js} +3 -3
- package/dist/{chunk-XB7HE2R5.js → chunk-MDBEAWP2.js} +3 -3
- package/dist/{chunk-3HT3UGF2.js → chunk-MDGNQWFN.js} +1 -1
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-5FFYMVRD.js → chunk-MP36L7OJ.js} +1 -1
- package/dist/{chunk-YCTWMO3G.js → chunk-MVIUSNPZ.js} +1 -1
- package/dist/{chunk-6SNGKC6B.js → chunk-N2C7WJDG.js} +1 -1
- package/dist/{chunk-3PHCFSPD.js → chunk-NQFIMBXS.js} +2 -2
- package/dist/{chunk-AZ2QJETV.js → chunk-O2T6ZTLN.js} +1 -1
- package/dist/{chunk-2T7EDEKE.js → chunk-O5CNNVRY.js} +7 -7
- package/dist/{chunk-5GXMZIQZ.js → chunk-OD7PLYYX.js} +7 -7
- package/dist/{chunk-TZH6HNZH.js → chunk-PNP2BO3U.js} +1 -1
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-P7TCIUP2.js → chunk-QWM3NY2E.js} +3 -3
- package/dist/{chunk-Y3YHDU7T.js → chunk-R45WFVRA.js} +1 -1
- package/dist/{chunk-UWMOMAYI.js → chunk-RCB4SGTB.js} +2 -2
- package/dist/{chunk-W3HNLDK6.js → chunk-RGYOCAHC.js} +2 -2
- package/dist/{chunk-CMYUPVMI.js → chunk-ROXILOZ6.js} +2 -2
- package/dist/{chunk-EBG5RCPM.js → chunk-SIGASWB7.js} +4 -4
- package/dist/{chunk-KFXHBP2E.js → chunk-SOAQ3XXB.js} +1 -1
- package/dist/{chunk-LJMTEZOP.js → chunk-SUXEL7G4.js} +15 -15
- package/dist/{chunk-6MTSP2XE.js → chunk-SWPI27QV.js} +7 -7
- package/dist/{chunk-RCRUWNQ4.js → chunk-T3GSTIBS.js} +2 -2
- package/dist/{chunk-L72MPEM2.js → chunk-U77L3ZQZ.js} +1 -1
- package/dist/{chunk-6NNLDCX4.js → chunk-UE2WSWNA.js} +1 -1
- package/dist/{chunk-YMIEJZB6.js → chunk-VKZSAAXZ.js} +2 -2
- package/dist/chunk-VQJLTYEK.js +453 -0
- package/dist/{chunk-TTSLKH63.js → chunk-VZQXHYEI.js} +2 -2
- package/dist/{chunk-D7NNNL2K.js → chunk-W2FSQBUR.js} +17 -17
- package/dist/{chunk-AWT5FHTN.js → chunk-W5PW26KE.js} +1 -1
- package/dist/{chunk-KXOKZJBZ.js → chunk-WIMVXPYG.js} +12 -12
- package/dist/{chunk-KAG5KXNO.js → chunk-WYPRTHXQ.js} +1 -1
- package/dist/{chunk-YAZQBB2S.js → chunk-XDDBSGBD.js} +1 -1
- package/dist/{chunk-6RFCS4IU.js → chunk-XFXCI4IP.js} +7 -5
- package/dist/{chunk-2Z42EUHG.js → chunk-XQWWFIBR.js} +1 -1
- package/dist/{chunk-H7AJLEBR.js → chunk-XSHJ37U3.js} +3 -3
- package/dist/{chunk-HWMNSWEA.js → chunk-XUDJ5XSQ.js} +2 -2
- package/dist/{chunk-D6BV6TTI.js → chunk-XVVPEWNX.js} +1 -1
- package/dist/chunk-Y5DOT5NQ.js +57 -0
- package/dist/{chunk-HDCVU64B.js → chunk-YDG3OXH3.js} +3 -2
- package/dist/{chunk-H4C3P2KV.js → chunk-YNFHZ4RI.js} +2 -2
- package/dist/{chunk-PVSRPNIV.js → chunk-YSHUIQ3I.js} +2 -2
- package/dist/chunk-YTUPQTXA.js +560 -0
- package/dist/{chunk-262ADJJN.js → chunk-ZOAANTVI.js} +1 -1
- package/dist/{clean-MJBET4EN.js → clean-3IN64RHM.js} +21 -21
- package/dist/cli.js +68 -66
- package/dist/{cloud-WEDQYHZE.js → cloud-LBUZBUP6.js} +4 -4
- package/dist/{cloud-Z4Q76MLS.js → cloud-SVYXHFEG.js} +6 -5
- package/dist/{cloudrun-2KGSRAKA.js → cloudrun-PZOF2QGL.js} +5 -5
- package/dist/{compare-MJKWQOD7.js → compare-UOJ3LXQQ.js} +35 -35
- package/dist/{compiler-ETXRTUQC.js → compiler-5ZDHBKBQ.js} +6 -4
- package/dist/{component-PZGKEJ6L.js → component-EVIPLTTJ.js} +3 -3
- package/dist/{compositions-N3FEEWH7.js → compositions-R4GG5FBO.js} +13 -13
- 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-MWABBM7Q.js → curve-LR3PSRW3.js} +12 -12
- package/dist/{cuts-BQFSSNY7.js → cuts-DHCOBAFT.js} +13 -13
- package/dist/{delete-HPHGJABK.js → delete-MMGGU3QP.js} +9 -8
- package/dist/{deploy-JY2QOB5F.js → deploy-SKIGUTM2.js} +7 -7
- package/dist/{describeProject-S6AGYZWL.js → describeProject-L7HNTBPV.js} +8 -8
- package/dist/{destroy-AZK7J4IR.js → destroy-5HSMMDH7.js} +6 -6
- package/dist/{diff-XDNFCAU4.js → diff-KR7VKPYL.js} +40 -39
- package/dist/{dist-6EE3Y4M7.js → dist-3MFNUZSN.js} +2 -2
- package/dist/{dist-EYEYDD4F.js → dist-HK3AZNNL.js} +13 -13
- package/dist/{dist-TYGDYK56.js → dist-ZGYPFYOH.js} +2 -2
- package/dist/{doctor-6IRSMKZD.js → doctor-G7VGNSA5.js} +12 -12
- package/dist/{energy-VCJ2FJEF.js → energy-H7EEH6WO.js} +13 -13
- package/dist/{events-QQYBD7JM.js → events-5ATZCZTK.js} +4 -4
- package/dist/{events-DNTIMCUM.js → events-ASG27IXP.js} +15 -15
- package/dist/{events-M6A7BT3V.js → events-YD6N7OPQ.js} +7 -7
- package/dist/execute-OAS454OB.js +109 -0
- package/dist/{extract-X3IVXYHX.js → extract-645SENLA.js} +16 -16
- package/dist/{face-MZHXKBDB.js → face-WRT5XH4I.js} +14 -14
- package/dist/{feedback-TAMGYFUO.js → feedback-3LKLR5MV.js} +15 -14
- package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-PXKIZL2X.js} +7 -7
- package/dist/{figma-WMD7AR2S.js → figma-RIEVJJBW.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -12
- package/dist/{frames-OU2UOLBU.js → frames-OTB3J5W3.js} +14 -14
- package/dist/{generate-6F6QEFXW.js → generate-IUKCZW2D.js} +27 -26
- package/dist/{get-VVDO7DXG.js → get-6WVQ7TBV.js} +9 -8
- package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-HXSVAEU4.js} +7 -7
- package/dist/{grade-compare-O6LY2U73.js → grade-compare-TCAYHDEF.js} +37 -37
- package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-GXIMK4HK.js} +8 -8
- package/dist/{help-XLSTTDHR.js → help-RGOL5EJD.js} +2 -1
- package/dist/{history-DBCCWBDG.js → history-XKPRGJGS.js} +10 -10
- 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-E46BWAQ7.js → info-EYBBC42V.js} +15 -15
- package/dist/{init-23TG5W7S.js → init-F2FWPSMA.js} +29 -29
- package/dist/{ink-6UFSNJRW.js → ink-BWFERAAT.js} +13 -13
- package/dist/{inspect-RKI6XACH.js → inspect-74N7L3BW.js} +34 -34
- package/dist/{installer-JWPK75BR.js → installer-LOUR7G4R.js} +4 -4
- package/dist/{keyframes-J65V5A2G.js → keyframes-WB5PTKFE.js} +13 -11
- package/dist/{lambda-RZSXXBJU.js → lambda-JYCNXUKB.js} +12 -12
- package/dist/{layout-RJQUOYWB.js → layout-P52EVR24.js} +34 -34
- package/dist/{lint-4TUHKKA2.js → lint-SL55KAS2.js} +12 -12
- package/dist/{lintProject-R6RTBSCZ.js → lintProject-46WU53VC.js} +2 -2
- package/dist/{list-HOD2N4VS.js → list-LN6CQH52.js} +11 -10
- package/dist/{localPage-TC4NC3VL.js → localPage-L6OJU3UH.js} +7 -7
- package/dist/{login-NTOS3HKD.js → login-WTOAMDID.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-GC63E2I7.js → look-O6ESLJRP.js} +13 -13
- package/dist/{manager-FICBET24.js → manager-CMEZWENF.js} +8 -8
- package/dist/{measure-WTQCSQ55.js → measure-NEIXU53P.js} +11 -11
- package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-6CAQG7MU.js} +15 -15
- package/dist/{media-use-K75FDXJ3.js → media-use-IXJFMKU7.js} +9 -7
- package/dist/{models-JKOA542M.js → models-TZALWUEY.js} +11 -11
- package/dist/{motionShot-A3TYKTQU.js → motionShot-OQYK6G6M.js} +20 -20
- package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-43PJLOBY.js} +11 -11
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-F6GI4TRA.js → open-EOX6QY4M.js} +13 -13
- package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-STHAXQAF.js} +13 -13
- package/dist/{pipeline-7P7LGGQG.js → pipeline-RRWZHFBQ.js} +10 -10
- package/dist/plan-JWUSMF4W.js +88 -0
- package/dist/{play-DYOZLKWX.js → play-TUKTST32.js} +25 -25
- package/dist/{preflight-VM4HSRBY.js → preflight-L42JKT6F.js} +8 -8
- package/dist/{present-IINIEZJC.js → present-Z7HRDXPV.js} +20 -20
- package/dist/{preview-NJO2UXWJ.js → preview-HGTIRAV3.js} +23 -23
- package/dist/{probe-LQQHFX5Q.js → probe-RXK44FY7.js} +13 -13
- package/dist/{producer-LH2SZHJ2.js → producer-KJ2RZDJ3.js} +1 -1
- package/dist/{projectConfig-BLACFLUW.js → projectConfig-K36NTJXP.js} +6 -6
- package/dist/{publication-NFF2BXIE.js → publication-OZWLT6K6.js} +2 -2
- package/dist/{publish-JST5Y4UR.js → publish-CRUTXNYM.js} +84 -24
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-WUBESLWN.js → remove-background-R37HZPCG.js} +11 -11
- package/dist/{render-R4VNR4E2.js → render-EZMKBT7V.js} +45 -44
- package/dist/{render-DA4V7CEE.js → render-SU2XTMJL.js} +5 -5
- package/dist/{render-4KWUUC5H.js → render-ZHCPCISN.js} +82 -948
- package/dist/{render-batch-JMPG4RLT.js → render-batch-YIUOEAAL.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-PNIFIDIE.js → resolver-DLCKRKQR.js} +4 -4
- package/dist/{reverse-4NI7D2C3.js → reverse-4FAVXIER.js} +1 -1
- package/dist/{run-FWBIBLYE.js → run-H4GVEJVS.js} +5 -4
- package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-CQF5FYVI.js} +9 -9
- package/dist/service-XDQOULGD.js +68 -0
- package/dist/share-CUCQALE7.js +274 -0
- package/dist/{sherpa-W3BMN67E.js → sherpa-WZNRQUVC.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-KQQVUFGO.js → skills-J52DBZAK.js} +10 -10
- package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
- package/dist/{snapshot-VIEJQAUB.js → snapshot-ZIRQFDA7.js} +50 -50
- package/dist/{src-MQU5F7GJ.js → src-7BGBN6SS.js} +11 -11
- package/dist/{src-HHPRCLEW.js → src-C3XYMTF4.js} +6 -6
- package/dist/{start-ZBNNVFMU.js → start-QG2XNMYN.js} +25 -24
- package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-TWMEFK3T.js} +18 -18
- package/dist/{status-RBZJYT7T.js → status-3UPA5WPI.js} +19 -17
- package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-qz1-OXLj.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-2eG1zFX5.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-D1l7izdf.js → index-DDmhnfrS.js} +166 -166
- package/dist/studio/assets/{index-DFRbcd5J.js → index-DUveJ_YP.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-EPZGLIWW.js → studio-api-Z42OO4JJ.js} +13 -13
- package/dist/{studioServer-YFQQ2ESJ.js → studioServer-SMN3RMVL.js} +437 -59
- package/dist/{sync-FRT55PVW.js → sync-ONTI2WSI.js} +13 -13
- package/dist/{telemetry-HAPPFR7P.js → telemetry-RRXALB5D.js} +7 -7
- package/dist/{templates-2IHYIWMA.js → templates-BHFOSD6F.js} +18 -17
- package/dist/{timeline-AY2F7BJF.js → timeline-Z5IHY5TN.js} +20 -20
- package/dist/{tokens-B3G257V3.js → tokens-MZVEPARM.js} +2 -2
- package/dist/{transcribe-RJCILGPA.js → transcribe-5IZS4BGW.js} +29 -28
- package/dist/{transcribe-EGQD32PT.js → transcribe-M5N3YZZU.js} +10 -10
- package/dist/{update-XTFIGQKW.js → update-EVPWBIKY.js} +11 -11
- package/dist/{updateCheck-M6YC52A4.js → updateCheck-2UUEF6TC.js} +5 -3
- package/dist/{upgrade-AKLIZKAO.js → upgrade-DK45FD4K.js} +4 -4
- package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-3MPHIDSA.js} +6 -6
- package/dist/{validate-YWSXJL54.js → validate-W27TQ367.js} +28 -28
- package/dist/{video-I5DDNK3Y.js → video-TI372QGV.js} +8 -8
- package/dist/{voices-IBMJU73H.js → voices-FZV4PGT6.js} +24 -23
- package/dist/warmCheck.js +44 -44
- package/package.json +2 -1
|
@@ -4,46 +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-
|
|
35
|
+
} from "./chunk-3J32XVJ6.js";
|
|
24
36
|
import "./chunk-ZIYXPDKY.js";
|
|
25
37
|
import "./chunk-X7MTZ4T2.js";
|
|
38
|
+
import "./chunk-M3BJEZ7E.js";
|
|
26
39
|
import {
|
|
27
40
|
loadSharpInBackground
|
|
28
41
|
} from "./chunk-NL4RCLQF.js";
|
|
42
|
+
import "./chunk-BAWGEGKD.js";
|
|
29
43
|
import "./chunk-6BEFEWFB.js";
|
|
30
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MP36L7OJ.js";
|
|
31
45
|
import "./chunk-X7MTZ4T2.js";
|
|
32
|
-
import "./chunk-REJ4NIBY.js";
|
|
33
46
|
import {
|
|
34
47
|
seekCompositionTimeline
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
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";
|
|
37
53
|
import "./chunk-262C25DQ.js";
|
|
38
|
-
import "./chunk-BA3EQ2KL.js";
|
|
39
54
|
import {
|
|
40
55
|
GSAP_VENDOR_FILES,
|
|
41
56
|
readBundleFile,
|
|
42
57
|
resolveGsapVendorDir
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-LBQQNNRC.js";
|
|
58
|
+
} from "./chunk-2QTGQGYA.js";
|
|
59
|
+
import "./chunk-I35B5RWZ.js";
|
|
60
|
+
import "./chunk-2KYLVWLO.js";
|
|
47
61
|
import {
|
|
48
62
|
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
49
63
|
PREVIEW_BUNDLE_OPTIONS,
|
|
@@ -61,10 +75,12 @@ import {
|
|
|
61
75
|
previewAllowedHostsFromEnv,
|
|
62
76
|
sameOriginPost,
|
|
63
77
|
thumbnailDeviceScaleFactor
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-G55YEL2L.js";
|
|
79
|
+
import "./chunk-QWM3NY2E.js";
|
|
80
|
+
import "./chunk-XUDJ5XSQ.js";
|
|
67
81
|
import "./chunk-DONVZZLV.js";
|
|
82
|
+
import "./chunk-XSHJ37U3.js";
|
|
83
|
+
import "./chunk-2LMCARA5.js";
|
|
68
84
|
import {
|
|
69
85
|
DEFAULT_HISTORY_ROOT,
|
|
70
86
|
DELETED_VERSION,
|
|
@@ -78,29 +94,27 @@ import {
|
|
|
78
94
|
identifyFileWrite,
|
|
79
95
|
openProjectHistory
|
|
80
96
|
} from "./chunk-XDRSEU2I.js";
|
|
81
|
-
import "./chunk-H7AJLEBR.js";
|
|
82
|
-
import "./chunk-3R2X2VKB.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";
|
|
91
105
|
import {
|
|
92
106
|
isLinkFreeWithinProject
|
|
93
107
|
} from "./chunk-WXOOAAT4.js";
|
|
94
108
|
import {
|
|
95
109
|
resolveAutoProxy
|
|
96
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-SOAQ3XXB.js";
|
|
97
111
|
import "./chunk-XT7X6QCP.js";
|
|
98
112
|
import "./chunk-GBIASKIH.js";
|
|
99
113
|
import "./chunk-HVW7ABXD.js";
|
|
100
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-W5PW26KE.js";
|
|
101
115
|
import "./chunk-JHOCK3DG.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-RCB4SGTB.js";
|
|
117
|
+
import "./chunk-76KUCQXD.js";
|
|
104
118
|
import "./chunk-AWDFDFI3.js";
|
|
105
119
|
import "./chunk-P6LJ4Y32.js";
|
|
106
120
|
import "./chunk-D3UCUI7G.js";
|
|
@@ -109,15 +123,15 @@ import {
|
|
|
109
123
|
renderMotionBlurTelemetryPayload,
|
|
110
124
|
trackRenderComplete,
|
|
111
125
|
trackRenderError
|
|
112
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-ADYMQM7T.js";
|
|
113
127
|
import {
|
|
114
128
|
canaryDecisionsForStudio,
|
|
115
129
|
resetTelemetryPostureCache,
|
|
116
130
|
shouldTrack
|
|
117
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-YSHUIQ3I.js";
|
|
118
132
|
import "./chunk-PXVQOMKL.js";
|
|
119
133
|
import "./chunk-MCDNAIFF.js";
|
|
120
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-DMW5SSUN.js";
|
|
121
135
|
import "./chunk-JNHJX2BZ.js";
|
|
122
136
|
import "./chunk-54HJ63Q2.js";
|
|
123
137
|
import "./chunk-JCNPHRGX.js";
|
|
@@ -132,11 +146,11 @@ import {
|
|
|
132
146
|
import {
|
|
133
147
|
assertWebGpuAdapterAvailable,
|
|
134
148
|
compositionRequiresWebGpu
|
|
135
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-2TBW7UOF.js";
|
|
136
150
|
import "./chunk-Z5J67X44.js";
|
|
137
151
|
import "./chunk-5S7W3TUO.js";
|
|
138
152
|
import "./chunk-D3MUHMFG.js";
|
|
139
|
-
import "./chunk-
|
|
153
|
+
import "./chunk-KIAY63AB.js";
|
|
140
154
|
import {
|
|
141
155
|
isAtomicTempPath,
|
|
142
156
|
replaceFileAtomically
|
|
@@ -145,9 +159,9 @@ import "./chunk-3GXQPCJC.js";
|
|
|
145
159
|
import {
|
|
146
160
|
GSAP_CDN_VERSION,
|
|
147
161
|
fpsToNumber
|
|
148
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-EX7WPDFA.js";
|
|
149
163
|
import "./chunk-FXMKHHPO.js";
|
|
150
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-XDDBSGBD.js";
|
|
151
165
|
import "./chunk-VC76R6W2.js";
|
|
152
166
|
import {
|
|
153
167
|
realpath
|
|
@@ -164,10 +178,10 @@ import {
|
|
|
164
178
|
} from "./chunk-FOZBANEN.js";
|
|
165
179
|
import "./chunk-K4MJX7SR.js";
|
|
166
180
|
import "./chunk-WE42NVH7.js";
|
|
167
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-CNJLBAKM.js";
|
|
168
182
|
import {
|
|
169
183
|
isWithinProjectRoot
|
|
170
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-K2Z6OXEI.js";
|
|
171
185
|
import "./chunk-KRWPTZBY.js";
|
|
172
186
|
import "./chunk-FBN2M2HK.js";
|
|
173
187
|
import "./chunk-6MKM2RVL.js";
|
|
@@ -187,14 +201,14 @@ import {
|
|
|
187
201
|
import {
|
|
188
202
|
isDevMode
|
|
189
203
|
} from "./chunk-ISN5GRYI.js";
|
|
190
|
-
import "./chunk-GR2E54E6.js";
|
|
191
204
|
import "./chunk-ADVVQX4I.js";
|
|
205
|
+
import "./chunk-GR2E54E6.js";
|
|
192
206
|
import "./chunk-66W5IWLO.js";
|
|
193
207
|
import "./chunk-CPHQTXP5.js";
|
|
194
208
|
import "./chunk-QBXDU24O.js";
|
|
195
209
|
import {
|
|
196
210
|
VERSION
|
|
197
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-45ZQI734.js";
|
|
198
212
|
import "./chunk-E63BDV4Z.js";
|
|
199
213
|
import {
|
|
200
214
|
detectAgentRuntime
|
|
@@ -204,7 +218,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
204
218
|
import "./chunk-M2WBOQ2Q.js";
|
|
205
219
|
|
|
206
220
|
// src/server/studioServer.ts
|
|
207
|
-
import { Hono } from "hono";
|
|
221
|
+
import { Hono as Hono2 } from "hono";
|
|
208
222
|
import { streamSSE } from "hono/streaming";
|
|
209
223
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
210
224
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -369,7 +383,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
369
383
|
async function buildFromSource() {
|
|
370
384
|
if (!existsSync(ENTRY_TS)) return null;
|
|
371
385
|
try {
|
|
372
|
-
const mod = await import("./dist-
|
|
386
|
+
const mod = await import("./dist-ZGYPFYOH.js");
|
|
373
387
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
374
388
|
const source = mod.loadHyperframeRuntimeSource();
|
|
375
389
|
if (source) return source;
|
|
@@ -380,7 +394,7 @@ async function buildFromSource() {
|
|
|
380
394
|
}
|
|
381
395
|
async function getInlinedRuntime() {
|
|
382
396
|
try {
|
|
383
|
-
const mod = await import("./dist-
|
|
397
|
+
const mod = await import("./dist-ZGYPFYOH.js");
|
|
384
398
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
385
399
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
386
400
|
}
|
|
@@ -635,6 +649,368 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
635
649
|
});
|
|
636
650
|
}
|
|
637
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
|
+
|
|
638
1014
|
// src/server/thumbnailPages.ts
|
|
639
1015
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
640
1016
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -704,13 +1080,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
704
1080
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
705
1081
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
706
1082
|
async function loadStudioProducer() {
|
|
707
|
-
if (!isDevMode()) return await import("./src-
|
|
1083
|
+
if (!isDevMode()) return await import("./src-7BGBN6SS.js");
|
|
708
1084
|
if (!process.versions.bun) {
|
|
709
1085
|
throw new Error(
|
|
710
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`."
|
|
711
1087
|
);
|
|
712
1088
|
}
|
|
713
|
-
return await import("./src-
|
|
1089
|
+
return await import("./src-7BGBN6SS.js");
|
|
714
1090
|
}
|
|
715
1091
|
function resolveDistDir() {
|
|
716
1092
|
return resolveStudioBundle().dir;
|
|
@@ -826,7 +1202,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
826
1202
|
try {
|
|
827
1203
|
if (isShuttingDown()) return null;
|
|
828
1204
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
829
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
1205
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-C3XYMTF4.js");
|
|
830
1206
|
let executablePath;
|
|
831
1207
|
try {
|
|
832
1208
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1001,7 +1377,7 @@ function createStudioServer(options) {
|
|
|
1001
1377
|
resolveProject: (id) => id === projectId ? project : null,
|
|
1002
1378
|
async bundle(dir, options2) {
|
|
1003
1379
|
try {
|
|
1004
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1380
|
+
const { bundleToSingleHtml } = await import("./compiler-5ZDHBKBQ.js");
|
|
1005
1381
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1006
1382
|
html = html.replace(
|
|
1007
1383
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1015,9 +1391,9 @@ function createStudioServer(options) {
|
|
|
1015
1391
|
},
|
|
1016
1392
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1017
1393
|
const { injectDeterministicFontFaces } = await import("./deterministicFonts-2ZPRAI3C.js");
|
|
1018
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1019
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1020
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
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");
|
|
1021
1397
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1022
1398
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1023
1399
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1052,7 +1428,7 @@ function createStudioServer(options) {
|
|
|
1052
1428
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1053
1429
|
},
|
|
1054
1430
|
async lint(html, opts) {
|
|
1055
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1431
|
+
const { lintHyperframeHtml } = await import("./dist-3MFNUZSN.js");
|
|
1056
1432
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1057
1433
|
},
|
|
1058
1434
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1198,7 +1574,7 @@ function createStudioServer(options) {
|
|
|
1198
1574
|
startBackgroundRemoval(opts) {
|
|
1199
1575
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1200
1576
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1201
|
-
const pipeline = await import("./pipeline-
|
|
1577
|
+
const pipeline = await import("./pipeline-RRWZHFBQ.js").catch(
|
|
1202
1578
|
() => import(sourcePipelinePath)
|
|
1203
1579
|
);
|
|
1204
1580
|
return pipeline.render(renderOpts);
|
|
@@ -1283,8 +1659,8 @@ function createStudioServer(options) {
|
|
|
1283
1659
|
}
|
|
1284
1660
|
},
|
|
1285
1661
|
async listRegistryCatalog() {
|
|
1286
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1287
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1662
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-DLCKRKQR.js");
|
|
1663
|
+
const { loadProjectConfig } = await import("./projectConfig-K36NTJXP.js");
|
|
1288
1664
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1289
1665
|
const entries = await listRegistryItems(void 0, registry);
|
|
1290
1666
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1293,9 +1669,9 @@ function createStudioServer(options) {
|
|
|
1293
1669
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1294
1670
|
},
|
|
1295
1671
|
async installRegistryBlock(opts) {
|
|
1296
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1297
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1298
|
-
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");
|
|
1299
1675
|
const { result, item } = await addToProject({
|
|
1300
1676
|
name: opts.blockName,
|
|
1301
1677
|
projectDir: opts.project.dir,
|
|
@@ -1319,7 +1695,7 @@ function createStudioServer(options) {
|
|
|
1319
1695
|
};
|
|
1320
1696
|
}
|
|
1321
1697
|
};
|
|
1322
|
-
const app = new
|
|
1698
|
+
const app = new Hono2();
|
|
1323
1699
|
const allowedHosts = previewAllowedHostsFromEnv();
|
|
1324
1700
|
app.use(async function refuseUnknownHost(c, next) {
|
|
1325
1701
|
const host = c.req.header("host") ?? new URL(c.req.url).host;
|
|
@@ -1410,8 +1786,8 @@ function createStudioServer(options) {
|
|
|
1410
1786
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1411
1787
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1412
1788
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1413
|
-
import("./preflight-
|
|
1414
|
-
import("./ffmpeg-
|
|
1789
|
+
import("./preflight-L42JKT6F.js"),
|
|
1790
|
+
import("./ffmpeg-PXKIZL2X.js")
|
|
1415
1791
|
]);
|
|
1416
1792
|
const { outcomes } = await runEnvironmentChecks();
|
|
1417
1793
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1428,9 +1804,10 @@ function createStudioServer(options) {
|
|
|
1428
1804
|
});
|
|
1429
1805
|
});
|
|
1430
1806
|
mountDesktopRoutes(app, projectDir);
|
|
1807
|
+
mountShareRoutes(app, projectDir);
|
|
1431
1808
|
let cachedFFmpegPath;
|
|
1432
1809
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1433
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1810
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-PXKIZL2X.js");
|
|
1434
1811
|
if (!cachedFFmpegPath) {
|
|
1435
1812
|
cachedFFmpegPath = findFFmpeg();
|
|
1436
1813
|
}
|
|
@@ -1535,9 +1912,10 @@ function createStudioServer(options) {
|
|
|
1535
1912
|
}
|
|
1536
1913
|
let html = indexContent.toString("utf-8");
|
|
1537
1914
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1915
|
+
html = html.replace(
|
|
1916
|
+
"<head>",
|
|
1917
|
+
`<head><meta name="hyperframes-local-share" content="1">${headScript}`
|
|
1918
|
+
);
|
|
1541
1919
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1542
1920
|
});
|
|
1543
1921
|
const shutdown = async () => {
|
|
@@ -1546,7 +1924,7 @@ function createStudioServer(options) {
|
|
|
1546
1924
|
});
|
|
1547
1925
|
const renders = [...inFlightRenders];
|
|
1548
1926
|
for (const [abortController] of renders) abortController.abort();
|
|
1549
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1927
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-C3XYMTF4.js");
|
|
1550
1928
|
killTrackedProcesses();
|
|
1551
1929
|
const closeBrowsers = Promise.allSettled([
|
|
1552
1930
|
closeThumbnailBrowser().catch(() => {
|