automovie 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +40 -139
  2. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.d.ts +5 -2
  3. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.js +6 -2
  4. package/lib/AUTOMOVIE_CAPTURE_OPTIONS.js.map +1 -1
  5. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.d.ts +3 -1
  6. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.js +3 -1
  7. package/lib/AUTOMOVIE_DEFAULT_PROJECT_NAME.js.map +1 -1
  8. package/lib/AUTOMOVIE_INSPECT_OPTIONS.d.ts +5 -2
  9. package/lib/AUTOMOVIE_INSPECT_OPTIONS.js +5 -2
  10. package/lib/AUTOMOVIE_INSPECT_OPTIONS.js.map +1 -1
  11. package/lib/AUTOMOVIE_RENDER_OPTIONS.d.ts +6 -2
  12. package/lib/AUTOMOVIE_RENDER_OPTIONS.js +8 -2
  13. package/lib/AUTOMOVIE_RENDER_OPTIONS.js.map +1 -1
  14. package/lib/AUTOMOVIE_REVIEW_OPTIONS.d.ts +3 -1
  15. package/lib/AUTOMOVIE_REVIEW_OPTIONS.js +12 -1
  16. package/lib/AUTOMOVIE_REVIEW_OPTIONS.js.map +1 -1
  17. package/lib/AutoMovieCaptureBackend.d.ts +4 -6
  18. package/lib/AutoMovieCaptureHost.d.ts +73 -53
  19. package/lib/AutoMovieCaptureHost.js +89 -56
  20. package/lib/AutoMovieCaptureHost.js.map +1 -1
  21. package/lib/AutoMovieCommand.d.ts +69 -20
  22. package/lib/AutoMovieFfmpegStaticPath.d.ts +6 -0
  23. package/lib/AutoMovieFfmpegStaticPath.js +3 -0
  24. package/lib/AutoMovieFfmpegStaticPath.js.map +1 -0
  25. package/lib/AutoMovieMp4Boxes.d.ts +78 -0
  26. package/lib/AutoMovieMp4Boxes.js +227 -0
  27. package/lib/AutoMovieMp4Boxes.js.map +1 -0
  28. package/lib/AutoMovieRenderOutputReservation.d.ts +18 -0
  29. package/lib/AutoMovieRenderOutputReservation.js +118 -0
  30. package/lib/AutoMovieRenderOutputReservation.js.map +1 -0
  31. package/lib/IAutoMovieChromium.d.ts +13 -57
  32. package/lib/IAutoMovieDeliveryAudioTrack.d.ts +17 -0
  33. package/lib/IAutoMovieDeliveryAudioTrack.js +3 -0
  34. package/lib/IAutoMovieDeliveryAudioTrack.js.map +1 -0
  35. package/lib/IAutoMovieDeliveryProfileFinding.d.ts +21 -0
  36. package/lib/IAutoMovieDeliveryProfileFinding.js +3 -0
  37. package/lib/IAutoMovieDeliveryProfileFinding.js.map +1 -0
  38. package/lib/IAutoMovieFfmpegSources.d.ts +11 -0
  39. package/lib/IAutoMovieFfmpegSources.js +3 -0
  40. package/lib/IAutoMovieFfmpegSources.js.map +1 -0
  41. package/lib/IAutoMovieReviewObservation.d.ts +66 -0
  42. package/lib/IAutoMovieReviewObservation.js +3 -0
  43. package/lib/IAutoMovieReviewObservation.js.map +1 -0
  44. package/lib/IAutoMovieVerification.d.ts +163 -0
  45. package/lib/IAutoMovieVerification.js +3 -0
  46. package/lib/IAutoMovieVerification.js.map +1 -0
  47. package/lib/auditAutoMovieAlphaSamples.d.ts +23 -0
  48. package/lib/auditAutoMovieAlphaSamples.js +183 -0
  49. package/lib/auditAutoMovieAlphaSamples.js.map +1 -0
  50. package/lib/auditAutoMovieDeliveryProfile.d.ts +33 -0
  51. package/lib/auditAutoMovieDeliveryProfile.js +93 -0
  52. package/lib/auditAutoMovieDeliveryProfile.js.map +1 -0
  53. package/lib/captureAutoMovie.d.ts +23 -11
  54. package/lib/captureAutoMovie.js +102 -18
  55. package/lib/captureAutoMovie.js.map +1 -1
  56. package/lib/createAutoMovieDeliveryAudioLog.d.ts +31 -0
  57. package/lib/createAutoMovieDeliveryAudioLog.js +110 -0
  58. package/lib/createAutoMovieDeliveryAudioLog.js.map +1 -0
  59. package/lib/createAutoMovieDeliveryAudioScan.d.ts +39 -0
  60. package/lib/createAutoMovieDeliveryAudioScan.js +125 -0
  61. package/lib/createAutoMovieDeliveryAudioScan.js.map +1 -0
  62. package/lib/createAutoMovieVerificationInputScope.d.ts +19 -0
  63. package/lib/createAutoMovieVerificationInputScope.js +147 -0
  64. package/lib/createAutoMovieVerificationInputScope.js.map +1 -0
  65. package/lib/createAutoMovieVerificationMediaHash.d.ts +5 -0
  66. package/lib/createAutoMovieVerificationMediaHash.js +61 -0
  67. package/lib/createAutoMovieVerificationMediaHash.js.map +1 -0
  68. package/lib/decodeAutoMovieDeliveryAudio.d.ts +24 -0
  69. package/lib/decodeAutoMovieDeliveryAudio.js +77 -0
  70. package/lib/decodeAutoMovieDeliveryAudio.js.map +1 -0
  71. package/lib/deriveAutoMovieProjectName.d.ts +14 -11
  72. package/lib/deriveAutoMovieProjectName.js +14 -11
  73. package/lib/deriveAutoMovieProjectName.js.map +1 -1
  74. package/lib/findAutoMovieFreePort.d.ts +5 -10
  75. package/lib/findAutoMovieFreePort.js +5 -10
  76. package/lib/findAutoMovieFreePort.js.map +1 -1
  77. package/lib/formatAutoMovieInspectUrl.d.ts +6 -10
  78. package/lib/formatAutoMovieInspectUrl.js +6 -10
  79. package/lib/formatAutoMovieInspectUrl.js.map +1 -1
  80. package/lib/hashAutoMovieFile.d.ts +5 -0
  81. package/lib/hashAutoMovieFile.js +16 -0
  82. package/lib/hashAutoMovieFile.js.map +1 -0
  83. package/lib/importAutoMovieVerificationEntry.d.mts +2 -0
  84. package/lib/importAutoMovieVerificationEntry.mjs +6 -0
  85. package/lib/importAutoMovieVerificationEntry.mjs.map +1 -0
  86. package/lib/index.d.ts +9 -0
  87. package/lib/index.js +9 -0
  88. package/lib/index.js.map +1 -1
  89. package/lib/inspectAutoMovie.d.ts +15 -9
  90. package/lib/inspectAutoMovie.js +25 -9
  91. package/lib/inspectAutoMovie.js.map +1 -1
  92. package/lib/inspectAutoMovieVerificationCapture.d.ts +15 -0
  93. package/lib/inspectAutoMovieVerificationCapture.js +221 -0
  94. package/lib/inspectAutoMovieVerificationCapture.js.map +1 -0
  95. package/lib/inspectAutoMovieVerificationDelivery.d.ts +13 -0
  96. package/lib/inspectAutoMovieVerificationDelivery.js +247 -0
  97. package/lib/inspectAutoMovieVerificationDelivery.js.map +1 -0
  98. package/lib/inspectAutoMovieVerificationReview.d.ts +11 -0
  99. package/lib/inspectAutoMovieVerificationReview.js +141 -0
  100. package/lib/inspectAutoMovieVerificationReview.js.map +1 -0
  101. package/lib/launchAutoMovieChromium.d.ts +9 -11
  102. package/lib/launchAutoMovieChromium.js +10 -11
  103. package/lib/launchAutoMovieChromium.js.map +1 -1
  104. package/lib/listAutoMovieReleaseFindings.d.ts +9 -0
  105. package/lib/listAutoMovieReleaseFindings.js +58 -0
  106. package/lib/listAutoMovieReleaseFindings.js.map +1 -0
  107. package/lib/loadAutoMovieProductionModule.d.ts +11 -10
  108. package/lib/loadAutoMovieProductionModule.js +18 -10
  109. package/lib/loadAutoMovieProductionModule.js.map +1 -1
  110. package/lib/loadAutoMovieVerificationModule.d.ts +6 -0
  111. package/lib/loadAutoMovieVerificationModule.js +246 -0
  112. package/lib/loadAutoMovieVerificationModule.js.map +1 -0
  113. package/lib/planAutoMovieChromiumLaunch.d.ts +7 -13
  114. package/lib/planAutoMovieChromiumLaunch.js +7 -13
  115. package/lib/planAutoMovieChromiumLaunch.js.map +1 -1
  116. package/lib/planAutoMovieDeliveryAudioDecode.d.ts +10 -0
  117. package/lib/planAutoMovieDeliveryAudioDecode.js +29 -0
  118. package/lib/planAutoMovieDeliveryAudioDecode.js.map +1 -0
  119. package/lib/planAutoMovieDeliveryDecode.d.ts +19 -0
  120. package/lib/planAutoMovieDeliveryDecode.js +57 -0
  121. package/lib/planAutoMovieDeliveryDecode.js.map +1 -0
  122. package/lib/planAutoMovieDeliveryInput.d.ts +11 -0
  123. package/lib/planAutoMovieDeliveryInput.js +26 -0
  124. package/lib/planAutoMovieDeliveryInput.js.map +1 -0
  125. package/lib/planAutoMovieModulePageViteConfig.d.ts +13 -10
  126. package/lib/planAutoMovieModulePageViteConfig.js +13 -10
  127. package/lib/planAutoMovieModulePageViteConfig.js.map +1 -1
  128. package/lib/promptAutoMovieProjectName.d.ts +6 -10
  129. package/lib/promptAutoMovieProjectName.js +6 -10
  130. package/lib/promptAutoMovieProjectName.js.map +1 -1
  131. package/lib/publishAutoMovieRenderAttempt.d.ts +32 -0
  132. package/lib/publishAutoMovieRenderAttempt.js +91 -0
  133. package/lib/publishAutoMovieRenderAttempt.js.map +1 -0
  134. package/lib/readAutoMovieAddArguments.d.ts +10 -11
  135. package/lib/readAutoMovieAddArguments.js +10 -11
  136. package/lib/readAutoMovieAddArguments.js.map +1 -1
  137. package/lib/readAutoMovieCaptureHostOptions.d.ts +19 -17
  138. package/lib/readAutoMovieCaptureHostOptions.js +16 -17
  139. package/lib/readAutoMovieCaptureHostOptions.js.map +1 -1
  140. package/lib/readAutoMovieCommandArguments.d.ts +6 -9
  141. package/lib/readAutoMovieCommandArguments.js +9 -10
  142. package/lib/readAutoMovieCommandArguments.js.map +1 -1
  143. package/lib/readAutoMovieCreateArguments.d.ts +7 -11
  144. package/lib/readAutoMovieCreateArguments.js +7 -11
  145. package/lib/readAutoMovieCreateArguments.js.map +1 -1
  146. package/lib/readAutoMovieDeliveryAudioTrack.d.ts +21 -0
  147. package/lib/readAutoMovieDeliveryAudioTrack.js +104 -0
  148. package/lib/readAutoMovieDeliveryAudioTrack.js.map +1 -0
  149. package/lib/readAutoMovieDeliveryDecode.d.ts +19 -0
  150. package/lib/readAutoMovieDeliveryDecode.js +209 -0
  151. package/lib/readAutoMovieDeliveryDecode.js.map +1 -0
  152. package/lib/readAutoMovieDeliveryProbe.d.ts +35 -0
  153. package/lib/readAutoMovieDeliveryProbe.js +363 -0
  154. package/lib/readAutoMovieDeliveryProbe.js.map +1 -0
  155. package/lib/readAutoMovieErrorCode.d.ts +9 -0
  156. package/lib/readAutoMovieErrorCode.js +18 -0
  157. package/lib/readAutoMovieErrorCode.js.map +1 -0
  158. package/lib/readAutoMovieInspectHostOptions.d.ts +15 -16
  159. package/lib/readAutoMovieInspectHostOptions.js +11 -15
  160. package/lib/readAutoMovieInspectHostOptions.js.map +1 -1
  161. package/lib/readAutoMovieNameOption.d.ts +4 -10
  162. package/lib/readAutoMovieNameOption.js +4 -10
  163. package/lib/readAutoMovieNameOption.js.map +1 -1
  164. package/lib/readAutoMoviePageTimeout.d.ts +13 -0
  165. package/lib/readAutoMoviePageTimeout.js +21 -0
  166. package/lib/readAutoMoviePageTimeout.js.map +1 -0
  167. package/lib/readAutoMovieRenderOptions.d.ts +24 -16
  168. package/lib/readAutoMovieRenderOptions.js +23 -16
  169. package/lib/readAutoMovieRenderOptions.js.map +1 -1
  170. package/lib/readAutoMovieReviewObservation.d.ts +6 -0
  171. package/lib/readAutoMovieReviewObservation.js +108 -0
  172. package/lib/readAutoMovieReviewObservation.js.map +1 -0
  173. package/lib/readAutoMovieReviewOptions.d.ts +32 -24
  174. package/lib/readAutoMovieReviewOptions.js +82 -18
  175. package/lib/readAutoMovieReviewOptions.js.map +1 -1
  176. package/lib/readAutoMovieRevision.d.ts +3 -9
  177. package/lib/readAutoMovieRevision.js +3 -9
  178. package/lib/readAutoMovieRevision.js.map +1 -1
  179. package/lib/readAutoMovieVerifyOptions.d.ts +17 -0
  180. package/lib/readAutoMovieVerifyOptions.js +45 -0
  181. package/lib/readAutoMovieVerifyOptions.js.map +1 -0
  182. package/lib/readAutoMovieVideoProbe.d.ts +6 -10
  183. package/lib/readAutoMovieVideoProbe.js +20 -13
  184. package/lib/readAutoMovieVideoProbe.js.map +1 -1
  185. package/lib/recordAutoMoviePlayback.d.ts +18 -11
  186. package/lib/recordAutoMoviePlayback.js +26 -13
  187. package/lib/recordAutoMoviePlayback.js.map +1 -1
  188. package/lib/renderAutoMovie.d.ts +16 -10
  189. package/lib/renderAutoMovie.js +31 -14
  190. package/lib/renderAutoMovie.js.map +1 -1
  191. package/lib/renderAutoMovieScaffoldNextSteps.d.ts +10 -10
  192. package/lib/renderAutoMovieScaffoldNextSteps.js +10 -10
  193. package/lib/renderAutoMovieVideo.d.ts +53 -15
  194. package/lib/renderAutoMovieVideo.js +290 -45
  195. package/lib/renderAutoMovieVideo.js.map +1 -1
  196. package/lib/resolveAutoMovieFfmpeg.d.ts +12 -15
  197. package/lib/resolveAutoMovieFfmpeg.js +12 -17
  198. package/lib/resolveAutoMovieFfmpeg.js.map +1 -1
  199. package/lib/reviewAutoMovie.d.ts +10 -10
  200. package/lib/reviewAutoMovie.js +15 -10
  201. package/lib/reviewAutoMovie.js.map +1 -1
  202. package/lib/reviewAutoMovieFile.d.ts +21 -0
  203. package/lib/reviewAutoMovieFile.js +378 -0
  204. package/lib/reviewAutoMovieFile.js.map +1 -0
  205. package/lib/run.d.ts +32 -18
  206. package/lib/run.js +67 -23
  207. package/lib/run.js.map +1 -1
  208. package/lib/runAutoMovieDeliveryAudioDecode.d.ts +18 -0
  209. package/lib/runAutoMovieDeliveryAudioDecode.js +28 -0
  210. package/lib/runAutoMovieDeliveryAudioDecode.js.map +1 -0
  211. package/lib/runAutoMovieDeliveryDecode.d.ts +19 -0
  212. package/lib/runAutoMovieDeliveryDecode.js +42 -0
  213. package/lib/runAutoMovieDeliveryDecode.js.map +1 -0
  214. package/lib/runAutoMovieDeliveryReferenceDecode.d.ts +28 -0
  215. package/lib/runAutoMovieDeliveryReferenceDecode.js +77 -0
  216. package/lib/runAutoMovieDeliveryReferenceDecode.js.map +1 -0
  217. package/lib/runAutoMovieDeliverySourceAudioDecode.d.ts +20 -0
  218. package/lib/runAutoMovieDeliverySourceAudioDecode.js +56 -0
  219. package/lib/runAutoMovieDeliverySourceAudioDecode.js.map +1 -0
  220. package/lib/runAutoMovieFfmpeg.d.ts +15 -10
  221. package/lib/runAutoMovieFfmpeg.js +36 -13
  222. package/lib/runAutoMovieFfmpeg.js.map +1 -1
  223. package/lib/runAutoMovieVerification.d.ts +28 -0
  224. package/lib/runAutoMovieVerification.js +393 -0
  225. package/lib/runAutoMovieVerification.js.map +1 -0
  226. package/lib/sameAutoMovieReviewFile.d.ts +2 -0
  227. package/lib/sameAutoMovieReviewFile.js +57 -0
  228. package/lib/sameAutoMovieReviewFile.js.map +1 -0
  229. package/lib/selectAutoMovieProjectName.d.ts +8 -11
  230. package/lib/selectAutoMovieProjectName.js +8 -11
  231. package/lib/selectAutoMovieProjectName.js.map +1 -1
  232. package/lib/serveAutoMovieDrawPage.d.ts +14 -11
  233. package/lib/serveAutoMovieDrawPage.js +14 -11
  234. package/lib/serveAutoMovieDrawPage.js.map +1 -1
  235. package/lib/serveAutoMovieInspectorPage.d.ts +4 -8
  236. package/lib/serveAutoMovieInspectorPage.js +3 -9
  237. package/lib/serveAutoMovieInspectorPage.js.map +1 -1
  238. package/lib/verifyAutoMovie.d.ts +19 -0
  239. package/lib/verifyAutoMovie.js +44 -0
  240. package/lib/verifyAutoMovie.js.map +1 -0
  241. package/lib/writeAutoMovieModulePage.d.ts +17 -12
  242. package/lib/writeAutoMovieModulePage.js +13 -11
  243. package/lib/writeAutoMovieModulePage.js.map +1 -1
  244. package/lib/writeAutoMovieVerificationReceipt.d.ts +2 -0
  245. package/lib/writeAutoMovieVerificationReceipt.js +75 -0
  246. package/lib/writeAutoMovieVerificationReceipt.js.map +1 -0
  247. package/package.json +8 -8
  248. package/src/AUTOMOVIE_CAPTURE_OPTIONS.ts +6 -2
  249. package/src/AUTOMOVIE_DEFAULT_PROJECT_NAME.ts +3 -1
  250. package/src/AUTOMOVIE_INSPECT_OPTIONS.ts +5 -2
  251. package/src/AUTOMOVIE_RENDER_OPTIONS.ts +8 -2
  252. package/src/AUTOMOVIE_REVIEW_OPTIONS.ts +12 -1
  253. package/src/AutoMovieCaptureBackend.ts +4 -6
  254. package/src/AutoMovieCaptureHost.ts +122 -68
  255. package/src/AutoMovieCommand.ts +71 -20
  256. package/src/AutoMovieFfmpegStaticPath.ts +7 -0
  257. package/src/AutoMovieMp4Boxes.ts +263 -0
  258. package/src/AutoMovieRenderOutputReservation.ts +97 -0
  259. package/src/IAutoMovieChromium.ts +13 -57
  260. package/src/IAutoMovieDeliveryAudioTrack.ts +19 -0
  261. package/src/IAutoMovieDeliveryProfileFinding.ts +24 -0
  262. package/src/IAutoMovieFfmpegSources.ts +13 -0
  263. package/src/IAutoMovieReviewObservation.ts +59 -0
  264. package/src/IAutoMovieVerification.ts +207 -0
  265. package/src/auditAutoMovieAlphaSamples.ts +201 -0
  266. package/src/auditAutoMovieDeliveryProfile.ts +125 -0
  267. package/src/captureAutoMovie.ts +137 -28
  268. package/src/createAutoMovieDeliveryAudioLog.ts +141 -0
  269. package/src/createAutoMovieDeliveryAudioScan.ts +150 -0
  270. package/src/createAutoMovieVerificationInputScope.ts +156 -0
  271. package/src/createAutoMovieVerificationMediaHash.ts +32 -0
  272. package/src/decodeAutoMovieDeliveryAudio.ts +95 -0
  273. package/src/deriveAutoMovieProjectName.ts +14 -11
  274. package/src/findAutoMovieFreePort.ts +5 -10
  275. package/src/formatAutoMovieInspectUrl.ts +6 -10
  276. package/src/hashAutoMovieFile.ts +12 -0
  277. package/src/importAutoMovieVerificationEntry.mts +6 -0
  278. package/src/index.ts +9 -0
  279. package/src/inspectAutoMovie.ts +28 -11
  280. package/src/inspectAutoMovieVerificationCapture.ts +292 -0
  281. package/src/inspectAutoMovieVerificationDelivery.ts +301 -0
  282. package/src/inspectAutoMovieVerificationReview.ts +130 -0
  283. package/src/launchAutoMovieChromium.ts +14 -12
  284. package/src/listAutoMovieReleaseFindings.ts +87 -0
  285. package/src/loadAutoMovieProductionModule.ts +22 -15
  286. package/src/loadAutoMovieVerificationModule.ts +278 -0
  287. package/src/planAutoMovieChromiumLaunch.ts +7 -13
  288. package/src/planAutoMovieDeliveryAudioDecode.ts +26 -0
  289. package/src/planAutoMovieDeliveryDecode.ts +66 -0
  290. package/src/planAutoMovieDeliveryInput.ts +25 -0
  291. package/src/planAutoMovieModulePageViteConfig.ts +13 -10
  292. package/src/promptAutoMovieProjectName.ts +6 -10
  293. package/src/publishAutoMovieRenderAttempt.ts +89 -0
  294. package/src/readAutoMovieAddArguments.ts +10 -11
  295. package/src/readAutoMovieCaptureHostOptions.ts +22 -17
  296. package/src/readAutoMovieCommandArguments.ts +8 -10
  297. package/src/readAutoMovieCreateArguments.ts +7 -11
  298. package/src/readAutoMovieDeliveryAudioTrack.ts +137 -0
  299. package/src/readAutoMovieDeliveryDecode.ts +269 -0
  300. package/src/readAutoMovieDeliveryProbe.ts +499 -0
  301. package/src/readAutoMovieErrorCode.ts +13 -0
  302. package/src/readAutoMovieInspectHostOptions.ts +15 -16
  303. package/src/readAutoMovieNameOption.ts +4 -10
  304. package/src/readAutoMoviePageTimeout.ts +19 -0
  305. package/src/readAutoMovieRenderOptions.ts +34 -16
  306. package/src/readAutoMovieReviewObservation.ts +146 -0
  307. package/src/readAutoMovieReviewOptions.ts +133 -28
  308. package/src/readAutoMovieRevision.ts +3 -9
  309. package/src/readAutoMovieVerifyOptions.ts +50 -0
  310. package/src/readAutoMovieVideoProbe.ts +24 -13
  311. package/src/recordAutoMoviePlayback.ts +26 -13
  312. package/src/renderAutoMovie.ts +38 -17
  313. package/src/renderAutoMovieScaffoldNextSteps.ts +10 -10
  314. package/src/renderAutoMovieVideo.ts +474 -85
  315. package/src/resolveAutoMovieFfmpeg.ts +17 -24
  316. package/src/reviewAutoMovie.ts +21 -16
  317. package/src/reviewAutoMovieFile.ts +479 -0
  318. package/src/run.ts +75 -25
  319. package/src/runAutoMovieDeliveryAudioDecode.ts +45 -0
  320. package/src/runAutoMovieDeliveryDecode.ts +63 -0
  321. package/src/runAutoMovieDeliveryReferenceDecode.ts +107 -0
  322. package/src/runAutoMovieDeliverySourceAudioDecode.ts +71 -0
  323. package/src/runAutoMovieFfmpeg.ts +48 -14
  324. package/src/runAutoMovieVerification.ts +487 -0
  325. package/src/sameAutoMovieReviewFile.ts +23 -0
  326. package/src/selectAutoMovieProjectName.ts +8 -11
  327. package/src/serveAutoMovieDrawPage.ts +16 -12
  328. package/src/serveAutoMovieInspectorPage.ts +6 -9
  329. package/src/verifyAutoMovie.ts +67 -0
  330. package/src/writeAutoMovieModulePage.ts +17 -12
  331. package/src/writeAutoMovieVerificationReceipt.ts +51 -0
@@ -40,19 +40,22 @@ const findAutoMovieFreePort_1 = require("./findAutoMovieFreePort");
40
40
  const planAutoMovieModulePageViteConfig_1 = require("./planAutoMovieModulePageViteConfig");
41
41
  const writeAutoMovieModulePage_1 = require("./writeAutoMovieModulePage");
42
42
  /**
43
- * Build a draw-only page for a subject module with the production's Vite, serve it with `vite preview`, and return its address and the call that stops the server and deletes the build.
43
+ * Build a draw-only page for a subject module with the production's Vite, serve
44
+ * it with `vite preview`, and return its address and the call that stops the
45
+ * server and deletes the build.
44
46
  *
45
- * The page is generated in a scratch folder under `<root>/node_modules/.cache/automovie/`: an `index.html` with no interface and a script that calls `installAutoMovieDraw` with the module's `subjects` export. The build takes `planAutoMovieModulePageViteConfig`, the one configuration both page hosts share: the production's `vite.config.ts` when it has one and its `public` folder as its public files, with the generated page as the only input, so a subject loads the assets and plugins the production's own page does. The preview listens on 127.0.0.1 at a free port with `strictPort`, so it never moves to another server's port.
47
+ * The page is generated in a scratch folder under
48
+ * `<root>/node_modules/.cache/automovie/`: an `index.html` with no interface
49
+ * and a script that calls `installAutoMovieDraw` with the module's `subjects`
50
+ * export. The build takes `planAutoMovieModulePageViteConfig`, the one
51
+ * configuration both page hosts share: the production's `vite.config.ts` when
52
+ * it has one and its `public` folder as its public files, with the generated
53
+ * page as the only input, so a subject loads the assets and plugins the
54
+ * production's own page does. The preview listens on 127.0.0.1 at a free port
55
+ * with `strictPort`, so it never moves to another server's port.
46
56
  *
47
- * It rejects when the module does not exist, naming it, and when the build or the server fails, after deleting the scratch folder.
48
- *
49
- * @evidence contracts/development/common.md#meaningful-documentation States what is generated and where, how the build is configured and why, where the server listens, what the return holds, and the refusals.
50
- * @evidence contracts/development/implementation.md#principled-implementation A built page served by `vite preview` does not rebuild or reload while pages draw, which the development server does on a new import; the scratch folder sits inside the production so bare imports resolve from its own dependencies.
51
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Generate through `writeAutoMovieModulePage`, which the inspector page shares, build, find a port, preview; the draw function and subjects are the page's.
52
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The production's page and configuration file are left untouched; the generated page replaces only the build input.
53
- * @evidence contracts/development/implementation.md#efficient-algorithms One build per host; every capture of the host reuses the served page.
54
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The built page serves every subject and round of one host.
55
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The server and the scratch folder are owned by the returned `close`, which stops one and deletes the other; a failed start deletes the folder before rejecting.
57
+ * It rejects when the module does not exist, naming it, and when the build or
58
+ * the server fails, after deleting the scratch folder.
56
59
  */
57
60
  async function serveAutoMovieDrawPage(props) {
58
61
  const vite = props.vite;
@@ -1 +1 @@
1
- {"version":3,"file":"serveAutoMovieDrawPage.js","sourceRoot":"","sources":["../src/serveAutoMovieDrawPage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAClC,yCAAsC;AAEtC,mEAAgE;AAChE,2FAAwF;AACxF,yEAAsE;AAatE;;;;;;;;;;;;;;GAcG;AACI,KAAK,iCAAiC,KAS5C;IAOC,MAAM,IAAI,GAAU,KAAK,CAAC,IAAa,CAAC;IAExC,2DAA2D;IAC3D,MAAM,IAAI,GACR,IAAA,mDAAwB,EAAC;QACvB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,CAAC,SAAiB,EAAU,EAAE,CACpC,uFAAuF,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,w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,MAAM,CAAC,gBAAgB;gBAC9C,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE;aAC3D;SACF,CAAC,CAAC;QAEH,MAAM,IAAI,GAAW,MAAM,IAAA,6CAAqB,GAAE,CAAC;QACnD,MAAM,MAAM,GAA0C,MAAM,IAAI,CAAC,OAAO,CAAC;YACvE,IAAI,EAAE,OAAO;YACb,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,KAAK;YAClB,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;SACpE,CAAC,CAAC;QACH,OAAO;YACL,GAAG,EAAE,oBAAoB,IAAI,aAAa;YAC1C,KAAK,EAAE,KAAK,IAAmB,EAAE;gBAC/B,MAAM,IAAA,qBAAS,EAAC,CAAC,IAA6B,EAAQ,EAAE,CACtD,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAC9B,EAAE,CAAC;gBACJ,MAAM,EAAE,CAAC;YACX,CAAC;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,EAAE,CAAC;QACT,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -3,15 +3,9 @@
3
3
  *
4
4
  * The page is written by `writeAutoMovieModulePage`, as the draw page is: one `div` and a script that calls `@automovie/viewer`'s `mountAutoMovieInspectorPage` with the module's `subjects` called on `props` and the window's `location` and `history`, the same call the scaffold's own page makes. The development server takes `planAutoMovieModulePageViteConfig`: the production's `vite.config.ts` and `public` folder and the page as the dependency scanner's entry, so dependencies are pre-bundled before the first load; listens on 127.0.0.1 at `port` or a free port with `strictPort`, and transforms the production's sources on request, so an edit is seen on the next reload.
5
5
  *
6
- * It rejects when the module does not exist, naming it, and when the server cannot start, after deleting the scratch folder.
6
+ * The script also passes through the host's capture command prefix when supplied.
7
7
  *
8
- * @evidence contracts/development/common.md#meaningful-documentation States what the page runs, which configuration serves it, where it listens and why a development server is used, what the return holds, and the refusals.
9
- * @evidence contracts/development/implementation.md#principled-implementation A person inspecting edits sources between looks, so the page is served by Vite's development server, which compiles each module when the page asks for it; capture draws a built page instead because it must not reload between cells.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Write the page, find a port, start the server; the inspector and the subjects are the page's.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The production's own page and configuration file are left untouched, and a taken port fails the start instead of moving to another.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One server for the command's life; Vite compiles what the page imports.
13
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One page per command.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The server and the scratch folder are owned by the returned `close`, which stops one and deletes the other; a failed start deletes the folder before rejecting.
8
+ * It rejects when the module does not exist, naming it, and when the server cannot start, after deleting the scratch folder.
15
9
  */
16
10
  export declare function serveAutoMovieInspectorPage(props: {
17
11
  /** The production's root folder. */
@@ -24,6 +18,8 @@ export declare function serveAutoMovieInspectorPage(props: {
24
18
  port: number | null;
25
19
  /** The JSON value the module's `subjects` is called with, null for none. */
26
20
  props: unknown;
21
+ /** Optional executable and fixed arguments for capturing this subject from `root`. */
22
+ captureCommand?: readonly [string, ...string[]];
27
23
  }): Promise<{
28
24
  /** Address of the inspector page, without a query. */
29
25
  url: string;
@@ -9,15 +9,9 @@ const writeAutoMovieModulePage_1 = require("./writeAutoMovieModulePage");
9
9
  *
10
10
  * The page is written by `writeAutoMovieModulePage`, as the draw page is: one `div` and a script that calls `@automovie/viewer`'s `mountAutoMovieInspectorPage` with the module's `subjects` called on `props` and the window's `location` and `history`, the same call the scaffold's own page makes. The development server takes `planAutoMovieModulePageViteConfig`: the production's `vite.config.ts` and `public` folder and the page as the dependency scanner's entry, so dependencies are pre-bundled before the first load; listens on 127.0.0.1 at `port` or a free port with `strictPort`, and transforms the production's sources on request, so an edit is seen on the next reload.
11
11
  *
12
- * It rejects when the module does not exist, naming it, and when the server cannot start, after deleting the scratch folder.
12
+ * The script also passes through the host's capture command prefix when supplied.
13
13
  *
14
- * @evidence contracts/development/common.md#meaningful-documentation States what the page runs, which configuration serves it, where it listens and why a development server is used, what the return holds, and the refusals.
15
- * @evidence contracts/development/implementation.md#principled-implementation A person inspecting edits sources between looks, so the page is served by Vite's development server, which compiles each module when the page asks for it; capture draws a built page instead because it must not reload between cells.
16
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Write the page, find a port, start the server; the inspector and the subjects are the page's.
17
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The production's own page and configuration file are left untouched, and a taken port fails the start instead of moving to another.
18
- * @evidence contracts/development/implementation.md#efficient-algorithms One server for the command's life; Vite compiles what the page imports.
19
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One page per command.
20
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The server and the scratch folder are owned by the returned `close`, which stops one and deletes the other; a failed start deletes the folder before rejecting.
14
+ * It rejects when the module does not exist, naming it, and when the server cannot start, after deleting the scratch folder.
21
15
  */
22
16
  async function serveAutoMovieInspectorPage(props) {
23
17
  const vite = props.vite;
@@ -27,7 +21,7 @@ async function serveAutoMovieInspectorPage(props) {
27
21
  kind: "inspect",
28
22
  title: "AutoMovie inspector",
29
23
  body: `<div id="root"></div>`,
30
- script: (specifier) => `import { mountAutoMovieInspectorPage } from "@automovie/viewer";\nimport { subjects } from ${JSON.stringify(specifier)};\n\nmountAutoMovieInspectorPage({\n root: document.getElementById("root"),\n subjects: subjects(${JSON.stringify(props.props ?? null)}),\n location: window.location,\n history: window.history,\n});\n`,
24
+ script: (specifier) => `import { mountAutoMovieInspectorPage } from "@automovie/viewer";\nimport { subjects } from ${JSON.stringify(specifier)};\n\nmountAutoMovieInspectorPage({\n root: document.getElementById("root"),\n subjects: subjects(${JSON.stringify(props.props ?? null)}),\n location: window.location,\n history: window.history,\n captureCommand: ${JSON.stringify(props.captureCommand)},\n});\n`,
31
25
  });
32
26
  try {
33
27
  const port = props.port ?? (await (0, findAutoMovieFreePort_1.findAutoMovieFreePort)());
@@ -1 +1 @@
1
- {"version":3,"file":"serveAutoMovieInspectorPage.js","sourceRoot":"","sources":["../src/serveAutoMovieInspectorPage.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,2FAAwF;AACxF,yEAAsE;AAYtE;;;;;;;;;;;;;;GAcG;AACI,KAAK,sCAAsC,KAejD;IAOC,MAAM,IAAI,GAAU,KAAK,CAAC,IAAa,CAAC;IACxC,MAAM,IAAI,GACR,IAAA,mDAAwB,EAAC;QACvB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,CAAC,SAAiB,EAAU,EAAE,CACpC,8FAA8F,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,sGAAsG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,qEAAqE;KACxU,CAAC,CAAC;IACL,IAAI,CAAC;QACH,MAAM,IAAI,GAAW,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,IAAA,6CAAqB,GAAE,CAAC,CAAC;QACnE,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,YAAY,CAAC;YACtB,GAAG,IAAA,qEAAiC,EAAC,IAAI,CAAC;YAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;SACnE,CAAC,CAAC;QACL,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,OAAO;YACL,GAAG,EAAE,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EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;SACnE,CAAC,CAAC;QACL,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,OAAO;YACL,GAAG,EAAE,oBAAoB,IAAI,GAAG;YAChC,KAAK,EAAE,KAAK,IAAmB,EAAE;gBAC/B,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;gBACrB,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,CAAC;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Load the production's authored verification definitions with its installed
3
+ * Node runtime and print the selected observations. The module is editable
4
+ * trusted production code, loaded without building unrelated sources. Status
5
+ * does not execute checks. Only a requested and unsatisfied stage returns 1.
6
+ *
7
+ * @param props Raw command tokens, production root and capture environment.
8
+ * @returns The requested stage's exit status, or zero for an ordinary read.
9
+ */
10
+ export declare function verifyAutoMovie(props: {
11
+ /** Tokens after the `verify` command. */
12
+ readonly args: readonly string[];
13
+ /** The production's working directory. */
14
+ readonly root: string;
15
+ /** Environment passed to any expressly refreshed capture. */
16
+ readonly env: Readonly<Record<string, string | undefined>>;
17
+ /** Output sink, default standard output. */
18
+ readonly write?: (text: string) => void;
19
+ }): Promise<number>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.verifyAutoMovie = verifyAutoMovie;
4
+ const loadAutoMovieVerificationModule_1 = require("./loadAutoMovieVerificationModule");
5
+ const readAutoMovieVerifyOptions_1 = require("./readAutoMovieVerifyOptions");
6
+ const runAutoMovieVerification_1 = require("./runAutoMovieVerification");
7
+ /**
8
+ * Load the production's authored verification definitions with its installed
9
+ * Node runtime and print the selected observations. The module is editable
10
+ * trusted production code, loaded without building unrelated sources. Status
11
+ * does not execute checks. Only a requested and unsatisfied stage returns 1.
12
+ *
13
+ * @param props Raw command tokens, production root and capture environment.
14
+ * @returns The requested stage's exit status, or zero for an ordinary read.
15
+ */
16
+ async function verifyAutoMovie(props) {
17
+ const options = (0, readAutoMovieVerifyOptions_1.readAutoMovieVerifyOptions)(props.args);
18
+ const module = await (0, loadAutoMovieVerificationModule_1.loadAutoMovieVerificationModule)(props.root, options.module);
19
+ const report = await (0, runAutoMovieVerification_1.runAutoMovieVerification)({
20
+ root: props.root,
21
+ env: props.env,
22
+ targets: module.targets,
23
+ options,
24
+ measurementSources: module.sources,
25
+ });
26
+ const write = props.write ??
27
+ ((text) => {
28
+ process.stdout.write(text);
29
+ });
30
+ if (options.json)
31
+ write(`${JSON.stringify(report, null, 2)}\n`);
32
+ else if (report.items.length === 0)
33
+ write(`No verification checks selected. Edit ${options.module}.\n`);
34
+ else {
35
+ const items = [...report.items];
36
+ const lines = items
37
+ .sort((a, b) => Number(a.state === "passed") - Number(b.state === "passed"))
38
+ .map((item) => `${item.state} ${item.target}/${item.id}: ${item.title} (${item.scope})\n` +
39
+ ` ${item.message}${item.evidence === undefined ? "" : ` [${item.evidence}]`}`);
40
+ write(`${lines.join("\n")}\n`);
41
+ }
42
+ return report.blocked ? 1 : 0;
43
+ }
44
+ //# sourceMappingURL=verifyAutoMovie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyAutoMovie.js","sourceRoot":"","sources":["../src/verifyAutoMovie.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AACpF,6EAA0E;AAC1E,yEAAsE;AAEtE;;;;;;;;GAQG;AACI,KAAK,0BAA0B,KAYrC;IACC,MAAM,OAAO,GACX,IAAA,uDAA0B,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,MAAM,GACV,MAAM,IAAA,iEAA+B,EAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACpE,MAAM,MAAM,GAAmC,MAAM,IAAA,mDAAwB,EA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,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC"}
@@ -1,24 +1,29 @@
1
1
  /**
2
- * Write a one-script page over a subject module into a scratch folder of the production, with the Vite configuration and public folder the production's own page uses, for the draw page and the inspector page alike.
2
+ * Write a one-script page over a subject module into a scratch folder of the
3
+ * production, with the Vite configuration and public folder the production's
4
+ * own page uses, for the draw page and the inspector page alike.
3
5
  *
4
- * The folder is `<root>/node_modules/.cache/automovie/<kind>-<pid>-<time>`, inside the production so the page's bare imports resolve from the production's own dependencies. It holds an `index.html` with `body` and a `main.js` whose text `script` writes from the module's import specifier, a path relative to the folder with the module's own extension, so the page imports exactly the named file even where a compiled `.js` lies beside it. `configFile` is the production's `vite.config.ts` when it has one, and `publicDir` its `public` folder when it has one, `false` otherwise.
6
+ * The folder is `<root>/node_modules/.cache/automovie/<kind>-<pid>-<time>`,
7
+ * inside the production so the page's bare imports resolve from the
8
+ * production's own dependencies. It holds an `index.html` with `body` and a
9
+ * `main.js` whose text `script` writes from the module's import specifier, a
10
+ * path relative to the folder with the module's own extension, so the page
11
+ * imports exactly the named file even where a compiled `.js` lies beside it.
12
+ * `configFile` is the production's `vite.config.ts` when it has one, and
13
+ * `publicDir` its `public` folder when it has one, `false` otherwise.
5
14
  *
6
- * It throws naming the module when the module does not exist, before anything is written.
7
- *
8
- * @evidence contracts/development/common.md#meaningful-documentation States where the page is written and why, what it holds, what the specifier is, what the configuration fields hold, and the refusal.
9
- * @evidence contracts/development/implementation.md#principled-implementation Node resolves a bare import from the importing file's folder upward, so a page written inside the production imports the production's installed packages; Vite compiles a relative import of a `.ts` file named with its extension, and the extension keeps resolution from preferring a stale `.js` beside it.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Check, write two files, report the folder and its configuration; what the page runs is the caller's.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The production's own page and configuration file are only read, never changed.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Two small writes and three existence checks.
13
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One page per host.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned `remove` deletes the folder; the caller owns it from the return on.
15
+ * It throws naming the module when the module does not exist, before anything
16
+ * is written.
15
17
  */
16
18
  export declare function writeAutoMovieModulePage(props: {
17
19
  /** The production's root folder. */
18
20
  root: string;
19
21
  /** Path of the subject module, relative to `root` or absolute. */
20
22
  module: string;
21
- /** A short name for the page, the start of the scratch folder's name, such as `draw` or `inspect`. */
23
+ /**
24
+ * A short name for the page, the start of the scratch folder's name, such as
25
+ * `draw` or `inspect`.
26
+ */
22
27
  kind: string;
23
28
  /** The page's title. */
24
29
  title: string;
@@ -37,19 +37,21 @@ exports.writeAutoMovieModulePage = writeAutoMovieModulePage;
37
37
  const fs = __importStar(require("node:fs"));
38
38
  const path = __importStar(require("node:path"));
39
39
  /**
40
- * Write a one-script page over a subject module into a scratch folder of the production, with the Vite configuration and public folder the production's own page uses, for the draw page and the inspector page alike.
40
+ * Write a one-script page over a subject module into a scratch folder of the
41
+ * production, with the Vite configuration and public folder the production's
42
+ * own page uses, for the draw page and the inspector page alike.
41
43
  *
42
- * The folder is `<root>/node_modules/.cache/automovie/<kind>-<pid>-<time>`, inside the production so the page's bare imports resolve from the production's own dependencies. It holds an `index.html` with `body` and a `main.js` whose text `script` writes from the module's import specifier, a path relative to the folder with the module's own extension, so the page imports exactly the named file even where a compiled `.js` lies beside it. `configFile` is the production's `vite.config.ts` when it has one, and `publicDir` its `public` folder when it has one, `false` otherwise.
44
+ * The folder is `<root>/node_modules/.cache/automovie/<kind>-<pid>-<time>`,
45
+ * inside the production so the page's bare imports resolve from the
46
+ * production's own dependencies. It holds an `index.html` with `body` and a
47
+ * `main.js` whose text `script` writes from the module's import specifier, a
48
+ * path relative to the folder with the module's own extension, so the page
49
+ * imports exactly the named file even where a compiled `.js` lies beside it.
50
+ * `configFile` is the production's `vite.config.ts` when it has one, and
51
+ * `publicDir` its `public` folder when it has one, `false` otherwise.
43
52
  *
44
- * It throws naming the module when the module does not exist, before anything is written.
45
- *
46
- * @evidence contracts/development/common.md#meaningful-documentation States where the page is written and why, what it holds, what the specifier is, what the configuration fields hold, and the refusal.
47
- * @evidence contracts/development/implementation.md#principled-implementation Node resolves a bare import from the importing file's folder upward, so a page written inside the production imports the production's installed packages; Vite compiles a relative import of a `.ts` file named with its extension, and the extension keeps resolution from preferring a stale `.js` beside it.
48
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Check, write two files, report the folder and its configuration; what the page runs is the caller's.
49
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The production's own page and configuration file are only read, never changed.
50
- * @evidence contracts/development/implementation.md#efficient-algorithms Two small writes and three existence checks.
51
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work One page per host.
52
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned `remove` deletes the folder; the caller owns it from the return on.
53
+ * It throws naming the module when the module does not exist, before anything
54
+ * is written.
53
55
  */
54
56
  function writeAutoMovieModulePage(props) {
55
57
  const module = path.resolve(props.root, props.module);
@@ -1 +1 @@
1
- {"version":3,"file":"writeAutoMovieModulePage.js","sourceRoot":"","sources":["../src/writeAutoMovieModulePage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAElC;;;;;;;;;;;;;;GAcG;AACH,kCAAyC,KAkBxC;IAaC,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,sBAAsB,MAAM,iBAAiB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AC;IACF,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,EAC5B,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC,CACpE,CAAC;IAEF,MAAM,MAAM,GAAW,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO;QACL,MAAM;QACN,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;QAClD,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK;QACvD,MAAM,EAAE,GAAS,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KACxE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** Publish the latest receipt and preserve the first failure when requested. */
2
+ export declare function writeAutoMovieVerificationReceipt(file: string, contents: string, retainFailure: boolean): Promise<void>;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.writeAutoMovieVerificationReceipt = writeAutoMovieVerificationReceipt;
37
+ const node_crypto_1 = require("node:crypto");
38
+ const fs = __importStar(require("node:fs/promises"));
39
+ const path = __importStar(require("node:path"));
40
+ const readAutoMovieErrorCode_1 = require("./readAutoMovieErrorCode");
41
+ /** Publish the latest receipt and preserve the first failure when requested. */
42
+ async function writeAutoMovieVerificationReceipt(file, contents, retainFailure) {
43
+ await fs.mkdir(path.dirname(file), { recursive: true });
44
+ if (retainFailure)
45
+ await publish(file.replace(/\.json$/u, ".first-failure.json"), contents, true);
46
+ await publish(file, contents, false);
47
+ }
48
+ /** Stage complete receipt bytes before exclusive creation or replacement. */
49
+ async function publish(file, contents, exclusive) {
50
+ const temporary = `${file}.${(0, node_crypto_1.randomUUID)()}.tmp`;
51
+ try {
52
+ await fs.writeFile(temporary, contents, { flag: "wx" });
53
+ if (exclusive) {
54
+ // The link installs a complete witness and leaves any prior one intact.
55
+ await fs.link(temporary, file).catch((error) => {
56
+ if ((0, readAutoMovieErrorCode_1.readAutoMovieErrorCode)(error) !== "EEXIST")
57
+ throw error;
58
+ });
59
+ await fs.unlink(temporary);
60
+ }
61
+ else
62
+ await fs.rename(temporary, file);
63
+ }
64
+ catch (error) {
65
+ try {
66
+ await fs.unlink(temporary);
67
+ }
68
+ catch (cleanup) {
69
+ if ((0, readAutoMovieErrorCode_1.readAutoMovieErrorCode)(cleanup) !== "ENOENT")
70
+ throw new AggregateError([error, cleanup], "Verification receipt publication and cleanup both failed.");
71
+ }
72
+ throw error;
73
+ }
74
+ }
75
+ //# sourceMappingURL=writeAutoMovieVerificationReceipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeAutoMovieVerificationReceipt.js","sourceRoot":"","sources":["../src/writeAutoMovieVerificationReceipt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,MAAY,EAAE,6CAAyB;AACvC,MAAY,IAAI,sCAAkB;AAElC,qEAAkE;AAElE,gFAAgF;AACzE,KAAK,4CACV,IAAY,EACZ,QAAgB,EAChB,aAAsB;IAEtB,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,IAAI,aAAa;QACf,MAAM,OAAO,CACX,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,qBAAqB,CAAC,EAC/C,QAAQ,EACR,IAAI,CACL,CAAC;IACJ,MAAM,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,6EAA6E;AAC7E,KAAK,UAAU,OAAO,CACpB,IAAY,EACZ,QAAgB,EAChB,SAAkB;IAElB,MAAM,SAAS,GAAW,GAAG,IAAI,IAAI,IAAA,wBAAU,GAAE,MAAM,CAAC;IACxD,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,IAAI,SAAS,EAAE,CAAC;YACd,wEAAwE;YACxE,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAQ,EAAE;gBAC5D,IAAI,IAAA,+CAAsB,EAAC,KAAK,CAAC,KAAK,QAAQ;oBAAE,MAAM,KAAK,CAAC;YAC9D,CAAC,CAAC,CAAC;YACH,MAAM,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;;YAAM,MAAM,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC;YACH,MAAM,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;QAAC,OAAO,OAAO,EAAE,CAAC;YACjB,IAAI,IAAA,+CAAsB,EAAC,OAAO,CAAC,KAAK,QAAQ;gBAC9C,MAAM,IAAI,cAAc,CACtB,CAAC,KAAK,EAAE,OAAO,CAAC,EAChB,2DAA2D,CAC5D,CAAC;QACN,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automovie",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Scaffold a coding-agent-first AutoMovie production repository.",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -38,10 +38,10 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@automovie/template": "^0.3.3"
41
+ "@automovie/template": "^0.4.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@automovie/render": "^0.3.3",
44
+ "@automovie/render": "^0.4.0",
45
45
  "ffmpeg-static": "^5.2.0",
46
46
  "playwright-core": "^1.60.0",
47
47
  "vite": "^5.4.10"
@@ -61,14 +61,14 @@
61
61
  }
62
62
  },
63
63
  "devDependencies": {
64
- "@automovie/render": "^0.3.3",
65
- "@ttsc/evidence": "^0.37.1",
64
+ "@automovie/render": "^0.4.0",
65
+ "@ttsc/evidence": "^0.38.1",
66
66
  "@types/node": "^22.19.17",
67
67
  "rimraf": "^6.0.1",
68
- "ttsc": "^0.37.1",
68
+ "ttsc": "^0.38.1",
69
69
  "typescript": "^7.0.2",
70
- "@ttsc/lint": "^0.37.1",
71
- "@wrtnlabs/evidence": "^0.8.2"
70
+ "@ttsc/lint": "^0.38.1",
71
+ "@wrtnlabs/evidence": "^0.11.1"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "rimraf lib && ttsc && node -e \"require('node:fs').copyFileSync('../../README.md', 'README.md')\"",
@@ -1,7 +1,10 @@
1
1
  /**
2
- * The options `automovie capture` takes for itself, written `--<name>`; every other option is a key of the capture request grammar.
2
+ * The options `automovie capture` takes for itself, written `--<name>`; every
3
+ * other option is a key of the capture request grammar.
3
4
  *
4
- * `readAutoMovieCaptureHostOptions` takes exactly these out of the command line, and a test enumerates them against the render README's key table, so each option the command takes is documented with the requirement it serves.
5
+ * `readAutoMovieCaptureHostOptions` takes exactly these out of the command
6
+ * line, and a test enumerates them against the render README's key table, so
7
+ * each option the command takes is documented with the requirement it serves.
5
8
  */
6
9
  export const AUTOMOVIE_CAPTURE_OPTIONS: readonly string[] = [
7
10
  "module",
@@ -9,4 +12,5 @@ export const AUTOMOVIE_CAPTURE_OPTIONS: readonly string[] = [
9
12
  "props",
10
13
  "out",
11
14
  "backend",
15
+ "timeout-ms",
12
16
  ];
@@ -1,4 +1,6 @@
1
1
  /**
2
- * The project name used when none is typed and none can be derived: offered as the prompt's default, used as-is without a terminal, and the fallback for a directory name with no usable character.
2
+ * The project name used when none is typed and none can be derived: offered as
3
+ * the prompt's default, used as-is without a terminal, and the fallback for a
4
+ * directory name with no usable character.
3
5
  */
4
6
  export const AUTOMOVIE_DEFAULT_PROJECT_NAME: string = "automovie-examples";
@@ -1,7 +1,10 @@
1
1
  /**
2
- * The options `automovie inspect` takes for itself, written `--<name>`; every other option is a key of the capture request grammar and becomes the page's address.
2
+ * The options `automovie inspect` takes for itself, written `--<name>`; every
3
+ * other option is a key of the capture request grammar and becomes the page's
4
+ * address.
3
5
  *
4
- * A test enumerates them against the render README's key table, so each option the command takes is documented with the requirement it serves.
6
+ * A test enumerates them against the render README's key table, so each option
7
+ * the command takes is documented with the requirement it serves.
5
8
  */
6
9
  export const AUTOMOVIE_INSPECT_OPTIONS: readonly string[] = [
7
10
  "module",
@@ -1,11 +1,17 @@
1
1
  /**
2
- * The options `automovie render` takes for itself, written `--<name>`; of the capture request grammar it takes only `subject`, the subject rendered.
2
+ * The options `automovie render` takes for itself, written `--<name>`; of the
3
+ * capture request grammar it takes only `subject`, the subject rendered, and
4
+ * `passes`, the control channels drawn beside the film at every frame.
3
5
  *
4
- * `readAutoMovieRenderOptions` takes exactly these out of the command line, and a test enumerates them against the render README's key table, so each option the command takes is documented with the requirement it serves.
6
+ * `readAutoMovieRenderOptions` takes exactly these out of the command line, and
7
+ * a test enumerates them against the render README's key table, so each option
8
+ * the command takes is documented with the requirement it serves.
5
9
  */
6
10
  export const AUTOMOVIE_RENDER_OPTIONS: readonly string[] = [
7
11
  "module",
8
12
  "props",
9
13
  "out",
10
14
  "backend",
15
+ "timeout-ms",
16
+ "background",
11
17
  ];
@@ -1,10 +1,21 @@
1
1
  /**
2
2
  * The options `automovie review` takes, written `--<name>`; it takes no other.
3
3
  *
4
- * `readAutoMovieReviewOptions` refuses any option outside the list, and a test enumerates them against the render README's key table, so each option the command takes is documented with the requirement it serves.
4
+ * `readAutoMovieReviewOptions` refuses any option outside the list, and a test
5
+ * enumerates them against the render README's key table, so each option the
6
+ * command takes is documented with the requirement it serves.
5
7
  */
6
8
  export const AUTOMOVIE_REVIEW_OPTIONS: readonly string[] = [
7
9
  "url",
8
10
  "seconds",
9
11
  "out",
12
+ "file",
13
+ "mark",
14
+ "at",
15
+ "from",
16
+ "to",
17
+ "note",
18
+ "reviewer",
19
+ "decision",
20
+ "viewed",
10
21
  ];
@@ -1,9 +1,7 @@
1
1
  /**
2
- * How the browser draws a capture: `software` through SwiftShader, the CPU implementation of WebGL that removes GPU driver variation and is used for recorded output, or `gpu` through the machine's graphics driver, which is faster and may differ by machine.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation The two backends the campaign decides on, as a closed pair, so a mistyped backend cannot be launched.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface Read by `planAutoMovieChromiumLaunch`, which turns it into switches, and by the record through the backend text.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No driver or vendor is named; the renderer the browser reports goes into the record instead.
7
- * @evidence contracts/development/common.md#meaningful-documentation States what each backend draws with and when each is used.
2
+ * How the browser draws a capture: `software` through SwiftShader, the CPU
3
+ * implementation of WebGL that removes GPU driver variation and is used for
4
+ * recorded output, or `gpu` through the machine's graphics driver, which is
5
+ * faster and may differ by machine.
8
6
  */
9
7
  export type AutoMovieCaptureBackend = "software" | "gpu";