hyperframes 0.8.225 → 0.8.227

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 (228) hide show
  1. package/dist/{add-ZGNY2AXJ.js → add-XX23UL2L.js} +12 -12
  2. package/dist/{agentPromptGenerator-GG4FFZH7.js → agentPromptGenerator-IMNWTMHM.js} +7 -7
  3. package/dist/{animatedGifPrep-NVDUG2CD.js → animatedGifPrep-MPU6T26Y.js} +7 -7
  4. package/dist/api.d.ts +122 -1
  5. package/dist/api.js +31 -23
  6. package/dist/{asset-UC3OQBB3.js → asset-FZSKOSMO.js} +2 -2
  7. package/dist/{assetCataloger-WQTNJMZU.js → assetCataloger-SITUNOV5.js} +8 -8
  8. package/dist/{audio-T6RWZHAA.js → audio-T5RHG57J.js} +17 -17
  9. package/dist/{auth-FSXEGF3B.js → auth-CMGIWJ6S.js} +5 -5
  10. package/dist/{autoUpdate-LOBHDWAA.js → autoUpdate-NNHBVLHN.js} +2 -2
  11. package/dist/{backgroundChecks-RBFWIWBP.js → backgroundChecks-HQYOBCV2.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-LDZ6NO2X.js → batchRender-5URYGOLM.js} +3 -3
  14. package/dist/{beats-WFPPVM6N.js → beats-J7IBNLP4.js} +10 -10
  15. package/dist/{benchmark-7MYD5S26.js → benchmark-Q2BILDRB.js} +9 -9
  16. package/dist/{billing-2BJTLFDX.js → billing-WNOAP6KO.js} +4 -4
  17. package/dist/{browser-6C4IDYQE.js → browser-EERGHDRV.js} +4 -4
  18. package/dist/{bundleWithLocalizedFonts-ARTT664T.js → bundleWithLocalizedFonts-FKU44QSO.js} +2 -2
  19. package/dist/{capture-7TFC65RN.js → capture-5W7BR36Q.js} +3 -3
  20. package/dist/{capture-TWZ5DQHP.js → capture-IRJ7DO45.js} +17 -17
  21. package/dist/{captureCompositionFrame-EMP6R3F6.js → captureCompositionFrame-R4LFCHHV.js} +14 -13
  22. package/dist/{catalog-W4RJO4FE.js → catalog-IRFBKRFP.js} +12 -12
  23. package/dist/{catch-up-OOCJH3O6.js → catch-up-RGQAFA3E.js} +5 -5
  24. package/dist/{check-BPPHG2CF.js → check-EXLZVGDY.js} +40 -39
  25. package/dist/{checkAudio-QEGCKX2V.js → checkAudio-K3XKXNEN.js} +10 -10
  26. package/dist/{checkBrowser-4JDYYAVA.js → checkBrowser-ZOU5XFMN.js} +34 -33
  27. package/dist/chunk-262C25DQ.js +31 -0
  28. package/dist/{chunk-3XQQLL3G.js → chunk-27JEDDX5.js} +1 -1
  29. package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
  30. package/dist/{chunk-EECV7SDN.js → chunk-2M6LMJ32.js} +1 -1
  31. package/dist/{chunk-G45NYKSM.js → chunk-3TWAMQF6.js} +3 -3
  32. package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
  33. package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
  34. package/dist/{chunk-G6Z47UQP.js → chunk-5ETFQB5F.js} +49 -31
  35. package/dist/{chunk-ZGQC6IU7.js → chunk-62LATJB6.js} +1 -1
  36. package/dist/{chunk-KDF67KEB.js → chunk-65LMGFJ5.js} +13 -13
  37. package/dist/{chunk-SVGHIMPQ.js → chunk-6HPCEV3U.js} +2 -2
  38. package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
  39. package/dist/{chunk-VHL26GNQ.js → chunk-6PQXDPKV.js} +2 -2
  40. package/dist/{chunk-T5KG6H6L.js → chunk-6RSOEYIG.js} +7 -7
  41. package/dist/{chunk-5HGS5MGD.js → chunk-6TXW6LHH.js} +339 -136
  42. package/dist/{chunk-IJWDVOIO.js → chunk-7XNMKKXI.js} +2 -2
  43. package/dist/{chunk-SIYDHVN2.js → chunk-A3UIADPB.js} +1 -1
  44. package/dist/{chunk-X5BSSPC2.js → chunk-AI6Z7BVD.js} +1 -1
  45. package/dist/{chunk-BKHBSFEO.js → chunk-AJREH4PX.js} +3 -2
  46. package/dist/{chunk-GI42ZB52.js → chunk-AQ2C6AQH.js} +1 -1
  47. package/dist/{chunk-UZ5AWZCA.js → chunk-AXRFHQRS.js} +1 -1
  48. package/dist/{chunk-WQCVZEXH.js → chunk-BKK57WEL.js} +6 -6
  49. package/dist/{chunk-5I6XEO4W.js → chunk-BW3CQT3A.js} +3 -25
  50. package/dist/{chunk-W464PHF3.js → chunk-CQKK7S4I.js} +7 -7
  51. package/dist/{chunk-2YZD6CAF.js → chunk-E2GNVQSH.js} +10 -3
  52. package/dist/{chunk-652ERUZD.js → chunk-FD7Z5BDR.js} +2 -2
  53. package/dist/{chunk-UQWOOANM.js → chunk-FFCQR7AP.js} +2 -2
  54. package/dist/{chunk-AMQFGICP.js → chunk-GIGZYW5Q.js} +1 -1
  55. package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
  56. package/dist/{chunk-LWTT7I7X.js → chunk-HGEFDPRP.js} +1 -1
  57. package/dist/{chunk-HW6HTTBZ.js → chunk-HNB7DA2F.js} +1 -1
  58. package/dist/{chunk-R6JPOEDZ.js → chunk-IN2355UQ.js} +1 -1
  59. package/dist/{chunk-EIIMWDZW.js → chunk-IQFLDX7I.js} +4 -4
  60. package/dist/{chunk-GE4ABM5K.js → chunk-ISEHEDSN.js} +41 -12
  61. package/dist/{chunk-RDLJSUI4.js → chunk-IUQCPWHU.js} +17 -11
  62. package/dist/{chunk-FJ3KUOUZ.js → chunk-IZRC24DI.js} +1 -1
  63. package/dist/{chunk-LZB5AHFD.js → chunk-JP6C673M.js} +1 -1
  64. package/dist/{chunk-OZMZFJDW.js → chunk-K6YHKCVX.js} +1 -1
  65. package/dist/{chunk-CGX4EOGT.js → chunk-K7LS42XC.js} +3 -3
  66. package/dist/{chunk-7RTPHNOO.js → chunk-KLTD64CP.js} +7 -4
  67. package/dist/{chunk-E47ZWDMH.js → chunk-KU6VRNJF.js} +1 -1
  68. package/dist/{chunk-KVBOJJ5R.js → chunk-L2XYH5SQ.js} +1 -1
  69. package/dist/{chunk-XM5KYLIE.js → chunk-M63U54H7.js} +4 -4
  70. package/dist/{chunk-4K6AS5TX.js → chunk-MBS45ZKL.js} +313 -149
  71. package/dist/{chunk-5KADQQ6S.js → chunk-MR7I3L6N.js} +1 -1
  72. package/dist/{chunk-FPWCICAI.js → chunk-NFUJ35XX.js} +1 -1
  73. package/dist/{chunk-35NDLXHZ.js → chunk-NQ4MVBNC.js} +10 -10
  74. package/dist/{chunk-PICDT6ZW.js → chunk-OG3S6SE6.js} +1 -1
  75. package/dist/{chunk-GZPGTGRV.js → chunk-OJW6TC57.js} +1 -1
  76. package/dist/{chunk-Z57RQBIA.js → chunk-OVLO32XC.js} +3 -3
  77. package/dist/{chunk-HMS6UHUW.js → chunk-OWJTWCE6.js} +2 -2
  78. package/dist/{chunk-M3WOI7BU.js → chunk-PFGBFTNS.js} +1 -1
  79. package/dist/{chunk-ACUVSKUI.js → chunk-PSRFHITV.js} +13 -13
  80. package/dist/{chunk-2EH3WQCS.js → chunk-PVLG6IY4.js} +5 -5
  81. package/dist/chunk-PXH3TD4X.js +760 -0
  82. package/dist/{chunk-Y5OSQXGZ.js → chunk-Q7S4JN73.js} +5 -5
  83. package/dist/{chunk-K73PYNON.js → chunk-QSWUM7WR.js} +2 -5
  84. package/dist/{chunk-EQFDOQTG.js → chunk-RABQDJMA.js} +1 -1
  85. package/dist/{chunk-ADOBHVHW.js → chunk-RG7WG2BC.js} +2 -2
  86. package/dist/{chunk-4Z2SU2VC.js → chunk-RVKHNBJI.js} +18 -18
  87. package/dist/{chunk-BTDKWWND.js → chunk-SANQC4QD.js} +1 -1
  88. package/dist/chunk-SBQV5FLG.js +5030 -0
  89. package/dist/{chunk-4VTXUGDR.js → chunk-SPN4SJV7.js} +1 -1
  90. package/dist/chunk-SQJNSPL5.js +177 -0
  91. package/dist/{chunk-4A643C3B.js → chunk-SZVMN7L3.js} +7 -7
  92. package/dist/{chunk-IB7I5IEC.js → chunk-T53C5UTH.js} +1 -1
  93. package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
  94. package/dist/{chunk-UBH2R663.js → chunk-TG5RBLCM.js} +2 -2
  95. package/dist/{chunk-CXVFPIOM.js → chunk-TJ6G325N.js} +1 -1
  96. package/dist/{chunk-UBXKKXXR.js → chunk-TJPZYMYX.js} +3 -3
  97. package/dist/{chunk-M4NN4AHH.js → chunk-TMTZ5M4R.js} +9 -9
  98. package/dist/{chunk-RR5QE7DB.js → chunk-TNPFF5TQ.js} +18 -14
  99. package/dist/{chunk-AF3EN5XS.js → chunk-UIDZKSF6.js} +1 -1
  100. package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
  101. package/dist/{chunk-EEBIHQF2.js → chunk-V7BBBD5C.js} +2 -2
  102. package/dist/{chunk-SXHSNLEC.js → chunk-VHREBR3T.js} +1 -1
  103. package/dist/chunk-VO55NLTM.js +111 -0
  104. package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
  105. package/dist/{chunk-3HRQI6LJ.js → chunk-WISN2ACZ.js} +1 -1
  106. package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
  107. package/dist/{chunk-UCPEABYK.js → chunk-XZULISH5.js} +2 -2
  108. package/dist/{chunk-3E2BO3L3.js → chunk-YKOHWGUC.js} +1 -1
  109. package/dist/{chunk-A25SCSOK.js → chunk-YTMWGLEQ.js} +1 -1
  110. package/dist/{chunk-6IV2N527.js → chunk-ZAE5Q7D5.js} +2 -2
  111. package/dist/{chunk-O3MGHHJO.js → chunk-ZSZKNGSQ.js} +3 -3
  112. package/dist/{chunk-NLELDFX7.js → chunk-ZU5GYVRG.js} +3 -3
  113. package/dist/{clean-XWDDXLRP.js → clean-IXG2MEQ6.js} +18 -18
  114. package/dist/cli.js +57 -57
  115. package/dist/{cloud-SETWVGKH.js → cloud-C2SUZ4ML.js} +4 -4
  116. package/dist/{cloudrun-RHPVVXCR.js → cloudrun-SWS7AI67.js} +4 -4
  117. package/dist/{compare-FWMFV7A7.js → compare-HKONJNY4.js} +31 -30
  118. package/dist/{compiler-SKRY6FPA.js → compiler-67X7VCNS.js} +4 -4
  119. package/dist/{component-HGEIXY3U.js → component-YBGAFPNS.js} +3 -3
  120. package/dist/{compositions-2TXJLBWE.js → compositions-B5T65NKW.js} +12 -12
  121. package/dist/{curve-SSFKIA2L.js → curve-QZCRRLBS.js} +11 -11
  122. package/dist/{cuts-BWXHTOOP.js → cuts-5DIKHPDZ.js} +20 -15
  123. package/dist/{delete-F5RDWZEJ.js → delete-GHNNYUXL.js} +6 -6
  124. package/dist/{deploy-OH4SMYTG.js → deploy-IARSTZY6.js} +1 -1
  125. package/dist/{describeProject-B7H4T5PW.js → describeProject-6DA3FMM2.js} +8 -8
  126. package/dist/{diff-6JFFTFKR.js → diff-JWNEN6CO.js} +89 -229
  127. package/dist/{dist-YEYUGCOR.js → dist-AY2X5DPM.js} +2 -2
  128. package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
  129. package/dist/{doctor-XQCZB5BY.js → doctor-BMUGN4C2.js} +11 -11
  130. package/dist/{energy-MEMYSTFT.js → energy-DSK2FPBK.js} +12 -12
  131. package/dist/{events-T7OLH6MW.js → events-6VLVSDSN.js} +4 -4
  132. package/dist/{events-U6PXJI34.js → events-HD5CYSPO.js} +3 -3
  133. package/dist/{events-ZU2ATKWK.js → events-KKH2U7U5.js} +14 -14
  134. package/dist/{extract-25TUTGCA.js → extract-IFMYI2DA.js} +15 -19
  135. package/dist/{face-KMLYOE5H.js → face-JD2ZVOH3.js} +12 -12
  136. package/dist/{feedback-FE7GQTBH.js → feedback-LI55MDGG.js} +14 -14
  137. package/dist/{ffmpeg-CXYPYIZK.js → ffmpeg-A4M2I6R3.js} +7 -7
  138. package/dist/{figma-QMKU7M7T.js → figma-CNVJZ7BL.js} +3 -3
  139. package/dist/fontLocalizeCli.js +10 -10
  140. package/dist/{frames-2NPBO6LB.js → frames-MOAPFEBS.js} +13 -13
  141. package/dist/{generate-I6E3V7PU.js → generate-ZRQYOJ3I.js} +18 -18
  142. package/dist/{get-JJWBP5NB.js → get-2RNNB5KC.js} +6 -6
  143. package/dist/{gpuPolicy-2OMDU74V.js → gpuPolicy-MXPGQGRO.js} +7 -7
  144. package/dist/{grade-compare-QCA3VIKQ.js → grade-compare-CQHZR7LX.js} +32 -31
  145. package/dist/{heifImagePrep-P53GG4GF.js → heifImagePrep-PRXKTL2U.js} +8 -8
  146. package/dist/{help-COSONWFD.js → help-MDT2MEPS.js} +1 -1
  147. package/dist/{history-CWKF5AXI.js → history-N7H2FN6R.js} +8 -8
  148. package/dist/hyperframe.manifest.json +1 -1
  149. package/dist/hyperframe.runtime.iife.js +67 -67
  150. package/dist/hyperframes-player.global.js +3 -3
  151. package/dist/{info-SD74Y6V5.js → info-NXYRDRHE.js} +8 -8
  152. package/dist/{init-XAYQNTVF.js → init-DJ5EJAQI.js} +28 -28
  153. package/dist/ink-WZSITVIW.js +148 -0
  154. package/dist/{inspect-Y5IIQBIW.js → inspect-JAXBBYA3.js} +32 -31
  155. package/dist/{installer-NQA4KXRP.js → installer-N5OHXI5C.js} +4 -4
  156. package/dist/{keyframes-MNPCJZYU.js → keyframes-TXNYBMOV.js} +8 -8
  157. package/dist/{lambda-PMI6IDVN.js → lambda-4LVII6VK.js} +11 -11
  158. package/dist/{layout-6IM6R6LX.js → layout-AS4FJ53O.js} +32 -31
  159. package/dist/{lint-6VUHVHFF.js → lint-DCAYD4CN.js} +9 -9
  160. package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
  161. package/dist/{list-XXTAS744.js → list-7Z6YRO6I.js} +6 -6
  162. package/dist/{localPage-2UHUS6LM.js → localPage-FUOBAMSA.js} +7 -7
  163. package/dist/{login-KM3LPYQ7.js → login-JZ4COLEB.js} +7 -7
  164. package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
  165. package/dist/{look-3CD3ZSXY.js → look-QELVFTKU.js} +12 -12
  166. package/dist/{manager-C6GVT3EI.js → manager-ZJPSMHK6.js} +8 -8
  167. package/dist/{measure-DWZX4YAK.js → measure-2I5VAVHN.js} +12 -11
  168. package/dist/{media-treatment-IIUPGQIX.js → media-treatment-MDTQ6564.js} +14 -14
  169. package/dist/{media-use-HLHUEFDK.js → media-use-NFGRWEGA.js} +3 -3
  170. package/dist/{models-IWHY5V6N.js → models-DKSUFPQ6.js} +11 -11
  171. package/dist/{motionShot-4NKHFUS7.js → motionShot-BJARRLMN.js} +17 -16
  172. package/dist/{normalize-audio-M2RS5Q23.js → normalize-audio-EW5JUESE.js} +10 -10
  173. package/dist/{open-U7CCHUBO.js → open-737GUSFD.js} +13 -13
  174. package/dist/{parakeetRunner-ZHG3S6GY.js → parakeetRunner-OIVHACYW.js} +12 -12
  175. package/dist/{pipeline-66JR7EC7.js → pipeline-UTNPWFMF.js} +10 -10
  176. package/dist/{play-5COR53D2.js → play-ZCYUVL2Y.js} +22 -22
  177. package/dist/{preflight-OKAO5NPW.js → preflight-HWFWGTIG.js} +8 -8
  178. package/dist/{present-YKFQC22R.js → present-AO3XZKSL.js} +18 -18
  179. package/dist/{preview-3YNKJZME.js → preview-ORIRMNIU.js} +20 -20
  180. package/dist/{probe-QMPDGKU5.js → probe-HYO2KC2E.js} +11 -11
  181. package/dist/{producer-WBVDP3IV.js → producer-B4VCP4D2.js} +1 -1
  182. package/dist/{projectConfig-UI4NZDN7.js → projectConfig-HUR4LZME.js} +6 -6
  183. package/dist/{publication-VPJZQCLA.js → publication-YH74GUD4.js} +2 -2
  184. package/dist/{publish-7RA2MK2M.js → publish-WIEB5ON4.js} +25 -25
  185. package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
  186. package/dist/{remove-background-ELC7V7KT.js → remove-background-NHLEPVOM.js} +11 -11
  187. package/dist/{render-WH7MPRZD.js → render-3WFVN7HO.js} +45 -43
  188. package/dist/{render-R7E7TTNE.js → render-DQSNIKEG.js} +59 -759
  189. package/dist/{render-IYV73CG6.js → render-GBJSUM3R.js} +5 -5
  190. package/dist/{render-batch-IN2ZXPS7.js → render-batch-YZF2XMYL.js} +8 -8
  191. package/dist/renderSetupWorker.js +2 -2
  192. package/dist/{resolver-DIXFK5ZR.js → resolver-KGTY7RJU.js} +4 -4
  193. package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
  194. package/dist/{sherpa-FP6HX5KK.js → sherpa-B3T3I2PX.js} +11 -11
  195. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
  196. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
  197. package/dist/skills/media-use/references/heygen.md +2 -1
  198. package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
  199. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
  200. package/dist/skills/media-use/scripts/resolve.mjs +11 -5
  201. package/dist/{skills-JLNDM2KP.js → skills-FATGE2YZ.js} +6 -6
  202. package/dist/{skillsUpdateCheck-WS5M25TN.js → skillsUpdateCheck-AHDI2POI.js} +3 -3
  203. package/dist/{snapshot-VPN6GA7U.js → snapshot-SELBWDZ7.js} +68 -43
  204. package/dist/{src-RGQFYVHO.js → src-55VXHZM5.js} +9 -9
  205. package/dist/{src-AP7B27MZ.js → src-6H4ENHBH.js} +10 -6
  206. package/dist/{staticProjectServer-YA6XOSFY.js → staticProjectServer-E4BZ4YZO.js} +18 -18
  207. package/dist/{status-Y5ZBFJ53.js → status-6WAZ5EBM.js} +5 -5
  208. package/dist/studio/assets/{hyperframes-player-Do2ZF6Lp.js → hyperframes-player-merzSkao.js} +3 -3
  209. package/dist/studio/assets/{index-CK4_IJ8G.js → index-B4XEg_n-.js} +1 -1
  210. package/dist/studio/assets/{index-Dxb7fTWf.js → index-DoXOJGW5.js} +174 -174
  211. package/dist/studio/index.html +1 -1
  212. package/dist/{studio-api-57E36S5N.js → studio-api-IERYGFXT.js} +10 -10
  213. package/dist/{studioServer-EVMF3HHL.js → studioServer-3RCCQB3T.js} +51 -50
  214. package/dist/{sync-ASUBSVGQ.js → sync-VV7L5GRE.js} +12 -12
  215. package/dist/{telemetry-YON45KT4.js → telemetry-KZRSFUC6.js} +4 -4
  216. package/dist/{timeline-OQWDGV7L.js → timeline-ALU6E3WE.js} +20 -20
  217. package/dist/{tokens-NMPY673W.js → tokens-XEZF2LGB.js} +2 -2
  218. package/dist/{transcribe-HSYXT5TZ.js → transcribe-HJX65J5D.js} +10 -10
  219. package/dist/{transcribe-C6FKVSRR.js → transcribe-OVOOUYK7.js} +22 -22
  220. package/dist/{updateCheck-B7PAAPCJ.js → updateCheck-FEOJQNLJ.js} +2 -2
  221. package/dist/{upgrade-BOECDD5S.js → upgrade-VM2DGLXZ.js} +2 -2
  222. package/dist/{urlDownloader-KC2SS457.js → urlDownloader-YENOMQQF.js} +6 -6
  223. package/dist/{validate-LEEBUIIH.js → validate-HXTL5C7J.js} +26 -25
  224. package/dist/{video-JJAEISDH.js → video-3BIRQK2N.js} +8 -8
  225. package/dist/warmCheck.js +40 -39
  226. package/package.json +1 -1
  227. package/dist/chunk-6UWSEXQ3.js +0 -5030
  228. package/dist/chunk-TRPNLI6V.js +0 -71
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-UQWOOANM.js";
10
+ } from "./chunk-FFCQR7AP.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -0,0 +1,177 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ round,
9
+ runFfmpeg
10
+ } from "./chunk-E2GNVQSH.js";
11
+
12
+ // src/measure/drawn.ts
13
+ import { mkdtempSync, readFileSync, rmSync } from "fs";
14
+ import { tmpdir } from "os";
15
+ import { join } from "path";
16
+ var DRAWN_MIN_MEAN = 0.8;
17
+ var DRAWN_MIN_P05 = 0.65;
18
+ var INK_CONTRAST = 60;
19
+ var MATCH_COLOUR = 45;
20
+ var ALIGN = 3;
21
+ var MIN_INK = 30;
22
+ var MAX_FPS = 10;
23
+ function contrast(px, w, h) {
24
+ const bs = Math.max(4, Math.floor(Math.max(8, Math.floor(h / 2)) / 2));
25
+ const [gw, gh] = [Math.ceil(w / bs), Math.ceil(h / bs)];
26
+ const med = new Float32Array(gw * gh * 3);
27
+ const hist = new Uint32Array(256);
28
+ for (let by = 0; by < gh; by++)
29
+ for (let bx = 0; bx < gw; bx++) {
30
+ const [x0, x1] = [Math.max(0, (bx - 1) * bs), Math.min(w, (bx + 2) * bs)];
31
+ const [y0, y1] = [Math.max(0, (by - 1) * bs), Math.min(h, (by + 2) * bs)];
32
+ const half = (x1 - x0) * (y1 - y0) / 2;
33
+ for (let c = 0; c < 3; c++) {
34
+ hist.fill(0);
35
+ for (let y = y0; y < y1; y++)
36
+ for (let x = x0; x < x1; x++) hist[px[(y * w + x) * 3 + c]]++;
37
+ let [v, seen] = [0, 0];
38
+ while (v < 255 && seen + hist[v] < half) seen += hist[v++];
39
+ med[(by * gw + bx) * 3 + c] = v;
40
+ }
41
+ }
42
+ const out = new Float32Array(w * h);
43
+ for (let y = 0; y < h; y++)
44
+ for (let x = 0; x < w; x++) {
45
+ const [o, m] = [(y * w + x) * 3, (Math.floor(y / bs) * gw + Math.floor(x / bs)) * 3];
46
+ out[y * w + x] = Math.hypot(
47
+ px[o] - med[m],
48
+ px[o + 1] - med[m + 1],
49
+ px[o + 2] - med[m + 2]
50
+ );
51
+ }
52
+ return out;
53
+ }
54
+ var inkOf = (px, w, h) => {
55
+ const c = contrast(px, w, h);
56
+ return Uint8Array.from(c, (v) => v > INK_CONTRAST ? 1 : 0);
57
+ };
58
+ function scoreDrawnFrame(a, b, w, h) {
59
+ const [ia, ib] = [inkOf(a, w, h), inkOf(b, w, h)];
60
+ const [na, nb] = [ia.reduce((s, v) => s + v, 0), ib.reduce((s, v) => s + v, 0)];
61
+ if (na + nb < MIN_INK) return { score: null, offset: [0, 0], inkOriginal: na, inkYours: nb };
62
+ let mostOverlappingShift = { iou: -1, dx: 0, dy: 0 };
63
+ for (let dy = -ALIGN; dy <= ALIGN; dy++)
64
+ for (let dx = -ALIGN; dx <= ALIGN; dx++) {
65
+ let [both, either] = [0, 0];
66
+ for (let y = 0; y < h; y++) {
67
+ const sy = y - dy;
68
+ for (let x = 0; x < w; x++) {
69
+ const sx = x - dx;
70
+ const vb = sy >= 0 && sy < h && sx >= 0 && sx < w ? ib[sy * w + sx] : 0;
71
+ const va = ia[y * w + x];
72
+ both += va & vb;
73
+ either += va | vb;
74
+ }
75
+ }
76
+ const iou = either ? both / either : 0;
77
+ if (iou > mostOverlappingShift.iou) mostOverlappingShift = { iou, dx, dy };
78
+ }
79
+ const at = (x, y) => (Math.min(h - 1, Math.max(0, y)) * w + Math.min(w - 1, Math.max(0, x))) * 3;
80
+ const near = (p, o, q, x, y) => {
81
+ for (let ry = -1; ry <= 1; ry++)
82
+ for (let rx = -1; rx <= 1; rx++) {
83
+ const k = at(x + rx, y + ry);
84
+ if (Math.hypot(p[o] - q[k], p[o + 1] - q[k + 1], p[o + 2] - q[k + 2]) < MATCH_COLOUR)
85
+ return true;
86
+ }
87
+ return false;
88
+ };
89
+ let [hitA, hitB, inkA, inkB] = [0, 0, 0, 0];
90
+ for (let y = 0; y < h; y++)
91
+ for (let x = 0; x < w; x++) {
92
+ const i = y * w + x;
93
+ const [sx, sy] = [x - mostOverlappingShift.dx, y - mostOverlappingShift.dy];
94
+ const inB = sy >= 0 && sy < h && sx >= 0 && sx < w && ib[sy * w + sx] === 1;
95
+ if (ia[i]) {
96
+ inkA++;
97
+ if (near(a, i * 3, b, sx, sy)) hitA++;
98
+ }
99
+ if (inB) {
100
+ inkB++;
101
+ if (near(b, at(sx, sy), a, x, y)) hitB++;
102
+ }
103
+ }
104
+ const [recall, precision] = [inkA ? hitA / inkA : 0, inkB ? hitB / inkB : 0];
105
+ return {
106
+ score: recall + precision ? 2 * recall * precision / (recall + precision) : 0,
107
+ offset: [0 - mostOverlappingShift.dx, 0 - mostOverlappingShift.dy],
108
+ inkOriginal: na,
109
+ inkYours: nb
110
+ };
111
+ }
112
+ var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1] ?? 0;
113
+ function drawnVerdict(box, window, frames) {
114
+ const head = { box, window, frames: frames.length };
115
+ const scored = frames.flatMap((f) => f.score === null ? [] : [f]);
116
+ if (!scored.length) return { ...head, pass: null };
117
+ const sorted = scored.map((f) => f.score).sort((x, y) => x - y);
118
+ const mean = sorted.reduce((s, v) => s + v, 0) / sorted.length;
119
+ const p05 = sorted[Math.min(sorted.length - 1, Math.floor(0.05 * sorted.length))];
120
+ const both = scored.filter((f) => f.inkOriginal >= MIN_INK && f.inkYours >= MIN_INK);
121
+ return {
122
+ ...head,
123
+ pass: mean >= DRAWN_MIN_MEAN && p05 >= DRAWN_MIN_P05,
124
+ score: round(mean, 3),
125
+ p05: round(p05, 3),
126
+ offset: [median(scored.map((f) => f.offset[0])), median(scored.map((f) => f.offset[1]))],
127
+ ...both.length ? { ink: round(median(both.map((f) => f.inkYours / f.inkOriginal)), 2) } : {}
128
+ };
129
+ }
130
+ function readDrawn(clip, jobs, width, height) {
131
+ if (!jobs.length) return [];
132
+ const work = mkdtempSync(join(tmpdir(), "hf-diff-drawn-"));
133
+ try {
134
+ const tags = jobs.map((_, j) => `[d${j}]`).join("");
135
+ const graph = [
136
+ `[0:v]${[...clip.filters, "setsar=1", `scale=${width}:${height}:flags=bicubic`].join(",")},split=${jobs.length}${tags}`,
137
+ ...jobs.map(({ box: [x, y, w, h], frames }, j) => {
138
+ const pick = frames.map((k) => `eq(n\\,${k})`).join("+");
139
+ return `[d${j}]select=${pick},crop=${w}:${h}:${x}:${y},format=rgb24[e${j}]`;
140
+ })
141
+ ].join(";");
142
+ const outs = jobs.flatMap((_, j) => [
143
+ ...["-map", `[e${j}]`, "-fps_mode", "passthrough", "-f", "rawvideo", `e${j}.rgb`]
144
+ ]);
145
+ runFfmpeg([...clip.input, "-an", "-filter_complex", graph, ...outs], void 0, work);
146
+ return jobs.map(({ box: [, , w, h] }, j) => {
147
+ const raw = readFileSync(join(work, `e${j}.rgb`));
148
+ const size = w * h * 3;
149
+ const frames = [];
150
+ for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
151
+ return frames;
152
+ });
153
+ } finally {
154
+ rmSync(work, { recursive: true, force: true });
155
+ }
156
+ }
157
+ function drawnFrames(ks, fps, a, b, available) {
158
+ const stride = Math.max(1, Math.round(fps / MAX_FPS));
159
+ const inside = ks.flatMap(
160
+ (k, i) => i < available && k / fps >= a - 1e-6 && k / fps < b - 1e-6 ? [i] : []
161
+ );
162
+ let last = -Infinity;
163
+ return inside.filter((i) => {
164
+ if (ks[i] - last < stride) return false;
165
+ last = ks[i];
166
+ return true;
167
+ });
168
+ }
169
+
170
+ export {
171
+ contrast,
172
+ inkOf,
173
+ scoreDrawnFrame,
174
+ drawnVerdict,
175
+ readDrawn,
176
+ drawnFrames
177
+ };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-35NDLXHZ.js";
10
+ } from "./chunk-NQ4MVBNC.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,23 +18,23 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-GE4ABM5K.js";
21
+ } from "./chunk-ISEHEDSN.js";
22
22
  import {
23
23
  findStageProxyBox
24
- } from "./chunk-OZMZFJDW.js";
24
+ } from "./chunk-K6YHKCVX.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-ZGQC6IU7.js";
27
+ } from "./chunk-62LATJB6.js";
28
28
  import {
29
29
  listenOnBrowserSafePort
30
- } from "./chunk-5HGS5MGD.js";
30
+ } from "./chunk-6TXW6LHH.js";
31
31
  import {
32
32
  stripSdrPngColourTags
33
- } from "./chunk-7RTPHNOO.js";
33
+ } from "./chunk-KLTD64CP.js";
34
34
  import {
35
35
  PREVIEW_PROXY_BOX_PARAM,
36
36
  parsePreviewProxyBox
37
- } from "./chunk-FJ3KUOUZ.js";
37
+ } from "./chunk-IZRC24DI.js";
38
38
  import {
39
39
  decodeWellFormedEscapes
40
40
  } from "./chunk-C2KEGBR3.js";
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-2YZD6CAF.js";
11
+ } from "./chunk-E2GNVQSH.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -26,11 +26,11 @@ import {
26
26
  import {
27
27
  refreshIfNeeded,
28
28
  resolveCloudBaseUrl
29
- } from "./chunk-BEMGUGGJ.js";
29
+ } from "./chunk-3ZWUNOTS.js";
30
30
  import {
31
31
  buildAuthHeaders,
32
32
  tryResolveCredential
33
- } from "./chunk-QOYZ3U6G.js";
33
+ } from "./chunk-V4SD6HQ6.js";
34
34
  import {
35
35
  decodeAudio,
36
36
  probeAudio
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-IJWDVOIO.js";
9
+ } from "./chunk-7XNMKKXI.js";
10
10
  import {
11
11
  explainChromeLaunchFailure,
12
12
  inAgentSandbox,
@@ -15,7 +15,7 @@ import {
15
15
  oneProcessOverPipe,
16
16
  pipeLaunchClosedOnMac,
17
17
  sandboxDeniedRemediation
18
- } from "./chunk-5HGS5MGD.js";
18
+ } from "./chunk-6TXW6LHH.js";
19
19
  import {
20
20
  processIsAlive
21
21
  } from "./chunk-KGPLIH7B.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-AF3EN5XS.js";
9
+ } from "./chunk-UIDZKSF6.js";
10
10
  import {
11
11
  DEFAULT_HISTORY_ROOT,
12
12
  HistoryBusyError,
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-SWC3QIEH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-SXHSNLEC.js";
12
+ } from "./chunk-VHREBR3T.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel
19
- } from "./chunk-3E2BO3L3.js";
19
+ } from "./chunk-YKOHWGUC.js";
20
20
  import {
21
21
  sha256File
22
22
  } from "./chunk-RZ6CXJ56.js";
@@ -24,7 +24,7 @@ import {
24
24
  findFFmpeg,
25
25
  findFFprobe,
26
26
  getFFmpegInstallHint
27
- } from "./chunk-FPWCICAI.js";
27
+ } from "./chunk-NFUJ35XX.js";
28
28
  import {
29
29
  findWavChunk
30
30
  } from "./chunk-UOFAE5RF.js";
@@ -9,27 +9,27 @@ import {
9
9
  } from "./chunk-TQBQYO4L.js";
10
10
  import {
11
11
  resolveProject
12
- } from "./chunk-AF3EN5XS.js";
12
+ } from "./chunk-UIDZKSF6.js";
13
13
  import {
14
14
  serveStaticProjectHtml
15
- } from "./chunk-4A643C3B.js";
15
+ } from "./chunk-SZVMN7L3.js";
16
16
  import {
17
17
  AUDIT_SEEK_OPTIONS,
18
18
  installPageFunctionGuard,
19
19
  seekCompositionTimeline,
20
20
  waitForCompositionFonts,
21
21
  waitForRuntimeReady
22
- } from "./chunk-RDLJSUI4.js";
22
+ } from "./chunk-IUQCPWHU.js";
23
23
  import {
24
24
  gotoWhenSent
25
25
  } from "./chunk-R2C5EON5.js";
26
26
  import {
27
27
  pageNavigationTimeoutMs
28
- } from "./chunk-5I6XEO4W.js";
28
+ } from "./chunk-BW3CQT3A.js";
29
29
  import {
30
30
  launchManagedBrowser,
31
31
  resolveManagedGpuMode
32
- } from "./chunk-UBH2R663.js";
32
+ } from "./chunk-TG5RBLCM.js";
33
33
  import {
34
34
  readJsonFileText
35
35
  } from "./chunk-EHZESMRB.js";
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-BTDKWWND.js";
45
+ } from "./chunk-SANQC4QD.js";
46
46
  import {
47
47
  failureMessage,
48
48
  jsonFailure
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
709
709
  });
710
710
  }
711
711
  async function bundleProjectHtml(projectDir) {
712
- const { bundleToSingleHtml } = await import("./compiler-SKRY6FPA.js");
712
+ const { bundleToSingleHtml } = await import("./compiler-67X7VCNS.js");
713
713
  return bundleToSingleHtml(projectDir);
714
714
  }
715
715
  async function alignViewportToComposition(page, url) {
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
728
728
  async function runLayoutAudit(projectDir, opts) {
729
729
  const { ensureBrowser } = await import("./manager-ENFYM32B.js");
730
730
  const puppeteer = await import("puppeteer-core");
731
- const { buildChromeArgs } = await import("./src-AP7B27MZ.js");
731
+ const { buildChromeArgs } = await import("./src-6H4ENHBH.js");
732
732
  const {
733
733
  assertWebGpuAdapterAvailable,
734
734
  compositionRequiresWebGpu,
735
735
  resolveLocalBrowserGpuMode,
736
736
  resolveLocalWebGpu
737
- } = await import("./gpuPolicy-2OMDU74V.js");
737
+ } = await import("./gpuPolicy-MXPGQGRO.js");
738
738
  const html = await bundleProjectHtml(projectDir);
739
739
  const server = await serveStaticProjectHtml(
740
740
  projectDir,
@@ -13,19 +13,23 @@ import {
13
13
  } from "./chunk-XQ26I3PL.js";
14
14
  import {
15
15
  createProjectConfig
16
- } from "./chunk-ZGQC6IU7.js";
16
+ } from "./chunk-62LATJB6.js";
17
17
  import {
18
18
  isHyperframesProject
19
- } from "./chunk-FJ3KUOUZ.js";
19
+ } from "./chunk-IZRC24DI.js";
20
20
 
21
21
  // src/utils/desktopApp.ts
22
22
  import { spawn, spawnSync } from "child_process";
23
23
  import { existsSync, readdirSync, readFileSync } from "fs";
24
24
  import { homedir } from "os";
25
25
  import { basename, isAbsolute, join, relative, win32 } from "path";
26
- var DESKTOP_BUNDLE_IDS = ["dev.hyperframes.desktop", "dev.hyperframes.desktop.canary"];
27
- var DESKTOP_APP_NAMES = ["HyperFrames.app", "HyperFrames Canary.app"];
28
- var APP_NAMES = ["HyperFrames", "HyperFrames Canary"];
26
+ var list = (name) => (process.env[name] ?? "").split(",").map((item) => item.trim()).filter(Boolean);
27
+ var bundleIds = () => [
28
+ "dev.hyperframes.desktop",
29
+ ...list("HYPERFRAMES_DESKTOP_BUNDLE_IDS")
30
+ ];
31
+ var appNames = () => ["HyperFrames", ...list("HYPERFRAMES_DESKTOP_APP_NAMES")];
32
+ var DEFAULT_APP = "the HyperFrames desktop app";
29
33
  var STUDIO_PAGE = "https://hyperframes.studio/studio";
30
34
  var DOWNLOADS = {
31
35
  darwin: `${STUDIO_PAGE}/download`,
@@ -90,9 +94,9 @@ function desktopApps({
90
94
  const appImage = launcherAppImage(read(join(config, name, "launcher.json")));
91
95
  return appImage && isAbsolute(appImage) ? appImage : null;
92
96
  };
93
- return APP_NAMES.flatMap((name, i) => {
97
+ return appNames().flatMap((name, i) => {
94
98
  const executable = where(name);
95
- return executable && exists(executable) ? [{ executable, canary: i === 1 }] : [];
99
+ return executable && exists(executable) ? [{ executable, name: i === 0 ? DEFAULT_APP : name }] : [];
96
100
  });
97
101
  }
98
102
  function leaveHandoff(dir, session) {
@@ -131,26 +135,26 @@ function openInDesktop(dir, {
131
135
  reason,
132
136
  downloadUrl: desktopDownloadUrl(platform, src) ?? STUDIO_PAGE
133
137
  });
134
- const opened = (canary) => {
138
+ const opened = (app2) => {
135
139
  if (cta) writeRecord(dir, DESKTOP_CTA_RECORD, JSON.stringify({ cta, at: Date.now() }));
136
140
  return {
137
141
  opened: true,
138
- app: canary ? "HyperFrames Canary" : "the HyperFrames desktop app",
142
+ app: app2,
139
143
  handedOver: leaveHandoff(dir, agentSession(env))
140
144
  };
141
145
  };
142
146
  if (!ready) return notOpened("handoff-unavailable");
143
147
  markBareIndexAsProject(dir);
144
148
  if (platform === "darwin") {
145
- const bundleId = DESKTOP_BUNDLE_IDS.find((id) => open(id, dir));
149
+ const bundleId = bundleIds().find((id) => open(id, dir));
146
150
  if (!bundleId) return notOpened(installed() ? "open-failed" : "not-installed");
147
- return opened(bundleId.endsWith(".canary"));
151
+ return opened(bundleId === bundleIds()[0] ? DEFAULT_APP : bundleId);
148
152
  }
149
153
  const apps = desktopApps({ platform, env, ...where });
150
154
  if (!apps) return notOpened("unsupported-platform");
151
155
  if (!apps.length) return notOpened("not-installed");
152
156
  const app = apps.find(({ executable }) => launch(executable, dir));
153
- return app ? opened(app.canary) : notOpened("open-failed");
157
+ return app ? opened(app.name) : notOpened("open-failed");
154
158
  }
155
159
  function openCommandFor(dir, cwd = process.cwd()) {
156
160
  const shown = relative(cwd, dir) || ".";
@@ -164,9 +168,9 @@ function desktopInstalled({
164
168
  const { platform = process.platform, home = homedir(), exists = existsSync } = where;
165
169
  if (platform !== "darwin") return (desktopApps(where)?.length ?? 0) > 0;
166
170
  const folders = ["/Applications", join(home, "Applications")];
167
- if (folders.some((folder) => DESKTOP_APP_NAMES.some((name) => exists(join(folder, name)))))
171
+ if (folders.some((folder) => appNames().some((name) => exists(join(folder, `${name}.app`)))))
168
172
  return true;
169
- return DESKTOP_BUNDLE_IDS.some(spotlight);
173
+ return bundleIds().some(spotlight);
170
174
  }
171
175
  function insideHostApp(env = process.env) {
172
176
  return Boolean(env.HYPERFRAMES_DESKTOP_PROJECT);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-PICDT6ZW.js";
12
+ } from "./chunk-OG3S6SE6.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -18,12 +18,11 @@ import {
18
18
  credentialPath,
19
19
  deviceAuthorizationEndpoint,
20
20
  isAuthError,
21
- oauthEnvironment,
22
21
  oauthIdentity,
23
22
  resolveClientId,
24
23
  revokeEndpoint,
25
24
  tokenEndpoint
26
- } from "./chunk-VLA6UJGH.js";
25
+ } from "./chunk-6NJVSTSY.js";
27
26
  import {
28
27
  c
29
28
  } from "./chunk-2GICKZ3I.js";
@@ -60,7 +59,7 @@ var HEYGEN_CLIENT_SOURCE_HEADER = "X-HeyGen-Client-Source";
60
59
  var HEYGEN_CLIENT_SOURCE = "hyperframes";
61
60
  function apiBaseUrl() {
62
61
  const override = process.env["HEYGEN_API_URL"];
63
- return override && override.length > 0 ? override.replace(/\/+$/, "") : `https://api.${oauthEnvironment() === "dev" ? "dev." : ""}heygen.com`;
62
+ return override && override.length > 0 ? override.replace(/\/+$/, "") : "https://api.heygen.com";
64
63
  }
65
64
  var AuthClient = class {
66
65
  base;
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.8.225" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.225" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.227" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.227" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -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-5HGS5MGD.js";
9
+ } from "./chunk-6TXW6LHH.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -0,0 +1,111 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ decode,
9
+ meanAbsDiff
10
+ } from "./chunk-E2GNVQSH.js";
11
+
12
+ // src/measure/cuts.ts
13
+ var SIG_W = 64;
14
+ var SIG_H = 36;
15
+ var CUT_LEVEL = 12;
16
+ var CUT_RATIO = 4;
17
+ var SOFT_LEVEL = 10;
18
+ var SOFT_RATIO = 8;
19
+ var SOFT_ALONE = 4;
20
+ var CONFIRM_LEVEL = 6;
21
+ var CONFIRM_SHARE = 0.5;
22
+ var NEIGHBOURS = 12;
23
+ var HELD_CHANGE = 0.5;
24
+ var MIN_MOVING_BURSTS = 4;
25
+ var HELD_SHARE = 0.6;
26
+ var HELD_RATIO = 3;
27
+ var MAX_CUT_FRAMES = 3;
28
+ var FLASH_FRAMES = 4;
29
+ var RETURNED = 0.4;
30
+ var SAME_TONES = 0.8;
31
+ function signatures(input, filters = []) {
32
+ return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
33
+ }
34
+ var median = (values) => {
35
+ const sorted = [...values].sort((x, y) => x - y);
36
+ return sorted[Math.floor(sorted.length / 2)] ?? 0;
37
+ };
38
+ function frameChanges(frames) {
39
+ return frames.map((f, i) => i ? meanAbsDiff(frames[i - 1], f) : 0);
40
+ }
41
+ var neighbours = (diffs, i, end = i + 1) => diffs.slice(Math.max(1, i - NEIGHBOURS), i).concat(diffs.slice(end, end + NEIGHBOURS));
42
+ var moving = (around) => around.filter((d) => d >= HELD_CHANGE);
43
+ var isHeld = (around) => {
44
+ const bursts = around.filter((d, i) => d >= HELD_CHANGE && (around[i - 1] ?? 0) < HELD_CHANGE);
45
+ return bursts.length >= MIN_MOVING_BURSTS && moving(around).length <= HELD_SHARE * around.length;
46
+ };
47
+ var typicalOf = (around) => Math.max(1, median(isHeld(around) ? moving(around) : around));
48
+ function cutsIn(diffs) {
49
+ const hits = diffs.flatMap((d, i) => {
50
+ if (i === 0) return [];
51
+ const around = neighbours(diffs, i);
52
+ const ratio = isHeld(around) ? HELD_RATIO : CUT_RATIO;
53
+ if (d >= CUT_LEVEL && d >= ratio * typicalOf(around)) return [{ frame: i, change: d }];
54
+ const alone = d >= SOFT_ALONE * Math.max(0, ...around);
55
+ return d >= SOFT_LEVEL && d >= SOFT_RATIO * Math.max(1, median(around)) && alone ? [{ frame: i, change: d, soft: true }] : [];
56
+ });
57
+ const out = [];
58
+ for (const { soft, ...h } of hits) {
59
+ const last = out.at(-1);
60
+ if (last && h.frame === last.frame + last.frames) {
61
+ last.frames++;
62
+ last.change = Math.max(last.change, h.change);
63
+ if (!soft) delete last.soft;
64
+ } else out.push({ ...h, frames: 1, ...soft ? { soft } : {} });
65
+ }
66
+ return out;
67
+ }
68
+ var tones = (frame) => {
69
+ const bins = new Array(16).fill(0);
70
+ for (const level of frame) bins[level >> 4]++;
71
+ return bins.map((n) => n / frame.length);
72
+ };
73
+ var sharedTones = (a, b) => {
74
+ const after = tones(b);
75
+ return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
76
+ };
77
+ function classifiedCuts(frames) {
78
+ const diffs = frameChanges(frames);
79
+ return cutsIn(diffs).map((c) => {
80
+ const end = c.frame + c.frames;
81
+ const back = (a, b) => frames[a] && frames[b] ? meanAbsDiff(frames[a], frames[b]) < RETURNED * c.change : false;
82
+ if (c.frames > MAX_CUT_FRAMES) {
83
+ const before = frames[c.frame - 1];
84
+ const whipKeepsTones = frames.slice(c.frame, end + 1).every((f) => sharedTones(before, f) >= SAME_TONES);
85
+ const sameShot = isHeld(neighbours(diffs, c.frame, end)) || whipKeepsTones;
86
+ return sameShot ? { ...c, kind: "fast" } : c;
87
+ }
88
+ const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
89
+ (k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
90
+ );
91
+ return returns ? { ...c, kind: "flash" } : c;
92
+ });
93
+ }
94
+ function findCuts(frames) {
95
+ return classifiedCuts(frames).filter((c) => !c.kind);
96
+ }
97
+ function confirmsCut(diffs, cut) {
98
+ return [cut.frame - 1, cut.frame, cut.frame + 1].some((i) => {
99
+ const d = diffs[i];
100
+ if (i < 1 || d === void 0) return false;
101
+ return d >= Math.max(CONFIRM_LEVEL, CONFIRM_SHARE * cut.change) && d >= CUT_RATIO * typicalOf(neighbours(diffs, i));
102
+ });
103
+ }
104
+
105
+ export {
106
+ signatures,
107
+ frameChanges,
108
+ classifiedCuts,
109
+ findCuts,
110
+ confirmsCut
111
+ };
@@ -6,17 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  refreshIfNeeded
9
- } from "./chunk-BEMGUGGJ.js";
9
+ } from "./chunk-3ZWUNOTS.js";
10
10
  import {
11
11
  buildAuthHeaders,
12
12
  envCredentialVar,
13
13
  isTokenExpired,
14
14
  tryResolveCredential
15
- } from "./chunk-QOYZ3U6G.js";
15
+ } from "./chunk-V4SD6HQ6.js";
16
16
  import {
17
- isAuthError,
18
- oauthEnvironment
19
- } from "./chunk-VLA6UJGH.js";
17
+ isAuthError
18
+ } from "./chunk-6NJVSTSY.js";
20
19
  import {
21
20
  CSS_URL_RE,
22
21
  isNonRelativeUrl,
@@ -566,7 +565,7 @@ function createPublishArchive(projectDir) {
566
565
  return zipPublishFileMap(buildPublishFileMap(projectDir));
567
566
  }
568
567
  function getPublishApiBaseUrl() {
569
- return (process.env["HYPERFRAMES_PUBLISHED_PROJECTS_API_URL"] || process.env["HEYGEN_API_URL"] || `https://api2.${oauthEnvironment() === "dev" ? "dev." : ""}heygen.com`).replace(/\/$/, "");
568
+ return (process.env["HYPERFRAMES_PUBLISHED_PROJECTS_API_URL"] || process.env["HEYGEN_API_URL"] || "https://api2.heygen.com").replace(/\/$/, "");
570
569
  }
571
570
  function archiveArrayBuffer(archive) {
572
571
  const arrayBuffer = new ArrayBuffer(archive.buffer.byteLength);
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/producer.ts
9
9
  async function loadProducer() {
10
- return await import("./src-RGQFYVHO.js");
10
+ return await import("./src-55VXHZM5.js");
11
11
  }
12
12
 
13
13
  export {