hyperframes 0.9.27 → 0.9.28-alpha.1

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 (261) hide show
  1. package/dist/{add-K5J5XWLL.js → add-YDZMFKR3.js} +14 -14
  2. package/dist/{agentPromptGenerator-PGIEEJLJ.js → agentPromptGenerator-AUXZZCIG.js} +7 -7
  3. package/dist/{animatedGifPrep-MLZOHCTS.js → animatedGifPrep-2DYVIBA4.js} +7 -7
  4. package/dist/api.js +39 -38
  5. package/dist/{asset-OS5AB3SQ.js → asset-JHM3VF72.js} +2 -2
  6. package/dist/{assetCataloger-DMVL5X2P.js → assetCataloger-2OB46SVM.js} +8 -8
  7. package/dist/{audio-23FMLVOJ.js → audio-T6YSLT2D.js} +25 -24
  8. package/dist/{auth-2DIXO5OO.js → auth-YSTRUKED.js} +4 -4
  9. package/dist/{autoUpdate-NP2CBKFP.js → autoUpdate-VYRYBZG6.js} +3 -3
  10. package/dist/{avatars-LULUZMLI.js → avatars-UU53IDAK.js} +16 -15
  11. package/dist/{backgroundChecks-3MXY6FNF.js → backgroundChecks-FNACAOZD.js} +4 -4
  12. package/dist/backgroundChecksWorker.js +4 -4
  13. package/dist/{batchRender-AL6DO5IA.js → batchRender-KWIPFU5Q.js} +4 -4
  14. package/dist/{beats-U4Q76QWK.js → beats-X2LCSMYD.js} +11 -11
  15. package/dist/{benchmark-QANZ2IRX.js → benchmark-4OB6M2FR.js} +11 -11
  16. package/dist/{billing-PX54B6T7.js → billing-DC6ODLSG.js} +16 -15
  17. package/dist/{browser-P36XPIWA.js → browser-PUJD4WCC.js} +8 -8
  18. package/dist/{bundleWithLocalizedFonts-QY6JAKLF.js → bundleWithLocalizedFonts-7HQEKW2H.js} +1 -1
  19. package/dist/{capture-ZZWXDUH2.js → capture-IGQR6HTG.js} +22 -22
  20. package/dist/{capture-S5DURUCT.js → capture-PUB5WBLQ.js} +3 -3
  21. package/dist/{captureCompositionFrame-VTN6VB5N.js → captureCompositionFrame-JT6HGVU7.js} +14 -14
  22. package/dist/{catalog-TTBH4Y6Z.js → catalog-5NC5EV6Z.js} +14 -14
  23. package/dist/{catch-up-M3CF57PU.js → catch-up-6RJNWB5I.js} +9 -9
  24. package/dist/{check-K7ZBDKBZ.js → check-FXZOPV3Y.js} +43 -44
  25. package/dist/{checkAudio-HZ3Z5BTZ.js → checkAudio-VSHZXO4J.js} +15 -15
  26. package/dist/{checkBrowser-TO5M2QL2.js → checkBrowser-EOSAXIHJ.js} +37 -37
  27. package/dist/{chunk-K6UG4VWT.js → chunk-2BSPL7YE.js} +3 -3
  28. package/dist/{chunk-5FWOWZAB.js → chunk-2Q3Y7CI3.js} +7 -7
  29. package/dist/{chunk-7JK2YE2G.js → chunk-36G3XDN6.js} +2 -2
  30. package/dist/chunk-37RCPDCR.js +173 -0
  31. package/dist/{chunk-FKSUSFRT.js → chunk-3BWFZFJK.js} +18 -18
  32. package/dist/{chunk-NFUXYBOR.js → chunk-3MYEF34S.js} +1 -1
  33. package/dist/{chunk-YU5QNJMA.js → chunk-3OKVZXTH.js} +2 -2
  34. package/dist/{chunk-ZUXES5HA.js → chunk-3Q7LAXFJ.js} +2 -2
  35. package/dist/{chunk-F24B2PLD.js → chunk-3T6BFAKZ.js} +1 -1
  36. package/dist/{chunk-FNSWA4FK.js → chunk-44LVKFXU.js} +1 -1
  37. package/dist/{chunk-M3UU4QRH.js → chunk-4J2J57RS.js} +3 -3
  38. package/dist/{chunk-JLUOG6S2.js → chunk-4OZVFZCO.js} +1 -1
  39. package/dist/{chunk-KUBXGMHI.js → chunk-4TU5M4WX.js} +28 -30
  40. package/dist/chunk-4UBGQTAT.js +387 -0
  41. package/dist/{chunk-LI2TX7SN.js → chunk-4XGKXBYH.js} +2 -2
  42. package/dist/{chunk-XZ2MQF7V.js → chunk-5ROYFGQT.js} +1 -1
  43. package/dist/{chunk-W5QBSRPF.js → chunk-5YDJTVOQ.js} +2 -2
  44. package/dist/{chunk-YNIADMNZ.js → chunk-63PVDQ6R.js} +2 -2
  45. package/dist/{chunk-L2GOO2UY.js → chunk-6ODX6SHY.js} +2 -2
  46. package/dist/{chunk-2WKG7HXZ.js → chunk-6RHKGQRA.js} +2 -2
  47. package/dist/{chunk-STQGPDO4.js → chunk-6UJOLK4G.js} +2 -2
  48. package/dist/{chunk-TKFKOWRI.js → chunk-7D4PARGG.js} +6 -6
  49. package/dist/{chunk-6PHVIKCJ.js → chunk-7GZ4E5ID.js} +4 -4
  50. package/dist/{chunk-MVJ7AX6W.js → chunk-7U2B7OF6.js} +1 -1
  51. package/dist/{chunk-V4Z37HFN.js → chunk-7XHVHBFV.js} +3 -3
  52. package/dist/{chunk-IOPIOX5K.js → chunk-AAENGP3S.js} +16 -66
  53. package/dist/{chunk-LMCFILEY.js → chunk-AHRX3FHF.js} +3 -3
  54. package/dist/{chunk-U5RXCKWJ.js → chunk-AJVYQVDB.js} +1 -1
  55. package/dist/{chunk-TRXIWZTM.js → chunk-ALCP5OEW.js} +1 -1
  56. package/dist/{chunk-6LCIO2YY.js → chunk-BP75ZLZ5.js} +2 -2
  57. package/dist/{chunk-5ZEBQO7Y.js → chunk-C6S2NYQ4.js} +4 -4
  58. package/dist/{chunk-TM6HH2VV.js → chunk-CE765XG3.js} +1 -1
  59. package/dist/{chunk-PBDBD4BY.js → chunk-CG65CRMP.js} +2 -2
  60. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  61. package/dist/{chunk-LLLNVEUF.js → chunk-COAB2OXQ.js} +1 -1
  62. package/dist/{chunk-5WI3VKQW.js → chunk-DFKD43CD.js} +3 -3
  63. package/dist/chunk-DGXKMYIX.js +343 -0
  64. package/dist/{chunk-Y67RJDEB.js → chunk-FF25S7ZC.js} +1 -1
  65. package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
  66. package/dist/{chunk-F4ROYQPH.js → chunk-FZUIGBYD.js} +3 -3
  67. package/dist/{chunk-CGUAZCPL.js → chunk-GNG7XNUY.js} +15 -15
  68. package/dist/{chunk-7VHSPFBH.js → chunk-GTZVTATR.js} +1 -1
  69. package/dist/{chunk-ZGIPMCML.js → chunk-GVBAVADJ.js} +1 -1
  70. package/dist/{chunk-DC5ZRTHD.js → chunk-HPR2BPFS.js} +2 -2
  71. package/dist/{chunk-IX3K55NA.js → chunk-HW325JBH.js} +4 -4
  72. package/dist/{chunk-HGHBQDM5.js → chunk-IADGTP5X.js} +3 -3
  73. package/dist/{chunk-OSDNRYQJ.js → chunk-IMSLXLUI.js} +1 -1
  74. package/dist/{chunk-GQTNVE7U.js → chunk-J5CDV66Q.js} +4 -4
  75. package/dist/chunk-JE2YBPC5.js +152 -0
  76. package/dist/{chunk-YSJKA52M.js → chunk-JHSHEJU7.js} +2 -2
  77. package/dist/{chunk-J237HI2F.js → chunk-JX4BEVC3.js} +29 -41
  78. package/dist/{chunk-BZFVS36G.js → chunk-KCRVZA7B.js} +1 -1
  79. package/dist/{chunk-NURN5W6M.js → chunk-KJ5QBEMN.js} +8 -6
  80. package/dist/{chunk-RVXE24LQ.js → chunk-L666J5OJ.js} +2 -2
  81. package/dist/{chunk-6NVZYXDT.js → chunk-LSSUDIEM.js} +5 -5
  82. package/dist/{chunk-6FHIR4KD.js → chunk-ME6L6GUF.js} +1 -1
  83. package/dist/{chunk-BJYCLZBQ.js → chunk-MEVLYDL2.js} +1 -1
  84. package/dist/{chunk-D5QT3ORV.js → chunk-MPC3L6A3.js} +1 -1
  85. package/dist/{chunk-TMYY4DV4.js → chunk-MWBRY5HN.js} +3 -3
  86. package/dist/{chunk-QTBRVJ6N.js → chunk-N5TVFPYQ.js} +1 -1
  87. package/dist/{chunk-5TD7HBR3.js → chunk-NHRLZESZ.js} +1 -1
  88. package/dist/{chunk-IIS57Z3R.js → chunk-NVNKKVDH.js} +2 -2
  89. package/dist/{chunk-QISOTHEQ.js → chunk-O2JZ6C3S.js} +7 -7
  90. package/dist/{chunk-WZTOPKVO.js → chunk-OJ5HAKL6.js} +7 -7
  91. package/dist/{chunk-5AULMCSV.js → chunk-OPGYOHU6.js} +2 -2
  92. package/dist/chunk-OUOZGJJF.js +538 -0
  93. package/dist/{chunk-V6EVV3XC.js → chunk-PSGS27VB.js} +2 -2
  94. package/dist/chunk-Q5JJDC2L.js +51 -0
  95. package/dist/{chunk-RYT22J4V.js → chunk-Q6TVZY36.js} +2 -2
  96. package/dist/chunk-QABQKJPY.js +3761 -0
  97. package/dist/{chunk-RSNZEWNW.js → chunk-QB2USW3R.js} +1 -1
  98. package/dist/{chunk-5PL4LZYF.js → chunk-QKAXPYTV.js} +12 -12
  99. package/dist/{chunk-4N3UVDIJ.js → chunk-QTDTCTGB.js} +6 -4
  100. package/dist/{chunk-SODLRBNC.js → chunk-R6PUBUA4.js} +1 -1
  101. package/dist/{chunk-NHJ5YUBZ.js → chunk-RERVXE6J.js} +2 -2
  102. package/dist/{chunk-GGDJLN5I.js → chunk-SCPMSSQW.js} +20 -0
  103. package/dist/{chunk-CZ43ZZFS.js → chunk-STTUDVAI.js} +1 -1
  104. package/dist/{chunk-QYPS3UYP.js → chunk-SXGLW3OW.js} +3 -3
  105. package/dist/{chunk-TCQKCUDA.js → chunk-TF7VWCJM.js} +1 -1
  106. package/dist/{chunk-NMOWXTCB.js → chunk-TLVXCOMV.js} +2 -2
  107. package/dist/{chunk-Z5THPTQ2.js → chunk-TYPFNWE6.js} +1 -1
  108. package/dist/{chunk-ZNTYIJ5K.js → chunk-UYVQDKGC.js} +1 -1
  109. package/dist/{chunk-DJVSNDF3.js → chunk-VSQ5NWCF.js} +3 -3
  110. package/dist/{chunk-6IMVGVA4.js → chunk-VYEPG2N6.js} +1 -1
  111. package/dist/{chunk-UPG4MMIA.js → chunk-W3XARNFW.js} +1 -1
  112. package/dist/{chunk-BZULWFMJ.js → chunk-W4DMQZL5.js} +2 -11
  113. package/dist/{chunk-ZDQNMNFE.js → chunk-WCPH2JRB.js} +9 -9
  114. package/dist/{chunk-QBNHYXV3.js → chunk-WFO2PDZD.js} +11 -9
  115. package/dist/{chunk-IYYZMZD2.js → chunk-WIJGRX5X.js} +1 -1
  116. package/dist/{chunk-SCNC7YPB.js → chunk-WOSVLHQH.js} +1 -1
  117. package/dist/{chunk-M457GQGR.js → chunk-WXEXQLVV.js} +216 -344
  118. package/dist/{chunk-IQKMIYLG.js → chunk-WYA575QX.js} +7 -5
  119. package/dist/{chunk-UXJAMAZK.js → chunk-XFE4R6I4.js} +1 -1
  120. package/dist/{chunk-3JFV42QB.js → chunk-XGRXNWDK.js} +3 -3
  121. package/dist/{chunk-V7Q4XKRJ.js → chunk-XHP3V4WH.js} +9 -5
  122. package/dist/{chunk-Q73OZV2V.js → chunk-XLX7TDCI.js} +17 -17
  123. package/dist/{chunk-YPRU66CC.js → chunk-XOON4QRF.js} +1 -1
  124. package/dist/{chunk-2SX2EOPM.js → chunk-YFDCU6X5.js} +6 -6
  125. package/dist/{chunk-VXWASGGT.js → chunk-YJBGA3W6.js} +2 -2
  126. package/dist/{chunk-OT2KF34N.js → chunk-YSIDK3VE.js} +12 -12
  127. package/dist/{chunk-INVBU7DY.js → chunk-ZMQYQHZU.js} +1 -1
  128. package/dist/{clean-LCQH4HFU.js → clean-5WXYKIWX.js} +22 -22
  129. package/dist/cli.js +69 -67
  130. package/dist/{cloud-QJMPTQ3N.js → cloud-TEJ6UVBU.js} +6 -5
  131. package/dist/{cloud-34YHQNNB.js → cloud-X2ZPQOFN.js} +4 -4
  132. package/dist/{cloudrun-T7VVPRDG.js → cloudrun-A7DU7DQE.js} +7 -7
  133. package/dist/{compare-5EBDE5ZT.js → compare-URG6E3VF.js} +35 -35
  134. package/dist/{compiler-ZSIKBZBR.js → compiler-J43BE6LC.js} +4 -4
  135. package/dist/{component-7TIFLFYC.js → component-BE2ZLBPY.js} +3 -3
  136. package/dist/{compositions-TLCEVGBC.js → compositions-DJPSPCYI.js} +13 -13
  137. package/dist/contract/LICENSE-Unicode.txt +39 -0
  138. package/dist/contract/path-policy.json +311 -0
  139. package/dist/contract/unicode-15.1.0.json +6179 -0
  140. package/dist/{curve-YABHYRHK.js → curve-I6CGCMG5.js} +12 -12
  141. package/dist/{cuts-UFRBSLDQ.js → cuts-TRTRMTCZ.js} +13 -13
  142. package/dist/{delete-5OABQGPL.js → delete-UMO7XCW3.js} +9 -8
  143. package/dist/{deploy-2OYZWP74.js → deploy-T2CETGFF.js} +6 -6
  144. package/dist/{describeProject-TX2WQLQ5.js → describeProject-AJ2SFRCN.js} +8 -8
  145. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-UZIF5XZW.js} +2 -2
  146. package/dist/{diff-2CKZ2QR7.js → diff-KCVI66ZW.js} +40 -39
  147. package/dist/{dist-EFXKPJJT.js → dist-4JHP47NU.js} +2 -2
  148. package/dist/{dist-O45G7NET.js → dist-AUYCAQMA.js} +14 -14
  149. package/dist/{dist-QRXJMFI7.js → dist-F3Y2XHZL.js} +3 -3
  150. package/dist/{doctor-Y436MAQR.js → doctor-UTIGHYSY.js} +12 -12
  151. package/dist/{energy-UKLKTH7A.js → energy-PJUDIY2I.js} +13 -13
  152. package/dist/{events-NKRFVAY3.js → events-HI2WDYGV.js} +4 -4
  153. package/dist/{events-MC5XLD2Z.js → events-P6Q6GB6K.js} +8 -8
  154. package/dist/{events-73W2IO3W.js → events-ZMFIRGW4.js} +15 -15
  155. package/dist/execute-AUPUAYPW.js +109 -0
  156. package/dist/{extract-ZG3MHNYX.js → extract-4RYOD7LZ.js} +16 -16
  157. package/dist/{face-CFBT42SW.js → face-X3DR3L7V.js} +14 -14
  158. package/dist/{feedback-QGDEE3RB.js → feedback-WOE25OSG.js} +15 -14
  159. package/dist/{ffmpeg-UXHRG3MW.js → ffmpeg-N3LZ7XBX.js} +7 -7
  160. package/dist/{figma-BD7RROGK.js → figma-VPG54R3O.js} +3 -3
  161. package/dist/fontLocalizeCli.js +13 -13
  162. package/dist/{frames-ZF756HF3.js → frames-VNQ5P43E.js} +14 -14
  163. package/dist/{generate-LEUO4VVQ.js → generate-ZCTFKNNW.js} +27 -26
  164. package/dist/{get-4BL6VXKX.js → get-K374EYQS.js} +9 -8
  165. package/dist/{gpuPolicy-K2JHXORZ.js → gpuPolicy-SAEOR4QY.js} +7 -7
  166. package/dist/{grade-compare-4UBZJQ7F.js → grade-compare-UHNGFSNR.js} +37 -37
  167. package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-5YD4N6HQ.js} +1 -1
  168. package/dist/{heifImagePrep-O2WGVMAP.js → heifImagePrep-R7NDS5FP.js} +8 -8
  169. package/dist/{help-M55BSV4I.js → help-6DADTB2R.js} +1 -1
  170. package/dist/{history-UIQBTMXZ.js → history-2K4FPC4P.js} +11 -11
  171. package/dist/hyperframes-player.global.js +1 -1
  172. package/dist/{info-X4VTZ7PT.js → info-7NZB6ZUO.js} +15 -15
  173. package/dist/{init-3Y5XMH6I.js → init-UVGSTDBD.js} +29 -29
  174. package/dist/{ink-QKIGMWUR.js → ink-3GBOCKAV.js} +13 -13
  175. package/dist/{inspect-BUKYJF6N.js → inspect-XWAQWM2Y.js} +34 -34
  176. package/dist/{installer-VPGNKCEU.js → installer-AJESSC5Y.js} +5 -5
  177. package/dist/{keyframes-6HO56WZG.js → keyframes-7C6LAP5V.js} +12 -15
  178. package/dist/{lambda-XDVNHACQ.js → lambda-Y2BEBCDQ.js} +13 -13
  179. package/dist/{layout-WELYAXO3.js → layout-Z35EOSYQ.js} +34 -34
  180. package/dist/{lint-6R3E6Q5V.js → lint-QU5JDQX3.js} +12 -12
  181. package/dist/{lintProject-5CBL7VFV.js → lintProject-Z6TG3Z34.js} +2 -2
  182. package/dist/{list-SIL4TALK.js → list-6KUDG4X7.js} +11 -10
  183. package/dist/{localPage-6VW25RGJ.js → localPage-SM5JBV4M.js} +7 -7
  184. package/dist/{login-3AFKZLIK.js → login-XCR35XUC.js} +8 -7
  185. package/dist/{logout-FJ444652.js → logout-AHGR3X5U.js} +6 -4
  186. package/dist/{look-RYLQYXNN.js → look-O452Y7XO.js} +13 -13
  187. package/dist/{manager-T4ZHIMMY.js → manager-GCFCVNYS.js} +8 -8
  188. package/dist/{measure-XUK4GNAC.js → measure-D54QYN6X.js} +11 -11
  189. package/dist/{media-treatment-SR5TX7CH.js → media-treatment-LPL2SZ7W.js} +15 -15
  190. package/dist/{media-use-3LOSIEZM.js → media-use-VL2EL53W.js} +9 -7
  191. package/dist/{models-5SPPZN2E.js → models-YFFUQ757.js} +11 -11
  192. package/dist/{motionShot-IFAFFPZF.js → motionShot-QHWXLUJM.js} +19 -19
  193. package/dist/{normalize-audio-LQDUTXFM.js → normalize-audio-72PTXCD7.js} +11 -11
  194. package/dist/oauth-KUPQUH6E.js +40 -0
  195. package/dist/{open-XX2L2YSZ.js → open-BLPP4OPX.js} +14 -14
  196. package/dist/{parakeetRunner-R5WK6AJN.js → parakeetRunner-3A66RNGS.js} +13 -13
  197. package/dist/{pipeline-NMCWG5AA.js → pipeline-BFMEIMNZ.js} +10 -10
  198. package/dist/plan-2MKSJEUW.js +88 -0
  199. package/dist/{play-Q2AYSHPW.js → play-KG2B7KMX.js} +26 -26
  200. package/dist/{preflight-WG2O5KUQ.js → preflight-YNGNNHZC.js} +8 -8
  201. package/dist/{present-AOU7HG3N.js → present-WGQEDRXJ.js} +21 -21
  202. package/dist/{preview-PMGF6AQB.js → preview-JM6GYVIL.js} +23 -23
  203. package/dist/{probe-SESDMQ4Q.js → probe-B5H6PBIG.js} +13 -13
  204. package/dist/{producer-TGF2N7GF.js → producer-QIHOQ53I.js} +1 -1
  205. package/dist/{projectConfig-UHYPGWD5.js → projectConfig-GJL2ZGOU.js} +7 -7
  206. package/dist/{publication-5KOANEHK.js → publication-BLLVTVD6.js} +3 -3
  207. package/dist/{publish-C3ARXH6D.js → publish-CYPJA7T7.js} +83 -23
  208. package/dist/{refresh-YY4K2RWR.js → refresh-TB4TNH7R.js} +4 -3
  209. package/dist/{remove-background-ZHAYTN7D.js → remove-background-MHKW4EBR.js} +11 -11
  210. package/dist/{render-UNWC5ZIO.js → render-F35USXZA.js} +45 -44
  211. package/dist/{render-XYWARHW5.js → render-RTPE3OBI.js} +316 -934
  212. package/dist/{render-TSV3XTQV.js → render-RUEXLOWE.js} +6 -6
  213. package/dist/{render-batch-ISMXAG7F.js → render-batch-QFGQD5FM.js} +6 -6
  214. package/dist/renderSetupWorker.js +2 -2
  215. package/dist/{resolver-ZWNLOG6O.js → resolver-HQIDF3TF.js} +5 -5
  216. package/dist/{reverse-Q76RJRN5.js → reverse-BEQHRYSZ.js} +1 -1
  217. package/dist/{run-UPKPPRV7.js → run-EVZGKUEX.js} +5 -4
  218. package/dist/{screenshotCapture-N6BXDAMK.js → screenshotCapture-4NDEWYCU.js} +8 -8
  219. package/dist/service-XCT7W4PQ.js +68 -0
  220. package/dist/share-KRKP6VYV.js +241 -0
  221. package/dist/{sherpa-5YE5FIOR.js → sherpa-MNU3ORFR.js} +12 -12
  222. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  223. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  224. package/dist/{skills-U4NHFYH4.js → skills-3R6EC5PV.js} +11 -11
  225. package/dist/{skillsUpdateCheck-XJA6VEZZ.js → skillsUpdateCheck-TRRXLL46.js} +4 -4
  226. package/dist/{snapshot-V4BSRUXI.js → snapshot-BYNK523M.js} +48 -50
  227. package/dist/{src-JVYKW7RE.js → src-EZMBCQBY.js} +12 -12
  228. package/dist/{src-FNXCLKWN.js → src-FZ4EJHOK.js} +6 -6
  229. package/dist/{start-TSIACBUA.js → start-FRPRXMEN.js} +25 -24
  230. package/dist/{staticProjectServer-NTSNYFWQ.js → staticProjectServer-FF6IBUD6.js} +19 -19
  231. package/dist/{status-53Z4YLQ7.js → status-QZ7PKGAJ.js} +20 -18
  232. package/dist/studio/assets/{codec-YP1ZxmPt.js → codec-DqodFzhT.js} +1 -1
  233. package/dist/studio/assets/{hyperframes-player-Cy3KqtCh.js → hyperframes-player-D03oERxc.js} +1 -1
  234. package/dist/studio/assets/{index-C4B6p8IF.js → index-9kcxLnm3.js} +1 -1
  235. package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
  236. package/dist/studio/assets/{index-BNTUBT5h.js → index-DuOvEv27.js} +184 -184
  237. package/dist/studio/assets/{pausedVideoDecoder-52lsHc7p.js → pausedVideoDecoder-pYFINB0c.js} +1 -1
  238. package/dist/studio/index.html +2 -2
  239. package/dist/{studio-api-2I44WB4P.js → studio-api-RBURPKYX.js} +14 -14
  240. package/dist/{studioServer-HSYYGQU3.js → studioServer-YZDNK3AO.js} +434 -83
  241. package/dist/{sync-B2HPDX37.js → sync-6MHJVU4M.js} +13 -13
  242. package/dist/{telemetry-L4KX6ADA.js → telemetry-CLB2O4ZK.js} +8 -8
  243. package/dist/{templates-MKR4FTPR.js → templates-HFQXIAO2.js} +19 -18
  244. package/dist/{timeline-VDFI4ABH.js → timeline-ORRCS7NO.js} +21 -21
  245. package/dist/{tokens-XYVGSKDY.js → tokens-OTBA5VQ3.js} +2 -2
  246. package/dist/{transcribe-3QGLLMEQ.js → transcribe-EMXH7CGF.js} +10 -10
  247. package/dist/{transcribe-A7QZYVNX.js → transcribe-PJIFWND6.js} +29 -28
  248. package/dist/{tts-HOZ6X3MD.js → tts-NANTORLP.js} +1 -1
  249. package/dist/{update-AWSCA73T.js → update-RT6R53XR.js} +12 -12
  250. package/dist/{updateCheck-ATDIIE24.js → updateCheck-LSLLTUFX.js} +3 -3
  251. package/dist/{upgrade-RJNDUCWP.js → upgrade-SSPKJYOW.js} +4 -4
  252. package/dist/{urlDownloader-RE6IIDWK.js → urlDownloader-FTYUJP2D.js} +6 -6
  253. package/dist/{validate-YWO6GA5Q.js → validate-SN2JDYNN.js} +28 -28
  254. package/dist/{video-RKEUBWJI.js → video-Z522PCEM.js} +8 -8
  255. package/dist/{voices-GESP52KZ.js → voices-AQWUK6GK.js} +24 -23
  256. package/dist/warmCheck.js +43 -44
  257. package/package.json +2 -1
  258. package/dist/chunk-63HHKYU2.js +0 -413
  259. package/dist/chunk-XDKEKXV4.js +0 -29
  260. package/dist/{destroy-YAMTVR2W.js → destroy-IWHFUGJL.js} +4 -4
  261. 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
- acquireRenderLock,
9
- describeRenderLockHolder,
8
+ shareError
9
+ } from "./chunk-Q5JJDC2L.js";
10
+ import {
11
+ ReviewFailed,
12
+ fileSha256Base64,
13
+ latestShareRender,
14
+ shareContentFingerprint,
15
+ shareSite,
16
+ trackShareInteraction,
17
+ versionOnPage
18
+ } from "./chunk-QABQKJPY.js";
19
+ import {
10
20
  renderJobObservabilityTelemetryPayload,
11
21
  renderObservabilityTelemetryPayload,
12
22
  startRenderCpuSampler
13
- } from "./chunk-63HHKYU2.js";
23
+ } from "./chunk-37RCPDCR.js";
14
24
  import {
15
25
  HANDOFF_READY,
16
26
  desktopDownloadUrl,
17
27
  desktopInstalled,
18
28
  insideHostApp,
19
29
  openInDesktop
20
- } from "./chunk-VXWASGGT.js";
30
+ } from "./chunk-YJBGA3W6.js";
21
31
  import {
22
32
  resolveRenderBrowser
23
- } from "./chunk-QTBRVJ6N.js";
33
+ } from "./chunk-N5TVFPYQ.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-CZ43ZZFS.js";
41
+ import "./chunk-STTUDVAI.js";
30
42
  import "./chunk-X7MTZ4T2.js";
31
- import "./chunk-GGDJLN5I.js";
32
43
  import {
33
44
  seekCompositionTimeline
34
- } from "./chunk-CGUAZCPL.js";
45
+ } from "./chunk-GNG7XNUY.js";
35
46
  import {
36
47
  GSAP_VENDOR_FILES,
37
48
  readBundleFile,
38
49
  resolveGsapVendorDir
39
- } from "./chunk-OSDNRYQJ.js";
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-BJYCLZBQ.js";
52
+ import "./chunk-MEVLYDL2.js";
53
+ import "./chunk-262C25DQ.js";
54
+ import "./chunk-4J2J57RS.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-J237HI2F.js";
57
- import "./chunk-IX3K55NA.js";
58
- import "./chunk-LMCFILEY.js";
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-BZULWFMJ.js";
77
- import "./chunk-DC5ZRTHD.js";
87
+ import "./chunk-W4DMQZL5.js";
88
+ import "./chunk-HPR2BPFS.js";
78
89
  import "./chunk-FGFVUKPP.js";
79
90
  import {
80
91
  resolveCaptureBrowserGpuMode,
81
92
  resolveLocalBrowserGpuMode,
82
93
  resolveLocalWebGpu
83
- } from "./chunk-PBDBD4BY.js";
94
+ } from "./chunk-CG65CRMP.js";
84
95
  import {
85
96
  resolveAutoProxy
86
- } from "./chunk-IYYZMZD2.js";
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-6FHIR4KD.js";
101
+ import "./chunk-ME6L6GUF.js";
91
102
  import "./chunk-JHOCK3DG.js";
92
- import "./chunk-3JFV42QB.js";
93
- import "./chunk-MVJ7AX6W.js";
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-LI2TX7SN.js";
113
+ } from "./chunk-4XGKXBYH.js";
103
114
  import {
104
115
  canaryDecisionsForStudio,
105
116
  resetTelemetryPostureCache,
106
117
  shouldTrack
107
- } from "./chunk-7JK2YE2G.js";
118
+ } from "./chunk-36G3XDN6.js";
108
119
  import "./chunk-PXVQOMKL.js";
109
120
  import "./chunk-MCDNAIFF.js";
110
- import "./chunk-LP7B3JLC.js";
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-V7Q4XKRJ.js";
136
+ } from "./chunk-XHP3V4WH.js";
126
137
  import "./chunk-Z5J67X44.js";
127
138
  import "./chunk-5S7W3TUO.js";
128
139
  import "./chunk-D3MUHMFG.js";
129
- import "./chunk-NHJ5YUBZ.js";
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-RYT22J4V.js";
149
+ } from "./chunk-Q6TVZY36.js";
139
150
  import "./chunk-FXMKHHPO.js";
140
- import "./chunk-F24B2PLD.js";
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-DJVSNDF3.js";
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-IOPIOX5K.js";
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-2WKG7HXZ.js";
197
+ } from "./chunk-6RHKGQRA.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-QRXJMFI7.js");
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-QRXJMFI7.js");
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-XCT7W4PQ.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-JVYKW7RE.js");
1101
+ if (!isDevMode()) return await import("./src-EZMBCQBY.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-JVYKW7RE.js");
1107
+ return await import("./src-EZMBCQBY.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-FNXCLKWN.js");
1223
+ const { acquireBrowser, buildChromeArgs } = await import("./src-FZ4EJHOK.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-ZSIKBZBR.js");
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-SKRN3TCP.js");
1050
- const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-MLZOHCTS.js");
1051
- const { prepareHeifImageInputs } = await import("./heifImagePrep-O2WGVMAP.js");
1052
- const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-RE6IIDWK.js");
1411
+ const { injectDeterministicFontFaces } = await import("./deterministicFonts-UZIF5XZW.js");
1412
+ const { prepareAnimatedGifInputs } = await import("./animatedGifPrep-2DYVIBA4.js");
1413
+ const { prepareHeifImageInputs } = await import("./heifImagePrep-R7NDS5FP.js");
1414
+ const { downloadToTemp, writeUrlDownloadTelemetry } = await import("./urlDownloader-FTYUJP2D.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-EFXKPJJT.js");
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
- 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
- }
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-NMCWG5AA.js").catch(
1578
+ const pipeline = await import("./pipeline-BFMEIMNZ.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-ZWNLOG6O.js");
1315
- const { loadProjectConfig } = await import("./projectConfig-UHYPGWD5.js");
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-K5J5XWLL.js");
1325
- const { recordRewrittenInstall } = await import("./installer-VPGNKCEU.js");
1326
- const { registryTargetPath } = await import("./publication-5KOANEHK.js");
1673
+ const { addToProject, primaryInstalledTarget } = await import("./add-YDZMFKR3.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 Hono();
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-WG2O5KUQ.js"),
1431
- import("./ffmpeg-UXHRG3MW.js")
1779
+ import("./preflight-YNGNNHZC.js"),
1780
+ import("./ffmpeg-N3LZ7XBX.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-UXHRG3MW.js");
1800
+ const { findFFmpeg, getFFmpegInstallHint } = await import("./ffmpeg-N3LZ7XBX.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
- if (headScript) {
1556
- html = html.replace("<head>", `<head>${headScript}`);
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-FNXCLKWN.js");
1917
+ const { killTrackedProcesses, closeBrowserPool } = await import("./src-FZ4EJHOK.js");
1567
1918
  killTrackedProcesses();
1568
1919
  const closeBrowsers = Promise.allSettled([
1569
1920
  closeThumbnailBrowser().catch(() => {