hyperframes 0.9.8 → 0.9.10

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 (245) hide show
  1. package/dist/{add-KCOZUTMS.js → add-AFD3HNXB.js} +12 -12
  2. package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
  3. package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
  4. package/dist/api.js +29 -29
  5. package/dist/{asset-N3A7GB3E.js → asset-P6SF46UX.js} +2 -2
  6. package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
  7. package/dist/{audio-KCKNENFH.js → audio-DFQXEAEE.js} +26 -26
  8. package/dist/{auth-Y72WHJCW.js → auth-T62ANGDQ.js} +2 -2
  9. package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-3IT56KGL.js} +23 -16
  10. package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-UKBVUYML.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
  13. package/dist/{beats-RIKKG4N7.js → beats-7UFMDXBY.js} +11 -11
  14. package/dist/{benchmark-7TCK3SGH.js → benchmark-LCSHBJJF.js} +9 -9
  15. package/dist/billing-5YSYJJ2V.js +142 -0
  16. package/dist/{browser-4BF7NKPF.js → browser-5DZHA4EW.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-TJL2JWRD.js} +2 -2
  18. package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
  19. package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
  20. package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
  21. package/dist/{catalog-4W5XDIKM.js → catalog-F2XB4VPP.js} +12 -12
  22. package/dist/{catch-up-H2Y2WRIA.js → catch-up-HCBA3MIP.js} +4 -4
  23. package/dist/{check-NG6FULCN.js → check-E2RQCELF.js} +44 -44
  24. package/dist/{checkAudio-HI5ICPRV.js → checkAudio-R4DRK3VG.js} +17 -17
  25. package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-NGY225IO.js} +39 -37
  26. package/dist/{chunk-4WJKSTDS.js → chunk-2CKL2FUJ.js} +3 -3
  27. package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
  28. package/dist/{chunk-RPVL65M7.js → chunk-2WNIF4YT.js} +6 -6
  29. package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
  30. package/dist/{chunk-2MUWGYXQ.js → chunk-3XHWHH5A.js} +60 -44
  31. package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
  32. package/dist/{chunk-5D23BECZ.js → chunk-5CDTGHED.js} +1 -1
  33. package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
  34. package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
  35. package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
  36. package/dist/{chunk-WY4J37EZ.js → chunk-6VKYITOR.js} +30 -8
  37. package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
  38. package/dist/{chunk-YXIXTFRO.js → chunk-7VGM5TLZ.js} +2 -2
  39. package/dist/{chunk-TLBSOI2R.js → chunk-7VOLQUA2.js} +1 -1
  40. package/dist/{chunk-RULCW25D.js → chunk-7VU4RBHC.js} +15 -14
  41. package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
  42. package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
  43. package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
  44. package/dist/chunk-AHLDGEH5.js +158 -0
  45. package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
  46. package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
  47. package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
  48. package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
  49. package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
  50. package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
  51. package/dist/{chunk-6CEQCL6O.js → chunk-CBTBVRXB.js} +3 -3
  52. package/dist/{chunk-ZAOQWCZM.js → chunk-CDSTLOB7.js} +9 -9
  53. package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
  54. package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
  55. package/dist/{chunk-GZZE2OJP.js → chunk-DKROJ3GJ.js} +16 -15
  56. package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
  57. package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
  58. package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
  59. package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
  60. package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
  61. package/dist/{chunk-UUW654GD.js → chunk-GRUI2S2F.js} +2 -2
  62. package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
  63. package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
  64. package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
  65. package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
  66. package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
  67. package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
  68. package/dist/{chunk-HVBQL3PZ.js → chunk-MHZ7NSL5.js} +1 -1
  69. package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
  70. package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
  71. package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
  72. package/dist/{chunk-Y3RERZRQ.js → chunk-NBWYATVA.js} +1 -1
  73. package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
  74. package/dist/{chunk-UQDO2L6F.js → chunk-NVYVI4FR.js} +17 -14
  75. package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
  76. package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
  77. package/dist/{chunk-TODLF56D.js → chunk-P4WYY52Y.js} +1 -1
  78. package/dist/{chunk-3LLFF6EE.js → chunk-PO7LSMN5.js} +1 -1
  79. package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
  80. package/dist/{chunk-L3ZVUQGN.js → chunk-PYUS627M.js} +2 -2
  81. package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
  82. package/dist/{chunk-VKWAW4JW.js → chunk-Q3W7TDQX.js} +236 -193
  83. package/dist/{chunk-UPN4UMT7.js → chunk-QBPZHOEJ.js} +2 -2
  84. package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
  85. package/dist/{chunk-VLHCR3G2.js → chunk-QPEDM2ZR.js} +2 -2
  86. package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
  87. package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
  88. package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
  89. package/dist/{chunk-ZJ5ZLU2I.js → chunk-RZFW7FBA.js} +2 -2
  90. package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
  91. package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
  92. package/dist/chunk-SRVAYGTN.js +62 -0
  93. package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
  94. package/dist/{chunk-W5VDIXYL.js → chunk-UDBNPVUR.js} +1 -1
  95. package/dist/{chunk-HFNB2CG3.js → chunk-V6HV2IDT.js} +6 -3
  96. package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
  97. package/dist/{chunk-SBA4NG7Q.js → chunk-W4Q6VYPZ.js} +7 -7
  98. package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
  99. package/dist/{chunk-CCFSUSAE.js → chunk-WCETVN3N.js} +65 -14
  100. package/dist/{chunk-QTEU6NL3.js → chunk-WP5QHNXN.js} +5 -5
  101. package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
  102. package/dist/{chunk-X422IJKF.js → chunk-WWPOGMNX.js} +1 -1
  103. package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
  104. package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
  105. package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
  106. package/dist/chunk-Y3ICFPFK.js +5035 -0
  107. package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
  108. package/dist/{chunk-AC3TSGGG.js → chunk-YXSM33UC.js} +35 -30
  109. package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
  110. package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
  111. package/dist/{chunk-ZK3GFNHM.js → chunk-ZMXFRRQR.js} +191 -49
  112. package/dist/{clean-VPOP4TU4.js → clean-BXHJEVVO.js} +23 -23
  113. package/dist/cli.js +61 -60
  114. package/dist/{cloud-Q7ZXCZ6E.js → cloud-ISWLTHGP.js} +4 -4
  115. package/dist/cloud-Z3FNCC4T.js +39 -0
  116. package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
  117. package/dist/{compare-X5SWN5XJ.js → compare-MLZYDSZD.js} +34 -34
  118. package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
  119. package/dist/{component-MJXAMRKF.js → component-MMBTCMY3.js} +3 -3
  120. package/dist/{compositions-F3ZHG5F4.js → compositions-WT2577NJ.js} +15 -15
  121. package/dist/{curve-4TWENQO7.js → curve-HHKVZ6LX.js} +13 -13
  122. package/dist/{cuts-X3LE5A2K.js → cuts-66GBRT5P.js} +14 -14
  123. package/dist/{delete-MYHKF3MS.js → delete-P3WYOC7I.js} +7 -5
  124. package/dist/{deploy-OP2BHWCQ.js → deploy-OJ3M7QJQ.js} +6 -6
  125. package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
  126. package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
  127. package/dist/{diff-7ZNSFBKV.js → diff-R74KQXXN.js} +158 -76
  128. package/dist/dist-CCPYPKOC.js +197 -0
  129. package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
  130. package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
  131. package/dist/{doctor-ABSXYNXY.js → doctor-DT52W4UE.js} +13 -13
  132. package/dist/{energy-X2OAWHME.js → energy-WOMDOOLC.js} +14 -14
  133. package/dist/{events-26SWSHDR.js → events-PCK4AIN5.js} +2 -2
  134. package/dist/{events-JFIZSYMH.js → events-WEVZ2ELP.js} +16 -16
  135. package/dist/{events-4MDK4K7Q.js → events-YVQJLQWG.js} +3 -3
  136. package/dist/{extract-4O3Q3LOD.js → extract-CNXA3DWB.js} +14 -14
  137. package/dist/{face-7J7AQJDY.js → face-2WNBW74C.js} +14 -14
  138. package/dist/{feedback-CVTJDQIX.js → feedback-ADMM2XDS.js} +8 -8
  139. package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
  140. package/dist/{figma-55J7UDDC.js → figma-5MMN5JUU.js} +3 -3
  141. package/dist/fontLocalizeCli.js +15 -15
  142. package/dist/{frames-OZLUDUOS.js → frames-7CQGHRWT.js} +19 -16
  143. package/dist/{generate-CY2TRPRE.js → generate-XOR4UJDW.js} +20 -18
  144. package/dist/{get-HJHSVKGK.js → get-5K6ALHBS.js} +7 -5
  145. package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
  146. package/dist/{grade-compare-JVTYF2T6.js → grade-compare-DK63C776.js} +34 -34
  147. package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
  148. package/dist/{help-6WDI76YU.js → help-AUF2KA6D.js} +2 -1
  149. package/dist/{history-FIP5NGFC.js → history-G3FXVX4A.js} +10 -10
  150. package/dist/hyperframe.manifest.json +1 -1
  151. package/dist/hyperframe.runtime.iife.js +65 -65
  152. package/dist/hyperframes-player.global.js +1 -1
  153. package/dist/{info-WTGJE4QB.js → info-DGU3CIU5.js} +8 -8
  154. package/dist/{init-UYTDM56U.js → init-LYZI2WCS.js} +29 -29
  155. package/dist/{ink-BTLAE3ZR.js → ink-DYZG4BST.js} +14 -14
  156. package/dist/{inspect-KIMJNTS4.js → inspect-BYQSCRKT.js} +34 -34
  157. package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
  158. package/dist/{keyframes-74LK522L.js → keyframes-XX2DIYPI.js} +6 -6
  159. package/dist/{lambda-CJ7P5NLO.js → lambda-RKI7KKWW.js} +15 -15
  160. package/dist/{layout-RLIXTM56.js → layout-RQFOMQRO.js} +34 -34
  161. package/dist/{lint-IOJB746U.js → lint-LFCMCDEG.js} +10 -10
  162. package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
  163. package/dist/{list-V3TMQEQV.js → list-V4TGMQ3Y.js} +7 -5
  164. package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
  165. package/dist/{login-GNVKQO3W.js → login-EXCG7PEH.js} +4 -4
  166. package/dist/{look-3QZIJFNX.js → look-RBHKHGMF.js} +14 -14
  167. package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
  168. package/dist/{measure-7LUYTL2E.js → measure-SAV5K4WT.js} +11 -11
  169. package/dist/{media-treatment-MYDIYP5I.js → media-treatment-2BVHRXJS.js} +15 -15
  170. package/dist/{media-use-UDBHEIYA.js → media-use-YEBYLITF.js} +17 -11
  171. package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
  172. package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
  173. package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-ILLUZPTO.js} +10 -10
  174. package/dist/{open-UEJMPEPN.js → open-GTNLU7UF.js} +12 -12
  175. package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
  176. package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
  177. package/dist/{play-XH2XKNCL.js → play-F2HIXJKH.js} +25 -25
  178. package/dist/{preflight-L5P4QXXH.js → preflight-QMXCKE5P.js} +10 -10
  179. package/dist/{present-XXEU7RTN.js → present-GDR6LCKE.js} +20 -20
  180. package/dist/{preview-V6LNVTBH.js → preview-4TV5426Q.js} +23 -23
  181. package/dist/{probe-JL4JSTSP.js → probe-TYM7WKX2.js} +14 -14
  182. package/dist/{producer-RLZ64COI.js → producer-NHQXKH7Y.js} +1 -1
  183. package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
  184. package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
  185. package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
  186. package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
  187. package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
  188. package/dist/{render-WCLJ4GPZ.js → render-GEAO2HAV.js} +39 -37
  189. package/dist/{render-XAE2YCRZ.js → render-YLAS7GVD.js} +46 -46
  190. package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
  191. package/dist/renderSetupWorker.js +4 -4
  192. package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
  193. package/dist/{reverse-JGOZUFKK.js → reverse-3KAZZXB2.js} +1 -1
  194. package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
  195. package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
  196. package/dist/skills/media-use/SKILL.md +2 -2
  197. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
  198. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
  199. package/dist/skills/media-use/references/heygen.md +18 -10
  200. package/dist/skills/media-use/references/operations.md +14 -13
  201. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
  202. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
  203. package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
  204. package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
  205. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  206. package/dist/skills/media-use/scripts/resolve.mjs +3 -1
  207. package/dist/{skills-L4AWBUJJ.js → skills-T5XCP3RC.js} +43 -18
  208. package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-IG7KLWIA.js} +3 -3
  209. package/dist/{snapshot-5FK3HCJ7.js → snapshot-RULSIRM6.js} +49 -46
  210. package/dist/{src-JT324RDD.js → src-DHBRQZFZ.js} +18 -18
  211. package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
  212. package/dist/{start-5O33EGN2.js → start-GF3JCTGF.js} +43 -31
  213. package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
  214. package/dist/{status-MPCREDMQ.js → status-SUK4I7TS.js} +8 -5
  215. package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-BcELSci_.js} +1 -1
  216. package/dist/studio/assets/{index-BT1zmedz.js → index-2SLNyxZG.js} +1 -1
  217. package/dist/studio/assets/{index-CaOrmH_8.js → index-DR2eua-L.js} +126 -126
  218. package/dist/studio/index.html +1 -1
  219. package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
  220. package/dist/{studioServer-KKGBELBR.js → studioServer-DOTRPHS3.js} +61 -61
  221. package/dist/{sync-BT4WDK3B.js → sync-XQPBXGGX.js} +19 -16
  222. package/dist/{telemetry-77PW2F7B.js → telemetry-7TIIOBVB.js} +3 -3
  223. package/dist/templates/_shared/AGENTS.md +1 -0
  224. package/dist/templates/_shared/CLAUDE.md +1 -0
  225. package/dist/templates-7DIQ52Y4.js +202 -0
  226. package/dist/{timeline-RKJ63VIU.js → timeline-4JIUAUIP.js} +24 -24
  227. package/dist/{tokens-JATS65YH.js → tokens-4PQU4LVQ.js} +2 -2
  228. package/dist/{transcribe-FYBJBBP3.js → transcribe-IKUPC2R3.js} +23 -23
  229. package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
  230. package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
  231. package/dist/{updateCheck-NU374MVC.js → updateCheck-LBPTWEZV.js} +2 -2
  232. package/dist/{upgrade-VIWR25J6.js → upgrade-2FS4AMCA.js} +2 -2
  233. package/dist/upload-L5TSWWIU.js +16 -0
  234. package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
  235. package/dist/{validate-3HM2XCH4.js → validate-MLVDUEK7.js} +28 -28
  236. package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
  237. package/dist/warmCheck.js +44 -44
  238. package/package.json +1 -1
  239. package/dist/billing-JBG45ON2.js +0 -96
  240. package/dist/chunk-N3CZ437C.js +0 -5035
  241. package/dist/chunk-QXVW22VM.js +0 -58
  242. package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
  243. package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
  244. package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
  245. package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
@@ -4,42 +4,42 @@ 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
+ avSync
9
+ } from "./chunk-Q3IT7I2K.js";
7
10
  import {
8
11
  compareEnergy,
9
12
  energyCurve
10
- } from "./chunk-WF4TXIXY.js";
13
+ } from "./chunk-3DWH6Z5U.js";
11
14
  import {
12
15
  contrast,
13
16
  drawnFrames,
14
17
  drawnVerdict,
15
18
  readDrawn,
16
19
  scoreDrawnFrame
17
- } from "./chunk-E2SVAOS6.js";
20
+ } from "./chunk-OAFGA2FR.js";
18
21
  import {
19
22
  compareLook,
20
23
  look,
21
24
  sameLook
22
- } from "./chunk-ECJCBLME.js";
25
+ } from "./chunk-N74N2I2K.js";
23
26
  import {
24
27
  faceBoxes
25
- } from "./chunk-NU5LJYAT.js";
26
- import {
27
- avSync
28
- } from "./chunk-DT6NGXSS.js";
28
+ } from "./chunk-CUYVIDGF.js";
29
29
  import {
30
30
  parseMask,
31
31
  repeated
32
- } from "./chunk-ZK3GFNHM.js";
32
+ } from "./chunk-ZMXFRRQR.js";
33
33
  import {
34
34
  classifiedCuts,
35
35
  confirmsCut,
36
36
  frameChanges,
37
37
  signatures
38
- } from "./chunk-THSTFHB7.js";
39
- import "./chunk-UUW654GD.js";
38
+ } from "./chunk-7RM3TB62.js";
39
+ import "./chunk-GRUI2S2F.js";
40
40
  import "./chunk-NO6F7CLR.js";
41
- import "./chunk-GZZE2OJP.js";
42
- import "./chunk-QXVW22VM.js";
41
+ import "./chunk-DKROJ3GJ.js";
42
+ import "./chunk-AHLDGEH5.js";
43
43
  import {
44
44
  Fix,
45
45
  decode,
@@ -52,17 +52,20 @@ import {
52
52
  probeVideo,
53
53
  round,
54
54
  runFfmpeg,
55
+ sumOf,
55
56
  videoClip,
56
57
  writeImage
57
- } from "./chunk-D7THUO4V.js";
58
- import "./chunk-3XJM7XZN.js";
58
+ } from "./chunk-A33GFLPY.js";
59
59
  import "./chunk-TSQZ3DSC.js";
60
+ import "./chunk-3XJM7XZN.js";
60
61
  import "./chunk-ETYQYG6Q.js";
62
+ import "./chunk-5UT3R43E.js";
63
+ import "./chunk-6BEFEWFB.js";
61
64
  import "./chunk-RZ6CXJ56.js";
62
- import "./chunk-FNNNGI42.js";
65
+ import "./chunk-AVNF52HR.js";
63
66
  import {
64
67
  readCompositionFps
65
- } from "./chunk-SACHIPZP.js";
68
+ } from "./chunk-LR5NVYZT.js";
66
69
  import "./chunk-A4ZTSQLW.js";
67
70
  import "./chunk-BVAPHHMQ.js";
68
71
  import {
@@ -72,18 +75,18 @@ import "./chunk-S3S4TGEH.js";
72
75
  import {
73
76
  c
74
77
  } from "./chunk-2GICKZ3I.js";
75
- import "./chunk-NUFOXUDF.js";
78
+ import "./chunk-N6FGHJ7X.js";
76
79
  import "./chunk-Z5J67X44.js";
77
80
  import "./chunk-5S7W3TUO.js";
78
81
  import "./chunk-D3MUHMFG.js";
79
- import "./chunk-4MDLXE3N.js";
82
+ import "./chunk-PPMCILED.js";
80
83
  import "./chunk-YWRUQ7XZ.js";
81
84
  import {
82
85
  fpsToNumber,
83
86
  parseFps
84
- } from "./chunk-6ZICZOMN.js";
87
+ } from "./chunk-W5AUD5OL.js";
85
88
  import "./chunk-MEJH7VEA.js";
86
- import "./chunk-N3CZ437C.js";
89
+ import "./chunk-Y3ICFPFK.js";
87
90
  import "./chunk-VC76R6W2.js";
88
91
  import "./chunk-OFQWTKPW.js";
89
92
  import "./chunk-RQVDTPGD.js";
@@ -94,12 +97,12 @@ import "./chunk-X6JUUQCM.js";
94
97
  import "./chunk-KGPLIH7B.js";
95
98
  import "./chunk-K4MJX7SR.js";
96
99
  import "./chunk-WE42NVH7.js";
97
- import "./chunk-BGMMC352.js";
98
- import "./chunk-HYRPH6LL.js";
99
- import "./chunk-WVRAFHJU.js";
100
+ import "./chunk-XX77LLFJ.js";
100
101
  import "./chunk-CZGHFATT.js";
102
+ import "./chunk-WVRAFHJU.js";
103
+ import "./chunk-HYRPH6LL.js";
101
104
  import "./chunk-C2KEGBR3.js";
102
- import "./chunk-T5ELONXY.js";
105
+ import "./chunk-JHILL4BN.js";
103
106
  import "./chunk-FR7YBU3H.js";
104
107
  import "./chunk-DPVXBVLL.js";
105
108
  import "./chunk-GWTIFRF5.js";
@@ -110,7 +113,7 @@ import "./chunk-FBN2M2HK.js";
110
113
  import "./chunk-766MOTIZ.js";
111
114
  import {
112
115
  withMeta
113
- } from "./chunk-Y3RERZRQ.js";
116
+ } from "./chunk-NBWYATVA.js";
114
117
  import "./chunk-BR2JQQC5.js";
115
118
  import "./chunk-BLBMPEBX.js";
116
119
  import "./chunk-ISN5GRYI.js";
@@ -122,7 +125,7 @@ import {
122
125
  } from "./chunk-66W5IWLO.js";
123
126
  import "./chunk-J3RXEDR2.js";
124
127
  import "./chunk-QBXDU24O.js";
125
- import "./chunk-YXIXTFRO.js";
128
+ import "./chunk-7VGM5TLZ.js";
126
129
  import {
127
130
  normalizeErrorMessage
128
131
  } from "./chunk-E63BDV4Z.js";
@@ -272,7 +275,7 @@ async function clipUses(project) {
272
275
  if (!existsSync(index)) return out;
273
276
  const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
274
277
  import("./dom-VFHEO7VM.js"),
275
- import("./describeProject-ZMKVHAYX.js")
278
+ import("./describeProject-DN6YQU3X.js")
276
279
  ]);
277
280
  ensureDOMParser();
278
281
  const timeline = await describeProject(index);
@@ -295,7 +298,7 @@ function boxAt(info, times, box, w, h) {
295
298
  const work = mkdtempSync(join(tmpdir(), "hf-person-"));
296
299
  try {
297
300
  const filters = [
298
- `select=${unique.map((k) => `eq(n\\,${k})`).join("+")}`,
301
+ `select=${sumOf(unique.map((k) => `eq(n\\,${k})`))}`,
299
302
  `scale=${w}:${h}:force_original_aspect_ratio=increase:flags=bicubic`,
300
303
  `crop=${w}:${h}`,
301
304
  `crop=${box[2]}:${box[3]}:${box[0]}:${box[1]}`,
@@ -568,7 +571,36 @@ function selectFilter(pick, fpsText) {
568
571
  const pts = `setpts=N/(${fpsText})/TB`;
569
572
  if (pick.kind === "all") return [];
570
573
  if (pick.kind === "range") return [`select=between(n\\,${pick.k0}\\,${pick.k1 - 1})`, pts];
571
- return [`select=${pick.ks.map((k) => `eq(n\\,${k})`).join("+")}`, pts];
574
+ return [`select=${sumOf(pick.ks.map((k) => `eq(n\\,${k})`))}`, pts];
575
+ }
576
+ function yoursFilters(pick, fpsText, offset = 0) {
577
+ const rate = offset ? `fps=${fpsText}:start_time=${offset}` : `fps=${fpsText}`;
578
+ const select = selectFilter(pick, fpsText);
579
+ return [rate, ...offset && !select.length ? [`setpts=N/(${fpsText})/TB`] : select];
580
+ }
581
+ function overlapFrames(frames, fps, offset, yoursFrames) {
582
+ const shift = offset * fps;
583
+ const first = Math.min(frames, Math.max(0, Math.ceil(-shift - 1e-6)));
584
+ const end = yoursFrames === void 0 ? frames : Math.min(frames, Math.floor(yoursFrames - 1 - shift + 1e-6) + 1);
585
+ return [first, Math.max(first, end)];
586
+ }
587
+ function clipPick(pick, total, [first, end]) {
588
+ if (pick.kind === "at") return { kind: "at", ks: pick.ks.filter((k) => k >= first && k < end) };
589
+ if (pick.kind === "all" && first <= 0 && end >= total) return pick;
590
+ const [k0, k1] = pick.kind === "range" ? [pick.k0, pick.k1] : [0, total];
591
+ return { kind: "range", k0: Math.max(k0, first), k1: Math.min(k1, end) };
592
+ }
593
+ function captureTimes(ks, fps, offset = 0) {
594
+ return ks.map((k) => offset ? Math.max(0, k / fps + offset) : k / fps);
595
+ }
596
+ function parseOffset(text) {
597
+ const value = typeof text === "string" ? text.trim() : "";
598
+ if (!/^[-+]?(\d+\.?\d*|\.\d+)(e[-+]?\d+)?$/i.test(value) || !Number.isFinite(Number(value)))
599
+ throw new Fix(
600
+ `--offset must be a number of seconds, got "${String(text)}"`,
601
+ "--offset 0.5 when yours runs half a second behind the original, --offset -0.5 when it runs ahead"
602
+ );
603
+ return Number(value);
572
604
  }
573
605
  var cellSize = (w, h) => [
574
606
  Math.floor(w / (2 * GRID)) * 2,
@@ -741,7 +773,7 @@ function cutReport(ref, yours, k0, fps) {
741
773
  };
742
774
  }
743
775
  async function captureProject(projectDir, times, opts, ref) {
744
- const { captureSnapshots } = await import("./snapshot-5FK3HCJ7.js");
776
+ const { captureSnapshots } = await import("./snapshot-RULSIRM6.js");
745
777
  const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
746
778
  const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
747
779
  try {
@@ -779,9 +811,13 @@ async function captureProject(projectDir, times, opts, ref) {
779
811
  }
780
812
  };
781
813
  }
782
- function regeneratedVerdict(s, reference, yours, ref, roi) {
783
- const seconds = s.end - s.start;
784
- const [a, b] = [videoClip(reference, s.start, seconds, ref), videoClip(yours, s.start, seconds)];
814
+ function regeneratedVerdict(s, reference, yours, ref, roi, offset = 0) {
815
+ const from = Math.max(s.start, -offset);
816
+ const seconds = s.end - from;
817
+ const [a, b] = [
818
+ videoClip(reference, from, seconds, ref),
819
+ videoClip(yours, from + offset, seconds)
820
+ ];
785
821
  const mine = roi && scaleRoi(roi, b.width / ref.width, b.height / ref.height);
786
822
  const energy = compareEnergy(energyCurve(a, roi), energyCurve(b, mine));
787
823
  const looks = compareLook(look(a, 2, roi), look(b, 2, mine));
@@ -815,23 +851,7 @@ function cellsOutside(roi, width, height) {
815
851
  function segmentVerdicts(segments, series, worstCell, ks, ctx) {
816
852
  return segments.map((s) => {
817
853
  const head = { id: s.id, window: [s.start, s.end], pixels: s.pixels };
818
- if (s.pixels === "regenerated" && !s.drawn) {
819
- if (ctx.mode !== "video")
820
- return {
821
- ...head,
822
- pass: null,
823
- note: "regenerated pixels are judged on a render: diff a render"
824
- };
825
- const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref);
826
- const person = ctx.person.get(s);
827
- if (!person || person.pass === null) return { ...head, ...moved };
828
- return {
829
- ...head,
830
- pass: person.pass,
831
- scored: "the person: framing, text carried in the generated clip, lip sync",
832
- person: { ...person, energy: moved.energy, look: moved.look }
833
- };
834
- }
854
+ if (s.pixels === "regenerated" && !s.drawn) return regeneratedSegment(s, head, ctx);
835
855
  const [a, b] = [frameAt(s.start, ctx.ref.fps), frameAt(s.end, ctx.ref.fps)];
836
856
  const mine = ks.flatMap((k, i) => k >= a && k < b && i < series.frame.length ? [i] : []);
837
857
  if (!mine.length)
@@ -850,6 +870,25 @@ function segmentVerdicts(segments, series, worstCell, ks, ctx) {
850
870
  };
851
871
  });
852
872
  }
873
+ function regeneratedSegment(s, head, ctx) {
874
+ if (ctx.mode !== "video")
875
+ return {
876
+ ...head,
877
+ pass: null,
878
+ note: "regenerated pixels are judged on a render: diff a render"
879
+ };
880
+ if (s.end <= -ctx.offset)
881
+ return { ...head, pass: null, note: "yours starts after this segment at this offset" };
882
+ const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref, void 0, ctx.offset);
883
+ const person = ctx.person.get(s);
884
+ if (!person || person.pass === null) return { ...head, ...moved };
885
+ return {
886
+ ...head,
887
+ pass: person.pass,
888
+ scored: "the person: framing, text carried in the generated clip, lip sync",
889
+ person: { ...person, energy: moved.energy, look: moved.look }
890
+ };
891
+ }
853
892
  function lowestCell(mine, series, ks, ref) {
854
893
  const means = series.cells[mine[0]].map(
855
894
  (_, c3) => mine.reduce((sum, i) => sum + series.cells[i][c3], 0) / mine.length
@@ -867,7 +906,14 @@ function mixedVerdict(s, head, mine, series, ctx) {
867
906
  const whole = s.pixels === "regenerated";
868
907
  const roi = whole ? [0, 0, ctx.ref.width, ctx.ref.height] : regionRoi(s.regenerated, ctx.ref.width, ctx.ref.height);
869
908
  const rest = whole ? [] : cellsOutside(roi, ctx.ref.width, ctx.ref.height);
870
- const moved = ctx.mode === "video" ? regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref, whole ? void 0 : roi) : void 0;
909
+ const moved = ctx.mode === "video" ? regeneratedVerdict(
910
+ s,
911
+ ctx.reference,
912
+ ctx.yours,
913
+ ctx.ref,
914
+ whole ? void 0 : roi,
915
+ ctx.offset
916
+ ) : void 0;
871
917
  const gates = ctx.person.get(s);
872
918
  const person = gates || moved ? {
873
919
  ...gates ?? { gates: { framing: null, text: null, sync: null }, pass: null },
@@ -1132,7 +1178,7 @@ async function worstMoments(picks, ctx) {
1132
1178
  images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
1133
1179
  labels.push(
1134
1180
  `original ${t}s`,
1135
- `yours ${t}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
1181
+ `yours ${round(t + ctx.offset, 3)}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
1136
1182
  );
1137
1183
  worst.push({
1138
1184
  t,
@@ -1188,9 +1234,10 @@ function soundOffset(reference, yours, ref, mine) {
1188
1234
  };
1189
1235
  return { offset_ms: offset, match: round(best[0], 2), pass: Math.abs(offset) <= 1e3 / ref.fps };
1190
1236
  }
1191
- function sideBySide(reference, yours, ref, out) {
1237
+ function sideBySide(reference, yours, ref, out, offset = 0) {
1238
+ const skip = (seconds) => seconds > 0 ? ["-ss", String(seconds)] : [];
1192
1239
  runFfmpeg([
1193
- ...["-y", "-i", reference, "-i", yours, "-filter_complex"],
1240
+ ...["-y", ...skip(-offset), "-i", reference, ...skip(offset), "-i", yours, "-filter_complex"],
1194
1241
  `[0:v]setsar=1[a];[1:v]scale=${ref.width}:${ref.height},setsar=1[b];[a][b]hstack=inputs=2,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]`,
1195
1242
  ...["-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "20", "-pix_fmt", "yuv420p"],
1196
1243
  ...["-c:a", "aac", "-shortest", out]
@@ -1242,31 +1289,40 @@ async function diffVideos(options) {
1242
1289
  "a project folder is compared at chosen times, not whole",
1243
1290
  "pass --at t1,t2 or --range start,end, or render it and diff the render"
1244
1291
  );
1245
- const pick = choosePick(opts, ref);
1246
- const ks = pickedFrames(pick, ref.frames);
1247
- if (!ks.length || ks.some((k) => k >= ref.frames))
1292
+ const asked = choosePick(opts, ref);
1293
+ const askedKs = pickedFrames(asked, ref.frames);
1294
+ if (!askedKs.length || askedKs.some((k) => k >= ref.frames))
1248
1295
  throw new Fix(
1249
1296
  `the original has ${ref.frames} frames (${round(ref.duration, 2)} s)`,
1250
1297
  "pick times inside it"
1251
1298
  );
1299
+ const yoursInfo = mode === "video" ? probeVideo(opts.yours) : void 0;
1300
+ const offset = opts.offset ?? 0;
1301
+ const yoursFrames = yoursInfo && Math.round(yoursInfo.pictureDuration * ref.fps);
1302
+ const pick = offset ? clipPick(asked, ref.frames, overlapFrames(ref.frames, ref.fps, offset, yoursFrames)) : asked;
1303
+ const ks = offset ? pickedFrames(pick, ref.frames) : askedKs;
1304
+ const span = (a, b) => `${round(a, 3)}\u2013${round(b, 3)} s`;
1305
+ const spanOf = (frames, shift = 0) => span(frames[0] / ref.fps + shift, (frames.at(-1) + 1) / ref.fps + shift);
1306
+ if (!ks.length)
1307
+ throw new Fix(
1308
+ `--offset ${offset} leaves no overlap: the original's ${spanOf(askedKs)} falls at ${spanOf(askedKs, offset)} in yours, which runs ${yoursInfo ? span(0, yoursInfo.pictureDuration) : "from 0 s"}`,
1309
+ "pass an --offset that keeps some of the compared times inside yours"
1310
+ );
1311
+ if (ks.length < askedKs.length)
1312
+ warnings.push(
1313
+ `--offset ${offset}: ${askedKs.length - ks.length} of ${askedKs.length} frames fall outside yours, so the original's ${spanOf(ks)} is compared with yours' ${spanOf(ks, offset)}`
1314
+ );
1252
1315
  const select = selectFilter(pick, ref.fpsText);
1253
1316
  const refClip = { ...videoClip(opts.reference, 0, void 0, ref), filters: select };
1254
1317
  let yours;
1255
1318
  let seqDir;
1256
- let yoursInfo;
1257
1319
  if (mode === "project") {
1258
- const captured = await captureProject(
1259
- opts.yours,
1260
- ks.map((k) => k / ref.fps),
1261
- opts,
1262
- ref
1263
- );
1320
+ const captured = await captureProject(opts.yours, captureTimes(ks, ref.fps, offset), opts, ref);
1264
1321
  [yours, seqDir] = [captured.clip, captured.dir];
1265
1322
  } else {
1266
- yoursInfo = probeVideo(opts.yours);
1267
1323
  yours = {
1268
1324
  ...videoClip(opts.yours, 0, void 0, yoursInfo),
1269
- filters: [`fps=${ref.fpsText}`, ...select]
1325
+ filters: yoursFilters(pick, ref.fpsText, offset)
1270
1326
  };
1271
1327
  }
1272
1328
  const offRate = rateWarning(ref, yoursInfo?.fps ?? projectRate(opts.yours));
@@ -1326,18 +1382,32 @@ async function diffVideos(options) {
1326
1382
  series,
1327
1383
  ks,
1328
1384
  ref,
1329
- outDir: opts.outDir
1385
+ outDir: opts.outDir,
1386
+ offset
1330
1387
  });
1331
1388
  const cuts = pick.kind === "at" ? void 0 : cutReport(refClip, yours, ks[0], ref.fps);
1332
- const duration = yoursInfo && pick.kind === "all" ? {
1389
+ const whole = yoursInfo && asked.kind === "all";
1390
+ const lengths = yoursInfo && {
1333
1391
  reference: round(ref.pictureDuration, 3),
1334
- yours: round(yoursInfo.pictureDuration, 3),
1392
+ yours: round(yoursInfo.pictureDuration, 3)
1393
+ };
1394
+ const duration = whole && lengths ? offset ? {
1395
+ ...lengths,
1396
+ pass: null,
1397
+ note: "not measured: --offset shifts yours against the original, so the whole lengths do not compare"
1398
+ } : {
1399
+ ...lengths,
1335
1400
  pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
1336
1401
  } : void 0;
1337
1402
  const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
1338
1403
  const people = /* @__PURE__ */ new Map();
1339
1404
  let clips = [];
1340
- if (opts.segments && yoursInfo) {
1405
+ const regenerated = opts.segments?.some((s) => s.regenerated || s.pixels === "regenerated");
1406
+ if (offset && regenerated && yoursInfo)
1407
+ warnings.push(
1408
+ `--offset ${offset}: the person's framing, carried text and lip sync are not measured with an offset; motion and look are, on yours' shifted clock`
1409
+ );
1410
+ if (opts.segments && yoursInfo && !offset) {
1341
1411
  const project = opts.project ?? (opts.ledger && basename(dirname(opts.ledger)) === ".media" ? dirname(dirname(opts.ledger)) : void 0);
1342
1412
  const refCuts = cuts?.reference ?? [];
1343
1413
  const uses = project ? await clipUses(project).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
@@ -1367,7 +1437,8 @@ async function diffVideos(options) {
1367
1437
  mode,
1368
1438
  t,
1369
1439
  drawn: scoreDrawn(opts.segments, refClip, yours, ks, ref, series.frame.length),
1370
- person: people
1440
+ person: people,
1441
+ offset
1371
1442
  }) : void 0;
1372
1443
  if (opts.segments) warnings.push(...regionWarnings(opts.segments, ref));
1373
1444
  const elements = opts.drawn?.length ? scoreElements(
@@ -1405,8 +1476,8 @@ async function diffVideos(options) {
1405
1476
  warnings.push(
1406
1477
  `${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
1407
1478
  );
1408
- const sound = yoursInfo && pick.kind === "all" ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
1409
- const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4")) : void 0;
1479
+ const sound = whole ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
1480
+ const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4"), offset) : void 0;
1410
1481
  const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
1411
1482
  const top = segments ? headline(
1412
1483
  segments,
@@ -1436,6 +1507,7 @@ async function diffVideos(options) {
1436
1507
  ...sbs ? { sbs } : {},
1437
1508
  log: logPath,
1438
1509
  frames: join2(opts.outDir, "frames.tsv"),
1510
+ ...options.offset === void 0 ? {} : { offset: options.offset },
1439
1511
  warnings
1440
1512
  };
1441
1513
  } finally {
@@ -1569,7 +1641,7 @@ function printHuman(r) {
1569
1641
  );
1570
1642
  if (r.duration)
1571
1643
  console.log(
1572
- ` duration: original ${r.duration.reference} s, yours ${r.duration.yours} s${r.duration.pass ? "" : " (differ)"}`
1644
+ ` duration: original ${r.duration.reference} s, yours ${r.duration.yours} s${r.duration.pass === null ? ` (${r.duration.note})` : r.duration.pass ? "" : " (differ)"}`
1573
1645
  );
1574
1646
  if (r.sound)
1575
1647
  console.log(
@@ -1619,11 +1691,15 @@ var diff_default = defineCommand({
1619
1691
  reference: { type: "positional", description: "The original video", required: true },
1620
1692
  yours: {
1621
1693
  type: "positional",
1622
- description: "A rendered video, or a project folder (captured at the original's frame times, no render)",
1623
- required: true
1694
+ description: "A rendered video, or a project folder (captured at the original's frame times, no render) (required)",
1695
+ required: false
1624
1696
  },
1625
1697
  at: { type: "string", description: "Compare only these seconds, e.g. 0.5,2.4" },
1626
1698
  range: { type: "string", description: "Compare every frame of start,end seconds" },
1699
+ offset: {
1700
+ type: "string",
1701
+ description: "Compare the original at t with yours at t + offset seconds (may be negative)"
1702
+ },
1627
1703
  segments: {
1628
1704
  type: "string",
1629
1705
  description: "A file of `## S01 \xB7 a\u2013b s` segments: a verdict per segment (Pixels: regenerated compares motion and look)"
@@ -1672,6 +1748,11 @@ var diff_default = defineCommand({
1672
1748
  try {
1673
1749
  if (args.at !== void 0 && args.range !== void 0)
1674
1750
  throw new Fix("--at and --range both given", "pass one of them");
1751
+ if (args.yours === void 0)
1752
+ throw new Fix(
1753
+ "diff compares two: the original and yours",
1754
+ "hyperframes diff <original.mp4> <your render.mp4 | your project folder>"
1755
+ );
1675
1756
  const yours = resolve2(String(args.yours));
1676
1757
  const stem = basename2(yours, extname(yours)) || "project";
1677
1758
  const segmentsFile = args.segments === void 0 ? void 0 : resolve2(String(args.segments));
@@ -1684,6 +1765,7 @@ var diff_default = defineCommand({
1684
1765
  ledger: args.ledger === void 0 ? findLedger(yours, segmentsFile) : resolve2(String(args.ledger)),
1685
1766
  project: args.project === void 0 ? void 0 : resolve2(String(args.project)),
1686
1767
  drawn: repeated(rawArgs, "--drawn").map(parseDrawn),
1768
+ offset: args.offset === void 0 ? void 0 : parseOffset(args.offset),
1687
1769
  thresholds: {
1688
1770
  mean: number(args["min-mean"], "--min-mean"),
1689
1771
  p05: number(args["min-p05"], "--min-p05"),
@@ -0,0 +1,197 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ MAX_UPLOAD_BYTES,
9
+ MIME_TYPES,
10
+ PREVIEW_BUNDLE_OPTIONS,
11
+ affectsPreview,
12
+ applyFileMutations,
13
+ buildSubCompositionHtml,
14
+ clearElementScreenshotIsolation,
15
+ compositionsAffectedBy,
16
+ createBackgroundRemovalJob,
17
+ createPreviewDocumentStore,
18
+ createStudioApi,
19
+ duplicateElementInHtml,
20
+ getElementScreenshotClip,
21
+ getMimeType,
22
+ stampProjectHfIds,
23
+ stampProjectHfIdsAsync,
24
+ thumbnailDeviceScaleFactor
25
+ } from "./chunk-NCP3JQ6S.js";
26
+ import {
27
+ dedupeClonedCompositionId,
28
+ findTargetElement,
29
+ parseSourceDocument,
30
+ patchElementInHtml,
31
+ removeElementFromHtml,
32
+ splitElementInHtml
33
+ } from "./chunk-JZPUXDQE.js";
34
+ import "./chunk-AW3XJY4S.js";
35
+ import {
36
+ requestSubPath
37
+ } from "./chunk-CPMTEWQM.js";
38
+ import {
39
+ DEFAULT_HISTORY_ROOT,
40
+ DELETED_VERSION,
41
+ HistoryBusyError,
42
+ HistoryClosedError,
43
+ HistoryIdError,
44
+ HistoryRefusedError,
45
+ MAX_WINDOW_IDLE_MS,
46
+ START,
47
+ STUDIO_SIGNATURE_MANIFEST_PATHS,
48
+ UNDO_MODES,
49
+ affectsProjectSignature,
50
+ artifactDirectory,
51
+ beginArtifactCapture,
52
+ consumeFileWriteReceipt,
53
+ createProjectSignature,
54
+ createProjectSignatureAsync,
55
+ fileContentVersion,
56
+ finishSnapshotRun,
57
+ forgetRecordedArtifacts,
58
+ historyCache,
59
+ identifyFileWrite,
60
+ isUncopiedMedia,
61
+ listProjectHistories,
62
+ onRestoredInPlace,
63
+ openProjectHistory,
64
+ pruneGoneProjectHistories,
65
+ readProjectHistory,
66
+ reclaimUncopiedBlobs,
67
+ recordArtifact,
68
+ recordArtifacts,
69
+ recordRenderSuccess,
70
+ registerRenderOutput,
71
+ retainSnapshotOutput,
72
+ settledFileTag
73
+ } from "./chunk-XLPCBE2Q.js";
74
+ import {
75
+ CACHE_DIR_NAME,
76
+ cleanupProxyCache
77
+ } from "./chunk-MDMQD6BV.js";
78
+ import "./chunk-2QMEP4LR.js";
79
+ import {
80
+ STUDIO_MOTION_PATH,
81
+ createStudioMotionRenderBodyScript,
82
+ walkDir
83
+ } from "./chunk-ALVXFXUG.js";
84
+ import "./chunk-W4DMQZL5.js";
85
+ import "./chunk-A4ZTSQLW.js";
86
+ import {
87
+ MAX_OPEN_MEDIA_RANGE_BYTES,
88
+ openRangeEnd
89
+ } from "./chunk-VEIGTKYZ.js";
90
+ import {
91
+ STUDIO_MANUAL_EDITS_PATH,
92
+ createStudioManualEditsRenderBodyScript,
93
+ createStudioPositionSeekReapplyScript
94
+ } from "./chunk-EVMY7IPL.js";
95
+ import "./chunk-7FMUTGOH.js";
96
+ import "./chunk-5S7W3TUO.js";
97
+ import "./chunk-D3MUHMFG.js";
98
+ import "./chunk-PPMCILED.js";
99
+ import "./chunk-YWRUQ7XZ.js";
100
+ import "./chunk-W5AUD5OL.js";
101
+ import "./chunk-MEJH7VEA.js";
102
+ import "./chunk-Y3ICFPFK.js";
103
+ import "./chunk-VC76R6W2.js";
104
+ import {
105
+ isSafePath
106
+ } from "./chunk-OFQWTKPW.js";
107
+ import "./chunk-RQVDTPGD.js";
108
+ import "./chunk-TK7THLRO.js";
109
+ import "./chunk-FXMKHHPO.js";
110
+ import "./chunk-XX77LLFJ.js";
111
+ import "./chunk-CZGHFATT.js";
112
+ import "./chunk-WVRAFHJU.js";
113
+ import "./chunk-HYRPH6LL.js";
114
+ import {
115
+ decodeWellFormedEscapes
116
+ } from "./chunk-C2KEGBR3.js";
117
+ import "./chunk-JHILL4BN.js";
118
+ import "./chunk-FR7YBU3H.js";
119
+ import "./chunk-DPVXBVLL.js";
120
+ import "./chunk-GWTIFRF5.js";
121
+ import "./chunk-2RY2LWAA.js";
122
+ import "./chunk-EPQC3FGZ.js";
123
+ import "./chunk-WC4MTXGN.js";
124
+ import "./chunk-766MOTIZ.js";
125
+ import "./chunk-M2WBOQ2Q.js";
126
+ export {
127
+ DEFAULT_HISTORY_ROOT,
128
+ DELETED_VERSION,
129
+ START as HISTORY_START,
130
+ HistoryBusyError,
131
+ HistoryClosedError,
132
+ HistoryIdError,
133
+ HistoryRefusedError,
134
+ MAX_OPEN_MEDIA_RANGE_BYTES,
135
+ MAX_UPLOAD_BYTES,
136
+ MAX_WINDOW_IDLE_MS,
137
+ MIME_TYPES,
138
+ PREVIEW_BUNDLE_OPTIONS,
139
+ CACHE_DIR_NAME as PROXY_CACHE_DIR_NAME,
140
+ STUDIO_MANUAL_EDITS_PATH,
141
+ STUDIO_MOTION_PATH,
142
+ STUDIO_SIGNATURE_MANIFEST_PATHS,
143
+ UNDO_MODES,
144
+ affectsPreview,
145
+ affectsProjectSignature,
146
+ applyFileMutations,
147
+ artifactDirectory,
148
+ beginArtifactCapture,
149
+ buildSubCompositionHtml,
150
+ cleanupProxyCache,
151
+ clearElementScreenshotIsolation,
152
+ compositionsAffectedBy,
153
+ consumeFileWriteReceipt,
154
+ createBackgroundRemovalJob,
155
+ createPreviewDocumentStore,
156
+ createProjectSignature,
157
+ createProjectSignatureAsync,
158
+ createStudioApi,
159
+ createStudioManualEditsRenderBodyScript,
160
+ createStudioMotionRenderBodyScript,
161
+ createStudioPositionSeekReapplyScript,
162
+ decodeWellFormedEscapes,
163
+ dedupeClonedCompositionId,
164
+ duplicateElementInHtml,
165
+ fileContentVersion,
166
+ findTargetElement,
167
+ finishSnapshotRun,
168
+ forgetRecordedArtifacts,
169
+ getElementScreenshotClip,
170
+ getMimeType,
171
+ historyCache,
172
+ identifyFileWrite,
173
+ isSafePath,
174
+ isUncopiedMedia,
175
+ listProjectHistories,
176
+ onRestoredInPlace,
177
+ openProjectHistory,
178
+ openRangeEnd,
179
+ parseSourceDocument,
180
+ patchElementInHtml,
181
+ pruneGoneProjectHistories,
182
+ readProjectHistory,
183
+ reclaimUncopiedBlobs,
184
+ recordArtifact,
185
+ recordArtifacts,
186
+ recordRenderSuccess,
187
+ registerRenderOutput,
188
+ removeElementFromHtml,
189
+ requestSubPath,
190
+ retainSnapshotOutput,
191
+ settledFileTag,
192
+ splitElementInHtml,
193
+ stampProjectHfIds,
194
+ stampProjectHfIdsAsync,
195
+ thumbnailDeviceScaleFactor,
196
+ walkDir
197
+ };
@@ -96,7 +96,7 @@ import {
96
96
  serializeVfxChain,
97
97
  toFps,
98
98
  validateVariables
99
- } from "./chunk-6ZICZOMN.js";
99
+ } from "./chunk-W5AUD5OL.js";
100
100
  import "./chunk-MEJH7VEA.js";
101
101
  import {
102
102
  AUDIBLE_MEDIA_SELECTOR,
@@ -161,7 +161,7 @@ import {
161
161
  sourceTimeAt,
162
162
  stripEmbeddedRuntimeScripts,
163
163
  timeAtSourceTime
164
- } from "./chunk-N3CZ437C.js";
164
+ } from "./chunk-Y3ICFPFK.js";
165
165
  import "./chunk-VC76R6W2.js";
166
166
  import {
167
167
  ProjectRootMissingError,
@@ -237,7 +237,7 @@ import {
237
237
  updateElementInHtml,
238
238
  validateCompositionGsap,
239
239
  validateCompositionHtml
240
- } from "./chunk-T5ELONXY.js";
240
+ } from "./chunk-JHILL4BN.js";
241
241
  import "./chunk-FR7YBU3H.js";
242
242
  import "./chunk-DPVXBVLL.js";
243
243
  import "./chunk-GWTIFRF5.js";