hyperframes 0.9.7 → 0.9.8

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 (209) hide show
  1. package/dist/{add-WLXYFHMC.js → add-KCOZUTMS.js} +11 -11
  2. package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-P75AWDLA.js} +5 -5
  3. package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-OBZTJQ7X.js} +5 -5
  4. package/dist/api.js +19 -18
  5. package/dist/{asset-UQBTWAMJ.js → asset-N3A7GB3E.js} +2 -2
  6. package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-OQYRQZLW.js} +6 -6
  7. package/dist/{audio-LDVXMRHU.js → audio-KCKNENFH.js} +16 -16
  8. package/dist/{auth-6LVATNTF.js → auth-Y72WHJCW.js} +1 -1
  9. package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-DLNFGTN2.js} +2 -2
  10. package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-EFVHAYNQ.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-4ISYYVPQ.js → batchRender-JKOGFHLU.js} +3 -3
  13. package/dist/{beats-WN2KYIK3.js → beats-RIKKG4N7.js} +7 -7
  14. package/dist/{benchmark-HZPGQ2MP.js → benchmark-7TCK3SGH.js} +8 -8
  15. package/dist/{billing-3Q2EAZFJ.js → billing-JBG45ON2.js} +11 -1
  16. package/dist/{browser-6XC7MTQL.js → browser-4BF7NKPF.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-PAWHGZRW.js} +2 -2
  18. package/dist/{capture-46LJ2VU2.js → capture-5PZTT5O7.js} +3 -3
  19. package/dist/{capture-FCLAEX5L.js → capture-H7UDNHF2.js} +10 -10
  20. package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-LR2XKVKX.js} +10 -10
  21. package/dist/{catalog-72AEDDEG.js → catalog-4W5XDIKM.js} +11 -11
  22. package/dist/{catch-up-6WIX7SWV.js → catch-up-H2Y2WRIA.js} +4 -4
  23. package/dist/{check-R2G5OYIA.js → check-NG6FULCN.js} +35 -35
  24. package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-HI5ICPRV.js} +8 -8
  25. package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-YPPMCXET.js} +29 -29
  26. package/dist/{chunk-XKTLYF4N.js → chunk-2MUWGYXQ.js} +17 -17
  27. package/dist/{chunk-2BARV2ZU.js → chunk-2ZQ7BZOS.js} +2 -2
  28. package/dist/{chunk-3AH6KE6F.js → chunk-3BCLDK6O.js} +19 -12
  29. package/dist/{chunk-XXEOJXXY.js → chunk-3LLFF6EE.js} +1 -1
  30. package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
  31. package/dist/{chunk-SIJYH7XM.js → chunk-3YZ3LNXV.js} +1 -1
  32. package/dist/{chunk-X4K7Q5PT.js → chunk-457LNKMV.js} +1 -1
  33. package/dist/{chunk-SE6O4APZ.js → chunk-4MDLXE3N.js} +1 -1
  34. package/dist/{chunk-XFA6NPMP.js → chunk-4WJKSTDS.js} +2 -2
  35. package/dist/{chunk-PYWJGSWO.js → chunk-5D23BECZ.js} +1 -1
  36. package/dist/{chunk-KDTOB4TD.js → chunk-5SCOPSVL.js} +1 -1
  37. package/dist/{chunk-GBEGZOP3.js → chunk-6A4RAHMF.js} +1 -1
  38. package/dist/{chunk-3Q7UFKFN.js → chunk-6CEQCL6O.js} +3 -3
  39. package/dist/{chunk-QXUDHDJU.js → chunk-6DTXWYZA.js} +7 -7
  40. package/dist/{chunk-SXGXJAA7.js → chunk-6RD46YOJ.js} +1 -1
  41. package/dist/{chunk-N6O2RQLQ.js → chunk-6ZICZOMN.js} +1 -1
  42. package/dist/{chunk-HZG42ZYW.js → chunk-7DQHV322.js} +3 -3
  43. package/dist/{chunk-RWHCRVZV.js → chunk-7HRQOEYY.js} +4 -4
  44. package/dist/{chunk-P7CVKVPD.js → chunk-7TAS4BNT.js} +2 -2
  45. package/dist/{chunk-LCDXHXYH.js → chunk-7VHS56BT.js} +2 -2
  46. package/dist/{chunk-FYDFHW22.js → chunk-AC3TSGGG.js} +13 -13
  47. package/dist/{chunk-KD22R2UE.js → chunk-BCQ42FAS.js} +3 -3
  48. package/dist/{chunk-IOECRDWX.js → chunk-BUYV2WGV.js} +1 -1
  49. package/dist/{chunk-IX3R4BKU.js → chunk-CCFSUSAE.js} +1 -1
  50. package/dist/{chunk-EG7FZSEF.js → chunk-CUR5UYYJ.js} +1 -1
  51. package/dist/{chunk-RJ6LXDUC.js → chunk-D7THUO4V.js} +1 -1
  52. package/dist/{chunk-RY7Z6KFS.js → chunk-DHIXDUET.js} +4 -4
  53. package/dist/{chunk-E4XS2M2E.js → chunk-DT6NGXSS.js} +1 -1
  54. package/dist/{chunk-7LCZBNX7.js → chunk-E2SVAOS6.js} +1 -1
  55. package/dist/{chunk-GK3OROLS.js → chunk-ECJCBLME.js} +1 -1
  56. package/dist/{chunk-SEJ7UBR2.js → chunk-F6GJUCIY.js} +2 -2
  57. package/dist/{chunk-DZNJD7BH.js → chunk-FNNNGI42.js} +1 -1
  58. package/dist/{chunk-CE7EQUBV.js → chunk-GSNSSFT7.js} +1 -1
  59. package/dist/{chunk-UQH3MOES.js → chunk-GSZAUB3W.js} +2 -2
  60. package/dist/{chunk-V6MZZEA7.js → chunk-GZZE2OJP.js} +44 -46
  61. package/dist/{chunk-LAZREIJF.js → chunk-H4D2X5N3.js} +1 -1
  62. package/dist/{chunk-ZVERYNYS.js → chunk-HFNB2CG3.js} +1 -1
  63. package/dist/{chunk-OO7U23BR.js → chunk-HVBQL3PZ.js} +1 -1
  64. package/dist/{chunk-TBCRTIXP.js → chunk-JCOECSLT.js} +2 -2
  65. package/dist/{chunk-3LHJHMFK.js → chunk-JP2ZSFRJ.js} +1 -1
  66. package/dist/{chunk-2X43RFKM.js → chunk-K6QVKO7M.js} +1 -1
  67. package/dist/{chunk-X2PPRHKO.js → chunk-KKPYNKZD.js} +1 -1
  68. package/dist/{chunk-HBCY63DS.js → chunk-L3ZVUQGN.js} +2 -2
  69. package/dist/{chunk-DOS6S7HW.js → chunk-MNX7CK5N.js} +1 -1
  70. package/dist/{chunk-OUZSRPKC.js → chunk-N3CZ437C.js} +1 -1
  71. package/dist/{chunk-AWQE37H3.js → chunk-NST5G3WX.js} +2 -2
  72. package/dist/{chunk-P73MHFBX.js → chunk-NU5LJYAT.js} +1 -1
  73. package/dist/{chunk-IAZ2A7D6.js → chunk-NUFOXUDF.js} +2 -2
  74. package/dist/{chunk-WAURLEUO.js → chunk-ODIGIQ4C.js} +3 -3
  75. package/dist/{chunk-NFNYH6VQ.js → chunk-OYN54RSU.js} +2 -2
  76. package/dist/{chunk-XEP7PGXS.js → chunk-QPTQSM3D.js} +1 -1
  77. package/dist/{chunk-YHO5SKUR.js → chunk-QTEU6NL3.js} +5 -5
  78. package/dist/{chunk-HRSZOW3U.js → chunk-RGYPRUQP.js} +1 -1
  79. package/dist/{chunk-PPNA6EBI.js → chunk-RPVL65M7.js} +1 -1
  80. package/dist/{chunk-CX6MGY2B.js → chunk-RULCW25D.js} +12 -12
  81. package/dist/{chunk-NEI65CWG.js → chunk-RWQANKWK.js} +2 -2
  82. package/dist/{chunk-TSCO4XR4.js → chunk-SACHIPZP.js} +1 -1
  83. package/dist/{chunk-7XRS2NDR.js → chunk-SBA4NG7Q.js} +7 -7
  84. package/dist/{chunk-C7XW5WPZ.js → chunk-TDIYINK6.js} +2 -2
  85. package/dist/{chunk-PUMQDN2T.js → chunk-THSTFHB7.js} +1 -1
  86. package/dist/{chunk-46HMQ4I3.js → chunk-TLBSOI2R.js} +1 -1
  87. package/dist/{chunk-3YJB4QVS.js → chunk-TODLF56D.js} +1 -1
  88. package/dist/{chunk-WZGVBZY6.js → chunk-UPN4UMT7.js} +1 -1
  89. package/dist/{chunk-X3DTUYKZ.js → chunk-UQDO2L6F.js} +17 -10
  90. package/dist/{chunk-CTPYBHF3.js → chunk-UUW654GD.js} +2 -2
  91. package/dist/{chunk-Y2R4N6HQ.js → chunk-VKWAW4JW.js} +14 -9
  92. package/dist/{chunk-FLDSZTHP.js → chunk-VLHCR3G2.js} +2 -2
  93. package/dist/{chunk-LIA4GZ4F.js → chunk-VX3JUOZ6.js} +2 -2
  94. package/dist/{chunk-E3IBPTX7.js → chunk-W5VDIXYL.js} +1 -1
  95. package/dist/{chunk-CUCDUPTA.js → chunk-WF4TXIXY.js} +1 -1
  96. package/dist/{chunk-LFDPOL45.js → chunk-WVH6VWMY.js} +2 -2
  97. package/dist/{chunk-IXGZ6YFZ.js → chunk-WY4J37EZ.js} +3 -3
  98. package/dist/{chunk-ULH6TLE3.js → chunk-X422IJKF.js} +1 -1
  99. package/dist/{chunk-C3FKYBZ4.js → chunk-XPN7SDFQ.js} +9 -9
  100. package/dist/{chunk-6IW2HWYI.js → chunk-Y3RERZRQ.js} +1 -1
  101. package/dist/{chunk-T252SG67.js → chunk-YXIXTFRO.js} +2 -2
  102. package/dist/{chunk-UDY3FS6G.js → chunk-ZAOQWCZM.js} +9 -9
  103. package/dist/{chunk-YTWTG67C.js → chunk-ZAXAT2D7.js} +4 -4
  104. package/dist/{chunk-PG356QHK.js → chunk-ZJ5ZLU2I.js} +2 -2
  105. package/dist/{chunk-FYR2GKAA.js → chunk-ZK3GFNHM.js} +15 -10
  106. package/dist/{clean-52TVJH4U.js → clean-VPOP4TU4.js} +15 -15
  107. package/dist/cli.js +58 -58
  108. package/dist/{cloud-FEPPMA5F.js → cloud-Q7ZXCZ6E.js} +4 -4
  109. package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-6DVAE7GG.js} +4 -4
  110. package/dist/{compare-UBQUKWOB.js → compare-X5SWN5XJ.js} +26 -26
  111. package/dist/{compiler-UCJ4KC75.js → compiler-N4TTEEQC.js} +2 -2
  112. package/dist/{component-6YUQ2XAM.js → component-MJXAMRKF.js} +3 -3
  113. package/dist/{compositions-KGZO4UYR.js → compositions-F3ZHG5F4.js} +9 -9
  114. package/dist/{curve-VISYHZKL.js → curve-4TWENQO7.js} +9 -9
  115. package/dist/{cuts-HCWYCBI2.js → cuts-X3LE5A2K.js} +10 -10
  116. package/dist/{delete-CNKHLEDS.js → delete-MYHKF3MS.js} +4 -4
  117. package/dist/{deploy-TS3R7DTD.js → deploy-OP2BHWCQ.js} +1 -1
  118. package/dist/{describeProject-6TNE4FY4.js → describeProject-ZMKVHAYX.js} +6 -6
  119. package/dist/{diff-YRBYR56R.js → diff-7ZNSFBKV.js} +21 -20
  120. package/dist/{dist-T57O7KXT.js → dist-SWPSKAAJ.js} +2 -2
  121. package/dist/{doctor-PLA77GFC.js → doctor-ABSXYNXY.js} +9 -9
  122. package/dist/{energy-7BTNGNR7.js → energy-X2OAWHME.js} +10 -10
  123. package/dist/{events-QTM2OEFB.js → events-26SWSHDR.js} +2 -2
  124. package/dist/{events-IMWCEFSZ.js → events-4MDK4K7Q.js} +3 -3
  125. package/dist/{events-25FIG2O6.js → events-JFIZSYMH.js} +12 -12
  126. package/dist/{extract-C66C5A22.js → extract-4O3Q3LOD.js} +10 -10
  127. package/dist/{face-MDOI2JO5.js → face-7J7AQJDY.js} +10 -10
  128. package/dist/{feedback-26OSAZF3.js → feedback-CVTJDQIX.js} +6 -6
  129. package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-EE2NKQT4.js} +5 -5
  130. package/dist/{figma-276JAPS4.js → figma-55J7UDDC.js} +3 -3
  131. package/dist/fontLocalizeCli.js +8 -8
  132. package/dist/{frames-AMLBNI5B.js → frames-OZLUDUOS.js} +11 -11
  133. package/dist/{generate-YIZS4JFA.js → generate-CY2TRPRE.js} +13 -12
  134. package/dist/{get-HFEFIRAJ.js → get-HJHSVKGK.js} +4 -4
  135. package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-LZFNAIJB.js} +5 -5
  136. package/dist/{grade-compare-7NH6XYIY.js → grade-compare-JVTYF2T6.js} +27 -27
  137. package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-OGFEQMQT.js} +6 -6
  138. package/dist/{help-HHIAUMBQ.js → help-6WDI76YU.js} +1 -1
  139. package/dist/{history-SLWPRU6Q.js → history-FIP5NGFC.js} +6 -6
  140. package/dist/hyperframe.manifest.json +1 -1
  141. package/dist/hyperframe.runtime.iife.js +17 -17
  142. package/dist/hyperframes-player.global.js +1 -1
  143. package/dist/{info-MIPROXSM.js → info-WTGJE4QB.js} +7 -7
  144. package/dist/{init-T56UGI6Z.js → init-UYTDM56U.js} +25 -25
  145. package/dist/{ink-TY7CKC6Q.js → ink-BTLAE3ZR.js} +10 -10
  146. package/dist/{inspect-TIF7YHGN.js → inspect-KIMJNTS4.js} +27 -27
  147. package/dist/{installer-72QUKTPE.js → installer-6GSD3CVW.js} +4 -4
  148. package/dist/{keyframes-I4JRA37J.js → keyframes-74LK522L.js} +6 -6
  149. package/dist/{lambda-VGFSEG56.js → lambda-CJ7P5NLO.js} +9 -9
  150. package/dist/{layout-K776Z2IS.js → layout-RLIXTM56.js} +27 -27
  151. package/dist/{lint-XLTSC66T.js → lint-IOJB746U.js} +6 -6
  152. package/dist/{list-6V3IKLXF.js → list-V3TMQEQV.js} +4 -4
  153. package/dist/{localPage-RM6EXBBT.js → localPage-5LUCH2RM.js} +5 -5
  154. package/dist/{login-HD47X3JE.js → login-GNVKQO3W.js} +4 -4
  155. package/dist/{look-KUDJYDTK.js → look-3QZIJFNX.js} +10 -10
  156. package/dist/{manager-TUKVGY7O.js → manager-3QTARUMT.js} +6 -6
  157. package/dist/{measure-6BRNY3II.js → measure-7LUYTL2E.js} +11 -11
  158. package/dist/{media-treatment-MLME5LNQ.js → media-treatment-MYDIYP5I.js} +11 -11
  159. package/dist/{media-use-3YTDQKGR.js → media-use-UDBHEIYA.js} +1 -1
  160. package/dist/{models-IUX642FY.js → models-S5CT7CST.js} +9 -9
  161. package/dist/{motionShot-INNVFSPU.js → motionShot-U3TSHI33.js} +13 -13
  162. package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-ZETO53KI.js} +8 -8
  163. package/dist/{open-FDQ3NDSX.js → open-UEJMPEPN.js} +11 -11
  164. package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-2KFML7ZA.js} +10 -10
  165. package/dist/{pipeline-V3TOATHS.js → pipeline-2TPI5L2C.js} +8 -8
  166. package/dist/{play-5WIU4CZL.js → play-XH2XKNCL.js} +18 -18
  167. package/dist/{preflight-JXEVL63B.js → preflight-L5P4QXXH.js} +6 -6
  168. package/dist/{present-UHWGVCP4.js → present-XXEU7RTN.js} +14 -14
  169. package/dist/{preview-W75P6D7E.js → preview-V6LNVTBH.js} +16 -16
  170. package/dist/{probe-O2ADL5FX.js → probe-JL4JSTSP.js} +10 -10
  171. package/dist/{producer-6GQQQT7M.js → producer-RLZ64COI.js} +1 -1
  172. package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-3IK4M62D.js} +6 -6
  173. package/dist/{publication-YRVC6D56.js → publication-4I6P772E.js} +2 -2
  174. package/dist/{publish-4IN3WW5G.js → publish-TOPACGPR.js} +8 -8
  175. package/dist/{remove-background-L4KWXVMH.js → remove-background-CNXM4XJN.js} +9 -9
  176. package/dist/{render-73VGDCCH.js → render-OD3XEIBG.js} +5 -5
  177. package/dist/{render-GZ4DBQ5E.js → render-WCLJ4GPZ.js} +21 -21
  178. package/dist/{render-IP7KBRD7.js → render-XAE2YCRZ.js} +30 -30
  179. package/dist/{render-batch-RX3TJ4NY.js → render-batch-QM4SW65U.js} +5 -5
  180. package/dist/{resolver-SNTBG6O2.js → resolver-K2UZSBCZ.js} +4 -4
  181. package/dist/{reverse-5SHT4TC6.js → reverse-JGOZUFKK.js} +1 -1
  182. package/dist/{run-GV6MEM2M.js → run-2JI4VCW5.js} +3 -3
  183. package/dist/{sherpa-LJJHQNQ6.js → sherpa-OIJBFCKZ.js} +9 -9
  184. package/dist/{skills-NVNRQU7K.js → skills-L4AWBUJJ.js} +5 -5
  185. package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-GSX5MLON.js} +3 -3
  186. package/dist/{snapshot-75S4SIRK.js → snapshot-5FK3HCJ7.js} +31 -31
  187. package/dist/{src-MTLH4YHV.js → src-HKLKN7AE.js} +4 -4
  188. package/dist/{src-KS6W3WRC.js → src-JT324RDD.js} +7 -7
  189. package/dist/{start-4UCLBL76.js → start-5O33EGN2.js} +27 -20
  190. package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-CWKMUI6O.js} +16 -16
  191. package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-D7kdypzS.js} +1 -1
  192. package/dist/studio/assets/{index-CKnGNPHF.js → index-BT1zmedz.js} +1 -1
  193. package/dist/studio/assets/{index-CdWK2GVp.js → index-CaOrmH_8.js} +4 -4
  194. package/dist/studio/index.html +1 -1
  195. package/dist/{studio-api-447CJUUM.js → studio-api-24HJ5KQX.js} +8 -8
  196. package/dist/{studioServer-TMPKQRQA.js → studioServer-KKGBELBR.js} +45 -45
  197. package/dist/{sync-V456U5AA.js → sync-BT4WDK3B.js} +10 -10
  198. package/dist/{telemetry-NK6K3VRH.js → telemetry-77PW2F7B.js} +3 -3
  199. package/dist/{timeline-M5URP7QS.js → timeline-RKJ63VIU.js} +16 -16
  200. package/dist/{tokens-5OIFB4MD.js → tokens-JATS65YH.js} +2 -2
  201. package/dist/{transcribe-ON5WTZV3.js → transcribe-ELWJ6NYG.js} +8 -8
  202. package/dist/{transcribe-N3E7T7AW.js → transcribe-FYBJBBP3.js} +17 -16
  203. package/dist/{updateCheck-JQOAKPNR.js → updateCheck-NU374MVC.js} +2 -2
  204. package/dist/{upgrade-737POFN4.js → upgrade-VIWR25J6.js} +2 -2
  205. package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-MVZYN7XB.js} +4 -4
  206. package/dist/{validate-6IPCQFXI.js → validate-3HM2XCH4.js} +21 -21
  207. package/dist/{video-BEZHDPH2.js → video-H4ASUN7D.js} +6 -6
  208. package/dist/warmCheck.js +35 -35
  209. package/package.json +1 -1
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  round,
9
9
  runFfmpeg
10
- } from "./chunk-RJ6LXDUC.js";
10
+ } from "./chunk-D7THUO4V.js";
11
11
 
12
12
  // src/measure/drawn.ts
13
13
  import { mkdtempSync, readFileSync, rmSync } from "fs";
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-RJ6LXDUC.js";
11
+ } from "./chunk-D7THUO4V.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-TSYRN646.js";
12
12
  import {
13
13
  fetchLocalPageUrl
14
- } from "./chunk-LAZREIJF.js";
14
+ } from "./chunk-H4D2X5N3.js";
15
15
  import {
16
16
  ensureCaptureDirSync,
17
17
  writeCaptureFileSync
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-AWDFDFI3.js";
26
26
  import {
27
27
  isBlockedNetworkHost
28
- } from "./chunk-IAZ2A7D6.js";
28
+ } from "./chunk-NUFOXUDF.js";
29
29
  import {
30
30
  DOMParser,
31
31
  parseHTML
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getCachedGpuEncoder
9
- } from "./chunk-IAZ2A7D6.js";
9
+ } from "./chunk-NUFOXUDF.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-X6JUUQCM.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  HyperframesApiError
9
- } from "./chunk-6A45RKAK.js";
9
+ } from "./chunk-3XJM7XZN.js";
10
10
 
11
11
  // src/cloud/upload.ts
12
12
  import { createHash } from "crypto";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-XQ26I3PL.js";
14
14
  import {
15
15
  createProjectConfig
16
- } from "./chunk-HRSZOW3U.js";
16
+ } from "./chunk-RGYPRUQP.js";
17
17
  import {
18
18
  isHyperframesProject
19
- } from "./chunk-N6O2RQLQ.js";
19
+ } from "./chunk-6ZICZOMN.js";
20
20
 
21
21
  // src/utils/desktopApp.ts
22
22
  import { spawn, spawnSync } from "child_process";
@@ -9,7 +9,11 @@ import {
9
9
  } from "./chunk-QXVW22VM.js";
10
10
  import {
11
11
  Fix
12
- } from "./chunk-RJ6LXDUC.js";
12
+ } from "./chunk-D7THUO4V.js";
13
+ import {
14
+ HyperframesApiError,
15
+ HyperframesCloudClient
16
+ } from "./chunk-3XJM7XZN.js";
13
17
  import {
14
18
  refreshIfNeeded,
15
19
  resolveCloudAuthHeaders,
@@ -115,39 +119,26 @@ function refusal(status, body, estimate) {
115
119
  "fix the request it names, then run again"
116
120
  );
117
121
  }
118
- async function call(method, route, body, key, estimate, auth) {
119
- const headers = {
120
- ...auth ?? await resolveCloudAuthHeaders().catch(noSignIn),
121
- accept: "application/json"
122
- };
123
- if (body !== void 0) headers["content-type"] = "application/json";
124
- if (key) headers["Idempotency-Key"] = key;
125
- let res;
122
+ var clientFor = (auth) => new HyperframesCloudClient({ baseUrl: resolveCloudBaseUrl(), getAuthHeaders: () => auth });
123
+ var resume = "run the same command again: it resumes the same job";
124
+ async function call(route, send, timeoutMs, estimate, auth) {
125
+ const client = clientFor(auth ?? await resolveCloudAuthHeaders().catch(noSignIn));
126
+ let data;
126
127
  try {
127
- res = await fetch(`${resolveCloudBaseUrl()}${route}`, {
128
- method,
129
- headers,
130
- ...body !== void 0 ? { body: JSON.stringify(body) } : {},
131
- signal: AbortSignal.timeout(method === "POST" ? 18e4 : 3e4)
132
- });
128
+ data = await send(client, AbortSignal.timeout(timeoutMs));
133
129
  } catch (err) {
134
- throw new Fix(
135
- `no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
136
- "run the same command again: it resumes the same job"
137
- );
138
- }
139
- const value = await res.json().catch(() => null);
140
- if (res.status >= 500 || value === null)
141
- throw new Fix(
142
- `HeyGen ${res.status} for ${route} with no readable answer`,
143
- "run the same command again: it resumes the same job"
144
- );
145
- if (!res.ok) {
146
- const refused = refusal(res.status, value, estimate);
147
- refused.status = res.status;
130
+ if (!(err instanceof HyperframesApiError))
131
+ throw new Fix(
132
+ `no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
133
+ resume
134
+ );
135
+ if (err.status >= 500 || err.status < 300 || err.raw == null)
136
+ throw new Fix(`HeyGen ${err.status} for ${route} with no readable answer`, resume);
137
+ const refused = refusal(err.status, err.raw, estimate);
138
+ refused.status = err.status;
148
139
  throw refused;
149
140
  }
150
- const data = isRecord(value) && isRecord(value.data) ? value.data : value;
141
+ if (data == null) throw new Fix(`HeyGen answered ${route} with no readable answer`, resume);
151
142
  if (!isRecord(data))
152
143
  throw new Fix(`HeyGen answered ${route} with no job`, "run the same command again");
153
144
  const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id;
@@ -167,19 +158,27 @@ function log(entry, record) {
167
158
  `
168
159
  );
169
160
  }
170
- async function runJob(route, body, key, pollRoute, opts = {}) {
161
+ async function runJob(jobRoute, body, key, opts = {}) {
171
162
  const started = Date.now();
163
+ const route = jobRoute.path;
172
164
  const { auth, scope } = await jobSender();
173
165
  const sent = liveKey(key, scope);
174
166
  let job;
175
167
  try {
176
- job = await call("POST", route, body, sent, opts.credits, auth);
168
+ job = await call(
169
+ route,
170
+ (client, signal) => jobRoute.start(client, body, sent, signal),
171
+ 18e4,
172
+ opts.credits,
173
+ auth
174
+ );
177
175
  } catch (err) {
178
176
  if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
179
177
  throw err;
180
178
  }
181
179
  if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
182
- while (RUNNING.has(job.status.toLowerCase())) {
180
+ const status = jobRoute.status;
181
+ while (status && RUNNING.has(job.status.toLowerCase())) {
183
182
  if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
184
183
  throw new Fix(
185
184
  `HeyGen job ${job.id} is still ${job.status}`,
@@ -187,7 +186,12 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
187
186
  );
188
187
  opts.onWait?.(job);
189
188
  await new Promise((r) => setTimeout(r, opts.intervalMs ?? 5e3));
190
- job = await call("GET", pollRoute(job.id));
189
+ const id = job.id;
190
+ job = await call(
191
+ `${route}/${encodeURIComponent(id)}`,
192
+ (client, signal) => status(client, id, signal),
193
+ 3e4
194
+ );
191
195
  }
192
196
  if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
193
197
  if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
@@ -200,23 +204,17 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
200
204
  }
201
205
  var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
202
206
  async function publicVoices(language, limit) {
203
- const headers = {
204
- ...await resolveCloudAuthHeaders().catch(noSignIn),
205
- accept: "application/json"
206
- };
207
- const query = new URLSearchParams({ type: "public", language, limit: String(limit) });
208
- const res = await fetch(`${resolveCloudBaseUrl()}/v3/voices?${query}`, {
209
- headers,
210
- signal: AbortSignal.timeout(3e4)
211
- }).catch((err) => {
207
+ const client = clientFor(await resolveCloudAuthHeaders().catch(noSignIn));
208
+ const value = await client.listVoicesV3({ type: "public", language, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
209
+ if (err instanceof HyperframesApiError)
210
+ throw new Fix(`HeyGen ${err.status} listing its voices`, "run the same command again");
212
211
  throw new Fix(
213
212
  `no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
214
213
  "run the same command again"
215
214
  );
216
215
  });
217
- const value = await res.json().catch(() => null);
218
- if (!res.ok || !isRecord(value) || !Array.isArray(value.data))
219
- throw new Fix(`HeyGen ${res.status} listing its voices`, "run the same command again");
216
+ if (!isRecord(value) || !Array.isArray(value.data))
217
+ throw new Fix("HeyGen answered its voices with no list", "run the same command again");
220
218
  return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
221
219
  }
222
220
  async function senderScope() {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-EQBDKYXR.js";
10
10
  import {
11
11
  listenOnBrowserSafePort
12
- } from "./chunk-IAZ2A7D6.js";
12
+ } from "./chunk-NUFOXUDF.js";
13
13
 
14
14
  // src/capture/localPage.ts
15
15
  import {
@@ -11,7 +11,7 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-DZNJD7BH.js";
14
+ } from "./chunk-FNNNGI42.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-IMWCEFSZ.js");
1281
+ const { trackCommandFailure } = await import("./events-4MDK4K7Q.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-P7CVKVPD.js";
9
+ } from "./chunk-7TAS4BNT.js";
10
10
  import {
11
11
  explainChromeLaunchFailure,
12
12
  inAgentSandbox,
@@ -15,7 +15,7 @@ import {
15
15
  oneProcessOverPipe,
16
16
  pipeLaunchClosedOnMac,
17
17
  sandboxDeniedRemediation
18
- } from "./chunk-IAZ2A7D6.js";
18
+ } from "./chunk-NUFOXUDF.js";
19
19
  import {
20
20
  processIsAlive
21
21
  } from "./chunk-KGPLIH7B.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  HyperframesApiError,
9
9
  HyperframesCloudClient
10
- } from "./chunk-6A45RKAK.js";
10
+ } from "./chunk-3XJM7XZN.js";
11
11
  import {
12
12
  forceRefreshCredentials,
13
13
  resolveCloudAuthHeaders,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  formatVariableValidationIssue,
24
24
  validateVariables
25
- } from "./chunk-N6O2RQLQ.js";
25
+ } from "./chunk-6ZICZOMN.js";
26
26
  import {
27
27
  extractCompositionMetadata
28
28
  } from "./chunk-T5ELONXY.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-T2WJO4XM.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-N6O2RQLQ.js";
30
+ } from "./chunk-6ZICZOMN.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-ULH6TLE3.js";
9
+ } from "./chunk-X422IJKF.js";
10
10
  import {
11
11
  resolveProjectRelativeSrc
12
12
  } from "./chunk-WVRAFHJU.js";
13
13
 
14
14
  // src/utils/projectMedia.ts
15
15
  async function collectProjectMedia(projectDir) {
16
- const { bundleToSingleHtml } = await import("./compiler-UCJ4KC75.js");
16
+ const { bundleToSingleHtml } = await import("./compiler-N4TTEEQC.js");
17
17
  const html = await bundleToSingleHtml(projectDir);
18
18
  const producer = await loadProducer();
19
19
  if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-XEP7PGXS.js";
9
+ } from "./chunk-QPTQSM3D.js";
10
10
  import {
11
11
  outputResolutionForSize
12
12
  } from "./chunk-T5ELONXY.js";