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
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Reads a Node file system error's code: the `code` Node's declared error
3
+ * (`NodeJS.ErrnoException`) carries, or undefined for a value that is not an
4
+ * error or an error without one.
5
+ *
6
+ * @param error The caught value.
7
+ * @returns The error's code, or undefined.
8
+ */
9
+ export declare function readAutoMovieErrorCode(error: unknown): string | undefined;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readAutoMovieErrorCode = readAutoMovieErrorCode;
4
+ /**
5
+ * Reads a Node file system error's code: the `code` Node's declared error
6
+ * (`NodeJS.ErrnoException`) carries, or undefined for a value that is not an
7
+ * error or an error without one.
8
+ *
9
+ * @param error The caught value.
10
+ * @returns The error's code, or undefined.
11
+ */
12
+ function readAutoMovieErrorCode(error) {
13
+ if (!(error instanceof Error))
14
+ return undefined;
15
+ const errno = error;
16
+ return errno.code;
17
+ }
18
+ //# sourceMappingURL=readAutoMovieErrorCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readAutoMovieErrorCode.js","sourceRoot":"","sources":["../src/readAutoMovieErrorCode.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,gCAAuC,KAAc;IACnD,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,KAAK,GAA0B,KAAK,CAAC;IAC3C,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC"}
@@ -1,28 +1,27 @@
1
1
  /**
2
- * Split the options of `automovie inspect` into the command's own, `AUTOMOVIE_INSPECT_OPTIONS`, and the request the page opens on, which `parseAutoMovieCapturePlanRequest` reads.
2
+ * Split the options of `automovie inspect` into the command's own,
3
+ * `AUTOMOVIE_INSPECT_OPTIONS`, and the request the page opens on, which
4
+ * `parseAutoMovieCapturePlanRequest` reads.
3
5
  *
4
- * | Option | Meaning | Absent |
5
- * | --- | --- | --- |
6
- * | `--module <file>` | The subject module whose `subjects` the inspector page offers | Required |
7
- * | `--port <n>` | The port the page is served on, 1 to 65535 | A free port |
8
- * | `--props <file>` | A JSON file whose value the module's `subjects` is called with, for a module whose subjects are built from data a host computes, such as a motion case | `null` |
6
+ * | Option | Meaning | Absent |
7
+ * | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
8
+ * | `--module <file>` | The subject module whose `subjects` the inspector page offers | Required |
9
+ * | `--port <n>` | The port the page is served on, 1 to 65535 | A free port |
10
+ * | `--props <file>` | A JSON file whose value the module's `subjects` is called with, for a module whose subjects are built from data a host computes, such as a motion case | `null` |
9
11
  *
10
- * Every other option is left for the request reader, which refuses one it does not know. It throws for a missing `--module`, an empty value of any of its options, and a port that is not a whole number from 1 to 65535.
11
- *
12
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates the command's options with their meaning and absent value, says where the rest go, and states every refusal.
13
- * @evidence contracts/development/implementation.md#principled-implementation The command's keys are removed before the request is read, as the capture command does, so the address and the command line share one grammar and a command key cannot be mistaken for a request key.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass that takes the command's keys out, then the checks.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No module is guessed from the folder: the page shows what the command names.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the options.
17
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per command.
18
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh map and keeps nothing.
12
+ * Every other option is left for the request reader, which refuses one it does
13
+ * not know. It throws for a missing `--module`, an empty value of any of its
14
+ * options, and a port that is not a whole number from 1 to 65535.
19
15
  */
20
16
  export declare function readAutoMovieInspectHostOptions(values: ReadonlyMap<string, string>): {
21
17
  /** Subject module path, relative to the production or absolute. */
22
18
  module: string;
23
19
  /** The port to serve on, or null for a free one. */
24
20
  port: number | null;
25
- /** Path of the props JSON file, relative to the production or absolute, or null for none. */
21
+ /**
22
+ * Path of the props JSON file, relative to the production or absolute, or
23
+ * null for none.
24
+ */
26
25
  props: string | null;
27
26
  /** The request's own options, for the request reader. */
28
27
  request: Map<string, string>;
@@ -5,23 +5,19 @@ const AUTOMOVIE_INSPECT_OPTIONS_1 = require("./AUTOMOVIE_INSPECT_OPTIONS");
5
5
  /** Highest TCP port. */
6
6
  const PORTS = 65_535;
7
7
  /**
8
- * Split the options of `automovie inspect` into the command's own, `AUTOMOVIE_INSPECT_OPTIONS`, and the request the page opens on, which `parseAutoMovieCapturePlanRequest` reads.
8
+ * Split the options of `automovie inspect` into the command's own,
9
+ * `AUTOMOVIE_INSPECT_OPTIONS`, and the request the page opens on, which
10
+ * `parseAutoMovieCapturePlanRequest` reads.
9
11
  *
10
- * | Option | Meaning | Absent |
11
- * | --- | --- | --- |
12
- * | `--module <file>` | The subject module whose `subjects` the inspector page offers | Required |
13
- * | `--port <n>` | The port the page is served on, 1 to 65535 | A free port |
14
- * | `--props <file>` | A JSON file whose value the module's `subjects` is called with, for a module whose subjects are built from data a host computes, such as a motion case | `null` |
12
+ * | Option | Meaning | Absent |
13
+ * | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
14
+ * | `--module <file>` | The subject module whose `subjects` the inspector page offers | Required |
15
+ * | `--port <n>` | The port the page is served on, 1 to 65535 | A free port |
16
+ * | `--props <file>` | A JSON file whose value the module's `subjects` is called with, for a module whose subjects are built from data a host computes, such as a motion case | `null` |
15
17
  *
16
- * Every other option is left for the request reader, which refuses one it does not know. It throws for a missing `--module`, an empty value of any of its options, and a port that is not a whole number from 1 to 65535.
17
- *
18
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates the command's options with their meaning and absent value, says where the rest go, and states every refusal.
19
- * @evidence contracts/development/implementation.md#principled-implementation The command's keys are removed before the request is read, as the capture command does, so the address and the command line share one grammar and a command key cannot be mistaken for a request key.
20
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass that takes the command's keys out, then the checks.
21
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No module is guessed from the folder: the page shows what the command names.
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 map and keeps nothing.
18
+ * Every other option is left for the request reader, which refuses one it does
19
+ * not know. It throws for a missing `--module`, an empty value of any of its
20
+ * options, and a port that is not a whole number from 1 to 65535.
25
21
  */
26
22
  function readAutoMovieInspectHostOptions(values) {
27
23
  const request = new Map(values);
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieInspectHostOptions.js","sourceRoot":"","sources":["../src/readAutoMovieInspectHostOptions.ts"],"names":[],"mappings":";;;AAAA,2EAAwE;AAExE,wBAAwB;AACxB,MAAM,KAAK,GAAW,MAAM,CAAC;AAE7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,yCACE,MAAmC;IAcnC,MAAM,OAAO,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,KAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC7C,KAAK,MAAM,GAAG,IAAI,qDAAyB,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAuB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnD,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,KAAK,KAAK,SAAS;YAAE,SAAS;QAClC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,gBAAgB,CAAC,CAAC;QAC3D,KAAK,CAAC,GAA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AAI,KAAK,KAAK,SAAS;YAAE,SAAS;QAClC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,gBAAgB,CAAC,CAAC;QAC3D,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,MAAM,MAAM,GAAuB,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,MAAM,KAAK,SAAS;QACtB,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;IACJ,MAAM,IAAI,GAAuB,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,IAAI,GAAkB,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrE,IACE,IAAI,KAAK,IAAI;QACb,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,CAAC;QAE3D,MAAM,IAAI,KAAK,CACb,mBAAmB,IAAI,qCAAqC,KAAK,EAAE,CACpE,CAAC;IACJ,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AACtE,CAAC"}
@@ -1,18 +1,12 @@
1
1
  /**
2
- * Admit the value following `--name`: present, non-blank and not itself an option.
2
+ * Admit the value following `--name`: present, non-blank and not itself an
3
+ * option.
3
4
  *
4
- * The value is returned as typed; the template's name rule trims and admits it at render time.
5
+ * The value is returned as typed; the template's name rule trims and admits it
6
+ * at render time.
5
7
  *
6
8
  * @param value The token after `--name`, absent at the end of the arguments.
7
9
  * @returns The value.
8
10
  * @throws When the value is missing, blank or begins with `-`.
9
- *
10
- * @evidence contracts/development/implementation.md#principled-implementation Refusing a dash-leading value keeps a following option from being swallowed as the name.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure `create` and `add` share this one value rule.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The value is not normalized here; one name rule in the template decides admission.
13
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the admitted shape, that the value is unchanged, and what throws.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms One trim and prefix check, linear in the value's length.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call checks one token once.
16
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and retains nothing.
17
11
  */
18
12
  export declare function readAutoMovieNameOption(value: string | undefined): string;
@@ -2,21 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readAutoMovieNameOption = readAutoMovieNameOption;
4
4
  /**
5
- * Admit the value following `--name`: present, non-blank and not itself an option.
5
+ * Admit the value following `--name`: present, non-blank and not itself an
6
+ * option.
6
7
  *
7
- * The value is returned as typed; the template's name rule trims and admits it at render time.
8
+ * The value is returned as typed; the template's name rule trims and admits it
9
+ * at render time.
8
10
  *
9
11
  * @param value The token after `--name`, absent at the end of the arguments.
10
12
  * @returns The value.
11
13
  * @throws When the value is missing, blank or begins with `-`.
12
- *
13
- * @evidence contracts/development/implementation.md#principled-implementation Refusing a dash-leading value keeps a following option from being swallowed as the name.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure `create` and `add` share this one value rule.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The value is not normalized here; one name rule in the template decides admission.
16
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the admitted shape, that the value is unchanged, and what throws.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms One trim and prefix check, linear in the value's length.
18
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call checks one token once.
19
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and retains nothing.
20
14
  */
21
15
  function readAutoMovieNameOption(value) {
22
16
  if (value === undefined || value.startsWith("-") || value.trim() === "")
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieNameOption.js","sourceRoot":"","sources":["../src/readAutoMovieNameOption.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,iCAAwC,KAAyB;IAC/D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QACrE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"readAutoMovieNameOption.js","sourceRoot":"","sources":["../src/readAutoMovieNameOption.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,iCAAwC,KAAyB;IAC/D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QACrE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Read the per-call budget for draw-function readiness, subject
3
+ * description/creation and drawing, in milliseconds: a number as given, or
4
+ * command text converted by `Number`. It is not a total build or render
5
+ * deadline. Absence keeps the existing two-minute default. The value is not
6
+ * admitted here; Node's setTimeout applies its own rules to it, and a delay
7
+ * over its limit becomes 1 ms instead of the requested wait
8
+ * (https://nodejs.org/download/release/v22.23.0/docs/api/timers.html).
9
+ *
10
+ * @param value The budget as a number or command text, or absent.
11
+ * @returns The budget, milliseconds.
12
+ */
13
+ export declare function readAutoMoviePageTimeout(value: string | number | undefined): number;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readAutoMoviePageTimeout = readAutoMoviePageTimeout;
4
+ /**
5
+ * Read the per-call budget for draw-function readiness, subject
6
+ * description/creation and drawing, in milliseconds: a number as given, or
7
+ * command text converted by `Number`. It is not a total build or render
8
+ * deadline. Absence keeps the existing two-minute default. The value is not
9
+ * admitted here; Node's setTimeout applies its own rules to it, and a delay
10
+ * over its limit becomes 1 ms instead of the requested wait
11
+ * (https://nodejs.org/download/release/v22.23.0/docs/api/timers.html).
12
+ *
13
+ * @param value The budget as a number or command text, or absent.
14
+ * @returns The budget, milliseconds.
15
+ */
16
+ function readAutoMoviePageTimeout(value) {
17
+ if (value === undefined)
18
+ return 120_000;
19
+ return typeof value === "number" ? value : Number(value);
20
+ }
21
+ //# sourceMappingURL=readAutoMoviePageTimeout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readAutoMoviePageTimeout.js","sourceRoot":"","sources":["../src/readAutoMoviePageTimeout.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACH,kCACE,KAAkC;IAElC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC;IAExC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC"}
@@ -1,23 +1,24 @@
1
1
  import type { AutoMovieCaptureBackend } from "./AutoMovieCaptureBackend";
2
2
  /**
3
- * Split the options of `automovie render` into the command's own, `AUTOMOVIE_RENDER_OPTIONS`, and the request's, which `parseAutoMovieCapturePlanRequest` reads for the request's `subject`.
3
+ * Split the options of `automovie render` into the command's own,
4
+ * `AUTOMOVIE_RENDER_OPTIONS`, and the request's, which
5
+ * `parseAutoMovieCapturePlanRequest` reads for the request's `subject`.
4
6
  *
5
- * | Option | Meaning | Absent |
6
- * | --- | --- | --- |
7
- * | `--module <file>` | The subject module whose `subjects` the draw page offers | Required |
8
- * | `--props <file>` | A JSON file whose value the module's `subjects` is called with | `null` |
9
- * | `--out <folder>` | Where `film.mp4` and `render-report.json` go | `media/automovie/<subject>/videos` |
10
- * | `--backend <software\|gpu>` | How the browser draws | `software` |
7
+ * | Option | Meaning | Absent |
8
+ * | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
9
+ * | `--module <file>` | The subject module whose `subjects` the draw page offers | Required |
10
+ * | `--props <file>` | A JSON file whose value the module's `subjects` is called with | `null` |
11
+ * | `--out <folder>` | Where `film.mp4`, `render-report.json` and, with `--passes`, `controls/` go | `media/automovie/<subject>/videos` |
12
+ * | `--backend <software\|gpu>` | How the browser draws | `software` |
13
+ * | `--background <scene\|transparent>` | `transparent` renders a straight-alpha `film.mov` with no audio into `media/automovie/<subject>/transparent` | `scene` |
14
+ * | `--timeout-ms <milliseconds>` | Per-call budget for page navigation, draw-function readiness, subject creation and drawing. Integer 1 to 2147483647 | `120000` |
11
15
  *
12
- * Every other option is left for the request reader, which names the subject as `capture` and the inspector do; a render draws the subject's whole clock through its own camera, so `renderAutoMovie` refuses any request key but `subject`. It throws for an empty value of its own options, a missing `--module`, and a backend that is not `software` or `gpu`.
13
- *
14
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates the command's options with their meaning and absent value, says where the rest go and which of them a render admits, and states every refusal.
15
- * @evidence contracts/development/implementation.md#principled-implementation The command's keys are removed before the request is read, as `capture` and `inspect` do, so the subject has one name and one reader in every host.
16
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the listed options that takes them out, then the checks.
17
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No module is guessed from the folder.
18
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the options.
19
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per command.
20
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.
16
+ * Every other option is left for the request reader, which names the subject as
17
+ * `capture` and the inspector do; a render draws the subject's whole clock
18
+ * through its own camera, so `renderAutoMovie` refuses any request key but
19
+ * `subject` and `passes`. It throws for an empty value of its own options, a
20
+ * missing `--module`, a backend that is not `software` or `gpu`, and a
21
+ * background that is not `scene` or `transparent`.
21
22
  */
22
23
  export declare function readAutoMovieRenderOptions(values: ReadonlyMap<string, string>): {
23
24
  /** Subject module path, relative to the production or absolute. */
@@ -28,6 +29,13 @@ export declare function readAutoMovieRenderOptions(values: ReadonlyMap<string, s
28
29
  out: string | null;
29
30
  /** How the browser draws. */
30
31
  backend: AutoMovieCaptureBackend;
32
+ /**
33
+ * Per-call milliseconds for draw-function readiness, subject
34
+ * description/creation and drawing, not a total build or render deadline.
35
+ */
36
+ timeout: number;
37
+ /** `scene` for the film, `transparent` for a straight-alpha layer. */
38
+ background: "scene" | "transparent";
31
39
  /** The request's own options, for the request reader. */
32
40
  request: Map<string, string>;
33
41
  };
@@ -2,25 +2,27 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readAutoMovieRenderOptions = readAutoMovieRenderOptions;
4
4
  const AUTOMOVIE_RENDER_OPTIONS_1 = require("./AUTOMOVIE_RENDER_OPTIONS");
5
+ const readAutoMoviePageTimeout_1 = require("./readAutoMoviePageTimeout");
5
6
  /**
6
- * Split the options of `automovie render` into the command's own, `AUTOMOVIE_RENDER_OPTIONS`, and the request's, which `parseAutoMovieCapturePlanRequest` reads for the request's `subject`.
7
+ * Split the options of `automovie render` into the command's own,
8
+ * `AUTOMOVIE_RENDER_OPTIONS`, and the request's, which
9
+ * `parseAutoMovieCapturePlanRequest` reads for the request's `subject`.
7
10
  *
8
- * | Option | Meaning | Absent |
9
- * | --- | --- | --- |
10
- * | `--module <file>` | The subject module whose `subjects` the draw page offers | Required |
11
- * | `--props <file>` | A JSON file whose value the module's `subjects` is called with | `null` |
12
- * | `--out <folder>` | Where `film.mp4` and `render-report.json` go | `media/automovie/<subject>/videos` |
13
- * | `--backend <software\|gpu>` | How the browser draws | `software` |
11
+ * | Option | Meaning | Absent |
12
+ * | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
13
+ * | `--module <file>` | The subject module whose `subjects` the draw page offers | Required |
14
+ * | `--props <file>` | A JSON file whose value the module's `subjects` is called with | `null` |
15
+ * | `--out <folder>` | Where `film.mp4`, `render-report.json` and, with `--passes`, `controls/` go | `media/automovie/<subject>/videos` |
16
+ * | `--backend <software\|gpu>` | How the browser draws | `software` |
17
+ * | `--background <scene\|transparent>` | `transparent` renders a straight-alpha `film.mov` with no audio into `media/automovie/<subject>/transparent` | `scene` |
18
+ * | `--timeout-ms <milliseconds>` | Per-call budget for page navigation, draw-function readiness, subject creation and drawing. Integer 1 to 2147483647 | `120000` |
14
19
  *
15
- * Every other option is left for the request reader, which names the subject as `capture` and the inspector do; a render draws the subject's whole clock through its own camera, so `renderAutoMovie` refuses any request key but `subject`. It throws for an empty value of its own options, a missing `--module`, and a backend that is not `software` or `gpu`.
16
- *
17
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates the command's options with their meaning and absent value, says where the rest go and which of them a render admits, and states every refusal.
18
- * @evidence contracts/development/implementation.md#principled-implementation The command's keys are removed before the request is read, as `capture` and `inspect` do, so the subject has one name and one reader in every host.
19
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the listed options that takes them out, then the checks.
20
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No module is guessed from the folder.
21
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the options.
22
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per command.
23
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.
20
+ * Every other option is left for the request reader, which names the subject as
21
+ * `capture` and the inspector do; a render draws the subject's whole clock
22
+ * through its own camera, so `renderAutoMovie` refuses any request key but
23
+ * `subject` and `passes`. It throws for an empty value of its own options, a
24
+ * missing `--module`, a backend that is not `software` or `gpu`, and a
25
+ * background that is not `scene` or `transparent`.
24
26
  */
25
27
  function readAutoMovieRenderOptions(values) {
26
28
  const request = new Map(values);
@@ -40,12 +42,17 @@ function readAutoMovieRenderOptions(values) {
40
42
  const backend = taken.get("backend") ?? "software";
41
43
  if (backend !== "software" && backend !== "gpu")
42
44
  throw new Error(`Render --backend "${backend}" is not software or gpu`);
45
+ const background = taken.get("background") ?? "scene";
46
+ if (background !== "scene" && background !== "transparent")
47
+ throw new Error(`Render --background "${background}" is not scene or transparent`);
43
48
  return {
44
49
  module,
45
50
  props: taken.get("props") ?? null,
46
51
  out: taken.get("out") ?? null,
47
52
  backend,
53
+ timeout: (0, readAutoMoviePageTimeout_1.readAutoMoviePageTimeout)(taken.get("timeout-ms")),
48
54
  request,
55
+ background,
49
56
  };
50
57
  }
51
58
  //# sourceMappingURL=readAutoMovieRenderOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieRenderOptions.js","sourceRoot":"","sources":["../src/readAutoMovieRenderOptions.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAGtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,oCACE,MAAmC;IAiBnC,MAAM,OAAO,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,KAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC7C,KAAK,MAAM,GAAG,IAAI,mDAAwB,EAAE,CAAC;QAC3C,MAAM,KAAK,GAAuB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnD,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,KAAK,KAAK,SAAS;YAAE,SAAS;QAClC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;QAC1D,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACxB,CAAC;IACD,MAAM,MAAM,GAAuB,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,MAAM,KAAK,SAAS;QAC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AAS;QACtB,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAC;IACJ,MAAM,OAAO,GAAW,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,UAAU,CAAC;IAC3D,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,KAAK;QAC7C,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,0BAA0B,CAAC,CAAC;IAC1E,MAAM,UAAU,GAAW,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC;IAC9D,IAAI,UAAU,KAAK,OAAO,IAAI,UAAU,KAAK,aAAa;QACxD,MAAM,IAAI,KAAK,CACb,wBAAwB,UAAU,+BAA+B,CAClE,CAAC;IACJ,OAAO;QACL,MAAM;QACN,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI;QACjC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI;QAC7B,OAAO;QACP,OAAO,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1D,OAAO;QACP,UAAU;KACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IAutoMovieReviewObservation } from "./IAutoMovieReviewObservation";
2
+ /**
3
+ * Admits one stored review receipt with matching requested and observed scope.
4
+ * A still decision covers a single decoded frame when timing is established.
5
+ */
6
+ export declare function readAutoMovieReviewObservation(value: unknown): IAutoMovieReviewObservation;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readAutoMovieReviewObservation = readAutoMovieReviewObservation;
4
+ /**
5
+ * Admits one stored review receipt with matching requested and observed scope.
6
+ * A still decision covers a single decoded frame when timing is established.
7
+ */
8
+ function readAutoMovieReviewObservation(value) {
9
+ if (!record(value) || !admitted(value))
10
+ throw new Error("Invalid file review receipt");
11
+ if (value.viewed === "still" &&
12
+ (value.observed === null
13
+ ? value.requested.to !== null
14
+ : value.observed.endFrame - value.observed.firstFrame !== 1))
15
+ throw new Error("Invalid file review receipt: a still selects one frame");
16
+ return value;
17
+ }
18
+ /** A decoded JSON object. */
19
+ function record(value) {
20
+ return typeof value === "object" && value !== null && !Array.isArray(value);
21
+ }
22
+ /** Nonempty text remains distinguishable from an absent value. */
23
+ function text(value) {
24
+ return typeof value === "string" && value.trim() !== "";
25
+ }
26
+ /** An index in a nonnegative output frame grid. */
27
+ function index(value) {
28
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
29
+ }
30
+ /** An explicitly requested film second. */
31
+ function second(value) {
32
+ return typeof value === "number" && Number.isFinite(value) && value >= 0;
33
+ }
34
+ /** An exact timestamp with two positive rational clock terms. */
35
+ function timestamp(value) {
36
+ return (record(value) &&
37
+ Number.isSafeInteger(value.ticks) &&
38
+ Array.isArray(value.timeBase) &&
39
+ value.timeBase.length === 2 &&
40
+ value.timeBase.every((term) => index(term) && term > 0));
41
+ }
42
+ /** Validates the receipt's selected frame bounds and consistent native clock. */
43
+ function observed(value, from, to) {
44
+ if (!record(value) ||
45
+ !index(value.firstFrame) ||
46
+ !index(value.endFrame) ||
47
+ !index(value.frameCount) ||
48
+ value.firstFrame >= value.endFrame ||
49
+ value.endFrame > value.frameCount ||
50
+ !timestamp(value.start) ||
51
+ !timestamp(value.end) ||
52
+ value.start.timeBase[0] !== value.end.timeBase[0] ||
53
+ value.start.timeBase[1] !== value.end.timeBase[1] ||
54
+ value.start.ticks < 0 ||
55
+ value.end.ticks <= value.start.ticks)
56
+ return false;
57
+ const ticks = value.end.ticks - value.start.ticks;
58
+ const frames = value.endFrame - value.firstFrame;
59
+ const stride = ticks / frames;
60
+ const [numerator, denominator] = value.start.timeBase;
61
+ const start = (value.start.ticks * numerator) / denominator;
62
+ const afterFirst = ((value.start.ticks + stride) * numerator) / denominator;
63
+ const beforeEnd = ((value.end.ticks - stride) * numerator) / denominator;
64
+ const end = (value.end.ticks * numerator) / denominator;
65
+ return (Number.isSafeInteger(stride) &&
66
+ BigInt(value.start.ticks) === BigInt(value.firstFrame) * BigInt(stride) &&
67
+ start <= from &&
68
+ from < afterFirst &&
69
+ (to === null ? frames === 1 : beforeEnd < to && to <= end));
70
+ }
71
+ /** An assigned occurrence or an explicit limit on assignment. */
72
+ function cut(value) {
73
+ return (record(value) &&
74
+ (value.state === "resolved"
75
+ ? index(value.entry) && text(value.shot)
76
+ : (value.state === "ambiguous" || value.state === "unavailable") &&
77
+ text(value.reason)));
78
+ }
79
+ /** The input shape and cross-field admission of a stored mark. */
80
+ function admitted(value) {
81
+ if (value.version !== 1 ||
82
+ !text(value.subject) ||
83
+ !text(value.file) ||
84
+ typeof value.sha256 !== "string" ||
85
+ !/^[0-9a-f]{64}$/u.test(value.sha256) ||
86
+ !text(value.note) ||
87
+ !(value.previous === null || text(value.previous)) ||
88
+ !record(value.requested) ||
89
+ !second(value.requested.from) ||
90
+ !(value.requested.to === null ||
91
+ (second(value.requested.to) && value.requested.to > value.requested.from)) ||
92
+ !cut(value.cut))
93
+ return false;
94
+ if (!((value.reviewer === null &&
95
+ value.decision === null &&
96
+ value.viewed === null) ||
97
+ (text(value.reviewer) &&
98
+ (value.decision === "accepted" || value.decision === "needs-repair") &&
99
+ (value.viewed === "still" ||
100
+ (value.requested.to !== null &&
101
+ (value.viewed === "playback" || value.viewed === "listening"))))))
102
+ return false;
103
+ return value.observed === null
104
+ ? text(value.unavailable) && value.cut.state === "unavailable"
105
+ : value.unavailable === null &&
106
+ observed(value.observed, value.requested.from, value.requested.to);
107
+ }
108
+ //# sourceMappingURL=readAutoMovieReviewObservation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readAutoMovieReviewObservation.js","sourceRoot":"","sources":["../src/readAutoMovieReviewObservation.ts"],"names":[],"mappings":";;;AAIA;;;GAGG;AACH,wCACE,KAAc;IAEd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CA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CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,IAAI;oBAC1B,CAAC,KAAK,CAAC,MAAM,KAAK,UAAU,IAAI,KAAK,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CACvE;QAED,OAAO,KAAK,CAAC;IACf,OAAO,KAAK,CAAC,QAAQ,KAAK,IAAI;QAC5B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,aAAa;QAC9D,CAAC,CAAC,KAAK,CAAC,WAAW,KAAK,IAAI;YACxB,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,27 +1,35 @@
1
- /**
2
- * Read the options of `automovie review`, `AUTOMOVIE_REVIEW_OPTIONS`.
3
- *
4
- * | Option | Meaning | Absent |
5
- * | --- | --- | --- |
6
- * | `--url <address>` | The running inspector page, with the request it opens on | Required |
7
- * | `--seconds <s>` | Wall-clock seconds of playback recorded, positive, at most a day | Required |
8
- * | `--out <folder>` | Where the recording and `playback.json` go | `media/automovie/review` |
9
- *
10
- * 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.
11
- *
12
- * @evidence contracts/development/common.md#meaningful-documentation Tabulates every option with its meaning and absent value, and states every refusal.
13
- * @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.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass admitting the listed options, then the checks.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No address or duration is guessed.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the options.
17
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Read once per command.
18
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh record and keeps nothing.
19
- */
20
- export declare function readAutoMovieReviewOptions(values: ReadonlyMap<string, string>): {
21
- /** The page's address. */
1
+ import type { IAutoMovieReviewObservation } from "./IAutoMovieReviewObservation";
2
+ /** An Inspector recording with its existing address, duration and output. */
3
+ interface IAutoMovieInspectorReviewOptions {
22
4
  url: string;
23
- /** Seconds of playback recorded. */
24
5
  seconds: number;
25
- /** The output folder, or null for the default. */
26
6
  out: string | null;
27
- };
7
+ }
8
+ /**
9
+ * One file mark or replay, with the selected range and any explicit reviewer
10
+ * decision.
11
+ */
12
+ interface IAutoMovieFileReviewOptions {
13
+ file: string | null;
14
+ mark: string | null;
15
+ requested: IAutoMovieReviewObservation["requested"] | null;
16
+ note: string | null;
17
+ reviewer: IAutoMovieReviewObservation["reviewer"];
18
+ decision: IAutoMovieReviewObservation["decision"];
19
+ viewed: IAutoMovieReviewObservation["viewed"];
20
+ out: string | null;
21
+ }
22
+ /**
23
+ * Admit one `automovie review` operation.
24
+ *
25
+ * Inspector mode takes the loopback HTTP `--url`, wall-clock `--seconds` and
26
+ * optional `--out`. File mode takes a published `--file` with `--at`, or with
27
+ * `--from` and exclusive `--to`, in film seconds. New marks need `--note`.
28
+ * `--mark` opens an existing receipt or, beside a file and selected time,
29
+ * explicitly rebinds it. A rebind can reuse the note text. `--reviewer`,
30
+ * `--decision` and `--viewed` belong together on a mark or rebind. Still review
31
+ * needs `--at`. Playback and listening need `--from` and `--to`. `--out`
32
+ * selects the output folder.
33
+ */
34
+ export declare function readAutoMovieReviewOptions(values: ReadonlyMap<string, string>): IAutoMovieInspectorReviewOptions | IAutoMovieFileReviewOptions;
35
+ export {};