hyperframes 0.8.225 → 0.8.226

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/{add-ZGNY2AXJ.js → add-3NBOSGKQ.js} +12 -12
  2. package/dist/{agentPromptGenerator-GG4FFZH7.js → agentPromptGenerator-GQSDTAV5.js} +7 -7
  3. package/dist/{animatedGifPrep-NVDUG2CD.js → animatedGifPrep-UXFFDGA7.js} +7 -7
  4. package/dist/api.js +23 -23
  5. package/dist/{asset-UC3OQBB3.js → asset-VQVAYC7E.js} +2 -2
  6. package/dist/{assetCataloger-WQTNJMZU.js → assetCataloger-C6KNE2IQ.js} +8 -8
  7. package/dist/{audio-T6RWZHAA.js → audio-2KULGXHA.js} +17 -17
  8. package/dist/{auth-FSXEGF3B.js → auth-QNMLPJOW.js} +5 -5
  9. package/dist/{autoUpdate-LOBHDWAA.js → autoUpdate-VFQQ47UD.js} +2 -2
  10. package/dist/{backgroundChecks-RBFWIWBP.js → backgroundChecks-SSQ2U3ZY.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-LDZ6NO2X.js → batchRender-Y45PZC3Q.js} +3 -3
  13. package/dist/{beats-WFPPVM6N.js → beats-YSJT4NUG.js} +10 -10
  14. package/dist/{benchmark-7MYD5S26.js → benchmark-6UOMMUXF.js} +9 -9
  15. package/dist/{billing-2BJTLFDX.js → billing-WNOAP6KO.js} +4 -4
  16. package/dist/{browser-6C4IDYQE.js → browser-GM4ZTCRQ.js} +4 -4
  17. package/dist/{bundleWithLocalizedFonts-ARTT664T.js → bundleWithLocalizedFonts-CUTSKVRK.js} +2 -2
  18. package/dist/{capture-TWZ5DQHP.js → capture-J24XSJTZ.js} +17 -17
  19. package/dist/{capture-7TFC65RN.js → capture-SZ65WG5Z.js} +3 -3
  20. package/dist/{captureCompositionFrame-EMP6R3F6.js → captureCompositionFrame-5UUXIOF2.js} +13 -12
  21. package/dist/{catalog-W4RJO4FE.js → catalog-5EQFE3BC.js} +12 -12
  22. package/dist/{catch-up-OOCJH3O6.js → catch-up-ASBRKHDL.js} +5 -5
  23. package/dist/{check-BPPHG2CF.js → check-BA4SSXPY.js} +39 -38
  24. package/dist/{checkAudio-QEGCKX2V.js → checkAudio-TU4GPHIR.js} +10 -10
  25. package/dist/{checkBrowser-4JDYYAVA.js → checkBrowser-27SFNNPD.js} +33 -32
  26. package/dist/chunk-262C25DQ.js +31 -0
  27. package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
  28. package/dist/{chunk-4A643C3B.js → chunk-2IQONCMF.js} +7 -7
  29. package/dist/{chunk-OZMZFJDW.js → chunk-2JBCK6DX.js} +1 -1
  30. package/dist/{chunk-TRPNLI6V.js → chunk-35LAWHTD.js} +23 -6
  31. package/dist/{chunk-LWTT7I7X.js → chunk-37PS2IPO.js} +1 -1
  32. package/dist/{chunk-SIYDHVN2.js → chunk-3V3XMQEF.js} +1 -1
  33. package/dist/{chunk-7RTPHNOO.js → chunk-3XYDZQJF.js} +7 -4
  34. package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
  35. package/dist/{chunk-RR5QE7DB.js → chunk-4XYLQYUE.js} +18 -14
  36. package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
  37. package/dist/{chunk-WQCVZEXH.js → chunk-5TXYCG4M.js} +6 -6
  38. package/dist/{chunk-2YZD6CAF.js → chunk-5X65O5WM.js} +10 -3
  39. package/dist/{chunk-ADOBHVHW.js → chunk-6AEHVBMX.js} +2 -2
  40. package/dist/{chunk-G6Z47UQP.js → chunk-6CU2ZQGW.js} +26 -13
  41. package/dist/{chunk-EECV7SDN.js → chunk-6EQSJ7MT.js} +1 -1
  42. package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
  43. package/dist/{chunk-ACUVSKUI.js → chunk-76N526VX.js} +13 -13
  44. package/dist/{chunk-KDF67KEB.js → chunk-7LUZ4RQX.js} +13 -13
  45. package/dist/{chunk-5HGS5MGD.js → chunk-7UKRCWBO.js} +271 -122
  46. package/dist/{chunk-GE4ABM5K.js → chunk-7WNPWUJP.js} +3 -3
  47. package/dist/{chunk-3HRQI6LJ.js → chunk-A23K6P7L.js} +1 -1
  48. package/dist/{chunk-GZPGTGRV.js → chunk-ABNPD4NF.js} +1 -1
  49. package/dist/{chunk-M4NN4AHH.js → chunk-AMTAKSKJ.js} +9 -9
  50. package/dist/{chunk-UCPEABYK.js → chunk-APCGOECM.js} +2 -2
  51. package/dist/{chunk-CGX4EOGT.js → chunk-B243Y7MM.js} +3 -3
  52. package/dist/{chunk-A25SCSOK.js → chunk-B52P2FU2.js} +1 -1
  53. package/dist/{chunk-BTDKWWND.js → chunk-B7OI3WAR.js} +1 -1
  54. package/dist/{chunk-4Z2SU2VC.js → chunk-BD2CQDXP.js} +18 -18
  55. package/dist/{chunk-4K6AS5TX.js → chunk-BJ3Q3XK7.js} +313 -149
  56. package/dist/{chunk-SVGHIMPQ.js → chunk-CRIVUWLA.js} +2 -2
  57. package/dist/{chunk-2EH3WQCS.js → chunk-CU3SVSKX.js} +5 -5
  58. package/dist/{chunk-3E2BO3L3.js → chunk-DGQOBTFQ.js} +1 -1
  59. package/dist/{chunk-IJWDVOIO.js → chunk-DW7W4J7D.js} +2 -2
  60. package/dist/{chunk-IB7I5IEC.js → chunk-EJEHDDVX.js} +1 -1
  61. package/dist/{chunk-35NDLXHZ.js → chunk-EQGBGOQQ.js} +9 -9
  62. package/dist/{chunk-HW6HTTBZ.js → chunk-ETH6WXKZ.js} +1 -1
  63. package/dist/{chunk-T5KG6H6L.js → chunk-EYDV3MHA.js} +7 -7
  64. package/dist/{chunk-UBH2R663.js → chunk-GADKBSZ5.js} +2 -2
  65. package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
  66. package/dist/{chunk-X5BSSPC2.js → chunk-GUJ45PRX.js} +1 -1
  67. package/dist/chunk-HSXV7QPC.js +177 -0
  68. package/dist/{chunk-AMQFGICP.js → chunk-HYB3WSJL.js} +1 -1
  69. package/dist/{chunk-O3MGHHJO.js → chunk-JE5ZPFN2.js} +3 -3
  70. package/dist/{chunk-GI42ZB52.js → chunk-JIYNPDH6.js} +1 -1
  71. package/dist/{chunk-RDLJSUI4.js → chunk-KQARKGEJ.js} +16 -11
  72. package/dist/{chunk-G45NYKSM.js → chunk-LVV5EUSO.js} +3 -3
  73. package/dist/{chunk-NLELDFX7.js → chunk-MF6KVPWF.js} +3 -3
  74. package/dist/{chunk-6IV2N527.js → chunk-MWQNQA77.js} +2 -2
  75. package/dist/{chunk-BKHBSFEO.js → chunk-OMT75FQI.js} +3 -2
  76. package/dist/{chunk-AF3EN5XS.js → chunk-OQYGHP3E.js} +1 -1
  77. package/dist/{chunk-EQFDOQTG.js → chunk-OSCRZUEB.js} +1 -1
  78. package/dist/{chunk-E47ZWDMH.js → chunk-P7TDUSPH.js} +1 -1
  79. package/dist/{chunk-Y5OSQXGZ.js → chunk-PCH3O6I6.js} +5 -5
  80. package/dist/{chunk-R6JPOEDZ.js → chunk-PHUTMTHB.js} +1 -1
  81. package/dist/{chunk-UBXKKXXR.js → chunk-PVBSCPZI.js} +3 -3
  82. package/dist/{chunk-EEBIHQF2.js → chunk-PWHOMCFB.js} +2 -2
  83. package/dist/{chunk-XM5KYLIE.js → chunk-PXSCN6X5.js} +4 -4
  84. package/dist/{chunk-FPWCICAI.js → chunk-PZ6VVOOE.js} +1 -1
  85. package/dist/{chunk-K73PYNON.js → chunk-QSWUM7WR.js} +2 -5
  86. package/dist/{chunk-SXHSNLEC.js → chunk-RBYSMHB7.js} +1 -1
  87. package/dist/{chunk-UZ5AWZCA.js → chunk-RKDMYKGL.js} +1 -1
  88. package/dist/{chunk-3XQQLL3G.js → chunk-RRT5S42U.js} +1 -1
  89. package/dist/{chunk-Z57RQBIA.js → chunk-S4UDVFAN.js} +3 -3
  90. package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
  91. package/dist/{chunk-4VTXUGDR.js → chunk-U6LQ4BTL.js} +1 -1
  92. package/dist/{chunk-CXVFPIOM.js → chunk-UIJLEBHQ.js} +1 -1
  93. package/dist/{chunk-5KADQQ6S.js → chunk-UXHGYMX4.js} +1 -1
  94. package/dist/{chunk-W464PHF3.js → chunk-V2N747YM.js} +7 -7
  95. package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
  96. package/dist/{chunk-M3WOI7BU.js → chunk-VB77RRT7.js} +1 -1
  97. package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
  98. package/dist/{chunk-5I6XEO4W.js → chunk-WESIEW2M.js} +3 -25
  99. package/dist/{chunk-HMS6UHUW.js → chunk-WGVREWKN.js} +2 -2
  100. package/dist/{chunk-FJ3KUOUZ.js → chunk-XCGPPU32.js} +1 -1
  101. package/dist/{chunk-EIIMWDZW.js → chunk-XDTRM4OS.js} +4 -4
  102. package/dist/{chunk-LZB5AHFD.js → chunk-XH7SSJSQ.js} +1 -1
  103. package/dist/chunk-XINVBLXA.js +5030 -0
  104. package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
  105. package/dist/{chunk-VHL26GNQ.js → chunk-Y2NSHQVE.js} +2 -2
  106. package/dist/{chunk-PICDT6ZW.js → chunk-YTQSLNIA.js} +1 -1
  107. package/dist/{chunk-KVBOJJ5R.js → chunk-Z257R7TN.js} +1 -1
  108. package/dist/{chunk-ZGQC6IU7.js → chunk-ZI64CTVC.js} +1 -1
  109. package/dist/{chunk-UQWOOANM.js → chunk-ZJE2XWQC.js} +2 -2
  110. package/dist/{chunk-652ERUZD.js → chunk-ZNXUM4D2.js} +2 -2
  111. package/dist/{clean-XWDDXLRP.js → clean-X5VL4ILR.js} +17 -17
  112. package/dist/cli.js +57 -57
  113. package/dist/{cloud-SETWVGKH.js → cloud-4GUUYRD3.js} +4 -4
  114. package/dist/{cloudrun-RHPVVXCR.js → cloudrun-KPL32MBI.js} +4 -4
  115. package/dist/{compare-FWMFV7A7.js → compare-CVEB5SQC.js} +30 -29
  116. package/dist/{compiler-SKRY6FPA.js → compiler-RRTQNBUH.js} +4 -4
  117. package/dist/{component-HGEIXY3U.js → component-TZ2SIYOX.js} +3 -3
  118. package/dist/{compositions-2TXJLBWE.js → compositions-KRTRDV72.js} +12 -12
  119. package/dist/{curve-SSFKIA2L.js → curve-ZXUAGU4T.js} +11 -11
  120. package/dist/{cuts-BWXHTOOP.js → cuts-GY2K2CTK.js} +20 -15
  121. package/dist/{delete-F5RDWZEJ.js → delete-ZT4FCUX2.js} +6 -6
  122. package/dist/{deploy-OH4SMYTG.js → deploy-DVKSQTC7.js} +1 -1
  123. package/dist/{describeProject-B7H4T5PW.js → describeProject-L4ZW5CI7.js} +8 -8
  124. package/dist/{diff-6JFFTFKR.js → diff-AFOP2B3Y.js} +89 -229
  125. package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
  126. package/dist/{dist-YEYUGCOR.js → dist-DPOLFG5U.js} +2 -2
  127. package/dist/{doctor-XQCZB5BY.js → doctor-Y7YVL34W.js} +11 -11
  128. package/dist/{energy-MEMYSTFT.js → energy-YFLFELFX.js} +12 -12
  129. package/dist/{events-U6PXJI34.js → events-C5QV2MQG.js} +3 -3
  130. package/dist/{events-ZU2ATKWK.js → events-THASMGN6.js} +14 -14
  131. package/dist/{events-T7OLH6MW.js → events-VL7JKI2K.js} +4 -4
  132. package/dist/{extract-25TUTGCA.js → extract-GTNBVQ63.js} +15 -19
  133. package/dist/{face-KMLYOE5H.js → face-BSRKCB5W.js} +12 -12
  134. package/dist/{feedback-FE7GQTBH.js → feedback-MCQ2FKCC.js} +11 -11
  135. package/dist/{ffmpeg-CXYPYIZK.js → ffmpeg-3QNN3TQ5.js} +7 -7
  136. package/dist/{figma-QMKU7M7T.js → figma-IGXE3KWU.js} +3 -3
  137. package/dist/fontLocalizeCli.js +10 -10
  138. package/dist/{frames-2NPBO6LB.js → frames-XIFLB5KC.js} +13 -13
  139. package/dist/{generate-I6E3V7PU.js → generate-55FZPR3J.js} +18 -18
  140. package/dist/{get-JJWBP5NB.js → get-2MHD7XFA.js} +6 -6
  141. package/dist/{gpuPolicy-2OMDU74V.js → gpuPolicy-REJFNHWD.js} +7 -7
  142. package/dist/{grade-compare-QCA3VIKQ.js → grade-compare-CM45H7CR.js} +31 -30
  143. package/dist/{heifImagePrep-P53GG4GF.js → heifImagePrep-O3UZHGWR.js} +8 -8
  144. package/dist/{help-COSONWFD.js → help-V2GGIKP2.js} +1 -1
  145. package/dist/{history-CWKF5AXI.js → history-NUOQVUNY.js} +7 -7
  146. package/dist/hyperframe.manifest.json +1 -1
  147. package/dist/hyperframe.runtime.iife.js +67 -67
  148. package/dist/hyperframes-player.global.js +3 -3
  149. package/dist/{info-SD74Y6V5.js → info-5CMRZEJA.js} +8 -8
  150. package/dist/{init-XAYQNTVF.js → init-JNL5R27I.js} +28 -28
  151. package/dist/ink-HGQUC6L3.js +148 -0
  152. package/dist/{inspect-Y5IIQBIW.js → inspect-GGOCM324.js} +31 -30
  153. package/dist/{installer-NQA4KXRP.js → installer-BBY3T5MJ.js} +4 -4
  154. package/dist/{keyframes-MNPCJZYU.js → keyframes-2D4ZS6HE.js} +8 -8
  155. package/dist/{lambda-PMI6IDVN.js → lambda-TY2ZCPEN.js} +11 -11
  156. package/dist/{layout-6IM6R6LX.js → layout-X5GT4O2L.js} +31 -30
  157. package/dist/{lint-6VUHVHFF.js → lint-NVOUXE2L.js} +9 -9
  158. package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
  159. package/dist/{list-XXTAS744.js → list-CB4UDTID.js} +6 -6
  160. package/dist/{localPage-2UHUS6LM.js → localPage-EYPZRIGY.js} +7 -7
  161. package/dist/{login-KM3LPYQ7.js → login-L7JTVKV5.js} +7 -7
  162. package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
  163. package/dist/{look-3CD3ZSXY.js → look-VHQA2JSS.js} +12 -12
  164. package/dist/{manager-C6GVT3EI.js → manager-FGQKQMI7.js} +8 -8
  165. package/dist/{measure-DWZX4YAK.js → measure-5F7QZLO5.js} +12 -11
  166. package/dist/{media-treatment-IIUPGQIX.js → media-treatment-RRFIZKSA.js} +14 -14
  167. package/dist/{media-use-HLHUEFDK.js → media-use-5YGFOFKI.js} +3 -3
  168. package/dist/{models-IWHY5V6N.js → models-5B2RGGBT.js} +11 -11
  169. package/dist/{motionShot-4NKHFUS7.js → motionShot-JJBQLYCC.js} +16 -15
  170. package/dist/{normalize-audio-M2RS5Q23.js → normalize-audio-LWTNZWDJ.js} +10 -10
  171. package/dist/{open-U7CCHUBO.js → open-PGRJXREV.js} +12 -12
  172. package/dist/{parakeetRunner-ZHG3S6GY.js → parakeetRunner-OV4NSPB3.js} +12 -12
  173. package/dist/{pipeline-66JR7EC7.js → pipeline-HXGPFQZC.js} +10 -10
  174. package/dist/{play-5COR53D2.js → play-JONX6CIM.js} +21 -21
  175. package/dist/{preflight-OKAO5NPW.js → preflight-7OKMMUWG.js} +8 -8
  176. package/dist/{present-YKFQC22R.js → present-EHU52MSU.js} +17 -17
  177. package/dist/{preview-3YNKJZME.js → preview-DCEIITM6.js} +19 -19
  178. package/dist/{probe-QMPDGKU5.js → probe-EA4N3WOT.js} +11 -11
  179. package/dist/{producer-WBVDP3IV.js → producer-FGAOUR7O.js} +1 -1
  180. package/dist/{projectConfig-UI4NZDN7.js → projectConfig-N3ZRVJKB.js} +6 -6
  181. package/dist/{publication-VPJZQCLA.js → publication-ZKY2LVN5.js} +2 -2
  182. package/dist/{publish-7RA2MK2M.js → publish-RZVDFTBX.js} +15 -15
  183. package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
  184. package/dist/{remove-background-ELC7V7KT.js → remove-background-V5UXYPJS.js} +11 -11
  185. package/dist/{render-WH7MPRZD.js → render-NEZLBRAY.js} +37 -35
  186. package/dist/{render-IYV73CG6.js → render-UJCPQXGB.js} +5 -5
  187. package/dist/{render-R7E7TTNE.js → render-YZSDHP3U.js} +60 -27
  188. package/dist/{render-batch-IN2ZXPS7.js → render-batch-KPGYARDI.js} +5 -5
  189. package/dist/renderSetupWorker.js +2 -2
  190. package/dist/{resolver-DIXFK5ZR.js → resolver-HWNPLSXK.js} +4 -4
  191. package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
  192. package/dist/{sherpa-FP6HX5KK.js → sherpa-HSBYKUQC.js} +11 -11
  193. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
  194. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
  195. package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
  196. package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
  197. package/dist/skills/media-use/scripts/resolve.mjs +11 -5
  198. package/dist/{skills-JLNDM2KP.js → skills-CW23U675.js} +6 -6
  199. package/dist/{skillsUpdateCheck-WS5M25TN.js → skillsUpdateCheck-LGBNNYLI.js} +3 -3
  200. package/dist/{snapshot-VPN6GA7U.js → snapshot-RK7ED6DW.js} +47 -38
  201. package/dist/{src-AP7B27MZ.js → src-KORQVG7O.js} +10 -6
  202. package/dist/{src-RGQFYVHO.js → src-ZDLQFZ4B.js} +9 -9
  203. package/dist/{staticProjectServer-YA6XOSFY.js → staticProjectServer-TFWT5G2L.js} +18 -18
  204. package/dist/{status-Y5ZBFJ53.js → status-6WAZ5EBM.js} +5 -5
  205. package/dist/studio/assets/{hyperframes-player-Do2ZF6Lp.js → hyperframes-player-qeY0knUZ.js} +3 -3
  206. package/dist/studio/assets/{index-CK4_IJ8G.js → index-B9O4nOYD.js} +1 -1
  207. package/dist/studio/assets/{index-Dxb7fTWf.js → index-BhZkOhf2.js} +174 -174
  208. package/dist/studio/index.html +1 -1
  209. package/dist/{studio-api-57E36S5N.js → studio-api-OIZEPWHS.js} +10 -10
  210. package/dist/{studioServer-EVMF3HHL.js → studioServer-62MG7LJR.js} +50 -49
  211. package/dist/{sync-ASUBSVGQ.js → sync-Q3XYLXTX.js} +12 -12
  212. package/dist/{telemetry-YON45KT4.js → telemetry-3YDPEGQK.js} +4 -4
  213. package/dist/{timeline-OQWDGV7L.js → timeline-VDLKFZZ7.js} +19 -19
  214. package/dist/{tokens-NMPY673W.js → tokens-ZZ4G2VKC.js} +2 -2
  215. package/dist/{transcribe-HSYXT5TZ.js → transcribe-2D6UIVAE.js} +10 -10
  216. package/dist/{transcribe-C6FKVSRR.js → transcribe-OYRCZUZM.js} +22 -22
  217. package/dist/{updateCheck-B7PAAPCJ.js → updateCheck-ZRG5DR74.js} +2 -2
  218. package/dist/{upgrade-BOECDD5S.js → upgrade-ZU6BHCTC.js} +2 -2
  219. package/dist/{urlDownloader-KC2SS457.js → urlDownloader-5WPUC6C6.js} +6 -6
  220. package/dist/{validate-LEEBUIIH.js → validate-OZRPF6YZ.js} +25 -24
  221. package/dist/{video-JJAEISDH.js → video-N2KXXYS3.js} +8 -8
  222. package/dist/warmCheck.js +39 -38
  223. package/package.json +1 -1
  224. package/dist/chunk-6UWSEXQ3.js +0 -5030
@@ -7,32 +7,39 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  compareEnergy,
9
9
  energyCurve
10
- } from "./chunk-3XQQLL3G.js";
10
+ } from "./chunk-RRT5S42U.js";
11
+ import {
12
+ contrast,
13
+ drawnFrames,
14
+ drawnVerdict,
15
+ readDrawn,
16
+ scoreDrawnFrame
17
+ } from "./chunk-HSXV7QPC.js";
11
18
  import {
12
19
  compareLook,
13
20
  look,
14
21
  sameLook
15
- } from "./chunk-IB7I5IEC.js";
22
+ } from "./chunk-EJEHDDVX.js";
16
23
  import {
17
24
  faceBoxes
18
- } from "./chunk-5KADQQ6S.js";
25
+ } from "./chunk-UXHGYMX4.js";
19
26
  import {
20
27
  avSync
21
- } from "./chunk-SIYDHVN2.js";
28
+ } from "./chunk-3V3XMQEF.js";
22
29
  import {
23
30
  parseMask,
24
31
  repeated
25
- } from "./chunk-G6Z47UQP.js";
32
+ } from "./chunk-6CU2ZQGW.js";
26
33
  import {
34
+ classifiedCuts,
27
35
  confirmsCut,
28
- cutsIn,
29
36
  frameChanges,
30
37
  signatures
31
- } from "./chunk-TRPNLI6V.js";
32
- import "./chunk-BKHBSFEO.js";
38
+ } from "./chunk-35LAWHTD.js";
39
+ import "./chunk-OMT75FQI.js";
33
40
  import "./chunk-NO6F7CLR.js";
34
- import "./chunk-2EH3WQCS.js";
35
- import "./chunk-K73PYNON.js";
41
+ import "./chunk-CU3SVSKX.js";
42
+ import "./chunk-QSWUM7WR.js";
36
43
  import {
37
44
  Fix,
38
45
  decode,
@@ -47,13 +54,13 @@ import {
47
54
  runFfmpeg,
48
55
  videoClip,
49
56
  writeImage
50
- } from "./chunk-2YZD6CAF.js";
51
- import "./chunk-BEMGUGGJ.js";
52
- import "./chunk-QOYZ3U6G.js";
57
+ } from "./chunk-5X65O5WM.js";
58
+ import "./chunk-3ZWUNOTS.js";
59
+ import "./chunk-V4SD6HQ6.js";
53
60
  import "./chunk-RZ6CXJ56.js";
54
- import "./chunk-FPWCICAI.js";
61
+ import "./chunk-PZ6VVOOE.js";
55
62
  import "./chunk-A4ZTSQLW.js";
56
- import "./chunk-VLA6UJGH.js";
63
+ import "./chunk-6NJVSTSY.js";
57
64
  import {
58
65
  defineCommand
59
66
  } from "./chunk-DL4OD7IA.js";
@@ -61,15 +68,15 @@ import "./chunk-S3S4TGEH.js";
61
68
  import {
62
69
  c
63
70
  } from "./chunk-2GICKZ3I.js";
64
- import "./chunk-5HGS5MGD.js";
71
+ import "./chunk-7UKRCWBO.js";
65
72
  import "./chunk-Z5J67X44.js";
66
73
  import "./chunk-5S7W3TUO.js";
67
74
  import "./chunk-D3MUHMFG.js";
68
- import "./chunk-7RTPHNOO.js";
75
+ import "./chunk-3XYDZQJF.js";
69
76
  import "./chunk-YWRUQ7XZ.js";
70
- import "./chunk-FJ3KUOUZ.js";
77
+ import "./chunk-XCGPPU32.js";
71
78
  import "./chunk-MEJH7VEA.js";
72
- import "./chunk-6UWSEXQ3.js";
79
+ import "./chunk-XINVBLXA.js";
73
80
  import "./chunk-VC76R6W2.js";
74
81
  import "./chunk-OFQWTKPW.js";
75
82
  import "./chunk-RQVDTPGD.js";
@@ -80,9 +87,9 @@ import "./chunk-X6JUUQCM.js";
80
87
  import "./chunk-KGPLIH7B.js";
81
88
  import "./chunk-K4MJX7SR.js";
82
89
  import "./chunk-WE42NVH7.js";
83
- import "./chunk-HT3D5AKG.js";
90
+ import "./chunk-GR2T3BOX.js";
84
91
  import "./chunk-HYRPH6LL.js";
85
- import "./chunk-AKMY4QVI.js";
92
+ import "./chunk-2GTFW4MK.js";
86
93
  import "./chunk-CZGHFATT.js";
87
94
  import "./chunk-C2KEGBR3.js";
88
95
  import "./chunk-T5ELONXY.js";
@@ -95,18 +102,19 @@ import "./chunk-WC4MTXGN.js";
95
102
  import "./chunk-FBN2M2HK.js";
96
103
  import {
97
104
  withMeta
98
- } from "./chunk-BTDKWWND.js";
105
+ } from "./chunk-B7OI3WAR.js";
99
106
  import "./chunk-BR2JQQC5.js";
100
107
  import "./chunk-BLBMPEBX.js";
101
108
  import "./chunk-ISN5GRYI.js";
102
109
  import "./chunk-ADVVQX4I.js";
103
110
  import {
104
111
  failCommand,
112
+ scheduleCliExit,
105
113
  setCommandExitCode
106
114
  } from "./chunk-66W5IWLO.js";
107
115
  import "./chunk-J3RXEDR2.js";
108
116
  import "./chunk-QBXDU24O.js";
109
- import "./chunk-EEBIHQF2.js";
117
+ import "./chunk-PWHOMCFB.js";
110
118
  import {
111
119
  normalizeErrorMessage
112
120
  } from "./chunk-E63BDV4Z.js";
@@ -116,185 +124,27 @@ import "./chunk-7KDQAD2W.js";
116
124
  import "./chunk-M2WBOQ2Q.js";
117
125
 
118
126
  // src/commands/diff.ts
119
- import { basename as basename2, extname, join as join4, resolve as resolve2 } from "path";
127
+ import { basename as basename2, extname, join as join3, resolve as resolve2 } from "path";
120
128
 
121
129
  // src/measure/diff.ts
122
130
  import {
123
131
  copyFileSync,
124
132
  existsSync as existsSync2,
125
133
  mkdirSync,
126
- mkdtempSync as mkdtempSync3,
134
+ mkdtempSync as mkdtempSync2,
127
135
  readdirSync,
128
- readFileSync as readFileSync3,
129
- rmSync as rmSync3,
136
+ readFileSync as readFileSync2,
137
+ rmSync as rmSync2,
130
138
  statSync,
131
139
  writeFileSync
132
140
  } from "fs";
133
- import { tmpdir as tmpdir3 } from "os";
134
- import { basename, dirname, join as join3, resolve } from "path";
141
+ import { tmpdir as tmpdir2 } from "os";
142
+ import { basename, dirname, join as join2, resolve } from "path";
135
143
 
136
- // src/measure/drawn.ts
137
- import { mkdtempSync, readFileSync, rmSync } from "fs";
144
+ // src/measure/person.ts
145
+ import { existsSync, mkdtempSync, readFileSync, rmSync } from "fs";
138
146
  import { tmpdir } from "os";
139
147
  import { join } from "path";
140
- var DRAWN_MIN_MEAN = 0.8;
141
- var DRAWN_MIN_P05 = 0.65;
142
- var INK_CONTRAST = 60;
143
- var MATCH_COLOUR = 45;
144
- var ALIGN = 3;
145
- var MIN_INK = 30;
146
- var MAX_FPS = 10;
147
- function contrast(px, w, h) {
148
- const bs = Math.max(4, Math.floor(Math.max(8, Math.floor(h / 2)) / 2));
149
- const [gw, gh] = [Math.ceil(w / bs), Math.ceil(h / bs)];
150
- const med = new Float32Array(gw * gh * 3);
151
- const hist = new Uint32Array(256);
152
- for (let by = 0; by < gh; by++)
153
- for (let bx = 0; bx < gw; bx++) {
154
- const [x0, x1] = [Math.max(0, (bx - 1) * bs), Math.min(w, (bx + 2) * bs)];
155
- const [y0, y1] = [Math.max(0, (by - 1) * bs), Math.min(h, (by + 2) * bs)];
156
- const half = (x1 - x0) * (y1 - y0) / 2;
157
- for (let c2 = 0; c2 < 3; c2++) {
158
- hist.fill(0);
159
- for (let y = y0; y < y1; y++)
160
- for (let x = x0; x < x1; x++) hist[px[(y * w + x) * 3 + c2]]++;
161
- let [v, seen] = [0, 0];
162
- while (v < 255 && seen + hist[v] < half) seen += hist[v++];
163
- med[(by * gw + bx) * 3 + c2] = v;
164
- }
165
- }
166
- const out = new Float32Array(w * h);
167
- for (let y = 0; y < h; y++)
168
- for (let x = 0; x < w; x++) {
169
- const [o, m] = [(y * w + x) * 3, (Math.floor(y / bs) * gw + Math.floor(x / bs)) * 3];
170
- out[y * w + x] = Math.hypot(
171
- px[o] - med[m],
172
- px[o + 1] - med[m + 1],
173
- px[o + 2] - med[m + 2]
174
- );
175
- }
176
- return out;
177
- }
178
- var inkOf = (px, w, h) => {
179
- const c2 = contrast(px, w, h);
180
- return Uint8Array.from(c2, (v) => v > INK_CONTRAST ? 1 : 0);
181
- };
182
- function scoreDrawnFrame(a, b, w, h) {
183
- const [ia, ib] = [inkOf(a, w, h), inkOf(b, w, h)];
184
- const [na, nb] = [ia.reduce((s, v) => s + v, 0), ib.reduce((s, v) => s + v, 0)];
185
- if (na + nb < MIN_INK) return { score: null, offset: [0, 0], inkOriginal: na, inkYours: nb };
186
- let mostOverlappingShift = { iou: -1, dx: 0, dy: 0 };
187
- for (let dy = -ALIGN; dy <= ALIGN; dy++)
188
- for (let dx = -ALIGN; dx <= ALIGN; dx++) {
189
- let [both, either] = [0, 0];
190
- for (let y = 0; y < h; y++) {
191
- const sy = y - dy;
192
- for (let x = 0; x < w; x++) {
193
- const sx = x - dx;
194
- const vb = sy >= 0 && sy < h && sx >= 0 && sx < w ? ib[sy * w + sx] : 0;
195
- const va = ia[y * w + x];
196
- both += va & vb;
197
- either += va | vb;
198
- }
199
- }
200
- const iou = either ? both / either : 0;
201
- if (iou > mostOverlappingShift.iou) mostOverlappingShift = { iou, dx, dy };
202
- }
203
- const at = (x, y) => (Math.min(h - 1, Math.max(0, y)) * w + Math.min(w - 1, Math.max(0, x))) * 3;
204
- const near = (p, o, q, x, y) => {
205
- for (let ry = -1; ry <= 1; ry++)
206
- for (let rx = -1; rx <= 1; rx++) {
207
- const k = at(x + rx, y + ry);
208
- if (Math.hypot(p[o] - q[k], p[o + 1] - q[k + 1], p[o + 2] - q[k + 2]) < MATCH_COLOUR)
209
- return true;
210
- }
211
- return false;
212
- };
213
- let [hitA, hitB, inkA, inkB] = [0, 0, 0, 0];
214
- for (let y = 0; y < h; y++)
215
- for (let x = 0; x < w; x++) {
216
- const i = y * w + x;
217
- const [sx, sy] = [x - mostOverlappingShift.dx, y - mostOverlappingShift.dy];
218
- const inB = sy >= 0 && sy < h && sx >= 0 && sx < w && ib[sy * w + sx] === 1;
219
- if (ia[i]) {
220
- inkA++;
221
- if (near(a, i * 3, b, sx, sy)) hitA++;
222
- }
223
- if (inB) {
224
- inkB++;
225
- if (near(b, at(sx, sy), a, x, y)) hitB++;
226
- }
227
- }
228
- const [recall, precision] = [inkA ? hitA / inkA : 0, inkB ? hitB / inkB : 0];
229
- return {
230
- score: recall + precision ? 2 * recall * precision / (recall + precision) : 0,
231
- offset: [0 - mostOverlappingShift.dx, 0 - mostOverlappingShift.dy],
232
- inkOriginal: na,
233
- inkYours: nb
234
- };
235
- }
236
- var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1] ?? 0;
237
- function drawnVerdict(box, window, frames) {
238
- const head = { box, window, frames: frames.length };
239
- const scored = frames.flatMap((f) => f.score === null ? [] : [f]);
240
- if (!scored.length) return { ...head, pass: null };
241
- const sorted = scored.map((f) => f.score).sort((x, y) => x - y);
242
- const mean = sorted.reduce((s, v) => s + v, 0) / sorted.length;
243
- const p05 = sorted[Math.min(sorted.length - 1, Math.floor(0.05 * sorted.length))];
244
- const both = scored.filter((f) => f.inkOriginal >= MIN_INK && f.inkYours >= MIN_INK);
245
- return {
246
- ...head,
247
- pass: mean >= DRAWN_MIN_MEAN && p05 >= DRAWN_MIN_P05,
248
- score: round(mean, 3),
249
- p05: round(p05, 3),
250
- offset: [median(scored.map((f) => f.offset[0])), median(scored.map((f) => f.offset[1]))],
251
- ...both.length ? { ink: round(median(both.map((f) => f.inkYours / f.inkOriginal)), 2) } : {}
252
- };
253
- }
254
- function readDrawn(clip, jobs, width, height) {
255
- if (!jobs.length) return [];
256
- const work = mkdtempSync(join(tmpdir(), "hf-diff-drawn-"));
257
- try {
258
- const tags = jobs.map((_, j) => `[d${j}]`).join("");
259
- const graph = [
260
- `[0:v]${[...clip.filters, "setsar=1", `scale=${width}:${height}:flags=bicubic`].join(",")},split=${jobs.length}${tags}`,
261
- ...jobs.map(({ box: [x, y, w, h], frames }, j) => {
262
- const pick = frames.map((k) => `eq(n\\,${k})`).join("+");
263
- return `[d${j}]select=${pick},crop=${w}:${h}:${x}:${y},format=rgb24[e${j}]`;
264
- })
265
- ].join(";");
266
- const outs = jobs.flatMap((_, j) => [
267
- ...["-map", `[e${j}]`, "-fps_mode", "passthrough", "-f", "rawvideo", `e${j}.rgb`]
268
- ]);
269
- runFfmpeg([...clip.input, "-an", "-filter_complex", graph, ...outs], void 0, work);
270
- return jobs.map(({ box: [, , w, h] }, j) => {
271
- const raw = readFileSync(join(work, `e${j}.rgb`));
272
- const size = w * h * 3;
273
- const frames = [];
274
- for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
275
- return frames;
276
- });
277
- } finally {
278
- rmSync(work, { recursive: true, force: true });
279
- }
280
- }
281
- function drawnFrames(ks, fps, a, b, available) {
282
- const stride = Math.max(1, Math.round(fps / MAX_FPS));
283
- const inside = ks.flatMap(
284
- (k, i) => i < available && k / fps >= a - 1e-6 && k / fps < b - 1e-6 ? [i] : []
285
- );
286
- let last = -Infinity;
287
- return inside.filter((i) => {
288
- if (ks[i] - last < stride) return false;
289
- last = ks[i];
290
- return true;
291
- });
292
- }
293
-
294
- // src/measure/person.ts
295
- import { existsSync, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync as rmSync2 } from "fs";
296
- import { tmpdir as tmpdir2 } from "os";
297
- import { join as join2 } from "path";
298
148
  var FRAMING_SHIFT = 0.3;
299
149
  var FRAMING_SCALE = [0.8, 1.25];
300
150
  var FRAMING_MIN_S = 1;
@@ -364,7 +214,7 @@ function bestLag(a, b) {
364
214
  function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()) {
365
215
  let whole;
366
216
  return clips.map((c2) => {
367
- const file = project ? join2(project, c2.path) : void 0;
217
+ const file = project ? join(project, c2.path) : void 0;
368
218
  let info;
369
219
  try {
370
220
  info = file ? probeVideo(file) : void 0;
@@ -404,17 +254,17 @@ function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()
404
254
  at_cut: [0, ...cuts].some((t) => Math.abs(t - offset) <= AT_CUT_S),
405
255
  file,
406
256
  info,
407
- ...c2.reference && existsSync(join2(project, c2.reference)) ? { still: join2(project, c2.reference) } : {}
257
+ ...c2.reference && existsSync(join(project, c2.reference)) ? { still: join(project, c2.reference) } : {}
408
258
  };
409
259
  });
410
260
  }
411
261
  async function clipUses(project) {
412
262
  const out = /* @__PURE__ */ new Map();
413
- const index = join2(project, "index.html");
263
+ const index = join(project, "index.html");
414
264
  if (!existsSync(index)) return out;
415
265
  const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
416
266
  import("./dom-VFHEO7VM.js"),
417
- import("./describeProject-B7H4T5PW.js")
267
+ import("./describeProject-L4ZW5CI7.js")
418
268
  ]);
419
269
  ensureDOMParser();
420
270
  const timeline = await describeProject(index);
@@ -434,7 +284,7 @@ var normalize = (p) => p.replace(/^\.\//, "").replace(/\\/g, "/");
434
284
  function boxAt(info, times, box, w, h) {
435
285
  const ks = times.map((t) => Math.max(0, Math.min(info.frames - 1, Math.round(t * info.fps))));
436
286
  const unique = [...new Set(ks)].sort((x, y) => x - y);
437
- const work = mkdtempSync2(join2(tmpdir2(), "hf-person-"));
287
+ const work = mkdtempSync(join(tmpdir(), "hf-person-"));
438
288
  try {
439
289
  const filters = [
440
290
  `select=${unique.map((k) => `eq(n\\,${k})`).join("+")}`,
@@ -451,14 +301,14 @@ function boxAt(info, times, box, w, h) {
451
301
  void 0,
452
302
  work
453
303
  );
454
- const raw = readFileSync2(join2(work, "out.rgb"));
304
+ const raw = readFileSync(join(work, "out.rgb"));
455
305
  const size = box[2] * box[3] * 3;
456
306
  return ks.map((k) => {
457
307
  const i = unique.indexOf(k) * size;
458
308
  return i + size <= raw.length ? raw.subarray(i, i + size) : void 0;
459
309
  });
460
310
  } finally {
461
- rmSync2(work, { recursive: true, force: true });
311
+ rmSync(work, { recursive: true, force: true });
462
312
  }
463
313
  }
464
314
  function nearby(w, h, x, y, r, test) {
@@ -552,7 +402,7 @@ function carriedText(ref, yours, clip, drawn) {
552
402
  carried: score >= CARRIED_TEXT
553
403
  };
554
404
  }
555
- var median2 = (v) => [...v].sort((x, y) => x - y)[v.length >> 1];
405
+ var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1];
556
406
  var centre = (b) => [b[0] + b[2] / 2, b[1] + b[3] / 2];
557
407
  function shotsIn(window, cuts) {
558
408
  const edges = [window[0], ...cuts.filter((t) => t > window[0] && t < window[1]), window[1]];
@@ -571,8 +421,8 @@ function shotFraming(window, original, yours, aspect = 1) {
571
421
  return [{ shift: apart(near, ox, oy) / subject[3], scale: near[3] / subject[3] }];
572
422
  });
573
423
  if (moments.length < FRAMING_MIN_FACES) return void 0;
574
- const shift = round(median2(moments.map((m) => m.shift)), 3);
575
- const scale = round(median2(moments.map((m) => m.scale)), 3);
424
+ const shift = round(median(moments.map((m) => m.shift)), 3);
425
+ const scale = round(median(moments.map((m) => m.scale)), 3);
576
426
  return {
577
427
  window: [round(window[0], 3), round(window[1], 3)],
578
428
  shift,
@@ -617,7 +467,7 @@ async function personVerdict(opts) {
617
467
  const mouth = (info, samples) => {
618
468
  const boxes = samples.filter((f) => f.t >= s[0] && f.t < s[1] && f.boxes.length).map((f) => f.boxes.reduce((x2, y2) => y2[3] > x2[3] ? y2 : x2));
619
469
  if (boxes.length < FRAMING_MIN_FACES) return void 0;
620
- const [x, y, w, h] = [0, 1, 2, 3].map((i) => median2(boxes.map((b) => b[i])));
470
+ const [x, y, w, h] = [0, 1, 2, 3].map((i) => median(boxes.map((b) => b[i])));
621
471
  const roi = [
622
472
  Math.round((x + 0.2 * w) * info.width / 2) * 2,
623
473
  Math.round((y + 0.62 * h) * info.height / 2) * 2,
@@ -730,7 +580,7 @@ function ssimSeries(ref, yours, logPath) {
730
580
  return `[r${k}]${crop}[rc${k}];[o${k}]${crop}[oc${k}];[oc${k}][rc${k}]ssim=stats_file=cell${i}.log:shortest=1[s${k}]`;
731
581
  })
732
582
  ].join(";");
733
- const work = mkdtempSync3(join3(tmpdir3(), "hf-diff-cells-"));
583
+ const work = mkdtempSync2(join2(tmpdir2(), "hf-diff-cells-"));
734
584
  const all = (text) => [...text.matchAll(/All:([\d.]+)/g)].map((m) => Number(m[1]));
735
585
  try {
736
586
  const maps = Array.from({ length: n }, (_, i) => ["-map", `[s${i}]`]).flat();
@@ -743,11 +593,11 @@ function ssimSeries(ref, yours, logPath) {
743
593
  const frame = all(text);
744
594
  const perCell = Array.from(
745
595
  { length: GRID * GRID },
746
- (_, i) => all(readFileSync3(join3(work, `cell${i}.log`), "utf8"))
596
+ (_, i) => all(readFileSync2(join2(work, `cell${i}.log`), "utf8"))
747
597
  );
748
598
  return { frame, cells: frame.map((_, f) => perCell.map((cell) => cell[f] ?? 1)) };
749
599
  } finally {
750
- rmSync3(work, { recursive: true, force: true });
600
+ rmSync2(work, { recursive: true, force: true });
751
601
  }
752
602
  }
753
603
  function missingContent(ref, yours, ks, fps, judged = () => ALL_CELLS) {
@@ -844,8 +694,10 @@ function outline(px, w, [x, y, bw, bh], t = 3) {
844
694
  }
845
695
  }
846
696
  function cutReport(ref, yours, k0, fps) {
847
- const [da, db] = [ref, yours].map((c2) => frameChanges(signatures(c2.input, c2.filters).frames));
848
- const [a, b] = [cutsIn(da), cutsIn(db)];
697
+ const [fa, fb] = [ref, yours].map((c2) => signatures(c2.input, c2.filters).frames);
698
+ const [da, db] = [frameChanges(fa), frameChanges(fb)];
699
+ const [all, b] = [classifiedCuts(fa), classifiedCuts(fb).filter((c2) => !c2.kind)];
700
+ const a = all.filter((c2) => !c2.kind);
849
701
  const used = /* @__PURE__ */ new Set();
850
702
  const missing = [];
851
703
  for (const cut of a) {
@@ -860,13 +712,14 @@ function cutReport(ref, yours, k0, fps) {
860
712
  yours: b.map((c2) => t(c2.frame)),
861
713
  missing: missing.map(t),
862
714
  extra: extra.map((c2) => t(c2.frame)),
715
+ not_cuts: all.flatMap((c2) => c2.kind ? [{ t: t(c2.frame), kind: c2.kind }] : []),
863
716
  pass: missing.length === 0 && extra.length === 0
864
717
  };
865
718
  }
866
719
  async function captureProject(projectDir, times, opts, ref) {
867
- const { captureSnapshots } = await import("./snapshot-VPN6GA7U.js");
868
- const shots = mkdtempSync3(join3(tmpdir3(), "hf-diff-shots-"));
869
- const seq = mkdtempSync3(join3(tmpdir3(), "hf-diff-seq-"));
720
+ const { captureSnapshots } = await import("./snapshot-RK7ED6DW.js");
721
+ const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
722
+ const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
870
723
  try {
871
724
  const captured = await captureSnapshots(projectDir, {
872
725
  at: times,
@@ -883,18 +736,18 @@ async function captureProject(projectDir, times, opts, ref) {
883
736
  "run npx hyperframes check on the project, then diff again"
884
737
  );
885
738
  captured.paths.forEach(
886
- (p, i) => copyFileSync(resolve(projectDir, p), join3(seq, `${String(i).padStart(6, "0")}.png`))
739
+ (p, i) => copyFileSync(resolve(projectDir, p), join2(seq, `${String(i).padStart(6, "0")}.png`))
887
740
  );
888
741
  } catch (err) {
889
- rmSync3(seq, { recursive: true, force: true });
742
+ rmSync2(seq, { recursive: true, force: true });
890
743
  throw err;
891
744
  } finally {
892
- rmSync3(shots, { recursive: true, force: true });
745
+ rmSync2(shots, { recursive: true, force: true });
893
746
  }
894
747
  return {
895
748
  dir: seq,
896
749
  clip: {
897
- input: ["-framerate", ref.fpsText, "-i", join3(seq, "%06d.png")],
750
+ input: ["-framerate", ref.fpsText, "-i", join2(seq, "%06d.png")],
898
751
  filters: [],
899
752
  width: ref.width,
900
753
  height: ref.height,
@@ -1155,7 +1008,7 @@ function findLedger(yours, segmentsFile) {
1155
1008
  ...existsSync2(yours) && statSync(yours).isDirectory() ? [yours] : [],
1156
1009
  ...segmentsFile ? [dirname(segmentsFile)] : []
1157
1010
  ];
1158
- return dirs.flatMap((d) => [join3(d, ".media", "manifest.jsonl"), join3(d, "media-manifest.jsonl")]).find((f) => existsSync2(f));
1011
+ return dirs.flatMap((d) => [join2(d, ".media", "manifest.jsonl"), join2(d, "media-manifest.jsonl")]).find((f) => existsSync2(f));
1159
1012
  }
1160
1013
  function frameSpans(on, ks, fps) {
1161
1014
  const spans = [];
@@ -1247,12 +1100,12 @@ async function worstMoments(picks, ctx) {
1247
1100
  (y * (2 * cw + 4) + side * (cw + 4)) * 3
1248
1101
  )
1249
1102
  );
1250
- const cellPicture = writeImage(join3(ctx.outDir, `${tag}-cell.png`), pair, 2 * cw + 4, ch);
1103
+ const cellPicture = writeImage(join2(ctx.outDir, `${tag}-cell.png`), pair, 2 * cw + 4, ch);
1251
1104
  const [a, b] = [frameOf(ctx.refClip, i, sw, sh), frameOf(ctx.yours, i, sw, sh)];
1252
1105
  outline(a, sw, scaled);
1253
1106
  outline(b, sw, scaled);
1254
- images.push(writeImage(join3(ctx.outDir, `${tag}-original.png`), a, sw, sh));
1255
- images.push(writeImage(join3(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
1107
+ images.push(writeImage(join2(ctx.outDir, `${tag}-original.png`), a, sw, sh));
1108
+ images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
1256
1109
  labels.push(
1257
1110
  `original ${t}s`,
1258
1111
  `yours ${t}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
@@ -1266,7 +1119,7 @@ async function worstMoments(picks, ctx) {
1266
1119
  }
1267
1120
  if (!images.length) return { worst };
1268
1121
  const { createContactSheet } = await import("./contactSheet-WG4HT5XP.js");
1269
- const sheet = await createContactSheet(images, join3(ctx.outDir, "worst.jpg"), {
1122
+ const sheet = await createContactSheet(images, join2(ctx.outDir, "worst.jpg"), {
1270
1123
  cols: 2,
1271
1124
  maxImages: images.length,
1272
1125
  cellWidth: 640,
@@ -1343,7 +1196,7 @@ async function diffVideos(options) {
1343
1196
  "the original's frame rate varies, so frame times drift: npx hyperframes measure probe makes a constant-rate copy"
1344
1197
  );
1345
1198
  const mode = existsSync2(opts.yours) && statSync(opts.yours).isDirectory() ? "project" : "video";
1346
- if (mode === "project" && !existsSync2(join3(opts.yours, "index.html")))
1199
+ if (mode === "project" && !existsSync2(join2(opts.yours, "index.html")))
1347
1200
  throw new Fix(`${opts.yours} has no index.html`, "pass a project folder or a rendered video");
1348
1201
  if (mode === "project" && !opts.at && !opts.range && opts.segments?.length)
1349
1202
  opts.range = [
@@ -1385,8 +1238,8 @@ async function diffVideos(options) {
1385
1238
  try {
1386
1239
  mkdirSync(opts.outDir, { recursive: true });
1387
1240
  for (const f of readdirSync(opts.outDir))
1388
- if (/^worst-/.test(f)) rmSync3(join3(opts.outDir, f), { force: true });
1389
- const logPath = join3(opts.outDir, "ssim.log");
1241
+ if (/^worst-/.test(f)) rmSync2(join2(opts.outDir, f), { force: true });
1242
+ const logPath = join2(opts.outDir, "ssim.log");
1390
1243
  const series = ssimSeries(refClip, yours, logPath);
1391
1244
  if (!series.frame.length)
1392
1245
  throw new Fix("ffmpeg compared no frames", "check both videos play and overlap in time");
@@ -1394,7 +1247,7 @@ async function diffVideos(options) {
1394
1247
  warnings.push(`yours ends early: ${series.frame.length} of ${ks.length} frames compared`);
1395
1248
  const worstCell = series.cells.map((cells) => Math.min(...cells));
1396
1249
  writeFileSync(
1397
- join3(opts.outDir, "frames.tsv"),
1250
+ join2(opts.outDir, "frames.tsv"),
1398
1251
  [
1399
1252
  "t frame ssim worst_cell cell",
1400
1253
  ...series.frame.map((v, i) => {
@@ -1445,7 +1298,7 @@ async function diffVideos(options) {
1445
1298
  yours: round(yoursInfo.pictureDuration, 3),
1446
1299
  pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
1447
1300
  } : void 0;
1448
- const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync3(opts.ledger, "utf8") : void 0;
1301
+ const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
1449
1302
  const people = /* @__PURE__ */ new Map();
1450
1303
  let clips = [];
1451
1304
  if (opts.segments && yoursInfo) {
@@ -1517,7 +1370,7 @@ async function diffVideos(options) {
1517
1370
  `${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
1518
1371
  );
1519
1372
  const sound = yoursInfo && pick.kind === "all" ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
1520
- const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join3(opts.outDir, "sbs.mp4")) : void 0;
1373
+ const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4")) : void 0;
1521
1374
  const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
1522
1375
  const top = segments ? headline(
1523
1376
  segments,
@@ -1546,16 +1399,16 @@ async function diffVideos(options) {
1546
1399
  ...sheet ? { sheet } : {},
1547
1400
  ...sbs ? { sbs } : {},
1548
1401
  log: logPath,
1549
- frames: join3(opts.outDir, "frames.tsv"),
1402
+ frames: join2(opts.outDir, "frames.tsv"),
1550
1403
  warnings
1551
1404
  };
1552
1405
  } finally {
1553
- if (seqDir) rmSync3(seqDir, { recursive: true, force: true });
1406
+ if (seqDir) rmSync2(seqDir, { recursive: true, force: true });
1554
1407
  }
1555
1408
  }
1556
1409
 
1557
1410
  // src/measure/segments.ts
1558
- import { existsSync as existsSync3, readFileSync as readFileSync4 } from "fs";
1411
+ import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
1559
1412
  var HEADING = /^##\s+(S\d+)\s*[·|-]\s*(\d+(?:\.\d+)?)\s*[–—-]\s*(\d+(?:\.\d+)?)\s*s\b\s*(?:[·|-]\s*(.*))?$/gm;
1560
1413
  var SOURCES = ["rebuilt", "reused", "regenerated"];
1561
1414
  var PIXELS = /^Pixels:\s*(rebuilt|reused|regenerated)\b/im;
@@ -1600,7 +1453,7 @@ function parseSegments(markdown) {
1600
1453
  function readSegments(path) {
1601
1454
  if (!existsSync3(path))
1602
1455
  throw new Fix(`no segments file at ${path}`, "pass a file of `## S01 \xB7 a\u2013b s` segments");
1603
- const segments = parseSegments(readFileSync4(path, "utf8"));
1456
+ const segments = parseSegments(readFileSync3(path, "utf8"));
1604
1457
  if (!segments.length)
1605
1458
  throw new Fix(
1606
1459
  `${path} has no "## S01 \xB7 0.00\u20132.40 s \xB7 title" segment headings`,
@@ -1779,6 +1632,7 @@ var diff_default = defineCommand({
1779
1632
  // fallow-ignore-next-line complexity
1780
1633
  async run({ args, rawArgs }) {
1781
1634
  const json = args.json === true;
1635
+ let exitCode = 0;
1782
1636
  try {
1783
1637
  if (args.at !== void 0 && args.range !== void 0)
1784
1638
  throw new Fix("--at and --range both given", "pass one of them");
@@ -1801,14 +1655,18 @@ var diff_default = defineCommand({
1801
1655
  },
1802
1656
  worst: number(args.worst, "--worst"),
1803
1657
  sbs: args.sbs === true,
1804
- outDir: outDir(args.out, join4("diff", stem)),
1658
+ outDir: outDir(args.out, join3("diff", stem)),
1805
1659
  timeoutMs: number(args.timeout, "--timeout"),
1806
1660
  log: (message) => console.error(message)
1807
1661
  });
1808
1662
  if (json) console.log(formatJson(withMeta({ ok: true, ...result })));
1809
1663
  else printHuman(result);
1810
- if (!result.pass) setCommandExitCode(1);
1664
+ if (!result.pass) {
1665
+ exitCode = 1;
1666
+ setCommandExitCode(1);
1667
+ }
1811
1668
  } catch (err) {
1669
+ exitCode = 1;
1812
1670
  const fix = err instanceof Fix ? err.fix : void 0;
1813
1671
  const message = normalizeErrorMessage(err);
1814
1672
  if (json)
@@ -1816,6 +1674,8 @@ var diff_default = defineCommand({
1816
1674
  else console.error(`${c.error("\u2717")} ${message}${fix ? `
1817
1675
  Fix: ${fix}` : ""}`);
1818
1676
  failCommand();
1677
+ } finally {
1678
+ scheduleCliExit(exitCode);
1819
1679
  }
1820
1680
  }
1821
1681
  });
@@ -12,9 +12,9 @@ import {
12
12
  lintMediaUrls,
13
13
  lintProject,
14
14
  shouldBlockRender
15
- } from "./chunk-HT3D5AKG.js";
15
+ } from "./chunk-GR2T3BOX.js";
16
16
  import "./chunk-HYRPH6LL.js";
17
- import "./chunk-AKMY4QVI.js";
17
+ import "./chunk-2GTFW4MK.js";
18
18
  import "./chunk-CZGHFATT.js";
19
19
  import "./chunk-C2KEGBR3.js";
20
20
  import "./chunk-T5ELONXY.js";
@@ -95,7 +95,7 @@ import {
95
95
  serializeVfxChain,
96
96
  toFps,
97
97
  validateVariables
98
- } from "./chunk-FJ3KUOUZ.js";
98
+ } from "./chunk-XCGPPU32.js";
99
99
  import "./chunk-MEJH7VEA.js";
100
100
  import {
101
101
  AUDIBLE_MEDIA_SELECTOR,
@@ -160,7 +160,7 @@ import {
160
160
  sourceTimeAt,
161
161
  stripEmbeddedRuntimeScripts,
162
162
  timeAtSourceTime
163
- } from "./chunk-6UWSEXQ3.js";
163
+ } from "./chunk-XINVBLXA.js";
164
164
  import "./chunk-VC76R6W2.js";
165
165
  import {
166
166
  ProjectRootMissingError,