hyperframes 0.9.28-alpha.0 → 0.9.28

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.
Files changed (262) hide show
  1. package/README.md +5 -2
  2. package/dist/{add-WSGJ42KQ.js → add-XQCABYNY.js} +14 -14
  3. package/dist/{agentPromptGenerator-JTMVHRZN.js → agentPromptGenerator-S2SYZY3A.js} +7 -7
  4. package/dist/{animatedGifPrep-V3FJENRD.js → animatedGifPrep-SACSOT4A.js} +7 -7
  5. package/dist/api.js +38 -39
  6. package/dist/{asset-6LZTBFS7.js → asset-JPI3LFG4.js} +2 -2
  7. package/dist/{assetCataloger-GRGAUHXL.js → assetCataloger-TJQ5OLMV.js} +8 -8
  8. package/dist/{audio-QCMSKGKQ.js → audio-RG6NXOMI.js} +24 -25
  9. package/dist/{auth-TB7AUPRE.js → auth-7G2OCS7L.js} +4 -4
  10. package/dist/{autoUpdate-G3G7WBJF.js → autoUpdate-7RS75ENY.js} +3 -3
  11. package/dist/{avatars-6ILGXRFF.js → avatars-KWPVXWXC.js} +15 -16
  12. package/dist/{backgroundChecks-E3VZ7KZN.js → backgroundChecks-5HHWQH5H.js} +4 -4
  13. package/dist/backgroundChecksWorker.js +4 -4
  14. package/dist/{batchRender-KWIPFU5Q.js → batchRender-AL6DO5IA.js} +4 -4
  15. package/dist/{beats-OBIGBNZA.js → beats-XHKWF5KT.js} +11 -11
  16. package/dist/{benchmark-64IXFBPC.js → benchmark-57RNYMON.js} +11 -11
  17. package/dist/{billing-3X5BWBTI.js → billing-FXAMQKDS.js} +15 -16
  18. package/dist/{browser-DZ3XIEFA.js → browser-TV2VPWQJ.js} +8 -8
  19. package/dist/{bundleWithLocalizedFonts-PKQN5CMM.js → bundleWithLocalizedFonts-YGHFRVJW.js} +1 -1
  20. package/dist/{capture-NTN7O6RZ.js → capture-GPT5V4ND.js} +22 -22
  21. package/dist/{capture-V7RAUBMG.js → capture-LHPSRQ4R.js} +3 -3
  22. package/dist/{captureCompositionFrame-KMMB3FVD.js → captureCompositionFrame-TLV2WC4Q.js} +14 -14
  23. package/dist/{catalog-YIGPXM7Q.js → catalog-7A3MMFTN.js} +14 -14
  24. package/dist/{catch-up-LOGK3VIS.js → catch-up-SEGXPPOX.js} +9 -9
  25. package/dist/{check-FVXJBA5U.js → check-OP5AR33W.js} +44 -43
  26. package/dist/{checkAudio-FSIRCDM6.js → checkAudio-QDAUXX7W.js} +15 -15
  27. package/dist/{checkBrowser-NXRXF73I.js → checkBrowser-OGE3A52R.js} +37 -37
  28. package/dist/{chunk-HWQ6SNLY.js → chunk-257XUBNU.js} +1 -1
  29. package/dist/{chunk-XGRXNWDK.js → chunk-3JFV42QB.js} +3 -3
  30. package/dist/{chunk-QTDTCTGB.js → chunk-4N3UVDIJ.js} +4 -6
  31. package/dist/{chunk-YPPJJ5ZH.js → chunk-55ZEUSPW.js} +1 -1
  32. package/dist/{chunk-RGINHOAX.js → chunk-5E6Y7CW3.js} +22 -4
  33. package/dist/{chunk-UF6C3CCP.js → chunk-5RUGBDAC.js} +1 -1
  34. package/dist/{chunk-ME6L6GUF.js → chunk-6FHIR4KD.js} +1 -1
  35. package/dist/{chunk-BP75ZLZ5.js → chunk-6LCIO2YY.js} +2 -2
  36. package/dist/{chunk-5BIHQCC2.js → chunk-6UMISKCG.js} +4 -4
  37. package/dist/{chunk-UO6DALBR.js → chunk-6WCOY6MS.js} +4 -4
  38. package/dist/{chunk-PG26KCBX.js → chunk-7FYGCIHK.js} +2 -2
  39. package/dist/{chunk-3YP3OQVH.js → chunk-7M26J4R3.js} +1 -1
  40. package/dist/{chunk-5FI52L2T.js → chunk-A7HPQVS5.js} +1 -1
  41. package/dist/{chunk-5RETZFNG.js → chunk-AA2DNXEJ.js} +7 -7
  42. package/dist/{chunk-YOUHA4KP.js → chunk-AVXIDAFJ.js} +9 -11
  43. package/dist/{chunk-MEVLYDL2.js → chunk-BJYCLZBQ.js} +1 -1
  44. package/dist/{chunk-W4DMQZL5.js → chunk-BZULWFMJ.js} +11 -2
  45. package/dist/{chunk-CHCMXYER.js → chunk-C5JKRCSG.js} +1 -1
  46. package/dist/{chunk-KFU75UXA.js → chunk-CINCDA5M.js} +2 -2
  47. package/dist/{chunk-VVGNWH2J.js → chunk-CSCK6RGC.js} +12 -12
  48. package/dist/{chunk-QMGFXL43.js → chunk-D5HNV6G6.js} +1 -1
  49. package/dist/{chunk-VSQ5NWCF.js → chunk-DJVSNDF3.js} +3 -3
  50. package/dist/{chunk-UVZDPGZR.js → chunk-DKSCZYFP.js} +1 -1
  51. package/dist/{chunk-HYXSD2UA.js → chunk-E3UFWFZZ.js} +1 -1
  52. package/dist/{chunk-E7YPIP42.js → chunk-E53UDY74.js} +2 -2
  53. package/dist/{chunk-RSZWWTQN.js → chunk-E54N6IPY.js} +2 -2
  54. package/dist/{chunk-PWW2DKGL.js → chunk-EENM7GX3.js} +2 -2
  55. package/dist/{chunk-M7U6JTXF.js → chunk-EOJ2PMOV.js} +2 -2
  56. package/dist/{chunk-3T6BFAKZ.js → chunk-F24B2PLD.js} +1 -1
  57. package/dist/{chunk-KBF2DIZX.js → chunk-FBLCK3YJ.js} +9 -9
  58. package/dist/{chunk-A5CTI6RW.js → chunk-G4D7EBDQ.js} +3 -3
  59. package/dist/{chunk-5EYQ222G.js → chunk-GGDJLN5I.js} +0 -20
  60. package/dist/{chunk-N6NB2WZ4.js → chunk-GUHCMOE2.js} +2 -2
  61. package/dist/{chunk-AAENGP3S.js → chunk-IOPIOX5K.js} +66 -16
  62. package/dist/{chunk-WYA575QX.js → chunk-IQKMIYLG.js} +5 -7
  63. package/dist/{chunk-G6CN5UWR.js → chunk-IX22RYJO.js} +1 -1
  64. package/dist/{chunk-HW325JBH.js → chunk-IX3K55NA.js} +4 -4
  65. package/dist/{chunk-WIJGRX5X.js → chunk-IYYZMZD2.js} +1 -1
  66. package/dist/{chunk-JX4BEVC3.js → chunk-J237HI2F.js} +41 -29
  67. package/dist/{chunk-4OZVFZCO.js → chunk-JLUOG6S2.js} +1 -1
  68. package/dist/{chunk-XMHYE6XY.js → chunk-JMPTLXJQ.js} +3 -3
  69. package/dist/{chunk-O5G2LEUB.js → chunk-K77GTFH3.js} +3 -3
  70. package/dist/{chunk-6ODX6SHY.js → chunk-L2GOO2UY.js} +2 -2
  71. package/dist/{chunk-UDEFHX4Z.js → chunk-L5KXLXFY.js} +15 -15
  72. package/dist/{chunk-UGX3IARM.js → chunk-LAI7UTBM.js} +30 -28
  73. package/dist/{chunk-AHRX3FHF.js → chunk-LMCFILEY.js} +3 -3
  74. package/dist/{chunk-FID757D3.js → chunk-LP7B3JLC.js} +0 -1
  75. package/dist/chunk-LPB7T67S.js +29 -0
  76. package/dist/{chunk-VCNPBW4L.js → chunk-LXAJQXHM.js} +1 -1
  77. package/dist/{chunk-WXEXQLVV.js → chunk-M457GQGR.js} +344 -216
  78. package/dist/{chunk-MFSQZ2PR.js → chunk-MMCMEW7K.js} +1 -1
  79. package/dist/{chunk-CJC6U3E7.js → chunk-MPKBIC4Z.js} +2 -2
  80. package/dist/{chunk-7U2B7OF6.js → chunk-MVJ7AX6W.js} +1 -1
  81. package/dist/{chunk-3MYEF34S.js → chunk-NFUXYBOR.js} +1 -1
  82. package/dist/{chunk-RERVXE6J.js → chunk-NHJ5YUBZ.js} +2 -2
  83. package/dist/{chunk-KJ5QBEMN.js → chunk-NURN5W6M.js} +6 -8
  84. package/dist/{chunk-ZEKQATYP.js → chunk-NUUN7XB4.js} +6 -6
  85. package/dist/{chunk-ZQLJLORI.js → chunk-NXVDTRXA.js} +6 -6
  86. package/dist/{chunk-WRN3ZY5P.js → chunk-O5P75JID.js} +7 -7
  87. package/dist/{chunk-IMSLXLUI.js → chunk-OSDNRYQJ.js} +1 -1
  88. package/dist/{chunk-H3MJLPAC.js → chunk-P2A6MYSQ.js} +1 -1
  89. package/dist/{chunk-JEVWAGQP.js → chunk-P5USY2GC.js} +1 -1
  90. package/dist/{chunk-6EZ76UBP.js → chunk-PEJQV2RL.js} +17 -17
  91. package/dist/{chunk-HP6IDD33.js → chunk-PF23WT5C.js} +5 -5
  92. package/dist/{chunk-ASMDPTT3.js → chunk-PL5C5FKM.js} +1 -1
  93. package/dist/{chunk-Q5J4OO7N.js → chunk-QT766HQV.js} +38 -20
  94. package/dist/{chunk-VNKPEYMW.js → chunk-RFLV3WR5.js} +1 -1
  95. package/dist/{chunk-Q6TVZY36.js → chunk-RYT22J4V.js} +2 -2
  96. package/dist/{chunk-WOSVLHQH.js → chunk-SCNC7YPB.js} +1 -1
  97. package/dist/{chunk-3DVDIXOZ.js → chunk-SDYZOTB7.js} +2 -2
  98. package/dist/{chunk-K2OQYSDS.js → chunk-SJOA2RCP.js} +12 -12
  99. package/dist/{chunk-RO74CZMK.js → chunk-SQRI67KR.js} +1 -1
  100. package/dist/{chunk-WUOMBLQL.js → chunk-SWEC6N6N.js} +2 -2
  101. package/dist/{chunk-TF7VWCJM.js → chunk-TCQKCUDA.js} +1 -1
  102. package/dist/{chunk-MWBRY5HN.js → chunk-TMYY4DV4.js} +3 -3
  103. package/dist/{chunk-E3EIKMUU.js → chunk-TTKJF3LI.js} +1 -1
  104. package/dist/{chunk-AJVYQVDB.js → chunk-U5RXCKWJ.js} +1 -1
  105. package/dist/{chunk-NKWJNDKO.js → chunk-UAEL2JEL.js} +4 -4
  106. package/dist/{chunk-C756HYL7.js → chunk-UVF4HXPW.js} +2 -2
  107. package/dist/chunk-UZGRZRD6.js +413 -0
  108. package/dist/{chunk-BI33G4XD.js → chunk-V4M7PKBM.js} +7 -7
  109. package/dist/{chunk-7XHVHBFV.js → chunk-V4Z37HFN.js} +3 -3
  110. package/dist/{chunk-7ZKUPLMN.js → chunk-VCMPKZFN.js} +18 -18
  111. package/dist/{chunk-DPAC75N5.js → chunk-VOVC3QCN.js} +3 -3
  112. package/dist/{chunk-YJBGA3W6.js → chunk-VXWASGGT.js} +2 -2
  113. package/dist/{chunk-RPMPHUOS.js → chunk-W4EAYORI.js} +3 -3
  114. package/dist/{chunk-6NG6PATW.js → chunk-W7TS3CZA.js} +1 -1
  115. package/dist/{chunk-MBRBEXMF.js → chunk-WMZDESYF.js} +1 -1
  116. package/dist/{chunk-Z2N7XOOB.js → chunk-X2YNB244.js} +3 -3
  117. package/dist/{chunk-GN3CCXVU.js → chunk-XLERIR2V.js} +1 -1
  118. package/dist/{chunk-RNUIFYO6.js → chunk-XPGH4KBU.js} +1 -1
  119. package/dist/{chunk-BFDNZ2JT.js → chunk-YSAK7PJZ.js} +2 -2
  120. package/dist/{chunk-IEB4IKXF.js → chunk-YU2KLER7.js} +1 -1
  121. package/dist/{chunk-FW7MDSCQ.js → chunk-Z677PTBA.js} +2 -2
  122. package/dist/{chunk-3Q7LAXFJ.js → chunk-ZUXES5HA.js} +2 -2
  123. package/dist/{chunk-C7ME7Y45.js → chunk-ZWJ7PWTY.js} +2 -2
  124. package/dist/{clean-6YCVFT7D.js → clean-UGV3DTVQ.js} +22 -22
  125. package/dist/cli.js +64 -65
  126. package/dist/{cloud-TEJ6UVBU.js → cloud-QJMPTQ3N.js} +5 -6
  127. package/dist/{cloud-BPWS4GJS.js → cloud-SDC56AHY.js} +4 -4
  128. package/dist/{cloudrun-A7DU7DQE.js → cloudrun-T7VVPRDG.js} +7 -7
  129. package/dist/{compare-HELNXJLM.js → compare-LG42JVYH.js} +35 -35
  130. package/dist/{compiler-J43BE6LC.js → compiler-ZSIKBZBR.js} +4 -4
  131. package/dist/{component-WEC4QGT3.js → component-OPAFYBPO.js} +3 -3
  132. package/dist/{compositions-RSUPWPK6.js → compositions-JP655NT3.js} +13 -13
  133. package/dist/{curve-OK5TBGXV.js → curve-RN7HDXOS.js} +12 -12
  134. package/dist/{cuts-S5WHYQZZ.js → cuts-ET7N7IBU.js} +13 -13
  135. package/dist/{delete-5NHJKNWL.js → delete-5552CGT5.js} +8 -9
  136. package/dist/{deploy-7PLBBXNB.js → deploy-NMFEPGRQ.js} +6 -6
  137. package/dist/{describeProject-WVLTYWPG.js → describeProject-CWLV5OAT.js} +8 -8
  138. package/dist/{deterministicFonts-UZIF5XZW.js → deterministicFonts-SKRN3TCP.js} +2 -2
  139. package/dist/{diff-W4EXKV5Q.js → diff-HZX2TISC.js} +39 -40
  140. package/dist/{dist-4JHP47NU.js → dist-EFXKPJJT.js} +2 -2
  141. package/dist/{dist-AUYCAQMA.js → dist-O45G7NET.js} +14 -14
  142. package/dist/{dist-F3Y2XHZL.js → dist-QRXJMFI7.js} +3 -3
  143. package/dist/{doctor-7Y75ZXTU.js → doctor-IYEYULPD.js} +12 -12
  144. package/dist/{energy-Y4KYLWLZ.js → energy-YXEPVRKW.js} +13 -13
  145. package/dist/{events-3LAHSBBF.js → events-GA24CH3D.js} +8 -8
  146. package/dist/{events-TQD3L5FS.js → events-JAY5YNEU.js} +15 -15
  147. package/dist/{events-67Q5DIRC.js → events-KYCNM6C3.js} +4 -4
  148. package/dist/{extract-6KGIEC76.js → extract-TFEVGLLS.js} +16 -16
  149. package/dist/{face-OBEAPOZR.js → face-NP7JGAE7.js} +14 -14
  150. package/dist/{feedback-QTB2UH3Q.js → feedback-UPYWXKHN.js} +14 -15
  151. package/dist/{ffmpeg-4CMA6M2L.js → ffmpeg-RYNM3JM2.js} +7 -7
  152. package/dist/{figma-4ZKDJA4R.js → figma-PL4YF6AD.js} +3 -3
  153. package/dist/fontLocalizeCli.js +13 -13
  154. package/dist/{frames-OFLJT4D5.js → frames-7CHO3XUP.js} +14 -14
  155. package/dist/{generate-LHRF4A3Z.js → generate-I3UK6VFX.js} +26 -27
  156. package/dist/{get-56RYQ7KG.js → get-DRFSJ333.js} +8 -9
  157. package/dist/{gpuPolicy-35XK273G.js → gpuPolicy-OAUKEMJC.js} +7 -7
  158. package/dist/{grade-compare-GQVODT4T.js → grade-compare-PYDF6Y6J.js} +37 -37
  159. package/dist/{gsapParserAcorn-5YD4N6HQ.js → gsapParserAcorn-SKGP4R4N.js} +1 -1
  160. package/dist/{heifImagePrep-7WN2QNQM.js → heifImagePrep-23E67GBA.js} +8 -8
  161. package/dist/{help-E2TKPNJJ.js → help-N2SPZK4D.js} +1 -1
  162. package/dist/{history-AJ2MSBW6.js → history-LXYOTFY7.js} +11 -11
  163. package/dist/hyperframes-player.global.js +2 -2
  164. package/dist/{info-HV43ZADN.js → info-ENAE5IAD.js} +15 -15
  165. package/dist/{init-OHVVGDSF.js → init-DMKB6PK6.js} +29 -29
  166. package/dist/{ink-IESBIGOE.js → ink-ANDD7W6Y.js} +13 -13
  167. package/dist/{inspect-Y7YS3ILY.js → inspect-2XZYCFMK.js} +34 -34
  168. package/dist/{installer-AJESSC5Y.js → installer-VPGNKCEU.js} +5 -5
  169. package/dist/{keyframes-XSL7JGAF.js → keyframes-UKUFE6ZF.js} +15 -12
  170. package/dist/{lambda-KU65SSVE.js → lambda-T4WMAZZV.js} +13 -13
  171. package/dist/{layout-ORX7QBGL.js → layout-FX2Q65LB.js} +34 -34
  172. package/dist/{lint-KUGT5YHK.js → lint-AHORS3BL.js} +12 -12
  173. package/dist/{lintProject-Z6TG3Z34.js → lintProject-5CBL7VFV.js} +2 -2
  174. package/dist/{list-EB3WYTHH.js → list-H7F3WXD4.js} +10 -11
  175. package/dist/{localPage-QLGKJQ6X.js → localPage-UUSOCL7L.js} +7 -7
  176. package/dist/{login-O5HWEYI4.js → login-6ORXT7JS.js} +7 -8
  177. package/dist/{logout-AHGR3X5U.js → logout-FJ444652.js} +4 -6
  178. package/dist/{look-BPSKQDST.js → look-XFA3GQDV.js} +13 -13
  179. package/dist/{manager-MNOR566P.js → manager-ZGVNWYBK.js} +8 -8
  180. package/dist/{measure-USYFR5EK.js → measure-WIARVYP6.js} +11 -11
  181. package/dist/{media-treatment-5YATQA5D.js → media-treatment-L2OD4GAB.js} +15 -15
  182. package/dist/{media-use-BA245HF5.js → media-use-SYSDJH23.js} +7 -9
  183. package/dist/{models-ST3IIAN2.js → models-YOGYUKBX.js} +11 -11
  184. package/dist/{motionShot-DOIU74HO.js → motionShot-II6JZGTO.js} +19 -19
  185. package/dist/{normalize-audio-PPSCFVKC.js → normalize-audio-L6V6T2XW.js} +11 -11
  186. package/dist/{open-R2EPWLS6.js → open-BPGKTYYV.js} +14 -14
  187. package/dist/{parakeetRunner-Q2SYZVYV.js → parakeetRunner-BWX3UQH4.js} +13 -13
  188. package/dist/{pipeline-NQ4BI2D7.js → pipeline-O3VKDLBZ.js} +10 -10
  189. package/dist/{play-J3DJBBXW.js → play-NLZ4D4VN.js} +26 -26
  190. package/dist/{preflight-DLO6LHGO.js → preflight-HEAPQ7N7.js} +8 -8
  191. package/dist/{present-MIWYYTIE.js → present-XPLUCZ5Z.js} +21 -21
  192. package/dist/{preview-DEGHLTT6.js → preview-JAWCYDZP.js} +23 -23
  193. package/dist/{probe-63RJNPIB.js → probe-3AL2MBSY.js} +13 -13
  194. package/dist/{producer-H7L5TBE4.js → producer-OQETVMJH.js} +1 -1
  195. package/dist/{projectConfig-GJL2ZGOU.js → projectConfig-UHYPGWD5.js} +7 -7
  196. package/dist/{publication-BLLVTVD6.js → publication-5KOANEHK.js} +3 -3
  197. package/dist/{publish-CYPJA7T7.js → publish-C3ARXH6D.js} +23 -83
  198. package/dist/{refresh-TB4TNH7R.js → refresh-YY4K2RWR.js} +3 -4
  199. package/dist/{remove-background-KX574FQY.js → remove-background-2SNU7KAA.js} +11 -11
  200. package/dist/{render-SHUBWBK4.js → render-FFA55SPM.js} +938 -316
  201. package/dist/{render-N7PKCVEP.js → render-IKHZUOCM.js} +44 -45
  202. package/dist/{render-RUEXLOWE.js → render-TSV3XTQV.js} +6 -6
  203. package/dist/{render-batch-QFGQD5FM.js → render-batch-ISMXAG7F.js} +6 -6
  204. package/dist/renderSetupWorker.js +2 -2
  205. package/dist/{resolver-HQIDF3TF.js → resolver-ZWNLOG6O.js} +5 -5
  206. package/dist/{reverse-D2XWX6FV.js → reverse-74KYO2KF.js} +1 -1
  207. package/dist/{run-EVZGKUEX.js → run-UPKPPRV7.js} +4 -5
  208. package/dist/{screenshotCapture-4JLD2OQZ.js → screenshotCapture-HBOH5VXI.js} +8 -8
  209. package/dist/{sherpa-LU5AOQHV.js → sherpa-DBCTQWM3.js} +12 -12
  210. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  211. package/dist/skills/hyperframes-cli/references/preview-render.md +0 -20
  212. package/dist/{skills-KVQ2G6P5.js → skills-YYOPM674.js} +11 -11
  213. package/dist/{skillsUpdateCheck-EB54PRMT.js → skillsUpdateCheck-2G4HUWXT.js} +4 -4
  214. package/dist/{snapshot-QWO6OXG3.js → snapshot-FSN6MIFT.js} +50 -48
  215. package/dist/{src-WMZX5C4A.js → src-PZKWEQB3.js} +12 -12
  216. package/dist/{src-I3B7LYZM.js → src-W2OMGCC2.js} +6 -6
  217. package/dist/{start-ACVZUBZX.js → start-BC3LQ6XM.js} +24 -25
  218. package/dist/{staticProjectServer-C6KEOAYY.js → staticProjectServer-NOC42RG6.js} +19 -19
  219. package/dist/{status-RYI42XDB.js → status-GAMGQR6J.js} +18 -20
  220. package/dist/studio/assets/{codec-D6qbrtZY.js → codec-DqZyhFXM.js} +1 -1
  221. package/dist/studio/assets/{hyperframes-player-BVe9IO80.js → hyperframes-player-aBBb_UoJ.js} +2 -2
  222. package/dist/studio/assets/{index-BZu8x7Q5.js → index-CceqlOsz.js} +1 -1
  223. package/dist/studio/assets/{index-Cq2w6U13.css → index-dsfjBidg.css} +1 -1
  224. package/dist/studio/assets/{index-Cl9fSd9I.js → index-nztwvLTw.js} +184 -184
  225. package/dist/studio/assets/{pausedVideoDecoder-DfnHfnL7.js → pausedVideoDecoder-CwC0h32O.js} +1 -1
  226. package/dist/studio/index.html +2 -2
  227. package/dist/{studio-api-RBURPKYX.js → studio-api-2I44WB4P.js} +14 -14
  228. package/dist/{studioServer-J5DYNR6R.js → studioServer-YOES7J26.js} +83 -434
  229. package/dist/{sync-MUKE7NSP.js → sync-SAFSREBK.js} +13 -13
  230. package/dist/{telemetry-6MDOWNLT.js → telemetry-JKUAFRWX.js} +8 -8
  231. package/dist/{templates-LWPXN7M2.js → templates-T63OMFEN.js} +18 -19
  232. package/dist/{timeline-WTBC3J7O.js → timeline-4WIGTZRE.js} +21 -21
  233. package/dist/{tokens-4NPCCANL.js → tokens-JK3XREP4.js} +2 -2
  234. package/dist/{transcribe-RL7LGXU6.js → transcribe-APCPBJXE.js} +10 -10
  235. package/dist/{transcribe-NZJPYTM7.js → transcribe-DWCOZPAN.js} +28 -29
  236. package/dist/{tts-NANTORLP.js → tts-HOZ6X3MD.js} +1 -1
  237. package/dist/{update-DZCGNNOU.js → update-I3DN6NUV.js} +12 -12
  238. package/dist/{updateCheck-N3C56RNJ.js → updateCheck-5C2PHZ24.js} +3 -3
  239. package/dist/{upgrade-RCV7ZF5Z.js → upgrade-KBMPHPSY.js} +4 -4
  240. package/dist/{urlDownloader-SSPDDS4Y.js → urlDownloader-T5UKNPTJ.js} +6 -6
  241. package/dist/{validate-HQDRN6T3.js → validate-YNITWYCF.js} +28 -28
  242. package/dist/{video-FPDBQAXL.js → video-JRQOXAZ2.js} +8 -8
  243. package/dist/{voices-PMLIXQT4.js → voices-7QS4D5EP.js} +23 -24
  244. package/dist/warmCheck.js +44 -43
  245. package/package.json +1 -2
  246. package/dist/chunk-DDCFX533.js +0 -387
  247. package/dist/chunk-EKT2P27A.js +0 -538
  248. package/dist/chunk-F2FRUMWN.js +0 -3699
  249. package/dist/chunk-JE2YBPC5.js +0 -152
  250. package/dist/chunk-U2NESB4H.js +0 -173
  251. package/dist/chunk-USTPTY7P.js +0 -51
  252. package/dist/chunk-VHXIMBTF.js +0 -343
  253. package/dist/contract/LICENSE-Unicode.txt +0 -39
  254. package/dist/contract/path-policy.json +0 -311
  255. package/dist/contract/unicode-15.1.0.json +0 -6179
  256. package/dist/execute-GFHAD3L6.js +0 -109
  257. package/dist/oauth-KUPQUH6E.js +0 -40
  258. package/dist/plan-CN2TTIAA.js +0 -88
  259. package/dist/service-L3K45WOD.js +0 -68
  260. package/dist/share-7G44HDSY.js +0 -226
  261. package/dist/{destroy-IWHFUGJL.js → destroy-YAMTVR2W.js} +4 -4
  262. package/dist/{synthesize-NJKCIPKW.js → synthesize-MDW4ZWTN.js} +5 -5
@@ -5,54 +5,43 @@ 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
- 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 {
8
+ acquireRenderLock,
9
+ describeRenderLockHolder,
20
10
  renderJobObservabilityTelemetryPayload,
21
11
  renderObservabilityTelemetryPayload,
22
12
  startRenderCpuSampler
23
- } from "./chunk-U2NESB4H.js";
13
+ } from "./chunk-UZGRZRD6.js";
24
14
  import {
25
15
  HANDOFF_READY,
26
16
  desktopDownloadUrl,
27
17
  desktopInstalled,
28
18
  insideHostApp,
29
19
  openInDesktop
30
- } from "./chunk-YJBGA3W6.js";
20
+ } from "./chunk-VXWASGGT.js";
31
21
  import {
32
22
  resolveRenderBrowser
33
- } from "./chunk-QMGFXL43.js";
23
+ } from "./chunk-D5HNV6G6.js";
34
24
  import "./chunk-54FVSPRH.js";
35
- import "./chunk-JE2YBPC5.js";
36
25
  import {
37
26
  loadSharpInBackground
38
27
  } from "./chunk-NL4RCLQF.js";
39
- import "./chunk-WXEXQLVV.js";
40
28
  import "./chunk-6BEFEWFB.js";
41
- import "./chunk-H3MJLPAC.js";
29
+ import "./chunk-P2A6MYSQ.js";
42
30
  import "./chunk-X7MTZ4T2.js";
31
+ import "./chunk-GGDJLN5I.js";
43
32
  import {
44
33
  seekCompositionTimeline
45
- } from "./chunk-UDEFHX4Z.js";
34
+ } from "./chunk-L5KXLXFY.js";
46
35
  import {
47
36
  GSAP_VENDOR_FILES,
48
37
  readBundleFile,
49
38
  resolveGsapVendorDir
50
- } from "./chunk-IMSLXLUI.js";
51
- import "./chunk-YGGZ23BB.js";
52
- import "./chunk-MEVLYDL2.js";
39
+ } from "./chunk-OSDNRYQJ.js";
53
40
  import "./chunk-262C25DQ.js";
54
- import "./chunk-DPAC75N5.js";
55
- import "./chunk-AJVYQVDB.js";
41
+ import "./chunk-VOVC3QCN.js";
42
+ import "./chunk-U5RXCKWJ.js";
43
+ import "./chunk-YGGZ23BB.js";
44
+ import "./chunk-BJYCLZBQ.js";
56
45
  import {
57
46
  PREVIEW_BUNDLE_OPTIONS,
58
47
  affectsPreview,
@@ -64,12 +53,10 @@ import {
64
53
  getElementScreenshotClip,
65
54
  getMimeType,
66
55
  thumbnailDeviceScaleFactor
67
- } from "./chunk-JX4BEVC3.js";
68
- import "./chunk-HW325JBH.js";
69
- import "./chunk-AHRX3FHF.js";
56
+ } from "./chunk-J237HI2F.js";
57
+ import "./chunk-IX3K55NA.js";
58
+ import "./chunk-LMCFILEY.js";
70
59
  import "./chunk-DONVZZLV.js";
71
- import "./chunk-7XHVHBFV.js";
72
- import "./chunk-3MYEF34S.js";
73
60
  import {
74
61
  DEFAULT_HISTORY_ROOT,
75
62
  DELETED_VERSION,
@@ -83,25 +70,27 @@ import {
83
70
  identifyFileWrite,
84
71
  openProjectHistory
85
72
  } from "./chunk-BF6RWOUF.js";
73
+ import "./chunk-V4Z37HFN.js";
74
+ import "./chunk-NFUXYBOR.js";
86
75
  import "./chunk-ALVXFXUG.js";
87
- import "./chunk-W4DMQZL5.js";
88
- import "./chunk-3DVDIXOZ.js";
76
+ import "./chunk-BZULWFMJ.js";
77
+ import "./chunk-SDYZOTB7.js";
89
78
  import "./chunk-FGFVUKPP.js";
90
79
  import {
91
80
  resolveCaptureBrowserGpuMode,
92
81
  resolveLocalBrowserGpuMode,
93
82
  resolveLocalWebGpu
94
- } from "./chunk-KFU75UXA.js";
83
+ } from "./chunk-CINCDA5M.js";
95
84
  import {
96
85
  resolveAutoProxy
97
- } from "./chunk-WIJGRX5X.js";
86
+ } from "./chunk-IYYZMZD2.js";
98
87
  import "./chunk-XT7X6QCP.js";
99
88
  import "./chunk-FRBQ3FIM.js";
100
89
  import "./chunk-HVW7ABXD.js";
101
- import "./chunk-ME6L6GUF.js";
90
+ import "./chunk-6FHIR4KD.js";
102
91
  import "./chunk-JHOCK3DG.js";
103
- import "./chunk-XGRXNWDK.js";
104
- import "./chunk-7U2B7OF6.js";
92
+ import "./chunk-3JFV42QB.js";
93
+ import "./chunk-MVJ7AX6W.js";
105
94
  import "./chunk-AWDFDFI3.js";
106
95
  import "./chunk-P6LJ4Y32.js";
107
96
  import "./chunk-D3UCUI7G.js";
@@ -110,15 +99,15 @@ import {
110
99
  renderMotionBlurTelemetryPayload,
111
100
  trackRenderComplete,
112
101
  trackRenderError
113
- } from "./chunk-RGINHOAX.js";
102
+ } from "./chunk-5E6Y7CW3.js";
114
103
  import {
115
104
  canaryDecisionsForStudio,
116
105
  resetTelemetryPostureCache,
117
106
  shouldTrack
118
- } from "./chunk-PWW2DKGL.js";
107
+ } from "./chunk-EENM7GX3.js";
119
108
  import "./chunk-PXVQOMKL.js";
120
109
  import "./chunk-MCDNAIFF.js";
121
- import "./chunk-FID757D3.js";
110
+ import "./chunk-LP7B3JLC.js";
122
111
  import "./chunk-JNHJX2BZ.js";
123
112
  import "./chunk-54HJ63Q2.js";
124
113
  import "./chunk-VU4EPKFI.js";
@@ -133,11 +122,11 @@ import "./chunk-ZB2XGJSP.js";
133
122
  import {
134
123
  assertWebGpuAdapterAvailable,
135
124
  compositionRequiresWebGpu
136
- } from "./chunk-Q5J4OO7N.js";
125
+ } from "./chunk-QT766HQV.js";
137
126
  import "./chunk-Z5J67X44.js";
138
127
  import "./chunk-5S7W3TUO.js";
139
128
  import "./chunk-D3MUHMFG.js";
140
- import "./chunk-RERVXE6J.js";
129
+ import "./chunk-NHJ5YUBZ.js";
141
130
  import {
142
131
  isAtomicTempPath,
143
132
  replaceFileAtomically
@@ -146,15 +135,16 @@ import "./chunk-3GXQPCJC.js";
146
135
  import {
147
136
  GSAP_CDN_VERSION,
148
137
  fpsToNumber
149
- } from "./chunk-Q6TVZY36.js";
138
+ } from "./chunk-RYT22J4V.js";
150
139
  import "./chunk-FXMKHHPO.js";
151
- import "./chunk-3T6BFAKZ.js";
140
+ import "./chunk-F24B2PLD.js";
152
141
  import "./chunk-VC76R6W2.js";
153
142
  import {
154
143
  realpath
155
144
  } from "./chunk-OFQWTKPW.js";
156
145
  import "./chunk-RQVDTPGD.js";
157
146
  import "./chunk-BMDABBHG.js";
147
+ import "./chunk-PV4XID2A.js";
158
148
  import {
159
149
  runRenderSetupWorker
160
150
  } from "./chunk-X6JUUQCM.js";
@@ -164,14 +154,14 @@ import {
164
154
  } from "./chunk-FOZBANEN.js";
165
155
  import "./chunk-K4MJX7SR.js";
166
156
  import "./chunk-WE42NVH7.js";
167
- import "./chunk-VSQ5NWCF.js";
157
+ import "./chunk-DJVSNDF3.js";
168
158
  import {
169
159
  isWithinProjectRoot
170
160
  } from "./chunk-WVRAFHJU.js";
171
161
  import "./chunk-HYRPH6LL.js";
172
162
  import "./chunk-FBN2M2HK.js";
173
163
  import "./chunk-6MKM2RVL.js";
174
- import "./chunk-AAENGP3S.js";
164
+ import "./chunk-IOPIOX5K.js";
175
165
  import "./chunk-FR7YBU3H.js";
176
166
  import "./chunk-DPVXBVLL.js";
177
167
  import "./chunk-GWTIFRF5.js";
@@ -187,14 +177,14 @@ import {
187
177
  import {
188
178
  isDevMode
189
179
  } from "./chunk-ISN5GRYI.js";
190
- import "./chunk-ADVVQX4I.js";
191
180
  import "./chunk-GR2E54E6.js";
181
+ import "./chunk-ADVVQX4I.js";
192
182
  import "./chunk-66W5IWLO.js";
193
183
  import "./chunk-PQYICV7O.js";
194
184
  import "./chunk-QBXDU24O.js";
195
185
  import {
196
186
  VERSION
197
- } from "./chunk-E7YPIP42.js";
187
+ } from "./chunk-E53UDY74.js";
198
188
  import "./chunk-E63BDV4Z.js";
199
189
  import {
200
190
  detectAgentRuntime
@@ -204,7 +194,7 @@ import "./chunk-7KDQAD2W.js";
204
194
  import "./chunk-M2WBOQ2Q.js";
205
195
 
206
196
  // src/server/studioServer.ts
207
- import { Hono as Hono2 } from "hono";
197
+ import { Hono } from "hono";
208
198
  import { streamSSE } from "hono/streaming";
209
199
  import { existsSync as existsSync2, mkdirSync, readFileSync, statSync, writeFileSync, unlinkSync } from "fs";
210
200
  import { createHash as createHash2 } from "crypto";
@@ -369,7 +359,7 @@ var ENTRY_TS = resolve(__dirname, "..", "..", "..", "core", "src", "runtime", "e
369
359
  async function buildFromSource() {
370
360
  if (!existsSync(ENTRY_TS)) return null;
371
361
  try {
372
- const mod = await import("./dist-F3Y2XHZL.js");
362
+ const mod = await import("./dist-QRXJMFI7.js");
373
363
  if (typeof mod.loadHyperframeRuntimeSource === "function") {
374
364
  const source = mod.loadHyperframeRuntimeSource();
375
365
  if (source) return source;
@@ -380,7 +370,7 @@ async function buildFromSource() {
380
370
  }
381
371
  async function getInlinedRuntime() {
382
372
  try {
383
- const mod = await import("./dist-F3Y2XHZL.js");
373
+ const mod = await import("./dist-QRXJMFI7.js");
384
374
  if (typeof mod.getHyperframeRuntimeScript === "function") {
385
375
  return mod.getHyperframeRuntimeScript() ?? null;
386
376
  }
@@ -677,358 +667,6 @@ function mountDesktopRoutes(app, projectDir, {
677
667
  });
678
668
  }
679
669
 
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
-
1032
670
  // src/server/thumbnailPages.ts
1033
671
  function createThumbnailPages(maxPages = 2, idleMs = 1e3) {
1034
672
  const pages = /* @__PURE__ */ new Map();
@@ -1098,13 +736,13 @@ var RENDER_SHUTDOWN_WAIT_MS = 2e3;
1098
736
  var IMMUTABLE_CACHE_CONTROL = "public, max-age=31536000, immutable";
1099
737
  var REMOTE_GIF_IMG_SRC_RE = /<img\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+\.gif(?:[?#][^"']*)?)["'][^>]*>/gi;
1100
738
  async function loadStudioProducer() {
1101
- if (!isDevMode()) return await import("./src-WMZX5C4A.js");
739
+ if (!isDevMode()) return await import("./src-PZKWEQB3.js");
1102
740
  if (!process.versions.bun) {
1103
741
  throw new Error(
1104
742
  "Studio dev-mode rendering requires bun (the producer is loaded from TypeScript source, which Node cannot resolve). Restart the studio with `bun run studio`."
1105
743
  );
1106
744
  }
1107
- return await import("./src-WMZX5C4A.js");
745
+ return await import("./src-PZKWEQB3.js");
1108
746
  }
1109
747
  function resolveDistDir() {
1110
748
  return resolveStudioBundle().dir;
@@ -1220,7 +858,7 @@ async function getThumbnailBrowser(requestedGpuMode, isShuttingDown) {
1220
858
  try {
1221
859
  if (isShuttingDown()) return null;
1222
860
  const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
1223
- const { acquireBrowser, buildChromeArgs } = await import("./src-I3B7LYZM.js");
861
+ const { acquireBrowser, buildChromeArgs } = await import("./src-W2OMGCC2.js");
1224
862
  let executablePath;
1225
863
  try {
1226
864
  const b = await ensureBrowser({ preferManagedChrome: true });
@@ -1395,7 +1033,7 @@ function createStudioServer(options) {
1395
1033
  resolveProject: (id) => id === projectId ? project : null,
1396
1034
  async bundle(dir, options2) {
1397
1035
  try {
1398
- const { bundleToSingleHtml } = await import("./compiler-J43BE6LC.js");
1036
+ const { bundleToSingleHtml } = await import("./compiler-ZSIKBZBR.js");
1399
1037
  let html = await bundleToSingleHtml(dir, { ...PREVIEW_BUNDLE_OPTIONS, ...options2 });
1400
1038
  html = html.replace(
1401
1039
  'data-hyperframes-preview-runtime="1" src=""',
@@ -1408,10 +1046,10 @@ function createStudioServer(options) {
1408
1046
  }
1409
1047
  },
1410
1048
  async transformPreviewHtml({ html, project: project2 }) {
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");
1049
+ const { injectDeterministicFontFaces } = await import("./deterministicFonts-SKRN3TCP.js");
1050
+ const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-SACSOT4A.js");
1051
+ const { prepareHeifImageInputs } = await import("./heifImagePrep-23E67GBA.js");
1052
+ const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-T5UKNPTJ.js");
1415
1053
  const gifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "gif");
1416
1054
  const gifDownloadDir = join2(project2.dir, ".hyperframes", "prepared-assets", "downloads");
1417
1055
  const heifOutputDir = join2(project2.dir, ".hyperframes", "prepared-assets", "heif");
@@ -1443,7 +1081,7 @@ function createStudioServer(options) {
1443
1081
  if (resolve2(dir) === resolve2(projectDir)) cachedProjectSignature = null;
1444
1082
  },
1445
1083
  async lint(html, opts) {
1446
- const { lintHyperframeHtml } = await import("./dist-4JHP47NU.js");
1084
+ const { lintHyperframeHtml } = await import("./dist-EFXKPJJT.js");
1447
1085
  return await lintHyperframeHtml(html, { ...opts, host: "studio" });
1448
1086
  },
1449
1087
  // Out of process: linting a large composition is seconds of synchronous parsing, and on
@@ -1517,13 +1155,26 @@ function createStudioServer(options) {
1517
1155
  state.progress = j.progress;
1518
1156
  if (j.currentStage) state.stage = j.currentStage;
1519
1157
  };
1520
- await executeRenderJob(
1521
- job,
1522
- opts.project.dir,
1523
- opts.outputPath,
1524
- onProgress,
1525
- abortController.signal
1526
- );
1158
+ const releaseSlot = await acquireRenderLock({
1159
+ project: opts.project.dir,
1160
+ wait: true,
1161
+ signal: abortController.signal,
1162
+ onWait: (holder) => {
1163
+ state.stage = `Waiting for another render (${describeRenderLockHolder(holder, Date.now())})`;
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
+ }
1527
1178
  if (abortController.signal.aborted) {
1528
1179
  removeCancelledOutput();
1529
1180
  return;
@@ -1575,7 +1226,7 @@ function createStudioServer(options) {
1575
1226
  startBackgroundRemoval(opts) {
1576
1227
  return createBackgroundRemovalJob(opts, async (renderOpts) => {
1577
1228
  const sourcePipelinePath = "../background-removal/pipeline.ts";
1578
- const pipeline = await import("./pipeline-NQ4BI2D7.js").catch(
1229
+ const pipeline = await import("./pipeline-O3VKDLBZ.js").catch(
1579
1230
  () => import(sourcePipelinePath)
1580
1231
  );
1581
1232
  return pipeline.render(renderOpts);
@@ -1660,8 +1311,8 @@ function createStudioServer(options) {
1660
1311
  }
1661
1312
  },
1662
1313
  async listRegistryCatalog() {
1663
- const { listRegistryItems, loadAllItems } = await import("./resolver-HQIDF3TF.js");
1664
- const { loadProjectConfig } = await import("./projectConfig-GJL2ZGOU.js");
1314
+ const { listRegistryItems, loadAllItems } = await import("./resolver-ZWNLOG6O.js");
1315
+ const { loadProjectConfig } = await import("./projectConfig-UHYPGWD5.js");
1665
1316
  const registry = { baseUrl: loadProjectConfig(projectDir).registry };
1666
1317
  const entries = await listRegistryItems(void 0, registry);
1667
1318
  const blockAndComponentEntries = entries.filter(
@@ -1670,9 +1321,9 @@ function createStudioServer(options) {
1670
1321
  return loadAllItems(blockAndComponentEntries, registry);
1671
1322
  },
1672
1323
  async installRegistryBlock(opts) {
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");
1324
+ const { addToProject, primaryInstalledTarget } = await import("./add-XQCABYNY.js");
1325
+ const { recordRewrittenInstall } = await import("./installer-VPGNKCEU.js");
1326
+ const { registryTargetPath } = await import("./publication-5KOANEHK.js");
1676
1327
  const { result, item } = await addToProject({
1677
1328
  name: opts.blockName,
1678
1329
  projectDir: opts.project.dir,
@@ -1696,7 +1347,7 @@ function createStudioServer(options) {
1696
1347
  };
1697
1348
  }
1698
1349
  };
1699
- const app = new Hono2();
1350
+ const app = new Hono();
1700
1351
  app.get("/__hyperframes_config", (c) => {
1701
1352
  const serve = async () => {
1702
1353
  const serverBuildSignature = await loadPreviewServerBuildSignature();
@@ -1776,8 +1427,8 @@ function createStudioServer(options) {
1776
1427
  app.get("/api/environment/ffmpeg", async (c) => {
1777
1428
  if (ffmpegReady) return c.json({ ok: true });
1778
1429
  const [{ runEnvironmentChecks }, { getFFmpegInstallCommand }] = await Promise.all([
1779
- import("./preflight-DLO6LHGO.js"),
1780
- import("./ffmpeg-4CMA6M2L.js")
1430
+ import("./preflight-HEAPQ7N7.js"),
1431
+ import("./ffmpeg-RYNM3JM2.js")
1781
1432
  ]);
1782
1433
  const { outcomes } = await runEnvironmentChecks();
1783
1434
  const failed = outcomes.find((outcome) => !outcome.ok);
@@ -1794,10 +1445,9 @@ function createStudioServer(options) {
1794
1445
  });
1795
1446
  });
1796
1447
  mountDesktopRoutes(app, projectDir);
1797
- mountShareRoutes(app, projectDir);
1798
1448
  let cachedFFmpegPath;
1799
1449
  app.post("/api/projects/:id/render", async (c, next) => {
1800
- const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-4CMA6M2L.js");
1450
+ const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-RYNM3JM2.js");
1801
1451
  if (!cachedFFmpegPath) {
1802
1452
  cachedFFmpegPath = findFFmpeg();
1803
1453
  }
@@ -1902,10 +1552,9 @@ function createStudioServer(options) {
1902
1552
  }
1903
1553
  let html = indexContent.toString("utf-8");
1904
1554
  const headScript = buildStudioHeadScriptsForHost(buildRuntimeEnvScript(), c.req.header("host"));
1905
- html = html.replace(
1906
- "<head>",
1907
- `<head><meta name="hyperframes-local-share" content="1">${headScript}`
1908
- );
1555
+ if (headScript) {
1556
+ html = html.replace("<head>", `<head>${headScript}`);
1557
+ }
1909
1558
  return c.html(html, 200, { "Cache-Control": "no-cache" });
1910
1559
  });
1911
1560
  const shutdown = async () => {
@@ -1914,7 +1563,7 @@ function createStudioServer(options) {
1914
1563
  });
1915
1564
  const renders = [...inFlightRenders];
1916
1565
  for (const [abortController] of renders) abortController.abort();
1917
- const { killTrackedProcesses, closeBrowserPool } = await import("./src-I3B7LYZM.js");
1566
+ const { killTrackedProcesses, closeBrowserPool } = await import("./src-W2OMGCC2.js");
1918
1567
  killTrackedProcesses();
1919
1568
  const closeBrowsers = Promise.allSettled([
1920
1569
  closeThumbnailBrowser().catch(() => {