automovie 0.3.4 → 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
@@ -1,32 +1,56 @@
1
- import type { IAutoMovieCapturePlanRequest, IAutoMovieCaptureRecord } from "@automovie/interface";
1
+ import type { IAutoMovieCapturePlanRequest, IAutoMovieCaptureRecord, IAutoMovieCaptureStorage } from "@automovie/interface";
2
2
  import type * as Render from "@automovie/render";
3
3
  import type { AutoMovieCaptureBackend } from "./AutoMovieCaptureBackend";
4
4
  /**
5
- * The Node host that draws a production's subjects in headless Chromium: one built draw page, one browser, and any number of sessions, captures and renders through them.
5
+ * The Node host that draws a production's subjects in headless Chromium: one
6
+ * built draw page, one browser, and any number of sessions, captures and
7
+ * renders through them.
6
8
  *
7
- * `open` loads `@automovie/render`, `vite` and `playwright-core` from the production, builds and serves the draw page for a subject module, and launches Chromium with the asked backend. Each `capture` opens a fresh page with the subject and props injected before it loads, describes the subject, plans the request against it, and runs the capture core with `node:fs/promises` as storage and the page's draw function as the draw, so every saved picture comes from the draw function. `close` ends the browser and the server and deletes the built page. `session` opens one subject for any other host that draws through the page, such as `renderAutoMovieVideo`. The `automovie capture` and `automovie render` commands use one host for one subject; a package with many subjects, such as the motion cases, uses one host for all of them.
9
+ * `open` loads `@automovie/render`, `vite` and `playwright-core` from the
10
+ * production, builds and serves the draw page for a subject module, and
11
+ * launches Chromium with the asked backend. Each `capture` opens a fresh page
12
+ * with the subject and props injected before it loads, describes the subject,
13
+ * plans the request against it, and runs the capture core with
14
+ * `node:fs/promises` as storage and the page's draw function as the draw, so
15
+ * every saved picture comes from the draw function. `close` ends the browser
16
+ * and the server and deletes the built page. `session` opens one subject for
17
+ * any other host that draws through the page, such as `renderAutoMovieVideo`.
18
+ * The `automovie capture` and `automovie render` commands use one host for one
19
+ * subject; a package with many subjects, such as the motion cases, uses one
20
+ * host for all of them.
8
21
  *
9
22
  * ```ts
10
- * const host = await AutoMovieCaptureHost.open({ root, module: "src/subjects.ts", backend: "software", env: process.env });
23
+ * const host = await AutoMovieCaptureHost.open({
24
+ * root,
25
+ * module: "src/subjects.ts",
26
+ * backend: "software",
27
+ * env: process.env,
28
+ * });
11
29
  * try {
12
30
  * const record = await host.capture({ request, props: null });
13
31
  * } finally {
14
32
  * await host.close();
15
33
  * }
16
34
  * ```
17
- *
18
- * @evidence contracts/development/common.md#meaningful-documentation States what open loads, builds and launches, every step of a capture, what close releases, and both users, and shows the order.
19
- * @evidence contracts/development/design.md#principled-representation A host is the three long-lived resources a capture needs and the render module they were loaded with; a capture is a request, the module's props and a folder.
20
- * @evidence contracts/development/design.md#minimal-and-owned-surface `open`, `capture`, `close`, and the `backend` the command reports; planning, drawing, files and records are the render package's.
21
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No subject kind is named; the module and its props say what is drawn.
22
35
  */
23
36
  export declare class AutoMovieCaptureHost {
24
- /** The production's `@automovie/render`, which drew the page; a host that draws through `session` uses it for the rules it applies. */
37
+ /**
38
+ * The production's `@automovie/render`, which drew the page; a host that
39
+ * draws through `session` uses it for the rules it applies.
40
+ */
25
41
  readonly render: typeof Render;
26
- /** The backend and Chromium version, such as `swiftshader; Chromium 131.0.6778.33`. */
42
+ /**
43
+ * The backend and Chromium version, such as `swiftshader; Chromium
44
+ * 131.0.6778.33`.
45
+ */
27
46
  readonly backend: string;
28
47
  /** The production's root folder. */
29
48
  private readonly root;
49
+ /**
50
+ * Per-call milliseconds for page navigation, draw-function readiness, subject
51
+ * creation and drawing.
52
+ */
53
+ private readonly timeout;
30
54
  /** The launched browser. */
31
55
  private readonly browser;
32
56
  /** The served draw page. */
@@ -34,17 +58,13 @@ export declare class AutoMovieCaptureHost {
34
58
  /** Hold opened resources; `open` acquires them. */
35
59
  private constructor();
36
60
  /**
37
- * Load the production's packages, build and serve the draw page for the subject module, and launch Chromium.
61
+ * Load the production's packages, build and serve the draw page for the
62
+ * subject module, and launch Chromium.
38
63
  *
39
- * It rejects naming a package the production lacks, a missing module, a failed build, and a missing Chromium with the command that installs it; whatever was started before the failure is stopped.
40
- *
41
- * @evidence contracts/development/common.md#meaningful-documentation States the three steps, the refusals and the cleanup.
42
- * @evidence contracts/development/implementation.md#principled-implementation Every package comes from the production, so the page draws with the renderer the production installed, and the browser is Playwright's pinned build with the stated backend.
43
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Load, serve, launch; building and launching belong to their own functions.
44
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failure is reported, never answered by another backend or a development server.
45
- * @evidence contracts/development/implementation.md#efficient-algorithms One build and one launch for every capture of the host.
46
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The built page and the browser serve every capture until `close`.
47
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The host owns the server, its scratch folder and the browser until `close`; a failed launch stops the server first.
64
+ * It validates the optional draw-session budget before acquiring resources.
65
+ * It rejects naming a package the production lacks, a missing module, a
66
+ * failed build, and a missing Chromium with the command that installs it;
67
+ * whatever was started before the failure is stopped.
48
68
  */
49
69
  static open(props: {
50
70
  /** The production's root folder. */
@@ -55,19 +75,22 @@ export declare class AutoMovieCaptureHost {
55
75
  backend: AutoMovieCaptureBackend;
56
76
  /** The environment, read for `CHROME_PATH`. */
57
77
  env: Readonly<Record<string, string | undefined>>;
78
+ /**
79
+ * Per-call milliseconds for page navigation, draw-function readiness,
80
+ * subject creation and drawing. Defaults to 120,000. Invalid timer delays
81
+ * fail before resources are acquired.
82
+ */
83
+ timeout?: number;
58
84
  }): Promise<AutoMovieCaptureHost>;
59
85
  /**
60
- * Open a fresh page of the served draw page with a subject and its props injected before it loads, and describe the subject through it.
61
- *
62
- * The returned session owns the page; the caller closes it. An uncaught browser error during initialization rejects immediately with the original cause and logs its stack; console errors are forwarded too. A page that installs no draw function or cannot describe its subject rejects, and the page is closed first.
86
+ * Open a fresh page of the served draw page with a subject and its props
87
+ * injected before it loads, and describe the subject through it.
63
88
  *
64
- * @evidence contracts/development/common.md#meaningful-documentation States what is opened and injected, who closes it, and the refusal.
65
- * @evidence contracts/development/implementation.md#principled-implementation Every picture of a capture or a render comes through one such session, so both hosts draw through the same function.
66
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Observe the browser, race opening against a script failure, and close the page on rejection.
67
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed open is reported, never retried.
68
- * @evidence contracts/development/implementation.md#efficient-algorithms One page per call.
69
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call is a fresh page, because props differ between subjects.
70
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page passes to the returned session, or is closed here when opening fails.
89
+ * The returned session owns the page; the caller closes it. An uncaught
90
+ * browser error during initialization rejects immediately with the original
91
+ * cause and logs its stack; console errors are forwarded too. A page that
92
+ * installs no draw function or cannot describe its subject rejects, and the
93
+ * page is closed first.
71
94
  */
72
95
  session(props: {
73
96
  /** Name of the subject, or null for the page's only subject. */
@@ -76,40 +99,37 @@ export declare class AutoMovieCaptureHost {
76
99
  props: unknown;
77
100
  }): Promise<Render.AutoMovieDrawSession>;
78
101
  /**
79
- * Capture one subject: open a page with the subject and props injected, plan the request against what it describes, and draw every cell into the folder at `out`.
80
- *
81
- * The revision recorded is the production's git commit. It rejects what the planner or the folder refuses before anything is drawn, and a page that installs no draw function; the page is closed on every outcome.
102
+ * Capture one subject: open a page with the subject and props injected, plan
103
+ * the request against what it describes, and draw every cell into the folder
104
+ * at `out`.
82
105
  *
83
- * @evidence contracts/development/common.md#meaningful-documentation States the steps, the revision and the page's lifetime, and which refusals precede drawing.
84
- * @evidence contracts/development/implementation.md#principled-implementation The capture core plans, writes, records and compares; this host only supplies the subject, the draw and the storage, as law 6 of the campaign asks.
85
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Open the session, plan, open the folder, run, close the page.
86
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Storage is `node:fs/promises` itself, with no adapter.
87
- * @evidence contracts/development/implementation.md#efficient-algorithms One page per capture; drawing is the capture core's loop.
88
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each capture draws afresh, because the subject or the request differs.
89
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page opened here is closed here; the capture core holds one still at a time.
106
+ * A subject with a sound list is first handed its dialogue mouths: its lines
107
+ * are read from the production root, admitted on the clock
108
+ * `autoMovieVideoFrameRate` gives its frame rate, and planned by
109
+ * `planAutoMovieDialogueMouths`, as the delivery render plans them, so a
110
+ * still shows the mouth the delivered frame at the same second shows. A line
111
+ * the admission refuses fails the capture. The revision recorded is the
112
+ * production's git commit. It rejects what the planner or the folder refuses
113
+ * before anything is drawn, and a page that installs no draw function; the
114
+ * page is closed on every outcome.
90
115
  */
91
116
  capture(props: {
92
117
  /** The request, as `parseAutoMovieCapturePlanRequest` read it. */
93
118
  request: IAutoMovieCapturePlanRequest;
94
119
  /** Data the subject module reads, as JSON, or null. */
95
120
  props: unknown;
96
- /** The capture's root folder, relative to the production or absolute; absent, `media/capture/<subject>` of the production. */
121
+ /**
122
+ * The capture's root folder, relative to the production or absolute;
123
+ * absent, `media/capture/<subject>` of the production.
124
+ */
97
125
  out?: string;
126
+ admitFolder?: (folder: string) => void;
127
+ storage?: IAutoMovieCaptureStorage;
98
128
  /** The subject owner's own section of the record, or absent. */
99
129
  section?: Readonly<Record<string, unknown>>;
100
130
  }): Promise<Extract<IAutoMovieCaptureRecord, {
101
131
  state: "complete";
102
132
  }>>;
103
- /**
104
- * End the browser, stop the server and delete the built page.
105
- *
106
- * @evidence contracts/development/common.md#meaningful-documentation States what is released.
107
- * @evidence contracts/development/implementation.md#principled-implementation The browser ends before the server it loads pages from.
108
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two releases in order, the second attempted even when the first fails.
109
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A release failure propagates after both are attempted.
110
- * @evidence contracts/development/implementation.md#efficient-algorithms Two calls.
111
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Closing happens once.
112
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The release point of the browser, the server and the scratch folder.
113
- */
133
+ /** End the browser, stop the server and delete the built page. */
114
134
  close(): Promise<void>;
115
135
  }
@@ -38,36 +38,59 @@ const fs = __importStar(require("node:fs/promises"));
38
38
  const path = __importStar(require("node:path"));
39
39
  const launchAutoMovieChromium_1 = require("./launchAutoMovieChromium");
40
40
  const loadAutoMovieProductionModule_1 = require("./loadAutoMovieProductionModule");
41
+ const readAutoMoviePageTimeout_1 = require("./readAutoMoviePageTimeout");
41
42
  const readAutoMovieRevision_1 = require("./readAutoMovieRevision");
42
43
  const serveAutoMovieDrawPage_1 = require("./serveAutoMovieDrawPage");
43
- /** Milliseconds one page call may take before its cell fails: two minutes, room for SwiftShader to draw a large raster of a heavy scene. */
44
- const TIMEOUT = 120_000;
45
44
  /**
46
- * The Node host that draws a production's subjects in headless Chromium: one built draw page, one browser, and any number of sessions, captures and renders through them.
45
+ * The Node host that draws a production's subjects in headless Chromium: one
46
+ * built draw page, one browser, and any number of sessions, captures and
47
+ * renders through them.
47
48
  *
48
- * `open` loads `@automovie/render`, `vite` and `playwright-core` from the production, builds and serves the draw page for a subject module, and launches Chromium with the asked backend. Each `capture` opens a fresh page with the subject and props injected before it loads, describes the subject, plans the request against it, and runs the capture core with `node:fs/promises` as storage and the page's draw function as the draw, so every saved picture comes from the draw function. `close` ends the browser and the server and deletes the built page. `session` opens one subject for any other host that draws through the page, such as `renderAutoMovieVideo`. The `automovie capture` and `automovie render` commands use one host for one subject; a package with many subjects, such as the motion cases, uses one host for all of them.
49
+ * `open` loads `@automovie/render`, `vite` and `playwright-core` from the
50
+ * production, builds and serves the draw page for a subject module, and
51
+ * launches Chromium with the asked backend. Each `capture` opens a fresh page
52
+ * with the subject and props injected before it loads, describes the subject,
53
+ * plans the request against it, and runs the capture core with
54
+ * `node:fs/promises` as storage and the page's draw function as the draw, so
55
+ * every saved picture comes from the draw function. `close` ends the browser
56
+ * and the server and deletes the built page. `session` opens one subject for
57
+ * any other host that draws through the page, such as `renderAutoMovieVideo`.
58
+ * The `automovie capture` and `automovie render` commands use one host for one
59
+ * subject; a package with many subjects, such as the motion cases, uses one
60
+ * host for all of them.
49
61
  *
50
62
  * ```ts
51
- * const host = await AutoMovieCaptureHost.open({ root, module: "src/subjects.ts", backend: "software", env: process.env });
63
+ * const host = await AutoMovieCaptureHost.open({
64
+ * root,
65
+ * module: "src/subjects.ts",
66
+ * backend: "software",
67
+ * env: process.env,
68
+ * });
52
69
  * try {
53
70
  * const record = await host.capture({ request, props: null });
54
71
  * } finally {
55
72
  * await host.close();
56
73
  * }
57
74
  * ```
58
- *
59
- * @evidence contracts/development/common.md#meaningful-documentation States what open loads, builds and launches, every step of a capture, what close releases, and both users, and shows the order.
60
- * @evidence contracts/development/design.md#principled-representation A host is the three long-lived resources a capture needs and the render module they were loaded with; a capture is a request, the module's props and a folder.
61
- * @evidence contracts/development/design.md#minimal-and-owned-surface `open`, `capture`, `close`, and the `backend` the command reports; planning, drawing, files and records are the render package's.
62
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No subject kind is named; the module and its props say what is drawn.
63
75
  */
64
76
  class AutoMovieCaptureHost {
65
- /** The production's `@automovie/render`, which drew the page; a host that draws through `session` uses it for the rules it applies. */
77
+ /**
78
+ * The production's `@automovie/render`, which drew the page; a host that
79
+ * draws through `session` uses it for the rules it applies.
80
+ */
66
81
  render;
67
- /** The backend and Chromium version, such as `swiftshader; Chromium 131.0.6778.33`. */
82
+ /**
83
+ * The backend and Chromium version, such as `swiftshader; Chromium
84
+ * 131.0.6778.33`.
85
+ */
68
86
  backend;
69
87
  /** The production's root folder. */
70
88
  root;
89
+ /**
90
+ * Per-call milliseconds for page navigation, draw-function readiness, subject
91
+ * creation and drawing.
92
+ */
93
+ timeout;
71
94
  /** The launched browser. */
72
95
  browser;
73
96
  /** The served draw page. */
@@ -77,23 +100,21 @@ class AutoMovieCaptureHost {
77
100
  this.render = props.render;
78
101
  this.backend = props.backend;
79
102
  this.root = props.root;
103
+ this.timeout = props.timeout;
80
104
  this.browser = props.browser;
81
105
  this.page = props.page;
82
106
  }
83
107
  /**
84
- * Load the production's packages, build and serve the draw page for the subject module, and launch Chromium.
108
+ * Load the production's packages, build and serve the draw page for the
109
+ * subject module, and launch Chromium.
85
110
  *
86
- * It rejects naming a package the production lacks, a missing module, a failed build, and a missing Chromium with the command that installs it; whatever was started before the failure is stopped.
87
- *
88
- * @evidence contracts/development/common.md#meaningful-documentation States the three steps, the refusals and the cleanup.
89
- * @evidence contracts/development/implementation.md#principled-implementation Every package comes from the production, so the page draws with the renderer the production installed, and the browser is Playwright's pinned build with the stated backend.
90
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Load, serve, launch; building and launching belong to their own functions.
91
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failure is reported, never answered by another backend or a development server.
92
- * @evidence contracts/development/implementation.md#efficient-algorithms One build and one launch for every capture of the host.
93
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The built page and the browser serve every capture until `close`.
94
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The host owns the server, its scratch folder and the browser until `close`; a failed launch stops the server first.
111
+ * It validates the optional draw-session budget before acquiring resources.
112
+ * It rejects naming a package the production lacks, a missing module, a
113
+ * failed build, and a missing Chromium with the command that installs it;
114
+ * whatever was started before the failure is stopped.
95
115
  */
96
116
  static async open(props) {
117
+ const timeout = (0, readAutoMoviePageTimeout_1.readAutoMoviePageTimeout)(props.timeout);
97
118
  const render = (0, loadAutoMovieProductionModule_1.loadAutoMovieProductionModule)(props.root, "@automovie/render");
98
119
  const chromium = (0, loadAutoMovieProductionModule_1.loadAutoMovieProductionModule)(props.root, "playwright-core").chromium;
99
120
  // Vite's CommonJS entry warns once per load; the command loads it on purpose.
@@ -113,6 +134,7 @@ class AutoMovieCaptureHost {
113
134
  render,
114
135
  backend: launched.backend,
115
136
  root: props.root,
137
+ timeout,
116
138
  browser: launched.browser,
117
139
  page,
118
140
  });
@@ -123,17 +145,14 @@ class AutoMovieCaptureHost {
123
145
  }
124
146
  }
125
147
  /**
126
- * Open a fresh page of the served draw page with a subject and its props injected before it loads, and describe the subject through it.
127
- *
128
- * The returned session owns the page; the caller closes it. An uncaught browser error during initialization rejects immediately with the original cause and logs its stack; console errors are forwarded too. A page that installs no draw function or cannot describe its subject rejects, and the page is closed first.
148
+ * Open a fresh page of the served draw page with a subject and its props
149
+ * injected before it loads, and describe the subject through it.
129
150
  *
130
- * @evidence contracts/development/common.md#meaningful-documentation States what is opened and injected, who closes it, and the refusal.
131
- * @evidence contracts/development/implementation.md#principled-implementation Every picture of a capture or a render comes through one such session, so both hosts draw through the same function.
132
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Observe the browser, race opening against a script failure, and close the page on rejection.
133
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed open is reported, never retried.
134
- * @evidence contracts/development/implementation.md#efficient-algorithms One page per call.
135
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call is a fresh page, because props differ between subjects.
136
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page passes to the returned session, or is closed here when opening fails.
151
+ * The returned session owns the page; the caller closes it. An uncaught
152
+ * browser error during initialization rejects immediately with the original
153
+ * cause and logs its stack; console errors are forwarded too. A page that
154
+ * installs no draw function or cannot describe its subject rejects, and the
155
+ * page is closed first.
137
156
  */
138
157
  async session(props) {
139
158
  const page = await this.browser.newPage();
@@ -156,7 +175,7 @@ class AutoMovieCaptureHost {
156
175
  url: this.page.url,
157
176
  props: { subject: props.subject, props: props.props },
158
177
  backend: this.backend,
159
- timeout: TIMEOUT,
178
+ timeout: this.timeout,
160
179
  }),
161
180
  failed,
162
181
  ]);
@@ -167,17 +186,19 @@ class AutoMovieCaptureHost {
167
186
  }
168
187
  }
169
188
  /**
170
- * Capture one subject: open a page with the subject and props injected, plan the request against what it describes, and draw every cell into the folder at `out`.
171
- *
172
- * The revision recorded is the production's git commit. It rejects what the planner or the folder refuses before anything is drawn, and a page that installs no draw function; the page is closed on every outcome.
189
+ * Capture one subject: open a page with the subject and props injected, plan
190
+ * the request against what it describes, and draw every cell into the folder
191
+ * at `out`.
173
192
  *
174
- * @evidence contracts/development/common.md#meaningful-documentation States the steps, the revision and the page's lifetime, and which refusals precede drawing.
175
- * @evidence contracts/development/implementation.md#principled-implementation The capture core plans, writes, records and compares; this host only supplies the subject, the draw and the storage, as law 6 of the campaign asks.
176
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Open the session, plan, open the folder, run, close the page.
177
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Storage is `node:fs/promises` itself, with no adapter.
178
- * @evidence contracts/development/implementation.md#efficient-algorithms One page per capture; drawing is the capture core's loop.
179
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each capture draws afresh, because the subject or the request differs.
180
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The page opened here is closed here; the capture core holds one still at a time.
193
+ * A subject with a sound list is first handed its dialogue mouths: its lines
194
+ * are read from the production root, admitted on the clock
195
+ * `autoMovieVideoFrameRate` gives its frame rate, and planned by
196
+ * `planAutoMovieDialogueMouths`, as the delivery render plans them, so a
197
+ * still shows the mouth the delivered frame at the same second shows. A line
198
+ * the admission refuses fails the capture. The revision recorded is the
199
+ * production's git commit. It rejects what the planner or the folder refuses
200
+ * before anything is drawn, and a page that installs no draw function; the
201
+ * page is closed on every outcome.
181
202
  */
182
203
  async capture(props) {
183
204
  const { render } = this;
@@ -186,14 +207,36 @@ class AutoMovieCaptureHost {
186
207
  props: props.props,
187
208
  });
188
209
  try {
210
+ const root = path.resolve(this.root, props.out ?? path.join("media", "capture", session.subject.name));
211
+ props.admitFolder?.(root);
212
+ // A film with a sound list speaks in its stills as in its delivered
213
+ // frames: the same lines on the same clock give the same mouths.
214
+ const { sound, fps, durationSeconds } = session.subject;
215
+ if (sound !== undefined) {
216
+ const [numerator, denominator] = render.autoMovieVideoFrameRate(fps);
217
+ const frameRate = {
218
+ numerator,
219
+ denominator,
220
+ };
221
+ await session.speak(render.planAutoMovieDialogueMouths({
222
+ lines: await render.admitAutoMovieFilmDialogue({
223
+ sound,
224
+ frameRate,
225
+ totalFrames: Math.round(durationSeconds * fps),
226
+ read: (file) => fs.readFile(path.resolve(this.root, file)),
227
+ }),
228
+ speakers: sound.speakers,
229
+ frameRate,
230
+ }));
231
+ }
189
232
  const plan = render.planAutoMovieCapture({
190
233
  request: props.request,
191
234
  subject: session.subject,
192
235
  cuts: [],
193
236
  });
194
237
  const folder = await render.AutoMovieCaptureFolder.open({
195
- storage: fs,
196
- root: path.resolve(this.root, props.out ?? path.join("media", "capture", session.subject.name)),
238
+ storage: props.storage ?? fs,
239
+ root,
197
240
  round: props.request.round,
198
241
  compare: props.request.compare,
199
242
  });
@@ -210,17 +253,7 @@ class AutoMovieCaptureHost {
210
253
  await session.close();
211
254
  }
212
255
  }
213
- /**
214
- * End the browser, stop the server and delete the built page.
215
- *
216
- * @evidence contracts/development/common.md#meaningful-documentation States what is released.
217
- * @evidence contracts/development/implementation.md#principled-implementation The browser ends before the server it loads pages from.
218
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Two releases in order, the second attempted even when the first fails.
219
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A release failure propagates after both are attempted.
220
- * @evidence contracts/development/implementation.md#efficient-algorithms Two calls.
221
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Closing happens once.
222
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The release point of the browser, the server and the scratch folder.
223
- */
256
+ /** End the browser, stop the server and delete the built page. */
224
257
  async close() {
225
258
  try {
226
259
  await this.browser.close();
@@ -1 +1 @@
1
- {"version":3,"file":"AutoMovieCaptureHost.js","sourceRoot":"","sources":["../src/AutoMovieCaptureHost.ts"],"names":[],"mappings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CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;gBACnE,MAAM;gBACN,QAAQ,EAAE,IAAA,6CAAqB,EAAC,IAAI,CAAC,IAAI,CAAC;gBAC1C,KAAK,EAAE,MAAM;gBACb,GAAG,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;aACnE,CAAC,CAAC;QACL,CAAC;gBAAS,CAAC;YACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;IAED,kEAAkE;IAC3D,KAAK,CAAC,KAAK;QAChB,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC7B,CAAC;gBAAS,CAAC;YACT,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;CACF"}
@@ -1,12 +1,10 @@
1
1
  /**
2
2
  * One admitted CLI request, discriminated by `command`.
3
3
  *
4
- * `help` and `version` carry nothing because they are standalone requests. `create` and `add` carry their targets exactly as typed; `run` resolves them against the working directory. An explicit `name` is carried as typed; `run` chooses the name when it is absent.
5
- *
6
- * @evidence contracts/development/design.md#principled-representation Each variant carries exactly what its command needs after admission, so `run` performs no further argument parsing, except `capture`, `inspect`, `render` and `review`, whose options are read by the production's renderer's option reader once that renderer is loaded.
7
- * @evidence contracts/development/design.md#minimal-and-owned-surface A closed union over the command name lets `run` switch on one field, and the workspace family is a closed pair instead of a free path.
8
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No variant other than `capture`, `inspect`, `render` and `review` carries unparsed tokens, and theirs are read by the one option reader every host shares rather than a second grammar here.
9
- * @evidence contracts/development/common.md#meaningful-documentation Every variant and member states its meaning and who resolves it.
4
+ * `help` and `version` carry nothing because they are standalone requests.
5
+ * `create` and `add` carry their targets exactly as typed; `run` resolves them
6
+ * against the working directory. An explicit `name` is carried as typed; `run`
7
+ * chooses the name when it is absent.
10
8
  */
11
9
  export type AutoMovieCommand = {
12
10
  /** Print the usage text. */
@@ -15,45 +13,96 @@ export type AutoMovieCommand = {
15
13
  /** Print this package's version. */
16
14
  command: "version";
17
15
  } | {
18
- /** Install a single production, or with `workspace` a workspace root, into `directory`. */
16
+ /**
17
+ * Install a single production, or with `workspace` a workspace root, into
18
+ * `directory`.
19
+ */
19
20
  command: "create";
20
- /** Target directory as typed, never blank; `run` resolves it against the working directory. */
21
+ /**
22
+ * Target directory as typed, never blank; `run` resolves it against the
23
+ * working directory.
24
+ */
21
25
  directory: string;
22
26
  /** Install a pnpm workspace root instead of a single production. */
23
27
  workspace: boolean;
24
- /** Admit a non-empty target, writing over same-path files and keeping the rest. */
28
+ /**
29
+ * Admit a non-empty target, writing over same-path files and keeping the
30
+ * rest.
31
+ */
25
32
  force: boolean;
26
33
  /** Package name as typed; absent, `run` derives or asks for one. */
27
34
  name?: string;
28
35
  } | {
29
- /** Add one production to the workspace whose root is the working directory. */
36
+ /**
37
+ * Add one production to the workspace whose root is the working
38
+ * directory.
39
+ */
30
40
  command: "add";
31
41
  /** `shorts` for brief → screenplay, `series` for the whole long route. */
32
42
  family: "shorts" | "series";
33
- /** The production's directory under `movies/<family>`, one admitted path segment. */
43
+ /**
44
+ * The production's directory under `movies/<family>`, one admitted path
45
+ * segment.
46
+ */
34
47
  directory: string;
35
- /** Admit a non-empty production directory, writing over same-path files and keeping the rest. */
48
+ /**
49
+ * Admit a non-empty production directory, writing over same-path files
50
+ * and keeping the rest.
51
+ */
36
52
  force: boolean;
37
- /** Package name as typed; absent, `run` derives one from the directory segment. */
53
+ /**
54
+ * Package name as typed; absent, `run` derives one from the directory
55
+ * segment.
56
+ */
38
57
  name?: string;
39
58
  } | {
40
- /** Capture stills of a subject or a video file in the production at the working directory. */
59
+ /**
60
+ * Capture stills of a subject or a video file in the production at the
61
+ * working directory.
62
+ */
41
63
  command: "capture";
42
- /** The tokens after `capture`, as typed; `run` reads them through the production's request grammar, which only the production's `@automovie/render` holds. */
64
+ /**
65
+ * The tokens after `capture`, as typed; `run` reads them through the
66
+ * production's request grammar, which only the production's
67
+ * `@automovie/render` holds.
68
+ */
43
69
  args: string[];
44
70
  } | {
45
- /** Serve the inspector page over a subject module of the production or package at the working directory. */
71
+ /**
72
+ * Serve the inspector page over a subject module of the production or
73
+ * package at the working directory.
74
+ */
46
75
  command: "inspect";
47
- /** The tokens after `inspect`, as typed; `run` reads them through the production's request grammar, as for `capture`. */
76
+ /**
77
+ * The tokens after `inspect`, as typed; `run` reads them through the
78
+ * production's request grammar, as for `capture`.
79
+ */
48
80
  args: string[];
49
81
  } | {
50
- /** Render one subject of the production at the working directory into a video. */
82
+ /**
83
+ * Render one subject of the production at the working directory into a
84
+ * video.
85
+ */
51
86
  command: "render";
52
- /** The tokens after `render`, as typed; `run` reads them with the production's option reader. */
87
+ /**
88
+ * The tokens after `render`, as typed; `run` reads them with the
89
+ * production's option reader.
90
+ */
53
91
  args: string[];
54
92
  } | {
55
93
  /** Record real-time playback of the production's running inspector page. */
56
94
  command: "review";
57
- /** The tokens after `review`, as typed; `run` reads them with the production's option reader. */
95
+ /**
96
+ * The tokens after `review`, as typed; `run` reads them with the
97
+ * production's option reader.
98
+ */
99
+ args: string[];
100
+ } | {
101
+ /** Verify scoped production checks and observations. */
102
+ command: "verify";
103
+ /**
104
+ * The tokens after `verify`, as typed; the verification command reads
105
+ * them.
106
+ */
58
107
  args: string[];
59
108
  };
@@ -0,0 +1,6 @@
1
+ import type ffmpegPath from "ffmpeg-static";
2
+ /**
3
+ * The `ffmpeg-static` module's declared default export: the path of the binary
4
+ * it downloaded, or null on a platform it has none for.
5
+ */
6
+ export type AutoMovieFfmpegStaticPath = typeof ffmpegPath;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AutoMovieFfmpegStaticPath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieFfmpegStaticPath.js","sourceRoot":"","sources":["../src/AutoMovieFfmpegStaticPath.ts"],"names":[],"mappings":""}