hyperframes 0.9.26 → 0.9.28-alpha.0
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-WBZDU6CI.js → add-WSGJ42KQ.js} +24 -25
- package/dist/{agentPromptGenerator-HOH4K2AF.js → agentPromptGenerator-JTMVHRZN.js} +10 -10
- package/dist/{animatedGifPrep-HEQTZMPU.js → animatedGifPrep-V3FJENRD.js} +9 -9
- package/dist/api.js +53 -52
- package/dist/{appHistory-FVDSCS64.js → appHistory-DLDRURHW.js} +2 -3
- package/dist/{asset-N2BCPNT3.js → asset-6LZTBFS7.js} +6 -6
- package/dist/{assetCataloger-25DZ4ODD.js → assetCataloger-GRGAUHXL.js} +11 -11
- package/dist/{audio-3KDOOANX.js → audio-QCMSKGKQ.js} +39 -38
- package/dist/{auth-JPNSO223.js → auth-TB7AUPRE.js} +7 -7
- package/dist/{autoUpdate-SVH5VA46.js → autoUpdate-G3G7WBJF.js} +6 -6
- package/dist/{avatars-UC6PUVKF.js → avatars-6ILGXRFF.js} +22 -21
- package/dist/{backgroundChecks-R7JQPFEL.js → backgroundChecks-E3VZ7KZN.js} +7 -7
- package/dist/backgroundChecksWorker.js +7 -7
- package/dist/{batchRender-QB3UD3S3.js → batchRender-KWIPFU5Q.js} +9 -9
- package/dist/{beats-4LQCQYU4.js → beats-OBIGBNZA.js} +18 -18
- package/dist/{benchmark-NNGNQLPH.js → benchmark-64IXFBPC.js} +19 -19
- package/dist/{billing-EKSG2MIB.js → billing-3X5BWBTI.js} +26 -26
- package/dist/{browser-3CMPDGDK.js → browser-DZ3XIEFA.js} +17 -17
- package/dist/{bundleWithLocalizedFonts-F6WSRFC6.js → bundleWithLocalizedFonts-PKQN5CMM.js} +4 -4
- package/dist/{capture-PIRDJMFL.js → capture-NTN7O6RZ.js} +28 -29
- package/dist/{capture-RRIOSJI7.js → capture-V7RAUBMG.js} +6 -6
- package/dist/{captureCompositionFrame-PHZ6UESC.js → captureCompositionFrame-KMMB3FVD.js} +20 -20
- package/dist/{captureFile-VIVGKFY4.js → captureFile-O7JMINHC.js} +3 -1
- package/dist/{catalog-6U6DBW2A.js → catalog-YIGPXM7Q.js} +25 -26
- package/dist/{catch-up-CXGXBI5D.js → catch-up-LOGK3VIS.js} +18 -19
- package/dist/{check-4YZZDHXU.js → check-FVXJBA5U.js} +56 -57
- package/dist/{checkAudio-WOI7A4XF.js → checkAudio-FSIRCDM6.js} +21 -21
- package/dist/{checkBrowser-ITUJDOQK.js → checkBrowser-NXRXF73I.js} +49 -50
- package/dist/{chunk-CV3U4IKB.js → chunk-3DVDIXOZ.js} +2 -2
- package/dist/{chunk-6YPQSVVR.js → chunk-3LIMD4YP.js} +1 -1
- package/dist/{chunk-Q6HWIM5T.js → chunk-3MYEF34S.js} +1 -1
- package/dist/{chunk-7N5GNBYP.js → chunk-3Q7LAXFJ.js} +4 -4
- package/dist/chunk-3T6BFAKZ.js +5049 -0
- package/dist/{chunk-KGDXQ7KV.js → chunk-3YP3OQVH.js} +1 -1
- package/dist/{chunk-CP7UNNLN.js → chunk-4OZVFZCO.js} +9 -6
- package/dist/{chunk-CXUT4XVT.js → chunk-54FVSPRH.js} +1 -1
- package/dist/{chunk-BGCZSSZN.js → chunk-5BIHQCC2.js} +4 -4
- package/dist/{chunk-I7P3G2EK.js → chunk-5EYQ222G.js} +3 -3
- package/dist/{chunk-Y7N65M2H.js → chunk-5FI52L2T.js} +7 -3
- package/dist/{chunk-O2YBW4AN.js → chunk-5RETZFNG.js} +8 -8
- package/dist/{chunk-Z4GE5BXC.js → chunk-5SDUQLZ3.js} +4 -3
- package/dist/{chunk-5FFQ7YED.js → chunk-6EZ76UBP.js} +20 -20
- package/dist/{chunk-OHQRQE7F.js → chunk-6MKM2RVL.js} +8 -1
- package/dist/{chunk-Q4IDT5XZ.js → chunk-6NG6PATW.js} +1 -1
- package/dist/{chunk-ADJCNH7M.js → chunk-6ODX6SHY.js} +2 -2
- package/dist/{chunk-LISUH6KH.js → chunk-6OQPKRPJ.js} +1 -1
- package/dist/{chunk-WW7Z2W73.js → chunk-72GTIFAI.js} +20 -1
- package/dist/{chunk-NZTYGWRK.js → chunk-7DGBOZ4N.js} +1 -1
- package/dist/{chunk-VK4PVFTZ.js → chunk-7U2B7OF6.js} +2 -2
- package/dist/{chunk-52YPYXJT.js → chunk-7XHVHBFV.js} +4 -4
- package/dist/{chunk-SDNHWXXF.js → chunk-7ZKUPLMN.js} +18 -18
- package/dist/{chunk-SYYF5SUA.js → chunk-A5CTI6RW.js} +3 -3
- package/dist/{chunk-BPFUMJPR.js → chunk-AHRX3FHF.js} +4 -4
- package/dist/{chunk-4RPJGXWI.js → chunk-AJVYQVDB.js} +2 -2
- package/dist/{chunk-RKIRQ73U.js → chunk-ASMDPTT3.js} +2 -2
- package/dist/{chunk-B2RMMRJB.js → chunk-B4TLQLGI.js} +1 -1
- package/dist/{chunk-PKNU4DEG.js → chunk-BF6RWOUF.js} +5 -7
- package/dist/{chunk-EOVICFGB.js → chunk-BFDNZ2JT.js} +3 -3
- package/dist/{chunk-CYTQNTZM.js → chunk-BI33G4XD.js} +8 -8
- package/dist/{chunk-AZO2YY3U.js → chunk-BIQJKM2O.js} +2 -2
- package/dist/{chunk-P7DCQJ6N.js → chunk-BMDABBHG.js} +1 -1
- package/dist/{chunk-46KZHKVZ.js → chunk-BP75ZLZ5.js} +2 -2
- package/dist/{chunk-ZERXFV4P.js → chunk-C756HYL7.js} +3 -3
- package/dist/{chunk-DIUV6JDR.js → chunk-C7ME7Y45.js} +3 -3
- package/dist/{chunk-54Q3H2UQ.js → chunk-CDNVZEGQ.js} +9 -2
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-WEH3EHVB.js → chunk-CJC6U3E7.js} +4 -4
- package/dist/chunk-DDCFX533.js +387 -0
- package/dist/{chunk-6FDVPIOO.js → chunk-DONVZZLV.js} +1 -1
- package/dist/{chunk-BWRANVIS.js → chunk-DPAC75N5.js} +4 -4
- package/dist/{chunk-AIJMFLLS.js → chunk-E3EIKMUU.js} +3 -3
- package/dist/{chunk-YTF6LBWN.js → chunk-E7YPIP42.js} +2 -2
- package/dist/chunk-EKT2P27A.js +538 -0
- package/dist/chunk-F2FRUMWN.js +3699 -0
- package/dist/{chunk-T2WJO4XM.js → chunk-F2GWIWHN.js} +4 -3
- package/dist/{chunk-CMQZP52Y.js → chunk-F5QBIIFT.js} +6 -1
- package/dist/{chunk-M3JU24AI.js → chunk-FGFVUKPP.js} +1 -1
- package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
- package/dist/{chunk-LAGZGKKN.js → chunk-FOZBANEN.js} +3 -2
- package/dist/{chunk-5YPMCCCA.js → chunk-FRBQ3FIM.js} +1 -1
- package/dist/{chunk-I3XU2Q6N.js → chunk-FW7MDSCQ.js} +5 -5
- package/dist/{chunk-RTV6SDAW.js → chunk-G6CN5UWR.js} +2 -2
- package/dist/{chunk-HW4BZHWD.js → chunk-GN3CCXVU.js} +1 -1
- package/dist/{chunk-ANV4RVES.js → chunk-H3MJLPAC.js} +1 -1
- package/dist/{chunk-UPPOSWBD.js → chunk-HP6IDD33.js} +8 -8
- package/dist/{chunk-52C62IQX.js → chunk-HW325JBH.js} +6 -6
- package/dist/{chunk-SMR2QBOB.js → chunk-HWQ6SNLY.js} +1 -1
- package/dist/{chunk-7H5SDDTD.js → chunk-HYXSD2UA.js} +1 -1
- package/dist/{chunk-33HKMP6U.js → chunk-IEB4IKXF.js} +2 -2
- package/dist/{chunk-A4ZTSQLW.js → chunk-IEXRKKHC.js} +119 -4
- package/dist/{chunk-NBR3RFOK.js → chunk-IMSLXLUI.js} +1 -1
- package/dist/{chunk-IOPE4LJ2.js → chunk-J3X2RZON.js} +1 -1
- package/dist/chunk-JE2YBPC5.js +152 -0
- package/dist/{chunk-DJVONYVS.js → chunk-JEVWAGQP.js} +2 -2
- package/dist/chunk-JJ47LVJ7.js +58 -0
- package/dist/{chunk-M7VAMZQW.js → chunk-JNHJX2BZ.js} +4 -2
- package/dist/{chunk-Y5IO3G5V.js → chunk-JX4BEVC3.js} +35 -35
- package/dist/{chunk-RANSC2AP.js → chunk-K2OQYSDS.js} +14 -14
- package/dist/{chunk-4KQ53P4K.js → chunk-KBF2DIZX.js} +9 -9
- package/dist/{chunk-6DEXJHPV.js → chunk-KFU75UXA.js} +2 -2
- package/dist/{chunk-ETD6Z4CT.js → chunk-KJ5QBEMN.js} +9 -7
- package/dist/{chunk-G7VEYUZ2.js → chunk-LW33P24U.js} +210 -51
- package/dist/{chunk-RCK5GLYA.js → chunk-M7U6JTXF.js} +3 -3
- package/dist/{chunk-RG32F3XB.js → chunk-MBRBEXMF.js} +1 -1
- package/dist/{chunk-TPMBPH73.js → chunk-ME6L6GUF.js} +2 -2
- package/dist/{chunk-BO3R523I.js → chunk-MEVLYDL2.js} +1 -1
- package/dist/{chunk-4H65D2CK.js → chunk-MFSQZ2PR.js} +51 -11
- package/dist/{chunk-CT4R6NKU.js → chunk-MWBRY5HN.js} +3 -3
- package/dist/{chunk-XRLVFSPS.js → chunk-N6NB2WZ4.js} +3 -3
- package/dist/{chunk-XNEAYK2D.js → chunk-NKWJNDKO.js} +6 -6
- package/dist/{chunk-RXRL5CFO.js → chunk-O5G2LEUB.js} +3 -3
- package/dist/{chunk-U6JW263W.js → chunk-PG26KCBX.js} +2 -2
- package/dist/{chunk-FYZFURBN.js → chunk-PQYICV7O.js} +1 -1
- package/dist/{chunk-FLRTT7XS.js → chunk-PWW2DKGL.js} +5 -5
- package/dist/{chunk-W62GJ6S2.js → chunk-Q5J4OO7N.js} +22 -23
- package/dist/{chunk-CF2MLHZJ.js → chunk-Q6TVZY36.js} +3 -3
- package/dist/{chunk-E3V2WHNZ.js → chunk-QMGFXL43.js} +3 -3
- package/dist/{chunk-H6676SHA.js → chunk-QTDTCTGB.js} +6 -4
- package/dist/{chunk-KVVFSUMG.js → chunk-RERVXE6J.js} +5 -9
- package/dist/{chunk-6ELGYAFD.js → chunk-RGINHOAX.js} +23 -5
- package/dist/{chunk-QNV4S6LE.js → chunk-RNUIFYO6.js} +1 -1
- package/dist/{chunk-Y5NX2ID5.js → chunk-RO74CZMK.js} +2 -2
- package/dist/{chunk-3PSPF7V7.js → chunk-RPMPHUOS.js} +7 -7
- package/dist/{chunk-GS4EXK5R.js → chunk-RSZWWTQN.js} +25 -7
- package/dist/{chunk-EQBDKYXR.js → chunk-SWOAB4GM.js} +5 -2
- package/dist/{chunk-MFDNMTOP.js → chunk-T37WJWV2.js} +1 -1
- package/dist/{chunk-TAJ4PPMZ.js → chunk-TF7VWCJM.js} +1 -1
- package/dist/{chunk-SXYRNJBG.js → chunk-U2NESB4H.js} +1 -1
- package/dist/{chunk-WEWXIQPN.js → chunk-U46YQL7E.js} +1 -1
- package/dist/{chunk-CIB4TEE4.js → chunk-UDEFHX4Z.js} +17 -17
- package/dist/{chunk-MAU4K3YN.js → chunk-UF6C3CCP.js} +1 -1
- package/dist/{chunk-IV3JATWQ.js → chunk-UGX3IARM.js} +37 -37
- package/dist/{chunk-FQSX2Y2N.js → chunk-UO6DALBR.js} +10 -6
- package/dist/{chunk-7PZLR2JZ.js → chunk-UPR5TMLG.js} +2 -2
- package/dist/chunk-USTPTY7P.js +51 -0
- package/dist/{chunk-LSAZKSQW.js → chunk-UVZDPGZR.js} +1 -1
- package/dist/{chunk-N66SKEU4.js → chunk-VCNPBW4L.js} +2 -2
- package/dist/chunk-VHXIMBTF.js +343 -0
- package/dist/{chunk-I2I3ARUF.js → chunk-VNKPEYMW.js} +1 -1
- package/dist/{chunk-PZ23EDA5.js → chunk-VSQ5NWCF.js} +24 -2
- package/dist/{chunk-HOCC4J5C.js → chunk-VU4EPKFI.js} +1 -1
- package/dist/{chunk-6YYNEN54.js → chunk-VVGNWH2J.js} +269 -272
- package/dist/{chunk-XH34R2CM.js → chunk-WIJGRX5X.js} +2 -2
- package/dist/{chunk-ZNFYQMFN.js → chunk-WOSVLHQH.js} +1 -1
- package/dist/{chunk-M56EN5Z5.js → chunk-WRN3ZY5P.js} +8 -8
- package/dist/{chunk-YNYNZ36R.js → chunk-WUOMBLQL.js} +2 -2
- package/dist/{chunk-KBHBSWEE.js → chunk-WXEXQLVV.js} +217 -345
- package/dist/{chunk-4FNJ2QNP.js → chunk-WYA575QX.js} +11 -5
- package/dist/{chunk-OHN3OJQQ.js → chunk-X7NFWMWW.js} +1 -1
- package/dist/{chunk-FRBQYFUV.js → chunk-XEPGN46Q.js} +1 -1
- package/dist/{chunk-63SZ5FQL.js → chunk-XGRXNWDK.js} +4 -4
- package/dist/{chunk-52VJYQB4.js → chunk-XMHYE6XY.js} +3 -3
- package/dist/{chunk-QAH3I2PN.js → chunk-YJBGA3W6.js} +5 -5
- package/dist/{chunk-S73RS3QS.js → chunk-YOUHA4KP.js} +11 -9
- package/dist/{chunk-ZUGSYS6H.js → chunk-YPPJJ5ZH.js} +1 -1
- package/dist/{chunk-6AKETDJH.js → chunk-Z2N7XOOB.js} +7 -4
- package/dist/{chunk-OSMSO25W.js → chunk-ZEKQATYP.js} +6 -6
- package/dist/{chunk-VI5AG2YK.js → chunk-ZQLJLORI.js} +8 -8
- package/dist/{clean-CESNOFW4.js → clean-6YCVFT7D.js} +32 -33
- package/dist/cli.js +106 -72
- package/dist/{cloud-KNNA5NNC.js → cloud-BPWS4GJS.js} +7 -7
- package/dist/{cloud-D7DFYONW.js → cloud-TEJ6UVBU.js} +11 -11
- package/dist/{cloudrun-VHHNITZU.js → cloudrun-A7DU7DQE.js} +13 -13
- package/dist/{colors-CRTWLZ5S.js → colors-SS2KTOKM.js} +3 -3
- package/dist/{compare-XWGZQA3A.js → compare-HELNXJLM.js} +48 -49
- package/dist/{compiler-FQXZ5JHO.js → compiler-J43BE6LC.js} +5 -5
- package/dist/{component-B6LFSLBU.js → component-WEC4QGT3.js} +7 -7
- package/dist/{compositions-525OPGMN.js → compositions-RSUPWPK6.js} +21 -21
- package/dist/{contactSheet-RWRMLRZI.js → contactSheet-PZXG3REG.js} +4 -2
- 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-DJ7O5S2Z.js → curve-OK5TBGXV.js} +20 -20
- package/dist/{cuts-3FEOKZF4.js → cuts-S5WHYQZZ.js} +21 -21
- package/dist/{delete-NYTX5VAV.js → delete-5NHJKNWL.js} +18 -18
- package/dist/{deploy-FMWJCCAE.js → deploy-7PLBBXNB.js} +10 -10
- package/dist/{describeProject-73BHU64A.js → describeProject-WVLTYWPG.js} +14 -14
- package/dist/{destroy-6XY4WQWY.js → destroy-IWHFUGJL.js} +7 -7
- package/dist/{deterministicFonts-CEHTAMC7.js → deterministicFonts-UZIF5XZW.js} +4 -2
- package/dist/{diff-23KDGJCM.js → diff-W4EXKV5Q.js} +52 -52
- package/dist/{dist-AOXZZPN7.js → dist-4JHP47NU.js} +3 -3
- package/dist/{dist-GQVNNVG3.js → dist-AUYCAQMA.js} +17 -18
- package/dist/{dist-6FQKCYPL.js → dist-F3Y2XHZL.js} +4 -4
- package/dist/docs/motion-blur.md +1 -1
- package/dist/{docs-WYJSJGSF.js → docs-ZSVK3VZD.js} +3 -3
- package/dist/{doctor-XZ5HNJ6Q.js → doctor-7Y75ZXTU.js} +20 -20
- package/dist/{energy-HGHY2XGU.js → energy-Y4KYLWLZ.js} +19 -19
- package/dist/{events-MLOHGLUP.js → events-3LAHSBBF.js} +16 -14
- package/dist/{events-UFPWOQGG.js → events-67Q5DIRC.js} +9 -9
- package/dist/{events-EWQD3H2H.js → events-TQD3L5FS.js} +23 -23
- package/dist/execute-GFHAD3L6.js +109 -0
- package/dist/{extract-HMDTHBPW.js → extract-6KGIEC76.js} +23 -23
- package/dist/{face-63Y52JXT.js → face-OBEAPOZR.js} +21 -22
- package/dist/{feedback-NX2BHXLA.js → feedback-QTB2UH3Q.js} +22 -21
- package/dist/{ffmpeg-Z5LJ5LYM.js → ffmpeg-4CMA6M2L.js} +9 -9
- package/dist/{figma-KRBH6NCD.js → figma-4ZKDJA4R.js} +6 -6
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-L4GO5IOK.js → frames-OFLJT4D5.js} +31 -24
- package/dist/{generate-FYK2JEF7.js → generate-LHRF4A3Z.js} +37 -37
- package/dist/{get-6DBWZJIS.js → get-56RYQ7KG.js} +18 -18
- package/dist/{gpuPolicy-IZK7ETZ6.js → gpuPolicy-35XK273G.js} +9 -9
- package/dist/{grade-compare-DMFIEWKO.js → grade-compare-GQVODT4T.js} +49 -50
- package/dist/{heifImagePrep-WT26IRKU.js → heifImagePrep-7WN2QNQM.js} +10 -10
- package/dist/{help-7GR3533A.js → help-E2TKPNJJ.js} +4 -4
- package/dist/{history-OMOIUDSV.js → history-AJ2MSBW6.js} +20 -21
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-E5AMEBHN.js → info-HV43ZADN.js} +23 -23
- package/dist/{init-DRZP3T3W.js → init-OHVVGDSF.js} +44 -42
- package/dist/{ink-63PXDACB.js → ink-IESBIGOE.js} +19 -19
- package/dist/{inspect-XKB4JFEJ.js → inspect-Y7YS3ILY.js} +46 -47
- package/dist/{installer-D7OH77IN.js → installer-AJESSC5Y.js} +8 -8
- package/dist/{keyframes-D4YUT6E3.js → keyframes-XSL7JGAF.js} +18 -18
- package/dist/{lambda-S5GFZOKF.js → lambda-KU65SSVE.js} +23 -23
- package/dist/{layout-4N6AIQJB.js → layout-ORX7QBGL.js} +46 -47
- package/dist/{lint-7I6I4UHH.js → lint-KUGT5YHK.js} +20 -20
- package/dist/{lintProject-KXOX5QXB.js → lintProject-Z6TG3Z34.js} +3 -3
- package/dist/{list-5PWGI2AA.js → list-EB3WYTHH.js} +21 -21
- package/dist/{localPage-OGQ4OTTG.js → localPage-QLGKJQ6X.js} +10 -10
- package/dist/{login-AT3RGU2L.js → login-O5HWEYI4.js} +12 -11
- package/dist/{logout-EKDVIU6Y.js → logout-AHGR3X5U.js} +9 -7
- package/dist/{look-GDIIZRBH.js → look-BPSKQDST.js} +21 -21
- package/dist/{manager-MKDNQ5KZ.js → manager-IAXYSRG5.js} +3 -3
- package/dist/{manager-3VDQLCQM.js → manager-MNOR566P.js} +11 -10
- package/dist/{measure-KWM2A5QD.js → measure-USYFR5EK.js} +16 -13
- package/dist/{media-treatment-4QBXQ3D7.js → media-treatment-5YATQA5D.js} +25 -25
- package/dist/{media-use-LMCTTAMZ.js → media-use-BA245HF5.js} +12 -10
- package/dist/{models-C2DQQIH3.js → models-ST3IIAN2.js} +18 -18
- package/dist/{motionShot-NUX22LWA.js → motionShot-DOIU74HO.js} +26 -26
- package/dist/{normalize-MBNGRVQA.js → normalize-PGMS24I2.js} +3 -1
- package/dist/{normalize-audio-K6LDICR5.js → normalize-audio-PPSCFVKC.js} +19 -19
- package/dist/oauth-KUPQUH6E.js +40 -0
- package/dist/{open-VPKHBPWT.js → open-R2EPWLS6.js} +27 -28
- package/dist/{parakeetRunner-E4534WW7.js → parakeetRunner-Q2SYZVYV.js} +19 -17
- package/dist/{pipeline-JUVHGTAC.js → pipeline-NQ4BI2D7.js} +12 -12
- package/dist/plan-CN2TTIAA.js +88 -0
- package/dist/{play-KBMGOUFL.js → play-J3DJBBXW.js} +38 -39
- package/dist/{policies-EV7XPSQC.js → policies-5G7G26ZX.js} +3 -3
- package/dist/{preflight-2R2MAQIC.js → preflight-DLO6LHGO.js} +13 -13
- package/dist/{present-MS6QCPUK.js → present-MIWYYTIE.js} +31 -32
- package/dist/{preview-BDQMRB6I.js → preview-DEGHLTT6.js} +37 -38
- package/dist/{probe-2OXPOPVD.js → probe-63RJNPIB.js} +19 -19
- package/dist/{producer-PECYJ4WO.js → producer-H7L5TBE4.js} +1 -1
- package/dist/{progress-FWJJMPIQ.js → progress-OOEHTBBU.js} +3 -3
- package/dist/{projectConfig-CZYM3VZF.js → projectConfig-GJL2ZGOU.js} +12 -13
- package/dist/{prompts-27EPTM64.js → prompts-RYVLXI7Q.js} +3 -3
- package/dist/{publication-JIWSYWXN.js → publication-BLLVTVD6.js} +6 -6
- package/dist/{publish-ZKNUSOPR.js → publish-CYPJA7T7.js} +93 -34
- package/dist/{refresh-ZHLUUENK.js → refresh-TB4TNH7R.js} +7 -6
- package/dist/{remove-background-VQ7SFKC5.js → remove-background-KX574FQY.js} +17 -17
- package/dist/{render-JIQF7TIY.js → render-N7PKCVEP.js} +59 -59
- package/dist/{render-753ERHTH.js → render-RUEXLOWE.js} +11 -11
- package/dist/{render-4UHIUXYW.js → render-SHUBWBK4.js} +108 -950
- package/dist/{render-batch-7ZOJOEPJ.js → render-batch-QFGQD5FM.js} +11 -11
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-QQOL74GH.js → resolver-HQIDF3TF.js} +9 -9
- package/dist/{reverse-CC3GYBFW.js → reverse-D2XWX6FV.js} +1 -1
- package/dist/{run-IQLZHH6D.js → run-EVZGKUEX.js} +9 -7
- package/dist/{screenshotCapture-2IJOZZTG.js → screenshotCapture-4JLD2OQZ.js} +11 -11
- package/dist/service-L3K45WOD.js +68 -0
- package/dist/share-7G44HDSY.js +226 -0
- package/dist/{sherpa-GISX4B24.js → sherpa-LU5AOQHV.js} +18 -16
- package/dist/{sites-O7A7G3ZQ.js → sites-NWEJJNAZ.js} +3 -3
- package/dist/skills/hyperframes/SKILL.md +4 -1
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-VIC2VZZQ.js → skills-KVQ2G6P5.js} +19 -18
- package/dist/{skillsUpdateCheck-SM7RAGJI.js → skillsUpdateCheck-EB54PRMT.js} +7 -7
- package/dist/{snapshot-2ABRVH76.js → snapshot-QWO6OXG3.js} +65 -66
- package/dist/{src-7HHPSUSN.js → src-I3B7LYZM.js} +8 -8
- package/dist/{src-OZI5O5QD.js → src-WMZX5C4A.js} +14 -14
- package/dist/{start-OJ2I4XZP.js → start-ACVZUBZX.js} +50 -37
- package/dist/{staticProjectServer-4YDXULWX.js → staticProjectServer-C6KEOAYY.js} +25 -26
- package/dist/{status-DJEV6OOU.js → status-RYI42XDB.js} +38 -31
- package/dist/studio/assets/{codec-BxQIoYb1.js → codec-D6qbrtZY.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CPnasNX6.js → hyperframes-player-BVe9IO80.js} +1 -1
- package/dist/studio/assets/{index-BDQdyS01.js → index-BZu8x7Q5.js} +1 -1
- package/dist/studio/assets/{index-QCoqIBrS.js → index-Cl9fSd9I.js} +184 -184
- package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CUTtHVKV.js → pausedVideoDecoder-DfnHfnL7.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-Z3ZDQMO7.js → studio-api-RBURPKYX.js} +17 -18
- package/dist/{studioServer-AYXFWMY2.js → studioServer-J5DYNR6R.js} +445 -78
- package/dist/{sync-ASO6S77T.js → sync-MUKE7NSP.js} +21 -21
- package/dist/{synthesize-GX74JPPZ.js → synthesize-NJKCIPKW.js} +7 -8
- package/dist/{system-FDPS57FU.js → system-W2ZTDOLV.js} +2 -2
- package/dist/{telemetry-BMPRZBBX.js → telemetry-5CLJMTHU.js} +4 -4
- package/dist/{telemetry-AFCV2QLQ.js → telemetry-6MDOWNLT.js} +14 -14
- package/dist/templates/_shared/AGENTS.md +2 -2
- package/dist/templates/_shared/CLAUDE.md +2 -2
- package/dist/{templates-CII6AG7E.js → templates-LWPXN7M2.js} +56 -40
- package/dist/{timeline-DQ5DZUFL.js → timeline-WTBC3J7O.js} +33 -34
- package/dist/{tokens-JS2IMFGF.js → tokens-4NPCCANL.js} +6 -6
- package/dist/{transcribe-WWKYZLEO.js → transcribe-NZJPYTM7.js} +43 -42
- package/dist/{transcribe-LH7S5HSM.js → transcribe-RL7LGXU6.js} +15 -12
- package/dist/{tts-QW53FBKW.js → tts-NANTORLP.js} +6 -6
- package/dist/{update-EE7PVVJY.js → update-DZCGNNOU.js} +20 -19
- package/dist/{updateCheck-KY2HRZZA.js → updateCheck-N3C56RNJ.js} +6 -6
- package/dist/{upgrade-H266K5KB.js → upgrade-RCV7ZF5Z.js} +9 -9
- package/dist/{urlDownloader-TRUJTJTT.js → urlDownloader-SSPDDS4Y.js} +8 -8
- package/dist/{validate-6RDVENOL.js → validate-HQDRN6T3.js} +37 -38
- package/dist/{video-B6HLIKGZ.js → video-FPDBQAXL.js} +14 -14
- package/dist/{voices-RQXHSMIG.js → voices-PMLIXQT4.js} +34 -34
- package/dist/warmCheck.js +56 -57
- package/package.json +2 -1
- package/dist/chunk-ITTVMZ32.js +0 -5035
- package/dist/chunk-YWRUQ7XZ.js +0 -107
- /package/dist/{chunk-43G3Z3HJ.js → chunk-AAENGP3S.js} +0 -0
|
@@ -4,41 +4,55 @@ 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-USTPTY7P.js";
|
|
10
|
+
import {
|
|
11
|
+
ReviewFailed,
|
|
12
|
+
fileSha256Base64,
|
|
13
|
+
latestShareRender,
|
|
14
|
+
shareContentFingerprint,
|
|
15
|
+
shareSite,
|
|
16
|
+
trackShareInteraction,
|
|
17
|
+
versionOnPage
|
|
18
|
+
} from "./chunk-F2FRUMWN.js";
|
|
7
19
|
import {
|
|
8
20
|
renderJobObservabilityTelemetryPayload,
|
|
9
21
|
renderObservabilityTelemetryPayload,
|
|
10
22
|
startRenderCpuSampler
|
|
11
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U2NESB4H.js";
|
|
12
24
|
import {
|
|
13
25
|
HANDOFF_READY,
|
|
14
26
|
desktopDownloadUrl,
|
|
15
27
|
desktopInstalled,
|
|
16
28
|
insideHostApp,
|
|
17
29
|
openInDesktop
|
|
18
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YJBGA3W6.js";
|
|
19
31
|
import {
|
|
20
32
|
resolveRenderBrowser
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-QMGFXL43.js";
|
|
34
|
+
import "./chunk-54FVSPRH.js";
|
|
35
|
+
import "./chunk-JE2YBPC5.js";
|
|
23
36
|
import {
|
|
24
37
|
loadSharpInBackground
|
|
25
38
|
} from "./chunk-NL4RCLQF.js";
|
|
39
|
+
import "./chunk-WXEXQLVV.js";
|
|
26
40
|
import "./chunk-6BEFEWFB.js";
|
|
27
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-H3MJLPAC.js";
|
|
28
42
|
import "./chunk-X7MTZ4T2.js";
|
|
29
43
|
import {
|
|
30
44
|
seekCompositionTimeline
|
|
31
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UDEFHX4Z.js";
|
|
32
46
|
import {
|
|
33
47
|
GSAP_VENDOR_FILES,
|
|
34
48
|
readBundleFile,
|
|
35
49
|
resolveGsapVendorDir
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-262C25DQ.js";
|
|
38
|
-
import "./chunk-BWRANVIS.js";
|
|
39
|
-
import "./chunk-4RPJGXWI.js";
|
|
50
|
+
} from "./chunk-IMSLXLUI.js";
|
|
40
51
|
import "./chunk-YGGZ23BB.js";
|
|
41
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-MEVLYDL2.js";
|
|
53
|
+
import "./chunk-262C25DQ.js";
|
|
54
|
+
import "./chunk-DPAC75N5.js";
|
|
55
|
+
import "./chunk-AJVYQVDB.js";
|
|
42
56
|
import {
|
|
43
57
|
PREVIEW_BUNDLE_OPTIONS,
|
|
44
58
|
affectsPreview,
|
|
@@ -50,10 +64,12 @@ import {
|
|
|
50
64
|
getElementScreenshotClip,
|
|
51
65
|
getMimeType,
|
|
52
66
|
thumbnailDeviceScaleFactor
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-JX4BEVC3.js";
|
|
68
|
+
import "./chunk-HW325JBH.js";
|
|
69
|
+
import "./chunk-AHRX3FHF.js";
|
|
70
|
+
import "./chunk-DONVZZLV.js";
|
|
71
|
+
import "./chunk-7XHVHBFV.js";
|
|
72
|
+
import "./chunk-3MYEF34S.js";
|
|
57
73
|
import {
|
|
58
74
|
DEFAULT_HISTORY_ROOT,
|
|
59
75
|
DELETED_VERSION,
|
|
@@ -66,52 +82,46 @@ import {
|
|
|
66
82
|
historyCache,
|
|
67
83
|
identifyFileWrite,
|
|
68
84
|
openProjectHistory
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-52YPYXJT.js";
|
|
71
|
-
import "./chunk-Q6HWIM5T.js";
|
|
85
|
+
} from "./chunk-BF6RWOUF.js";
|
|
72
86
|
import "./chunk-ALVXFXUG.js";
|
|
73
87
|
import "./chunk-W4DMQZL5.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-3DVDIXOZ.js";
|
|
89
|
+
import "./chunk-FGFVUKPP.js";
|
|
76
90
|
import {
|
|
77
91
|
resolveCaptureBrowserGpuMode,
|
|
78
92
|
resolveLocalBrowserGpuMode,
|
|
79
93
|
resolveLocalWebGpu
|
|
80
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-KFU75UXA.js";
|
|
81
95
|
import {
|
|
82
96
|
resolveAutoProxy
|
|
83
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-WIJGRX5X.js";
|
|
84
98
|
import "./chunk-XT7X6QCP.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
isAtomicTempPath,
|
|
88
|
-
replaceFileAtomically
|
|
89
|
-
} from "./chunk-A4ZTSQLW.js";
|
|
99
|
+
import "./chunk-FRBQ3FIM.js";
|
|
90
100
|
import "./chunk-HVW7ABXD.js";
|
|
91
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-ME6L6GUF.js";
|
|
92
102
|
import "./chunk-JHOCK3DG.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-XGRXNWDK.js";
|
|
104
|
+
import "./chunk-7U2B7OF6.js";
|
|
95
105
|
import "./chunk-AWDFDFI3.js";
|
|
96
106
|
import "./chunk-P6LJ4Y32.js";
|
|
97
107
|
import "./chunk-D3UCUI7G.js";
|
|
98
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-F2GWIWHN.js";
|
|
99
109
|
import {
|
|
100
110
|
renderMotionBlurTelemetryPayload,
|
|
101
111
|
trackRenderComplete,
|
|
102
112
|
trackRenderError
|
|
103
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-RGINHOAX.js";
|
|
104
114
|
import {
|
|
105
115
|
canaryDecisionsForStudio,
|
|
106
116
|
resetTelemetryPostureCache,
|
|
107
117
|
shouldTrack
|
|
108
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-PWW2DKGL.js";
|
|
109
119
|
import "./chunk-PXVQOMKL.js";
|
|
110
120
|
import "./chunk-MCDNAIFF.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-FID757D3.js";
|
|
122
|
+
import "./chunk-JNHJX2BZ.js";
|
|
113
123
|
import "./chunk-54HJ63Q2.js";
|
|
114
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-VU4EPKFI.js";
|
|
115
125
|
import {
|
|
116
126
|
encoderJobOptions
|
|
117
127
|
} from "./chunk-VEIGTKYZ.js";
|
|
@@ -123,42 +133,45 @@ import "./chunk-ZB2XGJSP.js";
|
|
|
123
133
|
import {
|
|
124
134
|
assertWebGpuAdapterAvailable,
|
|
125
135
|
compositionRequiresWebGpu
|
|
126
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-Q5J4OO7N.js";
|
|
127
137
|
import "./chunk-Z5J67X44.js";
|
|
128
138
|
import "./chunk-5S7W3TUO.js";
|
|
129
139
|
import "./chunk-D3MUHMFG.js";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import
|
|
140
|
+
import "./chunk-RERVXE6J.js";
|
|
141
|
+
import {
|
|
142
|
+
isAtomicTempPath,
|
|
143
|
+
replaceFileAtomically
|
|
144
|
+
} from "./chunk-IEXRKKHC.js";
|
|
132
145
|
import "./chunk-3GXQPCJC.js";
|
|
133
146
|
import {
|
|
134
147
|
GSAP_CDN_VERSION,
|
|
135
148
|
fpsToNumber
|
|
136
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-Q6TVZY36.js";
|
|
137
150
|
import "./chunk-FXMKHHPO.js";
|
|
138
|
-
import "./chunk-
|
|
151
|
+
import "./chunk-3T6BFAKZ.js";
|
|
139
152
|
import "./chunk-VC76R6W2.js";
|
|
140
153
|
import {
|
|
141
154
|
realpath
|
|
142
155
|
} from "./chunk-OFQWTKPW.js";
|
|
143
156
|
import "./chunk-RQVDTPGD.js";
|
|
144
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-BMDABBHG.js";
|
|
145
158
|
import {
|
|
146
159
|
runRenderSetupWorker
|
|
147
160
|
} from "./chunk-X6JUUQCM.js";
|
|
148
161
|
import "./chunk-KGPLIH7B.js";
|
|
149
162
|
import {
|
|
150
163
|
bytesToMb
|
|
151
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-FOZBANEN.js";
|
|
152
165
|
import "./chunk-K4MJX7SR.js";
|
|
153
166
|
import "./chunk-WE42NVH7.js";
|
|
154
|
-
import "./chunk-
|
|
167
|
+
import "./chunk-VSQ5NWCF.js";
|
|
155
168
|
import {
|
|
156
169
|
isWithinProjectRoot
|
|
157
170
|
} from "./chunk-WVRAFHJU.js";
|
|
158
171
|
import "./chunk-HYRPH6LL.js";
|
|
159
172
|
import "./chunk-FBN2M2HK.js";
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
173
|
+
import "./chunk-6MKM2RVL.js";
|
|
174
|
+
import "./chunk-AAENGP3S.js";
|
|
162
175
|
import "./chunk-FR7YBU3H.js";
|
|
163
176
|
import "./chunk-DPVXBVLL.js";
|
|
164
177
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -170,28 +183,28 @@ import "./chunk-BR2JQQC5.js";
|
|
|
170
183
|
import {
|
|
171
184
|
readConfig,
|
|
172
185
|
readConfigFresh
|
|
173
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-F5QBIIFT.js";
|
|
174
187
|
import {
|
|
175
188
|
isDevMode
|
|
176
189
|
} from "./chunk-ISN5GRYI.js";
|
|
177
|
-
import "./chunk-GR2E54E6.js";
|
|
178
190
|
import "./chunk-ADVVQX4I.js";
|
|
191
|
+
import "./chunk-GR2E54E6.js";
|
|
179
192
|
import "./chunk-66W5IWLO.js";
|
|
180
|
-
import "./chunk-
|
|
193
|
+
import "./chunk-PQYICV7O.js";
|
|
181
194
|
import "./chunk-QBXDU24O.js";
|
|
182
195
|
import {
|
|
183
196
|
VERSION
|
|
184
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-E7YPIP42.js";
|
|
185
198
|
import "./chunk-E63BDV4Z.js";
|
|
186
199
|
import {
|
|
187
200
|
detectAgentRuntime
|
|
188
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-LW33P24U.js";
|
|
189
202
|
import "./chunk-XT6MXC7A.js";
|
|
190
203
|
import "./chunk-7KDQAD2W.js";
|
|
191
204
|
import "./chunk-M2WBOQ2Q.js";
|
|
192
205
|
|
|
193
206
|
// src/server/studioServer.ts
|
|
194
|
-
import { Hono } from "hono";
|
|
207
|
+
import { Hono as Hono2 } from "hono";
|
|
195
208
|
import { streamSSE } from "hono/streaming";
|
|
196
209
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
197
210
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -356,7 +369,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
356
369
|
async function buildFromSource() {
|
|
357
370
|
if (!existsSync(ENTRY_TS)) return null;
|
|
358
371
|
try {
|
|
359
|
-
const mod = await import("./dist-
|
|
372
|
+
const mod = await import("./dist-F3Y2XHZL.js");
|
|
360
373
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
361
374
|
const source = mod.loadHyperframeRuntimeSource();
|
|
362
375
|
if (source) return source;
|
|
@@ -367,7 +380,7 @@ async function buildFromSource() {
|
|
|
367
380
|
}
|
|
368
381
|
async function getInlinedRuntime() {
|
|
369
382
|
try {
|
|
370
|
-
const mod = await import("./dist-
|
|
383
|
+
const mod = await import("./dist-F3Y2XHZL.js");
|
|
371
384
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
372
385
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
373
386
|
}
|
|
@@ -664,6 +677,358 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
664
677
|
});
|
|
665
678
|
}
|
|
666
679
|
|
|
680
|
+
// src/server/shareRoutes.ts
|
|
681
|
+
import { randomUUID } from "crypto";
|
|
682
|
+
import { Hono } from "hono";
|
|
683
|
+
import { bodyLimit } from "hono/body-limit";
|
|
684
|
+
|
|
685
|
+
// src/server/shareBoundary.ts
|
|
686
|
+
import { randomBytes, timingSafeEqual } from "crypto";
|
|
687
|
+
function localShareRequestAllowed(request) {
|
|
688
|
+
const host = request.headers.get("host");
|
|
689
|
+
if (!host || request.headers.get("sec-fetch-site") !== "same-origin") return false;
|
|
690
|
+
try {
|
|
691
|
+
const local = new URL(`http://${host}`);
|
|
692
|
+
if (local.host !== host || !["localhost", "127.0.0.1", "[::1]"].includes(local.hostname))
|
|
693
|
+
return false;
|
|
694
|
+
const origin = request.headers.get("origin");
|
|
695
|
+
if (origin !== null) return origin === local.origin;
|
|
696
|
+
const referer = request.headers.get("referer");
|
|
697
|
+
return referer !== null && new URL(referer).origin === local.origin;
|
|
698
|
+
} catch {
|
|
699
|
+
return false;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function createShareCsrf() {
|
|
703
|
+
const token = randomBytes(32).toString("base64url");
|
|
704
|
+
return {
|
|
705
|
+
token,
|
|
706
|
+
accepts(value) {
|
|
707
|
+
return value !== null && Buffer.byteLength(value) === Buffer.byteLength(token) && timingSafeEqual(Buffer.from(value), Buffer.from(token));
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
// src/server/shareEvents.ts
|
|
713
|
+
function shareEventInput(value) {
|
|
714
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
715
|
+
if (Object.keys(value).length !== 2 || !("event" in value)) return null;
|
|
716
|
+
if (value.event === "share_link_copied" && "via" in value && value.via === "copy")
|
|
717
|
+
return { event: value.event, via: "copy" };
|
|
718
|
+
if (value.event !== "share_opened" || !("link" in value)) return null;
|
|
719
|
+
const link = ["none", "live", "changed"];
|
|
720
|
+
const chosen = link.find((item) => item === value.link);
|
|
721
|
+
return chosen ? { event: value.event, link: chosen } : null;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// src/server/sharePresentation.ts
|
|
725
|
+
function presentShare(value) {
|
|
726
|
+
const held = value.share?.held || value.share?.takedown || value.share?.sharingState?.state === "subscription_required";
|
|
727
|
+
return {
|
|
728
|
+
state: presentedState(value, Boolean(held)),
|
|
729
|
+
url: held ? null : value.url ?? value.previousUrl,
|
|
730
|
+
failure: value.state === "failed" ? value.version.failure : null,
|
|
731
|
+
hasReadyVersion: value.ready || Boolean(value.previousUrl),
|
|
732
|
+
manageUrl: value.manageUrl,
|
|
733
|
+
// Desktop's watcher does not cover every portable render input.
|
|
734
|
+
changed: knownChanges(value),
|
|
735
|
+
audience: value.share?.access ?? null,
|
|
736
|
+
spaceId: value.share?.space?.id ?? null,
|
|
737
|
+
source: value.source.at
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
function presentSpaces(spaces) {
|
|
741
|
+
return spaces.map((space) => ({
|
|
742
|
+
id: space.space_id,
|
|
743
|
+
name: space.name || (space.kind === "personal" ? "Personal workspace" : space.space_id),
|
|
744
|
+
bound: space.bound === true,
|
|
745
|
+
canCreate: space.can_create_review,
|
|
746
|
+
...planOffer(space.review_entitlements),
|
|
747
|
+
audiences: [
|
|
748
|
+
"private",
|
|
749
|
+
...space.review_entitlements?.allowed_collaborative_access_modes ?? []
|
|
750
|
+
],
|
|
751
|
+
used: space.review_entitlements?.projects_used_up_to_limit ?? null,
|
|
752
|
+
limit: space.review_entitlements?.project_limit ?? null
|
|
753
|
+
}));
|
|
754
|
+
}
|
|
755
|
+
function knownChanges(value) {
|
|
756
|
+
if (!value.share) return false;
|
|
757
|
+
return value.version.last && !value.version.last.current ? true : null;
|
|
758
|
+
}
|
|
759
|
+
function planOffer(entitlements) {
|
|
760
|
+
const plan = entitlements?.plan ?? null;
|
|
761
|
+
return { plan, upgradeUrl: plan === "free" ? `${shareSite()}/pricing` : null };
|
|
762
|
+
}
|
|
763
|
+
function presentedState(value, held) {
|
|
764
|
+
if (held) return "unavailable";
|
|
765
|
+
if (value.state === "failed" || value.state === "not_shared" || value.state === "link_off")
|
|
766
|
+
return value.state;
|
|
767
|
+
return value.ready ? "ready" : "processing";
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// src/server/shareSessions.ts
|
|
771
|
+
function shareSessionKey(value) {
|
|
772
|
+
return JSON.stringify([value.owner, value.heygen, value.heygenApi]);
|
|
773
|
+
}
|
|
774
|
+
function createShareSessions(create) {
|
|
775
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
776
|
+
function session() {
|
|
777
|
+
let service = null;
|
|
778
|
+
return {
|
|
779
|
+
get: () => service ??= create(),
|
|
780
|
+
reset: () => {
|
|
781
|
+
service = null;
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
return {
|
|
786
|
+
open() {
|
|
787
|
+
const token = createShareCsrf().token;
|
|
788
|
+
if (sessions.size >= 128) {
|
|
789
|
+
const oldest = sessions.keys().next().value;
|
|
790
|
+
if (oldest) sessions.delete(oldest);
|
|
791
|
+
}
|
|
792
|
+
sessions.set(token, session());
|
|
793
|
+
return token;
|
|
794
|
+
},
|
|
795
|
+
get: (token) => sessions.get(token)
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// src/server/shareFreshness.ts
|
|
800
|
+
var dependencies = {
|
|
801
|
+
render: latestShareRender,
|
|
802
|
+
fingerprint: shareContentFingerprint,
|
|
803
|
+
uploaded: versionOnPage,
|
|
804
|
+
checksum: fileSha256Base64
|
|
805
|
+
};
|
|
806
|
+
async function presentPortableShare(projectDir, state, deps = dependencies) {
|
|
807
|
+
const result = presentShare(state);
|
|
808
|
+
try {
|
|
809
|
+
const render = deps.render(projectDir);
|
|
810
|
+
if (!render?.contentFingerprint) return result;
|
|
811
|
+
const last = await deps.uploaded(projectDir);
|
|
812
|
+
if (!matchesUpload(state, last)) return result;
|
|
813
|
+
if (await deps.checksum(render.path) !== last.checksum) return result;
|
|
814
|
+
const current = await deps.fingerprint(projectDir);
|
|
815
|
+
result.changed = current && current !== render.contentFingerprint ? true : null;
|
|
816
|
+
} catch {
|
|
817
|
+
}
|
|
818
|
+
return result;
|
|
819
|
+
}
|
|
820
|
+
function matchesUpload(state, last) {
|
|
821
|
+
return Boolean(
|
|
822
|
+
last?.checksum && last.projectId === state.share?.projectId && last.exportedAt === state.version.last?.exportedAt
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
// src/server/shareRoutes.ts
|
|
827
|
+
var AUDIENCES = ["public", "team", "invite", "private"];
|
|
828
|
+
function actionInput(value) {
|
|
829
|
+
if (!isRecord(value)) return null;
|
|
830
|
+
const record = Object.fromEntries(Object.entries(value));
|
|
831
|
+
if (Object.keys(record).some((key) => !["action", "audience", "space", "videoOnly"].includes(key)))
|
|
832
|
+
return null;
|
|
833
|
+
const { action, audience, space, videoOnly } = record;
|
|
834
|
+
if (!isAction(action)) return null;
|
|
835
|
+
const chosen = AUDIENCES.find((mode) => mode === audience);
|
|
836
|
+
if (audience !== void 0 && !chosen) return null;
|
|
837
|
+
const options = actionOptions(space, videoOnly);
|
|
838
|
+
if (!options) return null;
|
|
839
|
+
if (["share", "access"].includes(action) && !chosen) return null;
|
|
840
|
+
return {
|
|
841
|
+
action,
|
|
842
|
+
audience: chosen,
|
|
843
|
+
...options
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
function isRecord(value) {
|
|
847
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
848
|
+
}
|
|
849
|
+
function isAction(value) {
|
|
850
|
+
return ["share", "update", "access", "off", "on", "login"].some((action) => action === value);
|
|
851
|
+
}
|
|
852
|
+
function actionOptions(space, videoOnly) {
|
|
853
|
+
if (!validSpace(space)) return null;
|
|
854
|
+
if (videoOnly !== void 0 && typeof videoOnly !== "boolean") return null;
|
|
855
|
+
const options = {};
|
|
856
|
+
if (typeof space === "string") options.space = space;
|
|
857
|
+
if (videoOnly === true) options.videoOnly = true;
|
|
858
|
+
return options;
|
|
859
|
+
}
|
|
860
|
+
function validSpace(value) {
|
|
861
|
+
return value === void 0 || typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value);
|
|
862
|
+
}
|
|
863
|
+
var defaultCreate = async (path, progress) => (await import("./service-L3K45WOD.js")).createShareService(path, progress, {
|
|
864
|
+
surface: "local_studio",
|
|
865
|
+
pinIdentity: true
|
|
866
|
+
});
|
|
867
|
+
async function defaultLogin() {
|
|
868
|
+
const { startAuthorizationCodeFlow } = await import("./oauth-KUPQUH6E.js");
|
|
869
|
+
await startAuthorizationCodeFlow({ timeoutMs: 3e5 });
|
|
870
|
+
}
|
|
871
|
+
function mountShareRoutes(app, projectDir, create = defaultCreate, login = defaultLogin, track = trackShareInteraction) {
|
|
872
|
+
const routes = new Hono();
|
|
873
|
+
let job = null;
|
|
874
|
+
const hasRunningJob = () => job?.state === "running";
|
|
875
|
+
let jobOwner = null;
|
|
876
|
+
let loginToken = null;
|
|
877
|
+
const sessions = createShareSessions(
|
|
878
|
+
() => create(projectDir, (progress) => {
|
|
879
|
+
if (job?.state === "running" && progress) job.step = progress.step;
|
|
880
|
+
})
|
|
881
|
+
);
|
|
882
|
+
const visibleJob = async (token) => {
|
|
883
|
+
if (loginToken === token && job && job.state !== "done") return job;
|
|
884
|
+
const session = sessions.get(token);
|
|
885
|
+
if (!session) return null;
|
|
886
|
+
const key = shareSessionKey(await (await session.get()).checkSession());
|
|
887
|
+
return key === jobOwner ? job : null;
|
|
888
|
+
};
|
|
889
|
+
routes.use("*", async (c, next) => {
|
|
890
|
+
c.header("Cache-Control", "no-store");
|
|
891
|
+
if (!localShareRequestAllowed(c.req.raw))
|
|
892
|
+
return c.json({ code: "forbidden", message: "Open sharing from this local Studio." }, 403);
|
|
893
|
+
if (c.req.path !== "/api/share/bootstrap" && !sessions.get(c.req.header("x-hyperframes-share-csrf") ?? ""))
|
|
894
|
+
return c.json({ code: "forbidden", message: "Refresh Studio to reconnect sharing." }, 403);
|
|
895
|
+
return next();
|
|
896
|
+
});
|
|
897
|
+
routes.use("*", bodyLimit({ maxSize: 4096 }));
|
|
898
|
+
routes.get("/bootstrap", (c) => c.json({ csrf: sessions.open() }));
|
|
899
|
+
routes.post("/events", async (c) => {
|
|
900
|
+
const event = shareEventInput(await c.req.json().catch(() => null));
|
|
901
|
+
if (!event) return c.json({ code: "invalid_event", message: "Unknown sharing event." }, 400);
|
|
902
|
+
track(event, "local_studio");
|
|
903
|
+
return c.body(null, 204);
|
|
904
|
+
});
|
|
905
|
+
routes.get("/snapshot", async (c) => {
|
|
906
|
+
try {
|
|
907
|
+
const sharing = await sessions.get(c.req.header("x-hyperframes-share-csrf")).get();
|
|
908
|
+
const [state, spaces, capabilities] = await Promise.all([
|
|
909
|
+
sharing.status(),
|
|
910
|
+
sharing.spaces(),
|
|
911
|
+
sharing.capabilities()
|
|
912
|
+
]);
|
|
913
|
+
return c.json({
|
|
914
|
+
versionSharing: capabilities.versionSharing,
|
|
915
|
+
share: await presentPortableShare(projectDir, state),
|
|
916
|
+
spaces: presentSpaces(spaces),
|
|
917
|
+
job: await visibleJob(c.req.header("x-hyperframes-share-csrf"))
|
|
918
|
+
});
|
|
919
|
+
} catch (error) {
|
|
920
|
+
return c.json(
|
|
921
|
+
{
|
|
922
|
+
...await presentError(error, c.req.header("x-hyperframes-share-csrf")),
|
|
923
|
+
job: loginToken === c.req.header("x-hyperframes-share-csrf") && job && job.state !== "done" ? job : null
|
|
924
|
+
},
|
|
925
|
+
400
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
routes.get("/jobs/:id", async (c) => {
|
|
930
|
+
try {
|
|
931
|
+
const current = await visibleJob(c.req.header("x-hyperframes-share-csrf"));
|
|
932
|
+
return current?.id === c.req.param("id") ? c.json(current) : c.json(
|
|
933
|
+
{ code: "job_not_found", message: "Refresh sharing to see the current state." },
|
|
934
|
+
404
|
|
935
|
+
);
|
|
936
|
+
} catch (error) {
|
|
937
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
routes.post("/actions", async (c) => {
|
|
941
|
+
const input = actionInput(await c.req.json().catch(() => null));
|
|
942
|
+
if (!input)
|
|
943
|
+
return c.json(
|
|
944
|
+
{ code: "invalid_action", message: "Choose a valid sharing action and audience." },
|
|
945
|
+
400
|
|
946
|
+
);
|
|
947
|
+
const token = c.req.header("x-hyperframes-share-csrf");
|
|
948
|
+
const session = sessions.get(token);
|
|
949
|
+
if (hasRunningJob())
|
|
950
|
+
return c.json(
|
|
951
|
+
{
|
|
952
|
+
code: "share_busy",
|
|
953
|
+
message: "Sharing is already in progress.",
|
|
954
|
+
job: await visibleJob(token).catch(() => null)
|
|
955
|
+
},
|
|
956
|
+
409
|
|
957
|
+
);
|
|
958
|
+
let owner = null;
|
|
959
|
+
if (input.action !== "login") {
|
|
960
|
+
try {
|
|
961
|
+
owner = await sessionOwner(session);
|
|
962
|
+
} catch (error) {
|
|
963
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
if (hasRunningJob())
|
|
967
|
+
return c.json({ code: "share_busy", message: "Sharing is already in progress." }, 409);
|
|
968
|
+
jobOwner = owner;
|
|
969
|
+
loginToken = input.action === "login" ? token : null;
|
|
970
|
+
const current = {
|
|
971
|
+
id: randomUUID(),
|
|
972
|
+
state: "running",
|
|
973
|
+
step: actionStep(input),
|
|
974
|
+
result: null,
|
|
975
|
+
error: null
|
|
976
|
+
};
|
|
977
|
+
job = current;
|
|
978
|
+
void runJob(current, input, session, token);
|
|
979
|
+
return c.json(current, 202);
|
|
980
|
+
});
|
|
981
|
+
async function runJob(current, input, session, token) {
|
|
982
|
+
try {
|
|
983
|
+
if (input.action === "login") {
|
|
984
|
+
await login();
|
|
985
|
+
session.reset();
|
|
986
|
+
}
|
|
987
|
+
const sharing = await session.get();
|
|
988
|
+
const result = await executeAction(sharing, input);
|
|
989
|
+
jobOwner = shareSessionKey(await sharing.checkSession());
|
|
990
|
+
current.result = await presentPortableShare(projectDir, result);
|
|
991
|
+
current.state = "done";
|
|
992
|
+
} catch (error) {
|
|
993
|
+
current.error = await presentError(error, token);
|
|
994
|
+
current.state = "failed";
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
async function presentError(error, token) {
|
|
998
|
+
if (!(error instanceof ReviewFailed) || error.status !== 401) return shareError(error);
|
|
999
|
+
const session = sessions.get(token);
|
|
1000
|
+
if (!session) return shareError(error);
|
|
1001
|
+
try {
|
|
1002
|
+
await (await session.get()).checkSession(true);
|
|
1003
|
+
return {
|
|
1004
|
+
code: "sharing_not_admitted",
|
|
1005
|
+
message: "You're signed in, but sharing isn't accepting this sign-in. Try again later or contact support."
|
|
1006
|
+
};
|
|
1007
|
+
} catch (verificationError) {
|
|
1008
|
+
return shareError(verificationError);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
app.route("/api/share", routes);
|
|
1012
|
+
}
|
|
1013
|
+
function executeAction(sharing, input) {
|
|
1014
|
+
if (input.action === "login") return sharing.status();
|
|
1015
|
+
if (input.action === "access" && input.audience) return sharing.setAccess(input.audience);
|
|
1016
|
+
if (input.action === "off") return sharing.linkOff();
|
|
1017
|
+
if (input.action === "on") return sharing.linkOn();
|
|
1018
|
+
return sharing.run({
|
|
1019
|
+
action: input.action === "update" ? "update" : "share",
|
|
1020
|
+
audience: input.audience,
|
|
1021
|
+
space: input.space,
|
|
1022
|
+
videoOnly: input.videoOnly
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
function actionStep(input) {
|
|
1026
|
+
return input.action === "login" ? "signing_in" : "preparing";
|
|
1027
|
+
}
|
|
1028
|
+
async function sessionOwner(session) {
|
|
1029
|
+
return shareSessionKey(await (await session.get()).checkSession());
|
|
1030
|
+
}
|
|
1031
|
+
|
|
667
1032
|
// src/server/thumbnailPages.ts
|
|
668
1033
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
669
1034
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -733,13 +1098,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
733
1098
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
734
1099
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
735
1100
|
async function loadStudioProducer() {
|
|
736
|
-
if (!isDevMode()) return await import("./src-
|
|
1101
|
+
if (!isDevMode()) return await import("./src-WMZX5C4A.js");
|
|
737
1102
|
if (!process.versions.bun) {
|
|
738
1103
|
throw new Error(
|
|
739
1104
|
"Studio dev-mode rendering requires bun (the producer is loaded from TypeScript source, which Node cannot resolve). Restart the studio with `bun run studio`."
|
|
740
1105
|
);
|
|
741
1106
|
}
|
|
742
|
-
return await import("./src-
|
|
1107
|
+
return await import("./src-WMZX5C4A.js");
|
|
743
1108
|
}
|
|
744
1109
|
function resolveDistDir() {
|
|
745
1110
|
return resolveStudioBundle().dir;
|
|
@@ -854,8 +1219,8 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
854
1219
|
_thumbnailBrowserInitializing = (async () => {
|
|
855
1220
|
try {
|
|
856
1221
|
if (isShuttingDown()) return null;
|
|
857
|
-
const { ensureBrowser } = await import("./manager-
|
|
858
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
1222
|
+
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
1223
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-I3B7LYZM.js");
|
|
859
1224
|
let executablePath;
|
|
860
1225
|
try {
|
|
861
1226
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1030,7 +1395,7 @@ function createStudioServer(options) {
|
|
|
1030
1395
|
resolveProject: (id) => id === projectId ? project : null,
|
|
1031
1396
|
async bundle(dir, options2) {
|
|
1032
1397
|
try {
|
|
1033
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1398
|
+
const { bundleToSingleHtml } = await import("./compiler-J43BE6LC.js");
|
|
1034
1399
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1035
1400
|
html = html.replace(
|
|
1036
1401
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1043,10 +1408,10 @@ function createStudioServer(options) {
|
|
|
1043
1408
|
}
|
|
1044
1409
|
},
|
|
1045
1410
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1046
|
-
const { injectDeterministicFontFaces } = await import("./deterministicFonts-
|
|
1047
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1048
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1049
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
1411
|
+
const { injectDeterministicFontFaces } = await import("./deterministicFonts-UZIF5XZW.js");
|
|
1412
|
+
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-V3FJENRD.js");
|
|
1413
|
+
const { prepareHeifImageInputs } = await import("./heifImagePrep-7WN2QNQM.js");
|
|
1414
|
+
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-SSPDDS4Y.js");
|
|
1050
1415
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1051
1416
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1052
1417
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1078,7 +1443,7 @@ function createStudioServer(options) {
|
|
|
1078
1443
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1079
1444
|
},
|
|
1080
1445
|
async lint(html, opts) {
|
|
1081
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1446
|
+
const { lintHyperframeHtml } = await import("./dist-4JHP47NU.js");
|
|
1082
1447
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1083
1448
|
},
|
|
1084
1449
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1210,7 +1575,7 @@ function createStudioServer(options) {
|
|
|
1210
1575
|
startBackgroundRemoval(opts) {
|
|
1211
1576
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1212
1577
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1213
|
-
const pipeline = await import("./pipeline-
|
|
1578
|
+
const pipeline = await import("./pipeline-NQ4BI2D7.js").catch(
|
|
1214
1579
|
() => import(sourcePipelinePath)
|
|
1215
1580
|
);
|
|
1216
1581
|
return pipeline.render(renderOpts);
|
|
@@ -1295,8 +1660,8 @@ function createStudioServer(options) {
|
|
|
1295
1660
|
}
|
|
1296
1661
|
},
|
|
1297
1662
|
async listRegistryCatalog() {
|
|
1298
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1299
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1663
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-HQIDF3TF.js");
|
|
1664
|
+
const { loadProjectConfig } = await import("./projectConfig-GJL2ZGOU.js");
|
|
1300
1665
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1301
1666
|
const entries = await listRegistryItems(void 0, registry);
|
|
1302
1667
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1305,9 +1670,9 @@ function createStudioServer(options) {
|
|
|
1305
1670
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1306
1671
|
},
|
|
1307
1672
|
async installRegistryBlock(opts) {
|
|
1308
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1309
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1310
|
-
const { registryTargetPath } = await import("./publication-
|
|
1673
|
+
const { addToProject, primaryInstalledTarget } = await import("./add-WSGJ42KQ.js");
|
|
1674
|
+
const { recordRewrittenInstall } = await import("./installer-AJESSC5Y.js");
|
|
1675
|
+
const { registryTargetPath } = await import("./publication-BLLVTVD6.js");
|
|
1311
1676
|
const { result, item } = await addToProject({
|
|
1312
1677
|
name: opts.blockName,
|
|
1313
1678
|
projectDir: opts.project.dir,
|
|
@@ -1331,7 +1696,7 @@ function createStudioServer(options) {
|
|
|
1331
1696
|
};
|
|
1332
1697
|
}
|
|
1333
1698
|
};
|
|
1334
|
-
const app = new
|
|
1699
|
+
const app = new Hono2();
|
|
1335
1700
|
app.get("/__hyperframes_config", (c) => {
|
|
1336
1701
|
const serve = async () => {
|
|
1337
1702
|
const serverBuildSignature = await loadPreviewServerBuildSignature();
|
|
@@ -1411,8 +1776,8 @@ function createStudioServer(options) {
|
|
|
1411
1776
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1412
1777
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1413
1778
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1414
|
-
import("./preflight-
|
|
1415
|
-
import("./ffmpeg-
|
|
1779
|
+
import("./preflight-DLO6LHGO.js"),
|
|
1780
|
+
import("./ffmpeg-4CMA6M2L.js")
|
|
1416
1781
|
]);
|
|
1417
1782
|
const { outcomes } = await runEnvironmentChecks();
|
|
1418
1783
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1429,9 +1794,10 @@ function createStudioServer(options) {
|
|
|
1429
1794
|
});
|
|
1430
1795
|
});
|
|
1431
1796
|
mountDesktopRoutes(app, projectDir);
|
|
1797
|
+
mountShareRoutes(app, projectDir);
|
|
1432
1798
|
let cachedFFmpegPath;
|
|
1433
1799
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1434
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1800
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-4CMA6M2L.js");
|
|
1435
1801
|
if (!cachedFFmpegPath) {
|
|
1436
1802
|
cachedFFmpegPath = findFFmpeg();
|
|
1437
1803
|
}
|
|
@@ -1536,9 +1902,10 @@ function createStudioServer(options) {
|
|
|
1536
1902
|
}
|
|
1537
1903
|
let html = indexContent.toString("utf-8");
|
|
1538
1904
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1905
|
+
html = html.replace(
|
|
1906
|
+
"<head>",
|
|
1907
|
+
`<head><meta name="hyperframes-local-share" content="1">${headScript}`
|
|
1908
|
+
);
|
|
1542
1909
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1543
1910
|
});
|
|
1544
1911
|
const shutdown = async () => {
|
|
@@ -1547,7 +1914,7 @@ function createStudioServer(options) {
|
|
|
1547
1914
|
});
|
|
1548
1915
|
const renders = [...inFlightRenders];
|
|
1549
1916
|
for (const [abortController] of renders) abortController.abort();
|
|
1550
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1917
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-I3B7LYZM.js");
|
|
1551
1918
|
killTrackedProcesses();
|
|
1552
1919
|
const closeBrowsers = Promise.allSettled([
|
|
1553
1920
|
closeThumbnailBrowser().catch(() => {
|