hyperframes 0.9.7 → 0.9.9

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 (242) hide show
  1. package/dist/{add-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
  2. package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
  3. package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
  4. package/dist/api.js +29 -28
  5. package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
  6. package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
  7. package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
  8. package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
  9. package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
  10. package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
  13. package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
  14. package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
  15. package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
  16. package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
  18. package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
  19. package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
  20. package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
  21. package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
  22. package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
  23. package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
  24. package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
  25. package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
  26. package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
  27. package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
  28. package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
  29. package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
  30. package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
  31. package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
  32. package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
  33. package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
  34. package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
  35. package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
  36. package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
  37. package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
  38. package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
  39. package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
  40. package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
  41. package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
  42. package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
  43. package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
  44. package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
  45. package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
  46. package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
  47. package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
  48. package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
  49. package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
  50. package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
  51. package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
  52. package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
  53. package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
  54. package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
  55. package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
  56. package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
  57. package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
  58. package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
  59. package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
  60. package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
  61. package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
  62. package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
  63. package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
  64. package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
  65. package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
  66. package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
  67. package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
  68. package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
  69. package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
  70. package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
  71. package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
  72. package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
  73. package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
  74. package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
  75. package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
  76. package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
  77. package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
  78. package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
  79. package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
  80. package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
  81. package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
  82. package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
  83. package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
  84. package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
  85. package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
  86. package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
  87. package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
  88. package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
  89. package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
  90. package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
  91. package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
  92. package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
  93. package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
  94. package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
  95. package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
  96. package/dist/chunk-SRVAYGTN.js +62 -0
  97. package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
  98. package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
  99. package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
  100. package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
  101. package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
  102. package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
  103. package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
  104. package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
  105. package/dist/{chunk-N6O2RQLQ.js → chunk-W5AUD5OL.js} +2 -2
  106. package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
  107. package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
  108. package/dist/{chunk-KDTOB4TD.js → chunk-XTYNW745.js} +1 -1
  109. package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
  110. package/dist/chunk-Y3ICFPFK.js +5035 -0
  111. package/dist/{chunk-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
  112. package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
  113. package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
  114. package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
  115. package/dist/cli.js +61 -60
  116. package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
  117. package/dist/cloud-Z3FNCC4T.js +39 -0
  118. package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
  119. package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
  120. package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
  121. package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
  122. package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
  123. package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
  124. package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
  125. package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
  126. package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
  127. package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
  128. package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
  129. package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
  130. package/dist/dist-CCPYPKOC.js +197 -0
  131. package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
  132. package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
  133. package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
  134. package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
  135. package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
  136. package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
  137. package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
  138. package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
  139. package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
  140. package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
  141. package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
  142. package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
  143. package/dist/fontLocalizeCli.js +15 -15
  144. package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
  145. package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
  146. package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
  147. package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
  148. package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
  149. package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
  150. package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
  151. package/dist/{history-SLWPRU6Q.js → history-NKRHKIE2.js} +10 -10
  152. package/dist/hyperframe.manifest.json +1 -1
  153. package/dist/hyperframe.runtime.iife.js +65 -65
  154. package/dist/hyperframes-player.global.js +1 -1
  155. package/dist/{info-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
  156. package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
  157. package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
  158. package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
  159. package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
  160. package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
  161. package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
  162. package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
  163. package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
  164. package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
  165. package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
  166. package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
  167. package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
  168. package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
  169. package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
  170. package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
  171. package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
  172. package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
  173. package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
  174. package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
  175. package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
  176. package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
  177. package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
  178. package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
  179. package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
  180. package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
  181. package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
  182. package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
  183. package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
  184. package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
  185. package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
  186. package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
  187. package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
  188. package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
  189. package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
  190. package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
  191. package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
  192. package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
  193. package/dist/renderSetupWorker.js +4 -4
  194. package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
  195. package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
  196. package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
  197. package/dist/{sherpa-LJJHQNQ6.js → sherpa-D6FQ3CHN.js} +13 -13
  198. package/dist/skills/media-use/SKILL.md +2 -2
  199. package/dist/skills/media-use/references/heygen.md +17 -9
  200. package/dist/skills/media-use/references/operations.md +14 -13
  201. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
  202. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
  203. package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
  204. package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
  205. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  206. package/dist/skills/media-use/scripts/resolve.mjs +3 -1
  207. package/dist/{skills-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
  208. package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
  209. package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
  210. package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
  211. package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
  212. package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
  213. package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
  214. package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
  215. package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
  216. package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
  217. package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
  218. package/dist/studio/index.html +1 -1
  219. package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
  220. package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
  221. package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
  222. package/dist/{telemetry-NK6K3VRH.js → telemetry-267LV4SC.js} +3 -3
  223. package/dist/templates/_shared/AGENTS.md +1 -0
  224. package/dist/templates/_shared/CLAUDE.md +1 -0
  225. package/dist/templates-MQ742KVZ.js +173 -0
  226. package/dist/{timeline-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
  227. package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
  228. package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
  229. package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
  230. package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
  231. package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
  232. package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
  233. package/dist/upload-L5TSWWIU.js +16 -0
  234. package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
  235. package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
  236. package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
  237. package/dist/warmCheck.js +44 -44
  238. package/package.json +1 -1
  239. package/dist/chunk-OUZSRPKC.js +0 -5035
  240. package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
  241. package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
  242. package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-PPNA6EBI.js";
9
+ } from "./chunk-63GTSNMY.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
13
- } from "./chunk-UGUYWTWD.js";
13
+ } from "./chunk-XLPCBE2Q.js";
14
14
 
15
15
  // src/utils/artifactCapture.ts
16
16
  var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-E3IBPTX7.js";
10
+ } from "./chunk-NNF6G2UH.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-HRSZOW3U.js";
17
+ } from "./chunk-S2UKSI3C.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-IOECRDWX.js";
21
+ } from "./chunk-R7EKEIAK.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-LCDXHXYH.js";
26
+ } from "./chunk-LV5SL4YW.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-X2PPRHKO.js";
29
+ } from "./chunk-6KV3CMY2.js";
30
30
  import {
31
31
  readJsonFlag
32
32
  } from "./chunk-EHZESMRB.js";
33
33
  import {
34
34
  trackRegistryItemAdded
35
- } from "./chunk-PYWJGSWO.js";
35
+ } from "./chunk-2ROPUTCS.js";
36
36
  import {
37
37
  defineCommand
38
38
  } from "./chunk-DL4OD7IA.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-2GICKZ3I.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-N6O2RQLQ.js";
44
+ } from "./chunk-W5AUD5OL.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCuts,
9
9
  signatures
10
- } from "./chunk-PUMQDN2T.js";
10
+ } from "./chunk-7RM3TB62.js";
11
11
  import {
12
12
  jsonArg,
13
13
  num,
14
14
  runMeasure
15
- } from "./chunk-CTPYBHF3.js";
15
+ } from "./chunk-BXYB5NGT.js";
16
16
  import {
17
17
  idempotencyKey,
18
18
  keepVoice,
@@ -20,20 +20,22 @@ import {
20
20
  publicVoices,
21
21
  runJob,
22
22
  senderScope
23
- } from "./chunk-V6MZZEA7.js";
23
+ } from "./chunk-4W5X4S47.js";
24
24
  import {
25
25
  Fix,
26
+ probeSeconds,
26
27
  probeVideo,
27
28
  projectOf,
28
29
  round,
29
30
  runFfmpeg,
30
31
  videoClip
31
- } from "./chunk-RJ6LXDUC.js";
32
+ } from "./chunk-A33GFLPY.js";
32
33
  import {
33
34
  defineCommand
34
35
  } from "./chunk-DL4OD7IA.js";
35
36
 
36
37
  // src/heygen/generate.ts
38
+ import { randomUUID } from "crypto";
37
39
  import {
38
40
  existsSync,
39
41
  mkdirSync,
@@ -44,11 +46,13 @@ import {
44
46
  writeFileSync
45
47
  } from "fs";
46
48
  import { tmpdir } from "os";
47
- import { dirname, extname, join, relative, resolve } from "path";
49
+ import { basename, dirname, extname, join, relative, resolve } from "path";
48
50
  var GENERATE_TYPES = [
49
51
  "image",
50
52
  "video",
53
+ "lipsync",
51
54
  "avatar",
55
+ "cutout",
52
56
  "voice",
53
57
  "music"
54
58
  ];
@@ -112,7 +116,8 @@ var need = (value, flag, example) => {
112
116
  var ROUTES = {
113
117
  image: {
114
118
  path: "/v3/images",
115
- poll: (id) => `/v3/images/${id}`,
119
+ start: (c, body, key, signal) => c.createImage({ body, idempotencyKey: key, signal }),
120
+ status: (c, id, signal) => c.getImage({ generation_id: id, signal }),
116
121
  body: (r, media) => ({
117
122
  model: r.model ?? DEFAULTS.image,
118
123
  prompt: need(r.prompt, "--prompt", '--prompt "the same room, empty, no text"'),
@@ -126,7 +131,8 @@ var ROUTES = {
126
131
  },
127
132
  video: {
128
133
  path: "/v3/models/videos",
129
- poll: (id) => `/v3/models/videos/${id}`,
134
+ start: (c, body, key, signal) => c.createModelVideo({ body, idempotencyKey: key, signal }),
135
+ status: (c, id, signal) => c.getModelVideo({ video_id: id, signal }),
130
136
  // fallow-ignore-next-line complexity
131
137
  body: (r, media) => {
132
138
  const spoken = !!r.audio || !!r.references?.length || !!r.motion;
@@ -155,15 +161,53 @@ var ROUTES = {
155
161
  ledger: "video",
156
162
  ext: [".mp4", ".mov", ".webm"]
157
163
  },
164
+ lipsync: {
165
+ path: "/v3/lipsyncs",
166
+ start: (c, body, key, signal) => c.createLipsyncV3({ body, idempotencyKey: key, signal }),
167
+ status: (c, id, signal) => c.getLipsyncV3({ lipsync_id: id, signal }),
168
+ body: (r, media) => ({
169
+ video: media(need(r.video, "--video", "--video work/s01.mp4"), "video"),
170
+ audio: media(need(r.audio, "--audio", "--audio work/s01.mp3"), "audio"),
171
+ mode: "speed",
172
+ enable_dynamic_duration: false,
173
+ fps_mode: "cfr",
174
+ keep_the_same_format: true
175
+ }),
176
+ urls: ["video_url"],
177
+ ledger: "video",
178
+ ext: [".mp4"]
179
+ },
180
+ cutout: {
181
+ path: "/v3/background-removals",
182
+ start: (c, body, key, signal) => c.createBackgroundRemoval({
183
+ body: { ...body, request_id: key },
184
+ signal
185
+ }),
186
+ status: (c, id, signal) => c.getBackgroundRemoval({ job_id: id, signal }),
187
+ body: (r, media) => ({
188
+ video: media(need(r.video, "--video", "--video assets/presenter.mp4"), "video"),
189
+ layers: ["foreground"]
190
+ }),
191
+ urls: ["layers.foreground"],
192
+ ledger: "video",
193
+ ext: [".webm", ".mov"]
194
+ },
158
195
  avatar: {
159
196
  path: "/v3/videos",
160
- poll: (id) => `/v3/videos/${id}`,
197
+ start: (c, body, key, signal) => c.createVideo({ body, idempotencyKey: key, signal }),
198
+ status: (c, id, signal) => c.getVideoV3({ video_id: id, signal }),
161
199
  body: (r, media) => ({
162
- type: "image",
163
- image: media(need(r.photo, "--photo", "--photo assets/presenter.png"), "image"),
164
- script: need(r.script, "--script", '--script "What they say"'),
165
- voice_id: need(r.voice, "--voice", "--voice <voice id or language>"),
200
+ ...r.avatar ? { type: "avatar", avatar_id: r.avatar } : {
201
+ type: "image",
202
+ image: media(need(r.photo, "--photo", "--photo assets/presenter.png"), "image"),
203
+ ...r.prompt ? { motion_prompt: r.prompt } : {}
204
+ },
205
+ ...r.audio ? { audio_asset_id: media(r.audio, "audio").asset_id } : {
206
+ script: need(r.script, "--script", '--script "What they say"'),
207
+ voice_id: need(r.voice, "--voice", "--voice <voice id or language>")
208
+ },
166
209
  ...r.aspect ? { aspect_ratio: r.aspect } : {},
210
+ resolution: "1080p",
167
211
  output_format: "mp4"
168
212
  }),
169
213
  urls: ["video_url"],
@@ -171,8 +215,9 @@ var ROUTES = {
171
215
  ext: [".mp4"]
172
216
  },
173
217
  voice: {
218
+ // Speech answers in the request and takes no Idempotency-Key, so there is no status to poll.
174
219
  path: "/v3/voices/speech",
175
- poll: (id) => `/v3/voices/speech/${id}`,
220
+ start: (c, body, _key, signal) => c.createSpeechV3({ body, signal }),
176
221
  body: (r) => ({
177
222
  text: need(r.script, "--script", '--script "What the voice says"'),
178
223
  voice_id: need(r.voice, "--voice", "--voice <voice id or language>")
@@ -183,7 +228,8 @@ var ROUTES = {
183
228
  },
184
229
  music: {
185
230
  path: "/v3/audio/music",
186
- poll: (id) => `/v3/audio/music/${id}`,
231
+ start: (c, body, key, signal) => c.createMusic({ body, idempotencyKey: key, signal }),
232
+ status: (c, id, signal) => c.getMusic({ music_id: id, signal }),
187
233
  body: (r) => ({
188
234
  model: r.model ?? DEFAULTS.music,
189
235
  prompt: need(r.prompt, "--prompt", '--prompt "warm lo-fi beat, soft keys"'),
@@ -247,6 +293,30 @@ function inline(work, masks = []) {
247
293
  };
248
294
  };
249
295
  }
296
+ function assetsOf(r) {
297
+ if (r.type === "lipsync") return [r.video, r.audio];
298
+ if (r.type === "cutout") return [r.video];
299
+ return r.type === "avatar" && r.audio ? [r.audio] : [];
300
+ }
301
+ async function uploaded(paths) {
302
+ const ids = /* @__PURE__ */ new Map();
303
+ if (!paths.length) return ids;
304
+ const { createCloudClient } = await import("./cloud-Z3FNCC4T.js");
305
+ const { uploadAssetViaDirectUpload } = await import("./upload-L5TSWWIU.js");
306
+ const { getMimeType } = await import("./dist-CCPYPKOC.js");
307
+ const client = await createCloudClient();
308
+ for (const path of paths) {
309
+ const asset = await uploadAssetViaDirectUpload({
310
+ client,
311
+ bytes: new Uint8Array(readFileSync(path)),
312
+ filename: basename(path),
313
+ contentType: getMimeType(path),
314
+ idempotencyKey: randomUUID()
315
+ });
316
+ ids.set(path, asset.asset_id);
317
+ }
318
+ return ids;
319
+ }
250
320
  function cutsInside(path, seconds) {
251
321
  const info = probeVideo(path);
252
322
  const clip = videoClip(info.path, 0, seconds, info);
@@ -370,6 +440,9 @@ function checkGuide(r) {
370
440
  );
371
441
  }
372
442
  var VOICE_ID = /^[0-9a-f]{32}$/i;
443
+ async function voiceFor(r) {
444
+ return r.type === "voice" || r.type === "avatar" && !r.audio ? pickVoice(r) : void 0;
445
+ }
373
446
  async function pickVoice(r) {
374
447
  if (r.voice && VOICE_ID.test(r.voice)) return { voice_id: r.voice, name: r.voice };
375
448
  if (!r.voice) {
@@ -417,11 +490,18 @@ async function generate(r, onWait, credits) {
417
490
  const project = projectOf(dirname(out));
418
491
  const work = mkdtempSync(join(tmpdir(), "hf-generate-"));
419
492
  try {
420
- const body = route.body(r, inline(work, r.masks));
421
- const key = idempotencyKey(route.path, [JSON.stringify(body)]);
422
- const job = await runJob(route.path, body, key, (id) => route.poll(encodeURIComponent(id)), {
493
+ const sources = assetsOf(r);
494
+ const ids = await uploaded(sources);
495
+ const local = inline(work, r.masks);
496
+ const body = route.body(
497
+ r,
498
+ (path, kind) => ids.has(path) ? { type: "asset_id", asset_id: ids.get(path) } : local(path, kind)
499
+ );
500
+ const sent = [...ids.values()].reduce((t, id) => t.replaceAll(id, ""), JSON.stringify(body));
501
+ const key = idempotencyKey(route.path, [...sources.map((p) => readFileSync(p)), sent]);
502
+ const job = await runJob(route, body, key, {
423
503
  log: {
424
- projectDir: project ?? void 0,
504
+ projectDir: project ?? process.cwd(),
425
505
  what: `generate ${r.type} ${relative(project ?? ".", out)}`
426
506
  },
427
507
  onWait: (j) => onWait?.(j.status),
@@ -484,7 +564,9 @@ async function generate(r, onWait, credits) {
484
564
  ...r.references?.length ? { references: r.references.map(describe) } : {},
485
565
  ...r.firstFrame ? { first_frame: describe(r.firstFrame) } : {},
486
566
  ...r.photo ? { photo: describe(r.photo) } : {},
567
+ ...r.avatar ? { avatar: r.avatar } : {},
487
568
  ...r.audio ? { audio: describe(r.audio) } : {},
569
+ ...r.video ? { video: describe(r.video) } : {},
488
570
  ...r.motion ? { motion: describe(r.motion) } : {},
489
571
  ...r.masks?.length ? { motion_masks: r.masks.map((m) => [...m.box, ...m.window ?? []]) } : {},
490
572
  ...r.voice ? { voice: r.voice } : {},
@@ -530,13 +612,17 @@ var VIDEO_768P_PER_S = 0.018;
530
612
  var VIDEO_REF_768P_PER_S = 0.05;
531
613
  var VIDEO_INCLUDED_IMAGES = 2;
532
614
  var VIDEO_EXTRA_IMAGE = 0.02;
533
- var HF_VIDEO_768P_PER_S = 12;
534
- var HF_VIDEO_REF_768P_PER_S = 100 / 3;
535
- var HF_VIDEO_EXTRA_IMAGE = 40 / 3;
536
- var HF_AVATAR_IV_PHOTO_PER_S = 800 / 60;
615
+ var HF_VIDEO_768P_PER_S = 18;
616
+ var HF_VIDEO_REF_768P_PER_S = 50;
617
+ var HF_VIDEO_EXTRA_IMAGE = 20;
618
+ var HF_AVATAR_IV_PHOTO_PER_S = 1155 / 60;
619
+ var HF_AVATAR_IV_TWIN_PER_S = 2415 / 60;
620
+ var HF_LIPSYNC_SPEED_PER_S = 7;
537
621
  var MUSIC_PER_TRACK = 0.08;
538
622
  var AVATAR_IV_PER_MIN = 4.83;
539
623
  var SCRIPT_WORDS_PER_S = 2;
624
+ var HF_TTS_PER_S = 1;
625
+ var SPEECH_CHARS_PER_S = { zh: 5, en: 15 };
540
626
  function priceOf(r) {
541
627
  switch (r.type) {
542
628
  case "image": {
@@ -567,24 +653,44 @@ function priceOf(r) {
567
653
  seconds * HF_VIDEO_768P_PER_S
568
654
  );
569
655
  }
656
+ case "lipsync": {
657
+ const seconds = r.video ? probeVideo(r.video).pictureDuration : 0;
658
+ return {
659
+ usd: null,
660
+ list: null,
661
+ credits: seconds * HF_LIPSYNC_SPEED_PER_S,
662
+ basis: `lipsync at speed, ${round(seconds, 2)} s at ${HF_LIPSYNC_SPEED_PER_S} credits a second`
663
+ };
664
+ }
570
665
  case "avatar": {
571
666
  const words = (r.script ?? "").split(/\s+/).filter(Boolean).length;
572
- const seconds = Math.max(1, Math.floor(words / SCRIPT_WORDS_PER_S));
667
+ const seconds = r.audio ? probeSeconds(r.audio) : Math.max(1, Math.floor(words / SCRIPT_WORDS_PER_S));
573
668
  return at(
574
669
  Math.ceil(seconds * AVATAR_IV_PER_MIN) / 60,
575
- `avatar video, about ${seconds} s from ${words} words at $4.83 a minute`,
576
- seconds * HF_AVATAR_IV_PHOTO_PER_S
670
+ `avatar video, about ${round(seconds, 1)} s${r.audio ? "" : ` from ${words} words`} at $4.83 a minute`,
671
+ seconds * (r.avatar ? HF_AVATAR_IV_TWIN_PER_S : HF_AVATAR_IV_PHOTO_PER_S)
577
672
  );
578
673
  }
674
+ case "cutout":
675
+ return {
676
+ usd: null,
677
+ list: null,
678
+ credits: null,
679
+ basis: "background removal, not priced ahead"
680
+ };
579
681
  case "music":
580
682
  return at(MUSIC_PER_TRACK, "lyria-3-pro, $0.08 a track");
581
- case "voice":
683
+ case "voice": {
684
+ const text = r.script ?? "";
685
+ const cjk = (text.match(new RegExp("\\p{Script=Han}", "gu")) ?? []).length;
686
+ const seconds = cjk / SPEECH_CHARS_PER_S.zh + (text.length - cjk) / SPEECH_CHARS_PER_S.en;
582
687
  return {
583
688
  usd: null,
584
689
  list: null,
585
- credits: null,
586
- basis: "HeyGen does not price catalog speech ahead; it is charged per character"
690
+ credits: seconds * HF_TTS_PER_S,
691
+ basis: `about ${round(seconds, 1)} s of speech at ${HF_TTS_PER_S} credit a second, an estimate: it is charged per character`
587
692
  };
693
+ }
588
694
  }
589
695
  }
590
696
  var creditsOf = (p) => p.credits === null ? null : Math.ceil(p.credits - 1e-9);
@@ -617,6 +723,18 @@ var examples = [
617
723
  "The original's presenter re-shot clean, saying an 8 s stretch of the original voice",
618
724
  'hyperframes media-use generate --type video --reference assets/presenter-clean.png --audio assets/s02-voice.m4a --motion assets/s02-original.mp4 --mask 110,615,390,165 --prompt "the woman talks to camera, seated, soft daylight" --seconds 8 --aspect 9:16 --out assets/s02-presenter.mp4'
619
725
  ],
726
+ [
727
+ "That shot's mouth redone to the exact voice, which stays as it is",
728
+ "hyperframes media-use generate --type lipsync --video assets/s02-presenter.mp4 --audio assets/s02-voice.mp3 --out assets/s02-lips.mp4"
729
+ ],
730
+ [
731
+ "The presenter cut out of their room, on a transparent background",
732
+ "hyperframes media-use generate --type cutout --video assets/presenter.mp4 --out assets/presenter-cutout.webm"
733
+ ],
734
+ [
735
+ "The person in a photo saying a finished voice, which stays as it is",
736
+ 'hyperframes media-use generate --type avatar --photo assets/presenter.png --audio assets/vo.mp3 --prompt "seated, talks with both hands" --aspect 16:9 --out assets/host.mp4'
737
+ ],
620
738
  [
621
739
  "The person in a photo saying a script in a chosen voice",
622
740
  'hyperframes media-use generate --type avatar --photo assets/presenter.png --script "Hi, I am Ana" --voice <voice-id> --out assets/ana.mp4'
@@ -631,7 +749,7 @@ function repeated(raw, flag) {
631
749
  var generate_default = defineCommand({
632
750
  meta: {
633
751
  name: "generate",
634
- description: "Make new media on HeyGen: an image (edited from references), a video shot (from a first frame), a person speaking from a photo, a voice, or music. --plan prices it first"
752
+ description: "Make new media on HeyGen: an image (edited from references), a video shot (from a first frame), a shot's mouth redone to a voice, a person speaking from a photo, a voice, or music. --plan prices it first"
635
753
  },
636
754
  args: {
637
755
  type: {
@@ -644,14 +762,21 @@ var generate_default = defineCommand({
644
762
  description: "The project file to write, e.g. assets/plate.png",
645
763
  required: true
646
764
  },
647
- prompt: { type: "string", description: "What it shows or sounds like (image, video, music)" },
765
+ prompt: {
766
+ type: "string",
767
+ description: "What it shows or sounds like (image, video, music); avatar: how a photo moves"
768
+ },
648
769
  reference: {
649
770
  type: "string",
650
771
  description: "image: comma-separated pictures to edit from or follow; video: the person to show speaking"
651
772
  },
652
773
  audio: {
653
774
  type: "string",
654
- description: "video: speech the referenced person says, lips in sync (5\u201315 s)"
775
+ description: "video: speech the referenced person says (5\u201315 s), a reference the model re-paces; lipsync, avatar: the exact voice"
776
+ },
777
+ video: {
778
+ type: "string",
779
+ description: "lipsync: the shot whose mouth is redone; cutout: the shot cut out of its background"
655
780
  },
656
781
  motion: {
657
782
  type: "string",
@@ -668,6 +793,10 @@ var generate_default = defineCommand({
668
793
  },
669
794
  "first-frame": { type: "string", description: "video: the picture the shot starts from" },
670
795
  photo: { type: "string", description: "avatar: the person's photo" },
796
+ avatar: {
797
+ type: "string",
798
+ description: "avatar: the person's own HeyGen avatar look id, instead of --photo"
799
+ },
671
800
  script: { type: "string", description: "avatar, voice: the words spoken" },
672
801
  voice: {
673
802
  type: "string",
@@ -711,10 +840,12 @@ var generate_default = defineCommand({
711
840
  references: args.reference?.split(",").map((p) => p.trim()).filter(Boolean),
712
841
  firstFrame: args["first-frame"],
713
842
  audio: args.audio,
843
+ video: args.video,
714
844
  motion: args.motion,
715
845
  allowCuts: args["allow-cuts"],
716
846
  masks: repeated(rawArgs, "--mask").map(parseMask),
717
847
  photo: args.photo,
848
+ avatar: args.avatar,
718
849
  script: args.script,
719
850
  voice: args.voice,
720
851
  seconds: num(args.seconds, "--seconds"),
@@ -723,7 +854,7 @@ var generate_default = defineCommand({
723
854
  bpm: num(args.bpm, "--bpm"),
724
855
  instrumental: !args.vocals
725
856
  };
726
- const voice = type === "voice" || type === "avatar" ? await pickVoice(request) : void 0;
857
+ const voice = await voiceFor(request);
727
858
  if (voice) request.voice = voice.voice_id;
728
859
  const price = priceOf(request);
729
860
  const credits = creditsOf(price);
@@ -12,15 +12,15 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-SE6O4APZ.js";
15
+ } from "./chunk-PPMCILED.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-N6O2RQLQ.js";
20
+ } from "./chunk-W5AUD5OL.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-BGMMC352.js";
23
+ } from "./chunk-XX77LLFJ.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-T5ELONXY.js";
34
+ } from "./chunk-JHILL4BN.js";
35
35
  import {
36
36
  parseHTML
37
37
  } from "./chunk-GWTIFRF5.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-N6O2RQLQ.js";
13
+ } from "./chunk-W5AUD5OL.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-GWTIFRF5.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  quantizePreviewProxyBox
9
- } from "./chunk-N6O2RQLQ.js";
9
+ } from "./chunk-W5AUD5OL.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-X2PPRHKO.js";
11
+ } from "./chunk-6KV3CMY2.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-T2WJO4XM.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-N6O2RQLQ.js";
18
+ } from "./chunk-W5AUD5OL.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  FONT_ALIAS_MAP,
16
16
  resolveAliasDisplayName
17
- } from "./chunk-T5ELONXY.js";
17
+ } from "./chunk-JHILL4BN.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-GWTIFRF5.js";
@@ -3501,11 +3501,24 @@ function collectCssCustomProperties(css, customProperties) {
3501
3501
  }
3502
3502
  var FONT_SIZE_KEYWORD = /^(?:xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|smaller|larger)$/i;
3503
3503
  var FONT_SIZE_TOKEN = /^(?:\d*\.?\d+[a-z%]+|(?:calc|min|max|clamp|var)\(.*\))(?:\/\S+)?$/i;
3504
+ function maskParens(value) {
3505
+ let depth = 0;
3506
+ return value.replace(/[\s\S]/g, (char) => {
3507
+ if (char === "(")
3508
+ depth += 1;
3509
+ const inside = depth > 0;
3510
+ if (char === ")")
3511
+ depth -= 1;
3512
+ return inside ? "_" : char;
3513
+ });
3514
+ }
3504
3515
  function fontShorthandFamilies(value) {
3505
- for (const token of value.matchAll(/(?:[^\s(]|\([^)]*\))+/g)) {
3506
- const size = token[0].split("/")[0] ?? "";
3507
- if (FONT_SIZE_KEYWORD.test(size) || FONT_SIZE_TOKEN.test(token[0])) {
3508
- return value.slice(token.index + token[0].length).trim();
3516
+ for (const { 0: masked, index } of maskParens(value).matchAll(/\S+/g)) {
3517
+ const end = index + masked.length;
3518
+ const token = value.slice(index, end);
3519
+ const size = token.split("/")[0] ?? "";
3520
+ if (FONT_SIZE_KEYWORD.test(size) || FONT_SIZE_TOKEN.test(token)) {
3521
+ return value.slice(end).trim();
3509
3522
  }
3510
3523
  }
3511
3524
  return "";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeFirstFrameColour,
9
9
  probeMediaMetadata
10
- } from "./chunk-SXGXJAA7.js";
10
+ } from "./chunk-2QMEP4LR.js";
11
11
  import {
12
12
  alphaDecoderFor
13
13
  } from "./chunk-5S7W3TUO.js";
@@ -15,28 +15,28 @@ import {
15
15
  formatPreviewProxyBox,
16
16
  hdrToSdrToneMapFilter,
17
17
  isHeavyForPreview
18
- } from "./chunk-N6O2RQLQ.js";
18
+ } from "./chunk-W5AUD5OL.js";
19
19
  import {
20
20
  mkdirWithinProject,
21
21
  realProjectRoot,
22
22
  realpath
23
23
  } from "./chunk-OFQWTKPW.js";
24
- import {
25
- findFfBinary
26
- } from "./chunk-HYRPH6LL.js";
27
24
  import {
28
25
  cleanAssetUrl,
29
26
  isRemoteOrInlineUrl,
30
27
  isUnresolvedAssetPlaceholder,
31
28
  resolveExistingLocalAsset
32
29
  } from "./chunk-WVRAFHJU.js";
30
+ import {
31
+ findFfBinary
32
+ } from "./chunk-HYRPH6LL.js";
33
33
  import {
34
34
  rewriteAssetPath
35
35
  } from "./chunk-C2KEGBR3.js";
36
36
  import {
37
37
  decodeAuthoredAttribute,
38
38
  scanHtmlOpeningTags
39
- } from "./chunk-T5ELONXY.js";
39
+ } from "./chunk-JHILL4BN.js";
40
40
 
41
41
  // ../studio-server/dist/chunk-NOIHVBIQ.js
42
42
  import { statSync } from "fs";
@@ -4,21 +4,15 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
- import {
8
- HyperframesApiError,
9
- HyperframesCloudClient
10
- } from "./chunk-6A45RKAK.js";
11
7
  import {
12
8
  forceRefreshCredentials,
13
9
  resolveCloudAuthHeaders,
14
10
  resolveCloudBaseUrl
15
11
  } from "./chunk-TSQZ3DSC.js";
16
12
  import {
17
- errorBox
18
- } from "./chunk-5LOZWO2M.js";
19
- import {
20
- failCommand
21
- } from "./chunk-66W5IWLO.js";
13
+ HyperframesApiError,
14
+ HyperframesCloudClient
15
+ } from "./chunk-3XJM7XZN.js";
22
16
 
23
17
  // src/cloud/poll.ts
24
18
  var DEFAULT_POLL_INTERVAL_MS = 2e3;
@@ -110,54 +104,10 @@ function wrapWith401Retry(client) {
110
104
  });
111
105
  }
112
106
 
113
- // src/cloud/errors.ts
114
- var ERROR_CODE_HINTS = {
115
- hyperframes_project_too_large: "The zip exceeded the 200 MB limit. Run `hyperframes cloud render --dry-run` to see what stays in it, then add only verified-unneeded paths to `.hyperframesignore`.",
116
- hyperframes_render_not_found: "The render_id no longer exists \u2014 either soft-deleted or never created.",
117
- invalid_parameter: "Check the listed parameter against `hyperframes cloud render --help` for the accepted values.",
118
- authentication_failed: "Run `hyperframes auth status` to confirm your credential; `hyperframes auth login` to re-auth.",
119
- rate_limit_exceeded: "Retry after the duration in the Retry-After header."
120
- };
121
- function hintCode(err) {
122
- if (err.code === "invalid_parameter" && /^File too large\b/.test(err.message)) {
123
- return "hyperframes_project_too_large";
124
- }
125
- return err.code;
126
- }
127
- function reportApiError(stage, err, options = {}) {
128
- const hints = { ...ERROR_CODE_HINTS, ...options.extraHints };
129
- if (err instanceof HyperframesApiError) {
130
- if (err.status === 404 && options.notFound) {
131
- errorBox("Not found", options.notFound);
132
- failCommand();
133
- }
134
- const code = hintCode(err);
135
- const hint = code ? hints[code] : void 0;
136
- const title = `${stage} (HTTP ${err.status})`;
137
- if (hint) {
138
- errorBox(title, err.message, hint);
139
- } else if (options.suggestion) {
140
- errorBox(title, err.message, options.suggestion);
141
- } else if (err.code) {
142
- errorBox(title, err.message, `code: ${err.code}`);
143
- } else {
144
- errorBox(title, err.message);
145
- }
146
- failCommand();
147
- }
148
- if (err instanceof Error) {
149
- errorBox(stage, err.message, options.suggestion);
150
- failCommand();
151
- }
152
- errorBox(stage, String(err), options.suggestion);
153
- failCommand();
154
- }
155
-
156
107
  export {
157
108
  DEFAULT_POLL_INTERVAL_MS,
158
109
  DEFAULT_MAX_WAIT_MS,
159
110
  PollTimeoutError,
160
111
  pollUntilTerminal,
161
- createCloudClient,
162
- reportApiError
112
+ createCloudClient
163
113
  };