hyperframes 0.9.32 → 0.9.33

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 (256) hide show
  1. package/dist/{add-HYI4YJC5.js → add-GDXM36YQ.js} +13 -13
  2. package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-KPNDH2EI.js} +7 -7
  3. package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-SAKETEZ2.js} +7 -7
  4. package/dist/api.js +39 -38
  5. package/dist/{asset-7FG3M3FQ.js → asset-KOJC72AQ.js} +2 -2
  6. package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-Q4ZFUI6G.js} +8 -8
  7. package/dist/{audio-R6ZG62DU.js → audio-XZBBXKQC.js} +25 -24
  8. package/dist/{auth-IPDYZXOG.js → auth-X45YSZGE.js} +4 -4
  9. package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-77XWQ564.js} +3 -3
  10. package/dist/{avatars-A45VFUZ4.js → avatars-D3D22TI2.js} +16 -15
  11. package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-2L2RWFJ3.js} +4 -4
  12. package/dist/backgroundChecksWorker.js +4 -4
  13. package/dist/{batchRender-VBSYVQA7.js → batchRender-O7J47H2Z.js} +3 -3
  14. package/dist/{beats-UPJ3KANG.js → beats-6RVVU56H.js} +11 -11
  15. package/dist/{benchmark-2RWYJGL2.js → benchmark-D5JRNAVQ.js} +10 -10
  16. package/dist/{billing-MD66MJTA.js → billing-WT4DGZII.js} +15 -14
  17. package/dist/{browser-JXCS62NX.js → browser-2OR737P4.js} +7 -7
  18. package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
  19. package/dist/{capture-DJ4WRP62.js → capture-23X2CK56.js} +44 -24
  20. package/dist/{capture-M6DT5WZT.js → capture-B34FTO6G.js} +3 -3
  21. package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-TPZKEVKN.js} +15 -15
  22. package/dist/{catalog-GW45OWKU.js → catalog-ACHSYU5Z.js} +13 -13
  23. package/dist/{catch-up-YKJQ4IYC.js → catch-up-FGANS2BB.js} +8 -8
  24. package/dist/{check-7QTKMPGA.js → check-DXK4L5WP.js} +44 -44
  25. package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-4ISYJED3.js} +15 -15
  26. package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-5ECMULMP.js} +37 -37
  27. package/dist/{chunk-5VN7ZXJR.js → chunk-23354HMA.js} +1 -1
  28. package/dist/{chunk-GCJRV7LU.js → chunk-2I4DQZLQ.js} +1 -1
  29. package/dist/{chunk-WTO4DHBH.js → chunk-2KYLVWLO.js} +1 -1
  30. package/dist/{chunk-3R2X2VKB.js → chunk-2LMCARA5.js} +1 -1
  31. package/dist/{chunk-TVQNABOI.js → chunk-2QTGQGYA.js} +1 -1
  32. package/dist/{chunk-TLUDJLBN.js → chunk-2RBQLV6B.js} +1 -1
  33. package/dist/{chunk-EJPWGGPK.js → chunk-2TBW7UOF.js} +5150 -4985
  34. package/dist/{chunk-P5E3RHW3.js → chunk-3J32XVJ6.js} +1 -1
  35. package/dist/{chunk-LHFBKUVY.js → chunk-45ZQI734.js} +2 -2
  36. package/dist/{chunk-G7NKYELQ.js → chunk-4CHGNFCS.js} +4 -4
  37. package/dist/{chunk-34S7GYVK.js → chunk-4DLYTSWQ.js} +15 -8
  38. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  39. package/dist/{chunk-SXOIG6VG.js → chunk-4US5QCXR.js} +231 -176
  40. package/dist/{chunk-XH6LGDIB.js → chunk-4WZU4FYS.js} +3 -3
  41. package/dist/{chunk-NNOAOQLT.js → chunk-5GYTBKZA.js} +2 -2
  42. package/dist/{chunk-K72X2YXR.js → chunk-5RVPI6QL.js} +4 -4
  43. package/dist/{chunk-M6FNCANA.js → chunk-6QEEF5RR.js} +1 -1
  44. package/dist/{chunk-MYFAVVA6.js → chunk-6RV2QY4K.js} +29 -29
  45. package/dist/{chunk-LXIEKLAC.js → chunk-6ZVUTYNB.js} +5 -5
  46. package/dist/{chunk-JMV63CNH.js → chunk-76KUCQXD.js} +1 -1
  47. package/dist/{chunk-GWSCUFGL.js → chunk-7LTXT7ME.js} +11 -9
  48. package/dist/{chunk-LBQQNNRC.js → chunk-7UUUV4PN.js} +1 -1
  49. package/dist/{chunk-6BI6URO2.js → chunk-A4VXOJZO.js} +4 -3
  50. package/dist/{chunk-2W4VQ3YZ.js → chunk-ADYMQM7T.js} +2 -2
  51. package/dist/{chunk-PXY3JZP2.js → chunk-AIC7T7CC.js} +2 -2
  52. package/dist/{chunk-KG3TONXU.js → chunk-B66UZ2YK.js} +9 -9
  53. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  54. package/dist/{chunk-SIRYW7SY.js → chunk-BBL6STGK.js} +2 -2
  55. package/dist/{chunk-GTHRXU37.js → chunk-C2VZ7UPE.js} +18 -18
  56. package/dist/{chunk-I3QXWJ7V.js → chunk-CDI3CCAU.js} +5 -5
  57. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  58. package/dist/{chunk-4CSZZXL6.js → chunk-CHM3QYLF.js} +3 -3
  59. package/dist/{chunk-VB3JZKMN.js → chunk-CNJLBAKM.js} +29 -8
  60. package/dist/chunk-DDDSTRHU.js +3890 -0
  61. package/dist/{chunk-GJUL3PRV.js → chunk-DGC2RIQE.js} +3 -3
  62. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  63. package/dist/{chunk-HXQDDCGY.js → chunk-DMZER7D5.js} +1 -1
  64. package/dist/{chunk-XPT4GC6X.js → chunk-ERJBWDPM.js} +6 -6
  65. package/dist/{chunk-NXSKZE3C.js → chunk-ETWXZQN5.js} +1 -1
  66. package/dist/{chunk-E5S4QMX7.js → chunk-EX533ULK.js} +1 -1
  67. package/dist/{chunk-3367VNGK.js → chunk-EX7WPDFA.js} +1 -1
  68. package/dist/{chunk-JHX76QFC.js → chunk-FRH3CPW5.js} +1 -1
  69. package/dist/{chunk-EXW2LV4K.js → chunk-G55YEL2L.js} +24 -24
  70. package/dist/{chunk-WLNQAJQC.js → chunk-GHLLC6LJ.js} +2 -2
  71. package/dist/{chunk-SFPIVVUE.js → chunk-HEXTAQYG.js} +1 -1
  72. package/dist/{chunk-ADP2GIBS.js → chunk-HMB3IAVP.js} +1 -1
  73. package/dist/{chunk-Z6X64P6C.js → chunk-HPKW6UVW.js} +6 -6
  74. package/dist/{chunk-BA3EQ2KL.js → chunk-I35B5RWZ.js} +3 -3
  75. package/dist/{chunk-2NMBD5AH.js → chunk-I3PA54IU.js} +1 -1
  76. package/dist/{chunk-AOQRVS63.js → chunk-IYLGUQFR.js} +7 -5
  77. package/dist/chunk-JCJJCYCP.js +392 -0
  78. package/dist/{chunk-G6JLFSII.js → chunk-JSVCF4A6.js} +4 -4
  79. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  80. package/dist/{chunk-YIE5FU73.js → chunk-KIAY63AB.js} +37 -3
  81. package/dist/{chunk-X6DWLN55.js → chunk-L6BFXQ6S.js} +7 -3
  82. package/dist/chunk-M3BJEZ7E.js +152 -0
  83. package/dist/{chunk-M6LAGO6O.js → chunk-MA35E5OY.js} +3 -3
  84. package/dist/{chunk-XB7HE2R5.js → chunk-MDBEAWP2.js} +3 -3
  85. package/dist/{chunk-3HT3UGF2.js → chunk-MDGNQWFN.js} +1 -1
  86. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  87. package/dist/{chunk-5FFYMVRD.js → chunk-MP36L7OJ.js} +1 -1
  88. package/dist/{chunk-YCTWMO3G.js → chunk-MVIUSNPZ.js} +1 -1
  89. package/dist/{chunk-6SNGKC6B.js → chunk-N2C7WJDG.js} +1 -1
  90. package/dist/{chunk-3PHCFSPD.js → chunk-NQFIMBXS.js} +2 -2
  91. package/dist/{chunk-AZ2QJETV.js → chunk-O2T6ZTLN.js} +1 -1
  92. package/dist/{chunk-2T7EDEKE.js → chunk-O5CNNVRY.js} +7 -7
  93. package/dist/{chunk-5GXMZIQZ.js → chunk-OD7PLYYX.js} +7 -7
  94. package/dist/{chunk-TZH6HNZH.js → chunk-PNP2BO3U.js} +1 -1
  95. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  96. package/dist/{chunk-P7TCIUP2.js → chunk-QWM3NY2E.js} +3 -3
  97. package/dist/{chunk-Y3YHDU7T.js → chunk-R45WFVRA.js} +1 -1
  98. package/dist/{chunk-UWMOMAYI.js → chunk-RCB4SGTB.js} +2 -2
  99. package/dist/{chunk-W3HNLDK6.js → chunk-RGYOCAHC.js} +2 -2
  100. package/dist/{chunk-CMYUPVMI.js → chunk-ROXILOZ6.js} +2 -2
  101. package/dist/{chunk-EBG5RCPM.js → chunk-SIGASWB7.js} +4 -4
  102. package/dist/{chunk-KFXHBP2E.js → chunk-SOAQ3XXB.js} +1 -1
  103. package/dist/{chunk-LJMTEZOP.js → chunk-SUXEL7G4.js} +15 -15
  104. package/dist/{chunk-6MTSP2XE.js → chunk-SWPI27QV.js} +7 -7
  105. package/dist/{chunk-RCRUWNQ4.js → chunk-T3GSTIBS.js} +2 -2
  106. package/dist/{chunk-L72MPEM2.js → chunk-U77L3ZQZ.js} +1 -1
  107. package/dist/{chunk-6NNLDCX4.js → chunk-UE2WSWNA.js} +1 -1
  108. package/dist/{chunk-YMIEJZB6.js → chunk-VKZSAAXZ.js} +2 -2
  109. package/dist/chunk-VQJLTYEK.js +453 -0
  110. package/dist/{chunk-TTSLKH63.js → chunk-VZQXHYEI.js} +2 -2
  111. package/dist/{chunk-D7NNNL2K.js → chunk-W2FSQBUR.js} +17 -17
  112. package/dist/{chunk-AWT5FHTN.js → chunk-W5PW26KE.js} +1 -1
  113. package/dist/{chunk-KXOKZJBZ.js → chunk-WIMVXPYG.js} +12 -12
  114. package/dist/{chunk-KAG5KXNO.js → chunk-WYPRTHXQ.js} +1 -1
  115. package/dist/{chunk-YAZQBB2S.js → chunk-XDDBSGBD.js} +1 -1
  116. package/dist/{chunk-6RFCS4IU.js → chunk-XFXCI4IP.js} +7 -5
  117. package/dist/{chunk-2Z42EUHG.js → chunk-XQWWFIBR.js} +1 -1
  118. package/dist/{chunk-H7AJLEBR.js → chunk-XSHJ37U3.js} +3 -3
  119. package/dist/{chunk-HWMNSWEA.js → chunk-XUDJ5XSQ.js} +2 -2
  120. package/dist/{chunk-D6BV6TTI.js → chunk-XVVPEWNX.js} +1 -1
  121. package/dist/chunk-Y5DOT5NQ.js +57 -0
  122. package/dist/{chunk-HDCVU64B.js → chunk-YDG3OXH3.js} +3 -2
  123. package/dist/{chunk-H4C3P2KV.js → chunk-YNFHZ4RI.js} +2 -2
  124. package/dist/{chunk-PVSRPNIV.js → chunk-YSHUIQ3I.js} +2 -2
  125. package/dist/chunk-YTUPQTXA.js +560 -0
  126. package/dist/{chunk-262ADJJN.js → chunk-ZOAANTVI.js} +1 -1
  127. package/dist/{clean-MJBET4EN.js → clean-3IN64RHM.js} +21 -21
  128. package/dist/cli.js +68 -66
  129. package/dist/{cloud-WEDQYHZE.js → cloud-LBUZBUP6.js} +4 -4
  130. package/dist/{cloud-Z4Q76MLS.js → cloud-SVYXHFEG.js} +6 -5
  131. package/dist/{cloudrun-2KGSRAKA.js → cloudrun-PZOF2QGL.js} +5 -5
  132. package/dist/{compare-MJKWQOD7.js → compare-UOJ3LXQQ.js} +35 -35
  133. package/dist/{compiler-ETXRTUQC.js → compiler-5ZDHBKBQ.js} +6 -4
  134. package/dist/{component-PZGKEJ6L.js → component-EVIPLTTJ.js} +3 -3
  135. package/dist/{compositions-N3FEEWH7.js → compositions-R4GG5FBO.js} +13 -13
  136. package/dist/contract/LICENSE-Unicode.txt +39 -0
  137. package/dist/contract/path-policy.json +311 -0
  138. package/dist/contract/unicode-15.1.0.json +6179 -0
  139. package/dist/{curve-MWABBM7Q.js → curve-LR3PSRW3.js} +12 -12
  140. package/dist/{cuts-BQFSSNY7.js → cuts-DHCOBAFT.js} +13 -13
  141. package/dist/{delete-HPHGJABK.js → delete-MMGGU3QP.js} +9 -8
  142. package/dist/{deploy-JY2QOB5F.js → deploy-SKIGUTM2.js} +7 -7
  143. package/dist/{describeProject-S6AGYZWL.js → describeProject-L7HNTBPV.js} +8 -8
  144. package/dist/{destroy-AZK7J4IR.js → destroy-5HSMMDH7.js} +6 -6
  145. package/dist/{diff-XDNFCAU4.js → diff-KR7VKPYL.js} +40 -39
  146. package/dist/{dist-6EE3Y4M7.js → dist-3MFNUZSN.js} +2 -2
  147. package/dist/{dist-EYEYDD4F.js → dist-HK3AZNNL.js} +13 -13
  148. package/dist/{dist-TYGDYK56.js → dist-ZGYPFYOH.js} +2 -2
  149. package/dist/{doctor-6IRSMKZD.js → doctor-G7VGNSA5.js} +12 -12
  150. package/dist/{energy-VCJ2FJEF.js → energy-H7EEH6WO.js} +13 -13
  151. package/dist/{events-QQYBD7JM.js → events-5ATZCZTK.js} +4 -4
  152. package/dist/{events-DNTIMCUM.js → events-ASG27IXP.js} +15 -15
  153. package/dist/{events-M6A7BT3V.js → events-YD6N7OPQ.js} +7 -7
  154. package/dist/execute-OAS454OB.js +109 -0
  155. package/dist/{extract-X3IVXYHX.js → extract-645SENLA.js} +16 -16
  156. package/dist/{face-MZHXKBDB.js → face-WRT5XH4I.js} +14 -14
  157. package/dist/{feedback-TAMGYFUO.js → feedback-3LKLR5MV.js} +15 -14
  158. package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-PXKIZL2X.js} +7 -7
  159. package/dist/{figma-WMD7AR2S.js → figma-RIEVJJBW.js} +3 -3
  160. package/dist/fontLocalizeCli.js +12 -12
  161. package/dist/{frames-OU2UOLBU.js → frames-OTB3J5W3.js} +14 -14
  162. package/dist/{generate-6F6QEFXW.js → generate-IUKCZW2D.js} +27 -26
  163. package/dist/{get-VVDO7DXG.js → get-6WVQ7TBV.js} +9 -8
  164. package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-HXSVAEU4.js} +7 -7
  165. package/dist/{grade-compare-O6LY2U73.js → grade-compare-TCAYHDEF.js} +37 -37
  166. package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-GXIMK4HK.js} +8 -8
  167. package/dist/{help-XLSTTDHR.js → help-RGOL5EJD.js} +2 -1
  168. package/dist/{history-DBCCWBDG.js → history-XKPRGJGS.js} +10 -10
  169. package/dist/hyperframe.manifest.json +1 -1
  170. package/dist/hyperframe.runtime.iife.js +42 -42
  171. package/dist/hyperframes-player.global.js +1 -1
  172. package/dist/{info-E46BWAQ7.js → info-EYBBC42V.js} +15 -15
  173. package/dist/{init-23TG5W7S.js → init-F2FWPSMA.js} +29 -29
  174. package/dist/{ink-6UFSNJRW.js → ink-BWFERAAT.js} +13 -13
  175. package/dist/{inspect-RKI6XACH.js → inspect-74N7L3BW.js} +34 -34
  176. package/dist/{installer-JWPK75BR.js → installer-LOUR7G4R.js} +4 -4
  177. package/dist/{keyframes-J65V5A2G.js → keyframes-WB5PTKFE.js} +13 -11
  178. package/dist/{lambda-RZSXXBJU.js → lambda-JYCNXUKB.js} +12 -12
  179. package/dist/{layout-RJQUOYWB.js → layout-P52EVR24.js} +34 -34
  180. package/dist/{lint-4TUHKKA2.js → lint-SL55KAS2.js} +12 -12
  181. package/dist/{lintProject-R6RTBSCZ.js → lintProject-46WU53VC.js} +2 -2
  182. package/dist/{list-HOD2N4VS.js → list-LN6CQH52.js} +11 -10
  183. package/dist/{localPage-TC4NC3VL.js → localPage-L6OJU3UH.js} +7 -7
  184. package/dist/{login-NTOS3HKD.js → login-WTOAMDID.js} +8 -7
  185. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  186. package/dist/{look-GC63E2I7.js → look-O6ESLJRP.js} +13 -13
  187. package/dist/{manager-FICBET24.js → manager-CMEZWENF.js} +8 -8
  188. package/dist/{measure-WTQCSQ55.js → measure-NEIXU53P.js} +11 -11
  189. package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-6CAQG7MU.js} +15 -15
  190. package/dist/{media-use-K75FDXJ3.js → media-use-IXJFMKU7.js} +9 -7
  191. package/dist/{models-JKOA542M.js → models-TZALWUEY.js} +11 -11
  192. package/dist/{motionShot-A3TYKTQU.js → motionShot-OQYK6G6M.js} +20 -20
  193. package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-43PJLOBY.js} +11 -11
  194. package/dist/oauth-SAVP2YM4.js +40 -0
  195. package/dist/{open-F6GI4TRA.js → open-EOX6QY4M.js} +13 -13
  196. package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-STHAXQAF.js} +13 -13
  197. package/dist/{pipeline-7P7LGGQG.js → pipeline-RRWZHFBQ.js} +10 -10
  198. package/dist/plan-JWUSMF4W.js +88 -0
  199. package/dist/{play-DYOZLKWX.js → play-TUKTST32.js} +25 -25
  200. package/dist/{preflight-VM4HSRBY.js → preflight-L42JKT6F.js} +8 -8
  201. package/dist/{present-IINIEZJC.js → present-Z7HRDXPV.js} +20 -20
  202. package/dist/{preview-NJO2UXWJ.js → preview-HGTIRAV3.js} +23 -23
  203. package/dist/{probe-LQQHFX5Q.js → probe-RXK44FY7.js} +13 -13
  204. package/dist/{producer-LH2SZHJ2.js → producer-KJ2RZDJ3.js} +1 -1
  205. package/dist/{projectConfig-BLACFLUW.js → projectConfig-K36NTJXP.js} +6 -6
  206. package/dist/{publication-NFF2BXIE.js → publication-OZWLT6K6.js} +2 -2
  207. package/dist/{publish-JST5Y4UR.js → publish-CRUTXNYM.js} +84 -24
  208. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  209. package/dist/{remove-background-WUBESLWN.js → remove-background-R37HZPCG.js} +11 -11
  210. package/dist/{render-R4VNR4E2.js → render-EZMKBT7V.js} +45 -44
  211. package/dist/{render-DA4V7CEE.js → render-SU2XTMJL.js} +5 -5
  212. package/dist/{render-4KWUUC5H.js → render-ZHCPCISN.js} +82 -948
  213. package/dist/{render-batch-JMPG4RLT.js → render-batch-YIUOEAAL.js} +5 -5
  214. package/dist/renderSetupWorker.js +2 -2
  215. package/dist/{resolver-PNIFIDIE.js → resolver-DLCKRKQR.js} +4 -4
  216. package/dist/{reverse-4NI7D2C3.js → reverse-4FAVXIER.js} +1 -1
  217. package/dist/{run-FWBIBLYE.js → run-H4GVEJVS.js} +5 -4
  218. package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-CQF5FYVI.js} +9 -9
  219. package/dist/service-XDQOULGD.js +68 -0
  220. package/dist/share-CUCQALE7.js +274 -0
  221. package/dist/{sherpa-W3BMN67E.js → sherpa-WZNRQUVC.js} +12 -12
  222. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  223. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  224. package/dist/{skills-KQQVUFGO.js → skills-J52DBZAK.js} +10 -10
  225. package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
  226. package/dist/{snapshot-VIEJQAUB.js → snapshot-ZIRQFDA7.js} +50 -50
  227. package/dist/{src-MQU5F7GJ.js → src-7BGBN6SS.js} +11 -11
  228. package/dist/{src-HHPRCLEW.js → src-C3XYMTF4.js} +6 -6
  229. package/dist/{start-ZBNNVFMU.js → start-QG2XNMYN.js} +25 -24
  230. package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-TWMEFK3T.js} +18 -18
  231. package/dist/{status-RBZJYT7T.js → status-3UPA5WPI.js} +19 -17
  232. package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-qz1-OXLj.js} +1 -1
  233. package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-2eG1zFX5.js} +1 -1
  234. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  235. package/dist/studio/assets/{index-D1l7izdf.js → index-DDmhnfrS.js} +166 -166
  236. package/dist/studio/assets/{index-DFRbcd5J.js → index-DUveJ_YP.js} +1 -1
  237. package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
  238. package/dist/studio/index.html +2 -2
  239. package/dist/{studio-api-EPZGLIWW.js → studio-api-Z42OO4JJ.js} +13 -13
  240. package/dist/{studioServer-YFQQ2ESJ.js → studioServer-SMN3RMVL.js} +437 -59
  241. package/dist/{sync-FRT55PVW.js → sync-ONTI2WSI.js} +13 -13
  242. package/dist/{telemetry-HAPPFR7P.js → telemetry-RRXALB5D.js} +7 -7
  243. package/dist/{templates-2IHYIWMA.js → templates-BHFOSD6F.js} +18 -17
  244. package/dist/{timeline-AY2F7BJF.js → timeline-Z5IHY5TN.js} +20 -20
  245. package/dist/{tokens-B3G257V3.js → tokens-MZVEPARM.js} +2 -2
  246. package/dist/{transcribe-RJCILGPA.js → transcribe-5IZS4BGW.js} +29 -28
  247. package/dist/{transcribe-EGQD32PT.js → transcribe-M5N3YZZU.js} +10 -10
  248. package/dist/{update-XTFIGQKW.js → update-EVPWBIKY.js} +11 -11
  249. package/dist/{updateCheck-M6YC52A4.js → updateCheck-2UUEF6TC.js} +5 -3
  250. package/dist/{upgrade-AKLIZKAO.js → upgrade-DK45FD4K.js} +4 -4
  251. package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-3MPHIDSA.js} +6 -6
  252. package/dist/{validate-YWSXJL54.js → validate-W27TQ367.js} +28 -28
  253. package/dist/{video-I5DDNK3Y.js → video-TI372QGV.js} +8 -8
  254. package/dist/{voices-IBMJU73H.js → voices-FZV4PGT6.js} +24 -23
  255. package/dist/warmCheck.js +44 -44
  256. package/package.json +2 -1
@@ -12,8 +12,6 @@ import {
12
12
  ErrDeviceAuthFailed,
13
13
  ErrInvalidStore,
14
14
  ErrLoginChanged,
15
- ErrLoginExpired,
16
- ErrNotConfigured,
17
15
  ErrRefreshFailed,
18
16
  ErrUnauthenticated,
19
17
  assertOAuthIdentity,
@@ -25,7 +23,7 @@ import {
25
23
  resolveClientId,
26
24
  revokeEndpoint,
27
25
  tokenEndpoint
28
- } from "./chunk-LP7B3JLC.js";
26
+ } from "./chunk-DMW5SSUN.js";
29
27
  import {
30
28
  c
31
29
  } from "./chunk-JCNPHRGX.js";
@@ -36,6 +34,215 @@ import {
36
34
  normalizeErrorMessage
37
35
  } from "./chunk-E63BDV4Z.js";
38
36
 
37
+ // src/auth/pkce.ts
38
+ import { createHash, randomBytes } from "crypto";
39
+ var VERIFIER_BYTES = 64;
40
+ function generatePkcePair() {
41
+ const verifier = base64UrlEncode(randomBytes(VERIFIER_BYTES));
42
+ const challenge = base64UrlEncode(createHash("sha256").update(verifier).digest());
43
+ return { verifier, challenge, method: "S256" };
44
+ }
45
+ function generateState() {
46
+ return base64UrlEncode(randomBytes(32));
47
+ }
48
+ function base64UrlEncode(buf) {
49
+ return buf.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
50
+ }
51
+
52
+ // src/auth/loopback.ts
53
+ import { timingSafeEqual } from "crypto";
54
+ import { createServer } from "http";
55
+
56
+ // src/auth/callbackPage.ts
57
+ var MARK_A = "M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z";
58
+ var MARK_B = "M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z";
59
+ var STYLE = `:root{color-scheme:light dark;--bg:#f2f0ed;--ink:#1d1b18;--ink2:#5d5a55;--tile:#dff3ea;--tile-ink:#087a54;--bad:#fbe6e1;--bad-ink:#b3402e;--btn:#1d1b18;--btn-ink:#f2f0ed;--panel:#0c0c0e;--panel-ink:#f4f1ec}
60
+ @media(prefers-color-scheme:dark){:root{--bg:#201e1b;--ink:#f6f4f1;--ink2:#b5b1aa;--tile:#1f3a2f;--tile-ink:#37de91;--bad:#3a2420;--bad-ink:#f08a78;--btn:#f6f4f1;--btn-ink:#201e1b}}
61
+ *{box-sizing:border-box}html,body{height:100%;margin:0}
62
+ body{background:var(--bg);color:var(--ink);font:400 15px/1.45 "TT Norms",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
63
+ .col{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 48px max(32px,min(7vw,96px))}
64
+ .brand{position:absolute;top:28px;left:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;letter-spacing:-.01em}
65
+ .tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tile);color:var(--tile-ink);margin-bottom:20px}
66
+ .bad .tile{background:var(--bad);color:var(--bad-ink)}
67
+ h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
68
+ p{margin:10px 0 0;color:var(--ink2);max-width:360px;text-wrap:pretty}
69
+ code{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink2)}
70
+ .panel{margin:14px;border-radius:24px;background:var(--panel);color:var(--panel-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
71
+ .panel b{font-size:26px;font-weight:600;letter-spacing:-.01em}
72
+ .panel small{color:rgb(244 241 236/.58);font-size:14px;margin-top:-10px}
73
+ .badge{position:relative}
74
+ .chk{display:none;position:absolute;right:-8px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#37de91;place-items:center}
75
+ .ok .chk{display:grid}
76
+ @media(max-width:760px){body{grid-template-columns:1fr;grid-template-rows:auto auto}.col{padding:84px 24px 32px}.brand{left:24px}.panel{min-height:300px;margin:12px}}`;
77
+ var CHECK = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"/></svg>';
78
+ var CROSS = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>';
79
+ var CHK = '<span class="chk"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#0e1a14" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg></span>';
80
+ function mark(width, height, id) {
81
+ const gradient = (suffix, x1, y1, x2, y2) => `<linearGradient id="${suffix}${id}" gradientUnits="userSpaceOnUse" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"><stop offset="0" stop-color="#06E3FA"/><stop offset="1" stop-color="#4FDB5E"/></linearGradient>`;
82
+ return `<svg viewBox="4 22 92 56" width="${width}" height="${height}" aria-hidden="true"><defs>${gradient("a", "48.57", "25", "44.78", "71.94")}${gradient("b", "54.83", "73.84", "72.1", "32.89")}</defs><path fill="url(#a${id})" d="${MARK_A}"/><path fill="url(#b${id})" d="${MARK_B}"/></svg>`;
83
+ }
84
+ function escapeHtml(s) {
85
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
86
+ }
87
+ function page(args) {
88
+ const detail = args.detail ? `<p><code>${escapeHtml(args.detail)}</code></p>` : "";
89
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(args.title)}</title><style>${STYLE}</style></head><body class="${args.ok ? "ok" : "bad"}"><main class="col"><div class="brand">${mark(38, 23, "c")}<span>HyperFrames</span></div><div class="tile">${args.ok ? CHECK : CROSS}</div><h1>${escapeHtml(args.title)}</h1><p>${escapeHtml(args.text)}</p>${detail}</main><aside class="panel"><div class="badge">${mark(96, 58, "p")}${CHK}</div><b>HyperFrames</b><small>by HeyGen</small></aside></body></html>`;
90
+ }
91
+ function connectedPage() {
92
+ return page({
93
+ ok: true,
94
+ title: "You're connected",
95
+ text: "Return to your terminal. You can close this tab."
96
+ });
97
+ }
98
+ function failurePage(code, description) {
99
+ if (code === "access_denied") {
100
+ return page({
101
+ ok: false,
102
+ title: "Not authorized",
103
+ text: "Nothing was connected. Run the login again from your terminal."
104
+ });
105
+ }
106
+ return page({
107
+ ok: false,
108
+ title: "Couldn't connect",
109
+ text: description || "Something went wrong on the way back. Run the login again from your terminal.",
110
+ detail: code
111
+ });
112
+ }
113
+
114
+ // src/auth/loopback.ts
115
+ var CALLBACK_PATH = "/oauth/callback";
116
+ var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
117
+ async function startLoopback(opts) {
118
+ const timeoutMs = opts.timeoutMs ?? SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS;
119
+ const timeoutLabel = `${timeoutMs / 6e4} minutes`;
120
+ let resolveResult;
121
+ let rejectResult;
122
+ const result = new Promise((resolve, reject) => {
123
+ resolveResult = resolve;
124
+ rejectResult = reject;
125
+ });
126
+ let redirectUri = "";
127
+ const server = createServer(
128
+ (req, res) => handleRequest(req, res, opts.state, redirectUri, resolveResult, rejectResult)
129
+ );
130
+ await listen(server, opts.port ?? 0);
131
+ const address = server.address();
132
+ redirectUri = `http://127.0.0.1:${address.port}${CALLBACK_PATH}`;
133
+ let closed = false;
134
+ const close = async () => {
135
+ if (closed) return;
136
+ closed = true;
137
+ clearTimeout(timer);
138
+ server.closeAllConnections?.();
139
+ await new Promise((resolve) => server.close(() => resolve()));
140
+ };
141
+ const timer = setTimeout(() => {
142
+ rejectResult(new Error(`OAuth callback timed out after ${timeoutLabel}`));
143
+ void close();
144
+ }, timeoutMs);
145
+ result.finally(close).catch(() => {
146
+ });
147
+ return { result, redirectUri, timeoutLabel, close };
148
+ }
149
+ async function listen(server, port) {
150
+ await new Promise((resolve, reject) => {
151
+ server.once("error", reject);
152
+ server.listen(port, "127.0.0.1", () => {
153
+ server.off("error", reject);
154
+ resolve();
155
+ });
156
+ });
157
+ }
158
+ function handleRequest(req, res, expectedState, redirectUri, resolveResult, rejectResult) {
159
+ if (req.method !== "GET") {
160
+ res.writeHead(405, { "content-type": "text/plain" }).end("Method Not Allowed");
161
+ return;
162
+ }
163
+ const url = new URL(req.url ?? "/", "http://127.0.0.1");
164
+ if (url.pathname !== CALLBACK_PATH) {
165
+ res.writeHead(404, { "content-type": "text/plain" }).end("Not Found");
166
+ return;
167
+ }
168
+ const params = url.searchParams;
169
+ const error = params.get("error");
170
+ if (error) {
171
+ const desc = params.get("error_description") ?? "";
172
+ respond(res, 400, failurePage(error, desc));
173
+ rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
174
+ return;
175
+ }
176
+ const state = params.get("state");
177
+ if (!state || !stateMatches(state, expectedState)) {
178
+ respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
179
+ rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
180
+ return;
181
+ }
182
+ const code = params.get("code");
183
+ if (!code) {
184
+ respond(
185
+ res,
186
+ 400,
187
+ failurePage("missing_code", "Authorization code is missing from the redirect.")
188
+ );
189
+ rejectResult(new Error("OAuth redirect did not include `code`."));
190
+ return;
191
+ }
192
+ respond(res, 200, connectedPage());
193
+ resolveResult({ code, redirectUri });
194
+ }
195
+ function stateMatches(actual, expected) {
196
+ const a = Buffer.from(actual, "utf8");
197
+ const b = Buffer.from(expected, "utf8");
198
+ if (a.length !== b.length) return false;
199
+ return timingSafeEqual(a, b);
200
+ }
201
+ function respond(res, status, body) {
202
+ res.writeHead(status, {
203
+ "content-type": "text/html; charset=utf-8",
204
+ "cache-control": "no-store",
205
+ // Tell the browser not to keep the TCP socket alive — otherwise
206
+ // `server.close()` blocks on the idle keep-alive timeout
207
+ // (Chrome ~5min). Combined with `server.closeAllConnections()`
208
+ // in `close()` this guarantees the CLI exits promptly after the
209
+ // user sees the success page.
210
+ connection: "close"
211
+ }).end(body);
212
+ }
213
+
214
+ // src/auth/browser.ts
215
+ import { appendFileSync } from "fs";
216
+ async function openBrowser(url) {
217
+ const log = process.env["HF_BROWSER_LOG"];
218
+ if (log) {
219
+ appendFileSync(log, `${url}
220
+ `);
221
+ return { opened: true };
222
+ }
223
+ if (process.env["BROWSER"] === "none" || process.env["HF_NO_BROWSER"] === "1") {
224
+ printManualInstructions(url);
225
+ return { opened: false };
226
+ }
227
+ try {
228
+ const open = (await import("open")).default;
229
+ await open(url);
230
+ return { opened: true };
231
+ } catch (err) {
232
+ printManualInstructions(url, normalizeErrorMessage(err));
233
+ return { opened: false };
234
+ }
235
+ }
236
+ function printManualInstructions(url, detail) {
237
+ if (detail) {
238
+ console.error(c.warn(`Could not open browser automatically (${detail}).`));
239
+ } else {
240
+ console.error(c.warn("Browser auto-open is disabled."));
241
+ }
242
+ console.error(`Open this URL manually to continue:
243
+ ${c.accent(url)}`);
244
+ }
245
+
39
246
  // src/auth/scrub.ts
40
247
  var HEYGEN_KEY = /\b(hg|sk)_[A-Za-z0-9_-]{4,}/g;
41
248
  var HEADER_LINE = /(authorization|x-api-key)[ \t]*[:=][ \t]*[^\r\n]+/gi;
@@ -177,38 +384,6 @@ function pickObject(obj, key) {
177
384
  return v && typeof v === "object" && !Array.isArray(v) ? v : void 0;
178
385
  }
179
386
 
180
- // src/auth/browser.ts
181
- import { appendFileSync } from "fs";
182
- async function openBrowser(url) {
183
- const log = process.env["HF_BROWSER_LOG"];
184
- if (log) {
185
- appendFileSync(log, `${url}
186
- `);
187
- return { opened: true };
188
- }
189
- if (process.env["BROWSER"] === "none" || process.env["HF_NO_BROWSER"] === "1") {
190
- printManualInstructions(url);
191
- return { opened: false };
192
- }
193
- try {
194
- const open = (await import("open")).default;
195
- await open(url);
196
- return { opened: true };
197
- } catch (err) {
198
- printManualInstructions(url, normalizeErrorMessage(err));
199
- return { opened: false };
200
- }
201
- }
202
- function printManualInstructions(url, detail) {
203
- if (detail) {
204
- console.error(c.warn(`Could not open browser automatically (${detail}).`));
205
- } else {
206
- console.error(c.warn("Browser auto-open is disabled."));
207
- }
208
- console.error(`Open this URL manually to continue:
209
- ${c.accent(url)}`);
210
- }
211
-
212
387
  // src/auth/store.ts
213
388
  import { promises as fs } from "fs";
214
389
  import { dirname } from "path";
@@ -447,183 +622,6 @@ function looksLikeApiKey(s) {
447
622
  return /^[!-~]+$/.test(s);
448
623
  }
449
624
 
450
- // src/auth/pkce.ts
451
- import { createHash, randomBytes } from "crypto";
452
- var VERIFIER_BYTES = 64;
453
- function generatePkcePair() {
454
- const verifier = base64UrlEncode(randomBytes(VERIFIER_BYTES));
455
- const challenge = base64UrlEncode(createHash("sha256").update(verifier).digest());
456
- return { verifier, challenge, method: "S256" };
457
- }
458
- function generateState() {
459
- return base64UrlEncode(randomBytes(32));
460
- }
461
- function base64UrlEncode(buf) {
462
- return buf.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
463
- }
464
-
465
- // src/auth/loopback.ts
466
- import { timingSafeEqual } from "crypto";
467
- import { createServer } from "http";
468
-
469
- // src/auth/callbackPage.ts
470
- var MARK_A = "M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z";
471
- var MARK_B = "M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z";
472
- var STYLE = `:root{color-scheme:light dark;--bg:#f2f0ed;--ink:#1d1b18;--ink2:#5d5a55;--tile:#dff3ea;--tile-ink:#087a54;--bad:#fbe6e1;--bad-ink:#b3402e;--btn:#1d1b18;--btn-ink:#f2f0ed;--panel:#0c0c0e;--panel-ink:#f4f1ec}
473
- @media(prefers-color-scheme:dark){:root{--bg:#201e1b;--ink:#f6f4f1;--ink2:#b5b1aa;--tile:#1f3a2f;--tile-ink:#37de91;--bad:#3a2420;--bad-ink:#f08a78;--btn:#f6f4f1;--btn-ink:#201e1b}}
474
- *{box-sizing:border-box}html,body{height:100%;margin:0}
475
- body{background:var(--bg);color:var(--ink);font:400 15px/1.45 "TT Norms",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
476
- .col{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 48px max(32px,min(7vw,96px))}
477
- .brand{position:absolute;top:28px;left:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;letter-spacing:-.01em}
478
- .tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tile);color:var(--tile-ink);margin-bottom:20px}
479
- .bad .tile{background:var(--bad);color:var(--bad-ink)}
480
- h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
481
- p{margin:10px 0 0;color:var(--ink2);max-width:360px;text-wrap:pretty}
482
- code{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink2)}
483
- .panel{margin:14px;border-radius:24px;background:var(--panel);color:var(--panel-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
484
- .panel b{font-size:26px;font-weight:600;letter-spacing:-.01em}
485
- .panel small{color:rgb(244 241 236/.58);font-size:14px;margin-top:-10px}
486
- .badge{position:relative}
487
- .chk{display:none;position:absolute;right:-8px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#37de91;place-items:center}
488
- .ok .chk{display:grid}
489
- @media(max-width:760px){body{grid-template-columns:1fr;grid-template-rows:auto auto}.col{padding:84px 24px 32px}.brand{left:24px}.panel{min-height:300px;margin:12px}}`;
490
- var CHECK = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"/></svg>';
491
- var CROSS = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>';
492
- var CHK = '<span class="chk"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#0e1a14" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg></span>';
493
- function mark(width, height, id) {
494
- const gradient = (suffix, x1, y1, x2, y2) => `<linearGradient id="${suffix}${id}" gradientUnits="userSpaceOnUse" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"><stop offset="0" stop-color="#06E3FA"/><stop offset="1" stop-color="#4FDB5E"/></linearGradient>`;
495
- return `<svg viewBox="4 22 92 56" width="${width}" height="${height}" aria-hidden="true"><defs>${gradient("a", "48.57", "25", "44.78", "71.94")}${gradient("b", "54.83", "73.84", "72.1", "32.89")}</defs><path fill="url(#a${id})" d="${MARK_A}"/><path fill="url(#b${id})" d="${MARK_B}"/></svg>`;
496
- }
497
- function escapeHtml(s) {
498
- return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
499
- }
500
- function page(args) {
501
- const detail = args.detail ? `<p><code>${escapeHtml(args.detail)}</code></p>` : "";
502
- return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(args.title)}</title><style>${STYLE}</style></head><body class="${args.ok ? "ok" : "bad"}"><main class="col"><div class="brand">${mark(38, 23, "c")}<span>HyperFrames</span></div><div class="tile">${args.ok ? CHECK : CROSS}</div><h1>${escapeHtml(args.title)}</h1><p>${escapeHtml(args.text)}</p>${detail}</main><aside class="panel"><div class="badge">${mark(96, 58, "p")}${CHK}</div><b>HyperFrames</b><small>by HeyGen</small></aside></body></html>`;
503
- }
504
- function connectedPage() {
505
- return page({
506
- ok: true,
507
- title: "You're connected",
508
- text: "Return to your terminal. You can close this tab."
509
- });
510
- }
511
- function failurePage(code, description) {
512
- if (code === "access_denied") {
513
- return page({
514
- ok: false,
515
- title: "Not authorized",
516
- text: "Nothing was connected. Run the login again from your terminal."
517
- });
518
- }
519
- return page({
520
- ok: false,
521
- title: "Couldn't connect",
522
- text: description || "Something went wrong on the way back. Run the login again from your terminal.",
523
- detail: code
524
- });
525
- }
526
-
527
- // src/auth/loopback.ts
528
- var CALLBACK_PATH = "/oauth/callback";
529
- var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
530
- async function startLoopback(opts) {
531
- const timeoutMs = opts.timeoutMs ?? SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS;
532
- const timeoutLabel = `${timeoutMs / 6e4} minutes`;
533
- let resolveResult;
534
- let rejectResult;
535
- const result = new Promise((resolve, reject) => {
536
- resolveResult = resolve;
537
- rejectResult = reject;
538
- });
539
- let redirectUri = "";
540
- const server = createServer(
541
- (req, res) => handleRequest(req, res, opts.state, redirectUri, resolveResult, rejectResult)
542
- );
543
- await listen(server, opts.port ?? 0);
544
- const address = server.address();
545
- redirectUri = `http://127.0.0.1:${address.port}${CALLBACK_PATH}`;
546
- let closed = false;
547
- const close = async () => {
548
- if (closed) return;
549
- closed = true;
550
- clearTimeout(timer);
551
- server.closeAllConnections?.();
552
- await new Promise((resolve) => server.close(() => resolve()));
553
- };
554
- const timer = setTimeout(() => {
555
- rejectResult(new Error(`OAuth callback timed out after ${timeoutLabel}`));
556
- void close();
557
- }, timeoutMs);
558
- result.finally(close).catch(() => {
559
- });
560
- return { result, redirectUri, timeoutLabel, close };
561
- }
562
- async function listen(server, port) {
563
- await new Promise((resolve, reject) => {
564
- server.once("error", reject);
565
- server.listen(port, "127.0.0.1", () => {
566
- server.off("error", reject);
567
- resolve();
568
- });
569
- });
570
- }
571
- function handleRequest(req, res, expectedState, redirectUri, resolveResult, rejectResult) {
572
- if (req.method !== "GET") {
573
- res.writeHead(405, { "content-type": "text/plain" }).end("Method Not Allowed");
574
- return;
575
- }
576
- const url = new URL(req.url ?? "/", "http://127.0.0.1");
577
- if (url.pathname !== CALLBACK_PATH) {
578
- res.writeHead(404, { "content-type": "text/plain" }).end("Not Found");
579
- return;
580
- }
581
- const params = url.searchParams;
582
- const error = params.get("error");
583
- if (error) {
584
- const desc = params.get("error_description") ?? "";
585
- respond(res, 400, failurePage(error, desc));
586
- rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
587
- return;
588
- }
589
- const state = params.get("state");
590
- if (!state || !stateMatches(state, expectedState)) {
591
- respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
592
- rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
593
- return;
594
- }
595
- const code = params.get("code");
596
- if (!code) {
597
- respond(
598
- res,
599
- 400,
600
- failurePage("missing_code", "Authorization code is missing from the redirect.")
601
- );
602
- rejectResult(new Error("OAuth redirect did not include `code`."));
603
- return;
604
- }
605
- respond(res, 200, connectedPage());
606
- resolveResult({ code, redirectUri });
607
- }
608
- function stateMatches(actual, expected) {
609
- const a = Buffer.from(actual, "utf8");
610
- const b = Buffer.from(expected, "utf8");
611
- if (a.length !== b.length) return false;
612
- return timingSafeEqual(a, b);
613
- }
614
- function respond(res, status, body) {
615
- res.writeHead(status, {
616
- "content-type": "text/html; charset=utf-8",
617
- "cache-control": "no-store",
618
- // Tell the browser not to keep the TCP socket alive — otherwise
619
- // `server.close()` blocks on the idle keep-alive timeout
620
- // (Chrome ~5min). Combined with `server.closeAllConnections()`
621
- // in `close()` this guarantees the CLI exits promptly after the
622
- // user sees the success page.
623
- connection: "close"
624
- }).end(body);
625
- }
626
-
627
625
  // src/auth/oauth.ts
628
626
  var REVOKE_TIMEOUT_MS = 5e3;
629
627
  var MIN_EXPIRES_IN_SECONDS = 30;
@@ -984,6 +982,9 @@ async function persistOAuth(tokens, opts = {}) {
984
982
  const oauth = opts.refreshed !== void 0 ? { ...existing.oauth, ...tokens, ...oauthIdentity() } : { ...tokens, ...oauthIdentity() };
985
983
  await writeStore({ ...existing, oauth });
986
984
  }
985
+ async function persistFreshOAuth(tokens) {
986
+ await persistOAuth(tokens);
987
+ }
987
988
  async function persistVerifiedOAuthSession(tokens, user) {
988
989
  let credentials = {};
989
990
  try {
@@ -1139,131 +1140,6 @@ async function safeText2(res) {
1139
1140
  }
1140
1141
  }
1141
1142
 
1142
- // src/auth/resolver.ts
1143
- var ENV_CREDENTIAL_VAR = {
1144
- env: "HEYGEN_API_KEY",
1145
- env_alias: "HYPERFRAMES_API_KEY",
1146
- env_oauth: "HEYGEN_ACCESS_TOKEN"
1147
- };
1148
- var envCredentialVar = (source) => source in ENV_CREDENTIAL_VAR ? ENV_CREDENTIAL_VAR[source] : void 0;
1149
- var EXPIRY_SKEW_MS = 60 * 1e3;
1150
- async function resolveCredential(opts = {}) {
1151
- const now = (opts.now ?? (() => /* @__PURE__ */ new Date()))();
1152
- const envKey = envApiKey();
1153
- if (envKey && !heygenApiHost()) return envKey;
1154
- const accessToken = headerSafeEnv(ENV_CREDENTIAL_VAR.env_oauth);
1155
- if (accessToken) {
1156
- return { type: "oauth", access_token: accessToken, source: "env_oauth", refreshable: false };
1157
- }
1158
- if (envKey && loginRefreshFailed) return envKey;
1159
- return await fromStore(now, envKey);
1160
- }
1161
- async function fromStore(now, envKey) {
1162
- const store = await readStore().catch((err) => {
1163
- if (envKey) return null;
1164
- throw err;
1165
- });
1166
- if (!store || store.source === "absent") {
1167
- if (envKey) return envKey;
1168
- throw ErrNotConfigured();
1169
- }
1170
- const { credentials, source } = store;
1171
- const fileSource = source === "file_legacy" ? "file_legacy" : "file_json";
1172
- const login = credentials.oauth && boundToThisClient(credentials.oauth) ? pickOAuth(credentials.oauth, now, fileSource) : null;
1173
- return login ?? envKey ?? storedApiKey(credentials, fileSource);
1174
- }
1175
- function storedApiKey(credentials, source) {
1176
- if (credentials.oauth) {
1177
- assertOAuthIdentity(credentials.oauth);
1178
- throw ErrLoginExpired();
1179
- }
1180
- if (credentials.api_key) return { type: "api_key", key: credentials.api_key, source };
1181
- throw ErrNotConfigured();
1182
- }
1183
- function envApiKey() {
1184
- const heygenEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env);
1185
- if (heygenEnv) return { type: "api_key", key: heygenEnv, source: "env" };
1186
- const hfEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env_alias);
1187
- if (hfEnv) return { type: "api_key", key: hfEnv, source: "env_alias" };
1188
- return void 0;
1189
- }
1190
- function heygenApiHost() {
1191
- const mediaBase = process.env["HEYGEN_API_BASE"]?.trim();
1192
- return [apiBaseUrl(), ...mediaBase ? [mediaBase] : []].every((base) => {
1193
- try {
1194
- const host = new URL(base).hostname;
1195
- return host === "heygen.com" || host.endsWith(".heygen.com");
1196
- } catch {
1197
- return false;
1198
- }
1199
- });
1200
- }
1201
- function boundToThisClient(tokens) {
1202
- try {
1203
- assertOAuthIdentity(tokens);
1204
- return true;
1205
- } catch {
1206
- return false;
1207
- }
1208
- }
1209
- var loginRefreshFailed = false;
1210
- async function afterRefreshFailure(err, refreshToken) {
1211
- if (!isAuthError(err)) throw err;
1212
- if (err.code === "LOGIN_CHANGED" || err.code === "REFRESH_FAILED") {
1213
- const stored = await readStore().catch(() => null);
1214
- const current = stored?.credentials.oauth?.refresh_token;
1215
- if (current && current !== refreshToken) {
1216
- const next = await resolveCredential();
1217
- if (next.type !== "oauth" || !next.refreshable) return next;
1218
- }
1219
- }
1220
- if (!err.refused && err.code !== "LOGIN_EXPIRED") throw err;
1221
- const key = envApiKey();
1222
- if (!key) throw err;
1223
- loginRefreshFailed = true;
1224
- return key;
1225
- }
1226
- function headerSafeEnv(name) {
1227
- const value = process.env[name];
1228
- if (value && !isHeaderSafe(value)) {
1229
- throw ErrInvalidStore(`${name} contains control characters`);
1230
- }
1231
- return value;
1232
- }
1233
- async function tryResolveCredential(opts = {}) {
1234
- try {
1235
- return await resolveCredential(opts);
1236
- } catch (err) {
1237
- if (isAuthError(err) && err.code === "NOT_CONFIGURED") {
1238
- return null;
1239
- }
1240
- throw err;
1241
- }
1242
- }
1243
- function pickOAuth(tokens, now, source) {
1244
- const expiresAt = parseDate(tokens.expires_at);
1245
- const expired = isTokenExpired(expiresAt, now);
1246
- if (expired && !tokens.refresh_token) return null;
1247
- const out = {
1248
- type: "oauth",
1249
- access_token: tokens.access_token,
1250
- source,
1251
- refreshable: expired && tokens.refresh_token !== void 0
1252
- };
1253
- if (tokens.refresh_token) out.refresh_token = tokens.refresh_token;
1254
- if (expiresAt) out.expires_at = expiresAt;
1255
- if (tokens.scope) out.scope = tokens.scope;
1256
- return out;
1257
- }
1258
- function isTokenExpired(expiresAt, now) {
1259
- return expiresAt !== void 0 && expiresAt.getTime() - EXPIRY_SKEW_MS < now.getTime();
1260
- }
1261
- function parseDate(s) {
1262
- if (!s) return void 0;
1263
- const d = new Date(s);
1264
- return Number.isNaN(d.getTime()) ? void 0 : d;
1265
- }
1266
-
1267
1143
  export {
1268
1144
  apiBaseUrl,
1269
1145
  AuthClient,
@@ -1280,11 +1156,7 @@ export {
1280
1156
  startDeviceAuthorizationFlow,
1281
1157
  refreshTokens,
1282
1158
  revokeTokens,
1283
- persistVerifiedOAuthSession,
1284
- ENV_CREDENTIAL_VAR,
1285
- envCredentialVar,
1286
- resolveCredential,
1287
- afterRefreshFailure,
1288
- tryResolveCredential,
1289
- isTokenExpired
1159
+ parseTokenResponse,
1160
+ persistFreshOAuth,
1161
+ persistVerifiedOAuthSession
1290
1162
  };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-EJPWGGPK.js";
10
+ } from "./chunk-2TBW7UOF.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-HHPRCLEW.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-C3XYMTF4.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {