hyperframes 0.9.27 → 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-K5J5XWLL.js → add-WSGJ42KQ.js} +14 -14
- package/dist/{agentPromptGenerator-PGIEEJLJ.js → agentPromptGenerator-JTMVHRZN.js} +7 -7
- package/dist/{animatedGifPrep-MLZOHCTS.js → animatedGifPrep-V3FJENRD.js} +7 -7
- package/dist/api.js +39 -38
- package/dist/{asset-OS5AB3SQ.js → asset-6LZTBFS7.js} +2 -2
- package/dist/{assetCataloger-DMVL5X2P.js → assetCataloger-GRGAUHXL.js} +8 -8
- package/dist/{audio-23FMLVOJ.js → audio-QCMSKGKQ.js} +25 -24
- package/dist/{auth-2DIXO5OO.js → auth-TB7AUPRE.js} +4 -4
- package/dist/{autoUpdate-NP2CBKFP.js → autoUpdate-G3G7WBJF.js} +3 -3
- package/dist/{avatars-LULUZMLI.js → avatars-6ILGXRFF.js} +16 -15
- package/dist/{backgroundChecks-3MXY6FNF.js → backgroundChecks-E3VZ7KZN.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-AL6DO5IA.js → batchRender-KWIPFU5Q.js} +4 -4
- package/dist/{beats-U4Q76QWK.js → beats-OBIGBNZA.js} +11 -11
- package/dist/{benchmark-QANZ2IRX.js → benchmark-64IXFBPC.js} +11 -11
- package/dist/{billing-PX54B6T7.js → billing-3X5BWBTI.js} +16 -15
- package/dist/{browser-P36XPIWA.js → browser-DZ3XIEFA.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-QY6JAKLF.js → bundleWithLocalizedFonts-PKQN5CMM.js} +1 -1
- package/dist/{capture-ZZWXDUH2.js → capture-NTN7O6RZ.js} +22 -22
- package/dist/{capture-S5DURUCT.js → capture-V7RAUBMG.js} +3 -3
- package/dist/{captureCompositionFrame-VTN6VB5N.js → captureCompositionFrame-KMMB3FVD.js} +14 -14
- package/dist/{catalog-TTBH4Y6Z.js → catalog-YIGPXM7Q.js} +14 -14
- package/dist/{catch-up-M3CF57PU.js → catch-up-LOGK3VIS.js} +9 -9
- package/dist/{check-K7ZBDKBZ.js → check-FVXJBA5U.js} +43 -44
- package/dist/{checkAudio-HZ3Z5BTZ.js → checkAudio-FSIRCDM6.js} +15 -15
- package/dist/{checkBrowser-TO5M2QL2.js → checkBrowser-NXRXF73I.js} +37 -37
- package/dist/{chunk-DC5ZRTHD.js → chunk-3DVDIXOZ.js} +2 -2
- package/dist/{chunk-NFUXYBOR.js → chunk-3MYEF34S.js} +1 -1
- package/dist/{chunk-ZUXES5HA.js → chunk-3Q7LAXFJ.js} +2 -2
- package/dist/{chunk-F24B2PLD.js → chunk-3T6BFAKZ.js} +1 -1
- package/dist/{chunk-SODLRBNC.js → chunk-3YP3OQVH.js} +1 -1
- package/dist/{chunk-JLUOG6S2.js → chunk-4OZVFZCO.js} +1 -1
- package/dist/{chunk-GQTNVE7U.js → chunk-5BIHQCC2.js} +4 -4
- package/dist/{chunk-GGDJLN5I.js → chunk-5EYQ222G.js} +20 -0
- package/dist/{chunk-INVBU7DY.js → chunk-5FI52L2T.js} +1 -1
- package/dist/{chunk-5FWOWZAB.js → chunk-5RETZFNG.js} +7 -7
- package/dist/{chunk-Q73OZV2V.js → chunk-6EZ76UBP.js} +17 -17
- package/dist/{chunk-Y67RJDEB.js → chunk-6NG6PATW.js} +1 -1
- package/dist/{chunk-L2GOO2UY.js → chunk-6ODX6SHY.js} +2 -2
- package/dist/{chunk-MVJ7AX6W.js → chunk-7U2B7OF6.js} +1 -1
- package/dist/{chunk-V4Z37HFN.js → chunk-7XHVHBFV.js} +3 -3
- package/dist/{chunk-FKSUSFRT.js → chunk-7ZKUPLMN.js} +18 -18
- package/dist/{chunk-K6UG4VWT.js → chunk-A5CTI6RW.js} +3 -3
- package/dist/{chunk-IOPIOX5K.js → chunk-AAENGP3S.js} +16 -66
- package/dist/{chunk-LMCFILEY.js → chunk-AHRX3FHF.js} +3 -3
- package/dist/{chunk-U5RXCKWJ.js → chunk-AJVYQVDB.js} +1 -1
- package/dist/{chunk-7VHSPFBH.js → chunk-ASMDPTT3.js} +1 -1
- package/dist/{chunk-RVXE24LQ.js → chunk-BFDNZ2JT.js} +2 -2
- package/dist/{chunk-WZTOPKVO.js → chunk-BI33G4XD.js} +7 -7
- package/dist/{chunk-6LCIO2YY.js → chunk-BP75ZLZ5.js} +2 -2
- package/dist/{chunk-5AULMCSV.js → chunk-C756HYL7.js} +2 -2
- package/dist/{chunk-W5QBSRPF.js → chunk-C7ME7Y45.js} +2 -2
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-YNIADMNZ.js → chunk-CJC6U3E7.js} +2 -2
- package/dist/chunk-DDCFX533.js +387 -0
- package/dist/{chunk-M3UU4QRH.js → chunk-DPAC75N5.js} +3 -3
- package/dist/{chunk-Z5THPTQ2.js → chunk-E3EIKMUU.js} +1 -1
- package/dist/{chunk-2WKG7HXZ.js → chunk-E7YPIP42.js} +2 -2
- package/dist/chunk-EKT2P27A.js +538 -0
- package/dist/chunk-F2FRUMWN.js +3699 -0
- package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
- package/dist/{chunk-V6EVV3XC.js → chunk-FW7MDSCQ.js} +2 -2
- package/dist/{chunk-YPRU66CC.js → chunk-G6CN5UWR.js} +1 -1
- package/dist/{chunk-D5QT3ORV.js → chunk-GN3CCXVU.js} +1 -1
- package/dist/{chunk-CZ43ZZFS.js → chunk-H3MJLPAC.js} +1 -1
- package/dist/{chunk-6NVZYXDT.js → chunk-HP6IDD33.js} +5 -5
- package/dist/{chunk-IX3K55NA.js → chunk-HW325JBH.js} +4 -4
- package/dist/{chunk-RSNZEWNW.js → chunk-HWQ6SNLY.js} +1 -1
- package/dist/{chunk-BZFVS36G.js → chunk-HYXSD2UA.js} +1 -1
- package/dist/{chunk-ZNTYIJ5K.js → chunk-IEB4IKXF.js} +1 -1
- package/dist/{chunk-OSDNRYQJ.js → chunk-IMSLXLUI.js} +1 -1
- package/dist/chunk-JE2YBPC5.js +152 -0
- package/dist/{chunk-5TD7HBR3.js → chunk-JEVWAGQP.js} +1 -1
- package/dist/{chunk-J237HI2F.js → chunk-JX4BEVC3.js} +29 -41
- package/dist/{chunk-OT2KF34N.js → chunk-K2OQYSDS.js} +12 -12
- package/dist/{chunk-ZDQNMNFE.js → chunk-KBF2DIZX.js} +9 -9
- package/dist/{chunk-PBDBD4BY.js → chunk-KFU75UXA.js} +2 -2
- package/dist/{chunk-NURN5W6M.js → chunk-KJ5QBEMN.js} +8 -6
- package/dist/{chunk-STQGPDO4.js → chunk-M7U6JTXF.js} +2 -2
- package/dist/{chunk-TRXIWZTM.js → chunk-MBRBEXMF.js} +1 -1
- package/dist/{chunk-6FHIR4KD.js → chunk-ME6L6GUF.js} +1 -1
- package/dist/{chunk-BJYCLZBQ.js → chunk-MEVLYDL2.js} +1 -1
- package/dist/{chunk-UPG4MMIA.js → chunk-MFSQZ2PR.js} +1 -1
- package/dist/{chunk-TMYY4DV4.js → chunk-MWBRY5HN.js} +3 -3
- package/dist/{chunk-IIS57Z3R.js → chunk-N6NB2WZ4.js} +2 -2
- package/dist/{chunk-5ZEBQO7Y.js → chunk-NKWJNDKO.js} +4 -4
- package/dist/{chunk-QYPS3UYP.js → chunk-O5G2LEUB.js} +3 -3
- package/dist/{chunk-NMOWXTCB.js → chunk-PG26KCBX.js} +2 -2
- package/dist/{chunk-7JK2YE2G.js → chunk-PWW2DKGL.js} +2 -2
- package/dist/{chunk-V7Q4XKRJ.js → chunk-Q5J4OO7N.js} +3 -3
- package/dist/{chunk-RYT22J4V.js → chunk-Q6TVZY36.js} +2 -2
- package/dist/{chunk-QTBRVJ6N.js → chunk-QMGFXL43.js} +1 -1
- package/dist/{chunk-4N3UVDIJ.js → chunk-QTDTCTGB.js} +6 -4
- package/dist/{chunk-NHJ5YUBZ.js → chunk-RERVXE6J.js} +2 -2
- package/dist/{chunk-LI2TX7SN.js → chunk-RGINHOAX.js} +2 -2
- package/dist/{chunk-XZ2MQF7V.js → chunk-RNUIFYO6.js} +1 -1
- package/dist/{chunk-TM6HH2VV.js → chunk-RO74CZMK.js} +1 -1
- package/dist/{chunk-HGHBQDM5.js → chunk-RPMPHUOS.js} +3 -3
- package/dist/{chunk-YU5QNJMA.js → chunk-RSZWWTQN.js} +2 -2
- package/dist/{chunk-TCQKCUDA.js → chunk-TF7VWCJM.js} +1 -1
- package/dist/chunk-U2NESB4H.js +173 -0
- package/dist/{chunk-CGUAZCPL.js → chunk-UDEFHX4Z.js} +15 -15
- package/dist/{chunk-ZGIPMCML.js → chunk-UF6C3CCP.js} +1 -1
- package/dist/{chunk-KUBXGMHI.js → chunk-UGX3IARM.js} +28 -30
- package/dist/{chunk-6PHVIKCJ.js → chunk-UO6DALBR.js} +4 -4
- package/dist/chunk-USTPTY7P.js +51 -0
- package/dist/{chunk-LLLNVEUF.js → chunk-UVZDPGZR.js} +1 -1
- package/dist/{chunk-UXJAMAZK.js → chunk-VCNPBW4L.js} +1 -1
- package/dist/chunk-VHXIMBTF.js +343 -0
- package/dist/{chunk-FNSWA4FK.js → chunk-VNKPEYMW.js} +1 -1
- package/dist/{chunk-DJVSNDF3.js → chunk-VSQ5NWCF.js} +3 -3
- package/dist/{chunk-5PL4LZYF.js → chunk-VVGNWH2J.js} +12 -12
- package/dist/{chunk-BZULWFMJ.js → chunk-W4DMQZL5.js} +2 -11
- package/dist/{chunk-IYYZMZD2.js → chunk-WIJGRX5X.js} +1 -1
- package/dist/{chunk-SCNC7YPB.js → chunk-WOSVLHQH.js} +1 -1
- package/dist/{chunk-QISOTHEQ.js → chunk-WRN3ZY5P.js} +7 -7
- package/dist/{chunk-YSJKA52M.js → chunk-WUOMBLQL.js} +2 -2
- package/dist/{chunk-M457GQGR.js → chunk-WXEXQLVV.js} +216 -344
- package/dist/{chunk-IQKMIYLG.js → chunk-WYA575QX.js} +7 -5
- package/dist/{chunk-3JFV42QB.js → chunk-XGRXNWDK.js} +3 -3
- package/dist/{chunk-5WI3VKQW.js → chunk-XMHYE6XY.js} +3 -3
- package/dist/{chunk-VXWASGGT.js → chunk-YJBGA3W6.js} +2 -2
- package/dist/{chunk-QBNHYXV3.js → chunk-YOUHA4KP.js} +11 -9
- package/dist/{chunk-6IMVGVA4.js → chunk-YPPJJ5ZH.js} +1 -1
- package/dist/{chunk-F4ROYQPH.js → chunk-Z2N7XOOB.js} +3 -3
- package/dist/{chunk-TKFKOWRI.js → chunk-ZEKQATYP.js} +6 -6
- package/dist/{chunk-2SX2EOPM.js → chunk-ZQLJLORI.js} +6 -6
- package/dist/{clean-LCQH4HFU.js → clean-6YCVFT7D.js} +22 -22
- package/dist/cli.js +65 -64
- package/dist/{cloud-34YHQNNB.js → cloud-BPWS4GJS.js} +4 -4
- package/dist/{cloud-QJMPTQ3N.js → cloud-TEJ6UVBU.js} +6 -5
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-A7DU7DQE.js} +7 -7
- package/dist/{compare-5EBDE5ZT.js → compare-HELNXJLM.js} +35 -35
- package/dist/{compiler-ZSIKBZBR.js → compiler-J43BE6LC.js} +4 -4
- package/dist/{component-7TIFLFYC.js → component-WEC4QGT3.js} +3 -3
- package/dist/{compositions-TLCEVGBC.js → compositions-RSUPWPK6.js} +13 -13
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-YABHYRHK.js → curve-OK5TBGXV.js} +12 -12
- package/dist/{cuts-UFRBSLDQ.js → cuts-S5WHYQZZ.js} +13 -13
- package/dist/{delete-5OABQGPL.js → delete-5NHJKNWL.js} +9 -8
- package/dist/{deploy-2OYZWP74.js → deploy-7PLBBXNB.js} +6 -6
- package/dist/{describeProject-TX2WQLQ5.js → describeProject-WVLTYWPG.js} +8 -8
- package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-UZIF5XZW.js} +2 -2
- package/dist/{diff-2CKZ2QR7.js → diff-W4EXKV5Q.js} +40 -39
- package/dist/{dist-EFXKPJJT.js → dist-4JHP47NU.js} +2 -2
- package/dist/{dist-O45G7NET.js → dist-AUYCAQMA.js} +14 -14
- package/dist/{dist-QRXJMFI7.js → dist-F3Y2XHZL.js} +3 -3
- package/dist/{doctor-Y436MAQR.js → doctor-7Y75ZXTU.js} +12 -12
- package/dist/{energy-UKLKTH7A.js → energy-Y4KYLWLZ.js} +13 -13
- package/dist/{events-MC5XLD2Z.js → events-3LAHSBBF.js} +8 -8
- package/dist/{events-NKRFVAY3.js → events-67Q5DIRC.js} +4 -4
- package/dist/{events-73W2IO3W.js → events-TQD3L5FS.js} +15 -15
- package/dist/execute-GFHAD3L6.js +109 -0
- package/dist/{extract-ZG3MHNYX.js → extract-6KGIEC76.js} +16 -16
- package/dist/{face-CFBT42SW.js → face-OBEAPOZR.js} +14 -14
- package/dist/{feedback-QGDEE3RB.js → feedback-QTB2UH3Q.js} +15 -14
- package/dist/{ffmpeg-UXHRG3MW.js → ffmpeg-4CMA6M2L.js} +7 -7
- package/dist/{figma-BD7RROGK.js → figma-4ZKDJA4R.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-ZF756HF3.js → frames-OFLJT4D5.js} +14 -14
- package/dist/{generate-LEUO4VVQ.js → generate-LHRF4A3Z.js} +27 -26
- package/dist/{get-4BL6VXKX.js → get-56RYQ7KG.js} +9 -8
- package/dist/{gpuPolicy-K2JHXORZ.js → gpuPolicy-35XK273G.js} +7 -7
- package/dist/{grade-compare-4UBZJQ7F.js → grade-compare-GQVODT4T.js} +37 -37
- package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-5YD4N6HQ.js} +1 -1
- package/dist/{heifImagePrep-O2WGVMAP.js → heifImagePrep-7WN2QNQM.js} +8 -8
- package/dist/{help-M55BSV4I.js → help-E2TKPNJJ.js} +1 -1
- package/dist/{history-UIQBTMXZ.js → history-AJ2MSBW6.js} +11 -11
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-X4VTZ7PT.js → info-HV43ZADN.js} +15 -15
- package/dist/{init-3Y5XMH6I.js → init-OHVVGDSF.js} +29 -29
- package/dist/{ink-QKIGMWUR.js → ink-IESBIGOE.js} +13 -13
- package/dist/{inspect-BUKYJF6N.js → inspect-Y7YS3ILY.js} +34 -34
- package/dist/{installer-VPGNKCEU.js → installer-AJESSC5Y.js} +5 -5
- package/dist/{keyframes-6HO56WZG.js → keyframes-XSL7JGAF.js} +12 -15
- package/dist/{lambda-XDVNHACQ.js → lambda-KU65SSVE.js} +13 -13
- package/dist/{layout-WELYAXO3.js → layout-ORX7QBGL.js} +34 -34
- package/dist/{lint-6R3E6Q5V.js → lint-KUGT5YHK.js} +12 -12
- package/dist/{lintProject-5CBL7VFV.js → lintProject-Z6TG3Z34.js} +2 -2
- package/dist/{list-SIL4TALK.js → list-EB3WYTHH.js} +11 -10
- package/dist/{localPage-6VW25RGJ.js → localPage-QLGKJQ6X.js} +7 -7
- package/dist/{login-3AFKZLIK.js → login-O5HWEYI4.js} +8 -7
- package/dist/{logout-FJ444652.js → logout-AHGR3X5U.js} +6 -4
- package/dist/{look-RYLQYXNN.js → look-BPSKQDST.js} +13 -13
- package/dist/{manager-T4ZHIMMY.js → manager-MNOR566P.js} +8 -8
- package/dist/{measure-XUK4GNAC.js → measure-USYFR5EK.js} +11 -11
- package/dist/{media-treatment-SR5TX7CH.js → media-treatment-5YATQA5D.js} +15 -15
- package/dist/{media-use-3LOSIEZM.js → media-use-BA245HF5.js} +9 -7
- package/dist/{models-5SPPZN2E.js → models-ST3IIAN2.js} +11 -11
- package/dist/{motionShot-IFAFFPZF.js → motionShot-DOIU74HO.js} +19 -19
- package/dist/{normalize-audio-LQDUTXFM.js → normalize-audio-PPSCFVKC.js} +11 -11
- package/dist/oauth-KUPQUH6E.js +40 -0
- package/dist/{open-XX2L2YSZ.js → open-R2EPWLS6.js} +14 -14
- package/dist/{parakeetRunner-R5WK6AJN.js → parakeetRunner-Q2SYZVYV.js} +13 -13
- package/dist/{pipeline-NMCWG5AA.js → pipeline-NQ4BI2D7.js} +10 -10
- package/dist/plan-CN2TTIAA.js +88 -0
- package/dist/{play-Q2AYSHPW.js → play-J3DJBBXW.js} +26 -26
- package/dist/{preflight-WG2O5KUQ.js → preflight-DLO6LHGO.js} +8 -8
- package/dist/{present-AOU7HG3N.js → present-MIWYYTIE.js} +21 -21
- package/dist/{preview-PMGF6AQB.js → preview-DEGHLTT6.js} +23 -23
- package/dist/{probe-SESDMQ4Q.js → probe-63RJNPIB.js} +13 -13
- package/dist/{producer-TGF2N7GF.js → producer-H7L5TBE4.js} +1 -1
- package/dist/{projectConfig-UHYPGWD5.js → projectConfig-GJL2ZGOU.js} +7 -7
- package/dist/{publication-5KOANEHK.js → publication-BLLVTVD6.js} +3 -3
- package/dist/{publish-C3ARXH6D.js → publish-CYPJA7T7.js} +83 -23
- package/dist/{refresh-YY4K2RWR.js → refresh-TB4TNH7R.js} +4 -3
- package/dist/{remove-background-ZHAYTN7D.js → remove-background-KX574FQY.js} +11 -11
- package/dist/{render-UNWC5ZIO.js → render-N7PKCVEP.js} +45 -44
- package/dist/{render-TSV3XTQV.js → render-RUEXLOWE.js} +6 -6
- package/dist/{render-XYWARHW5.js → render-SHUBWBK4.js} +316 -934
- package/dist/{render-batch-ISMXAG7F.js → render-batch-QFGQD5FM.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZWNLOG6O.js → resolver-HQIDF3TF.js} +5 -5
- package/dist/{reverse-Q76RJRN5.js → reverse-D2XWX6FV.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-EVZGKUEX.js} +5 -4
- package/dist/{screenshotCapture-N6BXDAMK.js → screenshotCapture-4JLD2OQZ.js} +8 -8
- package/dist/service-L3K45WOD.js +68 -0
- package/dist/share-7G44HDSY.js +226 -0
- package/dist/{sherpa-5YE5FIOR.js → sherpa-LU5AOQHV.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-U4NHFYH4.js → skills-KVQ2G6P5.js} +11 -11
- package/dist/{skillsUpdateCheck-XJA6VEZZ.js → skillsUpdateCheck-EB54PRMT.js} +4 -4
- package/dist/{snapshot-V4BSRUXI.js → snapshot-QWO6OXG3.js} +48 -50
- package/dist/{src-FNXCLKWN.js → src-I3B7LYZM.js} +6 -6
- package/dist/{src-JVYKW7RE.js → src-WMZX5C4A.js} +12 -12
- package/dist/{start-TSIACBUA.js → start-ACVZUBZX.js} +25 -24
- package/dist/{staticProjectServer-NTSNYFWQ.js → staticProjectServer-C6KEOAYY.js} +19 -19
- package/dist/{status-53Z4YLQ7.js → status-RYI42XDB.js} +20 -18
- package/dist/studio/assets/{codec-YP1ZxmPt.js → codec-D6qbrtZY.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-Cy3KqtCh.js → hyperframes-player-BVe9IO80.js} +1 -1
- package/dist/studio/assets/{index-C4B6p8IF.js → index-BZu8x7Q5.js} +1 -1
- package/dist/studio/assets/{index-BNTUBT5h.js → index-Cl9fSd9I.js} +184 -184
- package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-52lsHc7p.js → pausedVideoDecoder-DfnHfnL7.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-2I44WB4P.js → studio-api-RBURPKYX.js} +14 -14
- package/dist/{studioServer-HSYYGQU3.js → studioServer-J5DYNR6R.js} +434 -83
- package/dist/{sync-B2HPDX37.js → sync-MUKE7NSP.js} +13 -13
- package/dist/{telemetry-L4KX6ADA.js → telemetry-6MDOWNLT.js} +8 -8
- package/dist/{templates-MKR4FTPR.js → templates-LWPXN7M2.js} +19 -18
- package/dist/{timeline-VDFI4ABH.js → timeline-WTBC3J7O.js} +21 -21
- package/dist/{tokens-XYVGSKDY.js → tokens-4NPCCANL.js} +2 -2
- package/dist/{transcribe-A7QZYVNX.js → transcribe-NZJPYTM7.js} +29 -28
- package/dist/{transcribe-3QGLLMEQ.js → transcribe-RL7LGXU6.js} +10 -10
- package/dist/{tts-HOZ6X3MD.js → tts-NANTORLP.js} +1 -1
- package/dist/{update-AWSCA73T.js → update-DZCGNNOU.js} +12 -12
- package/dist/{updateCheck-ATDIIE24.js → updateCheck-N3C56RNJ.js} +3 -3
- package/dist/{upgrade-RJNDUCWP.js → upgrade-RCV7ZF5Z.js} +4 -4
- package/dist/{urlDownloader-RE6IIDWK.js → urlDownloader-SSPDDS4Y.js} +6 -6
- package/dist/{validate-YWO6GA5Q.js → validate-HQDRN6T3.js} +28 -28
- package/dist/{video-RKEUBWJI.js → video-FPDBQAXL.js} +8 -8
- package/dist/{voices-GESP52KZ.js → voices-PMLIXQT4.js} +24 -23
- package/dist/warmCheck.js +43 -44
- package/package.json +2 -1
- package/dist/chunk-63HHKYU2.js +0 -413
- package/dist/chunk-XDKEKXV4.js +0 -29
- package/dist/{destroy-YAMTVR2W.js → destroy-IWHFUGJL.js} +4 -4
- package/dist/{synthesize-MDW4ZWTN.js → synthesize-NJKCIPKW.js} +5 -5
|
@@ -5,43 +5,54 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
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";
|
|
19
|
+
import {
|
|
10
20
|
renderJobObservabilityTelemetryPayload,
|
|
11
21
|
renderObservabilityTelemetryPayload,
|
|
12
22
|
startRenderCpuSampler
|
|
13
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U2NESB4H.js";
|
|
14
24
|
import {
|
|
15
25
|
HANDOFF_READY,
|
|
16
26
|
desktopDownloadUrl,
|
|
17
27
|
desktopInstalled,
|
|
18
28
|
insideHostApp,
|
|
19
29
|
openInDesktop
|
|
20
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YJBGA3W6.js";
|
|
21
31
|
import {
|
|
22
32
|
resolveRenderBrowser
|
|
23
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-QMGFXL43.js";
|
|
24
34
|
import "./chunk-54FVSPRH.js";
|
|
35
|
+
import "./chunk-JE2YBPC5.js";
|
|
25
36
|
import {
|
|
26
37
|
loadSharpInBackground
|
|
27
38
|
} from "./chunk-NL4RCLQF.js";
|
|
39
|
+
import "./chunk-WXEXQLVV.js";
|
|
28
40
|
import "./chunk-6BEFEWFB.js";
|
|
29
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-H3MJLPAC.js";
|
|
30
42
|
import "./chunk-X7MTZ4T2.js";
|
|
31
|
-
import "./chunk-GGDJLN5I.js";
|
|
32
43
|
import {
|
|
33
44
|
seekCompositionTimeline
|
|
34
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UDEFHX4Z.js";
|
|
35
46
|
import {
|
|
36
47
|
GSAP_VENDOR_FILES,
|
|
37
48
|
readBundleFile,
|
|
38
49
|
resolveGsapVendorDir
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-262C25DQ.js";
|
|
41
|
-
import "./chunk-M3UU4QRH.js";
|
|
42
|
-
import "./chunk-U5RXCKWJ.js";
|
|
50
|
+
} from "./chunk-IMSLXLUI.js";
|
|
43
51
|
import "./chunk-YGGZ23BB.js";
|
|
44
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-MEVLYDL2.js";
|
|
53
|
+
import "./chunk-262C25DQ.js";
|
|
54
|
+
import "./chunk-DPAC75N5.js";
|
|
55
|
+
import "./chunk-AJVYQVDB.js";
|
|
45
56
|
import {
|
|
46
57
|
PREVIEW_BUNDLE_OPTIONS,
|
|
47
58
|
affectsPreview,
|
|
@@ -53,10 +64,12 @@ import {
|
|
|
53
64
|
getElementScreenshotClip,
|
|
54
65
|
getMimeType,
|
|
55
66
|
thumbnailDeviceScaleFactor
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-JX4BEVC3.js";
|
|
68
|
+
import "./chunk-HW325JBH.js";
|
|
69
|
+
import "./chunk-AHRX3FHF.js";
|
|
59
70
|
import "./chunk-DONVZZLV.js";
|
|
71
|
+
import "./chunk-7XHVHBFV.js";
|
|
72
|
+
import "./chunk-3MYEF34S.js";
|
|
60
73
|
import {
|
|
61
74
|
DEFAULT_HISTORY_ROOT,
|
|
62
75
|
DELETED_VERSION,
|
|
@@ -70,27 +83,25 @@ import {
|
|
|
70
83
|
identifyFileWrite,
|
|
71
84
|
openProjectHistory
|
|
72
85
|
} from "./chunk-BF6RWOUF.js";
|
|
73
|
-
import "./chunk-V4Z37HFN.js";
|
|
74
|
-
import "./chunk-NFUXYBOR.js";
|
|
75
86
|
import "./chunk-ALVXFXUG.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-W4DMQZL5.js";
|
|
88
|
+
import "./chunk-3DVDIXOZ.js";
|
|
78
89
|
import "./chunk-FGFVUKPP.js";
|
|
79
90
|
import {
|
|
80
91
|
resolveCaptureBrowserGpuMode,
|
|
81
92
|
resolveLocalBrowserGpuMode,
|
|
82
93
|
resolveLocalWebGpu
|
|
83
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-KFU75UXA.js";
|
|
84
95
|
import {
|
|
85
96
|
resolveAutoProxy
|
|
86
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-WIJGRX5X.js";
|
|
87
98
|
import "./chunk-XT7X6QCP.js";
|
|
88
99
|
import "./chunk-FRBQ3FIM.js";
|
|
89
100
|
import "./chunk-HVW7ABXD.js";
|
|
90
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-ME6L6GUF.js";
|
|
91
102
|
import "./chunk-JHOCK3DG.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-XGRXNWDK.js";
|
|
104
|
+
import "./chunk-7U2B7OF6.js";
|
|
94
105
|
import "./chunk-AWDFDFI3.js";
|
|
95
106
|
import "./chunk-P6LJ4Y32.js";
|
|
96
107
|
import "./chunk-D3UCUI7G.js";
|
|
@@ -99,15 +110,15 @@ import {
|
|
|
99
110
|
renderMotionBlurTelemetryPayload,
|
|
100
111
|
trackRenderComplete,
|
|
101
112
|
trackRenderError
|
|
102
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-RGINHOAX.js";
|
|
103
114
|
import {
|
|
104
115
|
canaryDecisionsForStudio,
|
|
105
116
|
resetTelemetryPostureCache,
|
|
106
117
|
shouldTrack
|
|
107
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-PWW2DKGL.js";
|
|
108
119
|
import "./chunk-PXVQOMKL.js";
|
|
109
120
|
import "./chunk-MCDNAIFF.js";
|
|
110
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-FID757D3.js";
|
|
111
122
|
import "./chunk-JNHJX2BZ.js";
|
|
112
123
|
import "./chunk-54HJ63Q2.js";
|
|
113
124
|
import "./chunk-VU4EPKFI.js";
|
|
@@ -122,11 +133,11 @@ import "./chunk-ZB2XGJSP.js";
|
|
|
122
133
|
import {
|
|
123
134
|
assertWebGpuAdapterAvailable,
|
|
124
135
|
compositionRequiresWebGpu
|
|
125
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-Q5J4OO7N.js";
|
|
126
137
|
import "./chunk-Z5J67X44.js";
|
|
127
138
|
import "./chunk-5S7W3TUO.js";
|
|
128
139
|
import "./chunk-D3MUHMFG.js";
|
|
129
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-RERVXE6J.js";
|
|
130
141
|
import {
|
|
131
142
|
isAtomicTempPath,
|
|
132
143
|
replaceFileAtomically
|
|
@@ -135,16 +146,15 @@ import "./chunk-3GXQPCJC.js";
|
|
|
135
146
|
import {
|
|
136
147
|
GSAP_CDN_VERSION,
|
|
137
148
|
fpsToNumber
|
|
138
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-Q6TVZY36.js";
|
|
139
150
|
import "./chunk-FXMKHHPO.js";
|
|
140
|
-
import "./chunk-
|
|
151
|
+
import "./chunk-3T6BFAKZ.js";
|
|
141
152
|
import "./chunk-VC76R6W2.js";
|
|
142
153
|
import {
|
|
143
154
|
realpath
|
|
144
155
|
} from "./chunk-OFQWTKPW.js";
|
|
145
156
|
import "./chunk-RQVDTPGD.js";
|
|
146
157
|
import "./chunk-BMDABBHG.js";
|
|
147
|
-
import "./chunk-PV4XID2A.js";
|
|
148
158
|
import {
|
|
149
159
|
runRenderSetupWorker
|
|
150
160
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -154,14 +164,14 @@ import {
|
|
|
154
164
|
} from "./chunk-FOZBANEN.js";
|
|
155
165
|
import "./chunk-K4MJX7SR.js";
|
|
156
166
|
import "./chunk-WE42NVH7.js";
|
|
157
|
-
import "./chunk-
|
|
167
|
+
import "./chunk-VSQ5NWCF.js";
|
|
158
168
|
import {
|
|
159
169
|
isWithinProjectRoot
|
|
160
170
|
} from "./chunk-WVRAFHJU.js";
|
|
161
171
|
import "./chunk-HYRPH6LL.js";
|
|
162
172
|
import "./chunk-FBN2M2HK.js";
|
|
163
173
|
import "./chunk-6MKM2RVL.js";
|
|
164
|
-
import "./chunk-
|
|
174
|
+
import "./chunk-AAENGP3S.js";
|
|
165
175
|
import "./chunk-FR7YBU3H.js";
|
|
166
176
|
import "./chunk-DPVXBVLL.js";
|
|
167
177
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -177,14 +187,14 @@ import {
|
|
|
177
187
|
import {
|
|
178
188
|
isDevMode
|
|
179
189
|
} from "./chunk-ISN5GRYI.js";
|
|
180
|
-
import "./chunk-GR2E54E6.js";
|
|
181
190
|
import "./chunk-ADVVQX4I.js";
|
|
191
|
+
import "./chunk-GR2E54E6.js";
|
|
182
192
|
import "./chunk-66W5IWLO.js";
|
|
183
193
|
import "./chunk-PQYICV7O.js";
|
|
184
194
|
import "./chunk-QBXDU24O.js";
|
|
185
195
|
import {
|
|
186
196
|
VERSION
|
|
187
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-E7YPIP42.js";
|
|
188
198
|
import "./chunk-E63BDV4Z.js";
|
|
189
199
|
import {
|
|
190
200
|
detectAgentRuntime
|
|
@@ -194,7 +204,7 @@ import "./chunk-7KDQAD2W.js";
|
|
|
194
204
|
import "./chunk-M2WBOQ2Q.js";
|
|
195
205
|
|
|
196
206
|
// src/server/studioServer.ts
|
|
197
|
-
import { Hono } from "hono";
|
|
207
|
+
import { Hono as Hono2 } from "hono";
|
|
198
208
|
import { streamSSE } from "hono/streaming";
|
|
199
209
|
import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
|
|
200
210
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -359,7 +369,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
|
|
|
359
369
|
async function buildFromSource() {
|
|
360
370
|
if (!existsSync(ENTRY_TS)) return null;
|
|
361
371
|
try {
|
|
362
|
-
const mod = await import("./dist-
|
|
372
|
+
const mod = await import("./dist-F3Y2XHZL.js");
|
|
363
373
|
if (typeof mod.loadHyperframeRuntimeSource === "function") {
|
|
364
374
|
const source = mod.loadHyperframeRuntimeSource();
|
|
365
375
|
if (source) return source;
|
|
@@ -370,7 +380,7 @@ async function buildFromSource() {
|
|
|
370
380
|
}
|
|
371
381
|
async function getInlinedRuntime() {
|
|
372
382
|
try {
|
|
373
|
-
const mod = await import("./dist-
|
|
383
|
+
const mod = await import("./dist-F3Y2XHZL.js");
|
|
374
384
|
if (typeof mod.getHyperframeRuntimeScript === "function") {
|
|
375
385
|
return mod.getHyperframeRuntimeScript() ?? null;
|
|
376
386
|
}
|
|
@@ -667,6 +677,358 @@ function mountDesktopRoutes(app, projectDir, {
|
|
|
667
677
|
});
|
|
668
678
|
}
|
|
669
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
|
+
|
|
670
1032
|
// src/server/thumbnailPages.ts
|
|
671
1033
|
function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
|
|
672
1034
|
const pages = /* @__PURE__ */ new Map();
|
|
@@ -736,13 +1098,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
|
|
|
736
1098
|
var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
|
|
737
1099
|
var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
|
|
738
1100
|
async function loadStudioProducer() {
|
|
739
|
-
if (!isDevMode()) return await import("./src-
|
|
1101
|
+
if (!isDevMode()) return await import("./src-WMZX5C4A.js");
|
|
740
1102
|
if (!process.versions.bun) {
|
|
741
1103
|
throw new Error(
|
|
742
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`."
|
|
743
1105
|
);
|
|
744
1106
|
}
|
|
745
|
-
return await import("./src-
|
|
1107
|
+
return await import("./src-WMZX5C4A.js");
|
|
746
1108
|
}
|
|
747
1109
|
function resolveDistDir() {
|
|
748
1110
|
return resolveStudioBundle().dir;
|
|
@@ -858,7 +1220,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
|
|
|
858
1220
|
try {
|
|
859
1221
|
if (isShuttingDown()) return null;
|
|
860
1222
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
861
|
-
const { acquireBrowser, buildChromeArgs } = await import("./src-
|
|
1223
|
+
const { acquireBrowser, buildChromeArgs } = await import("./src-I3B7LYZM.js");
|
|
862
1224
|
let executablePath;
|
|
863
1225
|
try {
|
|
864
1226
|
const b = await ensureBrowser({ preferManagedChrome: true });
|
|
@@ -1033,7 +1395,7 @@ function createStudioServer(options) {
|
|
|
1033
1395
|
resolveProject: (id) => id === projectId ? project : null,
|
|
1034
1396
|
async bundle(dir, options2) {
|
|
1035
1397
|
try {
|
|
1036
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
1398
|
+
const { bundleToSingleHtml } = await import("./compiler-J43BE6LC.js");
|
|
1037
1399
|
let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
|
|
1038
1400
|
html = html.replace(
|
|
1039
1401
|
'data-hyperframes-preview-runtime="1" src=""',
|
|
@@ -1046,10 +1408,10 @@ function createStudioServer(options) {
|
|
|
1046
1408
|
}
|
|
1047
1409
|
},
|
|
1048
1410
|
async transformPreviewHtml({ html, project: project2 }) {
|
|
1049
|
-
const { injectDeterministicFontFaces } = await import("./deterministicFonts-
|
|
1050
|
-
const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-
|
|
1051
|
-
const { prepareHeifImageInputs } = await import("./heifImagePrep-
|
|
1052
|
-
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");
|
|
1053
1415
|
const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
|
|
1054
1416
|
const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
|
|
1055
1417
|
const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
|
|
@@ -1081,7 +1443,7 @@ function createStudioServer(options) {
|
|
|
1081
1443
|
if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
|
|
1082
1444
|
},
|
|
1083
1445
|
async lint(html, opts) {
|
|
1084
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1446
|
+
const { lintHyperframeHtml } = await import("./dist-4JHP47NU.js");
|
|
1085
1447
|
return await lintHyperframeHtml(html, { ...opts, host: "studio" });
|
|
1086
1448
|
},
|
|
1087
1449
|
// Out of process: linting a large composition is seconds of synchronous parsing, and on
|
|
@@ -1155,26 +1517,13 @@ function createStudioServer(options) {
|
|
|
1155
1517
|
state.progress = j.progress;
|
|
1156
1518
|
if (j.currentStage) state.stage = j.currentStage;
|
|
1157
1519
|
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
});
|
|
1166
|
-
state.stage = void 0;
|
|
1167
|
-
try {
|
|
1168
|
-
await executeRenderJob(
|
|
1169
|
-
job,
|
|
1170
|
-
opts.project.dir,
|
|
1171
|
-
opts.outputPath,
|
|
1172
|
-
onProgress,
|
|
1173
|
-
abortController.signal
|
|
1174
|
-
);
|
|
1175
|
-
} finally {
|
|
1176
|
-
releaseSlot();
|
|
1177
|
-
}
|
|
1520
|
+
await executeRenderJob(
|
|
1521
|
+
job,
|
|
1522
|
+
opts.project.dir,
|
|
1523
|
+
opts.outputPath,
|
|
1524
|
+
onProgress,
|
|
1525
|
+
abortController.signal
|
|
1526
|
+
);
|
|
1178
1527
|
if (abortController.signal.aborted) {
|
|
1179
1528
|
removeCancelledOutput();
|
|
1180
1529
|
return;
|
|
@@ -1226,7 +1575,7 @@ function createStudioServer(options) {
|
|
|
1226
1575
|
startBackgroundRemoval(opts) {
|
|
1227
1576
|
return createBackgroundRemovalJob(opts, async (renderOpts) => {
|
|
1228
1577
|
const sourcePipelinePath = "../background-removal/pipeline.ts";
|
|
1229
|
-
const pipeline = await import("./pipeline-
|
|
1578
|
+
const pipeline = await import("./pipeline-NQ4BI2D7.js").catch(
|
|
1230
1579
|
() => import(sourcePipelinePath)
|
|
1231
1580
|
);
|
|
1232
1581
|
return pipeline.render(renderOpts);
|
|
@@ -1311,8 +1660,8 @@ function createStudioServer(options) {
|
|
|
1311
1660
|
}
|
|
1312
1661
|
},
|
|
1313
1662
|
async listRegistryCatalog() {
|
|
1314
|
-
const { listRegistryItems, loadAllItems } = await import("./resolver-
|
|
1315
|
-
const { loadProjectConfig } = await import("./projectConfig-
|
|
1663
|
+
const { listRegistryItems, loadAllItems } = await import("./resolver-HQIDF3TF.js");
|
|
1664
|
+
const { loadProjectConfig } = await import("./projectConfig-GJL2ZGOU.js");
|
|
1316
1665
|
const registry = { baseUrl: loadProjectConfig(projectDir).registry };
|
|
1317
1666
|
const entries = await listRegistryItems(void 0, registry);
|
|
1318
1667
|
const blockAndComponentEntries = entries.filter(
|
|
@@ -1321,9 +1670,9 @@ function createStudioServer(options) {
|
|
|
1321
1670
|
return loadAllItems(blockAndComponentEntries, registry);
|
|
1322
1671
|
},
|
|
1323
1672
|
async installRegistryBlock(opts) {
|
|
1324
|
-
const { addToProject, primaryInstalledTarget } = await import("./add-
|
|
1325
|
-
const { recordRewrittenInstall } = await import("./installer-
|
|
1326
|
-
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");
|
|
1327
1676
|
const { result, item } = await addToProject({
|
|
1328
1677
|
name: opts.blockName,
|
|
1329
1678
|
projectDir: opts.project.dir,
|
|
@@ -1347,7 +1696,7 @@ function createStudioServer(options) {
|
|
|
1347
1696
|
};
|
|
1348
1697
|
}
|
|
1349
1698
|
};
|
|
1350
|
-
const app = new
|
|
1699
|
+
const app = new Hono2();
|
|
1351
1700
|
app.get("/__hyperframes_config", (c) => {
|
|
1352
1701
|
const serve = async () => {
|
|
1353
1702
|
const serverBuildSignature = await loadPreviewServerBuildSignature();
|
|
@@ -1427,8 +1776,8 @@ function createStudioServer(options) {
|
|
|
1427
1776
|
app.get("/api/environment/ffmpeg", async (c) => {
|
|
1428
1777
|
if (ffmpegReady) return c.json({ ok: true });
|
|
1429
1778
|
const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
|
|
1430
|
-
import("./preflight-
|
|
1431
|
-
import("./ffmpeg-
|
|
1779
|
+
import("./preflight-DLO6LHGO.js"),
|
|
1780
|
+
import("./ffmpeg-4CMA6M2L.js")
|
|
1432
1781
|
]);
|
|
1433
1782
|
const { outcomes } = await runEnvironmentChecks();
|
|
1434
1783
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -1445,9 +1794,10 @@ function createStudioServer(options) {
|
|
|
1445
1794
|
});
|
|
1446
1795
|
});
|
|
1447
1796
|
mountDesktopRoutes(app, projectDir);
|
|
1797
|
+
mountShareRoutes(app, projectDir);
|
|
1448
1798
|
let cachedFFmpegPath;
|
|
1449
1799
|
app.post("/api/projects/:id/render", async (c, next) => {
|
|
1450
|
-
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-
|
|
1800
|
+
const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-4CMA6M2L.js");
|
|
1451
1801
|
if (!cachedFFmpegPath) {
|
|
1452
1802
|
cachedFFmpegPath = findFFmpeg();
|
|
1453
1803
|
}
|
|
@@ -1552,9 +1902,10 @@ function createStudioServer(options) {
|
|
|
1552
1902
|
}
|
|
1553
1903
|
let html = indexContent.toString("utf-8");
|
|
1554
1904
|
const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1905
|
+
html = html.replace(
|
|
1906
|
+
"<head>",
|
|
1907
|
+
`<head><meta name="hyperframes-local-share" content="1">${headScript}`
|
|
1908
|
+
);
|
|
1558
1909
|
return c.html(html, 200, { "Cache-Control": "no-cache" });
|
|
1559
1910
|
});
|
|
1560
1911
|
const shutdown = async () => {
|
|
@@ -1563,7 +1914,7 @@ function createStudioServer(options) {
|
|
|
1563
1914
|
});
|
|
1564
1915
|
const renders = [...inFlightRenders];
|
|
1565
1916
|
for (const [abortController] of renders) abortController.abort();
|
|
1566
|
-
const { killTrackedProcesses, closeBrowserPool } = await import("./src-
|
|
1917
|
+
const { killTrackedProcesses, closeBrowserPool } = await import("./src-I3B7LYZM.js");
|
|
1567
1918
|
killTrackedProcesses();
|
|
1568
1919
|
const closeBrowsers = Promise.allSettled([
|
|
1569
1920
|
closeThumbnailBrowser().catch(() => {
|