hyperframes 0.8.217 → 0.8.218

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 (184) hide show
  1. package/dist/{add-AXTSRFNT.js → add-6TACQX2U.js} +6 -6
  2. package/dist/{agentPromptGenerator-52346WSZ.js → agentPromptGenerator-2OHH7TQF.js} +5 -5
  3. package/dist/{animatedGifPrep-WZHO7ZUA.js → animatedGifPrep-3TCOKQRQ.js} +5 -5
  4. package/dist/api.js +16 -16
  5. package/dist/{asset-T2CE34TV.js → asset-XGF7DP6H.js} +2 -2
  6. package/dist/{assetCataloger-2KABZLU3.js → assetCataloger-23H37VZ5.js} +6 -6
  7. package/dist/{audio-6I2AK3TZ.js → audio-IIU2JTO2.js} +14 -14
  8. package/dist/{auth-B3LLOMAG.js → auth-YXS6A6HO.js} +8 -7
  9. package/dist/{autoUpdate-TTY4BTMM.js → autoUpdate-25S52Q5S.js} +2 -2
  10. package/dist/{backgroundChecks-WKW5CTCV.js → backgroundChecks-I7EVP7FG.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{beats-5WAAC5HT.js → beats-STUURUTE.js} +9 -9
  13. package/dist/{benchmark-KFYDNWZ7.js → benchmark-APCKXZV4.js} +7 -7
  14. package/dist/{browser-LK4FYQXO.js → browser-24AXY6XT.js} +4 -4
  15. package/dist/{bundleWithLocalizedFonts-NRY45OIW.js → bundleWithLocalizedFonts-D5DHHE3J.js} +2 -2
  16. package/dist/{capture-SCXKM2WO.js → capture-6DJ63B7N.js} +3 -3
  17. package/dist/{capture-DXRZI2WW.js → capture-CPDVGCHU.js} +10 -10
  18. package/dist/{captureCompositionFrame-NDQEZBHR.js → captureCompositionFrame-UQWCB4GS.js} +8 -8
  19. package/dist/{catalog-7WRGMHVI.js → catalog-Q23ML47J.js} +6 -6
  20. package/dist/{catch-up-6QEJHTFF.js → catch-up-RS3QCE4R.js} +5 -5
  21. package/dist/{check-HNONMHQD.js → check-CTCEOX24.js} +30 -30
  22. package/dist/{checkAudio-OLNSZWWX.js → checkAudio-SINGW2W7.js} +8 -8
  23. package/dist/{checkBrowser-L2L2EEJD.js → checkBrowser-PDM2H472.js} +24 -24
  24. package/dist/{chunk-UGQFQDSV.js → chunk-35JKCWYI.js} +1 -1
  25. package/dist/{chunk-OQRO2MEK.js → chunk-3MTNYVWM.js} +2 -2
  26. package/dist/{chunk-EAUUGY4R.js → chunk-3O6TQMFR.js} +3 -3
  27. package/dist/{chunk-YQY4KVP4.js → chunk-3VIICMJF.js} +1 -1
  28. package/dist/{chunk-CH4RRRGC.js → chunk-4OWVRHSV.js} +5 -5
  29. package/dist/{chunk-JMGMOK4Z.js → chunk-4RHUYKVK.js} +2 -2
  30. package/dist/{chunk-NWD2KKM5.js → chunk-562GRMWD.js} +1 -1
  31. package/dist/{chunk-2JUNPJUM.js → chunk-576ATOOU.js} +2 -2
  32. package/dist/{chunk-5CXGDO74.js → chunk-5JMHTBGN.js} +2 -2
  33. package/dist/{chunk-UQSBVZ3H.js → chunk-5UIODBMI.js} +7 -4
  34. package/dist/{chunk-JY27IRDR.js → chunk-67YDBMLK.js} +1 -1
  35. package/dist/{chunk-6YGTOBXW.js → chunk-A5MVD5IH.js} +1 -1
  36. package/dist/{chunk-VAS6HQX3.js → chunk-BIROA7JM.js} +32 -3
  37. package/dist/{chunk-KLGJ2R4V.js → chunk-BMM6KPEK.js} +2 -2
  38. package/dist/{chunk-KH5XMMSM.js → chunk-BT5UT4XT.js} +2 -2
  39. package/dist/{chunk-WGHUHNXI.js → chunk-BWP7C7WY.js} +7 -7
  40. package/dist/{chunk-XN22HGE7.js → chunk-C2G23WQQ.js} +1 -1
  41. package/dist/{chunk-3YCAGPZK.js → chunk-CPLOVCBR.js} +18 -18
  42. package/dist/{chunk-4JHZBIBW.js → chunk-DFLWN6Y3.js} +1 -1
  43. package/dist/{chunk-5HGUY24Y.js → chunk-DWMI7CKI.js} +1 -1
  44. package/dist/{chunk-3MUFCWGK.js → chunk-FQUPVW7G.js} +3 -3
  45. package/dist/{chunk-WKNWKORX.js → chunk-G2E2DHH2.js} +3 -3
  46. package/dist/{chunk-O44FYXH5.js → chunk-GEOYME4I.js} +2 -2
  47. package/dist/{chunk-ESZ6YPQM.js → chunk-H6LEUSAT.js} +2 -2
  48. package/dist/{chunk-5XDKFCEI.js → chunk-HOTGBCX7.js} +6 -6
  49. package/dist/{chunk-K2666FKT.js → chunk-HTBHG63K.js} +1 -1
  50. package/dist/{chunk-RLT45AWC.js → chunk-IEC36WFL.js} +1 -1
  51. package/dist/{chunk-62ER6HGC.js → chunk-ILCIWNPQ.js} +1 -1
  52. package/dist/{chunk-7VZEOCUY.js → chunk-J74ZUXVU.js} +1 -1
  53. package/dist/{chunk-5SZ2HRCW.js → chunk-JH2AO4ZW.js} +1 -1
  54. package/dist/{chunk-URKDBFZV.js → chunk-KUQOUWJ4.js} +2 -2
  55. package/dist/{chunk-VS7G457O.js → chunk-LBZVTVG6.js} +1 -1
  56. package/dist/{chunk-ST5EBZTO.js → chunk-LGMRZWJS.js} +9 -3
  57. package/dist/{chunk-P42DLWIY.js → chunk-LYK7IGH4.js} +2 -2
  58. package/dist/{chunk-UVXIJYZY.js → chunk-MESSJFK3.js} +249 -298
  59. package/dist/{chunk-JF3RF6GS.js → chunk-MHZB6QSC.js} +1 -1
  60. package/dist/{chunk-V4AS2BNU.js → chunk-NEPGYMT3.js} +2 -2
  61. package/dist/{chunk-CBCZBHGK.js → chunk-NHXGFQWQ.js} +2 -2
  62. package/dist/{chunk-64TWYU4M.js → chunk-P34BNDC3.js} +5 -5
  63. package/dist/{chunk-HPRR3WD7.js → chunk-P5ANVBAG.js} +10 -10
  64. package/dist/{chunk-DEWCAOOL.js → chunk-SFBFRIKF.js} +2 -2
  65. package/dist/{chunk-W2LKSBX5.js → chunk-SJYWAEKF.js} +9 -9
  66. package/dist/{chunk-Z3HHAFEP.js → chunk-SVJAW3N3.js} +4 -4
  67. package/dist/{chunk-R7EB4M5P.js → chunk-SZMW32YW.js} +8 -8
  68. package/dist/{chunk-TCVI4ZGS.js → chunk-TCV7N2UY.js} +1 -1
  69. package/dist/{chunk-G35NVFZF.js → chunk-U2EUCTYQ.js} +4 -4
  70. package/dist/chunk-VLA6UJGH.js +139 -0
  71. package/dist/{chunk-H47FQDFU.js → chunk-VLMPZRZC.js} +1 -1
  72. package/dist/{chunk-2Q4CL6AB.js → chunk-VMTLGFAP.js} +1 -1
  73. package/dist/{chunk-MK4R3APQ.js → chunk-VP5KECBU.js} +1 -1
  74. package/dist/{chunk-MGZKDR6R.js → chunk-WHISG7MU.js} +1 -1
  75. package/dist/{chunk-L4BRJVGC.js → chunk-WSAGYFYU.js} +2 -2
  76. package/dist/{chunk-UZPWLXO6.js → chunk-WUABYDXU.js} +1 -1
  77. package/dist/{chunk-3C6O5HV2.js → chunk-X4SGGGSG.js} +11 -11
  78. package/dist/{chunk-OV6MUGZI.js → chunk-XC2DA2IA.js} +2 -2
  79. package/dist/{chunk-LPJMACTI.js → chunk-XKG4VTT5.js} +4 -4
  80. package/dist/{chunk-PNBH4ZY7.js → chunk-YBW7HTJK.js} +2 -2
  81. package/dist/{chunk-PPMLF76Z.js → chunk-YSTBSLWY.js} +1 -1
  82. package/dist/{chunk-TDNZIFJ2.js → chunk-YXZ56JUN.js} +2 -2
  83. package/dist/{chunk-42K4JLQO.js → chunk-Z5N3BHCQ.js} +1 -1
  84. package/dist/{chunk-QY7RG6K3.js → chunk-ZJNN53CS.js} +1 -1
  85. package/dist/{clean-2CK4S5ES.js → clean-MMKLFZD6.js} +15 -15
  86. package/dist/cli.js +53 -53
  87. package/dist/{cloud-QRSJMVGW.js → cloud-PYPEVKTI.js} +4 -4
  88. package/dist/{compare-ASV5QBD2.js → compare-5FYV3HXW.js} +21 -21
  89. package/dist/{compiler-CG2EXM75.js → compiler-DVUV3DGB.js} +3 -3
  90. package/dist/{component-24XLTKUQ.js → component-6WPGKSED.js} +3 -3
  91. package/dist/{compositions-AN7ETEKG.js → compositions-KF7WTF4B.js} +10 -10
  92. package/dist/{delete-OMKQ3XTL.js → delete-KZFID7WD.js} +6 -6
  93. package/dist/{deploy-3M6QRT2H.js → deploy-JU22XTWD.js} +1 -1
  94. package/dist/{dist-KXFW5H5Q.js → dist-XXBCSQYF.js} +2 -2
  95. package/dist/{doctor-ABYFP2LY.js → doctor-PI6KAIR5.js} +9 -9
  96. package/dist/{events-64QVWKTU.js → events-DE5M7353.js} +3 -3
  97. package/dist/{events-P5AFL2VZ.js → events-GTCDNRHF.js} +4 -4
  98. package/dist/{feedback-LQ2TT4XL.js → feedback-WBXTSD7V.js} +9 -9
  99. package/dist/{ffmpeg-Y6NMFQ5J.js → ffmpeg-32BKO53L.js} +5 -5
  100. package/dist/{figma-R75KTFW4.js → figma-4EX6IU6D.js} +3 -3
  101. package/dist/fontLocalizeCli.js +8 -8
  102. package/dist/{get-KB67C2T7.js → get-IDFMBDVJ.js} +6 -6
  103. package/dist/{gpuPolicy-4ERRTA5U.js → gpuPolicy-XALYIHRC.js} +5 -5
  104. package/dist/{grade-compare-NPVETP7T.js → grade-compare-IR6C2BDN.js} +22 -22
  105. package/dist/{heifImagePrep-ABLYQMTO.js → heifImagePrep-UT4MVMZK.js} +6 -6
  106. package/dist/{help-ZNJG5OJO.js → help-LNFTZ33U.js} +1 -1
  107. package/dist/{history-HUBQPMLX.js → history-CVMBLNPB.js} +7 -7
  108. package/dist/hyperframes-player.global.js +1 -1
  109. package/dist/{info-KDSQGWE5.js → info-ZR6NR7MT.js} +6 -6
  110. package/dist/{init-QEPNUQB2.js → init-3H4OWHAC.js} +23 -23
  111. package/dist/{inspect-27GJ5ZUI.js → inspect-DQB42FQJ.js} +22 -22
  112. package/dist/{keyframes-E2NNHMNK.js → keyframes-U74BN76I.js} +7 -7
  113. package/dist/{lambda-QQ2VVPRQ.js → lambda-UPISIKLU.js} +6 -6
  114. package/dist/{layout-NQQZ5KR7.js → layout-JCWBIDXF.js} +22 -22
  115. package/dist/{lint-DUYKX36O.js → lint-EELAY2XS.js} +9 -9
  116. package/dist/{lintProject-SZIPPOJR.js → lintProject-I4XPWIQZ.js} +2 -2
  117. package/dist/{list-HIZY6RSP.js → list-MDRTOKTA.js} +6 -6
  118. package/dist/{localPage-U2RMKIMN.js → localPage-BRAEGIND.js} +5 -5
  119. package/dist/{login-CLP2ZTEW.js → login-SOWERHQ6.js} +9 -8
  120. package/dist/{logout-CXGSSQ4Q.js → logout-6VFJ7WMW.js} +4 -4
  121. package/dist/{manager-CXRLWAKH.js → manager-PZ3USUXJ.js} +6 -6
  122. package/dist/{media-treatment-GSWIAGS4.js → media-treatment-A4CYTZKY.js} +12 -12
  123. package/dist/{media-use-ZRHFRO46.js → media-use-ZNTB7W6N.js} +85 -10
  124. package/dist/{models-TPHYQXOL.js → models-3LT54WBS.js} +9 -9
  125. package/dist/{motionShot-7UX4TKHZ.js → motionShot-QLD2PDVI.js} +11 -11
  126. package/dist/{normalize-audio-WBTJDFS7.js → normalize-audio-HMYHPUV4.js} +8 -8
  127. package/dist/{open-P7Z2PIPR.js → open-CYR6L7BV.js} +5 -5
  128. package/dist/{parakeetRunner-F2OX525D.js → parakeetRunner-52GLM62X.js} +11 -11
  129. package/dist/{pipeline-2ZDZGL4J.js → pipeline-KZW5KLBK.js} +8 -8
  130. package/dist/{play-YCH7MRNX.js → play-KSX3VWZ5.js} +15 -15
  131. package/dist/{preflight-MTMSPVCR.js → preflight-YJZS7QKG.js} +6 -6
  132. package/dist/{present-L4HNZ2HU.js → present-4Q3DIPFX.js} +15 -15
  133. package/dist/{preview-RWX74O5J.js → preview-XAKLHB7C.js} +12 -12
  134. package/dist/{producer-UI4FXLPQ.js → producer-Q46KBQS7.js} +1 -1
  135. package/dist/{publish-T56AYTZU.js → publish-ZGW46SKV.js} +9 -9
  136. package/dist/{refresh-VJ4FQVH2.js → refresh-I6ITGHKL.js} +5 -4
  137. package/dist/{remove-background-4Y56FLXV.js → remove-background-ENOMPCPD.js} +9 -9
  138. package/dist/{render-IJ7L24RF.js → render-5W2OBXKB.js} +23 -23
  139. package/dist/{render-UBDIHGEG.js → render-MS2SUV7X.js} +18 -18
  140. package/dist/renderSetupWorker.js +2 -2
  141. package/dist/{sherpa-6GOUBSP2.js → sherpa-BWAZ26Z4.js} +10 -10
  142. package/dist/skills/hyperframes-cli/references/cloud.md +4 -4
  143. package/dist/skills/media-use/SKILL.md +3 -1
  144. package/dist/skills/media-use/audio/references/bgm.md +1 -1
  145. package/dist/skills/media-use/audio/references/requirements.md +9 -9
  146. package/dist/skills/media-use/audio/references/tts.md +11 -11
  147. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +1 -1
  148. package/dist/skills/media-use/audio/scripts/heygen-tts.mjs +1 -1
  149. package/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +1 -1
  150. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +23 -7
  151. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +68 -10
  152. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +1 -1
  153. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +2 -2
  154. package/dist/skills/media-use/references/operations.md +11 -9
  155. package/dist/skills/media-use/references/setup-providers.md +30 -30
  156. package/dist/skills/media-use/scripts/lib/heygen-cli.mjs +2 -2
  157. package/dist/skills/media-use/scripts/lib/telemetry.mjs +2 -1
  158. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +49 -4
  159. package/dist/{skills-MAJGGJKJ.js → skills-MSNOVAV2.js} +6 -6
  160. package/dist/{skillsUpdateCheck-X6AIBUUG.js → skillsUpdateCheck-KNXASTIY.js} +3 -3
  161. package/dist/{snapshot-JKKWQSMQ.js → snapshot-UVDTIQFA.js} +26 -26
  162. package/dist/{src-LAO5IGRI.js → src-AA5O4QMT.js} +4 -4
  163. package/dist/{src-RIL5PHI6.js → src-ZMJBQF2Y.js} +7 -7
  164. package/dist/{staticProjectServer-YF5AZXGR.js → staticProjectServer-MVGWIOTX.js} +11 -11
  165. package/dist/{status-TJFZFDGS.js → status-63BKLDVW.js} +40 -11
  166. package/dist/studio/assets/{hyperframes-player-Cf9gtxqa.js → hyperframes-player-C6V-KPv8.js} +1 -1
  167. package/dist/studio/assets/{index-zVoFhoyD.js → index-BLgjf320.js} +4 -4
  168. package/dist/studio/assets/{index-CW5fPxU8.js → index-C_LGrLz-.js} +1 -1
  169. package/dist/studio/index.html +1 -1
  170. package/dist/{studio-api-Q2U6752S.js → studio-api-SW5MW272.js} +8 -8
  171. package/dist/{studioServer-SPU4MINT.js → studioServer-SXYAQVII.js} +34 -34
  172. package/dist/{telemetry-W7CBBWIN.js → telemetry-3JM3MQK2.js} +4 -4
  173. package/dist/{timeline-L26OBLW2.js → timeline-G6MHJ4MV.js} +16 -16
  174. package/dist/{tokens-PNNCTOYV.js → tokens-ROE4XPZP.js} +2 -2
  175. package/dist/{transcribe-PPZFOWMB.js → transcribe-EINIBALD.js} +9 -9
  176. package/dist/{transcribe-XZCZTOPU.js → transcribe-RGWPXLJ3.js} +16 -16
  177. package/dist/{updateCheck-SNRZKRO2.js → updateCheck-4RS5TICZ.js} +2 -2
  178. package/dist/{upgrade-WEU5MYWF.js → upgrade-7ULCD6M6.js} +2 -2
  179. package/dist/{urlDownloader-55NQFDIH.js → urlDownloader-KQOGUGS6.js} +4 -4
  180. package/dist/{validate-4QEMOBFD.js → validate-QXQ3WRA4.js} +20 -20
  181. package/dist/{video-VYOWJDYM.js → video-DDKGIJLL.js} +6 -6
  182. package/dist/warmCheck.js +30 -30
  183. package/package.json +1 -1
  184. package/dist/chunk-4WEWHZZO.js +0 -24
@@ -14,10 +14,10 @@ import {
14
14
  import {
15
15
  deliveryFlagArgs,
16
16
  parseDeliveryFlags
17
- } from "./chunk-UZPWLXO6.js";
17
+ } from "./chunk-WUABYDXU.js";
18
18
  import {
19
19
  maybePromptRenderFeedback
20
- } from "./chunk-3MUFCWGK.js";
20
+ } from "./chunk-FQUPVW7G.js";
21
21
  import {
22
22
  reportVariableIssues,
23
23
  resolveVariablesArg,
@@ -28,7 +28,7 @@ import "./chunk-XFMO3BEN.js";
28
28
  import {
29
29
  renderJobObservabilityTelemetryPayload,
30
30
  startRenderCpuSampler
31
- } from "./chunk-42K4JLQO.js";
31
+ } from "./chunk-Z5N3BHCQ.js";
32
32
  import {
33
33
  formatLintStartupMessage
34
34
  } from "./chunk-X5EOH44V.js";
@@ -37,11 +37,11 @@ import {
37
37
  } from "./chunk-DOZGTBDV.js";
38
38
  import {
39
39
  runEnvironmentChecks
40
- } from "./chunk-V4AS2BNU.js";
40
+ } from "./chunk-NEPGYMT3.js";
41
41
  import "./chunk-XQ26I3PL.js";
42
42
  import {
43
43
  createRenderCancellationScope
44
- } from "./chunk-5HGUY24Y.js";
44
+ } from "./chunk-DWMI7CKI.js";
45
45
  import {
46
46
  H264EncoderUnavailableError,
47
47
  chromeLaunchRemediation,
@@ -49,7 +49,7 @@ import {
49
49
  findFFmpeg,
50
50
  findFFprobe,
51
51
  getFFmpegInstallHint
52
- } from "./chunk-ST5EBZTO.js";
52
+ } from "./chunk-LGMRZWJS.js";
53
53
  import {
54
54
  markRenderSucceeded,
55
55
  runPostRenderStep,
@@ -58,24 +58,24 @@ import {
58
58
  import {
59
59
  RenderQualityError,
60
60
  extractSafeRenderErrorCode
61
- } from "./chunk-WGHUHNXI.js";
62
- import "./chunk-2JUNPJUM.js";
63
- import "./chunk-MK4R3APQ.js";
61
+ } from "./chunk-BWP7C7WY.js";
62
+ import "./chunk-576ATOOU.js";
63
+ import "./chunk-VP5KECBU.js";
64
64
  import "./chunk-X7MTZ4T2.js";
65
65
  import "./chunk-BZ56MTDX.js";
66
66
  import "./chunk-N4XNRHFM.js";
67
67
  import "./chunk-FI4I7CME.js";
68
68
  import {
69
69
  captureArtifactRevision
70
- } from "./chunk-JY27IRDR.js";
71
- import "./chunk-VS7G457O.js";
70
+ } from "./chunk-67YDBMLK.js";
71
+ import "./chunk-LBZVTVG6.js";
72
72
  import "./chunk-X7MTZ4T2.js";
73
73
  import {
74
74
  loadProducer
75
- } from "./chunk-K2666FKT.js";
75
+ } from "./chunk-HTBHG63K.js";
76
76
  import {
77
77
  resolveProject
78
- } from "./chunk-NWD2KKM5.js";
78
+ } from "./chunk-562GRMWD.js";
79
79
  import {
80
80
  recordRenderSuccess,
81
81
  registerRenderOutput
@@ -87,7 +87,7 @@ import {
87
87
  resolveBrowserTimeoutMsArg,
88
88
  resolveDefaultFpsArg,
89
89
  windowsChromeCrashRemediation
90
- } from "./chunk-62ER6HGC.js";
90
+ } from "./chunk-ILCIWNPQ.js";
91
91
  import "./chunk-GHWV6PIS.js";
92
92
  import {
93
93
  errorBox,
@@ -121,11 +121,11 @@ import {
121
121
  trackRenderError,
122
122
  trackRenderObservation,
123
123
  trackRenderPreflightRejected
124
- } from "./chunk-QY7RG6K3.js";
125
- import "./chunk-KLGJ2R4V.js";
124
+ } from "./chunk-ZJNN53CS.js";
125
+ import "./chunk-BMM6KPEK.js";
126
126
  import "./chunk-PXVQOMKL.js";
127
127
  import "./chunk-EQGKUPBJ.js";
128
- import "./chunk-4WEWHZZO.js";
128
+ import "./chunk-VLA6UJGH.js";
129
129
  import {
130
130
  defineCommand
131
131
  } from "./chunk-DL4OD7IA.js";
@@ -146,11 +146,11 @@ import {
146
146
  audioFailureDiagnostics,
147
147
  isVideoFrameFormat,
148
148
  sandboxDeniedRemediation
149
- } from "./chunk-TDNZIFJ2.js";
149
+ } from "./chunk-YXZ56JUN.js";
150
150
  import "./chunk-Z5J67X44.js";
151
151
  import "./chunk-5S7W3TUO.js";
152
152
  import "./chunk-D3MUHMFG.js";
153
- import "./chunk-2Q4CL6AB.js";
153
+ import "./chunk-VMTLGFAP.js";
154
154
  import "./chunk-YWRUQ7XZ.js";
155
155
  import {
156
156
  formatRenderOutputTimestamp,
@@ -184,9 +184,9 @@ import "./chunk-WE42NVH7.js";
184
184
  import {
185
185
  lintProject,
186
186
  shouldBlockRender
187
- } from "./chunk-JF3RF6GS.js";
187
+ } from "./chunk-MHZB6QSC.js";
188
188
  import "./chunk-CZGHFATT.js";
189
- import "./chunk-VAS6HQX3.js";
189
+ import "./chunk-BIROA7JM.js";
190
190
  import {
191
191
  collectSubCompositionSrcs
192
192
  } from "./chunk-PBNWRWKA.js";
@@ -227,7 +227,7 @@ import "./chunk-J3RXEDR2.js";
227
227
  import "./chunk-QBXDU24O.js";
228
228
  import {
229
229
  VERSION
230
- } from "./chunk-OV6MUGZI.js";
230
+ } from "./chunk-XC2DA2IA.js";
231
231
  import {
232
232
  normalizeErrorMessage
233
233
  } from "./chunk-E63BDV4Z.js";
@@ -849,7 +849,7 @@ function assertRenderActive(cancellation) {
849
849
  cancellation?.signal.throwIfAborted();
850
850
  }
851
851
  async function refuseLowDiskBeforeBrowserDownload(plan) {
852
- const { checkDisk } = await import("./preflight-MTMSPVCR.js");
852
+ const { checkDisk } = await import("./preflight-YJZS7QKG.js");
853
853
  await (await import("./manager-LXWVBDLM.js")).sweepKilledInstalls();
854
854
  const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
855
855
  const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
@@ -14,7 +14,7 @@ import {
14
14
  createCloudClient,
15
15
  pollUntilTerminal,
16
16
  reportApiError
17
- } from "./chunk-UGQFQDSV.js";
17
+ } from "./chunk-35JKCWYI.js";
18
18
  import {
19
19
  uploadAssetViaDirectUpload,
20
20
  uploadZipViaDirectUpload
@@ -46,38 +46,38 @@ import {
46
46
  stagePublishFiles,
47
47
  stagedSize,
48
48
  zipPublishFileMap
49
- } from "./chunk-UQSBVZ3H.js";
50
- import "./chunk-CBCZBHGK.js";
49
+ } from "./chunk-5UIODBMI.js";
50
+ import "./chunk-NHXGFQWQ.js";
51
51
  import {
52
52
  resolveCloudBaseUrl
53
- } from "./chunk-PPMLF76Z.js";
54
- import "./chunk-UVXIJYZY.js";
53
+ } from "./chunk-YSTBSLWY.js";
54
+ import "./chunk-MESSJFK3.js";
55
55
  import "./chunk-XFMO3BEN.js";
56
56
  import {
57
57
  downloadToFile
58
58
  } from "./chunk-NO6F7CLR.js";
59
59
  import {
60
60
  probeAudio
61
- } from "./chunk-7VZEOCUY.js";
61
+ } from "./chunk-J74ZUXVU.js";
62
62
  import {
63
63
  findFFmpeg,
64
64
  findFFprobe,
65
65
  getFFmpegInstallHint
66
- } from "./chunk-ST5EBZTO.js";
66
+ } from "./chunk-LGMRZWJS.js";
67
67
  import {
68
68
  resolveProject
69
- } from "./chunk-NWD2KKM5.js";
69
+ } from "./chunk-562GRMWD.js";
70
70
  import {
71
71
  errorBox,
72
72
  formatBytes,
73
73
  formatDuration
74
74
  } from "./chunk-5ZBMHUY2.js";
75
75
  import "./chunk-A4ZTSQLW.js";
76
- import "./chunk-QY7RG6K3.js";
77
- import "./chunk-KLGJ2R4V.js";
76
+ import "./chunk-ZJNN53CS.js";
77
+ import "./chunk-BMM6KPEK.js";
78
78
  import "./chunk-PXVQOMKL.js";
79
79
  import "./chunk-EQGKUPBJ.js";
80
- import "./chunk-4WEWHZZO.js";
80
+ import "./chunk-VLA6UJGH.js";
81
81
  import {
82
82
  defineCommand
83
83
  } from "./chunk-DL4OD7IA.js";
@@ -86,11 +86,11 @@ import "./chunk-54HJ63Q2.js";
86
86
  import {
87
87
  c
88
88
  } from "./chunk-2GICKZ3I.js";
89
- import "./chunk-TDNZIFJ2.js";
89
+ import "./chunk-YXZ56JUN.js";
90
90
  import "./chunk-Z5J67X44.js";
91
91
  import "./chunk-5S7W3TUO.js";
92
92
  import "./chunk-D3MUHMFG.js";
93
- import "./chunk-2Q4CL6AB.js";
93
+ import "./chunk-VMTLGFAP.js";
94
94
  import "./chunk-YWRUQ7XZ.js";
95
95
  import {
96
96
  parseAnimatedGifMetadata
@@ -107,9 +107,9 @@ import "./chunk-KGPLIH7B.js";
107
107
  import "./chunk-LAGZGKKN.js";
108
108
  import "./chunk-K4MJX7SR.js";
109
109
  import "./chunk-WE42NVH7.js";
110
- import "./chunk-JF3RF6GS.js";
110
+ import "./chunk-MHZB6QSC.js";
111
111
  import "./chunk-CZGHFATT.js";
112
- import "./chunk-VAS6HQX3.js";
112
+ import "./chunk-BIROA7JM.js";
113
113
  import {
114
114
  cleanAssetUrl,
115
115
  isRemoteOrInlineUrl,
@@ -133,7 +133,7 @@ import "./chunk-WC4MTXGN.js";
133
133
  import "./chunk-FBN2M2HK.js";
134
134
  import {
135
135
  withMeta
136
- } from "./chunk-H47FQDFU.js";
136
+ } from "./chunk-VLMPZRZC.js";
137
137
  import "./chunk-BR2JQQC5.js";
138
138
  import "./chunk-BLBMPEBX.js";
139
139
  import "./chunk-ISN5GRYI.js";
@@ -144,7 +144,7 @@ import {
144
144
  } from "./chunk-DP5LF7GF.js";
145
145
  import "./chunk-J3RXEDR2.js";
146
146
  import "./chunk-QBXDU24O.js";
147
- import "./chunk-OV6MUGZI.js";
147
+ import "./chunk-XC2DA2IA.js";
148
148
  import {
149
149
  normalizeErrorMessage
150
150
  } from "./chunk-E63BDV4Z.js";
@@ -696,7 +696,7 @@ async function prepareEntryGifs(ctx, fileMap) {
696
696
  if (!html || !/\.gif\b/i.test(html)) return;
697
697
  const sourceAssets = entryGifSources(ctx, entryPath, html);
698
698
  if (!sourceAssets) return;
699
- const prep = ctx.opts.gifPrep ?? (await import("./src-RIL5PHI6.js")).prepareAnimatedGifInputs;
699
+ const prep = ctx.opts.gifPrep ?? (await import("./src-ZMJBQF2Y.js")).prepareAnimatedGifInputs;
700
700
  const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
701
701
  ctx.tempFiles.push(outputDir);
702
702
  const result = await prep(html, {
@@ -25,9 +25,9 @@ import "./chunk-K4MJX7SR.js";
25
25
  import "./chunk-WE42NVH7.js";
26
26
  import {
27
27
  lintProject
28
- } from "./chunk-JF3RF6GS.js";
28
+ } from "./chunk-MHZB6QSC.js";
29
29
  import "./chunk-CZGHFATT.js";
30
- import "./chunk-VAS6HQX3.js";
30
+ import "./chunk-BIROA7JM.js";
31
31
  import "./chunk-PBNWRWKA.js";
32
32
  import "./chunk-KSC4O2RY.js";
33
33
  import "./chunk-NHA4NRBE.js";
@@ -17,26 +17,26 @@ import {
17
17
  sherpaRuntimeLoadError,
18
18
  sherpaUnsupportedReason,
19
19
  transcribeWithSherpa
20
- } from "./chunk-WKNWKORX.js";
20
+ } from "./chunk-G2E2DHH2.js";
21
21
  import "./chunk-NO6F7CLR.js";
22
22
  import "./chunk-Y65ZU7XY.js";
23
23
  import "./chunk-6BEFEWFB.js";
24
- import "./chunk-G35NVFZF.js";
25
- import "./chunk-7VZEOCUY.js";
26
- import "./chunk-5HGUY24Y.js";
27
- import "./chunk-YQY4KVP4.js";
24
+ import "./chunk-U2EUCTYQ.js";
25
+ import "./chunk-J74ZUXVU.js";
26
+ import "./chunk-DWMI7CKI.js";
27
+ import "./chunk-3VIICMJF.js";
28
28
  import "./chunk-R4EWRIDL.js";
29
- import "./chunk-ST5EBZTO.js";
29
+ import "./chunk-LGMRZWJS.js";
30
30
  import "./chunk-JZIEZCQM.js";
31
31
  import "./chunk-UOFAE5RF.js";
32
32
  import "./chunk-IR35BCLK.js";
33
33
  import "./chunk-HU2SPFNG.js";
34
34
  import "./chunk-A4ZTSQLW.js";
35
- import "./chunk-TDNZIFJ2.js";
35
+ import "./chunk-YXZ56JUN.js";
36
36
  import "./chunk-Z5J67X44.js";
37
37
  import "./chunk-5S7W3TUO.js";
38
38
  import "./chunk-D3MUHMFG.js";
39
- import "./chunk-2Q4CL6AB.js";
39
+ import "./chunk-VMTLGFAP.js";
40
40
  import "./chunk-YWRUQ7XZ.js";
41
41
  import "./chunk-AU7VGKCP.js";
42
42
  import "./chunk-4I7KQWZS.js";
@@ -51,9 +51,9 @@ import "./chunk-X6JUUQCM.js";
51
51
  import "./chunk-KGPLIH7B.js";
52
52
  import "./chunk-K4MJX7SR.js";
53
53
  import "./chunk-WE42NVH7.js";
54
- import "./chunk-JF3RF6GS.js";
54
+ import "./chunk-MHZB6QSC.js";
55
55
  import "./chunk-CZGHFATT.js";
56
- import "./chunk-VAS6HQX3.js";
56
+ import "./chunk-BIROA7JM.js";
57
57
  import "./chunk-PBNWRWKA.js";
58
58
  import "./chunk-KSC4O2RY.js";
59
59
  import "./chunk-NHA4NRBE.js";
@@ -1,6 +1,6 @@
1
1
  # cloud — HeyGen-hosted rendering (zero-infra)
2
2
 
3
- `hyperframes cloud render` renders a composition on HeyGen's managed cloud. The CLI zips the project, uploads it, runs the render on HeyGen's infrastructure (Chromium + FFmpeg), and downloads the finished video. Nothing to deploy, and no Chrome/FFmpeg/AWS to manage; you pay per credit.
3
+ `hyperframes cloud render` renders a composition on HeyGen's managed cloud. The CLI zips the project, uploads it, runs the render on HeyGen's infrastructure (Chromium + FFmpeg), and downloads the finished video. Nothing to deploy, and no Chrome/FFmpeg/AWS to manage; the server applies the selected credential's render allowance or billing.
4
4
 
5
5
  ```bash
6
6
  npx hyperframes auth login # one-time sign-in
@@ -10,13 +10,13 @@ npx hyperframes cloud render # zip, upload, render, download
10
10
  ## When to use managed cloud, Lambda, Cloud Run, or local
11
11
 
12
12
  - **`hyperframes render`** (local): fastest iteration loop, use while authoring.
13
- - **`hyperframes cloud render`**: zero-infra. HeyGen runs the render and you pay per credit. This is the default answer to "render in the cloud" when you don't want to manage Chrome/FFmpeg/AWS.
13
+ - **`hyperframes cloud render`**: zero-infra. HeyGen runs the render under the selected credential's allowance or billing. This is the default answer to "render in the cloud" when you don't want to manage Chrome/FFmpeg/AWS.
14
14
  - **`hyperframes lambda render`**: bring-your-own-AWS distributed rendering with chunked parallelism. Only worth it when you've already invested in AWS (see `lambda.md`).
15
15
  - **`hyperframes cloudrun render`**: bring-your-own-GCP distributed rendering through Cloud Run and Workflows. Use only when GCP ownership is explicit (see `cloudrun.md`).
16
16
 
17
17
  ## Authentication
18
18
 
19
- Cloud rendering needs a HeyGen credential, stored at `~/.heygen/credentials` (`0600`) and shared with the [`heygen` CLI](https://github.com/heygen-com/heygen-cli): sign in with one and the other picks up the session.
19
+ Cloud rendering uses the dedicated HyperFrames OAuth client and isolated `~/.hyperframes/credentials` store. A previous shared HeyGen login requires a fresh `hyperframes auth login`; the separate `heygen` CLI keeps its own login. An explicit API key uses API billing.
20
20
 
21
21
  ```bash
22
22
  npx hyperframes auth login # OAuth 2.0 + PKCE, opens the browser
@@ -30,7 +30,7 @@ npx hyperframes auth refresh # force-refresh an OAuth token before a
30
30
  npx hyperframes auth logout # clear the stored credential
31
31
  ```
32
32
 
33
- Credential resolution order (first match wins): `HEYGEN_API_KEY`, then `HYPERFRAMES_API_KEY`, then `HEYGEN_ACCESS_TOKEN` (an OAuth token a host app injects; never refreshed or saved), then `~/.heygen/credentials`. Point at a different backend with `HEYGEN_API_URL` (default `https://api.heygen.com`).
33
+ Credential resolution order (first match wins): `HEYGEN_API_KEY`, then `HYPERFRAMES_API_KEY`, then `HEYGEN_ACCESS_TOKEN` (an OAuth token a host app injects; never refreshed or saved), then `~/.hyperframes/credentials`. `HYPERFRAMES_ENV=dev` selects the dev client, OAuth/API hosts and `~/.hyperframes/dev/credentials` together. `HYPERFRAMES_CONFIG_DIR` overrides the credentials root. `HEYGEN_API_URL` overrides the API host.
34
34
 
35
35
  ## The render pipeline
36
36
 
@@ -31,7 +31,9 @@ It prints one line, `resolved <id> → <path> (<type>, <metadata>)`. List reusab
31
31
 
32
32
  **Host apps.** Inside an app that gives you its own media tools, use those first. When `HEYGEN_API_BASE` is set, the host pays for HeyGen: don't ask for the `heygen` CLI or a sign-in, and when a call is refused, relay the host's message as written and stop.
33
33
 
34
- **HeyGen.** Install the [`heygen` CLI](https://developers.heygen.com/cli) and sign in with `heygen auth login --oauth`: the OAuth session carries a free allowance on subscription credits; an API key (`--api-key`) bills API credits. Check setup with `npx hyperframes media-use resolve --doctor`. When a request needs HeyGen (a presenter or avatar, a HeyGen voice, catalog music) and `heygen` is missing or signed out, tell the person how to get it: the install link, `heygen auth login --oauth` for the free allowance, or an API key for credits. Then offer the free path or wait. Beyond `resolve`, the same CLI makes text-to-video (`heygen video-agent create`), avatar videos with a recorded track (`heygen video create`), cloned voices (`heygen voice clone create`), dubbing (`heygen lipsync`), translated videos (`heygen video-translate`) and short clips from a long video (`heygen ai-clipping`): recipes in `references/operations.md`.
34
+ **HeyGen.** Install the [`heygen` CLI](https://developers.heygen.com/cli), then sign in with `npx hyperframes auth login`. HyperFrames supplies its credential to the helper; it does not read the separate HeyGen CLI login. An explicit API key bills API credits, and the server decides OAuth eligibility and charges. Check setup with `npx hyperframes media-use resolve --doctor`. If a required provider is missing or signed out, give the install link and HyperFrames sign-in command, then offer the free path or wait.
35
+
36
+ **Direct HeyGen recipes.** Commands such as `heygen video-agent create`, `heygen video create`, `heygen voice clone create`, `heygen lipsync`, `heygen video-translate` and `heygen ai-clipping` in `references/operations.md` use the HeyGen CLI's own credential and HeyGen/API billing. They do not inherit HyperFrames OAuth or its subscription. Use only when that separate payer is selected.
35
37
 
36
38
  **Free.** Every tool in the free column needs no account; local models are opt-in installs (`references/setup-providers.md`). Without `heygen`, `resolve` for music, images and icons fails and says so; credit CC BY sounds (`audio/references/sfx.md`). `--local-only` skips every network provider.
37
39
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  One music bed per composition, produced by the shared audio engine (`scripts/audio.mjs` → `scripts/lib/bgm.mjs`). Two routes, chosen by the engine's one switch — whether a HeyGen credential is present:
4
4
 
5
- - **HeyGen retrieval — the default when credentialed.** Search HeyGen's music catalog by mood, download the top track. No generation; same `~/.heygen` / `$HEYGEN_API_KEY` credential as TTS.
5
+ - **HeyGen retrieval — the default when credentialed.** Search HeyGen's music catalog by mood, download the top track. No generation; same isolated HyperFrames credential or explicit API key as TTS.
6
6
  - **Local generation (Lyria → MusicGen) — the fallback when there is no credential** (or when asked for explicitly). Generate a WAV from a mood prompt. There is **no `npx hyperframes bgm` command**; the engine spawns `scripts/lyria-recipe.py` or an inline MusicGen script directly.
7
7
 
8
8
  > **Run the Preflight first — no credential is not a green light to silently generate locally.** Before generating, complete the sign-in **Preflight** (see `../../SKILL.md` → Preflight): run `npx hyperframes auth status`, recommend signing in, and **STOP for the user's choice** (sign in for HeyGen's music library, or continue offline with local generation). This applies to a one-off "generate a BGM" request just as much as inside a full workflow.
@@ -4,21 +4,21 @@
4
4
 
5
5
  Run `npx hyperframes auth status` to see what's configured and which engines a workflow will use (see the skill's **Preflight** section). Keys resolve in this order — **first match wins**:
6
6
 
7
- | Provider | Resolution order (first non-empty wins) | Local deps when used |
8
- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
9
- | **HeyGen** (TTS + BGM retrieval) | `$HEYGEN_API_KEY` → `$HYPERFRAMES_API_KEY` → `~/.heygen/credentials` (shared with heygen-cli; `$HEYGEN_CONFIG_DIR` overrides the dir; written by `hyperframes auth login`) | none (REST) |
10
- | **ElevenLabs** (TTS fallback) | `$ELEVENLABS_API_KEY` | `pip install elevenlabs` |
11
- | **Lyria** (BGM fallback) | `$GEMINI_API_KEY` → `$GOOGLE_API_KEY` | `pip install google-genai` |
12
- | **Kokoro** (TTS, no key) | always — final voice fallback | `pip install kokoro-onnx soundfile` |
13
- | **MusicGen** (BGM, no key) | always — final music fallback | `pip install transformers torch soundfile numpy` |
7
+ | Provider | Resolution order (first non-empty wins) | Local deps when used |
8
+ | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
9
+ | **HeyGen** (TTS + BGM retrieval) | `$HEYGEN_ACCESS_TOKEN` → `$HEYGEN_API_KEY` → `$HYPERFRAMES_API_KEY` → `~/.hyperframes/credentials` (`$HYPERFRAMES_CONFIG_DIR` overrides the root; dev uses `dev/`) | none (REST) |
10
+ | **ElevenLabs** (TTS fallback) | `$ELEVENLABS_API_KEY` | `pip install elevenlabs` |
11
+ | **Lyria** (BGM fallback) | `$GEMINI_API_KEY` → `$GOOGLE_API_KEY` | `pip install google-genai` |
12
+ | **Kokoro** (TTS, no key) | always — final voice fallback | `pip install kokoro-onnx soundfile` |
13
+ | **MusicGen** (BGM, no key) | always — final music fallback | `pip install transformers torch soundfile numpy` |
14
14
 
15
- `hyperframes auth login` (browser OAuth) is the recommended setup: one sign-in, every project, no per-repo `.env`. An OAuth login is sent as `Authorization: Bearer`; an API key as `X-Api-Key`; both are tagged with `X-HeyGen-Source: cli`. OAuth CLI users can consume the web-plan free allowance for HeyGen TTS (10 min/month); API keys follow the normal API billing path. With no HeyGen credential, voice/BGM run fully locally (Kokoro / MusicGen) — `hyperframes auth status` and `hyperframes doctor` both report whether those local deps are installed.
15
+ `hyperframes auth login` (browser OAuth) is the recommended setup: one sign-in, every project, no per-repo `.env`. An OAuth login is sent as `Authorization: Bearer`; an API key as `X-Api-Key`; only OAuth is tagged with `X-HeyGen-Source: cli`. The server decides HyperFrames eligibility and charges; API keys use API billing. An expired or foreign OAuth session requires refresh/sign-in and never selects a saved API key. With no HeyGen credential, voice/BGM run fully locally (Kokoro / MusicGen) — `hyperframes auth status` and `hyperframes doctor` both report whether those local deps are installed.
16
16
 
17
17
  ## Model caches & system dependencies
18
18
 
19
19
  Each command downloads its own model on first run and caches it under `~/.cache/hyperframes/`:
20
20
 
21
- - **TTS (HeyGen)** — no local deps; needs a HeyGen credential + `ffmpeg` on PATH (to transcode the mp3 response to `.wav`). Credential resolves like the CLI: `$HEYGEN_API_KEY` → `$HYPERFRAMES_API_KEY` → `~/.heygen/credentials` (shared with heygen-cli; run `npx hyperframes auth login`). An OAuth login is sent as `Authorization: Bearer`; an API key as `X-Api-Key`; both include `X-HeyGen-Source: cli` so the backend can apply CLI OAuth free usage.
21
+ - **TTS (HeyGen)** — no local deps; needs a HeyGen credential + `ffmpeg` on PATH (to transcode the mp3 response to `.wav`). Credential resolves like the CLI: the priority above; run `npx hyperframes auth login` for its isolated OAuth store. An OAuth login is sent as `Authorization: Bearer`; an API key as `X-Api-Key`; only OAuth includes `X-HeyGen-Source: cli`; the server selects billing from the verified credential.
22
22
  - **TTS (ElevenLabs)** — same as HeyGen: API key + `ffmpeg`.
23
23
  - **TTS (Kokoro)** — Kokoro-82M (~311 MB) + voices (~27 MB) in `tts/`. Requires Python 3.8+ with `kokoro-onnx` and `soundfile` (`pip install kokoro-onnx soundfile`). Non-English text also needs `espeak-ng` system-wide.
24
24
  - **BGM (Lyria)** — needs `$GEMINI_API_KEY` or `$GOOGLE_API_KEY` + `pip install google-genai`. No local model cache.
@@ -40,11 +40,11 @@ Gemini is an explicit alternative to the automatic provider order below. A
40
40
  request to use Gemini already chooses the provider; do not redirect that user
41
41
  to HeyGen sign-in. Read the Gemini section for its credential requirement.
42
42
 
43
- | Order | Provider | Env trigger | Voice IDs | Word timestamps | Audio format |
44
- | ----- | ----------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------- | -------------------- |
45
- | 1 | HeyGen (Starfish) | `$HEYGEN_ACCESS_TOKEN` / `$HEYGEN_API_KEY` / `~/.heygen/credentials` | UUIDs from `GET /v3/voices?engine=starfish`, or your cloned voice ids (`heygen-voice.mjs`) | **Yes** (`word_timestamps[]` in response) | mp3 → wav via ffmpeg |
46
- | 2 | ElevenLabs | `$ELEVENLABS_API_KEY` | UUIDs from elevenlabs.io dashboard | No | mp3 → wav via ffmpeg |
47
- | 3 | Kokoro-82M | always (local fallback) | `am_michael`, `af_heart`, … (54 voices) | No | wav direct |
43
+ | Order | Provider | Env trigger | Voice IDs | Word timestamps | Audio format |
44
+ | ----- | ----------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------- | -------------------- |
45
+ | 1 | HeyGen (Starfish) | `$HEYGEN_ACCESS_TOKEN` / `$HEYGEN_API_KEY` / `~/.hyperframes/credentials` | UUIDs from `GET /v3/voices?engine=starfish`, or your cloned voice ids (`heygen-voice.mjs`) | **Yes** (`word_timestamps[]` in response) | mp3 → wav via ffmpeg |
46
+ | 2 | ElevenLabs | `$ELEVENLABS_API_KEY` | UUIDs from elevenlabs.io dashboard | No | mp3 → wav via ffmpeg |
47
+ | 3 | Kokoro-82M | always (local fallback) | `am_michael`, `af_heart`, … (54 voices) | No | wav direct |
48
48
 
49
49
  ```bash
50
50
  # Local Kokoro CLI
@@ -61,12 +61,12 @@ no CLI provider plumbing:
61
61
  The script resolves a HeyGen credential the same way the CLI does — first source
62
62
  wins: a host-injected OAuth `$HEYGEN_ACCESS_TOKEN` → `$HEYGEN_API_KEY` →
63
63
  `$HYPERFRAMES_API_KEY` → a project `.env` (auto-loaded,
64
- walks up ≤5 dirs) → `~/.heygen/credentials` (shared with heygen-cli;
65
- `$HEYGEN_CONFIG_DIR` overrides the dir). An OAuth login is sent as
66
- `Authorization: Bearer`; an API key as `X-Api-Key`; both include
67
- `X-HeyGen-Source: cli`. OAuth CLI users can consume the web-plan free allowance
68
- (10 min/month) before paid usage; API keys follow normal API billing. If the
69
- only credential is an expired OAuth token it stops with a hint to run
64
+ walks up ≤5 dirs) → `~/.hyperframes/credentials` (isolated from heygen-cli;
65
+ `$HYPERFRAMES_CONFIG_DIR` overrides the root; `HYPERFRAMES_ENV=dev` uses `dev/`). An OAuth login is sent as
66
+ `Authorization: Bearer`; an API key as `X-Api-Key`; only OAuth includes
67
+ `X-HeyGen-Source: cli`. The server decides HyperFrames eligibility and charges;
68
+ explicit API keys use API billing. An expired or foreign OAuth session stops
69
+ rather than selecting a saved API key, with a hint to run
70
70
  `npx hyperframes auth refresh`.
71
71
 
72
72
  ```bash
@@ -90,7 +90,7 @@ fs.writeFileSync(path.join(args[args.indexOf('--dir')+1], 'transcript.json'), JS
90
90
  encoding: "utf8",
91
91
  env: {
92
92
  ...process.env,
93
- HEYGEN_CONFIG_DIR: config,
93
+ HYPERFRAMES_CONFIG_DIR: config,
94
94
  HEYGEN_API_KEY: "",
95
95
  HYPERFRAMES_API_KEY: "",
96
96
  GEMINI_API_KEY: "fixture-key",
@@ -13,7 +13,7 @@
13
13
  //
14
14
  // Flags: -o/--output (.wav → ffmpeg transcode; .mp3 → raw bytes), --words,
15
15
  // --voice (starfish id), --speed, --lang, --list.
16
- // Requires: $HEYGEN_API_KEY / OAuth ~/.heygen credentials and ffmpeg for .wav output.
16
+ // Requires: $HEYGEN_API_KEY / OAuth ~/.hyperframes credentials and ffmpeg for .wav output.
17
17
 
18
18
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
19
19
  import { dirname, resolve } from "node:path";
@@ -124,7 +124,7 @@ test("CLI partial run retains unselected voices, BGM and SFX", (t) => {
124
124
  encoding: "utf8",
125
125
  env: {
126
126
  ...process.env,
127
- HEYGEN_CONFIG_DIR: dir,
127
+ HYPERFRAMES_CONFIG_DIR: dir,
128
128
  HEYGEN_API_KEY: "",
129
129
  HYPERFRAMES_API_KEY: "",
130
130
  },
@@ -3,8 +3,8 @@ import { fetchMedia } from "../../../scripts/lib/media-fetch.mjs";
3
3
  // pipeline. The credential resolver matches the hyperframes CLI auth: first
4
4
  // usable source wins — a host gateway ($HEYGEN_API_BASE with its own
5
5
  // $HEYGEN_API_KEY) → a host-injected OAuth $HEYGEN_ACCESS_TOKEN (Bearer) →
6
- // $HEYGEN_API_KEY / $HYPERFRAMES_API_KEY → a nearby .env → ~/.heygen/
7
- // credentials (oauth → Bearer, else api_key → X-Api-Key; $HEYGEN_CONFIG_DIR
6
+ // $HEYGEN_API_KEY / $HYPERFRAMES_API_KEY → a nearby .env → ~/.hyperframes/
7
+ // credentials (OAuth never falls back to an API key; $HYPERFRAMES_CONFIG_DIR
8
8
  // overrides the dir). $HEYGEN_API_BASE moves every request to that host, as it
9
9
  // does for the heygen CLI; plain HTTP needs $HEYGEN_ALLOW_HTTP=1, as there.
10
10
  // Vendored so the skill ships standalone. Pure node.
@@ -20,7 +20,8 @@ export const HEYGEN_BASE = "https://api.heygen.com/v3";
20
20
  // in the clear, so it needs $HEYGEN_ALLOW_HTTP=1, the heygen CLI's own rule.
21
21
  export function heygenBase() {
22
22
  const host = process.env.HEYGEN_API_BASE?.trim().replace(/\/+$/, "");
23
- if (!host) return HEYGEN_BASE;
23
+ if (!host)
24
+ return process.env.HYPERFRAMES_ENV === "dev" ? "https://api.dev.heygen.com/v3" : HEYGEN_BASE;
24
25
  if (host.startsWith("http://") && process.env.HEYGEN_ALLOW_HTTP !== "1")
25
26
  throw new Error(
26
27
  `HEYGEN_API_BASE (${host}) uses HTTP, which sends the key in plaintext. Set HEYGEN_ALLOW_HTTP=1 to allow it.`,
@@ -104,7 +105,7 @@ export function heygenCredential() {
104
105
  }
105
106
 
106
107
  // heygenCredential's answer, or { unreadable: { file, code } } when the credentials path exists but cannot be read
107
- // (a folder, a locked ~/.heygen), so heygenAuthHeaders can say to fix that path: logging in again would fail there too.
108
+ // (a folder, a locked ~/.hyperframes), so heygenAuthHeaders can say to fix that path: logging in again would fail there too.
108
109
  // Read without checking first, so the file cannot change between a check and the read.
109
110
  function resolveCredential() {
110
111
  const gatewayKey = hostGatewayKey();
@@ -116,7 +117,8 @@ function resolveCredential() {
116
117
  const envKey = process.env.HEYGEN_API_KEY || process.env.HYPERFRAMES_API_KEY;
117
118
  if (envKey) return { headers: { "X-Api-Key": envKey } };
118
119
 
119
- const file = join(process.env.HEYGEN_CONFIG_DIR || join(homedir(), ".heygen"), "credentials");
120
+ const root = process.env.HYPERFRAMES_CONFIG_DIR || join(homedir(), ".hyperframes");
121
+ const file = join(root, ...(process.env.HYPERFRAMES_ENV === "dev" ? ["dev"] : []), "credentials");
120
122
  let raw;
121
123
  try {
122
124
  raw = readFileSync(file, "utf8").trim();
@@ -136,9 +138,23 @@ function resolveCredential() {
136
138
  }
137
139
  const oauth = cred.oauth;
138
140
  if (oauth?.access_token) {
141
+ const expectedClient =
142
+ process.env.HYPERFRAMES_OAUTH_CLIENT_ID ||
143
+ (process.env.HYPERFRAMES_ENV === "dev"
144
+ ? "9QoaiwCZov9O0cAkC4OZbR4p"
145
+ : "Zg3LF4FCLoeJoGs2YqMtZ17g");
146
+ const expectedTokenEndpoint =
147
+ process.env.HYPERFRAMES_OAUTH_TOKEN_URL ||
148
+ `https://api2.${process.env.HYPERFRAMES_ENV === "dev" ? "dev." : ""}heygen.com/v1/oauth/token`;
149
+ if (
150
+ !expectedClient ||
151
+ oauth.client_id !== expectedClient ||
152
+ oauth.token_endpoint !== expectedTokenEndpoint
153
+ )
154
+ return { expired: true };
139
155
  const expired = oauth.expires_at && new Date(oauth.expires_at).getTime() - 60_000 < Date.now();
140
156
  if (!expired) return { headers: { Authorization: `Bearer ${oauth.access_token}` } };
141
- if (!cred.api_key) return { expired: true };
157
+ return { expired: true };
142
158
  }
143
159
  if (cred.api_key) return { headers: { "X-Api-Key": cred.api_key } };
144
160
  return null;
@@ -176,7 +192,7 @@ export function heygenAuthHeaders() {
176
192
  "HeyGen OAuth token expired — run `npx hyperframes auth refresh` (or `npx hyperframes auth login`)",
177
193
  );
178
194
  throw new Error(
179
- "no HeyGen credentials — set $HEYGEN_API_KEY, or run `npx hyperframes auth login` (writes ~/.heygen/credentials)",
195
+ "no HyperFrames credentials — set $HEYGEN_API_KEY, or run `npx hyperframes auth login` (writes ~/.hyperframes/credentials)",
180
196
  );
181
197
  }
182
198