hyperframes 0.9.32 → 0.9.34
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/bin/hyperframes.mjs +10 -0
- package/dist/{add-HYI4YJC5.js → add-NBOJ2UA3.js} +18 -17
- package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-3JOLQXTX.js} +11 -11
- package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-VI5CFYCR.js} +10 -10
- package/dist/api.js +49 -48
- package/dist/{appHistory-WZIHFCPK.js → appHistory-535MKSWI.js} +2 -2
- package/dist/{asset-7FG3M3FQ.js → asset-NYULKN5A.js} +2 -2
- package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-AWJMEMX7.js} +12 -12
- package/dist/{audio-R6ZG62DU.js → audio-QN5YYFOA.js} +31 -30
- package/dist/{auth-IPDYZXOG.js → auth-LHUBRGIH.js} +4 -4
- package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-5M3JGEFS.js} +3 -3
- package/dist/{avatars-A45VFUZ4.js → avatars-DAB2KILV.js} +19 -18
- package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-3NQOCEDM.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-VBSYVQA7.js → batchRender-EPRIJZVT.js} +4 -4
- package/dist/{beats-UPJ3KANG.js → beats-ZCPQEIFG.js} +14 -14
- package/dist/{benchmark-2RWYJGL2.js → benchmark-7OVOBGQX.js} +11 -11
- package/dist/{billing-MD66MJTA.js → billing-7K6S23FP.js} +19 -18
- package/dist/{browser-JXCS62NX.js → browser-CP76THCA.js} +10 -9
- package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-MRCRI676.js} +1 -1
- package/dist/{capture-M6DT5WZT.js → capture-B4B72PIK.js} +4 -4
- package/dist/{capture-DJ4WRP62.js → capture-VAE27MNW.js} +51 -31
- package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-YAOQTG6R.js} +18 -18
- package/dist/{captureFile-Y2ZMB7HK.js → captureFile-P4BDKVJH.js} +2 -2
- package/dist/{catalog-GW45OWKU.js → catalog-TUZGNHN6.js} +18 -17
- package/dist/{catch-up-YKJQ4IYC.js → catch-up-GMUF3JXI.js} +11 -11
- package/dist/{check-7QTKMPGA.js → check-CHCV573Z.js} +51 -51
- package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-JJZN37WT.js} +19 -19
- package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-SK7GFN7U.js} +44 -44
- package/dist/{chunk-X6DWLN55.js → chunk-2HDVXVUA.js} +8 -4
- package/dist/{chunk-JMV63CNH.js → chunk-2JXJQ3ZQ.js} +2 -2
- package/dist/{chunk-6BI6URO2.js → chunk-2JZU6DYH.js} +5 -4
- package/dist/{chunk-SXOIG6VG.js → chunk-2OP5HU5S.js} +284 -192
- package/dist/{chunk-KRWPTZBY.js → chunk-3FQYFVWA.js} +99 -25
- package/dist/{chunk-G7NKYELQ.js → chunk-3K4THQHY.js} +4 -4
- package/dist/{chunk-SIRYW7SY.js → chunk-3P4OYIBA.js} +2 -2
- package/dist/{chunk-WTO4DHBH.js → chunk-3XJ42WUG.js} +1 -1
- package/dist/{chunk-XPT4GC6X.js → chunk-45IPAGED.js} +7 -7
- package/dist/{chunk-HWMNSWEA.js → chunk-4MVWA7NJ.js} +6 -6
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-6MTSP2XE.js → chunk-4TQS6ZSL.js} +7 -7
- package/dist/{chunk-5GXMZIQZ.js → chunk-4WXLBRT5.js} +31 -22
- package/dist/{chunk-YIE5FU73.js → chunk-4Y4VYZRO.js} +37 -3
- package/dist/{chunk-K72X2YXR.js → chunk-52CUHVEA.js} +4 -4
- package/dist/{chunk-TLUDJLBN.js → chunk-55I56MXF.js} +1 -1
- package/dist/{chunk-2T7EDEKE.js → chunk-5QPYUTV3.js} +8 -8
- package/dist/{chunk-WLNQAJQC.js → chunk-5SXAEHZT.js} +2 -2
- package/dist/{chunk-77UB5EHM.js → chunk-5WK76INI.js} +1 -1
- package/dist/{chunk-5VN7ZXJR.js → chunk-5ZTB6QIJ.js} +3 -3
- package/dist/{chunk-ZIYXPDKY.js → chunk-65PFUPLX.js} +1 -1
- package/dist/{chunk-LHFBKUVY.js → chunk-6FP6HBG4.js} +2 -2
- package/dist/{chunk-YCTWMO3G.js → chunk-6HG3XABE.js} +1 -1
- package/dist/{chunk-LJMTEZOP.js → chunk-6K5KVYOQ.js} +16 -16
- package/dist/{chunk-34S7GYVK.js → chunk-6OYPVALW.js} +15 -8
- package/dist/{chunk-G2XAFJ2B.js → chunk-74PKHC3W.js} +1 -1
- package/dist/{chunk-N6Y645MX.js → chunk-7C6K5WFB.js} +1 -1
- package/dist/{chunk-M6FNCANA.js → chunk-7E5HPNMD.js} +1 -1
- package/dist/{chunk-CHJGVW5W.js → chunk-7YBRRU5W.js} +4 -11
- package/dist/{chunk-2NMBD5AH.js → chunk-7YOJPNDT.js} +1 -1
- package/dist/{chunk-GCJRV7LU.js → chunk-A2YCAF35.js} +23 -37
- package/dist/{chunk-E5S4QMX7.js → chunk-AG6L5CUE.js} +2 -2
- package/dist/{chunk-SVI2CJ6R.js → chunk-AOTAYP5E.js} +1 -1
- package/dist/{chunk-VB3JZKMN.js → chunk-ASORF7UJ.js} +31 -10
- package/dist/{chunk-XB7HE2R5.js → chunk-AUM475MS.js} +3 -3
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-I3QXWJ7V.js → chunk-BDFD3C3V.js} +7 -7
- package/dist/{chunk-YAS347ZS.js → chunk-BLII22FU.js} +1 -1
- package/dist/{chunk-CMYUPVMI.js → chunk-BX4GM3IV.js} +2 -2
- package/dist/{chunk-D7NNNL2K.js → chunk-BZPRG5N5.js} +18 -18
- package/dist/{chunk-H4C3P2KV.js → chunk-C3TYMGWE.js} +3 -3
- package/dist/{chunk-6NNLDCX4.js → chunk-C62LSZVJ.js} +1 -1
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
- package/dist/{chunk-GBIASKIH.js → chunk-DH34XRVW.js} +1 -1
- package/dist/{chunk-6SNGKC6B.js → chunk-DLBFLOEU.js} +1 -1
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-Z6X64P6C.js → chunk-DTM7HGP4.js} +6 -6
- package/dist/{chunk-2W4VQ3YZ.js → chunk-E53F4CP6.js} +2 -2
- package/dist/{chunk-3R2X2VKB.js → chunk-ECKXTBRB.js} +6 -4
- package/dist/{chunk-RCRUWNQ4.js → chunk-EDQF36I7.js} +3 -3
- package/dist/{chunk-GWSCUFGL.js → chunk-EWBLIDHD.js} +11 -9
- package/dist/{chunk-BMDABBHG.js → chunk-FEWHHDFA.js} +5 -17
- package/dist/{chunk-EBG5RCPM.js → chunk-FILLRGVO.js} +4 -4
- package/dist/{chunk-3HT3UGF2.js → chunk-FRY73NRV.js} +1 -1
- package/dist/{chunk-KAG5KXNO.js → chunk-FS4XHCSU.js} +1 -1
- package/dist/{chunk-GOMTMQRT.js → chunk-G6ME77PU.js} +1 -1
- package/dist/{chunk-GTHRXU37.js → chunk-GJB5VR44.js} +18 -18
- package/dist/{chunk-G6JLFSII.js → chunk-GXGGPZXD.js} +4 -4
- package/dist/chunk-H6323NVP.js +453 -0
- package/dist/chunk-HYTD4CIO.js +57 -0
- package/dist/{chunk-P7TCIUP2.js → chunk-I2GYLBJJ.js} +4 -4
- package/dist/{chunk-BA3EQ2KL.js → chunk-IVMYWHFE.js} +3 -3
- package/dist/{chunk-HDCVU64B.js → chunk-IX6BFRED.js} +3 -2
- package/dist/{chunk-W3HNLDK6.js → chunk-JJUVQYXL.js} +2 -2
- package/dist/{chunk-HXQDDCGY.js → chunk-JQATOGQQ.js} +2 -2
- package/dist/{chunk-2Z42EUHG.js → chunk-JVDYIUFD.js} +2 -2
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-SFPIVVUE.js → chunk-K4TEEYGN.js} +2 -2
- package/dist/{chunk-KFXHBP2E.js → chunk-K5BPLZOP.js} +2 -2
- package/dist/{chunk-H7AJLEBR.js → chunk-K6EOKQ6J.js} +8 -8
- package/dist/{chunk-Y3YHDU7T.js → chunk-KCL77FXI.js} +1 -1
- package/dist/{chunk-PXDRW3QN.js → chunk-LB6VJTM4.js} +1 -1
- package/dist/{chunk-EXW2LV4K.js → chunk-LCQT4S43.js} +248 -62
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-M6LAGO6O.js → chunk-NAKQS3EJ.js} +3 -3
- package/dist/{chunk-TTSLKH63.js → chunk-NMMPHHN7.js} +3 -3
- package/dist/{chunk-UWMOMAYI.js → chunk-O2S5HR7Y.js} +49 -12
- package/dist/{chunk-D6BV6TTI.js → chunk-OKN7E77Z.js} +1 -1
- package/dist/{chunk-XH6LGDIB.js → chunk-PDE6XAIJ.js} +4 -4
- package/dist/{chunk-4FTJE22M.js → chunk-PNBWAA3E.js} +2 -2
- package/dist/{chunk-AOQRVS63.js → chunk-PVHNBJCI.js} +9 -7
- package/dist/{chunk-3PHCFSPD.js → chunk-PWSTB75B.js} +2 -2
- package/dist/{chunk-PVSRPNIV.js → chunk-PXWPBLEN.js} +2 -2
- package/dist/{chunk-IEEIPTDW.js → chunk-PYZVKGW5.js} +1 -1
- package/dist/{chunk-5FFYMVRD.js → chunk-Q2G4ERQU.js} +2 -2
- package/dist/{chunk-YMIEJZB6.js → chunk-QDSALYDV.js} +4 -4
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-XDRSEU2I.js → chunk-R3C62AP3.js} +4 -4
- package/dist/{chunk-L72MPEM2.js → chunk-RJJ5NVSQ.js} +1 -1
- package/dist/{chunk-KXOKZJBZ.js → chunk-RSQTFDMS.js} +13 -13
- package/dist/{chunk-6RFCS4IU.js → chunk-RYJXT2AS.js} +9 -7
- package/dist/{chunk-GJUL3PRV.js → chunk-S3HTROSO.js} +3 -3
- package/dist/{chunk-AZ2QJETV.js → chunk-SAIPA3QY.js} +1 -1
- package/dist/{chunk-4CSZZXL6.js → chunk-SDBFTY6V.js} +3 -3
- package/dist/{chunk-TZH6HNZH.js → chunk-SG4OW2HV.js} +2 -2
- package/dist/{chunk-AWT5FHTN.js → chunk-T4YI2YLF.js} +1 -1
- package/dist/{chunk-TVQNABOI.js → chunk-T7O62YTY.js} +1 -1
- package/dist/chunk-TDOJW7Z2.js +5053 -0
- package/dist/{chunk-3367VNGK.js → chunk-TGGYHFTP.js} +2 -2
- package/dist/{chunk-NNOAOQLT.js → chunk-TGK7LUEV.js} +2 -2
- package/dist/chunk-TLU5DPES.js +560 -0
- package/dist/{chunk-LXIEKLAC.js → chunk-TOLY2QK2.js} +6 -6
- package/dist/chunk-UFKWSLJ5.js +392 -0
- package/dist/{chunk-PXY3JZP2.js → chunk-UGWY7PFQ.js} +2 -2
- package/dist/{chunk-REJ4NIBY.js → chunk-VJSKNQTM.js} +1 -1
- package/dist/{chunk-NXSKZE3C.js → chunk-VW35U2LJ.js} +2 -2
- package/dist/{chunk-JZIEZCQM.js → chunk-VZO3BUTW.js} +5 -12
- package/dist/{chunk-TFBPCJPG.js → chunk-W6AXNWGE.js} +1 -1
- package/dist/{chunk-262ADJJN.js → chunk-WC2XQ4NR.js} +1 -1
- package/dist/{chunk-WXOOAAT4.js → chunk-WLB2D2OJ.js} +36 -4
- package/dist/{chunk-P5E3RHW3.js → chunk-WWT32C2M.js} +3 -3
- package/dist/{chunk-ADP2GIBS.js → chunk-XEUTASNL.js} +2 -2
- package/dist/{chunk-MYFAVVA6.js → chunk-YCXNWQ3B.js} +32 -32
- package/dist/{chunk-JHX76QFC.js → chunk-YMTLKSXO.js} +1 -1
- package/dist/{chunk-KG3TONXU.js → chunk-Z222HDGC.js} +9 -9
- package/dist/chunk-Z3ZLN5VR.js +3890 -0
- package/dist/{chunk-EJPWGGPK.js → chunk-Z64I7KJZ.js} +5340 -5087
- package/dist/{chunk-LBQQNNRC.js → chunk-ZWLFWYHR.js} +1 -1
- package/dist/{clean-MJBET4EN.js → clean-N7RLS5LN.js} +29 -29
- package/dist/cli.js +70 -68
- package/dist/{cloud-Z4Q76MLS.js → cloud-4PO7BA26.js} +8 -7
- package/dist/{cloud-WEDQYHZE.js → cloud-W3DHH6EB.js} +4 -4
- package/dist/{cloudrun-2KGSRAKA.js → cloudrun-YIAPIPOG.js} +7 -7
- package/dist/{compare-MJKWQOD7.js → compare-GCWIIUGY.js} +43 -43
- package/dist/{compiler-ETXRTUQC.js → compiler-L3BJI43E.js} +8 -6
- package/dist/{component-PZGKEJ6L.js → component-C4VYDMZ4.js} +3 -3
- package/dist/{compositions-N3FEEWH7.js → compositions-5P4BZQJA.js} +16 -16
- package/dist/{contactSheet-HZMP42FZ.js → contactSheet-ROMTQQ6Y.js} +3 -3
- 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-IMXKUBAO.js} +15 -15
- package/dist/{cuts-BQFSSNY7.js → cuts-PRBLX5HH.js} +16 -16
- package/dist/{delete-HPHGJABK.js → delete-QYWDRFO3.js} +11 -10
- package/dist/{deploy-JY2QOB5F.js → deploy-DGEPSTOJ.js} +7 -7
- package/dist/{describeProject-S6AGYZWL.js → describeProject-WS4TR7VF.js} +11 -11
- package/dist/{destroy-AZK7J4IR.js → destroy-2KSDD4KU.js} +6 -6
- package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-D3HTAAN2.js} +3 -3
- package/dist/{diff-XDNFCAU4.js → diff-AAWRGZLX.js} +47 -46
- package/dist/{dist-6EE3Y4M7.js → dist-DJQRHSKZ.js} +4 -4
- package/dist/{dist-EYEYDD4F.js → dist-GJSMSEEL.js} +22 -18
- package/dist/{dist-TYGDYK56.js → dist-V2TLDLQL.js} +3 -3
- package/dist/{doctor-6IRSMKZD.js → doctor-CARXZUFN.js} +18 -18
- package/dist/{energy-VCJ2FJEF.js → energy-VMNGG2ND.js} +16 -16
- package/dist/{events-DNTIMCUM.js → events-4XIJRQIJ.js} +18 -18
- package/dist/{events-QQYBD7JM.js → events-LOPLHMOT.js} +4 -4
- package/dist/{events-M6A7BT3V.js → events-XX3DYSU4.js} +8 -8
- package/dist/execute-U7JKJERV.js +109 -0
- package/dist/{extract-X3IVXYHX.js → extract-KYFUTYDD.js} +19 -19
- package/dist/{face-MZHXKBDB.js → face-VQGUHRQL.js} +18 -18
- package/dist/{feedback-TAMGYFUO.js → feedback-UPWYWOQ3.js} +19 -18
- package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-RUOPT3JH.js} +10 -10
- package/dist/{figma-WMD7AR2S.js → figma-TO57RICW.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -16
- package/dist/{frames-OU2UOLBU.js → frames-4Y3X474I.js} +18 -18
- package/dist/{generate-6F6QEFXW.js → generate-BPID6U7D.js} +32 -31
- package/dist/{get-VVDO7DXG.js → get-JIJ46VI5.js} +11 -10
- package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-5ZJNSR7D.js} +10 -10
- package/dist/{grade-compare-O6LY2U73.js → grade-compare-YTBW7C65.js} +44 -44
- package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-OL7KF7SH.js} +11 -11
- package/dist/{help-XLSTTDHR.js → help-QPV26QI5.js} +2 -1
- package/dist/{history-DBCCWBDG.js → history-7UVGTZT3.js} +14 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +61 -61
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-E46BWAQ7.js → info-2VFXR7LJ.js} +18 -18
- package/dist/{init-23TG5W7S.js → init-JZ7CJQJE.js} +35 -35
- package/dist/{ink-6UFSNJRW.js → ink-SS7XOD7Y.js} +16 -16
- package/dist/{inspect-RKI6XACH.js → inspect-D5MBKDZZ.js} +41 -41
- package/dist/{installer-JWPK75BR.js → installer-UNC4BAFO.js} +7 -7
- package/dist/{keyframes-J65V5A2G.js → keyframes-7T2CVOM6.js} +14 -12
- package/dist/{lambda-RZSXXBJU.js → lambda-QVJFVSXL.js} +16 -16
- package/dist/{layout-RJQUOYWB.js → layout-5DF7VFWS.js} +41 -41
- package/dist/{lint-4TUHKKA2.js → lint-EWJHJKAI.js} +14 -14
- package/dist/{lintProject-R6RTBSCZ.js → lintProject-KBJU3L4C.js} +4 -4
- package/dist/{list-HOD2N4VS.js → list-DDLH5ZG5.js} +13 -12
- package/dist/{localPage-TC4NC3VL.js → localPage-MHAXFUGI.js} +11 -11
- package/dist/{login-NTOS3HKD.js → login-BJ4QUZT4.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-GC63E2I7.js → look-HNK2K33N.js} +16 -16
- package/dist/{manager-FICBET24.js → manager-FFLFDJZ6.js} +11 -11
- package/dist/{manager-IAXYSRG5.js → manager-VLO3FZC4.js} +2 -1
- package/dist/{measure-WTQCSQ55.js → measure-SE346MGF.js} +11 -11
- package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-KYPDRIBT.js} +18 -18
- package/dist/{media-use-K75FDXJ3.js → media-use-OJZHSNTK.js} +21 -10
- package/dist/{models-JKOA542M.js → models-KWSHPDZ5.js} +15 -15
- package/dist/{motionShot-A3TYKTQU.js → motionShot-HEROABIE.js} +24 -24
- package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-ZD5W37ZO.js} +14 -14
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-F6GI4TRA.js → open-7B6HT4EX.js} +19 -19
- package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-5AKE7TBH.js} +19 -19
- package/dist/{pipeline-7P7LGGQG.js → pipeline-UTVSWC4X.js} +13 -13
- package/dist/plan-SQ63IXQC.js +88 -0
- package/dist/{play-DYOZLKWX.js → play-NYBFE3GW.js} +32 -32
- package/dist/{preflight-VM4HSRBY.js → preflight-T23WHZP3.js} +12 -12
- package/dist/{present-IINIEZJC.js → present-FX22552Q.js} +26 -26
- package/dist/{preview-NJO2UXWJ.js → preview-ULBNMDXD.js} +63 -39
- package/dist/{probe-LQQHFX5Q.js → probe-62Z5C6VC.js} +16 -16
- package/dist/{producer-LH2SZHJ2.js → producer-X3KFL4QM.js} +1 -1
- package/dist/{projectConfig-BLACFLUW.js → projectConfig-JQ4IDYTU.js} +10 -10
- package/dist/{publication-NFF2BXIE.js → publication-YNIJIR6O.js} +5 -5
- package/dist/{publish-JST5Y4UR.js → publish-7TIGC7RV.js} +91 -31
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-WUBESLWN.js → remove-background-F3BD6WXD.js} +14 -14
- package/dist/{render-DA4V7CEE.js → render-BL6CAORF.js} +6 -6
- package/dist/{render-4KWUUC5H.js → render-CDWBVWJP.js} +91 -957
- package/dist/{render-R4VNR4E2.js → render-EOQOD2TJ.js} +54 -53
- package/dist/{render-batch-JMPG4RLT.js → render-batch-PDY2PXUZ.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-PNIFIDIE.js → resolver-VBAVCFEP.js} +7 -7
- package/dist/{reverse-4NI7D2C3.js → reverse-3E6HUX5S.js} +1 -1
- package/dist/{run-FWBIBLYE.js → run-77Z3DLIP.js} +8 -7
- package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-XWWCRLGM.js} +13 -13
- package/dist/service-LJZQKQT6.js +68 -0
- package/dist/share-2CNP22KN.js +274 -0
- package/dist/{sherpa-W3BMN67E.js → sherpa-NPTMMQHQ.js} +18 -18
- package/dist/sherpaWorker.js +2 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +20 -3
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +61 -3
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +25 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
- package/dist/skills/media-use/references/audio.md +2 -0
- package/dist/skills/media-use/references/operations.md +2 -1
- package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
- package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
- package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +42 -18
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
- package/dist/{skills-KQQVUFGO.js → skills-7MQBUOOX.js} +11 -11
- package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-JAUXRXRH.js} +4 -4
- package/dist/{snapshot-VIEJQAUB.js → snapshot-D7DROQPF.js} +61 -61
- package/dist/{src-HHPRCLEW.js → src-26DWEOAT.js} +11 -9
- package/dist/{src-MQU5F7GJ.js → src-LJIVCW6M.js} +15 -15
- package/dist/{start-ZBNNVFMU.js → start-DF3U2VIG.js} +30 -29
- package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-NYH6MQHZ.js} +25 -25
- package/dist/{status-RBZJYT7T.js → status-5Q43GUYF.js} +26 -23
- package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-OdIlx7W3.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-XtPxZL3k.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-D1l7izdf.js → index-DTU1D-zj.js} +166 -166
- package/dist/studio/assets/{index-DFRbcd5J.js → index-DWZWPFkU.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-NVr8gRm5.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-EPZGLIWW.js → studio-api-ZYCEQPX2.js} +22 -18
- package/dist/{studioServer-YFQQ2ESJ.js → studioServer-W4RX3B7S.js} +451 -71
- package/dist/{sync-FRT55PVW.js → sync-LLH2GSSC.js} +16 -16
- package/dist/{synthesize-FR5KPBRP.js → synthesize-4A5ENXNO.js} +4 -3
- package/dist/{telemetry-HAPPFR7P.js → telemetry-RIQIM2PH.js} +8 -8
- package/dist/{templates-2IHYIWMA.js → templates-4HVTWNKO.js} +22 -21
- package/dist/{timeline-AY2F7BJF.js → timeline-ITIMTT27.js} +25 -25
- package/dist/{tokens-B3G257V3.js → tokens-ABTBM6UA.js} +2 -2
- package/dist/{transcribe-RJCILGPA.js → transcribe-6BA2MP2Y.js} +37 -36
- package/dist/{transcribe-EGQD32PT.js → transcribe-6LDBHZCZ.js} +14 -14
- package/dist/{tts-ZE776B4I.js → tts-P77F523Z.js} +1 -1
- package/dist/{update-XTFIGQKW.js → update-ODXFCK36.js} +13 -13
- package/dist/{updateCheck-M6YC52A4.js → updateCheck-E4U776B4.js} +5 -3
- package/dist/{upgrade-AKLIZKAO.js → upgrade-LSHVYMLH.js} +5 -5
- package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-PWQ2LDLE.js} +9 -9
- package/dist/{validate-YWSXJL54.js → validate-JHETNNBN.js} +33 -33
- package/dist/{video-I5DDNK3Y.js → video-D2D5YCDU.js} +12 -12
- package/dist/{voices-IBMJU73H.js → voices-34FMTOIX.js} +29 -28
- package/dist/warmCheck.js +51 -51
- package/package.json +2 -1
- package/dist/chunk-YAZQBB2S.js +0 -5049
|
@@ -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-HYTD4CIO.js";
|
|
10
|
+
import {
|
|
11
|
+
ReviewFailed,
|
|
12
|
+
fileSha256Base64,
|
|
13
|
+
latestShareRender,
|
|
14
|
+
shareContentFingerprint,
|
|
15
|
+
shareSite,
|
|
16
|
+
trackShareInteraction,
|
|
17
|
+
versionOnPage
|
|
18
|
+
} from "./chunk-Z3ZLN5VR.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-5ZTB6QIJ.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-NMMPHHN7.js";
|
|
21
33
|
import {
|
|
22
34
|
resolveRenderBrowser
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-WWT32C2M.js";
|
|
36
|
+
import "./chunk-65PFUPLX.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-Q2G4ERQU.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-6K5KVYOQ.js";
|
|
49
|
+
import "./chunk-GXGGPZXD.js";
|
|
50
|
+
import "./chunk-YGGZ23BB.js";
|
|
51
|
+
import "./chunk-ZWLFWYHR.js";
|
|
52
|
+
import "./chunk-VJSKNQTM.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-T7O62YTY.js";
|
|
59
|
+
import "./chunk-IVMYWHFE.js";
|
|
60
|
+
import "./chunk-3XJ42WUG.js";
|
|
47
61
|
import {
|
|
48
62
|
PREVIEW_ALLOWED_HOSTS_ENV,
|
|
49
63
|
PREVIEW_BUNDLE_OPTIONS,
|
|
@@ -55,16 +69,19 @@ import {
|
|
|
55
69
|
createStudioApi,
|
|
56
70
|
getElementScreenshotClip,
|
|
57
71
|
getMimeType,
|
|
72
|
+
grantCaptureLoads,
|
|
58
73
|
hostHeaderAllowed,
|
|
59
74
|
identityAllowed,
|
|
60
75
|
originForListeningAddress,
|
|
61
76
|
previewAllowedHostsFromEnv,
|
|
62
77
|
sameOriginPost,
|
|
63
78
|
thumbnailDeviceScaleFactor
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-LCQT4S43.js";
|
|
80
|
+
import "./chunk-I2GYLBJJ.js";
|
|
81
|
+
import "./chunk-4MVWA7NJ.js";
|
|
67
82
|
import "./chunk-DONVZZLV.js";
|
|
83
|
+
import "./chunk-K6EOKQ6J.js";
|
|
84
|
+
import "./chunk-ECKXTBRB.js";
|
|
68
85
|
import {
|
|
69
86
|
DEFAULT_HISTORY_ROOT,
|
|
70
87
|
DELETED_VERSION,
|
|
@@ -77,47 +94,45 @@ import {
|
|
|
77
94
|
historyCache,
|
|
78
95
|
identifyFileWrite,
|
|
79
96
|
openProjectHistory
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-H7AJLEBR.js";
|
|
82
|
-
import "./chunk-3R2X2VKB.js";
|
|
97
|
+
} from "./chunk-R3C62AP3.js";
|
|
83
98
|
import "./chunk-BZULWFMJ.js";
|
|
84
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-PWSTB75B.js";
|
|
85
100
|
import "./chunk-LIWK3MFR.js";
|
|
86
101
|
import {
|
|
87
102
|
resolveCaptureBrowserGpuMode,
|
|
88
103
|
resolveLocalBrowserGpuMode,
|
|
89
104
|
resolveLocalWebGpu
|
|
90
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-3P4OYIBA.js";
|
|
91
106
|
import {
|
|
92
107
|
isLinkFreeWithinProject
|
|
93
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-WLB2D2OJ.js";
|
|
94
109
|
import {
|
|
95
110
|
resolveAutoProxy
|
|
96
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-K5BPLZOP.js";
|
|
97
112
|
import "./chunk-XT7X6QCP.js";
|
|
98
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-DH34XRVW.js";
|
|
99
114
|
import "./chunk-HVW7ABXD.js";
|
|
100
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-T4YI2YLF.js";
|
|
101
116
|
import "./chunk-JHOCK3DG.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-O2S5HR7Y.js";
|
|
118
|
+
import "./chunk-2JXJQ3ZQ.js";
|
|
104
119
|
import "./chunk-AWDFDFI3.js";
|
|
105
120
|
import "./chunk-P6LJ4Y32.js";
|
|
106
121
|
import "./chunk-D3UCUI7G.js";
|
|
107
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-74PKHC3W.js";
|
|
108
123
|
import {
|
|
109
124
|
renderMotionBlurTelemetryPayload,
|
|
110
125
|
trackRenderComplete,
|
|
111
126
|
trackRenderError
|
|
112
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-E53F4CP6.js";
|
|
113
128
|
import {
|
|
114
129
|
canaryDecisionsForStudio,
|
|
115
130
|
resetTelemetryPostureCache,
|
|
116
131
|
shouldTrack
|
|
117
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-PXWPBLEN.js";
|
|
118
133
|
import "./chunk-PXVQOMKL.js";
|
|
119
134
|
import "./chunk-MCDNAIFF.js";
|
|
120
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-DMW5SSUN.js";
|
|
121
136
|
import "./chunk-JNHJX2BZ.js";
|
|
122
137
|
import "./chunk-54HJ63Q2.js";
|
|
123
138
|
import "./chunk-JCNPHRGX.js";
|
|
@@ -132,28 +147,28 @@ import {
|
|
|
132
147
|
import {
|
|
133
148
|
assertWebGpuAdapterAvailable,
|
|
134
149
|
compositionRequiresWebGpu
|
|
135
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-Z64I7KJZ.js";
|
|
136
151
|
import "./chunk-Z5J67X44.js";
|
|
137
152
|
import "./chunk-5S7W3TUO.js";
|
|
138
153
|
import "./chunk-D3MUHMFG.js";
|
|
139
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-4Y4VYZRO.js";
|
|
140
155
|
import {
|
|
141
156
|
isAtomicTempPath,
|
|
142
157
|
replaceFileAtomically
|
|
143
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-PYZVKGW5.js";
|
|
144
159
|
import "./chunk-3GXQPCJC.js";
|
|
145
160
|
import {
|
|
146
161
|
GSAP_CDN_VERSION,
|
|
147
162
|
fpsToNumber
|
|
148
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-TGGYHFTP.js";
|
|
149
164
|
import "./chunk-FXMKHHPO.js";
|
|
150
|
-
import "./chunk-
|
|
165
|
+
import "./chunk-TDOJW7Z2.js";
|
|
151
166
|
import "./chunk-VC76R6W2.js";
|
|
152
167
|
import {
|
|
153
168
|
realpath
|
|
154
169
|
} from "./chunk-HZTRKUKE.js";
|
|
155
170
|
import "./chunk-RQVDTPGD.js";
|
|
156
|
-
import "./chunk-
|
|
171
|
+
import "./chunk-FEWHHDFA.js";
|
|
157
172
|
import "./chunk-PV4XID2A.js";
|
|
158
173
|
import {
|
|
159
174
|
runRenderSetupWorker
|
|
@@ -164,14 +179,14 @@ import {
|
|
|
164
179
|
} from "./chunk-FOZBANEN.js";
|
|
165
180
|
import "./chunk-K4MJX7SR.js";
|
|
166
181
|
import "./chunk-WE42NVH7.js";
|
|
167
|
-
import "./chunk-
|
|
182
|
+
import "./chunk-ASORF7UJ.js";
|
|
168
183
|
import {
|
|
169
184
|
isWithinProjectRoot
|
|
170
|
-
} from "./chunk-
|
|
171
|
-
import "./chunk-
|
|
185
|
+
} from "./chunk-K2Z6OXEI.js";
|
|
186
|
+
import "./chunk-3FQYFVWA.js";
|
|
172
187
|
import "./chunk-FBN2M2HK.js";
|
|
173
188
|
import "./chunk-6MKM2RVL.js";
|
|
174
|
-
import "./chunk-
|
|
189
|
+
import "./chunk-M425BL2U.js";
|
|
175
190
|
import "./chunk-FR7YBU3H.js";
|
|
176
191
|
import "./chunk-DPVXBVLL.js";
|
|
177
192
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -187,14 +202,14 @@ import {
|
|
|
187
202
|
import {
|
|
188
203
|
isDevMode
|
|
189
204
|
} from "./chunk-ISN5GRYI.js";
|
|
190
|
-
import "./chunk-GR2E54E6.js";
|
|
191
205
|
import "./chunk-ADVVQX4I.js";
|
|
206
|
+
import "./chunk-GR2E54E6.js";
|
|
192
207
|
import "./chunk-66W5IWLO.js";
|
|
193
208
|
import "./chunk-CPHQTXP5.js";
|
|
194
209
|
import "./chunk-QBXDU24O.js";
|
|
195
210
|
import {
|
|
196
211
|
VERSION
|
|
197
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-6FP6HBG4.js";
|
|
198
213
|
import "./chunk-E63BDV4Z.js";
|
|
199
214
|
import {
|
|
200
215
|
detectAgentRuntime
|
|
@@ -204,7 +219,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
204
219
|
import "./chunk-M2WBOQ2Q.js";
|
|
205
220
|
|
|
206
221
|
// src/server/studioServer.ts
|
|
207
|
-
import { Hono } from "hono";
|
|
222
|
+
import { Hono as Hono2 } from "hono";
|
|
208
223
|
import { streamSSE } from "hono/streaming";
|
|
209
224
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
210
225
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -369,7 +384,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
369
384
|
async function buildFromSource() {
|
|
370
385
|
if (!existsSync(ENTRY_TS)) return null;
|
|
371
386
|
try {
|
|
372
|
-
const mod = await import("./dist-
|
|
387
|
+
const mod = await import("./dist-V2TLDLQL.js");
|
|
373
388
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
374
389
|
const source = mod.loadHyperframeRuntimeSource();
|
|
375
390
|
if (source) return source;
|
|
@@ -380,7 +395,7 @@ async function buildFromSource() {
|
|
|
380
395
|
}
|
|
381
396
|
async function getInlinedRuntime() {
|
|
382
397
|
try {
|
|
383
|
-
const mod = await import("./dist-
|
|
398
|
+
const mod = await import("./dist-V2TLDLQL.js");
|
|
384
399
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
385
400
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
386
401
|
}
|
|
@@ -635,6 +650,368 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
635
650
|
});
|
|
636
651
|
}
|
|
637
652
|
|
|
653
|
+
// src/server/shareRoutes.ts
|
|
654
|
+
import { randomUUID } from "crypto";
|
|
655
|
+
import { Hono } from "hono";
|
|
656
|
+
import { bodyLimit } from "hono/body-limit";
|
|
657
|
+
|
|
658
|
+
// src/server/shareBoundary.ts
|
|
659
|
+
import { randomBytes, timingSafeEqual } from "crypto";
|
|
660
|
+
function localShareRequestAllowed(request) {
|
|
661
|
+
const host = request.headers.get("host");
|
|
662
|
+
if (!host || request.headers.get("sec-fetch-site") !== "same-origin") return false;
|
|
663
|
+
try {
|
|
664
|
+
const local = new URL(`http://${host}`);
|
|
665
|
+
if (local.host !== host || !["localhost", "127.0.0.1", "[::1]"].includes(local.hostname))
|
|
666
|
+
return false;
|
|
667
|
+
const origin = request.headers.get("origin");
|
|
668
|
+
if (origin !== null) return origin === local.origin;
|
|
669
|
+
const referer = request.headers.get("referer");
|
|
670
|
+
return referer !== null && new URL(referer).origin === local.origin;
|
|
671
|
+
} catch {
|
|
672
|
+
return false;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
function createShareCsrf() {
|
|
676
|
+
const token = randomBytes(32).toString("base64url");
|
|
677
|
+
return {
|
|
678
|
+
token,
|
|
679
|
+
accepts(value) {
|
|
680
|
+
return value !== null && Buffer.byteLength(value) === Buffer.byteLength(token) && timingSafeEqual(Buffer.from(value), Buffer.from(token));
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
// src/server/shareEvents.ts
|
|
686
|
+
function shareEventInput(value) {
|
|
687
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
688
|
+
if (Object.keys(value).length !== 2 || !("event" in value)) return null;
|
|
689
|
+
if (value.event === "share_link_copied" && "via" in value && value.via === "copy")
|
|
690
|
+
return { event: value.event, via: "copy" };
|
|
691
|
+
if (value.event !== "share_opened" || !("link" in value)) return null;
|
|
692
|
+
const link = ["none", "live", "changed"];
|
|
693
|
+
const chosen = link.find((item) => item === value.link);
|
|
694
|
+
return chosen ? { event: value.event, link: chosen } : null;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
// src/server/sharePresentation.ts
|
|
698
|
+
function presentShare(value) {
|
|
699
|
+
const held = value.share?.held || value.share?.takedown || value.share?.sharingState?.state === "subscription_required";
|
|
700
|
+
return {
|
|
701
|
+
upToDate: value.upToDate,
|
|
702
|
+
updated: value.updated,
|
|
703
|
+
state: presentedState(value, Boolean(held)),
|
|
704
|
+
url: held ? null : value.url ?? value.previousUrl,
|
|
705
|
+
failure: value.state === "failed" ? value.version.failure : null,
|
|
706
|
+
hasReadyVersion: value.ready || Boolean(value.previousUrl),
|
|
707
|
+
manageUrl: value.manageUrl,
|
|
708
|
+
// Desktop's watcher does not cover every portable render input.
|
|
709
|
+
changed: knownChanges(value),
|
|
710
|
+
audience: value.share?.access ?? null,
|
|
711
|
+
spaceId: value.share?.space?.id ?? null,
|
|
712
|
+
source: value.source.at
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
function presentSpaces(spaces) {
|
|
716
|
+
return spaces.map((space) => ({
|
|
717
|
+
id: space.space_id,
|
|
718
|
+
name: space.name || (space.kind === "personal" ? "Personal workspace" : space.space_id),
|
|
719
|
+
bound: space.bound === true,
|
|
720
|
+
canCreate: space.can_create_review,
|
|
721
|
+
...planOffer(space.review_entitlements),
|
|
722
|
+
audiences: [
|
|
723
|
+
"private",
|
|
724
|
+
...space.review_entitlements?.allowed_collaborative_access_modes ?? []
|
|
725
|
+
],
|
|
726
|
+
used: space.review_entitlements?.projects_used_up_to_limit ?? null,
|
|
727
|
+
limit: space.review_entitlements?.project_limit ?? null
|
|
728
|
+
}));
|
|
729
|
+
}
|
|
730
|
+
function knownChanges(value) {
|
|
731
|
+
if (!value.share) return false;
|
|
732
|
+
return value.version.last && !value.version.last.current ? true : null;
|
|
733
|
+
}
|
|
734
|
+
function planOffer(entitlements) {
|
|
735
|
+
const plan = entitlements?.plan ?? null;
|
|
736
|
+
return { plan, upgradeUrl: plan === "free" ? `${shareSite()}/pricing` : null };
|
|
737
|
+
}
|
|
738
|
+
function presentedState(value, held) {
|
|
739
|
+
if (held) return "unavailable";
|
|
740
|
+
if (value.state === "failed" || value.state === "not_shared" || value.state === "link_off")
|
|
741
|
+
return value.state;
|
|
742
|
+
return value.ready ? "ready" : "processing";
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// src/server/shareSessions.ts
|
|
746
|
+
function shareSessionKey(value) {
|
|
747
|
+
return JSON.stringify([value.owner, value.heygen, value.heygenApi]);
|
|
748
|
+
}
|
|
749
|
+
function createShareSessions(create) {
|
|
750
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
751
|
+
function session() {
|
|
752
|
+
let service = null;
|
|
753
|
+
return {
|
|
754
|
+
get: () => service ??= create(),
|
|
755
|
+
reset: () => {
|
|
756
|
+
service = null;
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
return {
|
|
761
|
+
open() {
|
|
762
|
+
const token = createShareCsrf().token;
|
|
763
|
+
if (sessions.size >= 128) {
|
|
764
|
+
const oldest = sessions.keys().next().value;
|
|
765
|
+
if (oldest) sessions.delete(oldest);
|
|
766
|
+
}
|
|
767
|
+
sessions.set(token, session());
|
|
768
|
+
return token;
|
|
769
|
+
},
|
|
770
|
+
get: (token) => sessions.get(token)
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// src/server/shareFreshness.ts
|
|
775
|
+
var dependencies = {
|
|
776
|
+
render: latestShareRender,
|
|
777
|
+
fingerprint: shareContentFingerprint,
|
|
778
|
+
uploaded: versionOnPage,
|
|
779
|
+
checksum: fileSha256Base64
|
|
780
|
+
};
|
|
781
|
+
async function presentPortableShare(projectDir, state, deps = dependencies) {
|
|
782
|
+
const result = presentShare(state);
|
|
783
|
+
try {
|
|
784
|
+
const render = deps.render(projectDir);
|
|
785
|
+
if (!render?.contentFingerprint) return result;
|
|
786
|
+
const last = await deps.uploaded(projectDir);
|
|
787
|
+
if (!matchesUpload(state, last)) return result;
|
|
788
|
+
if (await deps.checksum(render.path) !== last.checksum) return result;
|
|
789
|
+
const current = await deps.fingerprint(projectDir);
|
|
790
|
+
result.changed = current && current !== render.contentFingerprint ? true : null;
|
|
791
|
+
} catch {
|
|
792
|
+
}
|
|
793
|
+
return result;
|
|
794
|
+
}
|
|
795
|
+
function matchesUpload(state, last) {
|
|
796
|
+
return Boolean(
|
|
797
|
+
last?.checksum && last.projectId === state.share?.projectId && last.exportedAt === state.version.last?.exportedAt
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// src/server/shareRoutes.ts
|
|
802
|
+
var AUDIENCES = ["public", "team", "invite", "private"];
|
|
803
|
+
function actionInput(value) {
|
|
804
|
+
if (!isRecord(value)) return null;
|
|
805
|
+
const record = Object.fromEntries(Object.entries(value));
|
|
806
|
+
if (Object.keys(record).some(
|
|
807
|
+
(key) => !["action", "audience", "space", "videoOnly", "includeSource"].includes(key)
|
|
808
|
+
))
|
|
809
|
+
return null;
|
|
810
|
+
const { action, audience, space, videoOnly, includeSource } = record;
|
|
811
|
+
if (!isAction(action)) return null;
|
|
812
|
+
const chosen = AUDIENCES.find((mode) => mode === audience);
|
|
813
|
+
if (audience !== void 0 && !chosen) return null;
|
|
814
|
+
const options = actionOptions(space, videoOnly, includeSource);
|
|
815
|
+
if (!options) return null;
|
|
816
|
+
if (["share", "access"].includes(action) && !chosen) return null;
|
|
817
|
+
return {
|
|
818
|
+
action,
|
|
819
|
+
audience: chosen,
|
|
820
|
+
...options
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function isRecord(value) {
|
|
824
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
825
|
+
}
|
|
826
|
+
function isAction(value) {
|
|
827
|
+
return ["share", "update", "access", "off", "on", "login"].some((action) => action === value);
|
|
828
|
+
}
|
|
829
|
+
function actionOptions(space, videoOnly, includeSource) {
|
|
830
|
+
if (!validSpace(space)) return null;
|
|
831
|
+
if (![videoOnly, includeSource].every(optionalBoolean)) return null;
|
|
832
|
+
if (includeSource === true && videoOnly === true) return null;
|
|
833
|
+
const options = {};
|
|
834
|
+
if (typeof space === "string") options.space = space;
|
|
835
|
+
if (videoOnly === true) options.videoOnly = true;
|
|
836
|
+
if (includeSource === true) options.includeSource = true;
|
|
837
|
+
return options;
|
|
838
|
+
}
|
|
839
|
+
function optionalBoolean(value) {
|
|
840
|
+
return value === void 0 || typeof value === "boolean";
|
|
841
|
+
}
|
|
842
|
+
function validSpace(value) {
|
|
843
|
+
return value === void 0 || typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value);
|
|
844
|
+
}
|
|
845
|
+
var defaultCreate = async (path, progress) => (await import("./service-LJZQKQT6.js")).createShareService(path, progress, {
|
|
846
|
+
surface: "local_studio",
|
|
847
|
+
pinIdentity: true
|
|
848
|
+
});
|
|
849
|
+
async function defaultLogin() {
|
|
850
|
+
const { startAuthorizationCodeFlow } = await import("./oauth-SAVP2YM4.js");
|
|
851
|
+
await startAuthorizationCodeFlow({ timeoutMs: 3e5 });
|
|
852
|
+
}
|
|
853
|
+
function mountShareRoutes(app, projectDir, create = defaultCreate, login = defaultLogin, track = trackShareInteraction) {
|
|
854
|
+
const routes = new Hono();
|
|
855
|
+
let job = null;
|
|
856
|
+
const hasRunningJob = () => job?.state === "running";
|
|
857
|
+
let jobOwner = null;
|
|
858
|
+
let loginToken = null;
|
|
859
|
+
const sessions = createShareSessions(
|
|
860
|
+
() => create(projectDir, (progress) => {
|
|
861
|
+
if (job?.state === "running" && progress) job.step = progress.step;
|
|
862
|
+
})
|
|
863
|
+
);
|
|
864
|
+
const visibleJob = async (token) => {
|
|
865
|
+
if (loginToken === token && job && job.state !== "done") return job;
|
|
866
|
+
const session = sessions.get(token);
|
|
867
|
+
if (!session) return null;
|
|
868
|
+
const key = shareSessionKey(await (await session.get()).checkSession());
|
|
869
|
+
return key === jobOwner ? job : null;
|
|
870
|
+
};
|
|
871
|
+
routes.use("*", async (c, next) => {
|
|
872
|
+
c.header("Cache-Control", "no-store");
|
|
873
|
+
if (!localShareRequestAllowed(c.req.raw))
|
|
874
|
+
return c.json({ code: "forbidden", message: "Open sharing from this local Studio." }, 403);
|
|
875
|
+
if (c.req.path !== "/api/share/bootstrap" && !sessions.get(c.req.header("x-hyperframes-share-csrf") ?? ""))
|
|
876
|
+
return c.json({ code: "forbidden", message: "Refresh Studio to reconnect sharing." }, 403);
|
|
877
|
+
return next();
|
|
878
|
+
});
|
|
879
|
+
routes.use("*", bodyLimit({ maxSize: 4096 }));
|
|
880
|
+
routes.get("/bootstrap", (c) => c.json({ csrf: sessions.open() }));
|
|
881
|
+
routes.post("/events", async (c) => {
|
|
882
|
+
const event = shareEventInput(await c.req.json().catch(() => null));
|
|
883
|
+
if (!event) return c.json({ code: "invalid_event", message: "Unknown sharing event." }, 400);
|
|
884
|
+
track(event, "local_studio");
|
|
885
|
+
return c.body(null, 204);
|
|
886
|
+
});
|
|
887
|
+
routes.get("/snapshot", async (c) => {
|
|
888
|
+
try {
|
|
889
|
+
const sharing = await sessions.get(c.req.header("x-hyperframes-share-csrf")).get();
|
|
890
|
+
const [state, spaces, capabilities] = await Promise.all([
|
|
891
|
+
sharing.status(),
|
|
892
|
+
sharing.spaces(),
|
|
893
|
+
sharing.capabilities()
|
|
894
|
+
]);
|
|
895
|
+
return c.json({
|
|
896
|
+
versionSharing: capabilities.versionSharing,
|
|
897
|
+
share: await presentPortableShare(projectDir, state),
|
|
898
|
+
spaces: presentSpaces(spaces),
|
|
899
|
+
job: await visibleJob(c.req.header("x-hyperframes-share-csrf"))
|
|
900
|
+
});
|
|
901
|
+
} catch (error) {
|
|
902
|
+
return c.json(
|
|
903
|
+
{
|
|
904
|
+
...await presentError(error, c.req.header("x-hyperframes-share-csrf")),
|
|
905
|
+
job: loginToken === c.req.header("x-hyperframes-share-csrf") && job && job.state !== "done" ? job : null
|
|
906
|
+
},
|
|
907
|
+
400
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
routes.get("/jobs/:id", async (c) => {
|
|
912
|
+
try {
|
|
913
|
+
const current = await visibleJob(c.req.header("x-hyperframes-share-csrf"));
|
|
914
|
+
return current?.id === c.req.param("id") ? c.json(current) : c.json(
|
|
915
|
+
{ code: "job_not_found", message: "Refresh sharing to see the current state." },
|
|
916
|
+
404
|
|
917
|
+
);
|
|
918
|
+
} catch (error) {
|
|
919
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
routes.post("/actions", async (c) => {
|
|
923
|
+
const input = actionInput(await c.req.json().catch(() => null));
|
|
924
|
+
if (!input)
|
|
925
|
+
return c.json(
|
|
926
|
+
{ code: "invalid_action", message: "Choose a valid sharing action and audience." },
|
|
927
|
+
400
|
|
928
|
+
);
|
|
929
|
+
const token = c.req.header("x-hyperframes-share-csrf");
|
|
930
|
+
const session = sessions.get(token);
|
|
931
|
+
if (hasRunningJob())
|
|
932
|
+
return c.json(
|
|
933
|
+
{
|
|
934
|
+
code: "share_busy",
|
|
935
|
+
message: "Sharing is already in progress.",
|
|
936
|
+
job: await visibleJob(token).catch(() => null)
|
|
937
|
+
},
|
|
938
|
+
409
|
|
939
|
+
);
|
|
940
|
+
let owner = null;
|
|
941
|
+
if (input.action !== "login") {
|
|
942
|
+
try {
|
|
943
|
+
owner = await sessionOwner(session);
|
|
944
|
+
} catch (error) {
|
|
945
|
+
return c.json(await presentError(error, c.req.header("x-hyperframes-share-csrf")), 400);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
if (hasRunningJob())
|
|
949
|
+
return c.json({ code: "share_busy", message: "Sharing is already in progress." }, 409);
|
|
950
|
+
jobOwner = owner;
|
|
951
|
+
loginToken = input.action === "login" ? token : null;
|
|
952
|
+
const current = {
|
|
953
|
+
id: randomUUID(),
|
|
954
|
+
state: "running",
|
|
955
|
+
step: actionStep(input),
|
|
956
|
+
result: null,
|
|
957
|
+
error: null
|
|
958
|
+
};
|
|
959
|
+
job = current;
|
|
960
|
+
void runJob(current, input, session, token);
|
|
961
|
+
return c.json(current, 202);
|
|
962
|
+
});
|
|
963
|
+
async function runJob(current, input, session, token) {
|
|
964
|
+
try {
|
|
965
|
+
if (input.action === "login") {
|
|
966
|
+
await login();
|
|
967
|
+
session.reset();
|
|
968
|
+
}
|
|
969
|
+
const sharing = await session.get();
|
|
970
|
+
const result = await executeAction(sharing, input);
|
|
971
|
+
jobOwner = shareSessionKey(await sharing.checkSession());
|
|
972
|
+
current.result = await presentPortableShare(projectDir, result);
|
|
973
|
+
current.state = "done";
|
|
974
|
+
} catch (error) {
|
|
975
|
+
current.error = await presentError(error, token);
|
|
976
|
+
current.state = "failed";
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
async function presentError(error, token) {
|
|
980
|
+
if (!(error instanceof ReviewFailed) || error.status !== 401) return shareError(error);
|
|
981
|
+
const session = sessions.get(token);
|
|
982
|
+
if (!session) return shareError(error);
|
|
983
|
+
try {
|
|
984
|
+
await (await session.get()).checkSession(true);
|
|
985
|
+
return {
|
|
986
|
+
code: "sharing_not_admitted",
|
|
987
|
+
message: "You're signed in, but sharing isn't accepting this sign-in. Try again later or contact support."
|
|
988
|
+
};
|
|
989
|
+
} catch (verificationError) {
|
|
990
|
+
return shareError(verificationError);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
app.route("/api/share", routes);
|
|
994
|
+
}
|
|
995
|
+
function executeAction(sharing, input) {
|
|
996
|
+
if (input.action === "login") return sharing.status();
|
|
997
|
+
if (input.action === "access" && input.audience) return sharing.setAccess(input.audience);
|
|
998
|
+
if (input.action === "off") return sharing.linkOff();
|
|
999
|
+
if (input.action === "on") return sharing.linkOn();
|
|
1000
|
+
return sharing.run({
|
|
1001
|
+
action: input.action === "update" ? "update" : "share",
|
|
1002
|
+
audience: input.audience,
|
|
1003
|
+
space: input.space,
|
|
1004
|
+
videoOnly: input.videoOnly,
|
|
1005
|
+
includeSource: input.includeSource
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
function actionStep(input) {
|
|
1009
|
+
return input.action === "login" ? "signing_in" : "preparing";
|
|
1010
|
+
}
|
|
1011
|
+
async function sessionOwner(session) {
|
|
1012
|
+
return shareSessionKey(await (await session.get()).checkSession());
|
|
1013
|
+
}
|
|
1014
|
+
|
|
638
1015
|
// src/server/thumbnailPages.ts
|
|
639
1016
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
640
1017
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -704,13 +1081,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
704
1081
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
705
1082
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
706
1083
|
async function loadStudioProducer() {
|
|
707
|
-
if (!isDevMode()) return await import("./src-
|
|
1084
|
+
if (!isDevMode()) return await import("./src-LJIVCW6M.js");
|
|
708
1085
|
if (!process.versions.bun) {
|
|
709
1086
|
throw new Error(
|
|
710
1087
|
"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
1088
|
);
|
|
712
1089
|
}
|
|
713
|
-
return await import("./src-
|
|
1090
|
+
return await import("./src-LJIVCW6M.js");
|
|
714
1091
|
}
|
|
715
1092
|
function resolveDistDir() {
|
|
716
1093
|
return resolveStudioBundle().dir;
|
|
@@ -825,8 +1202,8 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
825
1202
|
_thumbnailBrowserInitializing = (async () => {
|
|
826
1203
|
try {
|
|
827
1204
|
if (isShuttingDown()) return null;
|
|
828
|
-
const { ensureBrowser } = await import("./manager-
|
|
829
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
1205
|
+
const { ensureBrowser } = await import("./manager-VLO3FZC4.js");
|
|
1206
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-26DWEOAT.js");
|
|
830
1207
|
let executablePath;
|
|
831
1208
|
try {
|
|
832
1209
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1001,7 +1378,7 @@ function createStudioServer(options) {
|
|
|
1001
1378
|
resolveProject: (id) => id === projectId ? project : null,
|
|
1002
1379
|
async bundle(dir, options2) {
|
|
1003
1380
|
try {
|
|
1004
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1381
|
+
const { bundleToSingleHtml } = await import("./compiler-L3BJI43E.js");
|
|
1005
1382
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1006
1383
|
html = html.replace(
|
|
1007
1384
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1014,10 +1391,10 @@ function createStudioServer(options) {
|
|
|
1014
1391
|
}
|
|
1015
1392
|
},
|
|
1016
1393
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1017
|
-
const { injectDeterministicFontFaces } = await import("./deterministicFonts-
|
|
1018
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1019
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1020
|
-
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-
|
|
1394
|
+
const { injectDeterministicFontFaces } = await import("./deterministicFonts-D3HTAAN2.js");
|
|
1395
|
+
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-VI5CFYCR.js");
|
|
1396
|
+
const { prepareHeifImageInputs } = await import("./heifImagePrep-OL7KF7SH.js");
|
|
1397
|
+
const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-PWQ2LDLE.js");
|
|
1021
1398
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1022
1399
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1023
1400
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1052,7 +1429,7 @@ function createStudioServer(options) {
|
|
|
1052
1429
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1053
1430
|
},
|
|
1054
1431
|
async lint(html, opts) {
|
|
1055
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1432
|
+
const { lintHyperframeHtml } = await import("./dist-DJQRHSKZ.js");
|
|
1056
1433
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1057
1434
|
},
|
|
1058
1435
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1198,7 +1575,7 @@ function createStudioServer(options) {
|
|
|
1198
1575
|
startBackgroundRemoval(opts) {
|
|
1199
1576
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1200
1577
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1201
|
-
const pipeline = await import("./pipeline-
|
|
1578
|
+
const pipeline = await import("./pipeline-UTVSWC4X.js").catch(
|
|
1202
1579
|
() => import(sourcePipelinePath)
|
|
1203
1580
|
);
|
|
1204
1581
|
return pipeline.render(renderOpts);
|
|
@@ -1226,6 +1603,7 @@ function createStudioServer(options) {
|
|
|
1226
1603
|
opts.seekTime,
|
|
1227
1604
|
async (page) => {
|
|
1228
1605
|
await page.setViewport(viewport);
|
|
1606
|
+
await grantCaptureLoads(await page.createCDPSession(), opts.previewUrl);
|
|
1229
1607
|
await page.goto(opts.previewUrl, { waitUntil: "domcontentloaded", timeout: 1e4 });
|
|
1230
1608
|
await assertWebGpuAdapterAvailable(
|
|
1231
1609
|
page,
|
|
@@ -1283,8 +1661,8 @@ function createStudioServer(options) {
|
|
|
1283
1661
|
}
|
|
1284
1662
|
},
|
|
1285
1663
|
async listRegistryCatalog() {
|
|
1286
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1287
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1664
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-VBAVCFEP.js");
|
|
1665
|
+
const { loadProjectConfig } = await import("./projectConfig-JQ4IDYTU.js");
|
|
1288
1666
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1289
1667
|
const entries = await listRegistryItems(void 0, registry);
|
|
1290
1668
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1293,9 +1671,9 @@ function createStudioServer(options) {
|
|
|
1293
1671
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1294
1672
|
},
|
|
1295
1673
|
async installRegistryBlock(opts) {
|
|
1296
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1297
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1298
|
-
const { registryTargetPath } = await import("./publication-
|
|
1674
|
+
const { addToProject, primaryInstalledTarget } = await import("./add-NBOJ2UA3.js");
|
|
1675
|
+
const { recordRewrittenInstall } = await import("./installer-UNC4BAFO.js");
|
|
1676
|
+
const { registryTargetPath } = await import("./publication-YNIJIR6O.js");
|
|
1299
1677
|
const { result, item } = await addToProject({
|
|
1300
1678
|
name: opts.blockName,
|
|
1301
1679
|
projectDir: opts.project.dir,
|
|
@@ -1319,7 +1697,7 @@ function createStudioServer(options) {
|
|
|
1319
1697
|
};
|
|
1320
1698
|
}
|
|
1321
1699
|
};
|
|
1322
|
-
const app = new
|
|
1700
|
+
const app = new Hono2();
|
|
1323
1701
|
const allowedHosts = previewAllowedHostsFromEnv();
|
|
1324
1702
|
app.use(async function refuseUnknownHost(c, next) {
|
|
1325
1703
|
const host = c.req.header("host") ?? new URL(c.req.url).host;
|
|
@@ -1410,8 +1788,8 @@ function createStudioServer(options) {
|
|
|
1410
1788
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1411
1789
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1412
1790
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1413
|
-
import("./preflight-
|
|
1414
|
-
import("./ffmpeg-
|
|
1791
|
+
import("./preflight-T23WHZP3.js"),
|
|
1792
|
+
import("./ffmpeg-RUOPT3JH.js")
|
|
1415
1793
|
]);
|
|
1416
1794
|
const { outcomes } = await runEnvironmentChecks();
|
|
1417
1795
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1428,9 +1806,10 @@ function createStudioServer(options) {
|
|
|
1428
1806
|
});
|
|
1429
1807
|
});
|
|
1430
1808
|
mountDesktopRoutes(app, projectDir);
|
|
1809
|
+
mountShareRoutes(app, projectDir);
|
|
1431
1810
|
let cachedFFmpegPath;
|
|
1432
1811
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1433
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1812
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-RUOPT3JH.js");
|
|
1434
1813
|
if (!cachedFFmpegPath) {
|
|
1435
1814
|
cachedFFmpegPath = findFFmpeg();
|
|
1436
1815
|
}
|
|
@@ -1439,7 +1818,7 @@ function createStudioServer(options) {
|
|
|
1439
1818
|
}
|
|
1440
1819
|
return next();
|
|
1441
1820
|
});
|
|
1442
|
-
const api = createStudioApi(adapter, { allowedHosts });
|
|
1821
|
+
const api = createStudioApi(adapter, { allowedHosts, sandboxThumbnailCaptures: true });
|
|
1443
1822
|
app.all("/api/*", async (c) => {
|
|
1444
1823
|
const url = new URL(c.req.url);
|
|
1445
1824
|
url.pathname = url.pathname.slice(4);
|
|
@@ -1535,9 +1914,10 @@ function createStudioServer(options) {
|
|
|
1535
1914
|
}
|
|
1536
1915
|
let html = indexContent.toString("utf-8");
|
|
1537
1916
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1917
|
+
html = html.replace(
|
|
1918
|
+
"<head>",
|
|
1919
|
+
`<head><meta name="hyperframes-local-share" content="1">${headScript}`
|
|
1920
|
+
);
|
|
1541
1921
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1542
1922
|
});
|
|
1543
1923
|
const shutdown = async () => {
|
|
@@ -1546,7 +1926,7 @@ function createStudioServer(options) {
|
|
|
1546
1926
|
});
|
|
1547
1927
|
const renders = [...inFlightRenders];
|
|
1548
1928
|
for (const [abortController] of renders) abortController.abort();
|
|
1549
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1929
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-26DWEOAT.js");
|
|
1550
1930
|
killTrackedProcesses();
|
|
1551
1931
|
const closeBrowsers = Promise.allSettled([
|
|
1552
1932
|
closeThumbnailBrowser().catch(() => {
|