hyperframes 0.9.58 → 0.9.59

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 (332) hide show
  1. package/bin/hyperframes.mjs +3 -1
  2. package/dist/{add-JQUKPSEZ.js → add-C7J7HSLI.js} +31 -29
  3. package/dist/{agentPromptGenerator-3NEY7FPP.js → agentPromptGenerator-GCLJUGVE.js} +17 -16
  4. package/dist/{animatedGifPrep-VMUZ6IVJ.js → animatedGifPrep-JPQZPZC4.js} +18 -17
  5. package/dist/api.js +61 -60
  6. package/dist/{appHistory-JNI6IOR6.js → appHistory-TQ6JAEP5.js} +7 -6
  7. package/dist/{asset-ZT3VXZ67.js → asset-HQEPGBDJ.js} +6 -6
  8. package/dist/{assetCataloger-D2DV65BA.js → assetCataloger-LMPPKPF6.js} +19 -18
  9. package/dist/{audio-LD5H2R5V.js → audio-FD2EBZ6D.js} +38 -37
  10. package/dist/{auth-4FPYYMSH.js → auth-JA7XH6NG.js} +4 -4
  11. package/dist/{autoUpdate-5ZKSFCG4.js → autoUpdate-WKW2OMIY.js} +6 -6
  12. package/dist/{avatars-DCLFE7VG.js → avatars-Q7U6CO4X.js} +28 -27
  13. package/dist/{backgroundChecks-UZA3F46H.js → backgroundChecks-H2SOS2CM.js} +16 -9
  14. package/dist/backgroundChecksWorker.js +9 -9
  15. package/dist/{batchRender-TAUW3CT2.js → batchRender-75OLVMZY.js} +14 -13
  16. package/dist/{beats-X3LCR6OG.js → beats-R4EHWWJN.js} +21 -20
  17. package/dist/{benchmark-DNZQT3YQ.js → benchmark-F5OHG3Q3.js} +33 -31
  18. package/dist/{billing-4BFUAHWX.js → billing-LBRSBVXQ.js} +28 -27
  19. package/dist/{browser-5J2MTDB6.js → browser-CNTCFZOG.js} +23 -22
  20. package/dist/{bundleWithLocalizedFonts-XWK47ZVF.js → bundleWithLocalizedFonts-RVF7AFP5.js} +1 -1
  21. package/dist/{capture-TVYTKWTG.js → capture-CTRZEZTC.js} +38 -15
  22. package/dist/{capture-2YSVFKWV.js → capture-DLYM3V5F.js} +37 -33
  23. package/dist/{captureCompositionFrame-L765HLCT.js → captureCompositionFrame-2O2HP6SK.js} +27 -26
  24. package/dist/{captureFile-DOCK42K3.js → captureFile-W7ZDDBCD.js} +5 -4
  25. package/dist/captureProxy-4K3J652A.js +23 -0
  26. package/dist/{catalog-CHGGRRQX.js → catalog-6XL63LU3.js} +42 -38
  27. package/dist/{catch-up-OCFU6ZR3.js → catch-up-AOFQWE6O.js} +36 -28
  28. package/dist/{check-LWK4Z7FI.js → check-5V7K4RL6.js} +64 -63
  29. package/dist/{checkAudio-R5ORBXBO.js → checkAudio-4YUTDQSQ.js} +20 -19
  30. package/dist/{checkBrowser-6SH73T47.js → checkBrowser-BAWRZZZU.js} +56 -55
  31. package/dist/{chunk-CRPLPK6J.js → chunk-2ARKMOCD.js} +6 -6
  32. package/dist/{chunk-BSDUTNFX.js → chunk-2LJPBYKI.js} +1 -1
  33. package/dist/{chunk-KYKQO4VN.js → chunk-3DFEBAWJ.js} +3 -3
  34. package/dist/{chunk-VXE46PXX.js → chunk-3JVTHNDH.js} +1 -1
  35. package/dist/{chunk-JOOKM2NC.js → chunk-3QMGLSKC.js} +3 -3
  36. package/dist/{chunk-LO5USUM4.js → chunk-3RTZ2UX7.js} +1 -1
  37. package/dist/{chunk-GEOJA37C.js → chunk-4QSDXDLV.js} +3 -3
  38. package/dist/{chunk-HTGJOOXE.js → chunk-4STRMCGD.js} +3 -3
  39. package/dist/{chunk-D2LSYXLW.js → chunk-4VJQVTQI.js} +1 -1
  40. package/dist/{chunk-A4YRESMH.js → chunk-5T6HPV25.js} +2 -2
  41. package/dist/{chunk-O4K22EFS.js → chunk-65X2G57W.js} +24 -14
  42. package/dist/{chunk-2WA62M3B.js → chunk-6ATP7YPZ.js} +4 -4
  43. package/dist/{chunk-WLNHZ2OM.js → chunk-6K6RIX2A.js} +3 -3
  44. package/dist/{chunk-G3U5CUF3.js → chunk-6LGB4MVX.js} +2 -2
  45. package/dist/{chunk-4LZSNWFJ.js → chunk-6R4MEYWD.js} +3 -3
  46. package/dist/{chunk-H7DTMLAR.js → chunk-6UAYOSE7.js} +36 -21
  47. package/dist/{chunk-ZLTB7ZCQ.js → chunk-6VY52EVW.js} +1 -1
  48. package/dist/{chunk-Z642P33A.js → chunk-6VY6WTY5.js} +22 -13
  49. package/dist/{chunk-TLDIP7Y3.js → chunk-763UG5II.js} +16 -17
  50. package/dist/{chunk-PS7WBIPK.js → chunk-7CI5MLCC.js} +18 -18
  51. package/dist/{chunk-K2EJQ44S.js → chunk-7Q4EGB3N.js} +1 -1
  52. package/dist/{chunk-XMT4MG6W.js → chunk-7XOORL2Q.js} +14 -14
  53. package/dist/{chunk-H3LEOZVK.js → chunk-7YRZBB4C.js} +1 -1
  54. package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
  55. package/dist/{chunk-CDNVZEGQ.js → chunk-AEXDJU77.js} +5 -2
  56. package/dist/{chunk-7WAWUQDQ.js → chunk-AQIHV4PM.js} +4 -4
  57. package/dist/{chunk-NLVIE7VN.js → chunk-B653JKWT.js} +4 -4
  58. package/dist/{chunk-7WYJXKIG.js → chunk-BMTT2T7M.js} +4 -4
  59. package/dist/{chunk-OPSGEOCO.js → chunk-BTXYXM2A.js} +51 -29
  60. package/dist/{chunk-M5TTYUZM.js → chunk-C3NDLM4S.js} +6 -6
  61. package/dist/{chunk-MSC5KBCE.js → chunk-CAMD2NBN.js} +31 -23
  62. package/dist/{chunk-VLFBOKZX.js → chunk-CC72LTIT.js} +135 -43
  63. package/dist/{chunk-O5U3Y5DX.js → chunk-CIXP5G7Z.js} +1 -1
  64. package/dist/{chunk-ZYNNZ5DE.js → chunk-D44MBZI6.js} +2 -2
  65. package/dist/{chunk-RV3HR3BZ.js → chunk-DCRHNRUY.js} +9 -9
  66. package/dist/{chunk-ELRE6LVJ.js → chunk-DSCMYTKJ.js} +5 -5
  67. package/dist/{chunk-6RPKPL22.js → chunk-EGZQX3UX.js} +1 -1
  68. package/dist/{chunk-WEU6WLVT.js → chunk-ELDZ6C3R.js} +3 -3
  69. package/dist/{chunk-ZFOV3R2L.js → chunk-EUVU5JS4.js} +4 -4
  70. package/dist/{chunk-U5MILT4G.js → chunk-FC77MYAD.js} +1 -1
  71. package/dist/{chunk-CGJIMWNU.js → chunk-FFL5R2EZ.js} +4 -4
  72. package/dist/{chunk-ZCLC3KVY.js → chunk-FGJUVWAM.js} +1 -1
  73. package/dist/{chunk-JQZ5WP7L.js → chunk-FQ26QE5N.js} +1 -1
  74. package/dist/{chunk-CPDPSNSB.js → chunk-GMIFMRWR.js} +7 -7
  75. package/dist/{chunk-OL7RHRNJ.js → chunk-GYJ7AJXN.js} +2 -2
  76. package/dist/{chunk-CVTIGS5K.js → chunk-H3TD4VKX.js} +1 -1
  77. package/dist/{chunk-UDLWVQ74.js → chunk-HLOJSBGC.js} +28 -14
  78. package/dist/{chunk-MYETYFDI.js → chunk-HTISHNLA.js} +2 -2
  79. package/dist/{chunk-DWFWF6IR.js → chunk-HXFGAI6L.js} +31 -239
  80. package/dist/{chunk-GIVMQDSK.js → chunk-HY7FPTBD.js} +2 -2
  81. package/dist/{chunk-I6V25IXG.js → chunk-HYXQR5I3.js} +2 -2
  82. package/dist/{chunk-VI2LLFW6.js → chunk-I5H2FPNP.js} +2 -2
  83. package/dist/{chunk-4N3WOFP3.js → chunk-I6OSAVHD.js} +17 -13
  84. package/dist/{chunk-SV72WLBE.js → chunk-ISSG4PUD.js} +27 -14
  85. package/dist/{chunk-OEGWTN6N.js → chunk-J3H6QDDY.js} +1 -1
  86. package/dist/{chunk-FNXU56VT.js → chunk-J4OHC5FU.js} +1 -1
  87. package/dist/{chunk-FFOFGL2O.js → chunk-JLMMY3UI.js} +2 -2
  88. package/dist/{chunk-EOXNEA4Z.js → chunk-JQ7BPN2R.js} +20 -8
  89. package/dist/{chunk-SYKUNH25.js → chunk-JT7RXK2N.js} +59 -7
  90. package/dist/{chunk-AM4Y3XMR.js → chunk-JUUOYXWH.js} +4 -4
  91. package/dist/{chunk-DL6PEJWH.js → chunk-K2WLOTTF.js} +2 -2
  92. package/dist/{chunk-AM6UYKVR.js → chunk-K33E3YNK.js} +11 -11
  93. package/dist/{chunk-QGQCWG7F.js → chunk-KGPHUBBA.js} +1 -1
  94. package/dist/chunk-KK5Z5XQ3.js +109 -0
  95. package/dist/{chunk-A4L7G74T.js → chunk-KQHDFVFF.js} +3 -3
  96. package/dist/chunk-KUJJJBV2.js +211 -0
  97. package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
  98. package/dist/{chunk-AMS7Q7P7.js → chunk-KYXH4JWF.js} +8 -8
  99. package/dist/{chunk-O2BLY7PO.js → chunk-L456Q4KU.js} +1 -1
  100. package/dist/{chunk-JZVI2TMX.js → chunk-L4MXZHRB.js} +3 -3
  101. package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
  102. package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
  103. package/dist/{chunk-J6VYWZSO.js → chunk-LSGJY2FG.js} +1 -1
  104. package/dist/{chunk-ZAWQJOTW.js → chunk-LTOUXR3X.js} +8 -8
  105. package/dist/{chunk-D3M5VOC5.js → chunk-LZWG4GCC.js} +3 -3
  106. package/dist/{chunk-SALNTRJA.js → chunk-MHF5F4FF.js} +69 -76
  107. package/dist/{chunk-E26Z73S3.js → chunk-MTKXKULM.js} +2 -2
  108. package/dist/{chunk-GDIBE57N.js → chunk-MVA4OQL7.js} +2 -2
  109. package/dist/{chunk-UGKUGYHD.js → chunk-N6QWL3E7.js} +5 -2
  110. package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
  111. package/dist/chunk-NI7JVGOE.js +5083 -0
  112. package/dist/{chunk-HFUI6LVF.js → chunk-NLN5NY3P.js} +1 -1
  113. package/dist/{chunk-AJ7YRQS4.js → chunk-O733DEVT.js} +2 -2
  114. package/dist/{chunk-ZO5NHAF3.js → chunk-ODLSLYJR.js} +10 -4
  115. package/dist/{chunk-3VMZQQUI.js → chunk-OF7SQ77J.js} +1 -1
  116. package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
  117. package/dist/{chunk-TLGQQ324.js → chunk-OPIS2YMA.js} +13 -11
  118. package/dist/{chunk-IHXMN5YH.js → chunk-ORKZUTZW.js} +2 -2
  119. package/dist/{chunk-PYTF6VHF.js → chunk-OV5OSN74.js} +3 -3
  120. package/dist/{chunk-EZJHKHWU.js → chunk-OYKAS3J5.js} +3 -3
  121. package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
  122. package/dist/{chunk-TAXMLPTE.js → chunk-PCHUX7Y5.js} +2 -2
  123. package/dist/{chunk-MPC3OODR.js → chunk-PDT6CBK2.js} +4 -4
  124. package/dist/{chunk-GVIJFPZV.js → chunk-PHYFZXOS.js} +2 -2
  125. package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
  126. package/dist/{chunk-7ZHBY7T5.js → chunk-PLOCYJ5U.js} +1 -1
  127. package/dist/{chunk-GRSZAGJB.js → chunk-PMKWTXHE.js} +2 -2
  128. package/dist/{chunk-5SGGOZNL.js → chunk-POFQOZOF.js} +203 -55
  129. package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
  130. package/dist/{chunk-37Y334MN.js → chunk-PSREPOJ4.js} +6 -6
  131. package/dist/{chunk-4NNYYCJN.js → chunk-PYRM3OAI.js} +26 -20
  132. package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
  133. package/dist/{chunk-7ECPFKQV.js → chunk-QC35TPEE.js} +37 -13
  134. package/dist/{chunk-5IUVWP3A.js → chunk-QHVE6AFU.js} +2 -2
  135. package/dist/{chunk-SNKBI4YB.js → chunk-QJ2BV7FM.js} +2 -2
  136. package/dist/{chunk-OD7XWF5T.js → chunk-QKHW5NXL.js} +12 -6
  137. package/dist/{chunk-N6PAWR5C.js → chunk-QVHDAS3L.js} +5 -5
  138. package/dist/{chunk-4QPT3IEL.js → chunk-R3ONQOLE.js} +177 -55
  139. package/dist/{chunk-SM5PNCDI.js → chunk-RAOGN2HG.js} +2 -2
  140. package/dist/{chunk-X3UXEB2U.js → chunk-RDWGNSVI.js} +2 -2
  141. package/dist/{chunk-W2OXNTHG.js → chunk-RHFB457E.js} +3 -3
  142. package/dist/{chunk-Y6CZFX5X.js → chunk-RKIF4EU7.js} +28 -19
  143. package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
  144. package/dist/{chunk-IE6BIB3L.js → chunk-RX67N2PU.js} +3 -1
  145. package/dist/{chunk-ERDQIRUL.js → chunk-SC7SX2I3.js} +18 -8
  146. package/dist/{chunk-NJPLH762.js → chunk-SGQKP2JT.js} +4 -4
  147. package/dist/{chunk-ROESFEBP.js → chunk-SO7FT7YA.js} +67 -60
  148. package/dist/chunk-SXCM6VY3.js +125 -0
  149. package/dist/{chunk-SE4NOUB6.js → chunk-T5QI7ZL2.js} +1 -1
  150. package/dist/{chunk-XMAU5ZQX.js → chunk-TFAKFI3R.js} +1 -1
  151. package/dist/{chunk-3GKGBYW3.js → chunk-THGJTFYB.js} +37 -6
  152. package/dist/{chunk-OMZSPAK5.js → chunk-TIBFCGLT.js} +1 -1
  153. package/dist/{chunk-PGITR2WX.js → chunk-TIZC4XKU.js} +4 -4
  154. package/dist/{chunk-CGODFJZ7.js → chunk-TJGGLLQJ.js} +13 -13
  155. package/dist/{chunk-EWKJDXH6.js → chunk-TNFTRLLJ.js} +4 -4
  156. package/dist/{chunk-E4IR34CF.js → chunk-TVWDS5AT.js} +18 -8
  157. package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
  158. package/dist/{chunk-VBEDZGBW.js → chunk-UBNJWS2H.js} +74 -19
  159. package/dist/{chunk-DH3M5X3Y.js → chunk-UNB2DFR2.js} +4 -4
  160. package/dist/{chunk-V3O4AFO3.js → chunk-URHIQHDR.js} +13 -13
  161. package/dist/{chunk-MK23FXLH.js → chunk-UVZIABYZ.js} +20 -1
  162. package/dist/{chunk-JKLWQUSV.js → chunk-VFGFXE6J.js} +1 -1
  163. package/dist/{chunk-2GRCLLKU.js → chunk-VPPKUCSP.js} +3 -3
  164. package/dist/{chunk-UJTLTFB6.js → chunk-VXRTE7MZ.js} +1 -1
  165. package/dist/{chunk-IGZQYMZA.js → chunk-WDMSNDHS.js} +34 -25
  166. package/dist/{chunk-WJIWXHXK.js → chunk-WI3FM54X.js} +3 -3
  167. package/dist/{chunk-O2INZCGB.js → chunk-WKE3WTIU.js} +1 -1
  168. package/dist/{chunk-2SJNGWSY.js → chunk-WQGDE3L6.js} +1 -1
  169. package/dist/{chunk-WGHJUGNU.js → chunk-WRSGWDDB.js} +7 -7
  170. package/dist/{chunk-37VS6QY6.js → chunk-WTZT6FSK.js} +1 -1
  171. package/dist/{chunk-DX5Y3L5B.js → chunk-XWV6BOCG.js} +3 -3
  172. package/dist/{chunk-WQZQMADW.js → chunk-XXJBWKDS.js} +241 -25
  173. package/dist/{chunk-XYP4T6TQ.js → chunk-XXOEYRD5.js} +5 -5
  174. package/dist/{chunk-BSFTB6AM.js → chunk-XZ6THYIK.js} +11 -5
  175. package/dist/{chunk-ALD7JBPV.js → chunk-YBYNBKCN.js} +2 -2
  176. package/dist/{chunk-HFIVZJJD.js → chunk-YMKCJRVK.js} +1 -1
  177. package/dist/{chunk-X3IVUSOX.js → chunk-Z2U7ELGP.js} +3 -3
  178. package/dist/{chunk-M3IHARIW.js → chunk-ZIYYSD6S.js} +44 -21
  179. package/dist/{chunk-VSM7OIG2.js → chunk-ZMLZRMG7.js} +2 -2
  180. package/dist/{chunk-DHVRVI7F.js → chunk-ZQIMO52O.js} +9 -9
  181. package/dist/{clean-6ODSABBF.js → clean-Z5REUSNY.js} +40 -39
  182. package/dist/cli.js +119 -75
  183. package/dist/{cloud-IMYQB5RC.js → cloud-NJ7G3NF3.js} +4 -4
  184. package/dist/{cloud-NTKLXMBS.js → cloud-QP5R6B6A.js} +10 -9
  185. package/dist/{cloudrun-JNLDP33J.js → cloudrun-CPAZLNTW.js} +16 -15
  186. package/dist/{compare-VLYZ6ZS4.js → compare-T5CHD25P.js} +53 -52
  187. package/dist/{compiler-7M2UCEWG.js → compiler-QVDXN4OS.js} +9 -8
  188. package/dist/{component-KMUHKZ4R.js → component-QMZ46KTE.js} +24 -8
  189. package/dist/{compositions-ESLWNOMS.js → compositions-JHYYNBAK.js} +26 -25
  190. package/dist/{contactSheet-4YF7U6U7.js → contactSheet-7SPGUTDV.js} +8 -7
  191. package/dist/{curve-7RPSNRPE.js → curve-ON6QQY7T.js} +25 -24
  192. package/dist/{cuts-KBAAZSPS.js → cuts-K4FOVP4E.js} +26 -25
  193. package/dist/{delete-EP5Z7HKF.js → delete-6WFQ3FC2.js} +21 -20
  194. package/dist/{deploy-MVR63JLD.js → deploy-UAZQ5PBA.js} +14 -12
  195. package/dist/{describeProject-NBVZT5EN.js → describeProject-7W6BN5A2.js} +17 -16
  196. package/dist/{destroy-DQKIT574.js → destroy-4B4OVPHJ.js} +14 -12
  197. package/dist/{deterministicFonts-LYBMXXBW.js → deterministicFonts-VLIVGXUQ.js} +8 -7
  198. package/dist/{diff-RI3FTMOZ.js → diff-ZSA37QQS.js} +292 -104
  199. package/dist/{dist-TOOMD57O.js → dist-2O52E7QZ.js} +20 -19
  200. package/dist/{dist-LRGTXDSM.js → dist-ACT5C6ME.js} +5 -4
  201. package/dist/{dist-G7VFX23I.js → dist-VRYZIJFZ.js} +12 -7
  202. package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
  203. package/dist/{doctor-43YNRCRB.js → doctor-RXQ2Y2YY.js} +29 -28
  204. package/dist/{energy-YCH36KCC.js → energy-DRA3DCRO.js} +26 -25
  205. package/dist/{events-6RJBITYN.js → events-4SNBQE3M.js} +28 -27
  206. package/dist/{events-VUR27EF6.js → events-AJNF2C3H.js} +16 -15
  207. package/dist/{events-JCPYG3CD.js → events-GA3YM3WT.js} +9 -9
  208. package/dist/{execute-OXMKWIFI.js → execute-6LTZRWE4.js} +48 -47
  209. package/dist/{extract-XGD2RDEX.js → extract-XZQN654B.js} +27 -26
  210. package/dist/{face-XCNWNTGN.js → face-RKUNVSN3.js} +27 -26
  211. package/dist/{feedback-JNFDVBFV.js → feedback-AL7NPPMZ.js} +31 -29
  212. package/dist/{ffmpeg-YQLAJUEA.js → ffmpeg-BEL7EZBA.js} +17 -16
  213. package/dist/{figma-XXGHYEB3.js → figma-IZ3NH2KZ.js} +3 -3
  214. package/dist/fontLocalizeCli.js +24 -23
  215. package/dist/{frames-PEMWFRRY.js → frames-AYE53CSZ.js} +28 -27
  216. package/dist/{generate-H5M4QSJR.js → generate-BZ4EVVQI.js} +43 -42
  217. package/dist/{get-R6Y2OE5P.js → get-2GG4NSOK.js} +17 -16
  218. package/dist/{gpuPolicy-2WVDQYZA.js → gpuPolicy-W2ZGBXNG.js} +16 -15
  219. package/dist/{grade-compare-KFXPZFDL.js → grade-compare-65NWHVXK.js} +54 -53
  220. package/dist/hangReport.js +2 -2
  221. package/dist/{heifImagePrep-VLKYA5QZ.js → heifImagePrep-MRQ4KKDF.js} +19 -18
  222. package/dist/{help-T3XUX5RI.js → help-TEQWNNPI.js} +1 -1
  223. package/dist/{history-QJPUCUUC.js → history-MVNPETRW.js} +26 -25
  224. package/dist/hyperframe.manifest.json +1 -1
  225. package/dist/hyperframe.runtime.iife.js +64 -64
  226. package/dist/hyperframes-player.global.js +14 -6
  227. package/dist/{info-556DHJHJ.js → info-NGNTHWYX.js} +31 -30
  228. package/dist/{init-P62TPWR3.js → init-H7SUGVZX.js} +51 -48
  229. package/dist/{ink-SRN65OZH.js → ink-CPZ4YZFM.js} +26 -25
  230. package/dist/{inspect-U5FWQQFB.js → inspect-GZBQ7XN7.js} +56 -51
  231. package/dist/{installer-3TNMANQV.js → installer-ZTHYVK4L.js} +12 -11
  232. package/dist/{keyframes-FPGEFGCH.js → keyframes-B52LQUOI.js} +50 -37
  233. package/dist/{lambda-YJY2MYWL.js → lambda-SZDQJMKA.js} +30 -29
  234. package/dist/{layout-QIKSVA44.js → layout-BOUOG2D2.js} +56 -53
  235. package/dist/{lint-RD33ESM5.js → lint-H4OWI5JN.js} +23 -22
  236. package/dist/{lintProject-ZWLXB3A2.js → lintProject-P4EAXFU2.js} +5 -4
  237. package/dist/{list-FFO3WOB2.js → list-VNEYACGL.js} +20 -19
  238. package/dist/{localPage-DHIBMNJH.js → localPage-ZP7WVA2N.js} +17 -16
  239. package/dist/{login-IMFRQOEQ.js → login-RUDOUO5Z.js} +9 -9
  240. package/dist/{logout-SLBKP67J.js → logout-5ZO6ZNS3.js} +4 -4
  241. package/dist/{look-ZZHJYSPC.js → look-G3NVPKXZ.js} +26 -25
  242. package/dist/{manager-U4WEPCLV.js → manager-KWNID2ZA.js} +6 -6
  243. package/dist/{manager-V4LGD4HB.js → manager-NXH2NJC6.js} +18 -17
  244. package/dist/{measure-ZRBVN45B.js → measure-5PVIZ2W2.js} +11 -11
  245. package/dist/{media-treatment-3I2CMQJZ.js → media-treatment-T5QJI4PQ.js} +29 -28
  246. package/dist/{media-use-2OYJ3CCN.js → media-use-RTN3SMVY.js} +8 -8
  247. package/dist/{models-PRW7EWSV.js → models-J2CJ7EVX.js} +29 -28
  248. package/dist/{motionShot-VWILMLHQ.js → motionShot-HU7P26WJ.js} +31 -30
  249. package/dist/{normalize-PGMS24I2.js → normalize-44E7R6T5.js} +5 -1
  250. package/dist/{normalize-audio-42XMF35K.js → normalize-audio-2YFTP2T6.js} +21 -20
  251. package/dist/{oauth-V3HSFZRE.js → oauth-E5QBYYTX.js} +2 -2
  252. package/dist/{open-D52MJZQA.js → open-RSCNUV6E.js} +32 -31
  253. package/dist/{parakeetRunner-ZR2JWQZH.js → parakeetRunner-BUY25EIR.js} +28 -27
  254. package/dist/{pipeline-W3H4JA6H.js → pipeline-A4RL5R5P.js} +22 -21
  255. package/dist/{plan-2HQOFJO7.js → plan-7WYNPILA.js} +36 -35
  256. package/dist/{play-G5XDRDIZ.js → play-UKHFNMYZ.js} +44 -42
  257. package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
  258. package/dist/{preflight-W2JDYF3T.js → preflight-2VFCT3PI.js} +20 -19
  259. package/dist/{present-CYMTHQFM.js → present-ZUGFCQOF.js} +39 -37
  260. package/dist/{preview-DTQPQZTK.js → preview-BT2ZFYMC.js} +43 -42
  261. package/dist/{probe-WZJK3YQI.js → probe-2CLEK2UT.js} +26 -25
  262. package/dist/{producer-2BSMSO6I.js → producer-HCAMS55D.js} +1 -1
  263. package/dist/{progress-KRDVC24C.js → progress-5A4N7PTR.js} +7 -5
  264. package/dist/{projectConfig-BYRVYLCC.js → projectConfig-2KJ2PXIM.js} +15 -14
  265. package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
  266. package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
  267. package/dist/{publication-UCFJLELD.js → publication-AR63EGJF.js} +9 -8
  268. package/dist/{publish-KXVPSWCO.js → publish-EGKYOJWV.js} +73 -63
  269. package/dist/{refresh-2GVNKDQE.js → refresh-GYRLZ7DZ.js} +4 -4
  270. package/dist/{remove-background-O7BZNS3X.js → remove-background-IQQPMM24.js} +26 -25
  271. package/dist/{render-TYS3LCIQ.js → render-HJRMJYTA.js} +16 -14
  272. package/dist/{render-QOWXGWQZ.js → render-ROJ5X53T.js} +62 -60
  273. package/dist/{render-DGAP4Q2Z.js → render-YNSZYEEK.js} +91 -83
  274. package/dist/{render-batch-TEQRGAUC.js → render-batch-MXYDIHRO.js} +20 -17
  275. package/dist/renderSetupWorker.js +21 -11
  276. package/dist/{resolver-RN2JGGQL.js → resolver-SPLAVF76.js} +12 -11
  277. package/dist/{reverse-FUARFEG2.js → reverse-CE6OGBB7.js} +1 -1
  278. package/dist/{run-V722HMUG.js → run-YVNJJL26.js} +14 -13
  279. package/dist/runtimeVersion.js +6 -1
  280. package/dist/{sam-KHLM2DJA.js → sam-2D3BUTL7.js} +5 -5
  281. package/dist/{screenshotCapture-4BB4LUMX.js → screenshotCapture-DRO7VMNI.js} +19 -18
  282. package/dist/{service-ZPCHJY6B.js → service-K65JYG4O.js} +28 -26
  283. package/dist/{share-PXUN7AH7.js → share-CSVWF6SB.js} +33 -31
  284. package/dist/{sherpa-LT6Y7IGM.js → sherpa-JE6AFUEV.js} +27 -26
  285. package/dist/sherpaWorker.js +7 -6
  286. package/dist/{sites-WWCABDSX.js → sites-QCGTWVNF.js} +9 -6
  287. package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
  288. package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +1 -1
  289. package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
  290. package/dist/{skills-G63W5GD5.js → skills-L3BXM7VJ.js} +22 -21
  291. package/dist/{skillsUpdateCheck-2T3JVDAA.js → skillsUpdateCheck-VUENI5OR.js} +7 -7
  292. package/dist/{snapshot-EVSKTVDG.js → snapshot-GI2GWIF6.js} +90 -79
  293. package/dist/{src-R57EQQSI.js → src-B646B52O.js} +19 -14
  294. package/dist/{src-K5FSMLTB.js → src-ZXZO5RCJ.js} +25 -24
  295. package/dist/{start-XBCYKGBV.js → start-ZNGKXRNE.js} +40 -39
  296. package/dist/{state-FO64CPYE.js → state-7CJBWHXJ.js} +7 -5
  297. package/dist/{staticProjectServer-Q6VR7CXT.js → staticProjectServer-46T6YTPF.js} +31 -30
  298. package/dist/{status-E5XIWRCQ.js → status-7SWTPLVI.js} +31 -30
  299. package/dist/studio/assets/hyperframes-player-bya4hgms.js +573 -0
  300. package/dist/studio/assets/{index-ww7-RmuM.js → index--dcfSUzI.js} +1 -1
  301. package/dist/studio/assets/{index-D7ICtobF.js → index-Bxh5lW0C.js} +117 -117
  302. package/dist/studio/assets/{pausedVideoDecoder-Dbe8Cmab.js → pausedVideoDecoder-BKym1jA6.js} +1 -1
  303. package/dist/studio/index.html +1 -1
  304. package/dist/{studio-api-GMJVYGET.js → studio-api-4XKM5HDR.js} +20 -19
  305. package/dist/{studioServer-MIQCMK6U.js → studioServer-4TWRIZNU.js} +176 -125
  306. package/dist/subCompositionWorker.js +11 -10
  307. package/dist/{sync-WJOFN6VN.js → sync-R3K6LYB3.js} +26 -25
  308. package/dist/{synthesize-FXM7ZD6J.js → synthesize-OZ3SJTOF.js} +22 -13
  309. package/dist/{system-DBUN5UDD.js → system-LZ4PMOJD.js} +3 -3
  310. package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
  311. package/dist/{telemetry-HZ4P4DMC.js → telemetry-WSBY25O3.js} +16 -15
  312. package/dist/{templates-KFZZSSKW.js → templates-ITP6ISAF.js} +36 -29
  313. package/dist/{timeline-5M6DPCXF.js → timeline-U7GJMYKV.js} +42 -37
  314. package/dist/{tokens-H4NPNRFR.js → tokens-3YTSUU27.js} +6 -6
  315. package/dist/{transcribe-7PE5UH7J.js → transcribe-ISCBYWN4.js} +23 -22
  316. package/dist/{transcribe-6STI2ALX.js → transcribe-QHHY5M3G.js} +51 -50
  317. package/dist/{tts-D7CLD3AD.js → tts-24IJXIT2.js} +9 -9
  318. package/dist/{update-H3T3AVVG.js → update-SVEH2GOL.js} +24 -23
  319. package/dist/{updateCheck-TLCXUNBV.js → updateCheck-MDG7N7VO.js} +6 -6
  320. package/dist/{upgrade-BZVTMCQU.js → upgrade-6CGAI4OR.js} +12 -11
  321. package/dist/{urlDownloader-FJXNC3IM.js → urlDownloader-VPQTIGEH.js} +15 -14
  322. package/dist/{validate-WTRVCEL5.js → validate-QUB4KCEQ.js} +47 -42
  323. package/dist/{video-TVO2U5F2.js → video-PUGZ5UHS.js} +35 -29
  324. package/dist/{voices-F3EW43LX.js → voices-4UO5AYLS.js} +40 -39
  325. package/dist/warmCheck.js +65 -64
  326. package/dist/warmCheckClient.js +4 -4
  327. package/package.json +1 -1
  328. package/dist/chunk-23SG3B6M.js +0 -81
  329. package/dist/chunk-2RUCE54M.js +0 -5083
  330. package/dist/chunk-JOQR4AP6.js +0 -22
  331. package/dist/studio/assets/hyperframes-player-B78JDyI_.js +0 -565
  332. package/dist/{chunk-7IMHPBSH.js → chunk-4NDSGKPO.js} +3 -3
@@ -4,41 +4,41 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ contrast,
9
+ drawnFrames,
10
+ drawnVerdict,
11
+ readDrawn,
12
+ scoreDrawnFrame
13
+ } from "./chunk-FGJUVWAM.js";
7
14
  import {
8
15
  compareLook,
9
16
  look,
10
17
  sameLook
11
- } from "./chunk-BSDUTNFX.js";
18
+ } from "./chunk-2LJPBYKI.js";
12
19
  import {
13
20
  faceBoxes
14
- } from "./chunk-ERDQIRUL.js";
21
+ } from "./chunk-SC7SX2I3.js";
15
22
  import {
16
23
  avSync
17
- } from "./chunk-2SJNGWSY.js";
24
+ } from "./chunk-WQGDE3L6.js";
18
25
  import {
19
26
  compareEnergy,
20
27
  energyCurve
21
- } from "./chunk-JQZ5WP7L.js";
22
- import {
23
- contrast,
24
- drawnFrames,
25
- drawnVerdict,
26
- readDrawn,
27
- scoreDrawnFrame
28
- } from "./chunk-ZCLC3KVY.js";
28
+ } from "./chunk-FQ26QE5N.js";
29
29
  import {
30
30
  parseMask,
31
31
  repeated
32
- } from "./chunk-CPDPSNSB.js";
32
+ } from "./chunk-GMIFMRWR.js";
33
33
  import {
34
34
  classifiedCuts,
35
35
  confirmsCut,
36
36
  frameChanges,
37
37
  signatures
38
- } from "./chunk-O2BLY7PO.js";
39
- import "./chunk-WEU6WLVT.js";
40
- import "./chunk-4QPT3IEL.js";
41
- import "./chunk-WJIWXHXK.js";
38
+ } from "./chunk-L456Q4KU.js";
39
+ import "./chunk-ELDZ6C3R.js";
40
+ import "./chunk-R3ONQOLE.js";
41
+ import "./chunk-WI3FM54X.js";
42
42
  import {
43
43
  Fix,
44
44
  decode,
@@ -55,39 +55,39 @@ import {
55
55
  sumOf,
56
56
  videoClip,
57
57
  writeImage
58
- } from "./chunk-EZJHKHWU.js";
59
- import "./chunk-D2LSYXLW.js";
60
- import "./chunk-GDIBE57N.js";
58
+ } from "./chunk-OYKAS3J5.js";
59
+ import "./chunk-LB6ZAP4I.js";
60
+ import "./chunk-4VJQVTQI.js";
61
+ import "./chunk-MVA4OQL7.js";
61
62
  import "./chunk-D3NWGOXW.js";
62
- import "./chunk-QGQCWG7F.js";
63
- import "./chunk-XMAU5ZQX.js";
64
- import "./chunk-YTHXSYYB.js";
63
+ import "./chunk-KGPHUBBA.js";
64
+ import "./chunk-TFAKFI3R.js";
65
65
  import "./chunk-3S27CPV7.js";
66
66
  import "./chunk-6BEFEWFB.js";
67
67
  import "./chunk-RZ6CXJ56.js";
68
- import "./chunk-4LZSNWFJ.js";
68
+ import "./chunk-6R4MEYWD.js";
69
69
  import "./chunk-ECGNWHFE.js";
70
70
  import {
71
71
  readCompositionFps
72
- } from "./chunk-OMZSPAK5.js";
73
- import "./chunk-W2OXNTHG.js";
72
+ } from "./chunk-TIBFCGLT.js";
73
+ import "./chunk-RHFB457E.js";
74
74
  import "./chunk-XT7X6QCP.js";
75
- import "./chunk-3VMZQQUI.js";
76
- import "./chunk-SYKUNH25.js";
75
+ import "./chunk-OF7SQ77J.js";
77
76
  import "./chunk-HVW7ABXD.js";
78
- import "./chunk-2WA62M3B.js";
79
- import "./chunk-JOOKM2NC.js";
77
+ import "./chunk-JT7RXK2N.js";
78
+ import "./chunk-6ATP7YPZ.js";
79
+ import "./chunk-3QMGLSKC.js";
80
80
  import "./chunk-PXVQOMKL.js";
81
- import "./chunk-MCDNAIFF.js";
81
+ import "./chunk-NGRWDXRZ.js";
82
82
  import "./chunk-DMW5SSUN.js";
83
- import "./chunk-UGKUGYHD.js";
83
+ import "./chunk-N6QWL3E7.js";
84
84
  import "./chunk-XFF4XJZO.js";
85
- import "./chunk-O4K22EFS.js";
86
- import "./chunk-EWKJDXH6.js";
85
+ import "./chunk-65X2G57W.js";
86
+ import "./chunk-TNFTRLLJ.js";
87
87
  import "./chunk-AWDFDFI3.js";
88
88
  import "./chunk-662337AC.js";
89
89
  import "./chunk-D3UCUI7G.js";
90
- import "./chunk-ALD7JBPV.js";
90
+ import "./chunk-YBYNBKCN.js";
91
91
  import {
92
92
  defineCommand
93
93
  } from "./chunk-DL4OD7IA.js";
@@ -97,91 +97,220 @@ import "./chunk-YAROSZMP.js";
97
97
  import {
98
98
  c
99
99
  } from "./chunk-JCNPHRGX.js";
100
- import "./chunk-VLFBOKZX.js";
100
+ import "./chunk-CC72LTIT.js";
101
101
  import "./chunk-Z5J67X44.js";
102
- import "./chunk-OSKSTJNQ.js";
102
+ import "./chunk-PJQVJSMG.js";
103
103
  import "./chunk-3GXQPCJC.js";
104
104
  import "./chunk-YXX6CIHL.js";
105
105
  import "./chunk-5S7W3TUO.js";
106
106
  import "./chunk-D54ZDCZR.js";
107
- import "./chunk-4N3WOFP3.js";
107
+ import "./chunk-I6OSAVHD.js";
108
108
  import {
109
109
  replaceFileAtomically
110
- } from "./chunk-DL6PEJWH.js";
110
+ } from "./chunk-K2WLOTTF.js";
111
111
  import {
112
112
  fpsToNumber,
113
113
  parseFps
114
- } from "./chunk-5IUVWP3A.js";
114
+ } from "./chunk-QHVE6AFU.js";
115
115
  import "./chunk-FXMKHHPO.js";
116
- import "./chunk-2RUCE54M.js";
116
+ import "./chunk-NI7JVGOE.js";
117
117
  import "./chunk-VC76R6W2.js";
118
- import "./chunk-SALNTRJA.js";
119
- import "./chunk-MK23FXLH.js";
118
+ import "./chunk-MHF5F4FF.js";
119
+ import "./chunk-UVZIABYZ.js";
120
120
  import "./chunk-RQVDTPGD.js";
121
- import "./chunk-X6JUUQCM.js";
121
+ import "./chunk-Q4FVSYTD.js";
122
122
  import "./chunk-KGPLIH7B.js";
123
- import "./chunk-O2INZCGB.js";
123
+ import "./chunk-WKE3WTIU.js";
124
124
  import "./chunk-6LU6JICP.js";
125
- import "./chunk-UDLWVQ74.js";
125
+ import "./chunk-HLOJSBGC.js";
126
126
  import "./chunk-6EMFSRTW.js";
127
- import "./chunk-O5U3Y5DX.js";
127
+ import "./chunk-CIXP5G7Z.js";
128
128
  import "./chunk-IH2C53YV.js";
129
- import "./chunk-7IMHPBSH.js";
129
+ import "./chunk-4NDSGKPO.js";
130
130
  import "./chunk-FR7YBU3H.js";
131
131
  import "./chunk-DZWAYZG2.js";
132
+ import "./chunk-WC4MTXGN.js";
132
133
  import "./chunk-GWTIFRF5.js";
133
134
  import "./chunk-2RY2LWAA.js";
134
- import "./chunk-WC4MTXGN.js";
135
+ import "./chunk-KK5Z5XQ3.js";
135
136
  import "./chunk-WFQJ6EJ6.js";
136
137
  import "./chunk-4NTCQF3L.js";
137
- import "./chunk-JOQR4AP6.js";
138
+ import "./chunk-KUJJJBV2.js";
138
139
  import {
139
140
  withMeta
140
- } from "./chunk-KYKQO4VN.js";
141
+ } from "./chunk-3DFEBAWJ.js";
141
142
  import "./chunk-BR2JQQC5.js";
142
143
  import "./chunk-AWD2MWWL.js";
143
144
  import "./chunk-ISN5GRYI.js";
144
145
  import "./chunk-GR2E54E6.js";
145
- import "./chunk-ADVVQX4I.js";
146
+ import "./chunk-LMNCEQCC.js";
146
147
  import {
147
148
  failCommand,
148
149
  scheduleCliExit,
149
150
  setCommandExitCode
150
- } from "./chunk-66W5IWLO.js";
151
+ } from "./chunk-U7M4SZUB.js";
151
152
  import "./chunk-CPHQTXP5.js";
152
153
  import "./chunk-QBXDU24O.js";
153
- import "./chunk-FFOFGL2O.js";
154
+ import "./chunk-JLMMY3UI.js";
154
155
  import {
155
156
  normalizeErrorMessage
156
157
  } from "./chunk-E63BDV4Z.js";
157
158
  import "./chunk-LW33P24U.js";
158
159
  import "./chunk-XT6MXC7A.js";
159
160
  import "./chunk-7KDQAD2W.js";
160
- import "./chunk-JKLWQUSV.js";
161
- import "./chunk-IE6BIB3L.js";
161
+ import "./chunk-VFGFXE6J.js";
162
+ import "./chunk-RX67N2PU.js";
162
163
  import "./chunk-M2WBOQ2Q.js";
163
164
 
164
165
  // src/commands/diff.ts
165
- import { basename as basename2, extname, join as join3, resolve as resolve2 } from "path";
166
+ import { basename as basename2, extname, join as join4, resolve as resolve2 } from "path";
166
167
 
167
168
  // src/measure/diff.ts
168
169
  import {
169
170
  copyFileSync,
170
171
  existsSync as existsSync2,
171
172
  mkdirSync,
172
- mkdtempSync as mkdtempSync2,
173
- readdirSync,
174
- readFileSync as readFileSync2,
173
+ mkdtempSync as mkdtempSync3,
174
+ readdirSync as readdirSync2,
175
+ readFileSync as readFileSync3,
175
176
  rmSync as rmSync2,
176
177
  statSync
177
178
  } from "fs";
178
- import { tmpdir as tmpdir2 } from "os";
179
- import { basename, dirname, join as join2, resolve } from "path";
179
+ import { tmpdir as tmpdir3 } from "os";
180
+ import { basename, dirname, join as join3, resolve } from "path";
180
181
 
181
- // src/measure/person.ts
182
- import { existsSync, mkdtempSync, readFileSync, rmSync } from "fs";
182
+ // src/measure/layer.ts
183
+ import { constants, cpSync, mkdtempSync, readdirSync, readFileSync, writeFileSync } from "fs";
183
184
  import { tmpdir } from "os";
184
185
  import { join } from "path";
186
+ var FOOTPRINT_LEVELS = 25;
187
+ var MIN_FOOTPRINT = 100;
188
+ var REDUNDANT_MAE = 8;
189
+ var SHIFT = 40;
190
+ var SHIFT_STEP = 2;
191
+ var SCALES = [0.8, 0.85, 0.9, 0.95, 1.05, 1.1, 1.15, 1.2];
192
+ var SCALE_SHIFT = 6;
193
+ var SCALE_GAIN = 0.9;
194
+ var FIT_SAMPLE = 2e4;
195
+ function hiddenCopy(project, selector) {
196
+ const dir = mkdtempSync(join(tmpdir(), "hf-diff-hidden-"));
197
+ for (const name of readdirSync(project))
198
+ if (name !== "renders" && name !== "node_modules")
199
+ cpSync(join(project, name), join(dir, name), {
200
+ recursive: true,
201
+ mode: constants.COPYFILE_FICLONE
202
+ });
203
+ const index = join(dir, "index.html");
204
+ const html = readFileSync(index, "utf8");
205
+ const style = `<style>${selector}{visibility:hidden!important}</style>`;
206
+ writeFileSync(
207
+ index,
208
+ html.includes("</head>") ? html.replace("</head>", `${style}</head>`) : style + html
209
+ );
210
+ return dir;
211
+ }
212
+ function mae(a, b, idx, bIdx = idx) {
213
+ let sum = 0;
214
+ for (let n = 0; n < idx.length; n++)
215
+ for (let c2 = 0; c2 < 3; c2++) sum += Math.abs(a[idx[n] * 3 + c2] - b[bIdx[n] * 3 + c2]);
216
+ return sum / (idx.length * 3);
217
+ }
218
+ function moved(xs, ys, w, h, [cx, cy], scale, dx, dy) {
219
+ const out = new Int32Array(xs.length);
220
+ for (let n = 0; n < xs.length; n++) {
221
+ const x = Math.min(w - 1, Math.max(0, Math.round(cx + scale * (xs[n] - cx) + dx)));
222
+ const y = Math.min(h - 1, Math.max(0, Math.round(cy + scale * (ys[n] - cy) + dy)));
223
+ out[n] = y * w + x;
224
+ }
225
+ return out;
226
+ }
227
+ function instruction([dx, dy], scale) {
228
+ const parts = [
229
+ ...dy ? [`move ${dy > 0 ? "down" : "up"} ${Math.abs(dy)} px`] : [],
230
+ ...dx ? [`move ${dx > 0 ? "right" : "left"} ${Math.abs(dx)} px`] : [],
231
+ ...scale === 1 ? [] : [`make it ${Math.round(Math.abs(scale - 1) * 100)}% ${scale > 1 ? "larger" : "smaller"}`]
232
+ ];
233
+ return parts.join(", ") || "in place";
234
+ }
235
+ function footprintOf(withLayer, without, pixels) {
236
+ const at = [];
237
+ for (let i = 0; i < pixels; i++)
238
+ for (let c2 = 0; c2 < 3; c2++)
239
+ if (Math.abs(withLayer[i * 3 + c2] - without[i * 3 + c2]) > FOOTPRINT_LEVELS) {
240
+ at.push(i);
241
+ break;
242
+ }
243
+ return Int32Array.from(at);
244
+ }
245
+ function fitLayer(err) {
246
+ let best = { offset: [0, 0], scale: 1, mae: err(1, 0, 0) };
247
+ const tryFit = (scale, dx, dy) => {
248
+ const m = err(scale, dx, dy);
249
+ if (m < best.mae) best = { offset: [dx, dy], scale, mae: m };
250
+ };
251
+ for (let dy = -SHIFT; dy <= SHIFT; dy += SHIFT_STEP)
252
+ for (let dx = -SHIFT; dx <= SHIFT; dx += SHIFT_STEP) tryFit(1, dx, dy);
253
+ const moveOnly = best;
254
+ const [bx, by] = best.offset;
255
+ for (const scale of SCALES)
256
+ for (let dy = by - SCALE_SHIFT; dy <= by + SCALE_SHIFT; dy += SHIFT_STEP)
257
+ for (let dx = bx - SCALE_SHIFT; dx <= bx + SCALE_SHIFT; dx += SHIFT_STEP)
258
+ tryFit(scale, dx, dy);
259
+ return best.mae > SCALE_GAIN * moveOnly.mae ? moveOnly : best;
260
+ }
261
+ function scoreLayerFrame(t, ref, withLayer, without, w, h) {
262
+ const idx = footprintOf(withLayer, without, w * h);
263
+ if (idx.length < MIN_FOOTPRINT) return { t, footprint_px: idx.length };
264
+ let [x0, x1, y0, y1] = [w, -1, h, -1];
265
+ for (const i of idx) {
266
+ const [x, y] = [i % w, Math.floor(i / w)];
267
+ [x0, x1, y0, y1] = [Math.min(x0, x), Math.max(x1, x), Math.min(y0, y), Math.max(y1, y)];
268
+ }
269
+ const centre2 = [(x0 + x1) / 2, (y0 + y1) / 2];
270
+ const head = {
271
+ t,
272
+ footprint_px: idx.length,
273
+ bbox: [x0, y0, x1 - x0 + 1, y1 - y0 + 1],
274
+ mae_with: round(mae(ref, withLayer, idx), 1),
275
+ mae_without: round(mae(ref, without, idx), 1)
276
+ };
277
+ if (head.mae_without < REDUNDANT_MAE)
278
+ return {
279
+ ...head,
280
+ benefit: null,
281
+ note: "leaving the layer out already matches the original here: the original has nothing more there, or the footage carries its copy of the layer"
282
+ };
283
+ const step = Math.ceil(idx.length / FIT_SAMPLE);
284
+ const sample = idx.filter((_, n) => n % step === 0);
285
+ const xs = sample.map((i) => i % w);
286
+ const ys = sample.map((i) => Math.floor(i / w));
287
+ const fit = fitLayer(
288
+ (scale, dx, dy) => mae(ref, withLayer, moved(xs, ys, w, h, centre2, scale, dx, dy), sample)
289
+ );
290
+ return {
291
+ ...head,
292
+ benefit: round(1 - head.mae_with / head.mae_without, 3),
293
+ fit: { ...fit, mae: round(fit.mae, 1) },
294
+ instruction: instruction(fit.offset, fit.scale)
295
+ };
296
+ }
297
+ function layerVerdict(selector, frames) {
298
+ const scored = frames.flatMap((f) => typeof f.benefit === "number" ? [f.benefit] : []);
299
+ const sorted = [...scored].sort((a, b) => a - b);
300
+ const mid = sorted.length >> 1;
301
+ return {
302
+ selector,
303
+ frames,
304
+ benefit_median: sorted.length ? round(sorted.length % 2 ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2, 3) : null,
305
+ worse: frames.filter((f) => typeof f.benefit === "number" && f.benefit < 0).map((f) => f.t),
306
+ redundant: frames.filter((f) => f.benefit === null).map((f) => f.t)
307
+ };
308
+ }
309
+
310
+ // src/measure/person.ts
311
+ import { existsSync, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync } from "fs";
312
+ import { tmpdir as tmpdir2 } from "os";
313
+ import { join as join2 } from "path";
185
314
  var FRAMING_SHIFT = 0.3;
186
315
  var FRAMING_SCALE = [0.8, 1.25];
187
316
  var FRAMING_MIN_S = 1;
@@ -251,7 +380,7 @@ function bestLag(a, b) {
251
380
  function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()) {
252
381
  let whole;
253
382
  return clips.map((c2) => {
254
- const file = project ? join(project, c2.path) : void 0;
383
+ const file = project ? join2(project, c2.path) : void 0;
255
384
  let info;
256
385
  try {
257
386
  info = file ? probeVideo(file) : void 0;
@@ -291,17 +420,17 @@ function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()
291
420
  at_cut: [0, ...cuts].some((t) => Math.abs(t - offset) <= AT_CUT_S),
292
421
  file,
293
422
  info,
294
- ...c2.reference && existsSync(join(project, c2.reference)) ? { still: join(project, c2.reference) } : {}
423
+ ...c2.reference && existsSync(join2(project, c2.reference)) ? { still: join2(project, c2.reference) } : {}
295
424
  };
296
425
  });
297
426
  }
298
427
  async function clipUses(project) {
299
428
  const out = /* @__PURE__ */ new Map();
300
- const index = join(project, "index.html");
429
+ const index = join2(project, "index.html");
301
430
  if (!existsSync(index)) return out;
302
431
  const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
303
432
  import("./dom-VFHEO7VM.js"),
304
- import("./describeProject-NBVZT5EN.js")
433
+ import("./describeProject-7W6BN5A2.js")
305
434
  ]);
306
435
  ensureDOMParser();
307
436
  const timeline = await describeProject(index);
@@ -321,7 +450,7 @@ var normalize = (p) => p.replace(/^\.\//, "").replace(/\\/g, "/");
321
450
  function boxAt(info, times, box, w, h) {
322
451
  const ks = times.map((t) => Math.max(0, Math.min(info.frames - 1, Math.round(t * info.fps))));
323
452
  const unique = [...new Set(ks)].sort((x, y) => x - y);
324
- const work = mkdtempSync(join(tmpdir(), "hf-person-"));
453
+ const work = mkdtempSync2(join2(tmpdir2(), "hf-person-"));
325
454
  try {
326
455
  const filters = [
327
456
  `select=${sumOf(unique.map((k) => `eq(n\\,${k})`))}`,
@@ -338,7 +467,7 @@ function boxAt(info, times, box, w, h) {
338
467
  void 0,
339
468
  work
340
469
  );
341
- const raw = readFileSync(join(work, "out.rgb"));
470
+ const raw = readFileSync2(join2(work, "out.rgb"));
342
471
  const size = box[2] * box[3] * 3;
343
472
  return ks.map((k) => {
344
473
  const i = unique.indexOf(k) * size;
@@ -647,7 +776,7 @@ function ssimSeries(ref, yours, logPath) {
647
776
  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}]`;
648
777
  })
649
778
  ].join(";");
650
- const work = mkdtempSync2(join2(tmpdir2(), "hf-diff-cells-"));
779
+ const work = mkdtempSync3(join3(tmpdir3(), "hf-diff-cells-"));
651
780
  const all = (text) => [...text.matchAll(/All:([\d.]+)/g)].map((m) => Number(m[1]));
652
781
  try {
653
782
  const maps = Array.from({ length: n }, (_, i) => ["-map", `[s${i}]`]).flat();
@@ -660,7 +789,7 @@ function ssimSeries(ref, yours, logPath) {
660
789
  const frame = all(text);
661
790
  const perCell = Array.from(
662
791
  { length: GRID * GRID },
663
- (_, i) => all(readFileSync2(join2(work, `cell${i}.log`), "utf8"))
792
+ (_, i) => all(readFileSync3(join3(work, `cell${i}.log`), "utf8"))
664
793
  );
665
794
  return { frame, cells: frame.map((_, f) => perCell.map((cell) => cell[f] ?? 1)) };
666
795
  } finally {
@@ -799,9 +928,9 @@ function cutReport(ref, yours, k0, fps) {
799
928
  };
800
929
  }
801
930
  async function captureProject(projectDir, times, opts, ref) {
802
- const { captureSnapshots } = await import("./snapshot-EVSKTVDG.js");
803
- const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
804
- const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
931
+ const { captureSnapshots } = await import("./snapshot-GI2GWIF6.js");
932
+ const shots = mkdtempSync3(join3(tmpdir3(), "hf-diff-shots-"));
933
+ const seq = mkdtempSync3(join3(tmpdir3(), "hf-diff-seq-"));
805
934
  try {
806
935
  const captured = await captureSnapshots(projectDir, {
807
936
  at: times,
@@ -818,7 +947,7 @@ async function captureProject(projectDir, times, opts, ref) {
818
947
  "run npx hyperframes check on the project, then diff again"
819
948
  );
820
949
  captured.paths.forEach(
821
- (p, i) => copyFileSync(resolve(projectDir, p), join2(seq, `${String(i).padStart(6, "0")}.png`))
950
+ (p, i) => copyFileSync(resolve(projectDir, p), join3(seq, `${String(i).padStart(6, "0")}.png`))
822
951
  );
823
952
  } catch (err) {
824
953
  rmSync2(seq, { recursive: true, force: true });
@@ -829,7 +958,7 @@ async function captureProject(projectDir, times, opts, ref) {
829
958
  return {
830
959
  dir: seq,
831
960
  clip: {
832
- input: ["-framerate", ref.fpsText, "-i", join2(seq, "%06d.png")],
961
+ input: ["-framerate", ref.fpsText, "-i", join3(seq, "%06d.png")],
833
962
  filters: [],
834
963
  width: ref.width,
835
964
  height: ref.height,
@@ -905,14 +1034,14 @@ function regeneratedSegment(s, head, ctx) {
905
1034
  };
906
1035
  if (s.end <= -ctx.offset)
907
1036
  return { ...head, pass: null, note: "yours starts after this segment at this offset" };
908
- const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref, void 0, ctx.offset);
1037
+ const moved2 = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref, void 0, ctx.offset);
909
1038
  const person = ctx.person.get(s);
910
- if (!person || person.pass === null) return { ...head, ...moved };
1039
+ if (!person || person.pass === null) return { ...head, ...moved2 };
911
1040
  return {
912
1041
  ...head,
913
1042
  pass: person.pass,
914
1043
  scored: "the person: framing, text carried in the generated clip, lip sync",
915
- person: { ...person, energy: moved.energy, look: moved.look }
1044
+ person: { ...person, energy: moved2.energy, look: moved2.look }
916
1045
  };
917
1046
  }
918
1047
  function lowestCell(mine, series, ks, ref) {
@@ -932,7 +1061,7 @@ function mixedVerdict(s, head, mine, series, ctx) {
932
1061
  const whole = s.pixels === "regenerated";
933
1062
  const roi = whole ? [0, 0, ctx.ref.width, ctx.ref.height] : regionRoi(s.regenerated, ctx.ref.width, ctx.ref.height);
934
1063
  const rest = whole ? [] : cellsOutside(roi, ctx.ref.width, ctx.ref.height);
935
- const moved = ctx.mode === "video" ? regeneratedVerdict(
1064
+ const moved2 = ctx.mode === "video" ? regeneratedVerdict(
936
1065
  s,
937
1066
  ctx.reference,
938
1067
  ctx.yours,
@@ -941,10 +1070,10 @@ function mixedVerdict(s, head, mine, series, ctx) {
941
1070
  ctx.offset
942
1071
  ) : void 0;
943
1072
  const gates = ctx.person.get(s);
944
- const person = gates || moved ? {
1073
+ const person = gates || moved2 ? {
945
1074
  ...gates ?? { gates: { framing: null, text: null, sync: null }, pass: null },
946
- energy: moved?.energy,
947
- look: moved?.look
1075
+ energy: moved2?.energy,
1076
+ look: moved2?.look
948
1077
  } : void 0;
949
1078
  const st = rest.length ? scores(
950
1079
  mine.map((i) => rest.reduce((sum, c2) => sum + series.cells[i][c2], 0) / rest.length),
@@ -1104,7 +1233,7 @@ function findLedger(yours, segmentsFile) {
1104
1233
  ...existsSync2(yours) && statSync(yours).isDirectory() ? [yours] : [],
1105
1234
  ...segmentsFile ? [dirname(segmentsFile)] : []
1106
1235
  ];
1107
- return dirs.flatMap((d) => [join2(d, ".media", "manifest.jsonl"), join2(d, "media-manifest.jsonl")]).find((f) => existsSync2(f));
1236
+ return dirs.flatMap((d) => [join3(d, ".media", "manifest.jsonl"), join3(d, "media-manifest.jsonl")]).find((f) => existsSync2(f));
1108
1237
  }
1109
1238
  function frameSpans(on, ks, fps) {
1110
1239
  const spans = [];
@@ -1196,12 +1325,12 @@ async function worstMoments(picks, ctx) {
1196
1325
  (y * (2 * cw + 4) + side * (cw + 4)) * 3
1197
1326
  )
1198
1327
  );
1199
- const cellPicture = writeImage(join2(ctx.outDir, `${tag}-cell.png`), pair, 2 * cw + 4, ch);
1328
+ const cellPicture = writeImage(join3(ctx.outDir, `${tag}-cell.png`), pair, 2 * cw + 4, ch);
1200
1329
  const [a, b] = [frameOf(ctx.refClip, i, sw, sh), frameOf(ctx.yours, i, sw, sh)];
1201
1330
  outline(a, sw, scaled);
1202
1331
  outline(b, sw, scaled);
1203
- images.push(writeImage(join2(ctx.outDir, `${tag}-original.png`), a, sw, sh));
1204
- images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
1332
+ images.push(writeImage(join3(ctx.outDir, `${tag}-original.png`), a, sw, sh));
1333
+ images.push(writeImage(join3(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
1205
1334
  labels.push(
1206
1335
  `original ${t}s`,
1207
1336
  `yours ${round(t + ctx.offset, 3)}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
@@ -1214,8 +1343,8 @@ async function worstMoments(picks, ctx) {
1214
1343
  });
1215
1344
  }
1216
1345
  if (!images.length) return { worst };
1217
- const { createContactSheet } = await import("./contactSheet-4YF7U6U7.js");
1218
- const sheet = await createContactSheet(images, join2(ctx.outDir, "worst.jpg"), {
1346
+ const { createContactSheet } = await import("./contactSheet-7SPGUTDV.js");
1347
+ const sheet = await createContactSheet(images, join3(ctx.outDir, "worst.jpg"), {
1219
1348
  cols: 2,
1220
1349
  maxImages: images.length,
1221
1350
  cellWidth: 640,
@@ -1292,7 +1421,7 @@ function rateWarning(ref, rate) {
1292
1421
  }
1293
1422
  function projectRate(dir) {
1294
1423
  const parsed = parseFps(
1295
- readCompositionFps(readFileSync2(join2(dir, "index.html"), "utf8")) ?? "30"
1424
+ readCompositionFps(readFileSync3(join3(dir, "index.html"), "utf8")) ?? "30"
1296
1425
  );
1297
1426
  return parsed.ok ? fpsToNumber(parsed.value) : 30;
1298
1427
  }
@@ -1305,13 +1434,18 @@ async function diffVideos(options) {
1305
1434
  "the original's frame rate varies, so frame times drift: npx hyperframes measure probe makes a constant-rate copy"
1306
1435
  );
1307
1436
  const mode = existsSync2(opts.yours) && statSync(opts.yours).isDirectory() ? "project" : "video";
1308
- if (mode === "project" && !existsSync2(join2(opts.yours, "index.html")))
1437
+ if (mode === "project" && !existsSync2(join3(opts.yours, "index.html")))
1309
1438
  throw new Fix(`${opts.yours} has no index.html`, "pass a project folder or a rendered video");
1310
1439
  if (mode === "project" && !opts.at && !opts.range && opts.segments?.length)
1311
1440
  opts.range = [
1312
1441
  Math.min(...opts.segments.map((s) => s.start)),
1313
1442
  Math.max(...opts.segments.map((s) => s.end))
1314
1443
  ];
1444
+ if (opts.hide !== void 0 && mode !== "project")
1445
+ throw new Fix(
1446
+ "--hide needs a project folder to capture without the layer",
1447
+ "pass the project folder as yours"
1448
+ );
1315
1449
  if (mode === "project" && !opts.at && !opts.range)
1316
1450
  throw new Fix(
1317
1451
  "a project folder is compared at chosen times, not whole",
@@ -1344,9 +1478,21 @@ async function diffVideos(options) {
1344
1478
  const refClip = { ...videoClip(opts.reference, 0, void 0, ref), filters: select };
1345
1479
  let yours;
1346
1480
  let seqDir;
1481
+ let without;
1347
1482
  if (mode === "project") {
1348
- const captured = await captureProject(opts.yours, captureTimes(ks, ref.fps, offset), opts, ref);
1483
+ const times = captureTimes(ks, ref.fps, offset);
1484
+ const captured = await captureProject(opts.yours, times, opts, ref);
1349
1485
  [yours, seqDir] = [captured.clip, captured.dir];
1486
+ if (opts.hide !== void 0) {
1487
+ const copy = hiddenCopy(opts.yours, opts.hide);
1488
+ try {
1489
+ without = { ...await captureProject(copy, times, opts, ref), copy };
1490
+ } catch (err) {
1491
+ rmSync2(copy, { recursive: true, force: true });
1492
+ rmSync2(seqDir, { recursive: true, force: true });
1493
+ throw err;
1494
+ }
1495
+ }
1350
1496
  } else {
1351
1497
  yours = {
1352
1498
  ...videoClip(opts.yours, 0, void 0, yoursInfo),
@@ -1357,9 +1503,9 @@ async function diffVideos(options) {
1357
1503
  if (offRate) warnings.push(offRate);
1358
1504
  try {
1359
1505
  mkdirSync(opts.outDir, { recursive: true });
1360
- for (const f of readdirSync(opts.outDir))
1361
- if (/^worst-/.test(f)) rmSync2(join2(opts.outDir, f), { force: true });
1362
- const logPath = join2(opts.outDir, "ssim.log");
1506
+ for (const f of readdirSync2(opts.outDir))
1507
+ if (/^worst-/.test(f)) rmSync2(join3(opts.outDir, f), { force: true });
1508
+ const logPath = join3(opts.outDir, "ssim.log");
1363
1509
  const series = ssimSeries(refClip, yours, logPath);
1364
1510
  if (!series.frame.length)
1365
1511
  throw new Fix("ffmpeg compared no frames", "check both videos play and overlap in time");
@@ -1367,7 +1513,7 @@ async function diffVideos(options) {
1367
1513
  warnings.push(`yours ends early: ${series.frame.length} of ${ks.length} frames compared`);
1368
1514
  const worstCell = series.cells.map((cells) => Math.min(...cells));
1369
1515
  replaceFileAtomically(
1370
- join2(opts.outDir, "frames.tsv"),
1516
+ join3(opts.outDir, "frames.tsv"),
1371
1517
  [
1372
1518
  "t frame ssim worst_cell cell",
1373
1519
  ...series.frame.map((v, i) => {
@@ -1427,7 +1573,7 @@ async function diffVideos(options) {
1427
1573
  ...lengths,
1428
1574
  pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
1429
1575
  } : void 0;
1430
- const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
1576
+ const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync3(opts.ledger, "utf8") : void 0;
1431
1577
  const people = /* @__PURE__ */ new Map();
1432
1578
  let clips = [];
1433
1579
  const regenerated = opts.segments?.some((s) => s.regenerated || s.pixels === "regenerated");
@@ -1481,6 +1627,27 @@ async function diffVideos(options) {
1481
1627
  ref,
1482
1628
  series.frame.length
1483
1629
  ) : void 0;
1630
+ const layer = without && layerVerdict(
1631
+ opts.hide,
1632
+ series.frame.map(
1633
+ (_, i) => scoreLayerFrame(
1634
+ round(ks[i] / ref.fps, 3),
1635
+ ...[refClip, yours, without.clip].map(
1636
+ (clip) => frameOf(clip, i, ref.width, ref.height)
1637
+ ),
1638
+ ref.width,
1639
+ ref.height
1640
+ )
1641
+ )
1642
+ );
1643
+ if (layer?.worse.length)
1644
+ warnings.push(
1645
+ `${opts.hide} is further from the original than leaving it out at ${layer.worse.map((t2) => `${t2} s`).join(", ")}`
1646
+ );
1647
+ if (layer?.redundant.length)
1648
+ warnings.push(
1649
+ `the backdrop already shows what ${opts.hide} draws at ${layer.redundant.map((t2) => `${t2} s`).join(", ")}: not scored`
1650
+ );
1484
1651
  const ledger = ledgerText ? wholeFrameCuts(ledgerText, ref.width, ref.height) : void 0;
1485
1652
  const reuse = ledger && (ledger.windows.length || ledger.stills.length) ? wholeFrameReuse(
1486
1653
  ledger,
@@ -1505,7 +1672,7 @@ async function diffVideos(options) {
1505
1672
  `${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
1506
1673
  );
1507
1674
  const sound = whole ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
1508
- const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4"), offset) : void 0;
1675
+ const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join3(opts.outDir, "sbs.mp4"), offset) : void 0;
1509
1676
  const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
1510
1677
  const top = segments ? headline(
1511
1678
  segments,
@@ -1531,20 +1698,23 @@ async function diffVideos(options) {
1531
1698
  ...top ? top : {},
1532
1699
  ...segments ? { segments } : {},
1533
1700
  ...elements ? { drawn: elements } : {},
1701
+ ...layer ? { layer } : {},
1534
1702
  ...sheet ? { sheet } : {},
1535
1703
  ...sbs ? { sbs } : {},
1536
1704
  log: logPath,
1537
- frames: join2(opts.outDir, "frames.tsv"),
1705
+ frames: join3(opts.outDir, "frames.tsv"),
1538
1706
  ...options.offset === void 0 ? {} : { offset: options.offset },
1539
1707
  warnings
1540
1708
  };
1541
1709
  } finally {
1542
1710
  if (seqDir) rmSync2(seqDir, { recursive: true, force: true });
1711
+ if (without)
1712
+ for (const dir of [without.dir, without.copy]) rmSync2(dir, { recursive: true, force: true });
1543
1713
  }
1544
1714
  }
1545
1715
 
1546
1716
  // src/measure/segments.ts
1547
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
1717
+ import { existsSync as existsSync3, readFileSync as readFileSync4 } from "fs";
1548
1718
  var HEADING = /^##\s+(S\d+)\s*[·|-]\s*(\d+(?:\.\d+)?)\s*[–—-]\s*(\d+(?:\.\d+)?)\s*s\b\s*(?:[·|-]\s*(.*))?$/gm;
1549
1719
  var SOURCES = ["rebuilt", "reused", "regenerated"];
1550
1720
  var PIXELS = /^Pixels:\s*(rebuilt|reused|regenerated)\b/im;
@@ -1589,7 +1759,7 @@ function parseSegments(markdown) {
1589
1759
  function readSegments(path) {
1590
1760
  if (!existsSync3(path))
1591
1761
  throw new Fix(`no segments file at ${path}`, "pass a file of `## S01 \xB7 a\u2013b s` segments");
1592
- const segments = parseSegments(readFileSync3(path, "utf8"));
1762
+ const segments = parseSegments(readFileSync4(path, "utf8"));
1593
1763
  if (!segments.length)
1594
1764
  throw new Fix(
1595
1765
  `${path} has no "## S01 \xB7 0.00\u20132.40 s \xB7 title" segment headings`,
@@ -1616,6 +1786,10 @@ var examples = [
1616
1786
  "Score one drawn element (a title's box) by itself at chosen moments of a project",
1617
1787
  "hyperframes diff original.mp4 . --at 1,1.5,2 --drawn 120,670,485,115"
1618
1788
  ],
1789
+ [
1790
+ "Score a project's captions by what they add: captured with and without them, with where to move each",
1791
+ 'hyperframes diff original.mp4 . --at 1,2.5,4 --hide ".cap"'
1792
+ ],
1619
1793
  [
1620
1794
  "Judge each segment of the final render and write a side-by-side",
1621
1795
  "hyperframes diff original.mp4 renders/final.mp4 --segments segments.md --sbs"
@@ -1641,8 +1815,8 @@ function personLine(p) {
1641
1815
  ...(p.text ?? []).filter((t) => t.carried).map((t) => `${t.clip} carries ${t.drawn}'s text`),
1642
1816
  ...(p.sync ?? []).filter((x) => x.pass === false).map((x) => `lips ${x.lag_ms} ms off at ${x.window[0]} s`)
1643
1817
  ];
1644
- const moved = p.energy ? `, motion \xD7${p.energy.mean_ratio} (reported)` : "";
1645
- return `person ${p.pass === null ? "\u2014" : p.pass ? "\u2713" : "\u2717"}${off.length ? ` ${off.join("; ")}` : ""}${moved}`;
1818
+ const moved2 = p.energy ? `, motion \xD7${p.energy.mean_ratio} (reported)` : "";
1819
+ return `person ${p.pass === null ? "\u2014" : p.pass ? "\u2713" : "\u2717"}${off.length ? ` ${off.join("; ")}` : ""}${moved2}`;
1646
1820
  }
1647
1821
  function printHuman(r) {
1648
1822
  const mark = r.pass ? c.success("\u2713 pass") : c.error("\u2717 fail");
@@ -1706,6 +1880,15 @@ function printHuman(r) {
1706
1880
  ` ${state} ${d.id} ${d.box.join(",")} ${d.window[0]}\u2013${d.window[1]} s: ${detail}`
1707
1881
  );
1708
1882
  }
1883
+ if (r.layer)
1884
+ console.log(
1885
+ ` layer ${r.layer.selector}: benefit median ${r.layer.benefit_median ?? "\u2014"} (1 matches the original, 0 is no better than without it)`
1886
+ );
1887
+ for (const f of r.layer?.frames ?? []) {
1888
+ const state = f.benefit === void 0 || f.benefit === null ? c.dim("\u2014") : f.benefit >= 0 ? c.success("\u2713") : c.error("\u2717");
1889
+ const detail = f.benefit === void 0 ? "the layer draws nothing here" : f.benefit === null ? f.note : `benefit ${f.benefit}, ${f.instruction} (box ${f.bbox.join(",")})`;
1890
+ console.log(` ${state} ${f.t} s: ${detail}`);
1891
+ }
1709
1892
  for (const w of r.warnings) console.log(` ${c.warn("\u26A0")} ${w}`);
1710
1893
  if (r.sheet) console.log(` sheet ${r.sheet}`);
1711
1894
  if (r.sbs) console.log(` side by side ${r.sbs}`);
@@ -1767,6 +1950,10 @@ var diff_default = defineCommand({
1767
1950
  type: "string",
1768
1951
  description: "A drawn element's box x,y,w,h in the original's pixels, optionally its seconds a-b (repeatable): scored by itself whatever is behind it, with its offset and ink (yours over the original's: under 1 is lighter, thinner or smaller)"
1769
1952
  },
1953
+ hide: {
1954
+ type: "string",
1955
+ description: 'A CSS selector for one layer of a project (".cap"): captured with and without it, each moment scores what the layer adds (benefit, 1 matches the original, under 0 is worse than without it) and where to move or resize it'
1956
+ },
1770
1957
  json: { type: "boolean", description: "Print one JSON result", default: false }
1771
1958
  },
1772
1959
  // fallow-ignore-next-line complexity
@@ -1794,6 +1981,7 @@ var diff_default = defineCommand({
1794
1981
  project: args.project === void 0 ? void 0 : resolve2(String(args.project)),
1795
1982
  drawn: repeated(rawArgs, "--drawn").map(parseDrawn),
1796
1983
  offset: args.offset === void 0 ? void 0 : parseOffset(args.offset),
1984
+ hide: args.hide === void 0 ? void 0 : String(args.hide),
1797
1985
  thresholds: {
1798
1986
  mean: number(args["min-mean"], "--min-mean"),
1799
1987
  p05: number(args["min-p05"], "--min-p05"),
@@ -1801,7 +1989,7 @@ var diff_default = defineCommand({
1801
1989
  },
1802
1990
  worst: number(args.worst, "--worst"),
1803
1991
  sbs: args.sbs === true,
1804
- outDir: outDir(args.out, join3("diff", stem)),
1992
+ outDir: outDir(args.out, join4("diff", stem)),
1805
1993
  timeoutMs: number(args.timeout, "--timeout"),
1806
1994
  log: (message) => console.error(message)
1807
1995
  });