hyperframes 0.8.225 → 0.8.226

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 (224) hide show
  1. package/dist/{add-ZGNY2AXJ.js → add-3NBOSGKQ.js} +12 -12
  2. package/dist/{agentPromptGenerator-GG4FFZH7.js → agentPromptGenerator-GQSDTAV5.js} +7 -7
  3. package/dist/{animatedGifPrep-NVDUG2CD.js → animatedGifPrep-UXFFDGA7.js} +7 -7
  4. package/dist/api.js +23 -23
  5. package/dist/{asset-UC3OQBB3.js → asset-VQVAYC7E.js} +2 -2
  6. package/dist/{assetCataloger-WQTNJMZU.js → assetCataloger-C6KNE2IQ.js} +8 -8
  7. package/dist/{audio-T6RWZHAA.js → audio-2KULGXHA.js} +17 -17
  8. package/dist/{auth-FSXEGF3B.js → auth-QNMLPJOW.js} +5 -5
  9. package/dist/{autoUpdate-LOBHDWAA.js → autoUpdate-VFQQ47UD.js} +2 -2
  10. package/dist/{backgroundChecks-RBFWIWBP.js → backgroundChecks-SSQ2U3ZY.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-LDZ6NO2X.js → batchRender-Y45PZC3Q.js} +3 -3
  13. package/dist/{beats-WFPPVM6N.js → beats-YSJT4NUG.js} +10 -10
  14. package/dist/{benchmark-7MYD5S26.js → benchmark-6UOMMUXF.js} +9 -9
  15. package/dist/{billing-2BJTLFDX.js → billing-WNOAP6KO.js} +4 -4
  16. package/dist/{browser-6C4IDYQE.js → browser-GM4ZTCRQ.js} +4 -4
  17. package/dist/{bundleWithLocalizedFonts-ARTT664T.js → bundleWithLocalizedFonts-CUTSKVRK.js} +2 -2
  18. package/dist/{capture-TWZ5DQHP.js → capture-J24XSJTZ.js} +17 -17
  19. package/dist/{capture-7TFC65RN.js → capture-SZ65WG5Z.js} +3 -3
  20. package/dist/{captureCompositionFrame-EMP6R3F6.js → captureCompositionFrame-5UUXIOF2.js} +13 -12
  21. package/dist/{catalog-W4RJO4FE.js → catalog-5EQFE3BC.js} +12 -12
  22. package/dist/{catch-up-OOCJH3O6.js → catch-up-ASBRKHDL.js} +5 -5
  23. package/dist/{check-BPPHG2CF.js → check-BA4SSXPY.js} +39 -38
  24. package/dist/{checkAudio-QEGCKX2V.js → checkAudio-TU4GPHIR.js} +10 -10
  25. package/dist/{checkBrowser-4JDYYAVA.js → checkBrowser-27SFNNPD.js} +33 -32
  26. package/dist/chunk-262C25DQ.js +31 -0
  27. package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
  28. package/dist/{chunk-4A643C3B.js → chunk-2IQONCMF.js} +7 -7
  29. package/dist/{chunk-OZMZFJDW.js → chunk-2JBCK6DX.js} +1 -1
  30. package/dist/{chunk-TRPNLI6V.js → chunk-35LAWHTD.js} +23 -6
  31. package/dist/{chunk-LWTT7I7X.js → chunk-37PS2IPO.js} +1 -1
  32. package/dist/{chunk-SIYDHVN2.js → chunk-3V3XMQEF.js} +1 -1
  33. package/dist/{chunk-7RTPHNOO.js → chunk-3XYDZQJF.js} +7 -4
  34. package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
  35. package/dist/{chunk-RR5QE7DB.js → chunk-4XYLQYUE.js} +18 -14
  36. package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
  37. package/dist/{chunk-WQCVZEXH.js → chunk-5TXYCG4M.js} +6 -6
  38. package/dist/{chunk-2YZD6CAF.js → chunk-5X65O5WM.js} +10 -3
  39. package/dist/{chunk-ADOBHVHW.js → chunk-6AEHVBMX.js} +2 -2
  40. package/dist/{chunk-G6Z47UQP.js → chunk-6CU2ZQGW.js} +26 -13
  41. package/dist/{chunk-EECV7SDN.js → chunk-6EQSJ7MT.js} +1 -1
  42. package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
  43. package/dist/{chunk-ACUVSKUI.js → chunk-76N526VX.js} +13 -13
  44. package/dist/{chunk-KDF67KEB.js → chunk-7LUZ4RQX.js} +13 -13
  45. package/dist/{chunk-5HGS5MGD.js → chunk-7UKRCWBO.js} +271 -122
  46. package/dist/{chunk-GE4ABM5K.js → chunk-7WNPWUJP.js} +3 -3
  47. package/dist/{chunk-3HRQI6LJ.js → chunk-A23K6P7L.js} +1 -1
  48. package/dist/{chunk-GZPGTGRV.js → chunk-ABNPD4NF.js} +1 -1
  49. package/dist/{chunk-M4NN4AHH.js → chunk-AMTAKSKJ.js} +9 -9
  50. package/dist/{chunk-UCPEABYK.js → chunk-APCGOECM.js} +2 -2
  51. package/dist/{chunk-CGX4EOGT.js → chunk-B243Y7MM.js} +3 -3
  52. package/dist/{chunk-A25SCSOK.js → chunk-B52P2FU2.js} +1 -1
  53. package/dist/{chunk-BTDKWWND.js → chunk-B7OI3WAR.js} +1 -1
  54. package/dist/{chunk-4Z2SU2VC.js → chunk-BD2CQDXP.js} +18 -18
  55. package/dist/{chunk-4K6AS5TX.js → chunk-BJ3Q3XK7.js} +313 -149
  56. package/dist/{chunk-SVGHIMPQ.js → chunk-CRIVUWLA.js} +2 -2
  57. package/dist/{chunk-2EH3WQCS.js → chunk-CU3SVSKX.js} +5 -5
  58. package/dist/{chunk-3E2BO3L3.js → chunk-DGQOBTFQ.js} +1 -1
  59. package/dist/{chunk-IJWDVOIO.js → chunk-DW7W4J7D.js} +2 -2
  60. package/dist/{chunk-IB7I5IEC.js → chunk-EJEHDDVX.js} +1 -1
  61. package/dist/{chunk-35NDLXHZ.js → chunk-EQGBGOQQ.js} +9 -9
  62. package/dist/{chunk-HW6HTTBZ.js → chunk-ETH6WXKZ.js} +1 -1
  63. package/dist/{chunk-T5KG6H6L.js → chunk-EYDV3MHA.js} +7 -7
  64. package/dist/{chunk-UBH2R663.js → chunk-GADKBSZ5.js} +2 -2
  65. package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
  66. package/dist/{chunk-X5BSSPC2.js → chunk-GUJ45PRX.js} +1 -1
  67. package/dist/chunk-HSXV7QPC.js +177 -0
  68. package/dist/{chunk-AMQFGICP.js → chunk-HYB3WSJL.js} +1 -1
  69. package/dist/{chunk-O3MGHHJO.js → chunk-JE5ZPFN2.js} +3 -3
  70. package/dist/{chunk-GI42ZB52.js → chunk-JIYNPDH6.js} +1 -1
  71. package/dist/{chunk-RDLJSUI4.js → chunk-KQARKGEJ.js} +16 -11
  72. package/dist/{chunk-G45NYKSM.js → chunk-LVV5EUSO.js} +3 -3
  73. package/dist/{chunk-NLELDFX7.js → chunk-MF6KVPWF.js} +3 -3
  74. package/dist/{chunk-6IV2N527.js → chunk-MWQNQA77.js} +2 -2
  75. package/dist/{chunk-BKHBSFEO.js → chunk-OMT75FQI.js} +3 -2
  76. package/dist/{chunk-AF3EN5XS.js → chunk-OQYGHP3E.js} +1 -1
  77. package/dist/{chunk-EQFDOQTG.js → chunk-OSCRZUEB.js} +1 -1
  78. package/dist/{chunk-E47ZWDMH.js → chunk-P7TDUSPH.js} +1 -1
  79. package/dist/{chunk-Y5OSQXGZ.js → chunk-PCH3O6I6.js} +5 -5
  80. package/dist/{chunk-R6JPOEDZ.js → chunk-PHUTMTHB.js} +1 -1
  81. package/dist/{chunk-UBXKKXXR.js → chunk-PVBSCPZI.js} +3 -3
  82. package/dist/{chunk-EEBIHQF2.js → chunk-PWHOMCFB.js} +2 -2
  83. package/dist/{chunk-XM5KYLIE.js → chunk-PXSCN6X5.js} +4 -4
  84. package/dist/{chunk-FPWCICAI.js → chunk-PZ6VVOOE.js} +1 -1
  85. package/dist/{chunk-K73PYNON.js → chunk-QSWUM7WR.js} +2 -5
  86. package/dist/{chunk-SXHSNLEC.js → chunk-RBYSMHB7.js} +1 -1
  87. package/dist/{chunk-UZ5AWZCA.js → chunk-RKDMYKGL.js} +1 -1
  88. package/dist/{chunk-3XQQLL3G.js → chunk-RRT5S42U.js} +1 -1
  89. package/dist/{chunk-Z57RQBIA.js → chunk-S4UDVFAN.js} +3 -3
  90. package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
  91. package/dist/{chunk-4VTXUGDR.js → chunk-U6LQ4BTL.js} +1 -1
  92. package/dist/{chunk-CXVFPIOM.js → chunk-UIJLEBHQ.js} +1 -1
  93. package/dist/{chunk-5KADQQ6S.js → chunk-UXHGYMX4.js} +1 -1
  94. package/dist/{chunk-W464PHF3.js → chunk-V2N747YM.js} +7 -7
  95. package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
  96. package/dist/{chunk-M3WOI7BU.js → chunk-VB77RRT7.js} +1 -1
  97. package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
  98. package/dist/{chunk-5I6XEO4W.js → chunk-WESIEW2M.js} +3 -25
  99. package/dist/{chunk-HMS6UHUW.js → chunk-WGVREWKN.js} +2 -2
  100. package/dist/{chunk-FJ3KUOUZ.js → chunk-XCGPPU32.js} +1 -1
  101. package/dist/{chunk-EIIMWDZW.js → chunk-XDTRM4OS.js} +4 -4
  102. package/dist/{chunk-LZB5AHFD.js → chunk-XH7SSJSQ.js} +1 -1
  103. package/dist/chunk-XINVBLXA.js +5030 -0
  104. package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
  105. package/dist/{chunk-VHL26GNQ.js → chunk-Y2NSHQVE.js} +2 -2
  106. package/dist/{chunk-PICDT6ZW.js → chunk-YTQSLNIA.js} +1 -1
  107. package/dist/{chunk-KVBOJJ5R.js → chunk-Z257R7TN.js} +1 -1
  108. package/dist/{chunk-ZGQC6IU7.js → chunk-ZI64CTVC.js} +1 -1
  109. package/dist/{chunk-UQWOOANM.js → chunk-ZJE2XWQC.js} +2 -2
  110. package/dist/{chunk-652ERUZD.js → chunk-ZNXUM4D2.js} +2 -2
  111. package/dist/{clean-XWDDXLRP.js → clean-X5VL4ILR.js} +17 -17
  112. package/dist/cli.js +57 -57
  113. package/dist/{cloud-SETWVGKH.js → cloud-4GUUYRD3.js} +4 -4
  114. package/dist/{cloudrun-RHPVVXCR.js → cloudrun-KPL32MBI.js} +4 -4
  115. package/dist/{compare-FWMFV7A7.js → compare-CVEB5SQC.js} +30 -29
  116. package/dist/{compiler-SKRY6FPA.js → compiler-RRTQNBUH.js} +4 -4
  117. package/dist/{component-HGEIXY3U.js → component-TZ2SIYOX.js} +3 -3
  118. package/dist/{compositions-2TXJLBWE.js → compositions-KRTRDV72.js} +12 -12
  119. package/dist/{curve-SSFKIA2L.js → curve-ZXUAGU4T.js} +11 -11
  120. package/dist/{cuts-BWXHTOOP.js → cuts-GY2K2CTK.js} +20 -15
  121. package/dist/{delete-F5RDWZEJ.js → delete-ZT4FCUX2.js} +6 -6
  122. package/dist/{deploy-OH4SMYTG.js → deploy-DVKSQTC7.js} +1 -1
  123. package/dist/{describeProject-B7H4T5PW.js → describeProject-L4ZW5CI7.js} +8 -8
  124. package/dist/{diff-6JFFTFKR.js → diff-AFOP2B3Y.js} +89 -229
  125. package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
  126. package/dist/{dist-YEYUGCOR.js → dist-DPOLFG5U.js} +2 -2
  127. package/dist/{doctor-XQCZB5BY.js → doctor-Y7YVL34W.js} +11 -11
  128. package/dist/{energy-MEMYSTFT.js → energy-YFLFELFX.js} +12 -12
  129. package/dist/{events-U6PXJI34.js → events-C5QV2MQG.js} +3 -3
  130. package/dist/{events-ZU2ATKWK.js → events-THASMGN6.js} +14 -14
  131. package/dist/{events-T7OLH6MW.js → events-VL7JKI2K.js} +4 -4
  132. package/dist/{extract-25TUTGCA.js → extract-GTNBVQ63.js} +15 -19
  133. package/dist/{face-KMLYOE5H.js → face-BSRKCB5W.js} +12 -12
  134. package/dist/{feedback-FE7GQTBH.js → feedback-MCQ2FKCC.js} +11 -11
  135. package/dist/{ffmpeg-CXYPYIZK.js → ffmpeg-3QNN3TQ5.js} +7 -7
  136. package/dist/{figma-QMKU7M7T.js → figma-IGXE3KWU.js} +3 -3
  137. package/dist/fontLocalizeCli.js +10 -10
  138. package/dist/{frames-2NPBO6LB.js → frames-XIFLB5KC.js} +13 -13
  139. package/dist/{generate-I6E3V7PU.js → generate-55FZPR3J.js} +18 -18
  140. package/dist/{get-JJWBP5NB.js → get-2MHD7XFA.js} +6 -6
  141. package/dist/{gpuPolicy-2OMDU74V.js → gpuPolicy-REJFNHWD.js} +7 -7
  142. package/dist/{grade-compare-QCA3VIKQ.js → grade-compare-CM45H7CR.js} +31 -30
  143. package/dist/{heifImagePrep-P53GG4GF.js → heifImagePrep-O3UZHGWR.js} +8 -8
  144. package/dist/{help-COSONWFD.js → help-V2GGIKP2.js} +1 -1
  145. package/dist/{history-CWKF5AXI.js → history-NUOQVUNY.js} +7 -7
  146. package/dist/hyperframe.manifest.json +1 -1
  147. package/dist/hyperframe.runtime.iife.js +67 -67
  148. package/dist/hyperframes-player.global.js +3 -3
  149. package/dist/{info-SD74Y6V5.js → info-5CMRZEJA.js} +8 -8
  150. package/dist/{init-XAYQNTVF.js → init-JNL5R27I.js} +28 -28
  151. package/dist/ink-HGQUC6L3.js +148 -0
  152. package/dist/{inspect-Y5IIQBIW.js → inspect-GGOCM324.js} +31 -30
  153. package/dist/{installer-NQA4KXRP.js → installer-BBY3T5MJ.js} +4 -4
  154. package/dist/{keyframes-MNPCJZYU.js → keyframes-2D4ZS6HE.js} +8 -8
  155. package/dist/{lambda-PMI6IDVN.js → lambda-TY2ZCPEN.js} +11 -11
  156. package/dist/{layout-6IM6R6LX.js → layout-X5GT4O2L.js} +31 -30
  157. package/dist/{lint-6VUHVHFF.js → lint-NVOUXE2L.js} +9 -9
  158. package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
  159. package/dist/{list-XXTAS744.js → list-CB4UDTID.js} +6 -6
  160. package/dist/{localPage-2UHUS6LM.js → localPage-EYPZRIGY.js} +7 -7
  161. package/dist/{login-KM3LPYQ7.js → login-L7JTVKV5.js} +7 -7
  162. package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
  163. package/dist/{look-3CD3ZSXY.js → look-VHQA2JSS.js} +12 -12
  164. package/dist/{manager-C6GVT3EI.js → manager-FGQKQMI7.js} +8 -8
  165. package/dist/{measure-DWZX4YAK.js → measure-5F7QZLO5.js} +12 -11
  166. package/dist/{media-treatment-IIUPGQIX.js → media-treatment-RRFIZKSA.js} +14 -14
  167. package/dist/{media-use-HLHUEFDK.js → media-use-5YGFOFKI.js} +3 -3
  168. package/dist/{models-IWHY5V6N.js → models-5B2RGGBT.js} +11 -11
  169. package/dist/{motionShot-4NKHFUS7.js → motionShot-JJBQLYCC.js} +16 -15
  170. package/dist/{normalize-audio-M2RS5Q23.js → normalize-audio-LWTNZWDJ.js} +10 -10
  171. package/dist/{open-U7CCHUBO.js → open-PGRJXREV.js} +12 -12
  172. package/dist/{parakeetRunner-ZHG3S6GY.js → parakeetRunner-OV4NSPB3.js} +12 -12
  173. package/dist/{pipeline-66JR7EC7.js → pipeline-HXGPFQZC.js} +10 -10
  174. package/dist/{play-5COR53D2.js → play-JONX6CIM.js} +21 -21
  175. package/dist/{preflight-OKAO5NPW.js → preflight-7OKMMUWG.js} +8 -8
  176. package/dist/{present-YKFQC22R.js → present-EHU52MSU.js} +17 -17
  177. package/dist/{preview-3YNKJZME.js → preview-DCEIITM6.js} +19 -19
  178. package/dist/{probe-QMPDGKU5.js → probe-EA4N3WOT.js} +11 -11
  179. package/dist/{producer-WBVDP3IV.js → producer-FGAOUR7O.js} +1 -1
  180. package/dist/{projectConfig-UI4NZDN7.js → projectConfig-N3ZRVJKB.js} +6 -6
  181. package/dist/{publication-VPJZQCLA.js → publication-ZKY2LVN5.js} +2 -2
  182. package/dist/{publish-7RA2MK2M.js → publish-RZVDFTBX.js} +15 -15
  183. package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
  184. package/dist/{remove-background-ELC7V7KT.js → remove-background-V5UXYPJS.js} +11 -11
  185. package/dist/{render-WH7MPRZD.js → render-NEZLBRAY.js} +37 -35
  186. package/dist/{render-IYV73CG6.js → render-UJCPQXGB.js} +5 -5
  187. package/dist/{render-R7E7TTNE.js → render-YZSDHP3U.js} +60 -27
  188. package/dist/{render-batch-IN2ZXPS7.js → render-batch-KPGYARDI.js} +5 -5
  189. package/dist/renderSetupWorker.js +2 -2
  190. package/dist/{resolver-DIXFK5ZR.js → resolver-HWNPLSXK.js} +4 -4
  191. package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
  192. package/dist/{sherpa-FP6HX5KK.js → sherpa-HSBYKUQC.js} +11 -11
  193. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
  194. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
  195. package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
  196. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
  197. package/dist/skills/media-use/scripts/resolve.mjs +11 -5
  198. package/dist/{skills-JLNDM2KP.js → skills-CW23U675.js} +6 -6
  199. package/dist/{skillsUpdateCheck-WS5M25TN.js → skillsUpdateCheck-LGBNNYLI.js} +3 -3
  200. package/dist/{snapshot-VPN6GA7U.js → snapshot-RK7ED6DW.js} +47 -38
  201. package/dist/{src-AP7B27MZ.js → src-KORQVG7O.js} +10 -6
  202. package/dist/{src-RGQFYVHO.js → src-ZDLQFZ4B.js} +9 -9
  203. package/dist/{staticProjectServer-YA6XOSFY.js → staticProjectServer-TFWT5G2L.js} +18 -18
  204. package/dist/{status-Y5ZBFJ53.js → status-6WAZ5EBM.js} +5 -5
  205. package/dist/studio/assets/{hyperframes-player-Do2ZF6Lp.js → hyperframes-player-qeY0knUZ.js} +3 -3
  206. package/dist/studio/assets/{index-CK4_IJ8G.js → index-B9O4nOYD.js} +1 -1
  207. package/dist/studio/assets/{index-Dxb7fTWf.js → index-BhZkOhf2.js} +174 -174
  208. package/dist/studio/index.html +1 -1
  209. package/dist/{studio-api-57E36S5N.js → studio-api-OIZEPWHS.js} +10 -10
  210. package/dist/{studioServer-EVMF3HHL.js → studioServer-62MG7LJR.js} +50 -49
  211. package/dist/{sync-ASUBSVGQ.js → sync-Q3XYLXTX.js} +12 -12
  212. package/dist/{telemetry-YON45KT4.js → telemetry-3YDPEGQK.js} +4 -4
  213. package/dist/{timeline-OQWDGV7L.js → timeline-VDLKFZZ7.js} +19 -19
  214. package/dist/{tokens-NMPY673W.js → tokens-ZZ4G2VKC.js} +2 -2
  215. package/dist/{transcribe-HSYXT5TZ.js → transcribe-2D6UIVAE.js} +10 -10
  216. package/dist/{transcribe-C6FKVSRR.js → transcribe-OYRCZUZM.js} +22 -22
  217. package/dist/{updateCheck-B7PAAPCJ.js → updateCheck-ZRG5DR74.js} +2 -2
  218. package/dist/{upgrade-BOECDD5S.js → upgrade-ZU6BHCTC.js} +2 -2
  219. package/dist/{urlDownloader-KC2SS457.js → urlDownloader-5WPUC6C6.js} +6 -6
  220. package/dist/{validate-LEEBUIIH.js → validate-OZRPF6YZ.js} +25 -24
  221. package/dist/{video-JJAEISDH.js → video-N2KXXYS3.js} +8 -8
  222. package/dist/warmCheck.js +39 -38
  223. package/package.json +1 -1
  224. package/dist/chunk-6UWSEXQ3.js +0 -5030
@@ -14,7 +14,7 @@ import {
14
14
  createCloudClient,
15
15
  pollUntilTerminal,
16
16
  reportApiError
17
- } from "./chunk-7HSV5SJ4.js";
17
+ } from "./chunk-XOFJZ3UG.js";
18
18
  import {
19
19
  uploadAssetViaDirectUpload,
20
20
  uploadZipViaDirectUpload
@@ -31,8 +31,8 @@ import {
31
31
  stagePublishFiles,
32
32
  stagedSize,
33
33
  zipPublishFileMap
34
- } from "./chunk-IORJ42GY.js";
35
- import "./chunk-Z7GIHPAZ.js";
34
+ } from "./chunk-VUDMPRZN.js";
35
+ import "./chunk-53ZOVLGJ.js";
36
36
  import {
37
37
  compositionEntryErrorMessage,
38
38
  parseCompositionEntryArg
@@ -46,15 +46,15 @@ import {
46
46
  reportVariableIssues,
47
47
  resolveVariablesArg,
48
48
  validateVariablesAgainstProject
49
- } from "./chunk-UZ5AWZCA.js";
49
+ } from "./chunk-RKDMYKGL.js";
50
50
  import "./chunk-ZBAF6L74.js";
51
51
  import {
52
52
  downloadToFile
53
53
  } from "./chunk-NO6F7CLR.js";
54
54
  import {
55
55
  resolveCloudBaseUrl
56
- } from "./chunk-BEMGUGGJ.js";
57
- import "./chunk-QOYZ3U6G.js";
56
+ } from "./chunk-3ZWUNOTS.js";
57
+ import "./chunk-V4SD6HQ6.js";
58
58
  import {
59
59
  probeAudio
60
60
  } from "./chunk-SWC3QIEH.js";
@@ -62,10 +62,14 @@ import {
62
62
  findFFmpeg,
63
63
  findFFprobe,
64
64
  getFFmpegInstallHint
65
- } from "./chunk-FPWCICAI.js";
65
+ } from "./chunk-PZ6VVOOE.js";
66
66
  import {
67
67
  resolveProject
68
- } from "./chunk-AF3EN5XS.js";
68
+ } from "./chunk-OQYGHP3E.js";
69
+ import {
70
+ resolveDefaultFpsArg
71
+ } from "./chunk-WESIEW2M.js";
72
+ import "./chunk-GUJ45PRX.js";
69
73
  import {
70
74
  errorBox,
71
75
  formatBytes,
@@ -73,11 +77,11 @@ import {
73
77
  } from "./chunk-5LOZWO2M.js";
74
78
  import "./chunk-EHZESMRB.js";
75
79
  import "./chunk-A4ZTSQLW.js";
76
- import "./chunk-PICDT6ZW.js";
77
- import "./chunk-ADOBHVHW.js";
80
+ import "./chunk-YTQSLNIA.js";
81
+ import "./chunk-6AEHVBMX.js";
78
82
  import "./chunk-PXVQOMKL.js";
79
83
  import "./chunk-MCDNAIFF.js";
80
- import "./chunk-VLA6UJGH.js";
84
+ import "./chunk-6NJVSTSY.js";
81
85
  import {
82
86
  defineCommand
83
87
  } from "./chunk-DL4OD7IA.js";
@@ -86,17 +90,17 @@ import "./chunk-54HJ63Q2.js";
86
90
  import {
87
91
  c
88
92
  } from "./chunk-2GICKZ3I.js";
89
- import "./chunk-5HGS5MGD.js";
93
+ import "./chunk-7UKRCWBO.js";
90
94
  import "./chunk-Z5J67X44.js";
91
95
  import "./chunk-5S7W3TUO.js";
92
96
  import "./chunk-D3MUHMFG.js";
93
- import "./chunk-7RTPHNOO.js";
97
+ import "./chunk-3XYDZQJF.js";
94
98
  import "./chunk-YWRUQ7XZ.js";
95
99
  import {
96
100
  parseAnimatedGifMetadata
97
- } from "./chunk-FJ3KUOUZ.js";
101
+ } from "./chunk-XCGPPU32.js";
98
102
  import "./chunk-MEJH7VEA.js";
99
- import "./chunk-6UWSEXQ3.js";
103
+ import "./chunk-XINVBLXA.js";
100
104
  import "./chunk-VC76R6W2.js";
101
105
  import "./chunk-OFQWTKPW.js";
102
106
  import "./chunk-RQVDTPGD.js";
@@ -108,13 +112,13 @@ import "./chunk-KGPLIH7B.js";
108
112
  import "./chunk-LAGZGKKN.js";
109
113
  import "./chunk-K4MJX7SR.js";
110
114
  import "./chunk-WE42NVH7.js";
111
- import "./chunk-HT3D5AKG.js";
115
+ import "./chunk-GR2T3BOX.js";
112
116
  import "./chunk-HYRPH6LL.js";
113
117
  import {
114
118
  cleanAssetUrl,
115
119
  isRemoteOrInlineUrl,
116
120
  resolveLocalAssetCandidates
117
- } from "./chunk-AKMY4QVI.js";
121
+ } from "./chunk-2GTFW4MK.js";
118
122
  import "./chunk-CZGHFATT.js";
119
123
  import {
120
124
  readAuthoredDurationSeconds,
@@ -134,7 +138,7 @@ import "./chunk-WC4MTXGN.js";
134
138
  import "./chunk-FBN2M2HK.js";
135
139
  import {
136
140
  withMeta
137
- } from "./chunk-BTDKWWND.js";
141
+ } from "./chunk-B7OI3WAR.js";
138
142
  import "./chunk-BR2JQQC5.js";
139
143
  import "./chunk-BLBMPEBX.js";
140
144
  import "./chunk-ISN5GRYI.js";
@@ -145,7 +149,7 @@ import {
145
149
  } from "./chunk-66W5IWLO.js";
146
150
  import "./chunk-J3RXEDR2.js";
147
151
  import "./chunk-QBXDU24O.js";
148
- import "./chunk-EEBIHQF2.js";
152
+ import "./chunk-PWHOMCFB.js";
149
153
  import {
150
154
  normalizeErrorMessage
151
155
  } from "./chunk-E63BDV4Z.js";
@@ -697,7 +701,7 @@ async function prepareEntryGifs(ctx, fileMap) {
697
701
  if (!html || !/\.gif\b/i.test(html)) return;
698
702
  const sourceAssets = entryGifSources(ctx, entryPath, html);
699
703
  if (!sourceAssets) return;
700
- const prep = ctx.opts.gifPrep ?? (await import("./src-RGQFYVHO.js")).prepareAnimatedGifInputs;
704
+ const prep = ctx.opts.gifPrep ?? (await import("./src-ZDLQFZ4B.js")).prepareAnimatedGifInputs;
701
705
  const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
702
706
  ctx.tempFiles.push(outputDir);
703
707
  const result = await prep(html, {
@@ -751,9 +755,10 @@ async function offloadHeavyMedia(projectDir, fileMap, opts) {
751
755
  };
752
756
  const urls = /* @__PURE__ */ new Map();
753
757
  const report = [];
758
+ let referenced = /* @__PURE__ */ new Set();
754
759
  try {
755
760
  await prepareEntryGifs(ctx, fileMap);
756
- const referenced = referencedFiles(ctx.absDir, fileMap);
761
+ referenced = referencedFiles(ctx.absDir, fileMap);
757
762
  for (const [path, file] of [...fileMap].sort(([a], [b]) => a.localeCompare(b))) {
758
763
  if (!referenced.has(path)) continue;
759
764
  const item = await offloadFile(ctx, path, file);
@@ -767,8 +772,20 @@ async function offloadHeavyMedia(projectDir, fileMap, opts) {
767
772
  }
768
773
  if (urls.size > 0) rewriteReferences(ctx.absDir, fileMap, (key) => urls.get(key) ?? null);
769
774
  dropReplacedFiles(fileMap, report, ctx.preparedGifSources, [...urls.values()]);
775
+ dropUnusedHeavyFiles(ctx, referenced, [...urls.values()]);
770
776
  return report;
771
777
  }
778
+ function dropUnusedHeavyFiles(ctx, referenced, assetUrls) {
779
+ const { fileMap } = ctx;
780
+ const withoutUrls = (text) => assetUrls.reduce((acc, url) => acc.replaceAll(url, ""), text);
781
+ const code = withoutUrls(scriptCode(fileMap));
782
+ const variables = ctx.opts.variablesText ?? "";
783
+ for (const [path, file] of [...fileMap]) {
784
+ if (referenced.has(path) || stagedSize(file) < OFFLOAD_MIN_BYTES) continue;
785
+ if (variables.includes(basename2(path))) continue;
786
+ if (!isStillMentioned(fileMap, path, code, withoutUrls)) fileMap.delete(path);
787
+ }
788
+ }
772
789
  function dropReplacedFiles(fileMap, report, preparedGifSources, assetUrls) {
773
790
  const withoutUrls = (text) => assetUrls.reduce((acc, url) => acc.replaceAll(url, ""), text);
774
791
  const code = withoutUrls(scriptCode(fileMap));
@@ -931,7 +948,10 @@ var render_default = defineCommand({
931
948
  meta: { name: "render", description: "Render a HyperFrames composition in the cloud" },
932
949
  args: {
933
950
  dir: { type: "positional", required: false, description: "Project directory (default: .)" },
934
- fps: { type: "string", description: "Frames per second (1-240). Default: 30." },
951
+ fps: {
952
+ type: "string",
953
+ description: "Frames per second (1-240). Default: the composition's root data-fps, else 30."
954
+ },
935
955
  quality: { type: "string", description: "draft | standard | high (default: standard)" },
936
956
  format: { type: "string", description: "mp4 | webm | mov (default: mp4)" },
937
957
  "page-motion-blur": {
@@ -1026,7 +1046,6 @@ var render_default = defineCommand({
1026
1046
  // fallow-ignore-next-line complexity
1027
1047
  async run({ args }) {
1028
1048
  const asJson = Boolean(args.json);
1029
- const fps = parseIntFlag(args.fps, { flag: "--fps", min: 1, max: 240 });
1030
1049
  const quality = parseEnumFlag(args.quality, VALID_QUALITY, { flag: "--quality" });
1031
1050
  const format = parseEnumFlag(args.format, VALID_FORMAT, { flag: "--format" });
1032
1051
  const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
@@ -1047,6 +1066,11 @@ var render_default = defineCommand({
1047
1066
  url: args.url
1048
1067
  });
1049
1068
  validateDryRunSource(project, args["dry-run"] ?? false);
1069
+ const fps = parseIntFlag(resolveCloudFpsArg(project, args.fps, args.composition), {
1070
+ flag: "--fps",
1071
+ min: 1,
1072
+ max: 240
1073
+ });
1050
1074
  const aspectRatio = resolveAspectRatioForSubmit(
1051
1075
  project,
1052
1076
  args.composition,
@@ -1070,7 +1094,8 @@ var render_default = defineCommand({
1070
1094
  project,
1071
1095
  args.composition,
1072
1096
  asJson,
1073
- (file) => uploadAssetViaDirectUpload({ client, ...file })
1097
+ (file) => uploadAssetViaDirectUpload({ client, ...file }),
1098
+ variables && JSON.stringify(variables)
1074
1099
  ) : void 0;
1075
1100
  const upload = await maybeUploadProject(
1076
1101
  client,
@@ -1253,14 +1278,14 @@ function resolveVariablesAndValidateIfLocal(inline, filePath, strict, source, co
1253
1278
  function summarizeLargestFiles(fileMap) {
1254
1279
  return [...fileMap.entries()].map(([path, content]) => ({ path, size_bytes: stagedSize(content) })).sort((a, b) => b.size_bytes - a.size_bytes || a.path.localeCompare(b.path)).slice(0, LARGEST_FILE_COUNT);
1255
1280
  }
1256
- async function prepareLocalArchive(source, composition, asJson, upload) {
1281
+ async function prepareLocalArchive(source, composition, asJson, upload, variablesText) {
1257
1282
  const project = resolveProject(source.dir);
1258
1283
  if (!asJson) {
1259
1284
  console.log("");
1260
1285
  console.log(`${c.accent("\u25C6")} Zipping ${c.accent(project.name)}`);
1261
1286
  }
1262
1287
  const { fileMap, entryPath } = stageProjectFiles(project, composition);
1263
- const offloaded = await offloadMedia(project, fileMap, entryPath, asJson, upload);
1288
+ const offloaded = await offloadMedia(project, fileMap, entryPath, asJson, upload, variablesText);
1264
1289
  const onDiskBytes = [...fileMap.values()].filter((file) => !Buffer.isBuffer(file)).reduce((sum, file) => sum + stagedSize(file), 0);
1265
1290
  const archive = onDiskBytes > DIRECT_UPLOAD_LIMIT_BYTES ? void 0 : zipPublishFileMap(new Map([...fileMap].map(([path, file]) => [path, readStaged(file)])));
1266
1291
  const sizeBytes = archive?.buffer.byteLength ?? onDiskBytes;
@@ -1301,13 +1326,14 @@ function stageProjectFiles(project, composition) {
1301
1326
  failCommand();
1302
1327
  }
1303
1328
  }
1304
- async function offloadMedia(project, fileMap, entryPath, asJson, upload) {
1329
+ async function offloadMedia(project, fileMap, entryPath, asJson, upload, variablesText) {
1305
1330
  let offloaded;
1306
1331
  try {
1307
1332
  offloaded = await offloadHeavyMedia(project.dir, fileMap, {
1308
1333
  apiBaseUrl: resolveCloudBaseUrl(),
1309
1334
  upload,
1310
1335
  entryPath,
1336
+ variablesText,
1311
1337
  onFile: (item) => (asJson ? console.error : console.log)(c.dim(` ${describeOffload(item, !upload)}`))
1312
1338
  });
1313
1339
  } catch (err) {
@@ -1324,6 +1350,12 @@ async function offloadMedia(project, fileMap, entryPath, asJson, upload) {
1324
1350
  }
1325
1351
  return offloaded;
1326
1352
  }
1353
+ function resolveCloudFpsArg(source, fps, composition) {
1354
+ if (source.kind !== "dir") return fps;
1355
+ const { dir } = resolveProject(source.dir);
1356
+ const resolved = resolveDefaultFpsArg(fps, dir, resolvePath(dir, "index.html"), composition);
1357
+ return resolved !== void 0 && /^\d+$/.test(resolved) ? resolved : fps;
1358
+ }
1327
1359
  function assertArchiveFits(sizeBytes, largestFiles) {
1328
1360
  if (sizeBytes <= DIRECT_UPLOAD_LIMIT_BYTES) return;
1329
1361
  errorBox(
@@ -1531,5 +1563,6 @@ export {
1531
1563
  render_default as default,
1532
1564
  examples,
1533
1565
  resolveAspectRatioForSubmit,
1566
+ resolveCloudFpsArg,
1534
1567
  validateDryRunSource
1535
1568
  };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveOutputResolutionFromSize
9
- } from "./chunk-AMQFGICP.js";
9
+ } from "./chunk-HYB3WSJL.js";
10
10
  import {
11
11
  requireStack
12
12
  } from "./chunk-JHOPRAJN.js";
@@ -14,12 +14,12 @@ import {
14
14
  loadProjectVariableSchema,
15
15
  reportVariableIssues,
16
16
  validateVariablesAgainstSchema
17
- } from "./chunk-UZ5AWZCA.js";
17
+ } from "./chunk-RKDMYKGL.js";
18
18
  import "./chunk-ZBAF6L74.js";
19
19
  import {
20
20
  errorBox
21
21
  } from "./chunk-5LOZWO2M.js";
22
- import "./chunk-OZMZFJDW.js";
22
+ import "./chunk-2JBCK6DX.js";
23
23
  import {
24
24
  runWithConcurrencyLimit
25
25
  } from "./chunk-JHOCK3DG.js";
@@ -27,9 +27,9 @@ import "./chunk-EHZESMRB.js";
27
27
  import {
28
28
  c
29
29
  } from "./chunk-2GICKZ3I.js";
30
- import "./chunk-FJ3KUOUZ.js";
30
+ import "./chunk-XCGPPU32.js";
31
31
  import "./chunk-MEJH7VEA.js";
32
- import "./chunk-6UWSEXQ3.js";
32
+ import "./chunk-XINVBLXA.js";
33
33
  import "./chunk-VC76R6W2.js";
34
34
  import "./chunk-OFQWTKPW.js";
35
35
  import "./chunk-RQVDTPGD.js";
@@ -25,9 +25,9 @@ import "./chunk-K4MJX7SR.js";
25
25
  import "./chunk-WE42NVH7.js";
26
26
  import {
27
27
  lintProject
28
- } from "./chunk-HT3D5AKG.js";
28
+ } from "./chunk-GR2T3BOX.js";
29
29
  import "./chunk-HYRPH6LL.js";
30
- import "./chunk-AKMY4QVI.js";
30
+ import "./chunk-2GTFW4MK.js";
31
31
  import "./chunk-CZGHFATT.js";
32
32
  import "./chunk-C2KEGBR3.js";
33
33
  import "./chunk-T5ELONXY.js";
@@ -11,17 +11,17 @@ import {
11
11
  resolveItemWithDependencies,
12
12
  resolveItemsByTag,
13
13
  unreachableRegistryMessage
14
- } from "./chunk-A25SCSOK.js";
14
+ } from "./chunk-B52P2FU2.js";
15
15
  import "./chunk-JHOCK3DG.js";
16
- import "./chunk-EQFDOQTG.js";
16
+ import "./chunk-OSCRZUEB.js";
17
17
  import "./chunk-AWDFDFI3.js";
18
18
  import "./chunk-P6LJ4Y32.js";
19
19
  import "./chunk-T2WJO4XM.js";
20
20
  import "./chunk-WYKRGEDD.js";
21
21
  import "./chunk-YWRUQ7XZ.js";
22
- import "./chunk-FJ3KUOUZ.js";
22
+ import "./chunk-XCGPPU32.js";
23
23
  import "./chunk-MEJH7VEA.js";
24
- import "./chunk-6UWSEXQ3.js";
24
+ import "./chunk-XINVBLXA.js";
25
25
  import "./chunk-VC76R6W2.js";
26
26
  import "./chunk-OFQWTKPW.js";
27
27
  import "./chunk-RQVDTPGD.js";
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  analyzeTargets,
9
9
  previewTarget
10
- } from "./chunk-KEDN4LSV.js";
10
+ } from "./chunk-TFJSU4IV.js";
11
11
  import "./chunk-CE7EQUBV.js";
12
12
  import "./chunk-6A45RKAK.js";
13
13
  import "./chunk-HBAUU3IK.js";
14
- import "./chunk-BEMGUGGJ.js";
15
- import "./chunk-QOYZ3U6G.js";
14
+ import "./chunk-3ZWUNOTS.js";
15
+ import "./chunk-V4SD6HQ6.js";
16
16
  import "./chunk-SWC3QIEH.js";
17
- import "./chunk-VLA6UJGH.js";
17
+ import "./chunk-6NJVSTSY.js";
18
18
  import "./chunk-2GICKZ3I.js";
19
19
  import "./chunk-D3MUHMFG.js";
20
20
  import "./chunk-HYRPH6LL.js";
@@ -17,31 +17,31 @@ import {
17
17
  sherpaRuntimeLoadError,
18
18
  sherpaUnsupportedReason,
19
19
  transcribeWithSherpa
20
- } from "./chunk-UQWOOANM.js";
20
+ } from "./chunk-ZJE2XWQC.js";
21
21
  import "./chunk-NO6F7CLR.js";
22
22
  import "./chunk-Y65ZU7XY.js";
23
23
  import "./chunk-6BEFEWFB.js";
24
- import "./chunk-UBXKKXXR.js";
24
+ import "./chunk-PVBSCPZI.js";
25
25
  import "./chunk-SWC3QIEH.js";
26
- import "./chunk-SXHSNLEC.js";
27
- import "./chunk-3E2BO3L3.js";
26
+ import "./chunk-RBYSMHB7.js";
27
+ import "./chunk-DGQOBTFQ.js";
28
28
  import "./chunk-RZ6CXJ56.js";
29
29
  import "./chunk-R4EWRIDL.js";
30
- import "./chunk-FPWCICAI.js";
30
+ import "./chunk-PZ6VVOOE.js";
31
31
  import "./chunk-JZIEZCQM.js";
32
32
  import "./chunk-UOFAE5RF.js";
33
33
  import "./chunk-IR35BCLK.js";
34
34
  import "./chunk-HU2SPFNG.js";
35
35
  import "./chunk-A4ZTSQLW.js";
36
- import "./chunk-5HGS5MGD.js";
36
+ import "./chunk-7UKRCWBO.js";
37
37
  import "./chunk-Z5J67X44.js";
38
38
  import "./chunk-5S7W3TUO.js";
39
39
  import "./chunk-D3MUHMFG.js";
40
- import "./chunk-7RTPHNOO.js";
40
+ import "./chunk-3XYDZQJF.js";
41
41
  import "./chunk-YWRUQ7XZ.js";
42
- import "./chunk-FJ3KUOUZ.js";
42
+ import "./chunk-XCGPPU32.js";
43
43
  import "./chunk-MEJH7VEA.js";
44
- import "./chunk-6UWSEXQ3.js";
44
+ import "./chunk-XINVBLXA.js";
45
45
  import "./chunk-VC76R6W2.js";
46
46
  import "./chunk-OFQWTKPW.js";
47
47
  import "./chunk-RQVDTPGD.js";
@@ -53,9 +53,9 @@ import "./chunk-X6JUUQCM.js";
53
53
  import "./chunk-KGPLIH7B.js";
54
54
  import "./chunk-K4MJX7SR.js";
55
55
  import "./chunk-WE42NVH7.js";
56
- import "./chunk-HT3D5AKG.js";
56
+ import "./chunk-GR2T3BOX.js";
57
57
  import "./chunk-HYRPH6LL.js";
58
- import "./chunk-AKMY4QVI.js";
58
+ import "./chunk-2GTFW4MK.js";
59
59
  import "./chunk-CZGHFATT.js";
60
60
  import "./chunk-C2KEGBR3.js";
61
61
  import "./chunk-T5ELONXY.js";
@@ -20,8 +20,7 @@ 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)
24
- return process.env.HYPERFRAMES_ENV === "dev" ? "https://api.dev.heygen.com/v3" : HEYGEN_BASE;
23
+ if (!host) return HEYGEN_BASE;
25
24
  if (host.startsWith("http://") && process.env.HEYGEN_ALLOW_HTTP !== "1")
26
25
  throw new Error(
27
26
  `HEYGEN_API_BASE (${host}) uses HTTP, which sends the key in plaintext. Set HEYGEN_ALLOW_HTTP=1 to allow it.`,
@@ -138,14 +137,9 @@ function resolveCredential() {
138
137
  }
139
138
  const oauth = cred.oauth;
140
139
  if (oauth?.access_token) {
141
- const expectedClient =
142
- process.env.HYPERFRAMES_OAUTH_CLIENT_ID ||
143
- (process.env.HYPERFRAMES_ENV === "dev"
144
- ? "9QoaiwCZov9O0cAkC4OZbR4p"
145
- : "Zg3LF4FCLoeJoGs2YqMtZ17g");
140
+ const expectedClient = process.env.HYPERFRAMES_OAUTH_CLIENT_ID || "Zg3LF4FCLoeJoGs2YqMtZ17g";
146
141
  const expectedTokenEndpoint =
147
- process.env.HYPERFRAMES_OAUTH_TOKEN_URL ||
148
- `https://api2.${process.env.HYPERFRAMES_ENV === "dev" ? "dev." : ""}heygen.com/v1/oauth/token`;
142
+ process.env.HYPERFRAMES_OAUTH_TOKEN_URL || "https://api2.heygen.com/v1/oauth/token";
149
143
  if (
150
144
  !expectedClient ||
151
145
  oauth.client_id !== expectedClient ||
@@ -89,24 +89,26 @@ test("heygenAuthHeaders tags OAuth requests as CLI traffic and with the media-us
89
89
  });
90
90
  });
91
91
 
92
- test("development audio uses the development client and isolated store", () => {
92
+ test("development audio uses its isolated store and the client and token host from the environment", () => {
93
93
  withCleanHeygenEnv(() => {
94
94
  const dir = mkdtempSync(join(tmpdir(), "hf-dev-cred-"));
95
95
  try {
96
96
  process.env.HYPERFRAMES_CONFIG_DIR = dir;
97
97
  process.env.HYPERFRAMES_ENV = "dev";
98
+ process.env.HYPERFRAMES_OAUTH_CLIENT_ID = "fake-client";
99
+ process.env.HYPERFRAMES_OAUTH_TOKEN_URL = "https://auth.example.test/token";
98
100
  mkdirSync(join(dir, "dev"));
99
101
  writeFileSync(
100
102
  join(dir, "dev", "credentials"),
101
103
  JSON.stringify({
102
104
  oauth: {
103
105
  access_token: "dev-at",
104
- client_id: "9QoaiwCZov9O0cAkC4OZbR4p",
105
- token_endpoint: "https://api2.dev.heygen.com/v1/oauth/token",
106
+ client_id: "fake-client",
107
+ token_endpoint: "https://auth.example.test/token",
106
108
  },
107
109
  }),
108
110
  );
109
- assert.equal(heygenBase(), "https://api.dev.heygen.com/v3");
111
+ assert.equal(heygenBase(), "https://api.heygen.com/v3");
110
112
  assert.equal(heygenAuthHeaders().Authorization, "Bearer dev-at");
111
113
  } finally {
112
114
  rmSync(dir, { recursive: true, force: true });
@@ -169,18 +169,21 @@ export async function thesvgSearch(intent, ctx = {}) {
169
169
  const hit = thesvgMatch(icons, entity);
170
170
  if (!hit) return null;
171
171
  // theSVG also ships mono, light/dark and wordmark variants; default is the full-color mark.
172
- const route = hit.variants.default;
172
+ // A named variant the brand lacks is a miss, never the mark in its place.
173
+ const variant = ctx.variant || "default";
174
+ const route = hit.variants[variant];
175
+ if (!route) return null;
173
176
  return {
174
177
  url: `${THESVG_CDN}/public${route.startsWith("/") ? "" : "/"}${route}`,
175
178
  ext: ".svg",
176
179
  source: "search",
177
180
  metadata: {
178
- description: `${hit.title} logo (official mark)`,
181
+ description: `${hit.title} ${variant === "default" ? "logo (official mark)" : `logo (${variant})`}`,
179
182
  provider: "thesvg",
180
183
  provenance: {
181
184
  entity,
182
185
  slug: hit.slug,
183
- variant: "default",
186
+ variant,
184
187
  variants: Object.keys(hit.variants),
185
188
  collection: hit.collection,
186
189
  license: hit.license,
@@ -191,6 +194,7 @@ export async function thesvgSearch(intent, ctx = {}) {
191
194
  }
192
195
 
193
196
  export async function githubAvatarSearch(intent, ctx = {}) {
197
+ if (ctx.variant) return null; // an avatar or favicon is never a named variant
194
198
  const entity = entityFrom(intent, ctx.entity);
195
199
  const org = githubOrgFor(entity);
196
200
  if (!org) return null;
@@ -213,6 +217,7 @@ export async function githubAvatarSearch(intent, ctx = {}) {
213
217
  }
214
218
 
215
219
  export async function faviconSearch(intent, ctx = {}) {
220
+ if (ctx.variant) return null;
216
221
  const entity = entityFrom(intent, ctx.entity);
217
222
  const domain = faviconDomainFor(entity);
218
223
  const url = `https://icons.duckduckgo.com/ip3/${domain}.ico`;
@@ -296,3 +296,17 @@ test("thesvgSearch rejects a manifest redirect to a private host", async (t) =>
296
296
  assert.equal(await thesvgSearch("vercel logo"), null);
297
297
  assert.equal(seen.length, 1);
298
298
  });
299
+
300
+ test("thesvgSearch returns the wordmark when asked, and a miss when the brand has none", async (t) => {
301
+ resetThesvgManifest();
302
+ t.mock.method(globalThis, "fetch", async () => json(ICONS));
303
+ const slack = await thesvgSearch("Slack logo", { variant: "wordmark" });
304
+ assert.match(slack.url, /\/icons\/slack\/wordmark\.svg$/);
305
+ assert.equal(slack.metadata.provenance.variant, "wordmark");
306
+ assert.equal(await thesvgSearch("Next.js logo", { variant: "wordmark" }), null);
307
+ });
308
+
309
+ test("a named variant never falls through to an avatar or favicon", async () => {
310
+ assert.equal(await githubAvatarSearch("Slack logo", { variant: "wordmark" }), null);
311
+ assert.equal(await faviconSearch("Slack logo", { variant: "wordmark" }), null);
312
+ });
@@ -89,6 +89,7 @@ const { values: args } = parseArgs({
89
89
  type: { type: "string", short: "t" },
90
90
  intent: { type: "string", short: "i" },
91
91
  entity: { type: "string", short: "e" },
92
+ variant: { type: "string" },
92
93
  project: { type: "string", short: "p", default: "." },
93
94
  adopt: { type: "boolean", default: false },
94
95
  candidates: { type: "boolean", default: false },
@@ -124,6 +125,8 @@ Options:
124
125
  --type, -t Media type (required)
125
126
  --intent, -i What you need (required)
126
127
  --entity, -e Entity name for cache matching (optional)
128
+ --variant With --type logo: the brand's other artwork, e.g. wordmark,
129
+ mono, light, dark (default: the full-colour mark)
127
130
  --project, -p Project directory (default: .)
128
131
  --adopt Adopt all existing assets/ files into the manifest
129
132
  --candidates List reusable assets (project + global cache) for --type; no
@@ -153,6 +156,7 @@ Options:
153
156
  const projectDir = resolve(args.project);
154
157
  const type = args.type;
155
158
  const intent = args.intent;
159
+ const variant = args.variant || null;
156
160
  const entity = args.entity || null;
157
161
 
158
162
  if (args.adopt) {
@@ -345,8 +349,9 @@ function localizeImportedRecord(record, localPath) {
345
349
  }
346
350
 
347
351
  async function run() {
348
- // A forced provider bypasses reuse and pins the provider cascade.
349
- const forced = !!args.provider;
352
+ // A forced provider bypasses reuse and pins the provider cascade; so does a variant,
353
+ // since reuse is keyed on the intent and would hand back the default artwork.
354
+ const forced = !!args.provider || !!variant;
350
355
 
351
356
  // 1. project manifest — exact-prompt match
352
357
  const projectHit = forced ? null : findByPrompt(projectDir, intent, type);
@@ -422,6 +427,7 @@ async function run() {
422
427
  const localOnly = args["local-only"];
423
428
  const ctx = {
424
429
  entity,
430
+ variant,
425
431
  projectDir,
426
432
  localOnly,
427
433
  provider: args.provider,
@@ -582,10 +588,10 @@ async function run() {
582
588
  ...(searchResult.metadata?.transparent != null && {
583
589
  transparent: searchResult.metadata.transparent,
584
590
  }),
585
- ...(entity && { entity }),
591
+ ...(entity && !variant && { entity }),
586
592
  provenance: {
587
593
  provider: searchResult.metadata?.provider || "unknown",
588
- prompt: intent,
594
+ prompt: variant ? `${intent} [${variant}]` : intent,
589
595
  // Keep auth method sparse for non-HeyGen providers.
590
596
  ...heygenAuthMethodFor(searchResult.metadata?.provider),
591
597
  ...searchResult.metadata?.provenance,
@@ -596,7 +602,7 @@ async function run() {
596
602
  regenerateIndex(projectDir);
597
603
  // Promote fetched assets into the global cache for reuse.
598
604
  try {
599
- cachePut(fullPath, record);
605
+ if (!variant) cachePut(fullPath, record);
600
606
  } catch {
601
607
  // promotion is best-effort; a resolve still succeeds locally
602
608
  }
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-6BEFEWFB.js";
16
16
  import {
17
17
  trackSkillsInstallSkipped
18
- } from "./chunk-PICDT6ZW.js";
19
- import "./chunk-ADOBHVHW.js";
18
+ } from "./chunk-YTQSLNIA.js";
19
+ import "./chunk-6AEHVBMX.js";
20
20
  import "./chunk-PXVQOMKL.js";
21
21
  import {
22
22
  diag
23
23
  } from "./chunk-MCDNAIFF.js";
24
- import "./chunk-VLA6UJGH.js";
24
+ import "./chunk-6NJVSTSY.js";
25
25
  import {
26
26
  defineCommand
27
27
  } from "./chunk-DL4OD7IA.js";
@@ -43,10 +43,10 @@ import {
43
43
  isCoreSkill,
44
44
  presentSkills,
45
45
  retiredSkillNotice
46
- } from "./chunk-EECV7SDN.js";
46
+ } from "./chunk-6EQSJ7MT.js";
47
47
  import {
48
48
  withMeta
49
- } from "./chunk-BTDKWWND.js";
49
+ } from "./chunk-B7OI3WAR.js";
50
50
  import "./chunk-BR2JQQC5.js";
51
51
  import "./chunk-BLBMPEBX.js";
52
52
  import "./chunk-ISN5GRYI.js";
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunk-66W5IWLO.js";
61
61
  import "./chunk-J3RXEDR2.js";
62
62
  import "./chunk-QBXDU24O.js";
63
- import "./chunk-EEBIHQF2.js";
63
+ import "./chunk-PWHOMCFB.js";
64
64
  import "./chunk-E63BDV4Z.js";
65
65
  import "./chunk-G7VEYUZ2.js";
66
66
  import "./chunk-XT6MXC7A.js";
@@ -9,8 +9,8 @@ import {
9
9
  printSkillsUpdateNotice,
10
10
  refreshSkillsCache,
11
11
  skillsCheckDue
12
- } from "./chunk-EECV7SDN.js";
13
- import "./chunk-BTDKWWND.js";
12
+ } from "./chunk-6EQSJ7MT.js";
13
+ import "./chunk-B7OI3WAR.js";
14
14
  import "./chunk-BR2JQQC5.js";
15
15
  import "./chunk-BLBMPEBX.js";
16
16
  import "./chunk-ISN5GRYI.js";
@@ -18,7 +18,7 @@ import "./chunk-ADVVQX4I.js";
18
18
  import "./chunk-66W5IWLO.js";
19
19
  import "./chunk-J3RXEDR2.js";
20
20
  import "./chunk-QBXDU24O.js";
21
- import "./chunk-EEBIHQF2.js";
21
+ import "./chunk-PWHOMCFB.js";
22
22
  import "./chunk-E63BDV4Z.js";
23
23
  import "./chunk-G7VEYUZ2.js";
24
24
  import "./chunk-XT6MXC7A.js";