automovie 0.3.3 → 0.4.0

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 (331) hide show
  1. package/README.md +40 -139
  2. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.d.ts +5 -2
  3. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.js +6 -2
  4. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.js.map +1 -1
  5. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.d.ts +3 -1
  6. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.js +3 -1
  7. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.js.map +1 -1
  8. package/lib/AUTOMOVIE_INSPECT_OPTIONS.d.ts +5 -2
  9. package/lib/AUTOMOVIE_INSPECT_OPTIONS.js +5 -2
  10. package/lib/AUTOMOVIE_INSPECT_OPTIONS.js.map +1 -1
  11. package/lib/AUTOMOVIE_RENDER_OPTIONS.d.ts +6 -2
  12. package/lib/AUTOMOVIE_RENDER_OPTIONS.js +8 -2
  13. package/lib/AUTOMOVIE_RENDER_OPTIONS.js.map +1 -1
  14. package/lib/AUTOMOVIE_REVIEW_OPTIONS.d.ts +3 -1
  15. package/lib/AUTOMOVIE_REVIEW_OPTIONS.js +12 -1
  16. package/lib/AUTOMOVIE_REVIEW_OPTIONS.js.map +1 -1
  17. package/lib/AutoMovieCaptureBackend.d.ts +4 -6
  18. package/lib/AutoMovieCaptureHost.d.ts +73 -53
  19. package/lib/AutoMovieCaptureHost.js +89 -56
  20. package/lib/AutoMovieCaptureHost.js.map +1 -1
  21. package/lib/AutoMovieCommand.d.ts +69 -20
  22. package/lib/AutoMovieFfmpegStaticPath.d.ts +6 -0
  23. package/lib/AutoMovieFfmpegStaticPath.js +3 -0
  24. package/lib/AutoMovieFfmpegStaticPath.js.map +1 -0
  25. package/lib/AutoMovieMp4Boxes.d.ts +78 -0
  26. package/lib/AutoMovieMp4Boxes.js +227 -0
  27. package/lib/AutoMovieMp4Boxes.js.map +1 -0
  28. package/lib/AutoMovieRenderOutputReservation.d.ts +18 -0
  29. package/lib/AutoMovieRenderOutputReservation.js +118 -0
  30. package/lib/AutoMovieRenderOutputReservation.js.map +1 -0
  31. package/lib/IAutoMovieChromium.d.ts +13 -57
  32. package/lib/IAutoMovieDeliveryAudioTrack.d.ts +17 -0
  33. package/lib/IAutoMovieDeliveryAudioTrack.js +3 -0
  34. package/lib/IAutoMovieDeliveryAudioTrack.js.map +1 -0
  35. package/lib/IAutoMovieDeliveryProfileFinding.d.ts +21 -0
  36. package/lib/IAutoMovieDeliveryProfileFinding.js +3 -0
  37. package/lib/IAutoMovieDeliveryProfileFinding.js.map +1 -0
  38. package/lib/IAutoMovieFfmpegSources.d.ts +11 -0
  39. package/lib/IAutoMovieFfmpegSources.js +3 -0
  40. package/lib/IAutoMovieFfmpegSources.js.map +1 -0
  41. package/lib/IAutoMovieReviewObservation.d.ts +66 -0
  42. package/lib/IAutoMovieReviewObservation.js +3 -0
  43. package/lib/IAutoMovieReviewObservation.js.map +1 -0
  44. package/lib/IAutoMovieVerification.d.ts +163 -0
  45. package/lib/IAutoMovieVerification.js +3 -0
  46. package/lib/IAutoMovieVerification.js.map +1 -0
  47. package/lib/auditAutoMovieAlphaSamples.d.ts +23 -0
  48. package/lib/auditAutoMovieAlphaSamples.js +183 -0
  49. package/lib/auditAutoMovieAlphaSamples.js.map +1 -0
  50. package/lib/auditAutoMovieDeliveryProfile.d.ts +33 -0
  51. package/lib/auditAutoMovieDeliveryProfile.js +93 -0
  52. package/lib/auditAutoMovieDeliveryProfile.js.map +1 -0
  53. package/lib/captureAutoMovie.d.ts +23 -11
  54. package/lib/captureAutoMovie.js +102 -18
  55. package/lib/captureAutoMovie.js.map +1 -1
  56. package/lib/createAutoMovieDeliveryAudioLog.d.ts +31 -0
  57. package/lib/createAutoMovieDeliveryAudioLog.js +110 -0
  58. package/lib/createAutoMovieDeliveryAudioLog.js.map +1 -0
  59. package/lib/createAutoMovieDeliveryAudioScan.d.ts +39 -0
  60. package/lib/createAutoMovieDeliveryAudioScan.js +125 -0
  61. package/lib/createAutoMovieDeliveryAudioScan.js.map +1 -0
  62. package/lib/createAutoMovieVerificationInputScope.d.ts +19 -0
  63. package/lib/createAutoMovieVerificationInputScope.js +147 -0
  64. package/lib/createAutoMovieVerificationInputScope.js.map +1 -0
  65. package/lib/createAutoMovieVerificationMediaHash.d.ts +5 -0
  66. package/lib/createAutoMovieVerificationMediaHash.js +61 -0
  67. package/lib/createAutoMovieVerificationMediaHash.js.map +1 -0
  68. package/lib/decodeAutoMovieDeliveryAudio.d.ts +24 -0
  69. package/lib/decodeAutoMovieDeliveryAudio.js +77 -0
  70. package/lib/decodeAutoMovieDeliveryAudio.js.map +1 -0
  71. package/lib/deriveAutoMovieProjectName.d.ts +14 -11
  72. package/lib/deriveAutoMovieProjectName.js +14 -11
  73. package/lib/deriveAutoMovieProjectName.js.map +1 -1
  74. package/lib/findAutoMovieFreePort.d.ts +5 -10
  75. package/lib/findAutoMovieFreePort.js +5 -10
  76. package/lib/findAutoMovieFreePort.js.map +1 -1
  77. package/lib/formatAutoMovieInspectUrl.d.ts +6 -10
  78. package/lib/formatAutoMovieInspectUrl.js +6 -10
  79. package/lib/formatAutoMovieInspectUrl.js.map +1 -1
  80. package/lib/hashAutoMovieFile.d.ts +5 -0
  81. package/lib/hashAutoMovieFile.js +16 -0
  82. package/lib/hashAutoMovieFile.js.map +1 -0
  83. package/lib/importAutoMovieVerificationEntry.d.mts +2 -0
  84. package/lib/importAutoMovieVerificationEntry.mjs +6 -0
  85. package/lib/importAutoMovieVerificationEntry.mjs.map +1 -0
  86. package/lib/index.d.ts +9 -0
  87. package/lib/index.js +9 -0
  88. package/lib/index.js.map +1 -1
  89. package/lib/inspectAutoMovie.d.ts +15 -9
  90. package/lib/inspectAutoMovie.js +25 -9
  91. package/lib/inspectAutoMovie.js.map +1 -1
  92. package/lib/inspectAutoMovieVerificationCapture.d.ts +15 -0
  93. package/lib/inspectAutoMovieVerificationCapture.js +221 -0
  94. package/lib/inspectAutoMovieVerificationCapture.js.map +1 -0
  95. package/lib/inspectAutoMovieVerificationDelivery.d.ts +13 -0
  96. package/lib/inspectAutoMovieVerificationDelivery.js +247 -0
  97. package/lib/inspectAutoMovieVerificationDelivery.js.map +1 -0
  98. package/lib/inspectAutoMovieVerificationReview.d.ts +11 -0
  99. package/lib/inspectAutoMovieVerificationReview.js +141 -0
  100. package/lib/inspectAutoMovieVerificationReview.js.map +1 -0
  101. package/lib/launchAutoMovieChromium.d.ts +9 -11
  102. package/lib/launchAutoMovieChromium.js +10 -11
  103. package/lib/launchAutoMovieChromium.js.map +1 -1
  104. package/lib/listAutoMovieReleaseFindings.d.ts +9 -0
  105. package/lib/listAutoMovieReleaseFindings.js +58 -0
  106. package/lib/listAutoMovieReleaseFindings.js.map +1 -0
  107. package/lib/loadAutoMovieProductionModule.d.ts +11 -10
  108. package/lib/loadAutoMovieProductionModule.js +18 -10
  109. package/lib/loadAutoMovieProductionModule.js.map +1 -1
  110. package/lib/loadAutoMovieVerificationModule.d.ts +6 -0
  111. package/lib/loadAutoMovieVerificationModule.js +246 -0
  112. package/lib/loadAutoMovieVerificationModule.js.map +1 -0
  113. package/lib/planAutoMovieChromiumLaunch.d.ts +7 -13
  114. package/lib/planAutoMovieChromiumLaunch.js +7 -13
  115. package/lib/planAutoMovieChromiumLaunch.js.map +1 -1
  116. package/lib/planAutoMovieDeliveryAudioDecode.d.ts +10 -0
  117. package/lib/planAutoMovieDeliveryAudioDecode.js +29 -0
  118. package/lib/planAutoMovieDeliveryAudioDecode.js.map +1 -0
  119. package/lib/planAutoMovieDeliveryDecode.d.ts +19 -0
  120. package/lib/planAutoMovieDeliveryDecode.js +57 -0
  121. package/lib/planAutoMovieDeliveryDecode.js.map +1 -0
  122. package/lib/planAutoMovieDeliveryInput.d.ts +11 -0
  123. package/lib/planAutoMovieDeliveryInput.js +26 -0
  124. package/lib/planAutoMovieDeliveryInput.js.map +1 -0
  125. package/lib/planAutoMovieModulePageViteConfig.d.ts +13 -10
  126. package/lib/planAutoMovieModulePageViteConfig.js +13 -10
  127. package/lib/planAutoMovieModulePageViteConfig.js.map +1 -1
  128. package/lib/promptAutoMovieProjectName.d.ts +6 -10
  129. package/lib/promptAutoMovieProjectName.js +6 -10
  130. package/lib/promptAutoMovieProjectName.js.map +1 -1
  131. package/lib/publishAutoMovieRenderAttempt.d.ts +32 -0
  132. package/lib/publishAutoMovieRenderAttempt.js +91 -0
  133. package/lib/publishAutoMovieRenderAttempt.js.map +1 -0
  134. package/lib/readAutoMovieAddArguments.d.ts +10 -11
  135. package/lib/readAutoMovieAddArguments.js +10 -11
  136. package/lib/readAutoMovieAddArguments.js.map +1 -1
  137. package/lib/readAutoMovieCaptureHostOptions.d.ts +19 -17
  138. package/lib/readAutoMovieCaptureHostOptions.js +16 -17
  139. package/lib/readAutoMovieCaptureHostOptions.js.map +1 -1
  140. package/lib/readAutoMovieCommandArguments.d.ts +6 -9
  141. package/lib/readAutoMovieCommandArguments.js +9 -10
  142. package/lib/readAutoMovieCommandArguments.js.map +1 -1
  143. package/lib/readAutoMovieCreateArguments.d.ts +7 -11
  144. package/lib/readAutoMovieCreateArguments.js +7 -11
  145. package/lib/readAutoMovieCreateArguments.js.map +1 -1
  146. package/lib/readAutoMovieDeliveryAudioTrack.d.ts +21 -0
  147. package/lib/readAutoMovieDeliveryAudioTrack.js +104 -0
  148. package/lib/readAutoMovieDeliveryAudioTrack.js.map +1 -0
  149. package/lib/readAutoMovieDeliveryDecode.d.ts +19 -0
  150. package/lib/readAutoMovieDeliveryDecode.js +209 -0
  151. package/lib/readAutoMovieDeliveryDecode.js.map +1 -0
  152. package/lib/readAutoMovieDeliveryProbe.d.ts +35 -0
  153. package/lib/readAutoMovieDeliveryProbe.js +363 -0
  154. package/lib/readAutoMovieDeliveryProbe.js.map +1 -0
  155. package/lib/readAutoMovieErrorCode.d.ts +9 -0
  156. package/lib/readAutoMovieErrorCode.js +18 -0
  157. package/lib/readAutoMovieErrorCode.js.map +1 -0
  158. package/lib/readAutoMovieInspectHostOptions.d.ts +15 -16
  159. package/lib/readAutoMovieInspectHostOptions.js +11 -15
  160. package/lib/readAutoMovieInspectHostOptions.js.map +1 -1
  161. package/lib/readAutoMovieNameOption.d.ts +4 -10
  162. package/lib/readAutoMovieNameOption.js +4 -10
  163. package/lib/readAutoMovieNameOption.js.map +1 -1
  164. package/lib/readAutoMoviePageTimeout.d.ts +13 -0
  165. package/lib/readAutoMoviePageTimeout.js +21 -0
  166. package/lib/readAutoMoviePageTimeout.js.map +1 -0
  167. package/lib/readAutoMovieRenderOptions.d.ts +24 -16
  168. package/lib/readAutoMovieRenderOptions.js +23 -16
  169. package/lib/readAutoMovieRenderOptions.js.map +1 -1
  170. package/lib/readAutoMovieReviewObservation.d.ts +6 -0
  171. package/lib/readAutoMovieReviewObservation.js +108 -0
  172. package/lib/readAutoMovieReviewObservation.js.map +1 -0
  173. package/lib/readAutoMovieReviewOptions.d.ts +32 -24
  174. package/lib/readAutoMovieReviewOptions.js +82 -18
  175. package/lib/readAutoMovieReviewOptions.js.map +1 -1
  176. package/lib/readAutoMovieRevision.d.ts +3 -9
  177. package/lib/readAutoMovieRevision.js +3 -9
  178. package/lib/readAutoMovieRevision.js.map +1 -1
  179. package/lib/readAutoMovieVerifyOptions.d.ts +17 -0
  180. package/lib/readAutoMovieVerifyOptions.js +45 -0
  181. package/lib/readAutoMovieVerifyOptions.js.map +1 -0
  182. package/lib/readAutoMovieVideoProbe.d.ts +6 -10
  183. package/lib/readAutoMovieVideoProbe.js +20 -13
  184. package/lib/readAutoMovieVideoProbe.js.map +1 -1
  185. package/lib/recordAutoMoviePlayback.d.ts +18 -11
  186. package/lib/recordAutoMoviePlayback.js +26 -13
  187. package/lib/recordAutoMoviePlayback.js.map +1 -1
  188. package/lib/renderAutoMovie.d.ts +16 -10
  189. package/lib/renderAutoMovie.js +31 -14
  190. package/lib/renderAutoMovie.js.map +1 -1
  191. package/lib/renderAutoMovieScaffoldNextSteps.d.ts +10 -10
  192. package/lib/renderAutoMovieScaffoldNextSteps.js +10 -10
  193. package/lib/renderAutoMovieVideo.d.ts +53 -15
  194. package/lib/renderAutoMovieVideo.js +290 -45
  195. package/lib/renderAutoMovieVideo.js.map +1 -1
  196. package/lib/resolveAutoMovieFfmpeg.d.ts +12 -15
  197. package/lib/resolveAutoMovieFfmpeg.js +12 -17
  198. package/lib/resolveAutoMovieFfmpeg.js.map +1 -1
  199. package/lib/reviewAutoMovie.d.ts +10 -10
  200. package/lib/reviewAutoMovie.js +15 -10
  201. package/lib/reviewAutoMovie.js.map +1 -1
  202. package/lib/reviewAutoMovieFile.d.ts +21 -0
  203. package/lib/reviewAutoMovieFile.js +378 -0
  204. package/lib/reviewAutoMovieFile.js.map +1 -0
  205. package/lib/run.d.ts +32 -18
  206. package/lib/run.js +67 -23
  207. package/lib/run.js.map +1 -1
  208. package/lib/runAutoMovieDeliveryAudioDecode.d.ts +18 -0
  209. package/lib/runAutoMovieDeliveryAudioDecode.js +28 -0
  210. package/lib/runAutoMovieDeliveryAudioDecode.js.map +1 -0
  211. package/lib/runAutoMovieDeliveryDecode.d.ts +19 -0
  212. package/lib/runAutoMovieDeliveryDecode.js +42 -0
  213. package/lib/runAutoMovieDeliveryDecode.js.map +1 -0
  214. package/lib/runAutoMovieDeliveryReferenceDecode.d.ts +28 -0
  215. package/lib/runAutoMovieDeliveryReferenceDecode.js +77 -0
  216. package/lib/runAutoMovieDeliveryReferenceDecode.js.map +1 -0
  217. package/lib/runAutoMovieDeliverySourceAudioDecode.d.ts +20 -0
  218. package/lib/runAutoMovieDeliverySourceAudioDecode.js +56 -0
  219. package/lib/runAutoMovieDeliverySourceAudioDecode.js.map +1 -0
  220. package/lib/runAutoMovieFfmpeg.d.ts +15 -10
  221. package/lib/runAutoMovieFfmpeg.js +36 -13
  222. package/lib/runAutoMovieFfmpeg.js.map +1 -1
  223. package/lib/runAutoMovieVerification.d.ts +28 -0
  224. package/lib/runAutoMovieVerification.js +393 -0
  225. package/lib/runAutoMovieVerification.js.map +1 -0
  226. package/lib/sameAutoMovieReviewFile.d.ts +2 -0
  227. package/lib/sameAutoMovieReviewFile.js +57 -0
  228. package/lib/sameAutoMovieReviewFile.js.map +1 -0
  229. package/lib/selectAutoMovieProjectName.d.ts +8 -11
  230. package/lib/selectAutoMovieProjectName.js +8 -11
  231. package/lib/selectAutoMovieProjectName.js.map +1 -1
  232. package/lib/serveAutoMovieDrawPage.d.ts +14 -11
  233. package/lib/serveAutoMovieDrawPage.js +14 -11
  234. package/lib/serveAutoMovieDrawPage.js.map +1 -1
  235. package/lib/serveAutoMovieInspectorPage.d.ts +4 -8
  236. package/lib/serveAutoMovieInspectorPage.js +3 -9
  237. package/lib/serveAutoMovieInspectorPage.js.map +1 -1
  238. package/lib/verifyAutoMovie.d.ts +19 -0
  239. package/lib/verifyAutoMovie.js +44 -0
  240. package/lib/verifyAutoMovie.js.map +1 -0
  241. package/lib/writeAutoMovieModulePage.d.ts +17 -12
  242. package/lib/writeAutoMovieModulePage.js +13 -11
  243. package/lib/writeAutoMovieModulePage.js.map +1 -1
  244. package/lib/writeAutoMovieVerificationReceipt.d.ts +2 -0
  245. package/lib/writeAutoMovieVerificationReceipt.js +75 -0
  246. package/lib/writeAutoMovieVerificationReceipt.js.map +1 -0
  247. package/package.json +8 -8
  248. package/src/AUTOMOVIE_CAPTURE_OPTIONS.ts +6 -2
  249. package/src/AUTOMOVIE_DEFAULT_PROJECT_NAME.ts +3 -1
  250. package/src/AUTOMOVIE_INSPECT_OPTIONS.ts +5 -2
  251. package/src/AUTOMOVIE_RENDER_OPTIONS.ts +8 -2
  252. package/src/AUTOMOVIE_REVIEW_OPTIONS.ts +12 -1
  253. package/src/AutoMovieCaptureBackend.ts +4 -6
  254. package/src/AutoMovieCaptureHost.ts +122 -68
  255. package/src/AutoMovieCommand.ts +71 -20
  256. package/src/AutoMovieFfmpegStaticPath.ts +7 -0
  257. package/src/AutoMovieMp4Boxes.ts +263 -0
  258. package/src/AutoMovieRenderOutputReservation.ts +97 -0
  259. package/src/IAutoMovieChromium.ts +13 -57
  260. package/src/IAutoMovieDeliveryAudioTrack.ts +19 -0
  261. package/src/IAutoMovieDeliveryProfileFinding.ts +24 -0
  262. package/src/IAutoMovieFfmpegSources.ts +13 -0
  263. package/src/IAutoMovieReviewObservation.ts +59 -0
  264. package/src/IAutoMovieVerification.ts +207 -0
  265. package/src/auditAutoMovieAlphaSamples.ts +201 -0
  266. package/src/auditAutoMovieDeliveryProfile.ts +125 -0
  267. package/src/captureAutoMovie.ts +137 -28
  268. package/src/createAutoMovieDeliveryAudioLog.ts +141 -0
  269. package/src/createAutoMovieDeliveryAudioScan.ts +150 -0
  270. package/src/createAutoMovieVerificationInputScope.ts +156 -0
  271. package/src/createAutoMovieVerificationMediaHash.ts +32 -0
  272. package/src/decodeAutoMovieDeliveryAudio.ts +95 -0
  273. package/src/deriveAutoMovieProjectName.ts +14 -11
  274. package/src/findAutoMovieFreePort.ts +5 -10
  275. package/src/formatAutoMovieInspectUrl.ts +6 -10
  276. package/src/hashAutoMovieFile.ts +12 -0
  277. package/src/importAutoMovieVerificationEntry.mts +6 -0
  278. package/src/index.ts +9 -0
  279. package/src/inspectAutoMovie.ts +28 -11
  280. package/src/inspectAutoMovieVerificationCapture.ts +292 -0
  281. package/src/inspectAutoMovieVerificationDelivery.ts +301 -0
  282. package/src/inspectAutoMovieVerificationReview.ts +130 -0
  283. package/src/launchAutoMovieChromium.ts +14 -12
  284. package/src/listAutoMovieReleaseFindings.ts +87 -0
  285. package/src/loadAutoMovieProductionModule.ts +22 -15
  286. package/src/loadAutoMovieVerificationModule.ts +278 -0
  287. package/src/planAutoMovieChromiumLaunch.ts +7 -13
  288. package/src/planAutoMovieDeliveryAudioDecode.ts +26 -0
  289. package/src/planAutoMovieDeliveryDecode.ts +66 -0
  290. package/src/planAutoMovieDeliveryInput.ts +25 -0
  291. package/src/planAutoMovieModulePageViteConfig.ts +13 -10
  292. package/src/promptAutoMovieProjectName.ts +6 -10
  293. package/src/publishAutoMovieRenderAttempt.ts +89 -0
  294. package/src/readAutoMovieAddArguments.ts +10 -11
  295. package/src/readAutoMovieCaptureHostOptions.ts +22 -17
  296. package/src/readAutoMovieCommandArguments.ts +8 -10
  297. package/src/readAutoMovieCreateArguments.ts +7 -11
  298. package/src/readAutoMovieDeliveryAudioTrack.ts +137 -0
  299. package/src/readAutoMovieDeliveryDecode.ts +269 -0
  300. package/src/readAutoMovieDeliveryProbe.ts +499 -0
  301. package/src/readAutoMovieErrorCode.ts +13 -0
  302. package/src/readAutoMovieInspectHostOptions.ts +15 -16
  303. package/src/readAutoMovieNameOption.ts +4 -10
  304. package/src/readAutoMoviePageTimeout.ts +19 -0
  305. package/src/readAutoMovieRenderOptions.ts +34 -16
  306. package/src/readAutoMovieReviewObservation.ts +146 -0
  307. package/src/readAutoMovieReviewOptions.ts +133 -28
  308. package/src/readAutoMovieRevision.ts +3 -9
  309. package/src/readAutoMovieVerifyOptions.ts +50 -0
  310. package/src/readAutoMovieVideoProbe.ts +24 -13
  311. package/src/recordAutoMoviePlayback.ts +26 -13
  312. package/src/renderAutoMovie.ts +38 -17
  313. package/src/renderAutoMovieScaffoldNextSteps.ts +10 -10
  314. package/src/renderAutoMovieVideo.ts +474 -85
  315. package/src/resolveAutoMovieFfmpeg.ts +17 -24
  316. package/src/reviewAutoMovie.ts +21 -16
  317. package/src/reviewAutoMovieFile.ts +479 -0
  318. package/src/run.ts +75 -25
  319. package/src/runAutoMovieDeliveryAudioDecode.ts +45 -0
  320. package/src/runAutoMovieDeliveryDecode.ts +63 -0
  321. package/src/runAutoMovieDeliveryReferenceDecode.ts +107 -0
  322. package/src/runAutoMovieDeliverySourceAudioDecode.ts +71 -0
  323. package/src/runAutoMovieFfmpeg.ts +48 -14
  324. package/src/runAutoMovieVerification.ts +487 -0
  325. package/src/sameAutoMovieReviewFile.ts +23 -0
  326. package/src/selectAutoMovieProjectName.ts +8 -11
  327. package/src/serveAutoMovieDrawPage.ts +16 -12
  328. package/src/serveAutoMovieInspectorPage.ts +6 -9
  329. package/src/verifyAutoMovie.ts +67 -0
  330. package/src/writeAutoMovieModulePage.ts +17 -12
  331. package/src/writeAutoMovieVerificationReceipt.ts +51 -0
@@ -2,26 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readAutoMovieReviewOptions = readAutoMovieReviewOptions;
4
4
  const AUTOMOVIE_REVIEW_OPTIONS_1 = require("./AUTOMOVIE_REVIEW_OPTIONS");
5
- /** Longest observation in seconds: one day, beyond any film's playback a person reviews. */
5
+ /** The longest Inspector recording in wall-clock seconds, one day. */
6
6
  const LONGEST = 86_400;
7
7
  /**
8
- * Read the options of `automovie review`, `AUTOMOVIE_REVIEW_OPTIONS`.
8
+ * Admit one `automovie review` operation.
9
9
  *
10
- * | Option | Meaning | Absent |
11
- * | --- | --- | --- |
12
- * | `--url <address>` | The running inspector page, with the request it opens on | Required |
13
- * | `--seconds <s>` | Wall-clock seconds of playback recorded, positive, at most a day | Required |
14
- * | `--out <folder>` | Where the recording and `playback.json` go | `media/automovie/review` |
15
- *
16
- * It throws naming the option for an option outside the list, an empty value, a missing `--url` or `--seconds`, an address that is not HTTP on this machine, and seconds out of range.
17
- *
18
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates every option with its meaning and absent value, and states every refusal.
19
- * @evidence contracts/development/implementation.md#principled-implementation A review records the page a person would watch, so the command names that page and how long to watch it; only a loopback address is admitted, so the command never drives a page elsewhere.
20
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass admitting the listed options, then the checks.
21
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No address or duration is guessed.
22
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the options.
23
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per command.
24
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.
10
+ * Inspector mode takes the loopback HTTP `--url`, wall-clock `--seconds` and
11
+ * optional `--out`. File mode takes a published `--file` with `--at`, or with
12
+ * `--from` and exclusive `--to`, in film seconds. New marks need `--note`.
13
+ * `--mark` opens an existing receipt or, beside a file and selected time,
14
+ * explicitly rebinds it. A rebind can reuse the note text. `--reviewer`,
15
+ * `--decision` and `--viewed` belong together on a mark or rebind. Still review
16
+ * needs `--at`. Playback and listening need `--from` and `--to`. `--out`
17
+ * selects the output folder.
25
18
  */
26
19
  function readAutoMovieReviewOptions(values) {
27
20
  for (const [key, value] of values) {
@@ -30,10 +23,19 @@ function readAutoMovieReviewOptions(values) {
30
23
  if (value.trim() === "")
31
24
  throw new Error(`Review option --${key} needs a value`);
32
25
  }
26
+ return values.has("file") || values.has("mark")
27
+ ? fileOptions(values)
28
+ : inspectorOptions(values);
29
+ }
30
+ /** Record only a loopback HTTP Inspector for a finite wall-clock duration. */
31
+ function inspectorOptions(values) {
33
32
  const url = values.get("url");
34
33
  const text = values.get("seconds");
35
34
  if (url === undefined || text === undefined)
36
- throw new Error("Review needs --url <inspector address> and --seconds <s>");
35
+ throw new Error("Review needs --url <inspector address> and --seconds <s>, or --file / --mark");
36
+ for (const key of values.keys())
37
+ if (key !== "url" && key !== "seconds" && key !== "out")
38
+ throw new Error(`Review option --${key} needs --file or --mark`);
37
39
  let address;
38
40
  try {
39
41
  address = new URL(url);
@@ -51,4 +53,66 @@ function readAutoMovieReviewOptions(values) {
51
53
  throw new Error(`Review --seconds "${text}" is not a number of seconds above 0 and at most ${LONGEST}`);
52
54
  return { url: address.href, seconds, out: values.get("out") ?? null };
53
55
  }
56
+ /** Admits a new mark, an explicit rebind, or replay of an existing mark. */
57
+ function fileOptions(values) {
58
+ if (values.has("url") || values.has("seconds"))
59
+ throw new Error("Review --url and --seconds apply only to Inspector recording");
60
+ const file = values.get("file") ?? null;
61
+ const mark = values.get("mark") ?? null;
62
+ const note = values.get("note") ?? null;
63
+ const at = second(values, "at");
64
+ const from = second(values, "from");
65
+ const to = second(values, "to");
66
+ if (at !== null && (from !== null || to !== null))
67
+ throw new Error("Review --at excludes --from and --to");
68
+ if ((from === null) !== (to === null) || (from !== null && to <= from))
69
+ throw new Error("Review needs both --from and --to with --from below --to");
70
+ const requested = at !== null ? { from: at, to: null } : from !== null ? { from, to } : null;
71
+ if (requested !== null && file === null)
72
+ throw new Error("Review a new position with --file");
73
+ if (mark === null && (requested === null || note === null))
74
+ throw new Error("A new review mark needs --at or --from and --to, and --note");
75
+ const reviewer = values.get("reviewer") ?? null;
76
+ const decision = values.get("decision") ?? null;
77
+ const viewed = values.get("viewed") ?? null;
78
+ if (decision !== null &&
79
+ decision !== "accepted" &&
80
+ decision !== "needs-repair")
81
+ throw new Error("Review --decision takes accepted or needs-repair");
82
+ if (viewed !== null &&
83
+ viewed !== "still" &&
84
+ viewed !== "playback" &&
85
+ viewed !== "listening")
86
+ throw new Error("Review --viewed takes still, playback or listening");
87
+ if ((reviewer === null) !== (decision === null) ||
88
+ (decision === null) !== (viewed === null))
89
+ throw new Error("Give --reviewer, --decision and --viewed together");
90
+ if (requested === null && (note !== null || reviewer !== null))
91
+ throw new Error("Add a note or decision at an explicit position with --file");
92
+ if (viewed === "still" && at === null)
93
+ throw new Error("Still review needs --at to select one frame");
94
+ if ((requested === null || requested.to === null) &&
95
+ (viewed === "playback" || viewed === "listening"))
96
+ throw new Error("Playback and listening review need --from and --to");
97
+ return {
98
+ file,
99
+ mark,
100
+ requested,
101
+ note,
102
+ reviewer,
103
+ decision,
104
+ viewed,
105
+ out: values.get("out") ?? null,
106
+ };
107
+ }
108
+ /** Reads a finite nonnegative film second, or null when absent. */
109
+ function second(values, key) {
110
+ const text = values.get(key);
111
+ if (text === undefined)
112
+ return null;
113
+ const value = Number(text);
114
+ if (!Number.isFinite(value) || value < 0)
115
+ throw new Error(`Review --${key} needs a finite nonnegative second`);
116
+ return value;
117
+ }
54
118
  //# sourceMappingURL=readAutoMovieReviewO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K,IAAI,IAAI,QAAQ,KAAK,IAAI,CAAC;QAC5D,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,IAAI,MAAM,KAAK,OAAO,IAAI,EAAE,KAAK,IAAI;QACnC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,IACE,CAAC,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,EAAE,KAAK,IAAI,CAAC;QAC7C,CAAC,MAAM,KAAK,UAAU,IAAI,MAAM,KAAK,WAAW,CAAC;QAEjD,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,OAAO;QACL,IAAI;QACJ,IAAI;QACJ,SAAS;QACT,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,MAAM;QACN,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI;KAC/B,CAAC;AACJ,CAAC;AAED,mEAAmE;AACnE,SAAS,MAAM,CACb,MAAmC,EACnC,GAAW;IAEX,MAAM,IAAI,GAAuB,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACpC,MAAM,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,YAAY,GAAG,oCAAoC,CAAC,CAAC;IACvE,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,12 +1,6 @@
1
1
  /**
2
- * The source revision a capture records: the production's git commit, with `+changes` when its working tree differs from that commit, or `unrecorded` when the folder is not in a git checkout or git is not installed.
3
- *
4
- * @evidence contracts/development/common.md#meaningful-documentation States the three forms and when each is written.
5
- * @evidence contracts/development/implementation.md#principled-implementation `git rev-parse HEAD` names the commit and `git status --porcelain` is empty exactly when nothing differs from it, so the revision says whether the commit alone repeats the capture.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two git calls, one fallback.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing revision is written as `unrecorded`, never as a guessed commit.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Two short processes per capture.
9
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per capture, since the tree may change between captures.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Both processes end before it returns.
2
+ * The source revision a capture records: the production's git commit, with
3
+ * `+changes` when its working tree differs from that commit, or `unrecorded`
4
+ * when the folder is not in a git checkout or git is not installed.
11
5
  */
12
6
  export declare function readAutoMovieRevision(root: string): string;
@@ -3,15 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readAutoMovieRevision = readAutoMovieRevision;
4
4
  const node_child_process_1 = require("node:child_process");
5
5
  /**
6
- * The source revision a capture records: the production's git commit, with `+changes` when its working tree differs from that commit, or `unrecorded` when the folder is not in a git checkout or git is not installed.
7
- *
8
- * @evidence contracts/development/common.md#meaningful-documentation States the three forms and when each is written.
9
- * @evidence contracts/development/implementation.md#principled-implementation `git rev-parse HEAD` names the commit and `git status --porcelain` is empty exactly when nothing differs from it, so the revision says whether the commit alone repeats the capture.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two git calls, one fallback.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing revision is written as `unrecorded`, never as a guessed commit.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Two short processes per capture.
13
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per capture, since the tree may change between captures.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Both processes end before it returns.
6
+ * The source revision a capture records: the production's git commit, with
7
+ * `+changes` when its working tree differs from that commit, or `unrecorded`
8
+ * when the folder is not in a git checkout or git is not installed.
15
9
  */
16
10
  function readAutoMovieRevision(root) {
17
11
  const git = (args) => (0, node_child_process_1.execFileSync)("git", ["-C", root, ...args], {
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieRevision.js","sourceRoot":"","sources":["../src/readAutoMovieRevision.ts"],"names":[],"mappings":";;;AAAA,2DAAkD;AAElD;;;;;;;;;;GAUG;AACH,+BAAsC,IAAY;IAChD,MAAM,GAAG,GAA+B,CAAC,IAAc,EAAU,EAAE,CACjE,IAAA,iCAAY,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE;QACzC,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;QACnC,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,IAAI,EAAE,CAAC;IACZ,IAAI,CAAC;QACH,MAAM,MAAM,GAAW,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;QAClD,OAAO,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE;YACrD,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,GAAG,MAAM,UAAU,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,YAAY,CAAC;IACtB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"readAutoMovieRevision.js","sourceRoot":"","sources":["../src/readAutoMovieRevision.ts"],"names":[],"mappings":";;;AAAA,2DAAkD;AAElD;;;;GAIG;AACH,+BAAsC,IAAY;IAChD,MAAM,GAAG,GAA+B,CAAC,IAAc,EAAU,EAAE,CACjE,IAAA,iCAAY,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE;QACzC,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;QACnC,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,IAAI,EAAE,CAAC;IACZ,IAAI,CAAC;QACH,MAAM,MAAM,GAAW,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;QAClD,OAAO,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE;YACrD,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,GAAG,MAAM,UAAU,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,YAAY,CAAC;IACtB,CAAC;AACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Admit the CLI's verification module, subjects, selected checks and one
3
+ * optional gate. Status is read-only without `--run`. A gate evaluates its
4
+ * whole stage even when `--only` limits execution to named check IDs.
5
+ *
6
+ * @param args The tokens after the command, excluding the executable name.
7
+ * @returns Production-relative module path, selection and output mode.
8
+ * @throws On malformed options, blank values or a repeated single-value option.
9
+ */
10
+ export declare function readAutoMovieVerifyOptions(args: readonly string[]): {
11
+ module: string;
12
+ subjects: string[];
13
+ only: string[];
14
+ require: string | null;
15
+ run: boolean;
16
+ json: boolean;
17
+ };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readAutoMovieVerifyOptions = readAutoMovieVerifyOptions;
4
+ const node_util_1 = require("node:util");
5
+ /**
6
+ * Admit the CLI's verification module, subjects, selected checks and one
7
+ * optional gate. Status is read-only without `--run`. A gate evaluates its
8
+ * whole stage even when `--only` limits execution to named check IDs.
9
+ *
10
+ * @param args The tokens after the command, excluding the executable name.
11
+ * @returns Production-relative module path, selection and output mode.
12
+ * @throws On malformed options, blank values or a repeated single-value option.
13
+ */
14
+ function readAutoMovieVerifyOptions(args) {
15
+ const parsed = (0, node_util_1.parseArgs)({
16
+ args: [...args],
17
+ options: {
18
+ module: { type: "string", multiple: true },
19
+ subject: { type: "string", multiple: true },
20
+ only: { type: "string", multiple: true },
21
+ require: { type: "string", multiple: true },
22
+ run: { type: "boolean" },
23
+ json: { type: "boolean" },
24
+ },
25
+ }).values;
26
+ if ((parsed.module?.length ?? 0) > 1 || (parsed.require?.length ?? 0) > 1)
27
+ throw new Error("verify takes at most one --module and one --require.");
28
+ const texts = [
29
+ ...(parsed.module ?? []),
30
+ ...(parsed.subject ?? []),
31
+ ...(parsed.only ?? []),
32
+ ...(parsed.require ?? []),
33
+ ];
34
+ if (texts.some((text) => text.trim().length === 0))
35
+ throw new Error("verify option values must not be blank.");
36
+ return {
37
+ module: parsed.module?.[0] ?? "src/executable/verify.ts",
38
+ subjects: [...new Set(parsed.subject ?? [])],
39
+ only: [...new Set(parsed.only ?? [])],
40
+ require: parsed.require?.[0] ?? null,
41
+ run: parsed.run ?? false,
42
+ json: parsed.json ?? false,
43
+ };
44
+ }
45
+ //# sourceMappingURL=readAutoMovieVerifyOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readAutoMovieVerifyOptions.js","sourceRoot":"","sources":["../src/readAutoMovieVerifyOptions.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC;;;;;;;;GAQG;AACH,oCAA2C,IAAuB;IAQhE,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC;QACvB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;QACf,OAAO,EAAE;YACP,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3C,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3C,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACxB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC1B;KACF,CAAC,CAAC,MAAM,CAAC;IACV,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;QACvE,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,MAAM,KAAK,GAAa;QACtB,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC;QACxB,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACzB,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACtB,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;KAC1B,CAAC;IACF,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;QACjE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAE7D,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,0BAA0B;QACxD,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC5C,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QACrC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI;QACpC,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK;QACxB,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,KAAK;KAC3B,CAAC;AACJ,CAAC"}
@@ -1,15 +1,11 @@
1
1
  /**
2
- * Read a video file's clock and raster from the log FFmpeg writes when it opens the file: the `Duration:` of the input and the size and rate of its first video stream.
2
+ * Read a video file's clock and raster from the log FFmpeg writes when it opens
3
+ * the file: the `Duration:` of the input and the size and rate of its first
4
+ * video stream.
3
5
  *
4
- * The rate is the stream's `fps` value, or its `tbr` when FFmpeg prints no `fps`. It throws naming what is missing when the log holds no duration, no video stream, or a stream without a size or a rate.
5
- *
6
- * @evidence contracts/development/common.md#meaningful-documentation States what is read from where, the rate's fallback and the refusal.
7
- * @evidence contracts/development/implementation.md#principled-implementation FFmpeg prints `Duration: HH:MM:SS.ss` for every input and, for a video stream, `WxH` followed by `fps` and `tbr`, its frame and base rates; reading the log FFmpeg already writes needs no `ffprobe`, which `ffmpeg-static` does not ship.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One expression per value.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing value throws instead of taking a default raster or rate.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the log.
11
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure reading of one log.
12
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns four numbers.
6
+ * The rate is the stream's `fps` value, or its `tbr` when FFmpeg prints no
7
+ * `fps`. It throws naming what is missing when the log holds no duration, no
8
+ * video stream, or a stream without a size or a rate.
13
9
  */
14
10
  export declare function readAutoMovieVideoProbe(log: string): {
15
11
  /** Running time in seconds. */
@@ -2,17 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readAutoMovieVideoProbe = readAutoMovieVideoProbe;
4
4
  /**
5
- * Read a video file's clock and raster from the log FFmpeg writes when it opens the file: the `Duration:` of the input and the size and rate of its first video stream.
5
+ * Read a video file's clock and raster from the log FFmpeg writes when it opens
6
+ * the file: the `Duration:` of the input and the size and rate of its first
7
+ * video stream.
6
8
  *
7
- * The rate is the stream's `fps` value, or its `tbr` when FFmpeg prints no `fps`. It throws naming what is missing when the log holds no duration, no video stream, or a stream without a size or a rate.
8
- *
9
- * @evidence contracts/development/common.md#meaningful-documentation States what is read from where, the rate's fallback and the refusal.
10
- * @evidence contracts/development/implementation.md#principled-implementation FFmpeg prints `Duration: HH:MM:SS.ss` for every input and, for a video stream, `WxH` followed by `fps` and `tbr`, its frame and base rates; reading the log FFmpeg already writes needs no `ffprobe`, which `ffmpeg-static` does not ship.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One expression per value.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing value throws instead of taking a default raster or rate.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the log.
14
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure reading of one log.
15
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns four numbers.
9
+ * The rate is the stream's `fps` value, or its `tbr` when FFmpeg prints no
10
+ * `fps`. It throws naming what is missing when the log holds no duration, no
11
+ * video stream, or a stream without a size or a rate.
16
12
  */
17
13
  function readAutoMovieVideoProbe(log) {
18
14
  const duration = log.match(/Duration:\s*(\d+):(\d{2}):(\d{2}(?:\.\d+)?)/u);
@@ -24,14 +20,25 @@ function readAutoMovieVideoProbe(log) {
24
20
  if (stream === undefined)
25
21
  throw new Error("FFmpeg reported no video stream in the file");
26
22
  const size = stream.match(/[ ,](\d{2,5})x(\d{2,5})[ ,[]/u);
27
- const rate = stream.match(/([\d.]+) fps/u) ?? stream.match(/([\d.]+) tbr/u);
28
- if (size === null || rate === null)
23
+ const exact = /^\[Parsed_showinfo_\d+ @ [^\r\n]+?\] config in time_base:\s*\d+\/\d+,\s*frame_rate:\s*(\d+)\/(\d+)(?=\s|$)/mu.exec(log);
24
+ const numerator = Number(exact?.[1]);
25
+ const denominator = Number(exact?.[2]);
26
+ const printed = stream.match(/([\d.]+) fps/u) ?? stream.match(/([\d.]+) tbr/u);
27
+ const fps = Number.isSafeInteger(numerator) &&
28
+ numerator > 0 &&
29
+ Number.isSafeInteger(denominator) &&
30
+ denominator > 0
31
+ ? numerator / denominator
32
+ : printed === null
33
+ ? null
34
+ : Number(printed[1]);
35
+ if (size === null || fps === null)
29
36
  throw new Error(`FFmpeg reported no size or rate for the video stream: ${stream.trim()}`);
30
37
  return {
31
38
  durationSeconds: Number(duration[1]) * 3600 +
32
39
  Number(duration[2]) * 60 +
33
40
  Number(duration[3]),
34
- fps: Number(rate[1]),
41
+ fps,
35
42
  width: Number(size[1]),
36
43
  height: Number(size[2]),
37
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieVideoProbe.js","sourceRoot":"","sources":["../src/readAutoMovieVideoProbe.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,iCAAwC,GAAW;IAajD,MAAM,QAAQ,GAA4B,GAAG,CAAC,KAAK,CACjD,8CAA8C,CAC/C,CAAC;IACF,IAAI,QAAQ,KAAK,IAAI;QACnB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAuB,GAAG;SACnC,KAAK,CAAC,QAAQ,CAAC;SACf,IAAI,CAAC,CAAC,IAAY,EAAW,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnE,IAAI,MAAM,KAAK,SAAS;QACtB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,MAAM,IAAI,GAA4B,MAAM,CAAC,KAAK,CAChD,+BAA+B,CAChC,CAAC;IACF,MAAM,IAAI,GACR,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACjE,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI;QAChC,MAAM,IAAI,KAAK,CACb,yDAAyD,MAAM,CAAC,IAAI,EAAE,EAAE,CACzE,CAAC;IACJ,OAAO;QACL,eAAe,EACb,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;YAC1B,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE;YACxB,MAAM,CAAC,QAAQ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S,GAAG,CAAC;QACb,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC;QACjC,WAAW,GAAG,CAAC;QACb,CAAC,CAAC,SAAS,GAAG,WAAW;QACzB,CAAC,CAAC,OAAO,KAAK,IAAI;YAChB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,IAAI,IAAI,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI;QAC/B,MAAM,IAAI,KAAK,CACb,yDAAyD,MAAM,CAAC,IAAI,EAAE,EAAE,CACzE,CAAC;IACJ,OAAO;QACL,eAAe,EACb,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;YAC1B,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE;YACxB,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACrB,GAAG;QACH,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACxB,CAAC;AACJ,CAAC"}
@@ -1,17 +1,24 @@
1
1
  /**
2
- * Record real-time playback of the running inspector page: load it, press its Play button, and record the page as a video while reading its time readout, for a person to watch.
2
+ * Record real-time playback of the running inspector page: load it, press its
3
+ * Play button, and record the page as a video while reading its time readout,
4
+ * for a person to watch.
3
5
  *
4
- * The browser draws on the GPU backend, since playback is judged in real time; the recording is Playwright's own video of the page at a 1280 by 900 viewport, which `npx playwright-core install ffmpeg` provides. The page's Play button is found by its role and name, and the readout as the `output` showing `<second> / <duration> s`, both as the inspector renders them. The readout is read at most every half second for `seconds` of wall time after the click, and the page's script errors are collected. The video begins at navigation, so it includes the page's preparation; a reading's elapsed seconds count from the click.
6
+ * The browser draws on the GPU backend, since playback is judged in real time;
7
+ * the recording is Playwright's own video of the page at a 1280 by 900
8
+ * viewport, which `npx playwright-core install ffmpeg` provides. The page's
9
+ * Play button is found by its role and name, and the readout as the `output`
10
+ * showing `<second> / <duration> s`, both as the inspector renders them. The
11
+ * readout is read at most every half second for `seconds` of wall time after
12
+ * the click, and the page's script errors are collected. The video begins at
13
+ * navigation, so it includes the page's preparation; a reading's elapsed
14
+ * seconds count from the click.
5
15
  *
6
- * An uncaught page error before the controls are ready rejects immediately with that error as its cause; every page error also prints its stack, so a failed preparation leaves a usable diagnostic. It rejects when the page shows no Play button or readout within ten minutes and when the browser produced no video. Errors during playback remain in the returned report. The browser is closed on every outcome.
7
- *
8
- * @evidence contracts/development/common.md#meaningful-documentation States what is recorded and how, which backend and why, how the controls are found, the reading cadence, the clocks of the video and the readings, the refusals and the release.
9
- * @evidence contracts/development/implementation.md#principled-implementation Playback is observed on the page a person uses, through its own controls, so the recording shows the real loop's pacing instead of seeks turned into a supposed playback; Playwright closes the context to finish writing the video.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Launch, open a recording context, load, press Play, read for the duration, close.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing control or video is an error, never a recording of nothing.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One reading per half second.
13
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each review records afresh.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The browser and its context are closed on every outcome; the readings grow by two per second of observation.
16
+ * An uncaught page error before the controls are ready rejects immediately with
17
+ * that error as its cause; every page error also prints its stack, so a failed
18
+ * preparation leaves a usable diagnostic. It rejects when the page shows no
19
+ * Play button or readout within ten minutes and when the browser produced no
20
+ * video. Errors during playback remain in the returned report. The browser is
21
+ * closed on every outcome.
15
22
  */
16
23
  export declare function recordAutoMoviePlayback(props: {
17
24
  /** Playwright's `chromium`, loaded from the production. */
@@ -36,26 +36,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.recordAutoMoviePlayback = recordAutoMoviePlayback;
37
37
  const fs = __importStar(require("node:fs/promises"));
38
38
  const planAutoMovieChromiumLaunch_1 = require("./planAutoMovieChromiumLaunch");
39
- /** Milliseconds the page may take to load and show its controls: ten minutes, room for a film that prepares its performance before its first frame. */
39
+ /**
40
+ * Milliseconds the page may take to load and show its controls: ten minutes,
41
+ * room for a film that prepares its performance before its first frame.
42
+ */
40
43
  const PREPARE = 600_000;
41
44
  /** Longest pause between two readings of the time readout, milliseconds. */
42
45
  const READING = 500;
43
- /** The time readout the inspector shows: the second and the duration, such as `1.25 / 12.00 s`. */
46
+ /**
47
+ * The time readout the inspector shows: the second and the duration, such as
48
+ * `1.25 / 12.00 s`.
49
+ */
44
50
  const READOUT = /\d+\.\d+ \/ \d+\.\d+ s/u;
45
51
  /**
46
- * Record real-time playback of the running inspector page: load it, press its Play button, and record the page as a video while reading its time readout, for a person to watch.
47
- *
48
- * The browser draws on the GPU backend, since playback is judged in real time; the recording is Playwright's own video of the page at a 1280 by 900 viewport, which `npx playwright-core install ffmpeg` provides. The page's Play button is found by its role and name, and the readout as the `output` showing `<second> / <duration> s`, both as the inspector renders them. The readout is read at most every half second for `seconds` of wall time after the click, and the page's script errors are collected. The video begins at navigation, so it includes the page's preparation; a reading's elapsed seconds count from the click.
52
+ * Record real-time playback of the running inspector page: load it, press its
53
+ * Play button, and record the page as a video while reading its time readout,
54
+ * for a person to watch.
49
55
  *
50
- * An uncaught page error before the controls are ready rejects immediately with that error as its cause; every page error also prints its stack, so a failed preparation leaves a usable diagnostic. It rejects when the page shows no Play button or readout within ten minutes and when the browser produced no video. Errors during playback remain in the returned report. The browser is closed on every outcome.
56
+ * The browser draws on the GPU backend, since playback is judged in real time;
57
+ * the recording is Playwright's own video of the page at a 1280 by 900
58
+ * viewport, which `npx playwright-core install ffmpeg` provides. The page's
59
+ * Play button is found by its role and name, and the readout as the `output`
60
+ * showing `<second> / <duration> s`, both as the inspector renders them. The
61
+ * readout is read at most every half second for `seconds` of wall time after
62
+ * the click, and the page's script errors are collected. The video begins at
63
+ * navigation, so it includes the page's preparation; a reading's elapsed
64
+ * seconds count from the click.
51
65
  *
52
- * @evidence contracts/development/common.md#meaningful-documentation States what is recorded and how, which backend and why, how the controls are found, the reading cadence, the clocks of the video and the readings, the refusals and the release.
53
- * @evidence contracts/development/implementation.md#principled-implementation Playback is observed on the page a person uses, through its own controls, so the recording shows the real loop's pacing instead of seeks turned into a supposed playback; Playwright closes the context to finish writing the video.
54
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Launch, open a recording context, load, press Play, read for the duration, close.
55
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing control or video is an error, never a recording of nothing.
56
- * @evidence contracts/development/implementation.md#efficient-algorithms One reading per half second.
57
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each review records afresh.
58
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The browser and its context are closed on every outcome; the readings grow by two per second of observation.
66
+ * An uncaught page error before the controls are ready rejects immediately with
67
+ * that error as its cause; every page error also prints its stack, so a failed
68
+ * preparation leaves a usable diagnostic. It rejects when the page shows no
69
+ * Play button or readout within ten minutes and when the browser produced no
70
+ * video. Errors during playback remain in the returned report. The browser is
71
+ * closed on every outcome.
59
72
  */
60
73
  async function recordAutoMoviePlayback(props) {
61
74
  const chromium = props.chromium;
@@ -1 +1 @@
1
- {"version":3,"file":"recordAutoMoviePlayback.js","sourceRoot":"","sources":["../src/recordAutoMoviePlayback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,6CAAyB;AAEvC,+EAA4E;AAE5E,uJAAuJ;AACvJ,MAAM,OAAO,GAAW,OAAO,CAAC;AAEhC,4EAA4E;AAC5E,MAAM,OAAO,GAAW,GAAG,CAAC;AAE5B,mGAAmG;AACnG,MAAM,OAAO,GAAW,yBAAyB,CAAC;AAkDlD;;;;;;;;;;;;;;GAcG;AACI,KAAK,kCAAkC,KAe7C;IAUC,MAAM,QAAQ,GAAuB,KAAK,CAAC,QAA8B,C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OAAO,CAAC,CAAC,CAClE,CACF,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,GAAuC,IAAI,CAAC,KAAK,EAAE,CAAC;QAC/D,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;QACtB,IAAI,KAAK,KAAK,IAAI;YAChB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAChE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACzD,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC"}
@@ -1,15 +1,21 @@
1
1
  /**
2
- * Run `automovie render` in a production: draw one subject of a module's draw page frame by frame in headless Chromium and encode it into one video, resolving to the exit status.
2
+ * Run `automovie render` in a production: draw one subject of a module's draw
3
+ * page frame by frame in headless Chromium and encode it into one video,
4
+ * resolving to the exit status.
3
5
  *
4
- * Options are read by `readAutoMovieCaptureArguments` and split by `readAutoMovieRenderOptions`; the rest is the request, of which a render takes only `subject`, read by `parseAutoMovieCapturePlanRequest` as `capture` reads it, and any other key is refused. A `--props` file is read as JSON before anything starts. FFmpeg is resolved before the page is built, so a missing encoder costs no drawing. The work is `renderAutoMovieVideo` through one `AutoMovieCaptureHost`, closed on every outcome. It prints the video, the report and the frame count, and resolves to 0; a refusal throws to `run`, which prints it.
5
- *
6
- * @evidence contracts/development/common.md#meaningful-documentation States how options are read, the order of the checks, what does the work, what is printed and the status.
7
- * @evidence contracts/development/implementation.md#principled-implementation Every rule is the render package's or `renderAutoMovieVideo`'s; the command loads the production's packages and reports.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read, resolve FFmpeg, open the host, render, report.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An unknown option and a request key a render cannot honour are refused, and FFmpeg's absence fails before any drawing.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms One page build, one browser and one encode.
11
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One render per command.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The host is closed on every outcome.
6
+ * Options are read by `readAutoMovieCaptureArguments` and split by
7
+ * `readAutoMovieRenderOptions`; the rest is the request, of which a render
8
+ * takes only `subject` and `passes`, read by `parseAutoMovieCapturePlanRequest`
9
+ * as `capture` reads them, and any other key is refused. `passes` names the
10
+ * control channels drawn beside the film, admitted by
11
+ * `admitAutoMovieControlPasses` before anything is drawn: guide passes other
12
+ * than `beauty`, each once, so an inspection shade such as `clay` is refused
13
+ * too. `--background transparent` renders the straight-alpha layer and refuses
14
+ * `--passes`. A `--props` file is read as JSON before anything starts. FFmpeg
15
+ * is resolved before the page is built, so a missing encoder costs no drawing.
16
+ * The work is `renderAutoMovieVideo` through one `AutoMovieCaptureHost`, closed
17
+ * on every outcome. It prints the video, the report and the frame count, and
18
+ * resolves to 0; a refusal throws to `run`, which prints it.
13
19
  */
14
20
  export declare function renderAutoMovie(props: {
15
21
  /** The tokens after `render`. */
@@ -42,27 +42,38 @@ const readAutoMovieRenderOptions_1 = require("./readAutoMovieRenderOptions");
42
42
  const renderAutoMovieVideo_1 = require("./renderAutoMovieVideo");
43
43
  const resolveAutoMovieFfmpeg_1 = require("./resolveAutoMovieFfmpeg");
44
44
  /**
45
- * Run `automovie render` in a production: draw one subject of a module's draw page frame by frame in headless Chromium and encode it into one video, resolving to the exit status.
45
+ * Run `automovie render` in a production: draw one subject of a module's draw
46
+ * page frame by frame in headless Chromium and encode it into one video,
47
+ * resolving to the exit status.
46
48
  *
47
- * Options are read by `readAutoMovieCaptureArguments` and split by `readAutoMovieRenderOptions`; the rest is the request, of which a render takes only `subject`, read by `parseAutoMovieCapturePlanRequest` as `capture` reads it, and any other key is refused. A `--props` file is read as JSON before anything starts. FFmpeg is resolved before the page is built, so a missing encoder costs no drawing. The work is `renderAutoMovieVideo` through one `AutoMovieCaptureHost`, closed on every outcome. It prints the video, the report and the frame count, and resolves to 0; a refusal throws to `run`, which prints it.
48
- *
49
- * @evidence contracts/development/common.md#meaningful-documentation States how options are read, the order of the checks, what does the work, what is printed and the status.
50
- * @evidence contracts/development/implementation.md#principled-implementation Every rule is the render package's or `renderAutoMovieVideo`'s; the command loads the production's packages and reports.
51
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Read, resolve FFmpeg, open the host, render, report.
52
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An unknown option and a request key a render cannot honour are refused, and FFmpeg's absence fails before any drawing.
53
- * @evidence contracts/development/implementation.md#efficient-algorithms One page build, one browser and one encode.
54
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One render per command.
55
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The host is closed on every outcome.
49
+ * Options are read by `readAutoMovieCaptureArguments` and split by
50
+ * `readAutoMovieRenderOptions`; the rest is the request, of which a render
51
+ * takes only `subject` and `passes`, read by `parseAutoMovieCapturePlanRequest`
52
+ * as `capture` reads them, and any other key is refused. `passes` names the
53
+ * control channels drawn beside the film, admitted by
54
+ * `admitAutoMovieControlPasses` before anything is drawn: guide passes other
55
+ * than `beauty`, each once, so an inspection shade such as `clay` is refused
56
+ * too. `--background transparent` renders the straight-alpha layer and refuses
57
+ * `--passes`. A `--props` file is read as JSON before anything starts. FFmpeg
58
+ * is resolved before the page is built, so a missing encoder costs no drawing.
59
+ * The work is `renderAutoMovieVideo` through one `AutoMovieCaptureHost`, closed
60
+ * on every outcome. It prints the video, the report and the frame count, and
61
+ * resolves to 0; a refusal throws to `run`, which prints it.
56
62
  */
57
63
  async function renderAutoMovie(props) {
58
64
  const { root } = props;
59
65
  const render = (0, loadAutoMovieProductionModule_1.loadAutoMovieProductionModule)(root, "@automovie/render");
60
66
  const options = (0, readAutoMovieRenderOptions_1.readAutoMovieRenderOptions)(render.readAutoMovieCaptureArguments(props.args));
61
- // The request names the subject; a render draws its whole clock through its own camera, so no other key applies.
67
+ // The request names the subject and the control passes; a render draws its whole clock through its own camera, so no other key applies.
62
68
  const request = render.parseAutoMovieCapturePlanRequest(options.request);
63
69
  for (const key of options.request.keys())
64
- if (key !== "subject")
65
- throw new Error(`Render draws a subject's whole clock through its own camera; the request key --${key} does not apply, only --subject`);
70
+ if (key !== "subject" && key !== "passes")
71
+ throw new Error(`Render draws a subject's whole clock through its own camera; the request key --${key} does not apply, only --subject and --passes`);
72
+ const passes = options.request.has("passes")
73
+ ? render.admitAutoMovieControlPasses(request.passes)
74
+ : [];
75
+ if (options.background === "transparent" && passes.length !== 0)
76
+ throw new Error("Render --background transparent draws the beauty layer alone; guide passes keep their own black background, so --passes does not apply");
66
77
  const data = options.props === null
67
78
  ? null
68
79
  : JSON.parse(await fs.readFile(path.resolve(root, options.props), "utf8"));
@@ -74,6 +85,7 @@ async function renderAutoMovie(props) {
74
85
  root,
75
86
  module: options.module,
76
87
  backend: options.backend,
88
+ timeout: options.timeout,
77
89
  env: props.env,
78
90
  });
79
91
  try {
@@ -84,8 +96,13 @@ async function renderAutoMovie(props) {
84
96
  props: data,
85
97
  ...(options.out === null ? {} : { out: options.out }),
86
98
  ffmpeg,
99
+ passes,
100
+ background: options.background,
87
101
  });
88
- process.stdout.write(`render: ${written.frames} frames into ${written.video}\nbackend ${host.backend}\n${written.report}\n`);
102
+ process.stdout.write(`render: ${written.frames} frames into ${written.video}\nbackend ${host.backend}\n${written.report}\n` +
103
+ (written.controls === null
104
+ ? ""
105
+ : `controls ${passes.join(",")} in ${written.controls}\n`));
89
106
  return 0;
90
107
  }
91
108
  finally {
@@ -1 +1 @@
1
- {"version":3,"file":"renderAutoMovie.js","sourceRoot":"","sources":["../src/renderAutoMovie.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAY,EAAE,6CAAyB;AACvC,MAAY,IAAI,sCAAkB;AAElC,iEAA8D;AAC9D,mFAAgF;AAChF,6EAA0E;AAC1E,iEAA8D;AAC9D,qEAAkE;AAElE;;;;;;;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