hyperframes 0.9.32 → 0.9.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/bin/hyperframes.mjs +10 -0
  2. package/dist/{add-HYI4YJC5.js → add-NBOJ2UA3.js} +18 -17
  3. package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-3JOLQXTX.js} +11 -11
  4. package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-VI5CFYCR.js} +10 -10
  5. package/dist/api.js +49 -48
  6. package/dist/{appHistory-WZIHFCPK.js → appHistory-535MKSWI.js} +2 -2
  7. package/dist/{asset-7FG3M3FQ.js → asset-NYULKN5A.js} +2 -2
  8. package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-AWJMEMX7.js} +12 -12
  9. package/dist/{audio-R6ZG62DU.js → audio-QN5YYFOA.js} +31 -30
  10. package/dist/{auth-IPDYZXOG.js → auth-LHUBRGIH.js} +4 -4
  11. package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-5M3JGEFS.js} +3 -3
  12. package/dist/{avatars-A45VFUZ4.js → avatars-DAB2KILV.js} +19 -18
  13. package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-3NQOCEDM.js} +4 -4
  14. package/dist/backgroundChecksWorker.js +4 -4
  15. package/dist/{batchRender-VBSYVQA7.js → batchRender-EPRIJZVT.js} +4 -4
  16. package/dist/{beats-UPJ3KANG.js → beats-ZCPQEIFG.js} +14 -14
  17. package/dist/{benchmark-2RWYJGL2.js → benchmark-7OVOBGQX.js} +11 -11
  18. package/dist/{billing-MD66MJTA.js → billing-7K6S23FP.js} +19 -18
  19. package/dist/{browser-JXCS62NX.js → browser-CP76THCA.js} +10 -9
  20. package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-MRCRI676.js} +1 -1
  21. package/dist/{capture-M6DT5WZT.js → capture-B4B72PIK.js} +4 -4
  22. package/dist/{capture-DJ4WRP62.js → capture-VAE27MNW.js} +51 -31
  23. package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-YAOQTG6R.js} +18 -18
  24. package/dist/{captureFile-Y2ZMB7HK.js → captureFile-P4BDKVJH.js} +2 -2
  25. package/dist/{catalog-GW45OWKU.js → catalog-TUZGNHN6.js} +18 -17
  26. package/dist/{catch-up-YKJQ4IYC.js → catch-up-GMUF3JXI.js} +11 -11
  27. package/dist/{check-7QTKMPGA.js → check-CHCV573Z.js} +51 -51
  28. package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-JJZN37WT.js} +19 -19
  29. package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-SK7GFN7U.js} +44 -44
  30. package/dist/{chunk-X6DWLN55.js → chunk-2HDVXVUA.js} +8 -4
  31. package/dist/{chunk-JMV63CNH.js → chunk-2JXJQ3ZQ.js} +2 -2
  32. package/dist/{chunk-6BI6URO2.js → chunk-2JZU6DYH.js} +5 -4
  33. package/dist/{chunk-SXOIG6VG.js → chunk-2OP5HU5S.js} +284 -192
  34. package/dist/{chunk-KRWPTZBY.js → chunk-3FQYFVWA.js} +99 -25
  35. package/dist/{chunk-G7NKYELQ.js → chunk-3K4THQHY.js} +4 -4
  36. package/dist/{chunk-SIRYW7SY.js → chunk-3P4OYIBA.js} +2 -2
  37. package/dist/{chunk-WTO4DHBH.js → chunk-3XJ42WUG.js} +1 -1
  38. package/dist/{chunk-XPT4GC6X.js → chunk-45IPAGED.js} +7 -7
  39. package/dist/{chunk-HWMNSWEA.js → chunk-4MVWA7NJ.js} +6 -6
  40. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  41. package/dist/{chunk-6MTSP2XE.js → chunk-4TQS6ZSL.js} +7 -7
  42. package/dist/{chunk-5GXMZIQZ.js → chunk-4WXLBRT5.js} +31 -22
  43. package/dist/{chunk-YIE5FU73.js → chunk-4Y4VYZRO.js} +37 -3
  44. package/dist/{chunk-K72X2YXR.js → chunk-52CUHVEA.js} +4 -4
  45. package/dist/{chunk-TLUDJLBN.js → chunk-55I56MXF.js} +1 -1
  46. package/dist/{chunk-2T7EDEKE.js → chunk-5QPYUTV3.js} +8 -8
  47. package/dist/{chunk-WLNQAJQC.js → chunk-5SXAEHZT.js} +2 -2
  48. package/dist/{chunk-77UB5EHM.js → chunk-5WK76INI.js} +1 -1
  49. package/dist/{chunk-5VN7ZXJR.js → chunk-5ZTB6QIJ.js} +3 -3
  50. package/dist/{chunk-ZIYXPDKY.js → chunk-65PFUPLX.js} +1 -1
  51. package/dist/{chunk-LHFBKUVY.js → chunk-6FP6HBG4.js} +2 -2
  52. package/dist/{chunk-YCTWMO3G.js → chunk-6HG3XABE.js} +1 -1
  53. package/dist/{chunk-LJMTEZOP.js → chunk-6K5KVYOQ.js} +16 -16
  54. package/dist/{chunk-34S7GYVK.js → chunk-6OYPVALW.js} +15 -8
  55. package/dist/{chunk-G2XAFJ2B.js → chunk-74PKHC3W.js} +1 -1
  56. package/dist/{chunk-N6Y645MX.js → chunk-7C6K5WFB.js} +1 -1
  57. package/dist/{chunk-M6FNCANA.js → chunk-7E5HPNMD.js} +1 -1
  58. package/dist/{chunk-CHJGVW5W.js → chunk-7YBRRU5W.js} +4 -11
  59. package/dist/{chunk-2NMBD5AH.js → chunk-7YOJPNDT.js} +1 -1
  60. package/dist/{chunk-GCJRV7LU.js → chunk-A2YCAF35.js} +23 -37
  61. package/dist/{chunk-E5S4QMX7.js → chunk-AG6L5CUE.js} +2 -2
  62. package/dist/{chunk-SVI2CJ6R.js → chunk-AOTAYP5E.js} +1 -1
  63. package/dist/{chunk-VB3JZKMN.js → chunk-ASORF7UJ.js} +31 -10
  64. package/dist/{chunk-XB7HE2R5.js → chunk-AUM475MS.js} +3 -3
  65. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  66. package/dist/{chunk-I3QXWJ7V.js → chunk-BDFD3C3V.js} +7 -7
  67. package/dist/{chunk-YAS347ZS.js → chunk-BLII22FU.js} +1 -1
  68. package/dist/{chunk-CMYUPVMI.js → chunk-BX4GM3IV.js} +2 -2
  69. package/dist/{chunk-D7NNNL2K.js → chunk-BZPRG5N5.js} +18 -18
  70. package/dist/{chunk-H4C3P2KV.js → chunk-C3TYMGWE.js} +3 -3
  71. package/dist/{chunk-6NNLDCX4.js → chunk-C62LSZVJ.js} +1 -1
  72. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  73. package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
  74. package/dist/{chunk-GBIASKIH.js → chunk-DH34XRVW.js} +1 -1
  75. package/dist/{chunk-6SNGKC6B.js → chunk-DLBFLOEU.js} +1 -1
  76. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  77. package/dist/{chunk-Z6X64P6C.js → chunk-DTM7HGP4.js} +6 -6
  78. package/dist/{chunk-2W4VQ3YZ.js → chunk-E53F4CP6.js} +2 -2
  79. package/dist/{chunk-3R2X2VKB.js → chunk-ECKXTBRB.js} +6 -4
  80. package/dist/{chunk-RCRUWNQ4.js → chunk-EDQF36I7.js} +3 -3
  81. package/dist/{chunk-GWSCUFGL.js → chunk-EWBLIDHD.js} +11 -9
  82. package/dist/{chunk-BMDABBHG.js → chunk-FEWHHDFA.js} +5 -17
  83. package/dist/{chunk-EBG5RCPM.js → chunk-FILLRGVO.js} +4 -4
  84. package/dist/{chunk-3HT3UGF2.js → chunk-FRY73NRV.js} +1 -1
  85. package/dist/{chunk-KAG5KXNO.js → chunk-FS4XHCSU.js} +1 -1
  86. package/dist/{chunk-GOMTMQRT.js → chunk-G6ME77PU.js} +1 -1
  87. package/dist/{chunk-GTHRXU37.js → chunk-GJB5VR44.js} +18 -18
  88. package/dist/{chunk-G6JLFSII.js → chunk-GXGGPZXD.js} +4 -4
  89. package/dist/chunk-H6323NVP.js +453 -0
  90. package/dist/chunk-HYTD4CIO.js +57 -0
  91. package/dist/{chunk-P7TCIUP2.js → chunk-I2GYLBJJ.js} +4 -4
  92. package/dist/{chunk-BA3EQ2KL.js → chunk-IVMYWHFE.js} +3 -3
  93. package/dist/{chunk-HDCVU64B.js → chunk-IX6BFRED.js} +3 -2
  94. package/dist/{chunk-W3HNLDK6.js → chunk-JJUVQYXL.js} +2 -2
  95. package/dist/{chunk-HXQDDCGY.js → chunk-JQATOGQQ.js} +2 -2
  96. package/dist/{chunk-2Z42EUHG.js → chunk-JVDYIUFD.js} +2 -2
  97. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  98. package/dist/{chunk-SFPIVVUE.js → chunk-K4TEEYGN.js} +2 -2
  99. package/dist/{chunk-KFXHBP2E.js → chunk-K5BPLZOP.js} +2 -2
  100. package/dist/{chunk-H7AJLEBR.js → chunk-K6EOKQ6J.js} +8 -8
  101. package/dist/{chunk-Y3YHDU7T.js → chunk-KCL77FXI.js} +1 -1
  102. package/dist/{chunk-PXDRW3QN.js → chunk-LB6VJTM4.js} +1 -1
  103. package/dist/{chunk-EXW2LV4K.js → chunk-LCQT4S43.js} +248 -62
  104. package/dist/chunk-M3BJEZ7E.js +152 -0
  105. package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
  106. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  107. package/dist/{chunk-M6LAGO6O.js → chunk-NAKQS3EJ.js} +3 -3
  108. package/dist/{chunk-TTSLKH63.js → chunk-NMMPHHN7.js} +3 -3
  109. package/dist/{chunk-UWMOMAYI.js → chunk-O2S5HR7Y.js} +49 -12
  110. package/dist/{chunk-D6BV6TTI.js → chunk-OKN7E77Z.js} +1 -1
  111. package/dist/{chunk-XH6LGDIB.js → chunk-PDE6XAIJ.js} +4 -4
  112. package/dist/{chunk-4FTJE22M.js → chunk-PNBWAA3E.js} +2 -2
  113. package/dist/{chunk-AOQRVS63.js → chunk-PVHNBJCI.js} +9 -7
  114. package/dist/{chunk-3PHCFSPD.js → chunk-PWSTB75B.js} +2 -2
  115. package/dist/{chunk-PVSRPNIV.js → chunk-PXWPBLEN.js} +2 -2
  116. package/dist/{chunk-IEEIPTDW.js → chunk-PYZVKGW5.js} +1 -1
  117. package/dist/{chunk-5FFYMVRD.js → chunk-Q2G4ERQU.js} +2 -2
  118. package/dist/{chunk-YMIEJZB6.js → chunk-QDSALYDV.js} +4 -4
  119. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  120. package/dist/{chunk-XDRSEU2I.js → chunk-R3C62AP3.js} +4 -4
  121. package/dist/{chunk-L72MPEM2.js → chunk-RJJ5NVSQ.js} +1 -1
  122. package/dist/{chunk-KXOKZJBZ.js → chunk-RSQTFDMS.js} +13 -13
  123. package/dist/{chunk-6RFCS4IU.js → chunk-RYJXT2AS.js} +9 -7
  124. package/dist/{chunk-GJUL3PRV.js → chunk-S3HTROSO.js} +3 -3
  125. package/dist/{chunk-AZ2QJETV.js → chunk-SAIPA3QY.js} +1 -1
  126. package/dist/{chunk-4CSZZXL6.js → chunk-SDBFTY6V.js} +3 -3
  127. package/dist/{chunk-TZH6HNZH.js → chunk-SG4OW2HV.js} +2 -2
  128. package/dist/{chunk-AWT5FHTN.js → chunk-T4YI2YLF.js} +1 -1
  129. package/dist/{chunk-TVQNABOI.js → chunk-T7O62YTY.js} +1 -1
  130. package/dist/chunk-TDOJW7Z2.js +5053 -0
  131. package/dist/{chunk-3367VNGK.js → chunk-TGGYHFTP.js} +2 -2
  132. package/dist/{chunk-NNOAOQLT.js → chunk-TGK7LUEV.js} +2 -2
  133. package/dist/chunk-TLU5DPES.js +560 -0
  134. package/dist/{chunk-LXIEKLAC.js → chunk-TOLY2QK2.js} +6 -6
  135. package/dist/chunk-UFKWSLJ5.js +392 -0
  136. package/dist/{chunk-PXY3JZP2.js → chunk-UGWY7PFQ.js} +2 -2
  137. package/dist/{chunk-REJ4NIBY.js → chunk-VJSKNQTM.js} +1 -1
  138. package/dist/{chunk-NXSKZE3C.js → chunk-VW35U2LJ.js} +2 -2
  139. package/dist/{chunk-JZIEZCQM.js → chunk-VZO3BUTW.js} +5 -12
  140. package/dist/{chunk-TFBPCJPG.js → chunk-W6AXNWGE.js} +1 -1
  141. package/dist/{chunk-262ADJJN.js → chunk-WC2XQ4NR.js} +1 -1
  142. package/dist/{chunk-WXOOAAT4.js → chunk-WLB2D2OJ.js} +36 -4
  143. package/dist/{chunk-P5E3RHW3.js → chunk-WWT32C2M.js} +3 -3
  144. package/dist/{chunk-ADP2GIBS.js → chunk-XEUTASNL.js} +2 -2
  145. package/dist/{chunk-MYFAVVA6.js → chunk-YCXNWQ3B.js} +32 -32
  146. package/dist/{chunk-JHX76QFC.js → chunk-YMTLKSXO.js} +1 -1
  147. package/dist/{chunk-KG3TONXU.js → chunk-Z222HDGC.js} +9 -9
  148. package/dist/chunk-Z3ZLN5VR.js +3890 -0
  149. package/dist/{chunk-EJPWGGPK.js → chunk-Z64I7KJZ.js} +5340 -5087
  150. package/dist/{chunk-LBQQNNRC.js → chunk-ZWLFWYHR.js} +1 -1
  151. package/dist/{clean-MJBET4EN.js → clean-N7RLS5LN.js} +29 -29
  152. package/dist/cli.js +70 -68
  153. package/dist/{cloud-Z4Q76MLS.js → cloud-4PO7BA26.js} +8 -7
  154. package/dist/{cloud-WEDQYHZE.js → cloud-W3DHH6EB.js} +4 -4
  155. package/dist/{cloudrun-2KGSRAKA.js → cloudrun-YIAPIPOG.js} +7 -7
  156. package/dist/{compare-MJKWQOD7.js → compare-GCWIIUGY.js} +43 -43
  157. package/dist/{compiler-ETXRTUQC.js → compiler-L3BJI43E.js} +8 -6
  158. package/dist/{component-PZGKEJ6L.js → component-C4VYDMZ4.js} +3 -3
  159. package/dist/{compositions-N3FEEWH7.js → compositions-5P4BZQJA.js} +16 -16
  160. package/dist/{contactSheet-HZMP42FZ.js → contactSheet-ROMTQQ6Y.js} +3 -3
  161. package/dist/contract/LICENSE-Unicode.txt +39 -0
  162. package/dist/contract/path-policy.json +311 -0
  163. package/dist/contract/unicode-15.1.0.json +6179 -0
  164. package/dist/{curve-MWABBM7Q.js → curve-IMXKUBAO.js} +15 -15
  165. package/dist/{cuts-BQFSSNY7.js → cuts-PRBLX5HH.js} +16 -16
  166. package/dist/{delete-HPHGJABK.js → delete-QYWDRFO3.js} +11 -10
  167. package/dist/{deploy-JY2QOB5F.js → deploy-DGEPSTOJ.js} +7 -7
  168. package/dist/{describeProject-S6AGYZWL.js → describeProject-WS4TR7VF.js} +11 -11
  169. package/dist/{destroy-AZK7J4IR.js → destroy-2KSDD4KU.js} +6 -6
  170. package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-D3HTAAN2.js} +3 -3
  171. package/dist/{diff-XDNFCAU4.js → diff-AAWRGZLX.js} +47 -46
  172. package/dist/{dist-6EE3Y4M7.js → dist-DJQRHSKZ.js} +4 -4
  173. package/dist/{dist-EYEYDD4F.js → dist-GJSMSEEL.js} +22 -18
  174. package/dist/{dist-TYGDYK56.js → dist-V2TLDLQL.js} +3 -3
  175. package/dist/{doctor-6IRSMKZD.js → doctor-CARXZUFN.js} +18 -18
  176. package/dist/{energy-VCJ2FJEF.js → energy-VMNGG2ND.js} +16 -16
  177. package/dist/{events-DNTIMCUM.js → events-4XIJRQIJ.js} +18 -18
  178. package/dist/{events-QQYBD7JM.js → events-LOPLHMOT.js} +4 -4
  179. package/dist/{events-M6A7BT3V.js → events-XX3DYSU4.js} +8 -8
  180. package/dist/execute-U7JKJERV.js +109 -0
  181. package/dist/{extract-X3IVXYHX.js → extract-KYFUTYDD.js} +19 -19
  182. package/dist/{face-MZHXKBDB.js → face-VQGUHRQL.js} +18 -18
  183. package/dist/{feedback-TAMGYFUO.js → feedback-UPWYWOQ3.js} +19 -18
  184. package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-RUOPT3JH.js} +10 -10
  185. package/dist/{figma-WMD7AR2S.js → figma-TO57RICW.js} +3 -3
  186. package/dist/fontLocalizeCli.js +16 -16
  187. package/dist/{frames-OU2UOLBU.js → frames-4Y3X474I.js} +18 -18
  188. package/dist/{generate-6F6QEFXW.js → generate-BPID6U7D.js} +32 -31
  189. package/dist/{get-VVDO7DXG.js → get-JIJ46VI5.js} +11 -10
  190. package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-5ZJNSR7D.js} +10 -10
  191. package/dist/{grade-compare-O6LY2U73.js → grade-compare-YTBW7C65.js} +44 -44
  192. package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-OL7KF7SH.js} +11 -11
  193. package/dist/{help-XLSTTDHR.js → help-QPV26QI5.js} +2 -1
  194. package/dist/{history-DBCCWBDG.js → history-7UVGTZT3.js} +14 -14
  195. package/dist/hyperframe.manifest.json +1 -1
  196. package/dist/hyperframe.runtime.iife.js +61 -61
  197. package/dist/hyperframes-player.global.js +1 -1
  198. package/dist/{info-E46BWAQ7.js → info-2VFXR7LJ.js} +18 -18
  199. package/dist/{init-23TG5W7S.js → init-JZ7CJQJE.js} +35 -35
  200. package/dist/{ink-6UFSNJRW.js → ink-SS7XOD7Y.js} +16 -16
  201. package/dist/{inspect-RKI6XACH.js → inspect-D5MBKDZZ.js} +41 -41
  202. package/dist/{installer-JWPK75BR.js → installer-UNC4BAFO.js} +7 -7
  203. package/dist/{keyframes-J65V5A2G.js → keyframes-7T2CVOM6.js} +14 -12
  204. package/dist/{lambda-RZSXXBJU.js → lambda-QVJFVSXL.js} +16 -16
  205. package/dist/{layout-RJQUOYWB.js → layout-5DF7VFWS.js} +41 -41
  206. package/dist/{lint-4TUHKKA2.js → lint-EWJHJKAI.js} +14 -14
  207. package/dist/{lintProject-R6RTBSCZ.js → lintProject-KBJU3L4C.js} +4 -4
  208. package/dist/{list-HOD2N4VS.js → list-DDLH5ZG5.js} +13 -12
  209. package/dist/{localPage-TC4NC3VL.js → localPage-MHAXFUGI.js} +11 -11
  210. package/dist/{login-NTOS3HKD.js → login-BJ4QUZT4.js} +8 -7
  211. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  212. package/dist/{look-GC63E2I7.js → look-HNK2K33N.js} +16 -16
  213. package/dist/{manager-FICBET24.js → manager-FFLFDJZ6.js} +11 -11
  214. package/dist/{manager-IAXYSRG5.js → manager-VLO3FZC4.js} +2 -1
  215. package/dist/{measure-WTQCSQ55.js → measure-SE346MGF.js} +11 -11
  216. package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-KYPDRIBT.js} +18 -18
  217. package/dist/{media-use-K75FDXJ3.js → media-use-OJZHSNTK.js} +21 -10
  218. package/dist/{models-JKOA542M.js → models-KWSHPDZ5.js} +15 -15
  219. package/dist/{motionShot-A3TYKTQU.js → motionShot-HEROABIE.js} +24 -24
  220. package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-ZD5W37ZO.js} +14 -14
  221. package/dist/oauth-SAVP2YM4.js +40 -0
  222. package/dist/{open-F6GI4TRA.js → open-7B6HT4EX.js} +19 -19
  223. package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-5AKE7TBH.js} +19 -19
  224. package/dist/{pipeline-7P7LGGQG.js → pipeline-UTVSWC4X.js} +13 -13
  225. package/dist/plan-SQ63IXQC.js +88 -0
  226. package/dist/{play-DYOZLKWX.js → play-NYBFE3GW.js} +32 -32
  227. package/dist/{preflight-VM4HSRBY.js → preflight-T23WHZP3.js} +12 -12
  228. package/dist/{present-IINIEZJC.js → present-FX22552Q.js} +26 -26
  229. package/dist/{preview-NJO2UXWJ.js → preview-ULBNMDXD.js} +63 -39
  230. package/dist/{probe-LQQHFX5Q.js → probe-62Z5C6VC.js} +16 -16
  231. package/dist/{producer-LH2SZHJ2.js → producer-X3KFL4QM.js} +1 -1
  232. package/dist/{projectConfig-BLACFLUW.js → projectConfig-JQ4IDYTU.js} +10 -10
  233. package/dist/{publication-NFF2BXIE.js → publication-YNIJIR6O.js} +5 -5
  234. package/dist/{publish-JST5Y4UR.js → publish-7TIGC7RV.js} +91 -31
  235. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  236. package/dist/{remove-background-WUBESLWN.js → remove-background-F3BD6WXD.js} +14 -14
  237. package/dist/{render-DA4V7CEE.js → render-BL6CAORF.js} +6 -6
  238. package/dist/{render-4KWUUC5H.js → render-CDWBVWJP.js} +91 -957
  239. package/dist/{render-R4VNR4E2.js → render-EOQOD2TJ.js} +54 -53
  240. package/dist/{render-batch-JMPG4RLT.js → render-batch-PDY2PXUZ.js} +6 -6
  241. package/dist/renderSetupWorker.js +5 -5
  242. package/dist/{resolver-PNIFIDIE.js → resolver-VBAVCFEP.js} +7 -7
  243. package/dist/{reverse-4NI7D2C3.js → reverse-3E6HUX5S.js} +1 -1
  244. package/dist/{run-FWBIBLYE.js → run-77Z3DLIP.js} +8 -7
  245. package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-XWWCRLGM.js} +13 -13
  246. package/dist/service-LJZQKQT6.js +68 -0
  247. package/dist/share-2CNP22KN.js +274 -0
  248. package/dist/{sherpa-W3BMN67E.js → sherpa-NPTMMQHQ.js} +18 -18
  249. package/dist/sherpaWorker.js +2 -1
  250. package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
  251. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +20 -3
  252. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +61 -3
  253. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  254. package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
  255. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  256. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
  257. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
  258. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +25 -6
  259. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
  260. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
  261. package/dist/skills/media-use/references/audio.md +2 -0
  262. package/dist/skills/media-use/references/operations.md +2 -1
  263. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
  264. package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
  265. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
  266. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +42 -18
  267. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
  268. package/dist/{skills-KQQVUFGO.js → skills-7MQBUOOX.js} +11 -11
  269. package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-JAUXRXRH.js} +4 -4
  270. package/dist/{snapshot-VIEJQAUB.js → snapshot-D7DROQPF.js} +61 -61
  271. package/dist/{src-HHPRCLEW.js → src-26DWEOAT.js} +11 -9
  272. package/dist/{src-MQU5F7GJ.js → src-LJIVCW6M.js} +15 -15
  273. package/dist/{start-ZBNNVFMU.js → start-DF3U2VIG.js} +30 -29
  274. package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-NYH6MQHZ.js} +25 -25
  275. package/dist/{status-RBZJYT7T.js → status-5Q43GUYF.js} +26 -23
  276. package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-OdIlx7W3.js} +1 -1
  277. package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-XtPxZL3k.js} +1 -1
  278. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  279. package/dist/studio/assets/{index-D1l7izdf.js → index-DTU1D-zj.js} +166 -166
  280. package/dist/studio/assets/{index-DFRbcd5J.js → index-DWZWPFkU.js} +1 -1
  281. package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-NVr8gRm5.js} +1 -1
  282. package/dist/studio/index.html +2 -2
  283. package/dist/{studio-api-EPZGLIWW.js → studio-api-ZYCEQPX2.js} +22 -18
  284. package/dist/{studioServer-YFQQ2ESJ.js → studioServer-W4RX3B7S.js} +451 -71
  285. package/dist/{sync-FRT55PVW.js → sync-LLH2GSSC.js} +16 -16
  286. package/dist/{synthesize-FR5KPBRP.js → synthesize-4A5ENXNO.js} +4 -3
  287. package/dist/{telemetry-HAPPFR7P.js → telemetry-RIQIM2PH.js} +8 -8
  288. package/dist/{templates-2IHYIWMA.js → templates-4HVTWNKO.js} +22 -21
  289. package/dist/{timeline-AY2F7BJF.js → timeline-ITIMTT27.js} +25 -25
  290. package/dist/{tokens-B3G257V3.js → tokens-ABTBM6UA.js} +2 -2
  291. package/dist/{transcribe-RJCILGPA.js → transcribe-6BA2MP2Y.js} +37 -36
  292. package/dist/{transcribe-EGQD32PT.js → transcribe-6LDBHZCZ.js} +14 -14
  293. package/dist/{tts-ZE776B4I.js → tts-P77F523Z.js} +1 -1
  294. package/dist/{update-XTFIGQKW.js → update-ODXFCK36.js} +13 -13
  295. package/dist/{updateCheck-M6YC52A4.js → updateCheck-E4U776B4.js} +5 -3
  296. package/dist/{upgrade-AKLIZKAO.js → upgrade-LSHVYMLH.js} +5 -5
  297. package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-PWQ2LDLE.js} +9 -9
  298. package/dist/{validate-YWSXJL54.js → validate-JHETNNBN.js} +33 -33
  299. package/dist/{video-I5DDNK3Y.js → video-D2D5YCDU.js} +12 -12
  300. package/dist/{voices-IBMJU73H.js → voices-34FMTOIX.js} +29 -28
  301. package/dist/warmCheck.js +51 -51
  302. package/package.json +2 -1
  303. package/dist/chunk-YAZQBB2S.js +0 -5049
@@ -0,0 +1,453 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ ReviewFailed,
9
+ addVersion,
10
+ bindShareHost,
11
+ createShareAccess,
12
+ latestShareRender,
13
+ mkdirInside,
14
+ observeShareMutation,
15
+ pendingReviewExport,
16
+ prepareCliShareSource,
17
+ prepareShareRender,
18
+ projectFingerprint,
19
+ readJsonRecord,
20
+ refreshReviewExport,
21
+ reviewClient,
22
+ reviewRecord,
23
+ reviewStatus,
24
+ reviewUploadOrigins,
25
+ reviewVersion,
26
+ rm,
27
+ setReviewAccess,
28
+ setReviewSite,
29
+ shareForReview,
30
+ shareSite,
31
+ signedInRequest,
32
+ turnOffReviewLink,
33
+ uncheckedSource,
34
+ withProjectShareLock,
35
+ writeJsonAtomic
36
+ } from "./chunk-Z3ZLN5VR.js";
37
+ import {
38
+ apiBaseUrl
39
+ } from "./chunk-BAWGEGKD.js";
40
+ import {
41
+ findFFprobe
42
+ } from "./chunk-Q2G4ERQU.js";
43
+ import {
44
+ defaultClientId,
45
+ oauthEnvironment,
46
+ resolveClientId,
47
+ tokenEndpoint
48
+ } from "./chunk-DMW5SSUN.js";
49
+ import {
50
+ CliUsageError
51
+ } from "./chunk-66W5IWLO.js";
52
+
53
+ // src/share/activity.ts
54
+ import { hostname } from "os";
55
+ import { join } from "path";
56
+ var phases = [
57
+ "preparing",
58
+ "rendering",
59
+ "uploading_source",
60
+ "uploading_video",
61
+ "checking"
62
+ ];
63
+ var fileFor = (dir) => join(dir, ".hyperframes", "share-activity.json");
64
+ async function readShareActivity(dir) {
65
+ const value = await readJsonRecord(fileFor(dir));
66
+ if (!value || value.hostname !== hostname() || typeof value.pid !== "number" || !Number.isSafeInteger(value.pid) || value.pid <= 0)
67
+ return null;
68
+ const step = phases.find((step2) => step2 === value.step);
69
+ if (!step || typeof value.startedAt !== "string" || typeof value.updatedAt !== "number" || Date.now() - value.updatedAt > 6e4)
70
+ return null;
71
+ try {
72
+ process.kill(value.pid, 0);
73
+ } catch {
74
+ return null;
75
+ }
76
+ return { step, startedAt: value.startedAt };
77
+ }
78
+ async function withShareActivity(dir, run) {
79
+ return withProjectShareLock(
80
+ dir,
81
+ "operation",
82
+ async () => {
83
+ await mkdirInside(dir, ".hyperframes");
84
+ const startedAt = (/* @__PURE__ */ new Date()).toISOString();
85
+ let step = "preparing";
86
+ let pending = Promise.resolve();
87
+ const phase = (next) => {
88
+ step = next;
89
+ pending = writeJsonAtomic(fileFor(dir), {
90
+ step,
91
+ startedAt,
92
+ updatedAt: Date.now(),
93
+ pid: process.pid,
94
+ hostname: hostname()
95
+ });
96
+ void pending.catch(() => {
97
+ });
98
+ return pending;
99
+ };
100
+ const heartbeat = setInterval(() => {
101
+ void phase(step);
102
+ }, 1e4);
103
+ heartbeat.unref();
104
+ try {
105
+ await phase("preparing");
106
+ return await run(phase);
107
+ } finally {
108
+ clearInterval(heartbeat);
109
+ await pending.catch(() => {
110
+ });
111
+ await rm(fileFor(dir), { force: true });
112
+ }
113
+ },
114
+ { timeoutMs: 0 }
115
+ );
116
+ }
117
+
118
+ // src/share/service.ts
119
+ import { basename as basename2 } from "path";
120
+
121
+ // src/share/host.ts
122
+ import { basename } from "path";
123
+ import { realpathSync } from "fs";
124
+
125
+ // src/share/uploadOrigins.ts
126
+ var PRODUCTION_UPLOAD_ORIGINS = [
127
+ "https://heygen-hyperframes-reviews-prod-767398024897-us-east-2.s3.amazonaws.com",
128
+ "https://heygen-hyperframes-reviews-prod-767398024897-us-east-2.s3.us-east-2.amazonaws.com",
129
+ "https://hyperframes-composition-sync-prod.s3.us-east-2.amazonaws.com"
130
+ ];
131
+ function cliReviewUploadOrigins() {
132
+ const override = process.env.HYPERFRAMES_REVIEW_UPLOAD_ORIGINS;
133
+ if (override !== void 0)
134
+ return override.split(",").map((origin) => origin.trim()).filter(Boolean);
135
+ const standardProduction = oauthEnvironment() === "prod" && apiBaseUrl() === "https://api.heygen.com" && tokenEndpoint() === "https://api2.heygen.com/v1/oauth/token" && resolveClientId() === defaultClientId();
136
+ return standardProduction ? PRODUCTION_UPLOAD_ORIGINS : [];
137
+ }
138
+
139
+ // src/share/host.ts
140
+ var projects = /* @__PURE__ */ new Set();
141
+ function isStorageOrigin(origin) {
142
+ if (!URL.canParse(origin)) return false;
143
+ const url = new URL(origin);
144
+ const loopback = url.protocol === "http:" && url.hostname === "127.0.0.1";
145
+ return url.origin === origin && !url.hostname.includes("*") && (url.protocol === "https:" || loopback);
146
+ }
147
+ function assertReviewUploadStorage() {
148
+ const origins = reviewUploadOrigins().filter(Boolean);
149
+ if (origins.length === 0 || !origins.every(isStorageOrigin))
150
+ throw new ReviewFailed(503, "review_upload_origins_required");
151
+ }
152
+ function bindCliShareProject(path) {
153
+ const dir = realpathSync(path);
154
+ projects.add(dir);
155
+ bindShareHost({
156
+ reviewUploadOrigins: cliReviewUploadOrigins(),
157
+ normalize: realpathSync,
158
+ assertOpenProject: (path2) => {
159
+ const normalized = realpathSync(path2);
160
+ if (!projects.has(normalized)) throw new Error("This project is not open for sharing.");
161
+ return normalized;
162
+ },
163
+ resolveOpenProjectByPath: (path2) => {
164
+ const normalized = realpathSync(path2);
165
+ return projects.has(normalized) ? { id: normalized, dir: normalized } : null;
166
+ },
167
+ listOpenProjects: () => [...projects].map((dir2) => ({ dir: dir2 })),
168
+ homeName: basename,
169
+ latestExportFile: latestShareRender,
170
+ projectFingerprint,
171
+ signedInRequest: (deps) => signedInRequest({
172
+ ...deps,
173
+ headers: { "X-HeyGen-Source": "cli", "X-HeyGen-Client-Source": "hyperframes" }
174
+ }),
175
+ ffBinary: () => {
176
+ const binary = findFFprobe();
177
+ if (!binary) throw new Error("Install FFmpeg to prepare a shared video.");
178
+ return binary;
179
+ },
180
+ channelSite: "https://hyperframes.dev",
181
+ signinSites: ["https://hyperframes.dev", "https://dev.hyperframes.dev"]
182
+ });
183
+ setReviewSite(shareSite());
184
+ return dir;
185
+ }
186
+
187
+ // src/share/service.ts
188
+ function linkState(share, ready, failed) {
189
+ if (!share) return "not_shared";
190
+ if (failed) return "failed";
191
+ if (!share.url) return "link_off";
192
+ return ready ? "ready" : "processing";
193
+ }
194
+ async function refreshShare(dir, client, expectedProjectId, onRecovery) {
195
+ const share = await reviewStatus({ projectPath: dir, client });
196
+ if (expectedProjectId) assertUploadProject(share, expectedProjectId);
197
+ if (onRecovery) onRecovery(isProcessing(await pendingReviewExport(dir), share));
198
+ if (share) await refreshReviewExport(dir, client);
199
+ return share;
200
+ }
201
+ async function readStatus(dir, client, expectedProjectId, onRecovery) {
202
+ const share = await refreshShare(dir, client, expectedProjectId, onRecovery);
203
+ const project = await readProject(share, client);
204
+ const latest = project?.latest_ready_version_id ?? null;
205
+ const version = await reviewVersion(dir, { latestReadyVersionId: latest });
206
+ const pending = await pendingReviewExport(dir);
207
+ const activeUrl = share?.url ?? null;
208
+ const processing = isProcessing(pending, share);
209
+ const failed = hasFailedVersion(version);
210
+ const ready = Boolean(activeUrl && latest && !processing && !failed);
211
+ return {
212
+ share,
213
+ version,
214
+ pending,
215
+ state: linkState(share, ready, failed),
216
+ ready,
217
+ source: uncheckedSource(),
218
+ ...statusLinks(activeUrl, ready, processing || failed, project)
219
+ };
220
+ }
221
+ async function readProject(share, client) {
222
+ return share?.projectId ? client.project(share.projectId) : null;
223
+ }
224
+ function statusLinks(url, ready, processing, project) {
225
+ return {
226
+ url: ready ? url : null,
227
+ previousUrl: processing && project?.latest_ready_version_id ? url : null,
228
+ manageUrl: project?.authenticated_review_url ?? `${shareSite() === "https://hyperframes.dev" ? "https://hyperframes.studio" : shareSite()}/shares`
229
+ };
230
+ }
231
+ function isProcessing(pending, share) {
232
+ return Boolean(pending && pending.projectId === share?.projectId);
233
+ }
234
+ function selectSpace(spaces, id) {
235
+ if (id) return spaces.find((space) => space.space_id === id);
236
+ return spaces.find((space) => space.bound) ?? spaces.find((space) => space.kind === "personal");
237
+ }
238
+ function assertUploadProject(share, expectedId) {
239
+ const id = share?.projectId;
240
+ if (!id || expectedId && id !== expectedId)
241
+ throw new ReviewFailed(409, "review_binding_changed");
242
+ }
243
+ function assertExistingIntent(share, input) {
244
+ if (!share) {
245
+ if (input.action === "update") throw new ReviewFailed(404, "not_shared");
246
+ return;
247
+ }
248
+ if (input.space && share.space?.id !== input.space)
249
+ throw new ReviewFailed(409, "workspace_mismatch");
250
+ if (input.audience && share.access !== input.audience)
251
+ throw new ReviewFailed(409, "manage_existing_audience");
252
+ }
253
+ function retrievesExisting(current, input) {
254
+ return current.share && input.action === "share" && (current.ready || current.state === "link_off" || current.version.last && current.state !== "processing");
255
+ }
256
+ async function preflightFirst(dir, client, input) {
257
+ const audience = input.audience;
258
+ if (!audience)
259
+ throw new CliUsageError(
260
+ "Choose an audience with --public, --team, --invite-only or --private.",
261
+ { code: "audience_required" }
262
+ );
263
+ const [spaces, record] = await Promise.all([client.spaces(), reviewRecord(dir)]);
264
+ const space = selectSpace(spaces, registrationSpace(record, input.space));
265
+ if (!space || !space.can_create_review) throw new ReviewFailed(403, "workspace_cannot_share");
266
+ assertQuota(record, space);
267
+ assertAudience(audience, space);
268
+ return space.space_id;
269
+ }
270
+ function registrationSpace(record, requested) {
271
+ if (!record?.spaceId) return requested;
272
+ if (!requested || requested === record.spaceId) return record.spaceId;
273
+ if (record.registration || record.projectId) throw new ReviewFailed(409, "workspace_mismatch");
274
+ return requested;
275
+ }
276
+ function assertQuota(record, space) {
277
+ if (record?.registration || record?.projectId) return;
278
+ if (space.review_entitlements?.can_register_project === false)
279
+ throw new ReviewFailed(402, "review_project_limit_reached");
280
+ }
281
+ function assertAudience(audience, space) {
282
+ if (audience === "private") return;
283
+ if (!space.review_entitlements?.allowed_collaborative_access_modes.includes(audience))
284
+ throw new ReviewFailed(402, "review_subscription_required");
285
+ }
286
+ function assertResumeSource(current, input) {
287
+ if (current.share && current.pending && input.action === "share" && current.version.source !== "ready")
288
+ throw new Error(
289
+ "The shared video is unfinished and local edits have changed. Run hyperframes share --update to explicitly upload the current project."
290
+ );
291
+ }
292
+ function createShareService(projectPath, progress = () => {
293
+ }, options = {}) {
294
+ const dir = bindCliShareProject(projectPath);
295
+ const auth = createShareAccess(options.pinIdentity);
296
+ const client = reviewClient(auth);
297
+ const status = async (expectedProjectId) => {
298
+ await auth.access();
299
+ const current = await readStatus(dir, client, expectedProjectId);
300
+ const activity = expectedProjectId ? null : await readShareActivity(dir);
301
+ return activity ? {
302
+ ...current,
303
+ activity,
304
+ state: activity.step,
305
+ ready: false,
306
+ previousUrl: current.url ?? current.previousUrl,
307
+ url: null
308
+ } : current;
309
+ };
310
+ const upload = async (input, projectId, sources, attempt, phase) => {
311
+ const end = Date.now() + (input.waitSeconds ?? 300) * 1e3;
312
+ let added = false;
313
+ const failure = await addVersion({
314
+ projectPath: dir,
315
+ projectId,
316
+ title: basename2(dir),
317
+ client,
318
+ onProgress: (value) => {
319
+ attempt.progress(value);
320
+ progress(value);
321
+ if (value?.step === "checking") void phase("checking");
322
+ },
323
+ allowPending: true,
324
+ ...sources.filesForExport && { filesForExport: sources.filesForExport },
325
+ requireSource: sources.requireSource,
326
+ omitSource: sources.source.at === "video_only",
327
+ onAdded: () => {
328
+ added = true;
329
+ },
330
+ open: () => Date.now() < end
331
+ });
332
+ if (failure) throw new Error(failure);
333
+ const result = { ...await status(projectId), source: sources.source };
334
+ if (result.version.failure) throw new Error(result.version.failure);
335
+ if (!added && !result.version.last?.current) {
336
+ attempt.complete(false, added);
337
+ return { ...result, state: "processing", ready: false, url: null };
338
+ }
339
+ attempt.complete(result.ready, added);
340
+ return {
341
+ ...result,
342
+ upToDate: isUnchangedUpdate(input, added, result),
343
+ updated: input.action === "update" && added
344
+ };
345
+ };
346
+ const uploadTarget = async (current, input, space) => {
347
+ const share = current ? await reviewStatus({ projectPath: dir, client }) : await shareForReview({
348
+ projectPath: dir,
349
+ title: basename2(dir),
350
+ client,
351
+ spaceId: space,
352
+ audience: input.audience
353
+ });
354
+ assertUploadProject(share, current?.projectId);
355
+ if (share.takedown) throw new ReviewFailed(409, "moderation_hold");
356
+ assertExistingIntent(share, {
357
+ ...input,
358
+ space: input.space ?? space,
359
+ audience: input.audience ?? current?.access
360
+ });
361
+ return { projectId: share.projectId, spaceId: share.space?.id, audience: share.access };
362
+ };
363
+ const checkPreparedTarget = async (target) => {
364
+ const share = await reviewStatus({ projectPath: dir, client });
365
+ assertUploadProject(share, target.projectId);
366
+ if (share.takedown) throw new ReviewFailed(409, "moderation_hold");
367
+ assertExistingIntent(share, {
368
+ action: "update",
369
+ space: target.spaceId,
370
+ audience: target.audience
371
+ });
372
+ };
373
+ const mutate = async (input, attempt, phase) => {
374
+ await auth.access();
375
+ attempt.authenticated();
376
+ let current = await readStatus(dir, client, void 0, attempt.recover);
377
+ if (current.share && input.audience && changesAudience(input, current.share)) {
378
+ assertExistingIntent(current.share, { ...input, audience: void 0 });
379
+ const projectId = current.share.projectId;
380
+ await setReviewAccess({ projectPath: dir, client, change: { access: input.audience } });
381
+ current = await readStatus(dir, client, projectId);
382
+ assertExistingIntent(current.share, input);
383
+ attempt.retrieved();
384
+ return current;
385
+ }
386
+ assertExistingIntent(current.share, input);
387
+ if (retrievesExisting(current, input)) {
388
+ attempt.retrieved();
389
+ return current;
390
+ }
391
+ const flags = await client.reviewFlags();
392
+ if (!flags.versionSharing) throw new ReviewFailed(403, "feature_unavailable");
393
+ const space = current.share ? current.share.space?.id : await preflightFirst(dir, client, input);
394
+ assertResumeSource(current, input);
395
+ assertReviewUploadStorage();
396
+ await phase("rendering");
397
+ await prepareShareRender(dir);
398
+ const target = await uploadTarget(current.share, input, space);
399
+ await phase("uploading_source");
400
+ const sources = await prepareSelectedSource(
401
+ dir,
402
+ auth.access,
403
+ target.spaceId,
404
+ input,
405
+ flags.shareFiles
406
+ );
407
+ if (sources.requireSource) await checkPreparedTarget(target);
408
+ await phase("uploading_video");
409
+ return upload(input, target.projectId, sources, attempt, phase);
410
+ };
411
+ return {
412
+ checkSession: (verifyIdentity = false) => auth.access(void 0, verifyIdentity),
413
+ status,
414
+ run: (input) => input.action === "status" || input.action === "manage" ? status() : observeShareMutation(
415
+ input.action,
416
+ options.surface ?? "cli",
417
+ (attempt) => withShareActivity(dir, (phase) => mutate(input, attempt, phase))
418
+ ),
419
+ capabilities: () => client.reviewFlags(),
420
+ spaces: () => client.spaces(),
421
+ setAccess: async (access) => {
422
+ await setReviewAccess({ projectPath: dir, client, change: { access } });
423
+ return status();
424
+ },
425
+ linkOff: async () => {
426
+ await turnOffReviewLink({ projectPath: dir, client });
427
+ return status();
428
+ },
429
+ linkOn: async () => {
430
+ if (!(await status()).share) throw new ReviewFailed(404, "not_shared");
431
+ await shareForReview({ projectPath: dir, title: basename2(dir), client });
432
+ return status();
433
+ }
434
+ };
435
+ }
436
+ function hasFailedVersion(version) {
437
+ return Boolean(version.failure && !version.held);
438
+ }
439
+ function changesAudience(input, share) {
440
+ return input.action === "share" && Boolean(input.audience) && share.access !== input.audience;
441
+ }
442
+ function isUnchangedUpdate(input, added, result) {
443
+ return input.action === "update" && !added && Boolean(result.version.last?.current) && !result.pending;
444
+ }
445
+ async function prepareSelectedSource(dir, access, spaceId, input, shareFiles) {
446
+ if (input.includeSource !== true || input.videoOnly)
447
+ return { source: { at: "video_only", reason: "requested" }, requireSource: false };
448
+ return prepareCliShareSource(dir, access, spaceId, { includeSource: true, shareFiles });
449
+ }
450
+
451
+ export {
452
+ createShareService
453
+ };
@@ -0,0 +1,57 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ ReviewFailed,
9
+ ShareSourceError,
10
+ SourceIgnoreError,
11
+ ownerOf,
12
+ reviewSentence
13
+ } from "./chunk-Z3ZLN5VR.js";
14
+ import {
15
+ isAuthError
16
+ } from "./chunk-DMW5SSUN.js";
17
+ import {
18
+ CliUsageError
19
+ } from "./chunk-66W5IWLO.js";
20
+
21
+ // src/share/errors.ts
22
+ var HINTS = {
23
+ review_upload_origins_required: "Review video storage is not configured. Set HYPERFRAMES_REVIEW_UPLOAD_ORIGINS to the exact storage origins provided by your deployment.",
24
+ review_project_limit_reached: "Your workspace has used its five free shared projects. Update an existing share, or manage and remove one to free a slot. Turning a link off does not free a slot.",
25
+ review_subscription_required: "Workspace and invite-only sharing require a paid plan. On Free, choose --private (only you) or --public (anyone with the link), or upgrade your workspace plan.",
26
+ workspace_mismatch: "This folder already shares into another workspace. Manage the existing share instead of changing its identity.",
27
+ review_binding_changed: "The review linked to this folder changed. Run hyperframes share --status before trying again.",
28
+ manage_existing_audience: "Manage this existing share to change its audience. Copying or updating a share preserves its settings.",
29
+ not_shared: "This project has no shared review yet. Run hyperframes share with an explicit audience."
30
+ };
31
+ function shareError(error) {
32
+ if (error instanceof SourceIgnoreError) return { code: error.code, message: error.message };
33
+ if (error instanceof CliUsageError) return { code: error.code, message: error.message };
34
+ if (error instanceof ShareSourceError)
35
+ return { code: "source_unavailable", message: error.message };
36
+ if (isAuthError(error))
37
+ return {
38
+ code: error.code.toLowerCase(),
39
+ message: `${error.message} ${error.hint ?? ""}`.trim()
40
+ };
41
+ if (error instanceof ReviewFailed) {
42
+ const owner = error.status === 401 ? null : ownerOf(error.reason);
43
+ if (owner !== null) return { code: "owner_signed_out", owner, message: reviewSentence(error) };
44
+ return {
45
+ code: error.status === 401 ? "login_expired" : error.reason || "share_failed",
46
+ message: HINTS[error.reason] ?? reviewSentence(error)
47
+ };
48
+ }
49
+ return {
50
+ code: "share_failed",
51
+ message: error instanceof Error ? error.message : "Sharing failed. Try again."
52
+ };
53
+ }
54
+
55
+ export {
56
+ shareError
57
+ };
@@ -12,15 +12,15 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-YIE5FU73.js";
15
+ } from "./chunk-4Y4VYZRO.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-3367VNGK.js";
20
+ } from "./chunk-TGGYHFTP.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-VB3JZKMN.js";
23
+ } from "./chunk-ASORF7UJ.js";
24
24
  import {
25
25
  SPLIT_BOUNDARY_EPSILON_S,
26
26
  readClipTiming,
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  decodedUrlPath,
33
33
  removeElementWithGsapCascade
34
- } from "./chunk-N7C7U3ZR.js";
34
+ } from "./chunk-M425BL2U.js";
35
35
  import {
36
36
  parseHTML
37
37
  } from "./chunk-GWTIFRF5.js";
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-WTO4DHBH.js";
9
+ } from "./chunk-3XJ42WUG.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-LIWK3MFR.js";
13
13
  import {
14
14
  DEFAULT_CONFIG,
15
15
  resolvePageNavigationTimeout
16
- } from "./chunk-EJPWGGPK.js";
16
+ } from "./chunk-Z64I7KJZ.js";
17
17
  import {
18
18
  parseFps
19
- } from "./chunk-3367VNGK.js";
19
+ } from "./chunk-TGGYHFTP.js";
20
20
  import {
21
21
  failUsage
22
22
  } from "./chunk-66W5IWLO.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-LIWK3MFR.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-2W4VQ3YZ.js";
12
+ } from "./chunk-E53F4CP6.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -38,7 +38,8 @@ function resolveProjectOrThrow(dirArg, options = {}) {
38
38
  "Run hyperframes preview . from your project directory."
39
39
  );
40
40
  }
41
- const dir = resolve(dirArg ?? ".");
41
+ const start = resolve(dirArg ?? ".");
42
+ const dir = options.searchParents && dirArg === void 0 ? projectHolding(join(start, "index.html")) : start;
42
43
  const name = basename(dir);
43
44
  const indexPath = resolve(dir, "index.html");
44
45
  if (existsSync(dir) && !statSync(dir).isDirectory()) {
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-KAG5KXNO.js";
23
+ } from "./chunk-FS4XHCSU.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-DL4OD7IA.js";
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
229
229
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
230
230
  );
231
231
  }
232
- const { trackFigmaImport } = await import("./telemetry-HAPPFR7P.js");
232
+ const { trackFigmaImport } = await import("./telemetry-RIQIM2PH.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-YMIEJZB6.js";
10
+ } from "./chunk-QDSALYDV.js";
11
11
  import {
12
12
  findParakeet
13
- } from "./chunk-JZIEZCQM.js";
13
+ } from "./chunk-VZO3BUTW.js";
14
14
 
15
15
  // src/whisper/parakeetRunner.ts
16
16
  function parakeetRunner({
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-HDCVU64B.js";
9
+ } from "./chunk-IX6BFRED.js";
10
10
  import {
11
11
  findPreviewServerForProject,
12
12
  studioApiUrl
@@ -17,7 +17,7 @@ import {
17
17
  MAX_WINDOW_IDLE_MS,
18
18
  openProjectHistory,
19
19
  readProjectHistory
20
- } from "./chunk-XDRSEU2I.js";
20
+ } from "./chunk-R3C62AP3.js";
21
21
 
22
22
  // src/utils/historyOwner.ts
23
23
  import { randomUUID } from "crypto";