hyperframes 0.9.20 → 0.9.21

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 (244) hide show
  1. package/dist/{add-6U3Y7DEN.js → add-VQVP3JPZ.js} +11 -11
  2. package/dist/{agentPromptGenerator-2U62YSRT.js → agentPromptGenerator-PAFWQGHU.js} +6 -6
  3. package/dist/{animatedGifPrep-RC6CYTRI.js → animatedGifPrep-AK26JDVM.js} +6 -6
  4. package/dist/api.js +29 -29
  5. package/dist/{asset-ER2CUS6B.js → asset-N6RZSN44.js} +2 -2
  6. package/dist/{assetCataloger-425SRTPW.js → assetCataloger-GWF6II54.js} +7 -7
  7. package/dist/{audio-JUAMPMWA.js → audio-ZHVBBQRA.js} +15 -15
  8. package/dist/{auth-DQ52RE6K.js → auth-AJM3YSN6.js} +2 -2
  9. package/dist/{autoUpdate-YUZGZ5ZI.js → autoUpdate-GV4LPAJX.js} +2 -2
  10. package/dist/{avatars-F4HNQISE.js → avatars-5EKOR2DW.js} +10 -10
  11. package/dist/{backgroundChecks-MSOJBGL7.js → backgroundChecks-J4XJD4ET.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-33AZEDWV.js → batchRender-UKQ36JT2.js} +3 -3
  14. package/dist/{beats-WI3UU5KD.js → beats-LXYHFVPP.js} +8 -8
  15. package/dist/{benchmark-ZE5Y75YM.js → benchmark-KXR56MIT.js} +8 -8
  16. package/dist/{billing-N4BCUG7R.js → billing-3XQYSAKP.js} +10 -10
  17. package/dist/{browser-HUOPVD2U.js → browser-P52FDITF.js} +5 -5
  18. package/dist/{bundleWithLocalizedFonts-PRR3UAJT.js → bundleWithLocalizedFonts-I3KWYN6X.js} +1 -1
  19. package/dist/{capture-2QNE2DEY.js → capture-2PSBIAL2.js} +3 -3
  20. package/dist/{capture-UWQ2GBML.js → capture-SMWSGGMG.js} +13 -13
  21. package/dist/{captureCompositionFrame-S2A5KJUT.js → captureCompositionFrame-WRY5ATM7.js} +12 -12
  22. package/dist/{catalog-BQZ55PQP.js → catalog-JIO6RXSR.js} +11 -11
  23. package/dist/{catch-up-JFII6DVC.js → catch-up-A73H7VGC.js} +6 -6
  24. package/dist/{check-KPFCL46S.js → check-FI7SUTK7.js} +37 -37
  25. package/dist/{checkAudio-NTES344V.js → checkAudio-73DDBXXJ.js} +9 -9
  26. package/dist/{checkBrowser-WQWRQO2X.js → checkBrowser-X5VVYQES.js} +31 -31
  27. package/dist/{chunk-IY4I7TV4.js → chunk-2HRKRRQH.js} +2 -2
  28. package/dist/{chunk-4XOQILDV.js → chunk-3FG3YAHZ.js} +1 -1
  29. package/dist/{chunk-UXEUKILH.js → chunk-3OIUJOIR.js} +1 -1
  30. package/dist/{chunk-MQFX4OD3.js → chunk-3TLAQU62.js} +1 -1
  31. package/dist/{chunk-3WLJMGCI.js → chunk-3ZXKEGKV.js} +1 -1
  32. package/dist/{chunk-35APUSDP.js → chunk-4EL5RKLS.js} +1 -1
  33. package/dist/{chunk-IBXWPFGK.js → chunk-4EMQHF3T.js} +2 -2
  34. package/dist/{chunk-KPCCWI5Q.js → chunk-4FNJ2QNP.js} +2 -2
  35. package/dist/{chunk-NZ6JYCGU.js → chunk-4NLG5TO6.js} +3 -3
  36. package/dist/{chunk-CKZQQ2DO.js → chunk-4UXCWPHU.js} +1 -1
  37. package/dist/{chunk-JXGFZG73.js → chunk-4ZLMVX3O.js} +1 -1
  38. package/dist/{chunk-QSOIL3EE.js → chunk-5PY66UGZ.js} +3 -3
  39. package/dist/{chunk-HCUEMQB4.js → chunk-7ETNIXIN.js} +1 -1
  40. package/dist/{chunk-4EUUYYB3.js → chunk-7EUZAQD6.js} +2 -2
  41. package/dist/{chunk-LNHMJ555.js → chunk-A2NL7HGF.js} +1 -1
  42. package/dist/{chunk-FY2QFPEK.js → chunk-A4JU6QUG.js} +1 -1
  43. package/dist/{chunk-BA3FUJOU.js → chunk-BABCRBAO.js} +38 -4
  44. package/dist/{chunk-WNPIJ7UG.js → chunk-BUCJXB6D.js} +1 -1
  45. package/dist/{chunk-3KJW4NNP.js → chunk-C4KYJSSF.js} +8 -8
  46. package/dist/{chunk-OWBXXAYQ.js → chunk-CFOJE3VR.js} +2 -2
  47. package/dist/{chunk-RPSR5YSD.js → chunk-CZK7A5IB.js} +4 -4
  48. package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
  49. package/dist/{chunk-P2DAWEPF.js → chunk-D7C6NOOO.js} +2 -2
  50. package/dist/{chunk-TGSBNJYV.js → chunk-DXIGIMRP.js} +2 -2
  51. package/dist/{chunk-LDV6P3DG.js → chunk-DYPAXBNK.js} +1 -1
  52. package/dist/{chunk-GNY2WZKA.js → chunk-DZQEPGNY.js} +3 -3
  53. package/dist/{chunk-VM6PDH32.js → chunk-F4XUCHQQ.js} +1 -1
  54. package/dist/{chunk-LEVO6XYF.js → chunk-FASKJUYU.js} +33 -22
  55. package/dist/{chunk-NSNT4DNY.js → chunk-FET6WMTX.js} +2 -2
  56. package/dist/{chunk-YVFJWUSI.js → chunk-FOX7LXZ2.js} +1 -1
  57. package/dist/chunk-FRBQYFUV.js +481 -0
  58. package/dist/{chunk-WMZHESNZ.js → chunk-G5UZHDEZ.js} +2 -2
  59. package/dist/{chunk-5ECZJECP.js → chunk-G77Z4GWC.js} +1 -1
  60. package/dist/{chunk-KKNAM57Z.js → chunk-GG7RYSIU.js} +1 -1
  61. package/dist/{chunk-7PG57ERE.js → chunk-GH6GWAID.js} +1 -1
  62. package/dist/{chunk-4HWNUBW2.js → chunk-GKOSN3Q6.js} +3 -3
  63. package/dist/chunk-GREVQ2SM.js +5035 -0
  64. package/dist/{chunk-POKB2QVF.js → chunk-H7N3J7Y3.js} +2 -2
  65. package/dist/{chunk-DNWZ66ND.js → chunk-HCFBCEJT.js} +1 -1
  66. package/dist/{chunk-RFG4XUMQ.js → chunk-I7WVS7WN.js} +1 -1
  67. package/dist/{chunk-7CGSZ3OR.js → chunk-IFY5ACTF.js} +13 -13
  68. package/dist/{chunk-Q6DA3X34.js → chunk-IQR26ZJD.js} +3 -3
  69. package/dist/{chunk-PWP4W2PF.js → chunk-IRWQMKV7.js} +1 -1
  70. package/dist/{chunk-USRF4NA6.js → chunk-ITO3VCCW.js} +10 -10
  71. package/dist/{chunk-76HDNQDL.js → chunk-JNN2CTGU.js} +2 -2
  72. package/dist/{chunk-XACDCHJF.js → chunk-JT6LFFYK.js} +1 -1
  73. package/dist/{chunk-QUYTXJLE.js → chunk-L2SQTHMP.js} +1 -1
  74. package/dist/{chunk-OAQTFIWB.js → chunk-L4C4F4O3.js} +3 -3
  75. package/dist/{chunk-UH6JF4TY.js → chunk-LDO7SB4J.js} +2 -2
  76. package/dist/{chunk-TKHWUM6J.js → chunk-LGSSYJS2.js} +2 -2
  77. package/dist/{chunk-XU5LAY46.js → chunk-LIFQONFJ.js} +1 -1
  78. package/dist/{chunk-5WKW4P6P.js → chunk-LLUKDUVS.js} +28 -15
  79. package/dist/{chunk-FXPBFARU.js → chunk-LMUF3BGR.js} +1 -1
  80. package/dist/{chunk-FPM6B5X5.js → chunk-LQBZCXMR.js} +2 -2
  81. package/dist/{chunk-Y5ZW3BRK.js → chunk-M32FE7JZ.js} +3 -3
  82. package/dist/{chunk-76IGIELW.js → chunk-M7Z2SEQG.js} +2 -2
  83. package/dist/{chunk-D3ZYDQMH.js → chunk-MERPHIUD.js} +2 -2
  84. package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
  85. package/dist/{chunk-C2PQTWAH.js → chunk-MNMIIDOX.js} +1 -1
  86. package/dist/{chunk-N2I2YUL7.js → chunk-NBHVLN5J.js} +7 -7
  87. package/dist/{chunk-ZNUMTYBZ.js → chunk-NTNNGWKO.js} +3 -3
  88. package/dist/{chunk-L6XUDQW6.js → chunk-ONBYVA2L.js} +18 -7
  89. package/dist/{chunk-4J2Y6G2X.js → chunk-OQ6VGBQV.js} +1 -1
  90. package/dist/{chunk-UECTSXVZ.js → chunk-OXMEC34G.js} +1 -1
  91. package/dist/{chunk-MHW4MMV4.js → chunk-OXUX73RX.js} +10 -10
  92. package/dist/{chunk-7DGAJ7RY.js → chunk-P7WDQTQZ.js} +1 -1
  93. package/dist/{chunk-6FI5JRM3.js → chunk-PJNDSYJV.js} +301 -97
  94. package/dist/{chunk-M5CDC3VO.js → chunk-PPOJMJR5.js} +25 -15
  95. package/dist/{chunk-QYWOP6MH.js → chunk-Q2LO2ZF6.js} +3 -3
  96. package/dist/{chunk-5V3R5ZMY.js → chunk-QAES6F2D.js} +7 -7
  97. package/dist/{chunk-BQ2U65ZF.js → chunk-QXVJ33BP.js} +99 -13
  98. package/dist/{chunk-A457YCWN.js → chunk-RLY4LECT.js} +2 -2
  99. package/dist/{chunk-NHV3G6JH.js → chunk-RQIR2BOG.js} +1 -1
  100. package/dist/{chunk-5KJWA22L.js → chunk-RYRSI623.js} +5 -5
  101. package/dist/{chunk-Z745SNN4.js → chunk-TERSCNBN.js} +19 -8
  102. package/dist/{chunk-X254MPK3.js → chunk-TLNKHH52.js} +1 -1
  103. package/dist/{chunk-HIT72LVX.js → chunk-UFMWWEL3.js} +7 -7
  104. package/dist/{chunk-RONKIDIW.js → chunk-W62DJ5ZK.js} +5 -5
  105. package/dist/{chunk-PGNE33QK.js → chunk-WFEKL42K.js} +33 -15
  106. package/dist/{chunk-G2C7OTXI.js → chunk-WZCSU7ZP.js} +1 -1
  107. package/dist/{chunk-7ISXVZHB.js → chunk-XC5PF4T4.js} +4 -4
  108. package/dist/{chunk-SVOUYNKZ.js → chunk-XQUO3BOS.js} +37 -20
  109. package/dist/{chunk-XID37ELP.js → chunk-XRNXGF7I.js} +2 -2
  110. package/dist/{chunk-PAFAOFZZ.js → chunk-YALKIB2K.js} +1 -1
  111. package/dist/{chunk-SH6P5CMQ.js → chunk-YQV44DRO.js} +1 -1
  112. package/dist/{chunk-S6MXHF7C.js → chunk-YZKRMBYH.js} +1 -1
  113. package/dist/{chunk-S45SR3TL.js → chunk-ZEQOP7XA.js} +2 -2
  114. package/dist/{chunk-TCW3ALLF.js → chunk-ZFYCYUVY.js} +2 -2
  115. package/dist/{chunk-GH4QTKBM.js → chunk-ZH3SXWCV.js} +7 -7
  116. package/dist/{chunk-P2GR4V7S.js → chunk-ZNFYQMFN.js} +1 -1
  117. package/dist/{clean-5FFXB5MF.js → clean-PILJFGU2.js} +16 -16
  118. package/dist/cli.js +60 -60
  119. package/dist/{cloud-CINLC3NP.js → cloud-D7DFYONW.js} +2 -2
  120. package/dist/{cloud-XC5OSAE2.js → cloud-HBMQH4EU.js} +4 -4
  121. package/dist/{cloudrun-VVU4XERK.js → cloudrun-JZQMF5DS.js} +4 -4
  122. package/dist/commands/layout-audit.browser.js +287 -23
  123. package/dist/{compare-6ZVA7JDY.js → compare-5RSAPYJI.js} +28 -28
  124. package/dist/{compiler-4WKTHUPH.js → compiler-T4BPLRFY.js} +3 -3
  125. package/dist/{component-CYXNZPHM.js → component-DMHFV7BD.js} +3 -3
  126. package/dist/{compositions-Z53CMRFQ.js → compositions-OW776OLK.js} +10 -10
  127. package/dist/{curve-ZLVHONKG.js → curve-4GNM7DWM.js} +10 -10
  128. package/dist/{cuts-JGHDX4ND.js → cuts-M5R2LKDZ.js} +11 -11
  129. package/dist/{delete-C6KCUXEV.js → delete-MYG77L66.js} +5 -5
  130. package/dist/{deploy-3W4FAFBU.js → deploy-FGHE4FID.js} +1 -1
  131. package/dist/{describeProject-NB7JQQRZ.js → describeProject-SLAKVOOS.js} +7 -7
  132. package/dist/{diff-77IF7ZGC.js → diff-TNHEXG72.js} +29 -29
  133. package/dist/{dist-PVM257OR.js → dist-23VTYBIX.js} +9 -9
  134. package/dist/{dist-LPVHFSCW.js → dist-5ITUK4AA.js} +5 -3
  135. package/dist/{dist-2MTQQEZT.js → dist-PEDQQRFU.js} +2 -2
  136. package/dist/{doctor-7ARBZ2FZ.js → doctor-ILCPSC6S.js} +10 -10
  137. package/dist/{energy-2I6O5IQY.js → energy-SCJII6HC.js} +11 -11
  138. package/dist/{events-MCXWDE3G.js → events-D2QORX35.js} +2 -2
  139. package/dist/{events-CG6ZFBPQ.js → events-OHIGKF4W.js} +5 -5
  140. package/dist/{events-CXZTEW5W.js → events-ZMK5VRA2.js} +13 -13
  141. package/dist/{extract-NSSKZ7EO.js → extract-OD3LI3YL.js} +11 -11
  142. package/dist/{face-CZBXJIJD.js → face-SFQDTQXC.js} +11 -11
  143. package/dist/{feedback-3ZZQHXQA.js → feedback-N3JK4ULK.js} +8 -8
  144. package/dist/{ffmpeg-KOJQXOMH.js → ffmpeg-E55HQX7V.js} +6 -6
  145. package/dist/{figma-T77MIMMN.js → figma-JYVZPN5L.js} +3 -3
  146. package/dist/fontLocalizeCli.js +9 -9
  147. package/dist/{frames-GMXMQ7DQ.js → frames-BLCIN32Q.js} +12 -12
  148. package/dist/{generate-PN2N6MQV.js → generate-B7MUYYON.js} +21 -21
  149. package/dist/{get-AMP7GO2J.js → get-VQWG2NY4.js} +5 -5
  150. package/dist/{gpuPolicy-336CZTOI.js → gpuPolicy-3TMFL6TM.js} +6 -6
  151. package/dist/{grade-compare-XHR7XCIJ.js → grade-compare-LCS5CBNW.js} +29 -29
  152. package/dist/{heifImagePrep-GAATPFZJ.js → heifImagePrep-VHAJEZGL.js} +7 -7
  153. package/dist/{help-QLT7Q5CF.js → help-GSE5DFSB.js} +1 -1
  154. package/dist/{history-IBK4ICX6.js → history-RSB65UN3.js} +8 -8
  155. package/dist/hyperframe.manifest.json +1 -1
  156. package/dist/hyperframe.runtime.iife.js +73 -73
  157. package/dist/hyperframes-player.global.js +3 -3
  158. package/dist/{info-IF6TAH4N.js → info-FLLONVY5.js} +12 -12
  159. package/dist/{init-7TY3OJ6O.js → init-EAKY3LFR.js} +26 -26
  160. package/dist/{ink-PGZ7QSBH.js → ink-ZDZVD5CD.js} +11 -11
  161. package/dist/{inspect-LHLSKDYO.js → inspect-LFEK6HOL.js} +29 -29
  162. package/dist/{installer-DBTP7YGS.js → installer-5NJVGV6X.js} +4 -4
  163. package/dist/{keyframes-4M4776JR.js → keyframes-TZBDB442.js} +8 -8
  164. package/dist/{lambda-FFMB6Y76.js → lambda-RYX5NXX5.js} +10 -10
  165. package/dist/{layout-LJHS7HFD.js → layout-VATFBERH.js} +29 -29
  166. package/dist/{lint-2J5AVK6D.js → lint-QAGBHUXZ.js} +22 -12
  167. package/dist/{lintProject-2OD4CDTW.js → lintProject-BC5ISNKQ.js} +1 -1
  168. package/dist/{list-MAYBNZEL.js → list-VQZOLGEO.js} +5 -5
  169. package/dist/{localPage-EKPNDJ27.js → localPage-ZEJ7ZKIE.js} +6 -6
  170. package/dist/{login-CEU43XKU.js → login-7BL2N6JG.js} +4 -4
  171. package/dist/{look-IYTF5GLD.js → look-OKDV2W4W.js} +11 -11
  172. package/dist/{manager-DILAI3UF.js → manager-QPEMMSLW.js} +7 -7
  173. package/dist/{measure-2WZGYPYI.js → measure-WJ6TR545.js} +11 -11
  174. package/dist/{media-treatment-NEY3KFIE.js → media-treatment-QYQVLCYP.js} +12 -12
  175. package/dist/{media-use-3RF5K7J2.js → media-use-OWKQQSPJ.js} +3 -3
  176. package/dist/{models-JG3K3WHB.js → models-FZ4HL5BX.js} +10 -10
  177. package/dist/{motionShot-BXTTHXNC.js → motionShot-IHZ544WM.js} +15 -15
  178. package/dist/{normalize-audio-V42ORWPJ.js → normalize-audio-77ZTAPPL.js} +8 -8
  179. package/dist/{open-TIGOP4UL.js → open-Q7AAAYVN.js} +66 -15
  180. package/dist/{parakeetRunner-ECBLSKPA.js → parakeetRunner-TAMKXXNN.js} +11 -11
  181. package/dist/{pipeline-NAQKFYVO.js → pipeline-MK7LCHQD.js} +9 -9
  182. package/dist/{play-OCUIRYGT.js → play-WBLWBDBS.js} +19 -19
  183. package/dist/{preflight-FXN2DIKX.js → preflight-O2EH2LOC.js} +7 -7
  184. package/dist/{present-EIPGUFX2.js → present-3GW46ZYF.js} +15 -15
  185. package/dist/{preview-D3DGM36N.js → preview-MPAHNXEJ.js} +53 -499
  186. package/dist/{probe-LHGNRPYJ.js → probe-4F2PK26B.js} +11 -11
  187. package/dist/{producer-MUSGQJB5.js → producer-T462QJC7.js} +1 -1
  188. package/dist/{projectConfig-5XHCXAR2.js → projectConfig-T3WVF6H4.js} +6 -6
  189. package/dist/{publication-YHI2M2PN.js → publication-DX3VDYCI.js} +2 -2
  190. package/dist/{publish-DD4ZAHEH.js → publish-VNMKJMAK.js} +10 -10
  191. package/dist/{remove-background-AJBLAXSV.js → remove-background-7LE4IIOE.js} +10 -10
  192. package/dist/{render-32BRUXZK.js → render-5PTZ5VLW.js} +5 -5
  193. package/dist/{render-AKGMPEQ4.js → render-JKUR7OI2.js} +26 -26
  194. package/dist/{render-LCH7X3UA.js → render-RPHNBD4F.js} +31 -31
  195. package/dist/{render-batch-BGZ4XDDA.js → render-batch-X2QMZUYH.js} +5 -5
  196. package/dist/renderSetupWorker.js +1 -1
  197. package/dist/{resolver-M64IRWRP.js → resolver-AXDCEJ77.js} +4 -4
  198. package/dist/{reverse-HLLQAI77.js → reverse-DQSOSC5W.js} +1 -1
  199. package/dist/{run-Q4IUMQIY.js → run-IQLZHH6D.js} +3 -3
  200. package/dist/{screenshotCapture-INHISXPC.js → screenshotCapture-EAATIOT3.js} +7 -7
  201. package/dist/{sherpa-MQLZFNTX.js → sherpa-NPPB3DTN.js} +10 -10
  202. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
  203. package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
  204. package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
  205. package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
  206. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
  207. package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
  208. package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
  209. package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
  210. package/dist/skills/media-use/references/audio.md +2 -1
  211. package/dist/{skills-W4F5AJ2K.js → skills-S2ODBBMC.js} +8 -8
  212. package/dist/{skillsUpdateCheck-GVFHBX3G.js → skillsUpdateCheck-AOCZDRXM.js} +3 -3
  213. package/dist/{snapshot-34FUMOEG.js → snapshot-SS6WDSZ5.js} +36 -36
  214. package/dist/{src-M3NYEBA7.js → src-HHRR3UTF.js} +8 -8
  215. package/dist/{src-VL6XKFAA.js → src-MYVZPRHS.js} +5 -5
  216. package/dist/{start-A3YWCGDG.js → start-OYIXMJKF.js} +18 -18
  217. package/dist/{staticProjectServer-6NQWZP3Q.js → staticProjectServer-65X4MWEN.js} +17 -17
  218. package/dist/{status-ZBUL7MPB.js → status-JEYVWANY.js} +10 -10
  219. package/dist/studio/assets/{hyperframes-player-ZQZslutT.js → hyperframes-player-DqxUNa9H.js} +3 -3
  220. package/dist/studio/assets/{index-Bn5atbhb.js → index-CFUJyYA1.js} +1 -1
  221. package/dist/studio/assets/{index-Bz2pYyGM.js → index-Cq43Ovkf.js} +17 -17
  222. package/dist/studio/index.html +1 -1
  223. package/dist/{studio-api-CIDVEQUP.js → studio-api-GJGFGQQW.js} +9 -9
  224. package/dist/{studioServer-4FEM4AAL.js → studioServer-IS27DJNF.js} +48 -48
  225. package/dist/{sync-PXQD6JNH.js → sync-NLK2RFSR.js} +11 -11
  226. package/dist/{telemetry-W7PZ4E2A.js → telemetry-BPPPHER2.js} +5 -5
  227. package/dist/templates/_shared/AGENTS.md +3 -1
  228. package/dist/templates/_shared/CLAUDE.md +3 -1
  229. package/dist/{templates-ELZU33UU.js → templates-YWBAFFI4.js} +10 -10
  230. package/dist/{timeline-O7BR3IKC.js → timeline-FAFHG2G4.js} +17 -17
  231. package/dist/{tokens-RNFI6LFF.js → tokens-QCZBFNMS.js} +2 -2
  232. package/dist/{transcribe-GUUUSHHL.js → transcribe-2P6GMYWR.js} +23 -23
  233. package/dist/{transcribe-XQOGYK6P.js → transcribe-VL3YKFMY.js} +9 -9
  234. package/dist/{update-J37ZLNH7.js → update-NWDCG6JG.js} +9 -9
  235. package/dist/{updateCheck-ALBUZ6YM.js → updateCheck-PX4XSKDO.js} +2 -2
  236. package/dist/{upgrade-NVG73VIE.js → upgrade-VWETDZDT.js} +3 -3
  237. package/dist/{upload-HBALN6HE.js → upload-PEY7EYFV.js} +3 -2
  238. package/dist/{urlDownloader-TKEHDA5W.js → urlDownloader-7TVBPNBG.js} +5 -5
  239. package/dist/{validate-3TFHU3MJ.js → validate-HCJAHDTZ.js} +23 -23
  240. package/dist/{video-PBNQGPQO.js → video-JDUB5IFM.js} +7 -7
  241. package/dist/{voices-PF7EV4O4.js → voices-YBKCBC6K.js} +19 -19
  242. package/dist/warmCheck.js +37 -37
  243. package/package.json +1 -1
  244. package/dist/chunk-7DS3STTY.js +0 -5035
@@ -23,7 +23,7 @@ var reverse_default = defineCommand({
23
23
  description: "Open a reverse-any-video run (start)"
24
24
  },
25
25
  subCommands: {
26
- start: () => import("./start-A3YWCGDG.js").then((m) => m.default)
26
+ start: () => import("./start-OYIXMJKF.js").then((m) => m.default)
27
27
  }
28
28
  });
29
29
  export {
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  analyzeTargets,
9
9
  previewTarget
10
- } from "./chunk-KPCCWI5Q.js";
10
+ } from "./chunk-4FNJ2QNP.js";
11
11
  import "./chunk-HBAUU3IK.js";
12
- import "./chunk-6FI5JRM3.js";
12
+ import "./chunk-PJNDSYJV.js";
13
13
  import "./chunk-H6676SHA.js";
14
14
  import "./chunk-KBHBSWEE.js";
15
- import "./chunk-3XJM7XZN.js";
15
+ import "./chunk-D3NWGOXW.js";
16
16
  import "./chunk-SWC3QIEH.js";
17
17
  import "./chunk-D3UCUI7G.js";
18
18
  import "./chunk-LP7B3JLC.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-P36MALQF.js";
10
10
  import {
11
11
  screenshotOnceMore
12
- } from "./chunk-MQFX4OD3.js";
12
+ } from "./chunk-3TLAQU62.js";
13
13
  import {
14
14
  CaptureDirRefusedError,
15
15
  ensureCaptureDirSync,
@@ -17,26 +17,26 @@ import {
17
17
  } from "./chunk-EQBDKYXR.js";
18
18
  import {
19
19
  waitForPageReady
20
- } from "./chunk-5ECZJECP.js";
20
+ } from "./chunk-G77Z4GWC.js";
21
21
  import {
22
22
  isDegradableEvaluateTimeoutError
23
23
  } from "./chunk-YGGZ23BB.js";
24
- import "./chunk-PGNE33QK.js";
24
+ import "./chunk-WFEKL42K.js";
25
25
  import "./chunk-Z5J67X44.js";
26
26
  import "./chunk-5S7W3TUO.js";
27
27
  import "./chunk-D3MUHMFG.js";
28
- import "./chunk-76IGIELW.js";
28
+ import "./chunk-M7Z2SEQG.js";
29
29
  import "./chunk-YWRUQ7XZ.js";
30
30
  import "./chunk-3GXQPCJC.js";
31
- import "./chunk-SH6P5CMQ.js";
31
+ import "./chunk-YQV44DRO.js";
32
32
  import "./chunk-FXMKHHPO.js";
33
- import "./chunk-7DS3STTY.js";
33
+ import "./chunk-GREVQ2SM.js";
34
34
  import "./chunk-VC76R6W2.js";
35
35
  import "./chunk-OFQWTKPW.js";
36
36
  import "./chunk-RQVDTPGD.js";
37
37
  import "./chunk-K4MJX7SR.js";
38
38
  import "./chunk-WE42NVH7.js";
39
- import "./chunk-5WKW4P6P.js";
39
+ import "./chunk-LLUKDUVS.js";
40
40
  import "./chunk-WVRAFHJU.js";
41
41
  import "./chunk-HYRPH6LL.js";
42
42
  import "./chunk-FBN2M2HK.js";
@@ -17,33 +17,33 @@ import {
17
17
  sherpaRuntimeLoadError,
18
18
  sherpaUnsupportedReason,
19
19
  transcribeWithSherpa
20
- } from "./chunk-P2DAWEPF.js";
20
+ } from "./chunk-D7C6NOOO.js";
21
21
  import "./chunk-Z4GE5BXC.js";
22
22
  import "./chunk-3S27CPV7.js";
23
23
  import "./chunk-NL4RCLQF.js";
24
24
  import "./chunk-6BEFEWFB.js";
25
- import "./chunk-QYWOP6MH.js";
25
+ import "./chunk-Q2LO2ZF6.js";
26
26
  import "./chunk-SWC3QIEH.js";
27
- import "./chunk-C2PQTWAH.js";
28
- import "./chunk-Z745SNN4.js";
27
+ import "./chunk-MNMIIDOX.js";
28
+ import "./chunk-TERSCNBN.js";
29
29
  import "./chunk-RZ6CXJ56.js";
30
30
  import "./chunk-R4EWRIDL.js";
31
- import "./chunk-CKZQQ2DO.js";
31
+ import "./chunk-4UXCWPHU.js";
32
32
  import "./chunk-JZIEZCQM.js";
33
33
  import "./chunk-UOFAE5RF.js";
34
34
  import "./chunk-IR35BCLK.js";
35
35
  import "./chunk-HU2SPFNG.js";
36
36
  import "./chunk-A4ZTSQLW.js";
37
- import "./chunk-PGNE33QK.js";
37
+ import "./chunk-WFEKL42K.js";
38
38
  import "./chunk-Z5J67X44.js";
39
39
  import "./chunk-5S7W3TUO.js";
40
40
  import "./chunk-D3MUHMFG.js";
41
- import "./chunk-76IGIELW.js";
41
+ import "./chunk-M7Z2SEQG.js";
42
42
  import "./chunk-YWRUQ7XZ.js";
43
43
  import "./chunk-3GXQPCJC.js";
44
- import "./chunk-SH6P5CMQ.js";
44
+ import "./chunk-YQV44DRO.js";
45
45
  import "./chunk-FXMKHHPO.js";
46
- import "./chunk-7DS3STTY.js";
46
+ import "./chunk-GREVQ2SM.js";
47
47
  import "./chunk-VC76R6W2.js";
48
48
  import "./chunk-OFQWTKPW.js";
49
49
  import "./chunk-RQVDTPGD.js";
@@ -52,7 +52,7 @@ import "./chunk-X6JUUQCM.js";
52
52
  import "./chunk-KGPLIH7B.js";
53
53
  import "./chunk-K4MJX7SR.js";
54
54
  import "./chunk-WE42NVH7.js";
55
- import "./chunk-5WKW4P6P.js";
55
+ import "./chunk-LLUKDUVS.js";
56
56
  import "./chunk-WVRAFHJU.js";
57
57
  import "./chunk-HYRPH6LL.js";
58
58
  import "./chunk-FBN2M2HK.js";
@@ -23,7 +23,7 @@ http://localhost:<port>/#project/<project-name>
23
23
 
24
24
  Use the actual port and project directory name; treat `index.html` as source-code context, not the preview surface. For example, after `npx hyperframes preview --background --port 3017` in `codex-openai-video`, report `http://localhost:3017/#project/codex-openai-video`.
25
25
 
26
- Two ways a handed URL turns out dead — check both before handing it back: the URL is missing its `#project/<project-name>` hash (Studio loads but has no project to open), or the server is not actually running. Bare `preview` automatically creates a managed persistent session in a non-TTY agent shell; `--background` remains the clearest explicit form. Verify the printed URL returns HTTP 200, keep it alive for the whole review, and stop it explicitly with `npx hyperframes preview --stop` afterward. Use the printed URL as-is: HyperFrames URL-encodes project names that contain route metacharacters.
26
+ Two ways a handed URL turns out dead — check both before handing it back: the URL is missing its `#project/<project-name>` hash (Studio loads but has no project to open), or the server is not actually running. Bare `preview` automatically creates a managed persistent session in a non-TTY agent shell; `--background` remains the clearest explicit form. Verify the printed URL returns HTTP 200, keep it alive for the whole review, and stop it explicitly with `npx hyperframes preview --stop` afterward. The desktop app can't edit a project while its preview runs; `npx hyperframes open` stops the background preview before handing the project over. Use the printed URL as-is: HyperFrames URL-encodes project names that contain route metacharacters.
27
27
 
28
28
  ### Agent context from Studio selection
29
29
 
@@ -26,7 +26,7 @@
26
26
  // }
27
27
  //
28
28
  // ── audio_meta.json (output, id-keyed) ───────────────────────────────────────
29
- // { tts_provider, voice_id,
29
+ // { tts_provider, voice_id, voice_credit,
30
30
  // bgm: { path, volume, mode, query?, duration_s? } | null,
31
31
  // bgm_pending, bgm_provider, bgm_pid, bgm_log, bgm_mode, bgm_target_duration_s, …,
32
32
  // voices: [ { id, path, duration_s, words: [{id,text,start,end}] } ],
@@ -52,6 +52,8 @@ import {
52
52
  } from "./lib/tts.mjs";
53
53
  import { generateBgmDetached, inferBgmPrompt, retrieveBgm } from "./lib/bgm.mjs";
54
54
  import { BUNDLED_SFX_DIR, resolveSfx } from "./lib/sfx.mjs";
55
+ import { voiceCredit } from "./lib/voice-credit.mjs";
56
+ import { parseWords, scaleWords, stretchToWav } from "./lib/recording.mjs";
55
57
  import { mapWithConcurrency } from "./lib/concurrency.mjs";
56
58
  import { openAudioMeta } from "./lib/audio-meta.mjs";
57
59
  import { recordInManifest, voicePaths, writtenAssets } from "./lib/media-record.mjs";
@@ -127,42 +129,63 @@ let voices = prev.voices ?? [];
127
129
  let ttsProvider = prev.tts_provider ?? null;
128
130
  let voiceId = prev.voice_id ?? null;
129
131
  if (only.has("tts") && lines.length) {
130
- try {
131
- ttsProvider = pickProvider(
132
- providerOverride || (request.provider === "auto" ? null : request.provider),
133
- );
134
- } catch (e) {
135
- die(e.message);
132
+ if (lines.some((l) => !l.audio)) {
133
+ try {
134
+ ttsProvider = pickProvider(
135
+ providerOverride || (request.provider === "auto" ? null : request.provider),
136
+ );
137
+ } catch (e) {
138
+ die(e.message);
139
+ }
140
+ voiceId = await resolveVoiceId({
141
+ provider: ttsProvider,
142
+ userVoice: voiceOverride || request.voice,
143
+ lang,
144
+ });
145
+ } else {
146
+ ttsProvider = "recording"; // every line is the person's own recording: no TTS provider to pick
147
+ voiceId = null;
136
148
  }
137
- voiceId = await resolveVoiceId({
138
- provider: ttsProvider,
139
- userVoice: voiceOverride || request.voice,
140
- lang,
141
- });
142
149
  console.error(`· tts: ${ttsProvider} · voice ${voiceId} · ${lines.length} line(s)`);
143
150
  const paths = voicePaths(hyperframesDir, lines, anomalies);
151
+ // A line with `audio` is the person's own recording (path relative to the project), with optional
152
+ // `words`; `speed` applies to it like to a generated voice. Returns synthesizeOne's shape.
153
+ const useRecording = (line, abs) => {
154
+ const made = stretchToWav(resolve(hyperframesDir, String(line.audio)), abs, speed);
155
+ if (!made.ok) return made;
156
+ try {
157
+ const given = parseWords(line.words);
158
+ return { ok: true, words: given && scaleWords(given, speed), source: "recording" };
159
+ } catch (e) {
160
+ return { ok: false, error: e.message };
161
+ }
162
+ };
144
163
  const synthLine = async (line) => {
145
164
  const id = String(line.id);
146
165
  const text = String(line.text ?? "").trim();
147
- if (!text) {
166
+ if (!text && !line.audio) {
148
167
  anomalies.push(`line ${id}: empty text — skipped`);
149
168
  return null;
150
169
  }
151
170
  const rel = paths.get(id);
152
171
  const abs = join(hyperframesDir, rel);
153
- const { ok, words, error } = await synthesizeOne({
154
- provider: ttsProvider,
155
- text,
156
- voiceId,
157
- lang,
158
- speed,
159
- model: flag("tts-model", request.tts_model),
160
- style: flag("style", line.style ?? request.style),
161
- wavAbs: abs,
162
- hyperframesDir,
163
- });
172
+ const { ok, words, error, source } = line.audio
173
+ ? useRecording(line, abs)
174
+ : await synthesizeOne({
175
+ provider: ttsProvider,
176
+ text,
177
+ voiceId,
178
+ lang,
179
+ speed,
180
+ model: flag("tts-model", request.tts_model),
181
+ style: flag("style", line.style ?? request.style),
182
+ wavAbs: abs,
183
+ hyperframesDir,
184
+ });
164
185
  if (!ok) {
165
- anomalies.push(`line ${id}: TTS failed — omitted${error ? ` (${error})` : ""}`);
186
+ anomalies.push(
187
+ `line ${id}: ${line.audio ? "recording" : "TTS"} failed — omitted${error ? ` (${error})` : ""}`,
188
+ );
166
189
  return null;
167
190
  }
168
191
  let wordArr = words; // heygen: native; else transcribe
@@ -172,7 +195,13 @@ if (only.has("tts") && lines.length) {
172
195
  anomalies.push(`line ${id}: bad voice duration — omitted`);
173
196
  return null;
174
197
  }
175
- return { id, path: rel, duration_s: r3(dur), words: withWordIds(wordArr) };
198
+ return {
199
+ id,
200
+ path: rel,
201
+ duration_s: r3(dur),
202
+ words: withWordIds(wordArr),
203
+ ...(source && { source }),
204
+ };
176
205
  };
177
206
  const results = await mapWithConcurrency(lines, ttsConcurrency, synthLine);
178
207
  voices = results.filter(Boolean);
@@ -287,6 +316,7 @@ if (only.has("sfx")) {
287
316
  const meta = {
288
317
  tts_provider: ttsProvider,
289
318
  voice_id: voiceId,
319
+ voice_credit: voiceCredit(voices, ttsProvider),
290
320
  bgm,
291
321
  ...bgmFields,
292
322
  voices,
@@ -35,7 +35,7 @@ export function agentWritePath(
35
35
  export function voicePaths(hyperframesDir, lines, anomalies) {
36
36
  const taken = new Set();
37
37
  const paths = new Map();
38
- for (const line of lines.filter((l) => String(l.text ?? "").trim())) {
38
+ for (const line of lines.filter((l) => String(l.text ?? "").trim() || l.audio)) {
39
39
  const rel = agentWritePath(hyperframesDir, `assets/voice/${line.id}.wav`, { anomalies, taken });
40
40
  taken.add(rel);
41
41
  paths.set(String(line.id), rel);
@@ -60,9 +60,9 @@ export function writtenAssets({ only, lines, voices, ttsProvider, bgm, bgmFields
60
60
  path: voice.path,
61
61
  type: "voice",
62
62
  source: "generated",
63
- intent: textById.get(voice.id),
63
+ intent: textById.get(voice.id) || "your own recording",
64
64
  duration: voice.duration_s,
65
- provider: ttsProvider,
65
+ provider: voice.source ?? ttsProvider,
66
66
  });
67
67
  }
68
68
  }
@@ -3,7 +3,7 @@ import { test } from "node:test";
3
3
  import { mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { join } from "node:path";
5
5
  import { tmpdir } from "node:os";
6
- import { findByPrompt, readManifest } from "../../../scripts/lib/manifest.mjs";
6
+ import { AGENT_SOURCES, findByPrompt, readManifest } from "../../../scripts/lib/manifest.mjs";
7
7
  import { agentWritePath, recordInManifest, voicePaths, writtenAssets } from "./media-record.mjs";
8
8
 
9
9
  const noBgm = { bgm: null, bgmFields: { bgm_pending: false } };
@@ -222,3 +222,18 @@ test("a record never takes the id of a download still in flight", (t) => {
222
222
  ["bgm_002"],
223
223
  );
224
224
  });
225
+
226
+ // An engine-written copy stays an agent source, or every rerun would write a numbered copy beside it
227
+ // (AGENT_SOURCES, manifest.mjs); what says it is the person's own voice is the provider and intent.
228
+ test("a recording line is recorded as your own recording, still an engine-written file", () => {
229
+ const [asset] = writtenAssets({
230
+ only: new Set(["tts"]),
231
+ lines: [{ id: "01", audio: "take.m4a" }],
232
+ voices: [{ id: "01", path: "assets/voice/01.wav", duration_s: 2, source: "recording" }],
233
+ ttsProvider: "recording",
234
+ });
235
+
236
+ assert.equal(asset.provider, "recording");
237
+ assert.equal(asset.intent, "your own recording");
238
+ assert.ok(AGENT_SOURCES.includes(asset.source));
239
+ });
@@ -0,0 +1,53 @@
1
+ // recording.mjs — the person's own voice recording as a voice line: converted to the engine's wav,
2
+ // time-stretched by `speed` with the pitch kept, with word timings scaled to match.
3
+ import { spawnSync } from "node:child_process";
4
+ import { existsSync, mkdirSync } from "node:fs";
5
+ import { dirname } from "node:path";
6
+
7
+ // ffmpeg's atempo takes 0.5..2 per stage; chain stages for the rest of the 0.1..3 speed range.
8
+ export function atempoChain(speed) {
9
+ const stages = [];
10
+ let left = speed;
11
+ while (left > 2) {
12
+ stages.push(2);
13
+ left /= 2;
14
+ }
15
+ while (left < 0.5) {
16
+ stages.push(0.5);
17
+ left /= 0.5;
18
+ }
19
+ if (Math.abs(left - 1) > 1e-9 || stages.length === 0) stages.push(left);
20
+ return stages.map((s) => `atempo=${Number(s.toFixed(6))}`).join(",");
21
+ }
22
+
23
+ /** src -> 44.1k mono wav at wavAbs, played `speed` times faster. Returns { ok, error? }. */
24
+ export function stretchToWav(src, wavAbs, speed = 1) {
25
+ if (!existsSync(src)) return { ok: false, error: `recording not found: ${src}` };
26
+ mkdirSync(dirname(wavAbs), { recursive: true });
27
+ const filter = speed === 1 ? [] : ["-af", atempoChain(speed)];
28
+ const r = spawnSync(
29
+ "ffmpeg",
30
+ ["-y", "-loglevel", "error", "-i", src, ...filter, "-ar", "44100", "-ac", "1", wavAbs],
31
+ { encoding: "utf8" },
32
+ );
33
+ if (r.error || r.status !== 0 || !existsSync(wavAbs)) {
34
+ return { ok: false, error: `ffmpeg could not convert ${src}: ${r.error?.message ?? r.stderr}` };
35
+ }
36
+ return { ok: true };
37
+ }
38
+
39
+ /** Caller-supplied word timings ({text|word, start, end}) as [{text,start,end}], or null when absent. */
40
+ export function parseWords(words) {
41
+ if (!Array.isArray(words) || words.length === 0) return null;
42
+ return words.map((w, i) => {
43
+ const text = w?.text ?? w?.word;
44
+ if (typeof text !== "string" || !Number.isFinite(w.start) || !Number.isFinite(w.end)) {
45
+ throw new Error(`words[${i}] needs text (or word), start and end in seconds`);
46
+ }
47
+ return { text, start: w.start, end: w.end };
48
+ });
49
+ }
50
+
51
+ /** Words of a recording played `speed` times faster land at start/speed. */
52
+ export const scaleWords = (words, speed) =>
53
+ words.map((w) => ({ ...w, start: w.start / speed, end: w.end / speed }));
@@ -0,0 +1,17 @@
1
+ // voice-credit.mjs — the credits line for a run's voices, naming where each voice really came from.
2
+ const VENDORS = {
3
+ heygen: "HeyGen",
4
+ elevenlabs: "ElevenLabs",
5
+ gemini: "Google Gemini",
6
+ kokoro: "Kokoro (open-source, run locally)",
7
+ };
8
+
9
+ /** "Voice: ..." for the voices an audio run made or took in, or null when it has none. */
10
+ export function voiceCredit(voices, ttsProvider) {
11
+ const sources = new Set(voices.map((v) => v.source ?? ttsProvider).filter(Boolean));
12
+ if (sources.size === 0) return null;
13
+ const parts = [...sources].map((s) =>
14
+ s === "recording" ? "your own recording" : `AI-generated by ${VENDORS[s] ?? s}`,
15
+ );
16
+ return `Voice: ${parts.join("; ")}`;
17
+ }
@@ -0,0 +1,21 @@
1
+ import { test } from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import { voiceCredit } from "./voice-credit.mjs";
4
+
5
+ test("a generated voice is credited to the vendor that made it, not always HeyGen", () => {
6
+ assert.equal(voiceCredit([{ id: "01" }], "elevenlabs"), "Voice: AI-generated by ElevenLabs");
7
+ assert.equal(voiceCredit([{ id: "01" }], "gemini"), "Voice: AI-generated by Google Gemini");
8
+ assert.equal(voiceCredit([{ id: "01" }], "heygen"), "Voice: AI-generated by HeyGen");
9
+ });
10
+
11
+ test("a recording is credited as the person's own, and a mix names both", () => {
12
+ assert.equal(voiceCredit([{ source: "recording" }], "recording"), "Voice: your own recording");
13
+ assert.equal(
14
+ voiceCredit([{ source: "recording" }, { id: "02" }], "kokoro"),
15
+ "Voice: your own recording; AI-generated by Kokoro (open-source, run locally)",
16
+ );
17
+ });
18
+
19
+ test("no voices, no credit", () => {
20
+ assert.equal(voiceCredit([], null), null);
21
+ });
@@ -0,0 +1,139 @@
1
+ import { test } from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import { spawnSync } from "node:child_process";
4
+ import { mkdtempSync, readFileSync, writeFileSync, rmSync } from "node:fs";
5
+ import { join, dirname } from "node:path";
6
+ import { tmpdir } from "node:os";
7
+ import { fileURLToPath } from "node:url";
8
+ import { atempoChain, parseWords, scaleWords } from "./lib/recording.mjs";
9
+
10
+ const AUDIO = join(dirname(fileURLToPath(import.meta.url)), "audio.mjs");
11
+
12
+ test("atempoChain splits speeds outside ffmpeg's 0.5..2 stage range", () => {
13
+ assert.equal(atempoChain(1.5), "atempo=1.5");
14
+ assert.equal(atempoChain(3), "atempo=2,atempo=1.5");
15
+ assert.equal(atempoChain(0.25), "atempo=0.5,atempo=0.5");
16
+ });
17
+
18
+ test("parseWords takes text or word and rejects a missing time", () => {
19
+ assert.deepEqual(parseWords([{ word: "hi", start: 0, end: 1 }]), [
20
+ { text: "hi", start: 0, end: 1 },
21
+ ]);
22
+ assert.equal(parseWords(undefined), null);
23
+ assert.throws(() => parseWords([{ text: "hi", start: 0 }]), /words\[0\]/);
24
+ });
25
+
26
+ test("scaleWords moves words by 1/speed", () => {
27
+ assert.deepEqual(scaleWords([{ text: "a", start: 1, end: 2 }], 2), [
28
+ { text: "a", start: 0.5, end: 1 },
29
+ ]);
30
+ });
31
+
32
+ test("a recording line with malformed words is omitted with the reason, not a crash", () => {
33
+ const dir = mkdtempSync(join(tmpdir(), "hf-rec-"));
34
+ try {
35
+ const make = spawnSync(
36
+ "ffmpeg",
37
+ ["-y", "-loglevel", "error", "-f", "lavfi", "-i", "sine=duration=1", join(dir, "take.wav")],
38
+ { encoding: "utf8" },
39
+ );
40
+ assert.equal(make.status, 0, make.stderr);
41
+ writeFileSync(
42
+ join(dir, "audio_request.json"),
43
+ JSON.stringify({
44
+ lines: [{ id: "01", audio: "take.wav", words: [{ text: "x", start: 0 }] }],
45
+ }),
46
+ );
47
+ const run = spawnSync(
48
+ process.execPath,
49
+ [
50
+ AUDIO,
51
+ "--request",
52
+ join(dir, "audio_request.json"),
53
+ "--hyperframes",
54
+ dir,
55
+ "--out",
56
+ join(dir, "m.json"),
57
+ "--only",
58
+ "tts",
59
+ ],
60
+ { encoding: "utf8", env: { ...process.env, HOME: dir } },
61
+ );
62
+ assert.equal(run.status, 0, run.stderr);
63
+ assert.match(run.stdout, /line 01: recording failed — omitted \(words\[0\] needs text/);
64
+ assert.deepEqual(JSON.parse(readFileSync(join(dir, "m.json"), "utf8")).voices, []);
65
+ } finally {
66
+ rmSync(dir, { recursive: true, force: true });
67
+ }
68
+ });
69
+
70
+ // A 1 s gap then a 1 s tone is a "word" at 1..2 s. At speed 2 the tone must start at 0.5 s in the
71
+ // stretched file, which is where the scaled word says it is.
72
+ test("a recording at speed 2: the file is stretched and the words still land on the audio", () => {
73
+ const dir = mkdtempSync(join(tmpdir(), "hf-rec-"));
74
+ try {
75
+ const make = spawnSync(
76
+ "ffmpeg",
77
+ [
78
+ "-y",
79
+ "-loglevel",
80
+ "error",
81
+ "-f",
82
+ "lavfi",
83
+ "-i",
84
+ "anullsrc=r=44100:cl=mono",
85
+ "-f",
86
+ "lavfi",
87
+ "-i",
88
+ "sine=frequency=440:duration=1:sample_rate=44100",
89
+ "-filter_complex",
90
+ "[0]atrim=duration=1[s];[s][1]concat=n=2:v=0:a=1",
91
+ join(dir, "take.wav"),
92
+ ],
93
+ { encoding: "utf8" },
94
+ );
95
+ assert.equal(make.status, 0, make.stderr);
96
+ writeFileSync(
97
+ join(dir, "audio_request.json"),
98
+ JSON.stringify({
99
+ speed: 2,
100
+ lines: [{ id: "01", audio: "take.wav", words: [{ text: "tone", start: 1, end: 2 }] }],
101
+ }),
102
+ );
103
+ const run = spawnSync(
104
+ process.execPath,
105
+ [
106
+ AUDIO,
107
+ "--request",
108
+ join(dir, "audio_request.json"),
109
+ "--hyperframes",
110
+ dir,
111
+ "--out",
112
+ join(dir, "audio_meta.json"),
113
+ "--only",
114
+ "tts",
115
+ ],
116
+ { encoding: "utf8", env: { ...process.env, HOME: dir } },
117
+ );
118
+ assert.equal(run.status, 0, run.stderr + run.stdout);
119
+ const meta = JSON.parse(readFileSync(join(dir, "audio_meta.json"), "utf8"));
120
+ const voice = meta.voices[0];
121
+ assert.equal(meta.tts_provider, "recording");
122
+ assert.equal(voice.source, "recording");
123
+ assert.equal(meta.voice_credit, "Voice: your own recording");
124
+ assert.ok(Math.abs(voice.duration_s - 1) < 0.05, `duration ${voice.duration_s}`);
125
+ assert.deepEqual([voice.words[0].start, voice.words[0].end], [0.5, 1]);
126
+ const probe = spawnSync(
127
+ "ffmpeg",
128
+ ["-i", join(dir, voice.path), "-af", "silencedetect=noise=-40dB:d=0.2", "-f", "null", "-"],
129
+ { encoding: "utf8" },
130
+ );
131
+ const silenceEnd = Number(/silence_end: ([\d.]+)/.exec(probe.stderr)?.[1]);
132
+ assert.ok(
133
+ Math.abs(silenceEnd - voice.words[0].start) < 0.08,
134
+ `tone starts at ${silenceEnd}s, word says ${voice.words[0].start}s`,
135
+ );
136
+ } finally {
137
+ rmSync(dir, { recursive: true, force: true });
138
+ }
139
+ });
@@ -10,8 +10,9 @@ node <SKILL_DIR>/audio/scripts/audio.mjs --request ./audio_request.json --out ./
10
10
  ```
11
11
 
12
12
  - **Request** `{ provider?, voice?, lang?, speed?, tts_model?, style?, lines: [{ id, text, style?, sfx?: [names] }], bgm: { mode?, query?, prompt? } }`: `id` joins each line back to your model; `bgm.mode` = `retrieve | generate | none` (omit for auto). `--only tts,bgm,sfx` runs a subset and merges into an existing `--out`.
13
+ - **Your own recording**: a line with `audio` (a path in the project) instead of `text` is used as the voice: `{ id, audio: "take.m4a", words?: [{ text, start, end }] }`. It is converted to `assets/voice/<id>.wav`, `speed` stretches it with the pitch kept and scales `words` the same (without `words` the recording is transcribed). Its `audio_meta.json` voice has `source: "recording"`; with only recording lines `tts_provider` is `"recording"` and no provider or HeyGen sign-in is needed.
13
14
  - **Gemini narration** is opt-in with `provider: "gemini"` and an API key or service-account credentials. `tts_model` defaults to `gemini-3.8-flash-tts`; 3.8 Flash-Lite, 3.1 Flash Preview, and 2.5 Pro/Flash Preview TTS are also supported. `style` directs delivery; a line's style overrides the request's style. CLI overrides: `--tts-model`, `--style`. See `audio/references/tts.md` for a complete request. The existing automatic provider order is unchanged.
14
- - **Output** `audio_meta.json` (id-keyed): `voices[].{path,duration_s,words[]}` (word timestamps for captions), `sfx[]`, `bgm`, `total_duration_s`.
15
+ - **Output** `audio_meta.json` (id-keyed): `voice_credit` (the credits line for the voices, naming where they really came from: your recording or the vendor; use it as is), `voices[].{path,duration_s,words[]}` (word timestamps for captions), `sfx[]`, `bgm`, `total_duration_s`.
15
16
  - **HeyGen free-usage path**: HeyGen CLI auth unlocks TTS plus music retrieval; SFX come from Openverse with no account (`audio/references/sfx.md`). Local/provider-specific generators are explicit alternatives where installed; run `npx hyperframes media-use resolve --doctor` before assuming retrieval or TTS will work.
16
17
  - If BGM took the generate path (`bgm_pending: true`), run `audio/scripts/wait-bgm.mjs` before final render.
17
18
 
@@ -9,12 +9,12 @@ import {
9
9
  skillsManagedExternally,
10
10
  skills_default,
11
11
  updateSkills
12
- } from "./chunk-7ISXVZHB.js";
12
+ } from "./chunk-XC5PF4T4.js";
13
13
  import "./chunk-EXA6R6SW.js";
14
14
  import "./chunk-LISUH6KH.js";
15
15
  import "./chunk-6BEFEWFB.js";
16
- import "./chunk-4EUUYYB3.js";
17
- import "./chunk-7DGAJ7RY.js";
16
+ import "./chunk-7EUZAQD6.js";
17
+ import "./chunk-P7WDQTQZ.js";
18
18
  import "./chunk-PXVQOMKL.js";
19
19
  import "./chunk-MCDNAIFF.js";
20
20
  import "./chunk-LP7B3JLC.js";
@@ -22,9 +22,9 @@ import "./chunk-DL4OD7IA.js";
22
22
  import "./chunk-S3S4TGEH.js";
23
23
  import "./chunk-54HJ63Q2.js";
24
24
  import "./chunk-HOCC4J5C.js";
25
- import "./chunk-SH6P5CMQ.js";
25
+ import "./chunk-YQV44DRO.js";
26
26
  import "./chunk-FXMKHHPO.js";
27
- import "./chunk-7DS3STTY.js";
27
+ import "./chunk-GREVQ2SM.js";
28
28
  import "./chunk-VC76R6W2.js";
29
29
  import "./chunk-OFQWTKPW.js";
30
30
  import "./chunk-RQVDTPGD.js";
@@ -38,8 +38,8 @@ import "./chunk-GWTIFRF5.js";
38
38
  import "./chunk-2RY2LWAA.js";
39
39
  import "./chunk-WC4MTXGN.js";
40
40
  import "./chunk-EPQC3FGZ.js";
41
- import "./chunk-POKB2QVF.js";
42
- import "./chunk-LDV6P3DG.js";
41
+ import "./chunk-H7N3J7Y3.js";
42
+ import "./chunk-DYPAXBNK.js";
43
43
  import "./chunk-BR2JQQC5.js";
44
44
  import "./chunk-CMQZP52Y.js";
45
45
  import "./chunk-ISN5GRYI.js";
@@ -48,7 +48,7 @@ import "./chunk-ADVVQX4I.js";
48
48
  import "./chunk-66W5IWLO.js";
49
49
  import "./chunk-FYZFURBN.js";
50
50
  import "./chunk-QBXDU24O.js";
51
- import "./chunk-XID37ELP.js";
51
+ import "./chunk-XRNXGF7I.js";
52
52
  import "./chunk-E63BDV4Z.js";
53
53
  import "./chunk-G7VEYUZ2.js";
54
54
  import "./chunk-XT6MXC7A.js";
@@ -10,8 +10,8 @@ import {
10
10
  recordSkillsCheck,
11
11
  refreshSkillsCache,
12
12
  skillsCheckDue
13
- } from "./chunk-POKB2QVF.js";
14
- import "./chunk-LDV6P3DG.js";
13
+ } from "./chunk-H7N3J7Y3.js";
14
+ import "./chunk-DYPAXBNK.js";
15
15
  import "./chunk-BR2JQQC5.js";
16
16
  import "./chunk-CMQZP52Y.js";
17
17
  import "./chunk-ISN5GRYI.js";
@@ -20,7 +20,7 @@ import "./chunk-ADVVQX4I.js";
20
20
  import "./chunk-66W5IWLO.js";
21
21
  import "./chunk-FYZFURBN.js";
22
22
  import "./chunk-QBXDU24O.js";
23
- import "./chunk-XID37ELP.js";
23
+ import "./chunk-XRNXGF7I.js";
24
24
  import "./chunk-E63BDV4Z.js";
25
25
  import "./chunk-G7VEYUZ2.js";
26
26
  import "./chunk-XT6MXC7A.js";