hyperframes 0.9.18 → 0.9.20

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 (247) hide show
  1. package/dist/{add-R3OQEWVP.js → add-6U3Y7DEN.js} +14 -15
  2. package/dist/{agentPromptGenerator-53UGASPS.js → agentPromptGenerator-2U62YSRT.js} +10 -11
  3. package/dist/{animatedGifPrep-XTZ3NW4D.js → animatedGifPrep-RC6CYTRI.js} +10 -11
  4. package/dist/api.js +35 -36
  5. package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
  6. package/dist/{asset-7BXTM7P4.js → asset-ER2CUS6B.js} +2 -2
  7. package/dist/{assetCataloger-B6QCN7D4.js → assetCataloger-425SRTPW.js} +11 -12
  8. package/dist/{audio-6QT2263V.js → audio-JUAMPMWA.js} +69 -25
  9. package/dist/{auth-JIVRJDOA.js → auth-DQ52RE6K.js} +4 -4
  10. package/dist/{autoUpdate-PL2F3J42.js → autoUpdate-YUZGZ5ZI.js} +2 -2
  11. package/dist/{avatars-3BH2GOU2.js → avatars-F4HNQISE.js} +16 -17
  12. package/dist/{backgroundChecks-MVBPFASG.js → backgroundChecks-MSOJBGL7.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-MRZD6NEE.js → batchRender-33AZEDWV.js} +5 -6
  15. package/dist/{beats-FSTI2GOV.js → beats-WI3UU5KD.js} +11 -12
  16. package/dist/{benchmark-7RQP4OKL.js → benchmark-ZE5Y75YM.js} +11 -12
  17. package/dist/{billing-ERTIEJRM.js → billing-N4BCUG7R.js} +15 -16
  18. package/dist/{browser-SHRES7YO.js → browser-HUOPVD2U.js} +16 -4
  19. package/dist/{bundleWithLocalizedFonts-FBN6DQG7.js → bundleWithLocalizedFonts-PRR3UAJT.js} +1 -1
  20. package/dist/{capture-JGEPACNE.js → capture-2QNE2DEY.js} +3 -3
  21. package/dist/{capture-FI236QMK.js → capture-UWQ2GBML.js} +22 -23
  22. package/dist/{captureCompositionFrame-G35BXLQV.js → captureCompositionFrame-S2A5KJUT.js} +16 -17
  23. package/dist/{catalog-TASPLI6U.js → catalog-BQZ55PQP.js} +14 -15
  24. package/dist/{catch-up-HGAVR2VQ.js → catch-up-JFII6DVC.js} +18 -7
  25. package/dist/{check-LOIL7QDO.js → check-KPFCL46S.js} +43 -42
  26. package/dist/{checkAudio-GLG3SWWQ.js → checkAudio-NTES344V.js} +13 -14
  27. package/dist/{checkBrowser-YQETGZSL.js → checkBrowser-WQWRQO2X.js} +35 -36
  28. package/dist/{chunk-K336C37N.js → chunk-35APUSDP.js} +1 -1
  29. package/dist/{chunk-JALAIYCE.js → chunk-3KJW4NNP.js} +9 -9
  30. package/dist/{chunk-7WEOM6IL.js → chunk-3WLJMGCI.js} +1 -1
  31. package/dist/{chunk-QBV3XGXU.js → chunk-4EUUYYB3.js} +35 -2
  32. package/dist/{chunk-MHSQBZQJ.js → chunk-4HWNUBW2.js} +3 -3
  33. package/dist/{chunk-NYN24QRB.js → chunk-4J2Y6G2X.js} +1 -1
  34. package/dist/{chunk-WPID5YHT.js → chunk-4XOQILDV.js} +1 -1
  35. package/dist/{chunk-WJBP3LIO.js → chunk-5ECZJECP.js} +1 -1
  36. package/dist/{chunk-FDYNOOQZ.js → chunk-5KJWA22L.js} +5 -5
  37. package/dist/{chunk-A64V7MWG.js → chunk-5V3R5ZMY.js} +7 -7
  38. package/dist/{chunk-NTMMUK6Q.js → chunk-5WKW4P6P.js} +10 -5
  39. package/dist/{chunk-GDQQ4U3L.js → chunk-6FI5JRM3.js} +122 -27
  40. package/dist/{chunk-LPDYBJ2K.js → chunk-76HDNQDL.js} +2 -2
  41. package/dist/{chunk-6GJ7QJL7.js → chunk-76IGIELW.js} +2 -2
  42. package/dist/{chunk-CQ7H3AHT.js → chunk-7CGSZ3OR.js} +13 -13
  43. package/dist/{chunk-4WV3XDN4.js → chunk-7DGAJ7RY.js} +1 -1
  44. package/dist/chunk-7DS3STTY.js +5035 -0
  45. package/dist/{chunk-N5U63MJG.js → chunk-7ISXVZHB.js} +4 -4
  46. package/dist/{chunk-UJOQZRIS.js → chunk-7PG57ERE.js} +1 -1
  47. package/dist/{chunk-MBZ56OAU.js → chunk-A457YCWN.js} +2 -2
  48. package/dist/{chunk-WMRHEI4N.js → chunk-ADJCNH7M.js} +1 -1
  49. package/dist/{chunk-ENVFGBRD.js → chunk-AXFYCH7S.js} +12 -0
  50. package/dist/{chunk-DQ64M2ZV.js → chunk-BA3FUJOU.js} +4 -4
  51. package/dist/{chunk-QT2SLY7N.js → chunk-BQ2U65ZF.js} +272 -186
  52. package/dist/{chunk-ZII5GCHN.js → chunk-C2PQTWAH.js} +1 -1
  53. package/dist/{chunk-FSHSG2G5.js → chunk-CKZQQ2DO.js} +1 -1
  54. package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
  55. package/dist/{chunk-LKT5BLRG.js → chunk-D3ZYDQMH.js} +2 -2
  56. package/dist/{chunk-PKUGO6D3.js → chunk-DNWZ66ND.js} +1 -1
  57. package/dist/{chunk-DXOAVIPV.js → chunk-FPM6B5X5.js} +3 -3
  58. package/dist/{chunk-KWF5BWC7.js → chunk-FXPBFARU.js} +1 -1
  59. package/dist/{chunk-DUIVM4DL.js → chunk-FY2QFPEK.js} +1 -1
  60. package/dist/{chunk-UUZL4X3G.js → chunk-G2C7OTXI.js} +1 -1
  61. package/dist/{chunk-NC7I6JJZ.js → chunk-GH4QTKBM.js} +42 -15
  62. package/dist/{chunk-LPIHSJAU.js → chunk-GNY2WZKA.js} +3 -3
  63. package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
  64. package/dist/{chunk-K2KFYRVX.js → chunk-HCUEMQB4.js} +1 -1
  65. package/dist/{chunk-PX7EV4SO.js → chunk-HIT72LVX.js} +7 -7
  66. package/dist/{chunk-QVR75TAB.js → chunk-IBXWPFGK.js} +2 -2
  67. package/dist/{chunk-GBRXAHOL.js → chunk-IY4I7TV4.js} +2 -2
  68. package/dist/{chunk-PBKY4VTZ.js → chunk-JXGFZG73.js} +1 -1
  69. package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
  70. package/dist/{chunk-MBHKOK7C.js → chunk-KKNAM57Z.js} +1 -1
  71. package/dist/{chunk-6OBCXHIF.js → chunk-KPCCWI5Q.js} +3 -3
  72. package/dist/{chunk-FUQPQDBA.js → chunk-L6XUDQW6.js} +46 -20
  73. package/dist/{chunk-6AFDBTX6.js → chunk-LDV6P3DG.js} +1 -1
  74. package/dist/{chunk-CNCKUJSI.js → chunk-LEVO6XYF.js} +83 -31
  75. package/dist/{chunk-H3YLGOKX.js → chunk-LNHMJ555.js} +1 -1
  76. package/dist/{chunk-X2TDLUIK.js → chunk-M5CDC3VO.js} +32 -7
  77. package/dist/{chunk-AXCL2A3T.js → chunk-MHW4MMV4.js} +10 -10
  78. package/dist/{chunk-DNECYN6I.js → chunk-MQFX4OD3.js} +1 -1
  79. package/dist/{chunk-7NRTBDXX.js → chunk-N2I2YUL7.js} +7 -7
  80. package/dist/{chunk-35STY5XW.js → chunk-NHV3G6JH.js} +1 -1
  81. package/dist/{chunk-C6GJQWRL.js → chunk-NSNT4DNY.js} +2 -2
  82. package/dist/{chunk-ORM4MISE.js → chunk-NZ6JYCGU.js} +3 -3
  83. package/dist/{chunk-T6CCPIDG.js → chunk-OAQTFIWB.js} +3 -3
  84. package/dist/{chunk-IJOCZ7ND.js → chunk-OWBXXAYQ.js} +2 -2
  85. package/dist/{chunk-MQ3LHGNO.js → chunk-P2DAWEPF.js} +2 -2
  86. package/dist/{chunk-TJUJJYJC.js → chunk-P2GR4V7S.js} +1 -1
  87. package/dist/{chunk-W3O7S7FC.js → chunk-PAFAOFZZ.js} +1 -1
  88. package/dist/{chunk-HVACLBWZ.js → chunk-PGNE33QK.js} +236 -49
  89. package/dist/{chunk-JQTQM6RE.js → chunk-POKB2QVF.js} +2 -2
  90. package/dist/{chunk-VDQPHJVR.js → chunk-PWP4W2PF.js} +1 -1
  91. package/dist/{chunk-KAUUM3TL.js → chunk-Q6DA3X34.js} +4 -4
  92. package/dist/{chunk-AAEPGDLX.js → chunk-QSOIL3EE.js} +3 -3
  93. package/dist/{chunk-QVPHMXKR.js → chunk-QUYTXJLE.js} +1 -1
  94. package/dist/{chunk-6LMZ677L.js → chunk-QYWOP6MH.js} +3 -3
  95. package/dist/{chunk-PIPBEVLP.js → chunk-RFG4XUMQ.js} +1 -1
  96. package/dist/{chunk-LFQLYI7R.js → chunk-RONKIDIW.js} +5 -5
  97. package/dist/{chunk-WTOPHBYH.js → chunk-RPSR5YSD.js} +4 -4
  98. package/dist/{chunk-ZHP26FJS.js → chunk-S45SR3TL.js} +2 -2
  99. package/dist/{chunk-HEZYZUF5.js → chunk-S6MXHF7C.js} +1 -1
  100. package/dist/{chunk-56XJDA3H.js → chunk-SH6P5CMQ.js} +77 -2
  101. package/dist/{chunk-DGDTF64K.js → chunk-SVOUYNKZ.js} +44 -17
  102. package/dist/{chunk-PPWKGSEV.js → chunk-TCW3ALLF.js} +2 -2
  103. package/dist/{chunk-3OS2U5V2.js → chunk-TGSBNJYV.js} +2 -2
  104. package/dist/{chunk-PPCD5YIU.js → chunk-TKHWUM6J.js} +2 -2
  105. package/dist/{chunk-3ACGV3PF.js → chunk-UECTSXVZ.js} +1 -1
  106. package/dist/{chunk-XJZR7MXG.js → chunk-UH6JF4TY.js} +12 -5
  107. package/dist/{chunk-YJNI2NM7.js → chunk-USRF4NA6.js} +10 -10
  108. package/dist/{chunk-5IUSAGDH.js → chunk-UXEUKILH.js} +1 -1
  109. package/dist/{chunk-5O4RH4G3.js → chunk-VM6PDH32.js} +1 -1
  110. package/dist/{chunk-T3K56YF2.js → chunk-WMZHESNZ.js} +2 -2
  111. package/dist/{chunk-4JI4P3J6.js → chunk-WNPIJ7UG.js} +1 -1
  112. package/dist/{chunk-4M42XMWZ.js → chunk-X254MPK3.js} +1 -1
  113. package/dist/{chunk-P6QX426Y.js → chunk-XACDCHJF.js} +1 -1
  114. package/dist/{chunk-GOLNW4NI.js → chunk-XID37ELP.js} +2 -2
  115. package/dist/{chunk-75AH7UVP.js → chunk-XU5LAY46.js} +1 -1
  116. package/dist/{chunk-Y3P26O7I.js → chunk-Y5ZW3BRK.js} +3 -3
  117. package/dist/{chunk-AAQ32CJQ.js → chunk-YVFJWUSI.js} +1 -1
  118. package/dist/{chunk-53YFWZOA.js → chunk-Z745SNN4.js} +1 -1
  119. package/dist/{chunk-EOIDKM7D.js → chunk-ZNUMTYBZ.js} +3 -3
  120. package/dist/{clean-J6NG7RNU.js → clean-5FFXB5MF.js} +20 -21
  121. package/dist/cli.js +62 -62
  122. package/dist/{cloud-D3WTNTF2.js → cloud-CINLC3NP.js} +3 -3
  123. package/dist/{cloud-LETWSUJR.js → cloud-XC5OSAE2.js} +4 -4
  124. package/dist/{cloudrun-RERXEEVM.js → cloudrun-VVU4XERK.js} +6 -7
  125. package/dist/{compare-ARPUHHYW.js → compare-6ZVA7JDY.js} +32 -33
  126. package/dist/{compiler-DGB2I53W.js → compiler-4WKTHUPH.js} +4 -4
  127. package/dist/{component-2USQBQOH.js → component-CYXNZPHM.js} +3 -3
  128. package/dist/{compositions-X4GSF4RG.js → compositions-Z53CMRFQ.js} +14 -15
  129. package/dist/{curve-4OYTBAKF.js → curve-ZLVHONKG.js} +14 -15
  130. package/dist/{cuts-7MWGKKPB.js → cuts-JGHDX4ND.js} +15 -16
  131. package/dist/{delete-IY5EUCTR.js → delete-C6KCUXEV.js} +5 -5
  132. package/dist/{deploy-PEN3EL7H.js → deploy-3W4FAFBU.js} +1 -1
  133. package/dist/{describeProject-STLWIUTD.js → describeProject-NB7JQQRZ.js} +11 -12
  134. package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
  135. package/dist/{diff-7T6PMH3C.js → diff-77IF7ZGC.js} +34 -35
  136. package/dist/{dist-7W5T76QK.js → dist-2MTQQEZT.js} +17 -17
  137. package/dist/{dist-URQMS2HM.js → dist-LPVHFSCW.js} +2 -2
  138. package/dist/{dist-K4BOTYAM.js → dist-PVM257OR.js} +11 -12
  139. package/dist/docs/motion-blur.md +3 -5
  140. package/dist/{doctor-65DXV54T.js → doctor-7ARBZ2FZ.js} +14 -15
  141. package/dist/{energy-BJVPUQDC.js → energy-2I6O5IQY.js} +15 -16
  142. package/dist/{events-KLSIFOUP.js → events-CG6ZFBPQ.js} +16 -4
  143. package/dist/{events-FVEDX5PT.js → events-CXZTEW5W.js} +17 -18
  144. package/dist/{events-MMV4IZQE.js → events-MCXWDE3G.js} +2 -2
  145. package/dist/{extract-ZDOKCY4G.js → extract-NSSKZ7EO.js} +15 -16
  146. package/dist/{face-SP6O3QUI.js → face-CZBXJIJD.js} +15 -16
  147. package/dist/{feedback-CCNOYJZG.js → feedback-3ZZQHXQA.js} +18 -19
  148. package/dist/{ffmpeg-2V25MA6C.js → ffmpeg-KOJQXOMH.js} +10 -11
  149. package/dist/{figma-C7GSU5XD.js → figma-T77MIMMN.js} +3 -3
  150. package/dist/fontLocalizeCli.js +14 -15
  151. package/dist/{frames-GW7MG4PX.js → frames-GMXMQ7DQ.js} +16 -17
  152. package/dist/{generate-TBA3D3BT.js → generate-PN2N6MQV.js} +26 -27
  153. package/dist/{get-EUPFU4PY.js → get-AMP7GO2J.js} +5 -5
  154. package/dist/{gpuPolicy-7WYJ73JK.js → gpuPolicy-336CZTOI.js} +10 -11
  155. package/dist/{grade-compare-V62HD24E.js → grade-compare-XHR7XCIJ.js} +33 -34
  156. package/dist/{heifImagePrep-K2VOQAMS.js → heifImagePrep-GAATPFZJ.js} +11 -12
  157. package/dist/{help-WIRMKAY5.js → help-QLT7Q5CF.js} +1 -1
  158. package/dist/{history-3JEFAPPA.js → history-IBK4ICX6.js} +19 -8
  159. package/dist/hyperframe.manifest.json +1 -1
  160. package/dist/hyperframe.runtime.iife.js +73 -73
  161. package/dist/hyperframes-player.global.js +3 -3
  162. package/dist/{info-XD7XL4UA.js → info-IF6TAH4N.js} +16 -17
  163. package/dist/{init-OCITZW56.js → init-7TY3OJ6O.js} +30 -31
  164. package/dist/{ink-RIBPCBLJ.js → ink-PGZ7QSBH.js} +15 -16
  165. package/dist/{inspect-O3KNTVYU.js → inspect-LHLSKDYO.js} +33 -34
  166. package/dist/{installer-JC737YVC.js → installer-DBTP7YGS.js} +6 -7
  167. package/dist/{keyframes-4YEMPCE3.js → keyframes-4M4776JR.js} +16 -8
  168. package/dist/{lambda-6RI6AZCI.js → lambda-FFMB6Y76.js} +14 -15
  169. package/dist/{layout-U323JUYY.js → layout-LJHS7HFD.js} +33 -34
  170. package/dist/{lint-HL2ZMYYD.js → lint-2J5AVK6D.js} +14 -10
  171. package/dist/{lintProject-6TML32JZ.js → lintProject-2OD4CDTW.js} +2 -2
  172. package/dist/{list-YVRLEZ5C.js → list-MAYBNZEL.js} +5 -5
  173. package/dist/{localPage-Z4A2OOHF.js → localPage-EKPNDJ27.js} +10 -11
  174. package/dist/{login-Z53XVXB2.js → login-CEU43XKU.js} +6 -6
  175. package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
  176. package/dist/{look-QAEW6NLB.js → look-IYTF5GLD.js} +15 -16
  177. package/dist/{manager-Y5JESME2.js → manager-DILAI3UF.js} +11 -12
  178. package/dist/{measure-QAPM6I7P.js → measure-2WZGYPYI.js} +11 -11
  179. package/dist/{media-treatment-QBSD7Z4H.js → media-treatment-NEY3KFIE.js} +16 -17
  180. package/dist/{media-use-HWZY3QEN.js → media-use-3RF5K7J2.js} +4 -4
  181. package/dist/{models-MKZN7KP3.js → models-JG3K3WHB.js} +14 -15
  182. package/dist/{motionShot-EF2FD7HF.js → motionShot-BXTTHXNC.js} +19 -20
  183. package/dist/{normalize-audio-UI7VGKNU.js → normalize-audio-V42ORWPJ.js} +11 -12
  184. package/dist/{open-PUWUKUNK.js → open-TIGOP4UL.js} +15 -16
  185. package/dist/{parakeetRunner-3XQTNEZS.js → parakeetRunner-ECBLSKPA.js} +15 -16
  186. package/dist/{pipeline-UECOYEZ2.js → pipeline-NAQKFYVO.js} +13 -14
  187. package/dist/{play-4KFBSJLJ.js → play-OCUIRYGT.js} +22 -23
  188. package/dist/{preflight-NREEVZKH.js → preflight-FXN2DIKX.js} +11 -12
  189. package/dist/{present-5GDW3P4H.js → present-EIPGUFX2.js} +18 -19
  190. package/dist/{preview-MU3SNNHO.js → preview-D3DGM36N.js} +22 -23
  191. package/dist/{probe-ZZ5F7LF4.js → probe-LHGNRPYJ.js} +15 -16
  192. package/dist/{producer-AMLHR4XV.js → producer-MUSGQJB5.js} +1 -1
  193. package/dist/{projectConfig-LQDSRYHS.js → projectConfig-5XHCXAR2.js} +8 -9
  194. package/dist/{publication-VFQY5MS4.js → publication-YHI2M2PN.js} +4 -5
  195. package/dist/{publish-KFUMQFD4.js → publish-DD4ZAHEH.js} +15 -16
  196. package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
  197. package/dist/{remove-background-GXQLMKYN.js → remove-background-AJBLAXSV.js} +14 -15
  198. package/dist/{render-5YMMU4K3.js → render-32BRUXZK.js} +7 -8
  199. package/dist/{render-U63G4NFP.js → render-AKGMPEQ4.js} +104 -62
  200. package/dist/{render-X2TJ52JS.js → render-LCH7X3UA.js} +42 -39
  201. package/dist/{render-batch-EJCIXNZ4.js → render-batch-BGZ4XDDA.js} +7 -8
  202. package/dist/renderSetupWorker.js +11 -8
  203. package/dist/{resolver-3AZ6BDNT.js → resolver-M64IRWRP.js} +6 -7
  204. package/dist/{reverse-SGQLQDPZ.js → reverse-HLLQAI77.js} +1 -1
  205. package/dist/{run-WZP6HXIH.js → run-Q4IUMQIY.js} +4 -4
  206. package/dist/{screenshotCapture-YHT6OFSL.js → screenshotCapture-INHISXPC.js} +11 -12
  207. package/dist/{sherpa-DHJ4KV3O.js → sherpa-MQLZFNTX.js} +14 -15
  208. package/dist/skills/hyperframes/references/motion.md +1 -1
  209. package/dist/skills/hyperframes/references/storyboard.md +1 -1
  210. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
  211. package/dist/skills/media-use/references/heygen.md +9 -9
  212. package/dist/{skills-PSIYCWQF.js → skills-W4F5AJ2K.js} +19 -7
  213. package/dist/{skillsUpdateCheck-INFQ6JY4.js → skillsUpdateCheck-GVFHBX3G.js} +3 -3
  214. package/dist/{snapshot-BRJWWBVL.js → snapshot-34FUMOEG.js} +40 -41
  215. package/dist/{src-Q4HPEI72.js → src-M3NYEBA7.js} +13 -14
  216. package/dist/{src-4HGQRHW6.js → src-VL6XKFAA.js} +20 -19
  217. package/dist/{start-BF77FALB.js → start-A3YWCGDG.js} +24 -25
  218. package/dist/{staticProjectServer-MJGRVAHU.js → staticProjectServer-6NQWZP3Q.js} +21 -22
  219. package/dist/{status-GKDPASRO.js → status-ZBUL7MPB.js} +16 -17
  220. package/dist/studio/assets/{hyperframes-player-pLs7eSzg.js → hyperframes-player-ZQZslutT.js} +3 -3
  221. package/dist/studio/assets/index-Bgfyny02.css +1 -0
  222. package/dist/studio/assets/{index-DZ7OLB7p.js → index-Bn5atbhb.js} +1 -1
  223. package/dist/studio/assets/{index-D_iVCwL3.js → index-Bz2pYyGM.js} +196 -196
  224. package/dist/studio/index.html +2 -2
  225. package/dist/{studio-api-UOW3KWGH.js → studio-api-CIDVEQUP.js} +11 -12
  226. package/dist/{studioServer-6HZXHHM2.js → studioServer-4FEM4AAL.js} +66 -59
  227. package/dist/{sync-STGNZI3G.js → sync-PXQD6JNH.js} +15 -16
  228. package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
  229. package/dist/{telemetry-3CL4XRJJ.js → telemetry-W7PZ4E2A.js} +16 -4
  230. package/dist/{templates-GK4UAT6M.js → templates-ELZU33UU.js} +25 -26
  231. package/dist/{timeline-QPB6QGXD.js → timeline-O7BR3IKC.js} +21 -22
  232. package/dist/{tokens-S7IZD453.js → tokens-RNFI6LFF.js} +2 -2
  233. package/dist/{transcribe-LPYK5H76.js → transcribe-GUUUSHHL.js} +28 -29
  234. package/dist/{transcribe-TL74MCTG.js → transcribe-XQOGYK6P.js} +13 -14
  235. package/dist/{update-WXPQPKMO.js → update-J37ZLNH7.js} +20 -8
  236. package/dist/{updateCheck-QRNGICLU.js → updateCheck-ALBUZ6YM.js} +2 -2
  237. package/dist/{upgrade-NH3NQOMG.js → upgrade-NVG73VIE.js} +3 -3
  238. package/dist/{upload-YQMBLKH5.js → upload-HBALN6HE.js} +5 -1
  239. package/dist/{urlDownloader-JELHNEVH.js → urlDownloader-TKEHDA5W.js} +9 -10
  240. package/dist/{validate-SRIEIBQV.js → validate-3TFHU3MJ.js} +27 -28
  241. package/dist/{video-ZMNAGSOC.js → video-PBNQGPQO.js} +11 -12
  242. package/dist/{voices-YVWEHLRS.js → voices-PF7EV4O4.js} +29 -28
  243. package/dist/warmCheck.js +41 -42
  244. package/package.json +1 -1
  245. package/dist/chunk-DSSDDLGX.js +0 -5035
  246. package/dist/chunk-TK7THLRO.js +0 -65
  247. package/dist/studio/assets/index-CNZk2EFC.css +0 -1
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-HVACLBWZ.js";
9
+ } from "./chunk-PGNE33QK.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getCachedGpuEncoder
9
- } from "./chunk-HVACLBWZ.js";
9
+ } from "./chunk-PGNE33QK.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-X6JUUQCM.js";
@@ -26,7 +26,16 @@ function windowsLocalAppData() {
26
26
  }
27
27
 
28
28
  // src/utils/projectRecords.ts
29
- import { closeSync, constants, fstatSync, lstatSync, mkdirSync, openSync, readSync } from "fs";
29
+ import {
30
+ closeSync,
31
+ constants,
32
+ fstatSync,
33
+ lstatSync,
34
+ mkdirSync,
35
+ openSync,
36
+ readSync,
37
+ unlinkSync
38
+ } from "fs";
30
39
  import { join } from "path";
31
40
  var NO_FOLLOW = constants.O_NOFOLLOW ?? 0;
32
41
  var NON_BLOCK = constants.O_NONBLOCK ?? 0;
@@ -91,6 +100,16 @@ function writeRecord(projectDir, name, data) {
91
100
  const dir = recordsDir(projectDir, true);
92
101
  return dir !== null && replaceFile(join(dir, name), data, 384);
93
102
  }
103
+ function removeRecord(projectDir, name) {
104
+ const dir = recordsDir(projectDir);
105
+ try {
106
+ if (!dir || !lstatSync(join(dir, name)).isFile()) return false;
107
+ unlinkSync(join(dir, name));
108
+ return true;
109
+ } catch {
110
+ return false;
111
+ }
112
+ }
94
113
 
95
114
  // src/utils/appHistory.ts
96
115
  var APP_HISTORY = "app-history.jsonl";
@@ -226,7 +245,9 @@ ${CATCH_UP_NOTE}
226
245
 
227
246
  export {
228
247
  windowsLocalAppData,
248
+ readRecord,
229
249
  writeRecord,
250
+ removeRecord,
230
251
  APP_HISTORY,
231
252
  readAppTurns,
232
253
  seenPath,
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-HEZYZUF5.js";
11
+ } from "./chunk-S6MXHF7C.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-T2WJO4XM.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-56XJDA3H.js";
18
+ } from "./chunk-SH6P5CMQ.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -13,7 +13,7 @@ import {
13
13
  round,
14
14
  runFfmpeg,
15
15
  sumOf
16
- } from "./chunk-PIPBEVLP.js";
16
+ } from "./chunk-RFG4XUMQ.js";
17
17
  import {
18
18
  verifies
19
19
  } from "./chunk-RZ6CXJ56.js";
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCloudAuthHeaders,
9
9
  resolveCloudBaseUrl
10
- } from "./chunk-J3QW55W5.js";
10
+ } from "./chunk-H6676SHA.js";
11
11
  import {
12
12
  readProjectConfig
13
- } from "./chunk-K2KFYRVX.js";
13
+ } from "./chunk-HCUEMQB4.js";
14
14
  import {
15
15
  normalizeSkillSlug
16
16
  } from "./chunk-HVW7ABXD.js";
17
17
  import {
18
18
  trackBillingCheckoutReturnRefused
19
- } from "./chunk-QBV3XGXU.js";
19
+ } from "./chunk-4EUUYYB3.js";
20
20
 
21
21
  // src/heygen/plan.ts
22
22
  import { randomUUID } from "crypto";
@@ -11,7 +11,7 @@ import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-HVACLBWZ.js";
14
+ } from "./chunk-PGNE33QK.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-66W5IWLO.js";
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-PIPBEVLP.js";
11
+ } from "./chunk-RFG4XUMQ.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-PIPBEVLP.js";
13
+ } from "./chunk-RFG4XUMQ.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCuts,
9
9
  signatures
10
- } from "./chunk-5IUSAGDH.js";
10
+ } from "./chunk-UXEUKILH.js";
11
11
  import {
12
12
  jsonArg,
13
13
  num,
14
14
  runMeasure
15
- } from "./chunk-PPWKGSEV.js";
15
+ } from "./chunk-TCW3ALLF.js";
16
16
  import {
17
17
  makeOutputFolder
18
18
  } from "./chunk-3S27CPV7.js";
@@ -23,7 +23,7 @@ import {
23
23
  publicVoices,
24
24
  runJob,
25
25
  senderScope
26
- } from "./chunk-KAUUM3TL.js";
26
+ } from "./chunk-Q6DA3X34.js";
27
27
  import {
28
28
  Fix,
29
29
  probeSeconds,
@@ -32,7 +32,7 @@ import {
32
32
  round,
33
33
  runFfmpeg,
34
34
  videoClip
35
- } from "./chunk-PIPBEVLP.js";
35
+ } from "./chunk-RFG4XUMQ.js";
36
36
  import {
37
37
  loadSharp
38
38
  } from "./chunk-NL4RCLQF.js";
@@ -311,9 +311,9 @@ function assetsOf(r) {
311
311
  async function uploaded(paths) {
312
312
  const ids = /* @__PURE__ */ new Map();
313
313
  if (!paths.length) return ids;
314
- const { createCloudClient } = await import("./cloud-D3WTNTF2.js");
315
- const { uploadAssetViaDirectUpload } = await import("./upload-YQMBLKH5.js");
316
- const { getMimeType } = await import("./dist-K4BOTYAM.js");
314
+ const { createCloudClient } = await import("./cloud-CINLC3NP.js");
315
+ const { uploadAssetViaDirectUpload } = await import("./upload-HBALN6HE.js");
316
+ const { getMimeType } = await import("./dist-PVM257OR.js");
317
317
  const client = await createCloudClient();
318
318
  for (const path of paths) {
319
319
  const asset = await uploadAssetViaDirectUpload({
@@ -475,11 +475,24 @@ async function pickVoice(r) {
475
475
  ]);
476
476
  const kept = keptVoice(project, request);
477
477
  if (kept) return kept;
478
- const [voice] = await publicVoices(r.voice, 1);
479
- if (!voice) throw new Fix(`HeyGen has no public voice for ${r.voice}`, "--voice <voice id>");
478
+ const language = languageName(r.voice);
479
+ const [voice] = await publicVoices(language, 1);
480
+ const named = voice?.language?.toLowerCase() === language.toLowerCase();
481
+ if (!voice || !named && voice.language?.toLowerCase() === "multilingual")
482
+ throw new Fix(
483
+ `HeyGen has no public voice for ${r.voice}${voice ? ` (it offered a ${voice.language} one)` : ""}`,
484
+ "--voice <the language's English name, e.g. English or Chinese>, or --voice <voice id>"
485
+ );
480
486
  keepVoice(project, request, voice);
481
487
  return voice;
482
488
  }
489
+ var LANGUAGE_TAG = /^([a-z]{2,3})(?:[-_][a-z0-9]{2,8})*$/i;
490
+ var LANGUAGE_NAMES = new Intl.DisplayNames(["en"], { type: "language", fallback: "none" });
491
+ function languageName(spelled) {
492
+ const tag = LANGUAGE_TAG.exec(spelled.trim());
493
+ if (!tag) return spelled;
494
+ return LANGUAGE_NAMES.of(tag[1].toLowerCase()) ?? spelled;
495
+ }
483
496
  function checkRequest(r) {
484
497
  const route = ROUTES[r.type];
485
498
  if (!route.ext.includes(extname(r.out).toLowerCase()))
@@ -618,7 +631,11 @@ var GPT_IMAGE = {
618
631
  "4:3": 0.03612,
619
632
  "3:4": 0.03612
620
633
  };
634
+ var GPT_REFERENCE = 0.0125;
635
+ var GPT_MODELS = /* @__PURE__ */ new Set(["gpt-image-2.5", "gpt-image-2.6", "gpt-image-2.6-flare"]);
621
636
  var NANO_IMAGE = 0.067;
637
+ var NANO_2_1_IMAGE = 0.0336;
638
+ var NANO_2_1_REFERENCE = 168e-5;
622
639
  var VIDEO_768P_PER_S = 0.018;
623
640
  var VIDEO_REF_768P_PER_S = 0.05;
624
641
  var VIDEO_INCLUDED_IMAGES = 2;
@@ -638,12 +655,19 @@ function priceOf(r) {
638
655
  switch (r.type) {
639
656
  case "image": {
640
657
  const refs = r.references?.length ?? 0;
641
- if ((r.model ?? "nano-banana-2") === "nano-banana-2")
642
- return at(NANO_IMAGE, "nano-banana-2, $0.067 an image");
658
+ const model = r.model ?? "nano-banana-2";
659
+ if (model === "nano-banana-2") return at(NANO_IMAGE, "nano-banana-2, $0.067 an image");
660
+ if (model === "nano-banana-2.1")
661
+ return at(
662
+ NANO_2_1_IMAGE + refs * NANO_2_1_REFERENCE,
663
+ "nano-banana-2.1, $0.0336 an image and $0.00168 a reference"
664
+ );
665
+ if (!GPT_MODELS.has(model))
666
+ return { usd: null, list: null, credits: null, basis: `${model}, not priced ahead` };
643
667
  const each = GPT_IMAGE[r.aspect ?? "16:9"] ?? GPT_IMAGE["16:9"];
644
668
  return at(
645
- each + Math.max(0, refs - 1) * 82e-4,
646
- `gpt-image-2.5 at ${r.aspect ?? "16:9"}, $0.0082 a reference after the first`
669
+ each + refs * GPT_REFERENCE,
670
+ `${model} at ${r.aspect ?? "16:9"}, about $0.0125 a reference`
647
671
  );
648
672
  }
649
673
  case "video": {
@@ -811,7 +835,7 @@ var generate_default = defineCommand({
811
835
  script: { type: "string", description: "avatar, voice: the words spoken" },
812
836
  voice: {
813
837
  type: "string",
814
- description: "avatar, voice: a HeyGen voice id, or a language for its first voice in it"
838
+ description: "avatar, voice: a HeyGen voice id, or a language (English, Chinese, en, zh-CN) for its first voice in it"
815
839
  },
816
840
  seconds: {
817
841
  type: "string",
@@ -821,7 +845,10 @@ var generate_default = defineCommand({
821
845
  type: "string",
822
846
  description: "Aspect ratio, e.g. 9:16 (image, video without a first frame, avatar)"
823
847
  },
824
- model: { type: "string", description: "image: nano-banana-2 (default) or gpt-image-2.5" },
848
+ model: {
849
+ type: "string",
850
+ description: "image: nano-banana-2 (default), nano-banana-2.1, gpt-image-2.5, gpt-image-2.6 or gpt-image-2.6-flare"
851
+ },
825
852
  bpm: { type: "string", description: "music: tempo, 60\u2013180" },
826
853
  vocals: {
827
854
  type: "boolean",
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-QBV3XGXU.js";
10
+ } from "./chunk-4EUUYYB3.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-4WV3XDN4.js";
13
+ } from "./chunk-7DGAJ7RY.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-HOCC4J5C.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-FDPS57FU.js"),
87
- import("./ffmpeg-2V25MA6C.js")
87
+ import("./ffmpeg-KOJQXOMH.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -10,7 +10,7 @@ import {
10
10
  buildAuthHeaders,
11
11
  refreshTokens,
12
12
  resolveCredential
13
- } from "./chunk-L24NAUBS.js";
13
+ } from "./chunk-KBHBSWEE.js";
14
14
  import {
15
15
  ErrLoginExpired
16
16
  } from "./chunk-LP7B3JLC.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-HEZYZUF5.js";
15
+ } from "./chunk-S6MXHF7C.js";
16
16
 
17
17
  // src/utils/projectConfig.ts
18
18
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -6,34 +6,34 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-75AH7UVP.js";
9
+ } from "./chunk-XU5LAY46.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-MQ3LHGNO.js";
15
+ } from "./chunk-P2DAWEPF.js";
16
16
  import {
17
17
  idempotencyKey,
18
18
  runJob
19
- } from "./chunk-KAUUM3TL.js";
19
+ } from "./chunk-Q6DA3X34.js";
20
20
  import {
21
21
  projectOf,
22
22
  runFfmpeg
23
- } from "./chunk-PIPBEVLP.js";
23
+ } from "./chunk-RFG4XUMQ.js";
24
24
  import {
25
25
  initialModelForLanguage,
26
26
  transcribe
27
- } from "./chunk-6LMZ677L.js";
27
+ } from "./chunk-QYWOP6MH.js";
28
28
  import {
29
29
  createRenderCancellationScope,
30
30
  stoppedByCancelSignal
31
- } from "./chunk-ZII5GCHN.js";
31
+ } from "./chunk-C2PQTWAH.js";
32
32
  import {
33
33
  DEFAULT_MODEL,
34
34
  findWhisper,
35
35
  isWhisperUnavailable
36
- } from "./chunk-53YFWZOA.js";
36
+ } from "./chunk-Z745SNN4.js";
37
37
  import {
38
38
  formatSrt,
39
39
  formatVtt,
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-PBKY4VTZ.js";
23
+ } from "./chunk-JXGFZG73.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-DL4OD7IA.js";
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
229
229
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
230
230
  );
231
231
  }
232
- const { trackFigmaImport } = await import("./telemetry-3CL4XRJJ.js");
232
+ const { trackFigmaImport } = await import("./telemetry-W7PZ4E2A.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),
@@ -8,13 +8,13 @@ import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
10
  runFfmpeg
11
- } from "./chunk-HVACLBWZ.js";
11
+ } from "./chunk-PGNE33QK.js";
12
12
  import {
13
13
  renameWithRetry
14
14
  } from "./chunk-YWRUQ7XZ.js";
15
15
  import {
16
16
  parseAnimatedGifMetadata
17
- } from "./chunk-56XJDA3H.js";
17
+ } from "./chunk-SH6P5CMQ.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-GWTIFRF5.js";
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-KLSIFOUP.js");
1281
+ const { trackCommandFailure } = await import("./events-CG6ZFBPQ.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -465,6 +465,66 @@ function base64UrlEncode(buf) {
465
465
  // src/auth/loopback.ts
466
466
  import { timingSafeEqual } from "crypto";
467
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
468
528
  var CALLBACK_PATH = "/oauth/callback";
469
529
  var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
470
530
  async function startLoopback(opts) {
@@ -522,13 +582,13 @@ function handleRequest(req, res, expectedState, redirectUri, resolveResult, reje
522
582
  const error = params.get("error");
523
583
  if (error) {
524
584
  const desc = params.get("error_description") ?? "";
525
- respond(res, 400, errorPage(error, desc));
585
+ respond(res, 400, failurePage(error, desc));
526
586
  rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
527
587
  return;
528
588
  }
529
589
  const state = params.get("state");
530
590
  if (!state || !stateMatches(state, expectedState)) {
531
- respond(res, 400, errorPage("invalid_state", "State parameter did not match."));
591
+ respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
532
592
  rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
533
593
  return;
534
594
  }
@@ -537,12 +597,12 @@ function handleRequest(req, res, expectedState, redirectUri, resolveResult, reje
537
597
  respond(
538
598
  res,
539
599
  400,
540
- errorPage("missing_code", "Authorization code is missing from the redirect.")
600
+ failurePage("missing_code", "Authorization code is missing from the redirect.")
541
601
  );
542
602
  rejectResult(new Error("OAuth redirect did not include `code`."));
543
603
  return;
544
604
  }
545
- respond(res, 200, successPage());
605
+ respond(res, 200, connectedPage());
546
606
  resolveResult({ code, redirectUri });
547
607
  }
548
608
  function stateMatches(actual, expected) {
@@ -563,21 +623,6 @@ function respond(res, status, body) {
563
623
  connection: "close"
564
624
  }).end(body);
565
625
  }
566
- function successPage() {
567
- return `<!doctype html><html><head><meta charset="utf-8"><title>Signed in to HyperFrames</title>
568
- <style>body{font-family:system-ui,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#0b0f14;color:#e6e8eb}main{max-width:480px;text-align:center;padding:32px;border-radius:12px;background:#11161d;border:1px solid #1f2630}h1{font-weight:600;margin:0 0 8px;color:#3CE6AC}p{margin:0;color:#9aa3ad}</style>
569
- </head><body><main><h1>You're signed in.</h1><p>You can close this tab and return to your terminal.</p></main></body></html>`;
570
- }
571
- function errorPage(code, description) {
572
- const safeCode = escapeHtml(code);
573
- const safeDesc = escapeHtml(description);
574
- return `<!doctype html><html><head><meta charset="utf-8"><title>Sign-in failed</title>
575
- <style>body{font-family:system-ui,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#1a0b0b;color:#e6e8eb}main{max-width:480px;text-align:center;padding:32px;border-radius:12px;background:#1d1111;border:1px solid #301f1f}h1{font-weight:600;margin:0 0 8px;color:#ff7a7a}code{background:#2a1414;padding:2px 6px;border-radius:4px}p{margin:8px 0 0;color:#9aa3ad}</style>
576
- </head><body><main><h1>Sign-in failed</h1><p><code>${safeCode}</code></p><p>${safeDesc}</p></main></body></html>`;
577
- }
578
- function escapeHtml(s) {
579
- return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
580
- }
581
626
 
582
627
  // src/auth/oauth.ts
583
628
  var REVOKE_TIMEOUT_MS = 5e3;
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-35STY5XW.js";
9
+ } from "./chunk-NHV3G6JH.js";
10
10
  import {
11
11
  outputResolutionForSize
12
12
  } from "./chunk-CUCP7FKH.js";
@@ -19,15 +19,15 @@ import {
19
19
  } from "./chunk-HBAUU3IK.js";
20
20
  import {
21
21
  uploadAssetViaDirectUpload
22
- } from "./chunk-GDQQ4U3L.js";
22
+ } from "./chunk-6FI5JRM3.js";
23
23
  import {
24
24
  refreshIfNeeded,
25
25
  resolveCloudBaseUrl
26
- } from "./chunk-J3QW55W5.js";
26
+ } from "./chunk-H6676SHA.js";
27
27
  import {
28
28
  buildAuthHeaders,
29
29
  tryResolveCredential
30
- } from "./chunk-L24NAUBS.js";
30
+ } from "./chunk-KBHBSWEE.js";
31
31
  import {
32
32
  HyperframesCloudClient
33
33
  } from "./chunk-3XJM7XZN.js";
@@ -7,16 +7,18 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  addCatchUpNote,
9
9
  markSeen,
10
+ readRecord,
10
11
  readSeen,
12
+ removeRecord,
11
13
  seenPath,
12
14
  writeRecord
13
- } from "./chunk-GKLZMLX3.js";
15
+ } from "./chunk-CXUT4XVT.js";
14
16
  import {
15
17
  createProjectConfig
16
- } from "./chunk-K2KFYRVX.js";
18
+ } from "./chunk-HCUEMQB4.js";
17
19
  import {
18
20
  isHyperframesProject
19
- } from "./chunk-56XJDA3H.js";
21
+ } from "./chunk-SH6P5CMQ.js";
20
22
  import {
21
23
  isCI
22
24
  } from "./chunk-FYZFURBN.js";
@@ -133,6 +135,7 @@ function openInDesktop(dir, {
133
135
  installed = () => desktopInstalled({ platform }),
134
136
  env = process.env,
135
137
  cta,
138
+ doc,
136
139
  src = "cli",
137
140
  ...where
138
141
  } = {}) {
@@ -141,26 +144,49 @@ function openInDesktop(dir, {
141
144
  reason,
142
145
  downloadUrl: desktopDownloadUrl(platform, src) ?? STUDIO_PAGE
143
146
  });
144
- const opened = (app2) => {
145
- if (cta) writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ cta, at: Date.now() }));
146
- return {
147
- opened: true,
148
- app: app2,
149
- handedOver: leaveHandoff(dir, agentSession(env))
150
- };
147
+ const opened = (app) => ({
148
+ opened: true,
149
+ app,
150
+ handedOver: leaveHandoff(dir, agentSession(env))
151
+ });
152
+ const dispatch = () => {
153
+ if (platform === "darwin") {
154
+ const bundleId = bundleIds().find((id) => open(id, dir));
155
+ if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
156
+ return opened(bundleId === bundleIds()[0] ? DEFAULT_APP : bundleId);
157
+ }
158
+ const apps = desktopApps({ platform, env, ...where });
159
+ if (!apps) return notOpened("unsupported-platform");
160
+ if (!apps.length) return notOpened("not-installed");
161
+ const app = apps.find(({ executable }) => launch(executable, dir));
162
+ return app ? opened(app.name) : notOpened("open-failed");
151
163
  };
152
164
  if (!ready) return notOpened("handoff-unavailable");
153
165
  markBareIndexAsProject(dir);
154
- if (platform === "darwin") {
155
- const bundleId = bundleIds().find((id) => open(id, dir));
156
- if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
157
- return opened(bundleId === bundleIds()[0] ? DEFAULT_APP : bundleId);
158
- }
159
- const apps = desktopApps({ platform, env, ...where });
160
- if (!apps) return notOpened("unsupported-platform");
161
- if (!apps.length) return notOpened("not-installed");
162
- const app = apps.find(({ executable }) => launch(executable, dir));
163
- return app ? opened(app.name) : notOpened("open-failed");
166
+ const undoIntent = leaveIntent(dir, cta, doc);
167
+ const result = dispatch();
168
+ if (!result.opened) undoIntent();
169
+ return result;
170
+ }
171
+ function leaveIntent(dir, cta, doc) {
172
+ const before = readRecord(dir, DESKTOP_CTA_RECORD, 4096);
173
+ const earlier = (() => {
174
+ try {
175
+ return JSON.parse(before);
176
+ } catch {
177
+ return null;
178
+ }
179
+ })();
180
+ if (cta || doc)
181
+ writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ cta, at: Date.now(), doc }));
182
+ else if (earlier?.doc !== void 0)
183
+ writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ ...earlier, doc: void 0 }));
184
+ else return () => {
185
+ };
186
+ return () => {
187
+ if (!before) removeRecord(dir, DESKTOP_CTA_RECORD);
188
+ else writeRecord(dir, DESKTOP_CTA_RECORD, before);
189
+ };
164
190
  }
165
191
  function openCommandFor(dir, cwd = process.cwd()) {
166
192
  const shown = relative(cwd, dir) || ".";