@automovie/render 0.0.0-stage → 0.0.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 (503) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -2
  3. package/lib/AUTOMOVIE_GUIDE_PASSES.d.ts +11 -0
  4. package/lib/AUTOMOVIE_GUIDE_PASSES.js +21 -0
  5. package/lib/AUTOMOVIE_GUIDE_PASSES.js.map +1 -0
  6. package/lib/IAutoMovieCaptionEntry.d.ts +28 -0
  7. package/lib/IAutoMovieCaptionEntry.js +3 -0
  8. package/lib/IAutoMovieCaptionEntry.js.map +1 -0
  9. package/lib/IAutoMovieCaptionSidecar.d.ts +25 -0
  10. package/lib/IAutoMovieCaptionSidecar.js +3 -0
  11. package/lib/IAutoMovieCaptionSidecar.js.map +1 -0
  12. package/lib/IAutoMovieCapturedFrame.d.ts +22 -0
  13. package/lib/IAutoMovieCapturedFrame.js +3 -0
  14. package/lib/IAutoMovieCapturedFrame.js.map +1 -0
  15. package/lib/IAutoMovieGuidePassOutput.d.ts +23 -0
  16. package/lib/IAutoMovieGuidePassOutput.js +3 -0
  17. package/lib/IAutoMovieGuidePassOutput.js.map +1 -0
  18. package/lib/IAutoMoviePoseKeypointActor.d.ts +36 -0
  19. package/lib/IAutoMoviePoseKeypointActor.js +3 -0
  20. package/lib/IAutoMoviePoseKeypointActor.js.map +1 -0
  21. package/lib/IAutoMoviePoseKeypointFrame.d.ts +25 -0
  22. package/lib/IAutoMoviePoseKeypointFrame.js +3 -0
  23. package/lib/IAutoMoviePoseKeypointFrame.js.map +1 -0
  24. package/lib/IAutoMoviePoseKeypointSidecar.d.ts +21 -0
  25. package/lib/IAutoMoviePoseKeypointSidecar.js +3 -0
  26. package/lib/IAutoMoviePoseKeypointSidecar.js.map +1 -0
  27. package/lib/IAutoMovieRenderAdapters.d.ts +34 -0
  28. package/lib/IAutoMovieRenderAdapters.js +3 -0
  29. package/lib/IAutoMovieRenderAdapters.js.map +1 -0
  30. package/lib/IAutoMovieRenderAndSeeRequest.d.ts +32 -0
  31. package/lib/IAutoMovieRenderAndSeeRequest.js +3 -0
  32. package/lib/IAutoMovieRenderAndSeeRequest.js.map +1 -0
  33. package/lib/IAutoMovieRenderAndSeeResult.d.ts +20 -0
  34. package/lib/IAutoMovieRenderAndSeeResult.js +3 -0
  35. package/lib/IAutoMovieRenderAndSeeResult.js.map +1 -0
  36. package/lib/IAutoMovieRenderChunk.d.ts +48 -0
  37. package/lib/IAutoMovieRenderChunk.js +3 -0
  38. package/lib/IAutoMovieRenderChunk.js.map +1 -0
  39. package/lib/IAutoMovieRenderChunkPlan.d.ts +32 -0
  40. package/lib/IAutoMovieRenderChunkPlan.js +3 -0
  41. package/lib/IAutoMovieRenderChunkPlan.js.map +1 -0
  42. package/lib/IAutoMovieRenderPassManifest.d.ts +21 -0
  43. package/lib/IAutoMovieRenderPassManifest.js +3 -0
  44. package/lib/IAutoMovieRenderPassManifest.js.map +1 -0
  45. package/lib/IAutoMovieRenderReassembly.d.ts +24 -0
  46. package/lib/IAutoMovieRenderReassembly.js +3 -0
  47. package/lib/IAutoMovieRenderReassembly.js.map +1 -0
  48. package/lib/IAutoMovieRenderResult.d.ts +39 -0
  49. package/lib/IAutoMovieRenderResult.js +3 -0
  50. package/lib/IAutoMovieRenderResult.js.map +1 -0
  51. package/lib/IAutoMovieSequenceRenderAdapters.d.ts +36 -0
  52. package/lib/IAutoMovieSequenceRenderAdapters.js +3 -0
  53. package/lib/IAutoMovieSequenceRenderAdapters.js.map +1 -0
  54. package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +36 -0
  55. package/lib/IAutoMovieSequenceRenderAndSeeRequest.js +3 -0
  56. package/lib/IAutoMovieSequenceRenderAndSeeRequest.js.map +1 -0
  57. package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +23 -0
  58. package/lib/IAutoMovieSequenceRenderAndSeeResult.js +3 -0
  59. package/lib/IAutoMovieSequenceRenderAndSeeResult.js.map +1 -0
  60. package/lib/IAutoMovieSequenceRenderFrame.d.ts +41 -0
  61. package/lib/IAutoMovieSequenceRenderFrame.js +3 -0
  62. package/lib/IAutoMovieSequenceRenderFrame.js.map +1 -0
  63. package/lib/IAutoMovieSequenceRenderPlan.d.ts +76 -0
  64. package/lib/IAutoMovieSequenceRenderPlan.js +3 -0
  65. package/lib/IAutoMovieSequenceRenderPlan.js.map +1 -0
  66. package/lib/IAutoMovieSequenceRenderResult.d.ts +44 -0
  67. package/lib/IAutoMovieSequenceRenderResult.js +3 -0
  68. package/lib/IAutoMovieSequenceRenderResult.js.map +1 -0
  69. package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +39 -0
  70. package/lib/IAutoMovieSequenceRenderShotSpan.js +3 -0
  71. package/lib/IAutoMovieSequenceRenderShotSpan.js.map +1 -0
  72. package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +39 -0
  73. package/lib/IAutoMovieSequenceRenderTransitionSpan.js +3 -0
  74. package/lib/IAutoMovieSequenceRenderTransitionSpan.js.map +1 -0
  75. package/lib/audio/encodeAutoMovieWavPcm16.d.ts +21 -0
  76. package/lib/audio/encodeAutoMovieWavPcm16.js +59 -0
  77. package/lib/audio/encodeAutoMovieWavPcm16.js.map +1 -0
  78. package/lib/audio/index.d.ts +2 -0
  79. package/lib/audio/index.js +19 -0
  80. package/lib/audio/index.js.map +1 -0
  81. package/lib/audio/mixAutoMovieAudioPcm.d.ts +64 -0
  82. package/lib/audio/mixAutoMovieAudioPcm.js +86 -0
  83. package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -0
  84. package/lib/auditAutoMovieRenderObservation.d.ts +31 -0
  85. package/lib/auditAutoMovieRenderObservation.js +63 -0
  86. package/lib/auditAutoMovieRenderObservation.js.map +1 -0
  87. package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +28 -0
  88. package/lib/cache/createAutoMovieHttpArtifactStore.js +66 -0
  89. package/lib/cache/createAutoMovieHttpArtifactStore.js.map +1 -0
  90. package/lib/caption/IAutoMovieBeatCaption.d.ts +22 -0
  91. package/lib/caption/IAutoMovieBeatCaption.js +3 -0
  92. package/lib/caption/IAutoMovieBeatCaption.js.map +1 -0
  93. package/lib/caption/autoMovieCaptionLanguageComparisonKey.d.ts +18 -0
  94. package/lib/caption/autoMovieCaptionLanguageComparisonKey.js +24 -0
  95. package/lib/caption/autoMovieCaptionLanguageComparisonKey.js.map +1 -0
  96. package/lib/caption/beatCaptions.d.ts +22 -0
  97. package/lib/caption/beatCaptions.js +50 -0
  98. package/lib/caption/beatCaptions.js.map +1 -0
  99. package/lib/caption/canonicalProductionWebVtt.d.ts +23 -0
  100. package/lib/caption/canonicalProductionWebVtt.js +60 -0
  101. package/lib/caption/canonicalProductionWebVtt.js.map +1 -0
  102. package/lib/caption/canonicalizeAutoMovieCaptionText.d.ts +18 -0
  103. package/lib/caption/canonicalizeAutoMovieCaptionText.js +24 -0
  104. package/lib/caption/canonicalizeAutoMovieCaptionText.js.map +1 -0
  105. package/lib/caption/escapeWebVttText.d.ts +17 -0
  106. package/lib/caption/escapeWebVttText.js +25 -0
  107. package/lib/caption/escapeWebVttText.js.map +1 -0
  108. package/lib/caption/index.d.ts +11 -0
  109. package/lib/caption/index.js +28 -0
  110. package/lib/caption/index.js.map +1 -0
  111. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +37 -0
  112. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js +129 -0
  113. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -0
  114. package/lib/caption/isAutoMovieWebVttIdentifier.d.ts +21 -0
  115. package/lib/caption/isAutoMovieWebVttIdentifier.js +28 -0
  116. package/lib/caption/isAutoMovieWebVttIdentifier.js.map +1 -0
  117. package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +34 -0
  118. package/lib/caption/parseAutoMovieCaptionLanguage.js +121 -0
  119. package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -0
  120. package/lib/caption/serializeAutoMovieWebVttCueText.d.ts +17 -0
  121. package/lib/caption/serializeAutoMovieWebVttCueText.js +27 -0
  122. package/lib/caption/serializeAutoMovieWebVttCueText.js.map +1 -0
  123. package/lib/caption/serializeAutoMovieWebVttIdentifier.d.ts +17 -0
  124. package/lib/caption/serializeAutoMovieWebVttIdentifier.js +27 -0
  125. package/lib/caption/serializeAutoMovieWebVttIdentifier.js.map +1 -0
  126. package/lib/caption/serializeAutoMovieWebVttSingleLineText.d.ts +19 -0
  127. package/lib/caption/serializeAutoMovieWebVttSingleLineText.js +26 -0
  128. package/lib/caption/serializeAutoMovieWebVttSingleLineText.js.map +1 -0
  129. package/lib/caption/webVttCaptionLanguage.d.ts +18 -0
  130. package/lib/caption/webVttCaptionLanguage.js +29 -0
  131. package/lib/caption/webVttCaptionLanguage.js.map +1 -0
  132. package/lib/caption/webVttTime.d.ts +19 -0
  133. package/lib/caption/webVttTime.js +30 -0
  134. package/lib/caption/webVttTime.js.map +1 -0
  135. package/lib/captionPlan.d.ts +1 -0
  136. package/lib/captionPlan.js +18 -0
  137. package/lib/captionPlan.js.map +1 -0
  138. package/lib/captionSidecar.d.ts +3 -0
  139. package/lib/captionSidecar.js +20 -0
  140. package/lib/captionSidecar.js.map +1 -0
  141. package/lib/captionSlice.d.ts +1 -0
  142. package/lib/captionSlice.js +18 -0
  143. package/lib/captionSlice.js.map +1 -0
  144. package/lib/chunkSequenceRender.d.ts +5 -0
  145. package/lib/chunkSequenceRender.js +22 -0
  146. package/lib/chunkSequenceRender.js.map +1 -0
  147. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +16 -0
  148. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js +20 -0
  149. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -0
  150. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.d.ts +11 -0
  151. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js +14 -0
  152. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js.map +1 -0
  153. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +15 -0
  154. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js +19 -0
  155. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -0
  156. package/lib/delivery/AutoMovieProductionPngRole.d.ts +14 -0
  157. package/lib/delivery/AutoMovieProductionPngRole.js +3 -0
  158. package/lib/delivery/AutoMovieProductionPngRole.js.map +1 -0
  159. package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +41 -0
  160. package/lib/delivery/IAutoMovieProductionPngProfile.js +3 -0
  161. package/lib/delivery/IAutoMovieProductionPngProfile.js.map +1 -0
  162. package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +46 -0
  163. package/lib/delivery/IAutoMovieProductionVideoProfile.js +3 -0
  164. package/lib/delivery/IAutoMovieProductionVideoProfile.js.map +1 -0
  165. package/lib/delivery/assertAutoMovieCaptureClock.d.ts +26 -0
  166. package/lib/delivery/assertAutoMovieCaptureClock.js +29 -0
  167. package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -0
  168. package/lib/delivery/assertProductionOpusProfile.d.ts +23 -0
  169. package/lib/delivery/assertProductionOpusProfile.js +160 -0
  170. package/lib/delivery/assertProductionOpusProfile.js.map +1 -0
  171. package/lib/delivery/assertProductionPngPicture.d.ts +24 -0
  172. package/lib/delivery/assertProductionPngPicture.js +47 -0
  173. package/lib/delivery/assertProductionPngPicture.js.map +1 -0
  174. package/lib/delivery/assertProductionVideoProfile.d.ts +30 -0
  175. package/lib/delivery/assertProductionVideoProfile.js +150 -0
  176. package/lib/delivery/assertProductionVideoProfile.js.map +1 -0
  177. package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +56 -0
  178. package/lib/delivery/auditAutoMovieDecodedFrames.js +92 -0
  179. package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -0
  180. package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +27 -0
  181. package/lib/delivery/auditAutoMovieEncodedPresentation.js +62 -0
  182. package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -0
  183. package/lib/delivery/index.d.ts +14 -0
  184. package/lib/delivery/index.js +31 -0
  185. package/lib/delivery/index.js.map +1 -0
  186. package/lib/delivery/planAutoMovieCaptureUrl.d.ts +18 -0
  187. package/lib/delivery/planAutoMovieCaptureUrl.js +31 -0
  188. package/lib/delivery/planAutoMovieCaptureUrl.js.map +1 -0
  189. package/lib/delivery/productionOpusDescription.d.ts +41 -0
  190. package/lib/delivery/productionOpusDescription.js +125 -0
  191. package/lib/delivery/productionOpusDescription.js.map +1 -0
  192. package/lib/delivery/resolveProductionPngProfile.d.ts +27 -0
  193. package/lib/delivery/resolveProductionPngProfile.js +53 -0
  194. package/lib/delivery/resolveProductionPngProfile.js.map +1 -0
  195. package/lib/delivery/resolveProductionVideoProfile.d.ts +27 -0
  196. package/lib/delivery/resolveProductionVideoProfile.js +36 -0
  197. package/lib/delivery/resolveProductionVideoProfile.js.map +1 -0
  198. package/lib/ffmpegArgs.d.ts +33 -0
  199. package/lib/ffmpegArgs.js +56 -0
  200. package/lib/ffmpegArgs.js.map +1 -0
  201. package/lib/film/AutoMovieOrderedScalar.d.ts +15 -0
  202. package/lib/film/AutoMovieOrderedScalar.js +3 -0
  203. package/lib/film/AutoMovieOrderedScalar.js.map +1 -0
  204. package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +28 -0
  205. package/lib/film/IAutoMovieProductionAudioAssetIdentity.js +3 -0
  206. package/lib/film/IAutoMovieProductionAudioAssetIdentity.js.map +1 -0
  207. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +29 -0
  208. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js +3 -0
  209. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js.map +1 -0
  210. package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +36 -0
  211. package/lib/film/IAutoMovieProductionEncoderIdentity.js +3 -0
  212. package/lib/film/IAutoMovieProductionEncoderIdentity.js.map +1 -0
  213. package/lib/film/IAutoMovieProductionRenderChunk.d.ts +39 -0
  214. package/lib/film/IAutoMovieProductionRenderChunk.js +3 -0
  215. package/lib/film/IAutoMovieProductionRenderChunk.js.map +1 -0
  216. package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +53 -0
  217. package/lib/film/IAutoMovieProductionRenderJobPlan.js +3 -0
  218. package/lib/film/IAutoMovieProductionRenderJobPlan.js.map +1 -0
  219. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +31 -0
  220. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js +3 -0
  221. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js.map +1 -0
  222. package/lib/film/IAutoMovieProductionRenderTier.d.ts +25 -0
  223. package/lib/film/IAutoMovieProductionRenderTier.js +3 -0
  224. package/lib/film/IAutoMovieProductionRenderTier.js.map +1 -0
  225. package/lib/film/assertSingleGuidePass.d.ts +19 -0
  226. package/lib/film/assertSingleGuidePass.js +35 -0
  227. package/lib/film/assertSingleGuidePass.js.map +1 -0
  228. package/lib/film/equalOrderedScalars.d.ts +27 -0
  229. package/lib/film/equalOrderedScalars.js +52 -0
  230. package/lib/film/equalOrderedScalars.js.map +1 -0
  231. package/lib/film/index.d.ts +9 -0
  232. package/lib/film/index.js +26 -0
  233. package/lib/film/index.js.map +1 -0
  234. package/lib/film/normalizeAudioAssets.d.ts +21 -0
  235. package/lib/film/normalizeAudioAssets.js +56 -0
  236. package/lib/film/normalizeAudioAssets.js.map +1 -0
  237. package/lib/film/normalizeRenderTier.d.ts +19 -0
  238. package/lib/film/normalizeRenderTier.js +45 -0
  239. package/lib/film/normalizeRenderTier.js.map +1 -0
  240. package/lib/film/planProductionRenderJob.d.ts +48 -0
  241. package/lib/film/planProductionRenderJob.js +196 -0
  242. package/lib/film/planProductionRenderJob.js.map +1 -0
  243. package/lib/film/productionVisualDeliveryOccurrence.d.ts +20 -0
  244. package/lib/film/productionVisualDeliveryOccurrence.js +24 -0
  245. package/lib/film/productionVisualDeliveryOccurrence.js.map +1 -0
  246. package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +21 -0
  247. package/lib/film/resolveProductionRenderTierFrameFormat.js +46 -0
  248. package/lib/film/resolveProductionRenderTierFrameFormat.js.map +1 -0
  249. package/lib/film/validDigest.d.ts +18 -0
  250. package/lib/film/validDigest.js +25 -0
  251. package/lib/film/validDigest.js.map +1 -0
  252. package/lib/film/validWaveAudioIdentity.d.ts +25 -0
  253. package/lib/film/validWaveAudioIdentity.js +76 -0
  254. package/lib/film/validWaveAudioIdentity.js.map +1 -0
  255. package/lib/frameName.d.ts +19 -0
  256. package/lib/frameName.js +24 -0
  257. package/lib/frameName.js.map +1 -0
  258. package/lib/framePattern.d.ts +16 -0
  259. package/lib/framePattern.js +21 -0
  260. package/lib/framePattern.js.map +1 -0
  261. package/lib/frameTimes.d.ts +20 -0
  262. package/lib/frameTimes.js +33 -0
  263. package/lib/frameTimes.js.map +1 -0
  264. package/lib/guidePassFrameName.d.ts +15 -0
  265. package/lib/guidePassFrameName.js +21 -0
  266. package/lib/guidePassFrameName.js.map +1 -0
  267. package/lib/guidePassFramePattern.d.ts +15 -0
  268. package/lib/guidePassFramePattern.js +21 -0
  269. package/lib/guidePassFramePattern.js.map +1 -0
  270. package/lib/guidePasses.d.ts +7 -0
  271. package/lib/guidePasses.js +24 -0
  272. package/lib/guidePasses.js.map +1 -0
  273. package/lib/guidePassesInternal/passExtension.d.ts +14 -0
  274. package/lib/guidePassesInternal/passExtension.js +18 -0
  275. package/lib/guidePassesInternal/passExtension.js.map +1 -0
  276. package/lib/index.d.ts +69 -0
  277. package/lib/index.js +86 -0
  278. package/lib/index.js.map +1 -0
  279. package/lib/isGuidePass.d.ts +15 -0
  280. package/lib/isGuidePass.js +20 -0
  281. package/lib/isGuidePass.js.map +1 -0
  282. package/lib/normalizeGuidePasses.d.ts +15 -0
  283. package/lib/normalizeGuidePasses.js +32 -0
  284. package/lib/normalizeGuidePasses.js.map +1 -0
  285. package/lib/planCaptionSidecar.d.ts +23 -0
  286. package/lib/planCaptionSidecar.js +56 -0
  287. package/lib/planCaptionSidecar.js.map +1 -0
  288. package/lib/planChunkedSequenceRender.d.ts +26 -0
  289. package/lib/planChunkedSequenceRender.js +132 -0
  290. package/lib/planChunkedSequenceRender.js.map +1 -0
  291. package/lib/planGuidePassOutputs.d.ts +19 -0
  292. package/lib/planGuidePassOutputs.js +31 -0
  293. package/lib/planGuidePassOutputs.js.map +1 -0
  294. package/lib/planPoseKeypointSidecar.d.ts +27 -0
  295. package/lib/planPoseKeypointSidecar.js +141 -0
  296. package/lib/planPoseKeypointSidecar.js.map +1 -0
  297. package/lib/planSequenceRender.d.ts +20 -0
  298. package/lib/planSequenceRender.js +99 -0
  299. package/lib/planSequenceRender.js.map +1 -0
  300. package/lib/planViewerFrameTimes.d.ts +33 -0
  301. package/lib/planViewerFrameTimes.js +74 -0
  302. package/lib/planViewerFrameTimes.js.map +1 -0
  303. package/lib/renderAndSee.d.ts +14 -0
  304. package/lib/renderAndSee.js +22 -0
  305. package/lib/renderAndSee.js.map +1 -0
  306. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +41 -0
  307. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js +3 -0
  308. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js.map +1 -0
  309. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +53 -0
  310. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js +3 -0
  311. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js.map +1 -0
  312. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +27 -0
  313. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js +3 -0
  314. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js.map +1 -0
  315. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +28 -0
  316. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js +77 -0
  317. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -0
  318. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +23 -0
  319. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js +55 -0
  320. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -0
  321. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +17 -0
  322. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js +51 -0
  323. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -0
  324. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +22 -0
  325. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js +32 -0
  326. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -0
  327. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +23 -0
  328. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js +35 -0
  329. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -0
  330. package/lib/renderBudgetPreflight/index.d.ts +9 -0
  331. package/lib/renderBudgetPreflight/index.js +26 -0
  332. package/lib/renderBudgetPreflight/index.js.map +1 -0
  333. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.d.ts +18 -0
  334. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js +22 -0
  335. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js.map +1 -0
  336. package/lib/renderCaptionSidecar.d.ts +13 -0
  337. package/lib/renderCaptionSidecar.js +17 -0
  338. package/lib/renderCaptionSidecar.js.map +1 -0
  339. package/lib/renderObservationAudit.d.ts +1 -0
  340. package/lib/renderObservationAudit.js +18 -0
  341. package/lib/renderObservationAudit.js.map +1 -0
  342. package/lib/renderPathStem.d.ts +22 -0
  343. package/lib/renderPathStem.js +64 -0
  344. package/lib/renderPathStem.js.map +1 -0
  345. package/lib/renderPoseKeypointSidecar.d.ts +15 -0
  346. package/lib/renderPoseKeypointSidecar.js +19 -0
  347. package/lib/renderPoseKeypointSidecar.js.map +1 -0
  348. package/lib/renderSequenceAndSee.d.ts +14 -0
  349. package/lib/renderSequenceAndSee.js +32 -0
  350. package/lib/renderSequenceAndSee.js.map +1 -0
  351. package/lib/renderSequenceVideo.d.ts +15 -0
  352. package/lib/renderSequenceVideo.js +35 -0
  353. package/lib/renderSequenceVideo.js.map +1 -0
  354. package/lib/renderVideo.d.ts +17 -0
  355. package/lib/renderVideo.js +45 -0
  356. package/lib/renderVideo.js.map +1 -0
  357. package/lib/screenplay/index.d.ts +1 -0
  358. package/lib/screenplay/index.js +18 -0
  359. package/lib/screenplay/index.js.map +1 -0
  360. package/lib/screenplay/renderScreenplay.d.ts +25 -0
  361. package/lib/screenplay/renderScreenplay.js +101 -0
  362. package/lib/screenplay/renderScreenplay.js.map +1 -0
  363. package/lib/screenplay/screenplaySceneSlug.d.ts +17 -0
  364. package/lib/screenplay/screenplaySceneSlug.js +21 -0
  365. package/lib/screenplay/screenplaySceneSlug.js.map +1 -0
  366. package/lib/sequenceRenderPlan.d.ts +5 -0
  367. package/lib/sequenceRenderPlan.js +22 -0
  368. package/lib/sequenceRenderPlan.js.map +1 -0
  369. package/lib/sequenceRenderVideo.d.ts +6 -0
  370. package/lib/sequenceRenderVideo.js +23 -0
  371. package/lib/sequenceRenderVideo.js.map +1 -0
  372. package/lib/shotBeat.d.ts +18 -0
  373. package/lib/shotBeat.js +23 -0
  374. package/lib/shotBeat.js.map +1 -0
  375. package/lib/sliceCaptionSidecar.d.ts +15 -0
  376. package/lib/sliceCaptionSidecar.js +57 -0
  377. package/lib/sliceCaptionSidecar.js.map +1 -0
  378. package/package.json +46 -3
  379. package/src/AUTOMOVIE_GUIDE_PASSES.ts +19 -0
  380. package/src/IAutoMovieCaptionEntry.ts +32 -0
  381. package/src/IAutoMovieCaptionSidecar.ts +29 -0
  382. package/src/IAutoMovieCapturedFrame.ts +24 -0
  383. package/src/IAutoMovieGuidePassOutput.ts +27 -0
  384. package/src/IAutoMoviePoseKeypointActor.ts +39 -0
  385. package/src/IAutoMoviePoseKeypointFrame.ts +28 -0
  386. package/src/IAutoMoviePoseKeypointSidecar.ts +25 -0
  387. package/src/IAutoMovieRenderAdapters.ts +39 -0
  388. package/src/IAutoMovieRenderAndSeeRequest.ts +38 -0
  389. package/src/IAutoMovieRenderAndSeeResult.ts +23 -0
  390. package/src/IAutoMovieRenderChunk.ts +62 -0
  391. package/src/IAutoMovieRenderChunkPlan.ts +40 -0
  392. package/src/IAutoMovieRenderPassManifest.ts +25 -0
  393. package/src/IAutoMovieRenderReassembly.ts +28 -0
  394. package/src/IAutoMovieRenderResult.ts +46 -0
  395. package/src/IAutoMovieSequenceRenderAdapters.ts +41 -0
  396. package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +47 -0
  397. package/src/IAutoMovieSequenceRenderAndSeeResult.ts +23 -0
  398. package/src/IAutoMovieSequenceRenderFrame.ts +48 -0
  399. package/src/IAutoMovieSequenceRenderPlan.ts +88 -0
  400. package/src/IAutoMovieSequenceRenderResult.ts +52 -0
  401. package/src/IAutoMovieSequenceRenderShotSpan.ts +46 -0
  402. package/src/IAutoMovieSequenceRenderTransitionSpan.ts +46 -0
  403. package/src/audio/encodeAutoMovieWavPcm16.ts +65 -0
  404. package/src/audio/index.ts +2 -0
  405. package/src/audio/mixAutoMovieAudioPcm.ts +137 -0
  406. package/src/auditAutoMovieRenderObservation.ts +79 -0
  407. package/src/cache/createAutoMovieHttpArtifactStore.ts +84 -0
  408. package/src/caption/IAutoMovieBeatCaption.ts +23 -0
  409. package/src/caption/autoMovieCaptionLanguageComparisonKey.ts +23 -0
  410. package/src/caption/beatCaptions.ts +59 -0
  411. package/src/caption/canonicalProductionWebVtt.ts +76 -0
  412. package/src/caption/canonicalizeAutoMovieCaptionText.ts +24 -0
  413. package/src/caption/escapeWebVttText.ts +23 -0
  414. package/src/caption/index.ts +11 -0
  415. package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +231 -0
  416. package/src/caption/isAutoMovieWebVttIdentifier.ts +26 -0
  417. package/src/caption/parseAutoMovieCaptionLanguage.ts +160 -0
  418. package/src/caption/serializeAutoMovieWebVttCueText.ts +28 -0
  419. package/src/caption/serializeAutoMovieWebVttIdentifier.ts +27 -0
  420. package/src/caption/serializeAutoMovieWebVttSingleLineText.ts +26 -0
  421. package/src/caption/webVttCaptionLanguage.ts +30 -0
  422. package/src/caption/webVttTime.ts +30 -0
  423. package/src/captionPlan.ts +1 -0
  424. package/src/captionSidecar.ts +3 -0
  425. package/src/captionSlice.ts +1 -0
  426. package/src/chunkSequenceRender.ts +5 -0
  427. package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +21 -0
  428. package/src/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.ts +14 -0
  429. package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +28 -0
  430. package/src/delivery/AutoMovieProductionPngRole.ts +18 -0
  431. package/src/delivery/IAutoMovieProductionPngProfile.ts +52 -0
  432. package/src/delivery/IAutoMovieProductionVideoProfile.ts +48 -0
  433. package/src/delivery/assertAutoMovieCaptureClock.ts +37 -0
  434. package/src/delivery/assertProductionOpusProfile.ts +179 -0
  435. package/src/delivery/assertProductionPngPicture.ts +62 -0
  436. package/src/delivery/assertProductionVideoProfile.ts +180 -0
  437. package/src/delivery/auditAutoMovieDecodedFrames.ts +157 -0
  438. package/src/delivery/auditAutoMovieEncodedPresentation.ts +86 -0
  439. package/src/delivery/index.ts +14 -0
  440. package/src/delivery/planAutoMovieCaptureUrl.ts +32 -0
  441. package/src/delivery/productionOpusDescription.ts +173 -0
  442. package/src/delivery/resolveProductionPngProfile.ts +70 -0
  443. package/src/delivery/resolveProductionVideoProfile.ts +48 -0
  444. package/src/ffmpegArgs.ts +61 -0
  445. package/src/film/AutoMovieOrderedScalar.ts +15 -0
  446. package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +40 -0
  447. package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +34 -0
  448. package/src/film/IAutoMovieProductionEncoderIdentity.ts +42 -0
  449. package/src/film/IAutoMovieProductionRenderChunk.ts +47 -0
  450. package/src/film/IAutoMovieProductionRenderJobPlan.ts +73 -0
  451. package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +37 -0
  452. package/src/film/IAutoMovieProductionRenderTier.ts +27 -0
  453. package/src/film/assertSingleGuidePass.ts +38 -0
  454. package/src/film/equalOrderedScalars.ts +56 -0
  455. package/src/film/index.ts +9 -0
  456. package/src/film/normalizeAudioAssets.ts +74 -0
  457. package/src/film/normalizeRenderTier.ts +51 -0
  458. package/src/film/planProductionRenderJob.ts +353 -0
  459. package/src/film/productionVisualDeliveryOccurrence.ts +28 -0
  460. package/src/film/resolveProductionRenderTierFrameFormat.ts +60 -0
  461. package/src/film/validDigest.ts +23 -0
  462. package/src/film/validWaveAudioIdentity.ts +88 -0
  463. package/src/frameName.ts +24 -0
  464. package/src/framePattern.ts +19 -0
  465. package/src/frameTimes.ts +36 -0
  466. package/src/guidePassFrameName.ts +29 -0
  467. package/src/guidePassFramePattern.ts +27 -0
  468. package/src/guidePasses.ts +7 -0
  469. package/src/guidePassesInternal/passExtension.ts +19 -0
  470. package/src/index.ts +69 -0
  471. package/src/isGuidePass.ts +21 -0
  472. package/src/normalizeGuidePasses.ts +33 -0
  473. package/src/planCaptionSidecar.ts +98 -0
  474. package/src/planChunkedSequenceRender.ts +200 -0
  475. package/src/planGuidePassOutputs.ts +47 -0
  476. package/src/planPoseKeypointSidecar.ts +289 -0
  477. package/src/planSequenceRender.ts +175 -0
  478. package/src/planViewerFrameTimes.ts +98 -0
  479. package/src/renderAndSee.ts +30 -0
  480. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +53 -0
  481. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +61 -0
  482. package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +29 -0
  483. package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +137 -0
  484. package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +100 -0
  485. package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +82 -0
  486. package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +40 -0
  487. package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +59 -0
  488. package/src/renderBudgetPreflight/index.ts +9 -0
  489. package/src/renderBudgetPreflight/selectAutoMovieRenderBudget.ts +28 -0
  490. package/src/renderCaptionSidecar.ts +17 -0
  491. package/src/renderObservationAudit.ts +1 -0
  492. package/src/renderPathStem.ts +61 -0
  493. package/src/renderPoseKeypointSidecar.ts +19 -0
  494. package/src/renderSequenceAndSee.ts +34 -0
  495. package/src/renderSequenceVideo.ts +44 -0
  496. package/src/renderVideo.ts +65 -0
  497. package/src/screenplay/index.ts +1 -0
  498. package/src/screenplay/renderScreenplay.ts +128 -0
  499. package/src/screenplay/screenplaySceneSlug.ts +29 -0
  500. package/src/sequenceRenderPlan.ts +5 -0
  501. package/src/sequenceRenderVideo.ts +6 -0
  502. package/src/shotBeat.ts +19 -0
  503. package/src/sliceCaptionSidecar.ts +85 -0
@@ -0,0 +1,53 @@
1
+ import { IAutoMovieRenderBudgetAssessment } from "./IAutoMovieRenderBudgetAssessment";
2
+ /**
3
+ * One caller-supplied tier's budget evidence over its supplied shot assessments. The record itself proves neither complete shot coverage nor actual rendering or publication.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation A versioned tier envelope sorts shot assessments, names declared tiers and orders over, not-run, incomplete and within outcomes, with empty populations reported not-run.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The document is the stable publication unit for job-level budget evidence and delegates measurements to its shot assessments.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts An undeclared tier remains explicitly unbudgeted, and no assessment population is treated as a successful measurement when empty.
8
+ * @evidence contracts/development/common.md#meaningful-documentation Members state protocol identity, severity order, tier ordering, empty-population behavior and verdict-based digest scope.
9
+ */
10
+ export interface IAutoMovieRenderBudgetEvidence {
11
+ /**
12
+ * Evidence format.
13
+ */
14
+ version: 1;
15
+ /**
16
+ * Versioned evidence protocol.
17
+ */
18
+ protocol: "automovie.render-budget-evidence.v1";
19
+ /**
20
+ * Quality tier the job targeted.
21
+ */
22
+ tier: string;
23
+ /**
24
+ * Every tier the production declared, ascending.
25
+ *
26
+ * A job that found no budget for its own tier reads as `unbudgeted`, and this
27
+ * is what tells a mistyped tier apart from a production that deliberately
28
+ * declares none.
29
+ */
30
+ declaredTiers: string[];
31
+ /**
32
+ * Whether a budget was found for {@link tier}.
33
+ */
34
+ budgeted: boolean;
35
+ /**
36
+ * The worst outcome any shot produced.
37
+ *
38
+ * `over` beats `not-run`, which beats `incomplete`, which beats `within`. This aggregate states the supplied outcomes; autoMovieRenderBudgetRefusal returns text for over-limit and required-texture gaps, but no current job consumer automatically enforces it.
39
+ *
40
+ * A document over no shots at all is `not-run`, never `within`: nothing was
41
+ * measured, and a verdict over an empty set is the cheapest way a report ends
42
+ * up clearing a production it never read.
43
+ */
44
+ status: IAutoMovieRenderBudgetAssessment["status"];
45
+ /**
46
+ * One assessment per shot, ascending by shot id.
47
+ */
48
+ shots: IAutoMovieRenderBudgetAssessment[];
49
+ /**
50
+ * Digest over protocol, tier, declared tiers, aggregate status and ordered shot id/status/report-digest/target-digest tuples; full report and target values are represented only by their supplied digests.
51
+ */
52
+ digest: string;
53
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieRenderBudgetEvidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieRenderBudgetEvidence.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * What a capture host reports about the graphics context it drew through.
3
+ *
4
+ * The shape a Playwright/WebGL probe answers with, not a renderer identity:
5
+ * `renderer` is WebGL's own spelling of the device string, and the render
6
+ * target calls the same field `device`. Naming both here is what keeps the
7
+ * translation in one place instead of at every call site.
8
+ *
9
+ * @evidence contracts/development/design.md#principled-representation The host probe reports API, vendor and renderer spellings; the renderer field is intentionally distinct from the target's device spelling until projection.
10
+ * @evidence contracts/development/design.md#minimal-and-owned-surface This boundary type represents the graphics observation without claiming it has already become a sealed render target.
11
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Masked vendor and renderer values remain host observations rather than invented device capabilities.
12
+ * @evidence contracts/development/common.md#meaningful-documentation Members identify WebGL unmasked constants, their masked fallbacks and the API family string.
13
+ */
14
+ export interface IAutoMovieRenderGraphicsIdentity {
15
+ /**
16
+ * Graphics API family the context reported, such as `webgl2`.
17
+ */
18
+ api: string;
19
+ /**
20
+ * `UNMASKED_VENDOR_WEBGL`, or the plain `VENDOR` when it is masked.
21
+ */
22
+ vendor: string;
23
+ /**
24
+ * `UNMASKED_RENDERER_WEBGL`, or the plain `RENDERER` when it is masked.
25
+ */
26
+ renderer: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieRenderGraphicsIdentity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieRenderGraphicsIdentity.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { type IAutoMovieRenderTextureResidency, IAutoMovieRenderTextureSource } from "@automovie/engine";
2
+ import { IAutoMovieCompiledShotSource, IAutoMovieRenderBudget, IAutoMovieRenderTargetAsset, IAutoMovieRenderTargetRenderer, IAutoMovieRenderTargetSettings } from "@automovie/interface";
3
+ import { IAutoMovieRenderBudgetAssessment } from "./IAutoMovieRenderBudgetAssessment";
4
+ /**
5
+ * Measure one caller-supplied compiled shot against an explicitly supplied budget, renderer identity, settings, assets and decoded texture/residency facts. The subject feeds both mask ownership and inventory measurement; the sealed target names those supplied inputs rather than proving that a renderer drew a frame.
6
+ *
7
+ * A null renderer produces not-run without inventing graphics identity. The helper performs no draw, capture-host acquisition or texture allocation, and the caller owns the provenance of its observation records.
8
+ *
9
+ * Maintained callers are tests and the internal budget-helper chain. ProductionDesign.renderBudgets has no current execution reader wiring this assessment into an automatic render-job gate; accepting an explicit budget here does not establish that integration.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation A compiled-shot subject supplies both inventory and semantic ownership; settings and renderer are sealed into the target, and only required texture assets contribute to its upload identity. Missing graphics identity produces not-run rather than an invented renderer.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The preflight composes engine subject, mask, inventory, target and budget operations without duplicating validators. Its shot-specific wrapper normally retains the thrown cause, but String(error) can itself throw for an uninspectable thrown object before that wrapper is constructed.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No renderer is fabricated and the same compiled artifact feeds ownership and measurement. The catch still assumes diagnostic string conversion succeeds; a failed coercion can replace the intended context/cause wrapper and remains an unresolved failure-path limitation.
14
+ * @evidence contracts/development/common.md#meaningful-documentation Documents explicit input ownership, supplied target identity, not-run versus incomplete analysis and the current internal/test-only caller boundary; it claims neither an observed draw nor automatic ProductionDesign.renderBudgets execution.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms Cost is the delegated inventory and mask traversal plus a linear filter over texture sources; the target is sealed twice because measured required assets are needed to compute its final texture digest.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work One subject and mask serve both inventory measurement and budget attribution; all sharing is confined to this artifact and the supplied renderer, settings, assets and residency facts.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The assessment retains the inventory, mask, report and sealed target until its caller discards them; it neither acquires the renderer nor owns texture allocation or host tasks.
18
+ */
19
+ export declare const assessAutoMovieRenderBudget: (props: {
20
+ compiled: IAutoMovieCompiledShotSource;
21
+ shot: string;
22
+ budget: IAutoMovieRenderBudget | null;
23
+ renderer: IAutoMovieRenderTargetRenderer | null;
24
+ settings: IAutoMovieRenderTargetSettings;
25
+ assets: readonly IAutoMovieRenderTargetAsset[];
26
+ textures?: readonly IAutoMovieRenderTextureSource[];
27
+ textureResidency?: IAutoMovieRenderTextureResidency;
28
+ }) => IAutoMovieRenderBudgetAssessment;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assessAutoMovieRenderBudget = void 0;
4
+ const engine_1 = require("@automovie/engine");
5
+ /**
6
+ * Measure one caller-supplied compiled shot against an explicitly supplied budget, renderer identity, settings, assets and decoded texture/residency facts. The subject feeds both mask ownership and inventory measurement; the sealed target names those supplied inputs rather than proving that a renderer drew a frame.
7
+ *
8
+ * A null renderer produces not-run without inventing graphics identity. The helper performs no draw, capture-host acquisition or texture allocation, and the caller owns the provenance of its observation records.
9
+ *
10
+ * Maintained callers are tests and the internal budget-helper chain. ProductionDesign.renderBudgets has no current execution reader wiring this assessment into an automatic render-job gate; accepting an explicit budget here does not establish that integration.
11
+ *
12
+ * @evidence contracts/development/implementation.md#principled-implementation A compiled-shot subject supplies both inventory and semantic ownership; settings and renderer are sealed into the target, and only required texture assets contribute to its upload identity. Missing graphics identity produces not-run rather than an invented renderer.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The preflight composes engine subject, mask, inventory, target and budget operations without duplicating validators. Its shot-specific wrapper normally retains the thrown cause, but String(error) can itself throw for an uninspectable thrown object before that wrapper is constructed.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No renderer is fabricated and the same compiled artifact feeds ownership and measurement. The catch still assumes diagnostic string conversion succeeds; a failed coercion can replace the intended context/cause wrapper and remains an unresolved failure-path limitation.
15
+ * @evidence contracts/development/common.md#meaningful-documentation Documents explicit input ownership, supplied target identity, not-run versus incomplete analysis and the current internal/test-only caller boundary; it claims neither an observed draw nor automatic ProductionDesign.renderBudgets execution.
16
+ * @evidence contracts/development/implementation.md#efficient-algorithms Cost is the delegated inventory and mask traversal plus a linear filter over texture sources; the target is sealed twice because measured required assets are needed to compute its final texture digest.
17
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work One subject and mask serve both inventory measurement and budget attribution; all sharing is confined to this artifact and the supplied renderer, settings, assets and residency facts.
18
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The assessment retains the inventory, mask, report and sealed target until its caller discards them; it neither acquires the renderer nor owns texture allocation or host tasks.
19
+ */
20
+ const assessAutoMovieRenderBudget = (props) => {
21
+ if (props.renderer === null)
22
+ return {
23
+ shot: props.shot,
24
+ status: "not-run",
25
+ reason: "the capture host reported no graphics identity, so no render target could be sealed and no budget verdict is attributable to a renderer",
26
+ report: null,
27
+ inventory: null,
28
+ mask: null,
29
+ target: null,
30
+ };
31
+ try {
32
+ const subject = (0, engine_1.autoMovieRenderSubjectOfCompiledShot)({
33
+ compiled: props.compiled,
34
+ textures: props.textures,
35
+ textureResidency: props.textureResidency,
36
+ });
37
+ const mask = (0, engine_1.deriveAutoMovieSemanticMask)(subject);
38
+ const targetBase = (0, engine_1.sealAutoMovieRenderTarget)({
39
+ renderer: props.renderer,
40
+ settings: props.settings,
41
+ assets: props.assets,
42
+ });
43
+ const inventory = (0, engine_1.measureAutoMovieRenderInventory)({
44
+ subject,
45
+ mask,
46
+ settings: targetBase.settings,
47
+ });
48
+ const required = new Set(inventory.textures.flatMap((row) => row.assets ?? (row.asset === null ? [] : [row.asset])));
49
+ const target = (0, engine_1.sealAutoMovieRenderTarget)({
50
+ renderer: props.renderer,
51
+ settings: targetBase.settings,
52
+ assets: props.assets,
53
+ textureDigest: (0, engine_1.autoMovieRenderTextureDigest)((props.textures ?? []).filter((source) => required.has(source.asset)), props.textureResidency),
54
+ });
55
+ const report = (0, engine_1.evaluateAutoMovieRenderBudget)({
56
+ inventory,
57
+ budget: props.budget,
58
+ mask,
59
+ target,
60
+ });
61
+ return {
62
+ shot: props.shot,
63
+ status: report.status,
64
+ reason: null,
65
+ report,
66
+ inventory,
67
+ mask,
68
+ target,
69
+ };
70
+ }
71
+ catch (error) {
72
+ // Add the caller's shot id to engine validation context and retain the original thrown value as the cause; String(error) contributes only the diagnostic representation.
73
+ throw new Error(`render budget preflight could not measure shot "${props.shot}": ${String(error)}`, { cause: error });
74
+ }
75
+ };
76
+ exports.assessAutoMovieRenderBudget = assessAutoMovieRenderBudget;
77
+ //# sourceMappingURL=assessAutoMovieRenderBudget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessAutoMovieRenderBudget.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts"],"names":[],"mappings":";;;AAAA,8CAS2B;AAW3B;;;;;;;;;;;;;;GAcG;AACI,MAAM,2BAA2B,GASC,CAAC,KAiBzC,EAAoC,EAAE;IACrC,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI;QACzB,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,SAAS;YACjB,MAAM,EACJ,yIAAyI;YAC3I,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,IAAI,CAAC;QACH,MAAM,OAAO,GACX,IAAA,6CAAoC,EAAC;YACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;SACzC,CAAC,CAAC;QACL,MAAM,IAAI,GACR,IAAA,oCAA2B,EAAC,OAAO,CAAC,CAAC;QACvC,MAAM,UAAU,GACd,IAAA,kCAAyB,EAAC;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;QACL,MAAM,SAAS,GACb,IAAA,wCAA+B,EAAC;YAC9B,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAC9B,CAAC,CAAC;QACL,MAAM,QAAQ,GAAgB,IAAI,GAAG,CACnC,SAAS,CAAC,QAAQ,CAAC,OAAO,CACxB,CAAC,GAAwC,EAAY,EAAE,CACrD,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CACxD,CACF,CAAC;QACF,MAAM,MAAM,GACV,IAAA,kCAAyB,EAAC;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,aAAa,EAAE,IAAA,qCAA4B,EACzC,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,CAC3B,CAAC,MAAqC,EAAW,EAAE,CACjD,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAC7B,EACD,KAAK,CAAC,gBAAgB,CACvB;SACF,CAAC,CAAC;QACL,MAAM,MAAM,GACV,IAAA,sCAA6B,EAAC;YAC5B,SAAS;YACT,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI;YACJ,MAAM;SACP,CAAC,CAAC;QACL,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM,EAAE,IAAI;YACZ,MAAM;YACN,SAAS;YACT,IAAI;YACJ,MAAM;SACP,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,yKAAyK;QACzK,MAAM,IAAI,KAAK,CACb,mDAAmD,KAAK,CAAC,IAAI,MAAM,MAAM,CAAC,KAAK,CAAC,EAAE,EAClF,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AArGW,QAAA,2BAA2B,GAA3B,2BAA2B,CAqGtC"}
@@ -0,0 +1,23 @@
1
+ import { IAutoMovieRenderBudget } from "@automovie/interface";
2
+ import { IAutoMovieRenderBudgetAssessment } from "./IAutoMovieRenderBudgetAssessment";
3
+ import { IAutoMovieRenderBudgetEvidence } from "./IAutoMovieRenderBudgetEvidence";
4
+ /**
5
+ * Fold caller-supplied assessments into one tier's budget-evidence value. This reducer writes no publication and verifies no report provenance or rendered population.
6
+ *
7
+ * The digest covers the protocol, tier, declared tier list, aggregate status and ordered shot tuples of id, status, report digest and target digest. It does not serialize the complete report or target into this hash, but their supplied digests participate in identity; equivalent tuples produce the same content address.
8
+ *
9
+ * `budgets` is the production's whole declaration, read for `declaredTiers` and for whether this tier was budgeted at all. The assessments must already have been made against {@link selectAutoMovieRenderBudget}'s answer for the same tier; hand them a different budget and `budgeted` describes the declaration while every finding describes something else. The caller supplies one assessment per shot id; sorting alone does not validate that denominator.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation Sorted shot verdicts and deduplicated sorted declared tiers determine the worst status; structured JSON encoding distinguishes arbitrary string field contents before hashing, avoiding delimiter aliases.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This reducer owns the tier-level envelope while selectAutoMovieRenderBudget owns tier lookup and individual assessments own measurement. Current callers are tests and internal budget helpers; no automatic production publication or render-job gate is wired here.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An empty shot set reports not-run, and incomplete or over verdicts retain their own status; no absent report is interpreted as clearance.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The comment lists the exact digest denominator and caller obligations for selected-budget assessment and unique shot ids; evidence members define ordering, severity and the empty-population outcome.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S assessments and B budgets, sorting costs O(S log S+B log B), reduction and serialization are linear, and retained output holds S assessment references and B tier strings.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing assessment reports and targets are referenced rather than recomputed; canonical ordering permits callers to reuse byte-identical evidence for equivalent verdict inputs.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The output retains the sorted assessment array and tier list; sorting copies the input array and opens no file, encoder or renderer resource.
18
+ */
19
+ export declare const autoMovieRenderBudgetEvidence: (props: {
20
+ tier: string;
21
+ budgets: readonly IAutoMovieRenderBudget[] | undefined;
22
+ assessments: readonly IAutoMovieRenderBudgetAssessment[];
23
+ }) => IAutoMovieRenderBudgetEvidence;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.autoMovieRenderBudgetEvidence = void 0;
4
+ const engine_1 = require("@automovie/engine");
5
+ const selectAutoMovieRenderBudget_1 = require("./selectAutoMovieRenderBudget");
6
+ const STATUS_ORDER = { within: 0, incomplete: 1, "not-run": 2, over: 3 };
7
+ /**
8
+ * Fold caller-supplied assessments into one tier's budget-evidence value. This reducer writes no publication and verifies no report provenance or rendered population.
9
+ *
10
+ * The digest covers the protocol, tier, declared tier list, aggregate status and ordered shot tuples of id, status, report digest and target digest. It does not serialize the complete report or target into this hash, but their supplied digests participate in identity; equivalent tuples produce the same content address.
11
+ *
12
+ * `budgets` is the production's whole declaration, read for `declaredTiers` and for whether this tier was budgeted at all. The assessments must already have been made against {@link selectAutoMovieRenderBudget}'s answer for the same tier; hand them a different budget and `budgeted` describes the declaration while every finding describes something else. The caller supplies one assessment per shot id; sorting alone does not validate that denominator.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation Sorted shot verdicts and deduplicated sorted declared tiers determine the worst status; structured JSON encoding distinguishes arbitrary string field contents before hashing, avoiding delimiter aliases.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This reducer owns the tier-level envelope while selectAutoMovieRenderBudget owns tier lookup and individual assessments own measurement. Current callers are tests and internal budget helpers; no automatic production publication or render-job gate is wired here.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An empty shot set reports not-run, and incomplete or over verdicts retain their own status; no absent report is interpreted as clearance.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The comment lists the exact digest denominator and caller obligations for selected-budget assessment and unique shot ids; evidence members define ordering, severity and the empty-population outcome.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S assessments and B budgets, sorting costs O(S log S+B log B), reduction and serialization are linear, and retained output holds S assessment references and B tier strings.
19
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing assessment reports and targets are referenced rather than recomputed; canonical ordering permits callers to reuse byte-identical evidence for equivalent verdict inputs.
20
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The output retains the sorted assessment array and tier list; sorting copies the input array and opens no file, encoder or renderer resource.
21
+ */
22
+ const autoMovieRenderBudgetEvidence = (props) => {
23
+ const shots = [...props.assessments].sort((left, right) => (0, engine_1.compareAutoMovieRenderIds)(left.shot, right.shot));
24
+ const status = shots.length === 0
25
+ ? "not-run"
26
+ : shots.reduce((worst, shot) => STATUS_ORDER[shot.status] > STATUS_ORDER[worst]
27
+ ? shot.status
28
+ : worst, "within");
29
+ const declaredTiers = [
30
+ ...new Set((props.budgets ?? []).map((budget) => budget.tier)),
31
+ ].sort(engine_1.compareAutoMovieRenderIds);
32
+ return {
33
+ version: 1,
34
+ protocol: "automovie.render-budget-evidence.v1",
35
+ tier: props.tier,
36
+ declaredTiers,
37
+ budgeted: (0, selectAutoMovieRenderBudget_1.selectAutoMovieRenderBudget)(props.budgets, props.tier) !== null,
38
+ status,
39
+ shots,
40
+ digest: (0, engine_1.autoMovieRenderDigest)(JSON.stringify({
41
+ protocol: "automovie.render-budget-evidence.v1",
42
+ tier: props.tier,
43
+ declaredTiers,
44
+ status,
45
+ shots: shots.map((shot) => [
46
+ shot.shot,
47
+ shot.status,
48
+ shot.report?.digest ?? null,
49
+ shot.target?.digest ?? null,
50
+ ]),
51
+ })),
52
+ };
53
+ };
54
+ exports.autoMovieRenderBudgetEvidence = autoMovieRenderBudgetEvidence;
55
+ //# sourceMappingURL=autoMovieRenderBudgetEvidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoMovieRenderBudgetEvidence.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts"],"names":[],"mappings":";;;AAAA,8CAG2B;AAK3B,+EAA4E;AAE5E,MAAM,YAAY,GAEd,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAExD;;;;;;;;;;;;;;GAcG;AACI,MAAM,6BAA6B,GAIH,CAAC,KAOvC,EAAkC,EAAE;IACnC,MAAM,KAAK,GAAuC,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAC3E,CACE,IAAsC,EACtC,KAAuC,EAC/B,EAAE,CAAC,IAAA,kCAAyB,EAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAC9D,CAAC;IACF,MAAM,MAAM,GACV,KAAK,CAAC,MAAM,KAAK,CAAC;QAChB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,MAAM,CACV,CACE,KAAiD,EACjD,IAAsC,EACM,EAAE,CAC9C,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;YAC7C,CAAC,CAAC,IAAI,CAAC,MAAM;YACb,CAAC,CAAC,KAAK,EACX,QAAQ,CACT,CAAC;IACR,MAAM,aAAa,GAAa;QAC9B,GAAG,IAAI,GAAG,CACR,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CACvB,CAAC,MAA8B,EAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CACxD,CACF;KACF,CAAC,IAAI,CAAC,kCAAyB,CAAC,CAAC;IAClC,OAAO;QACL,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,qCAAqC;QAC/C,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,aAAa;QACb,QAAQ,EAAE,IAAA,yDAA2B,EAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI;QACzE,MAAM;QACN,KAAK;QACL,MAAM,EAAE,IAAA,8BAAqB,EAC3B,IAAI,CAAC,SAAS,CAAC;YACb,QAAQ,EAAE,qCAAqC;YAC/C,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,aAAa;YACb,MAAM;YACN,KAAK,EAAE,KAAK,CAAC,GAAG,CACd,CACE,IAAsC,EAMtC,EAAE,CAAC;gBACH,IAAI,CAAC,IAAI;gBACT,IAAI,CAAC,MAAM;gBACX,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,IAAI;gBAC3B,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,IAAI;aAC5B,CACF;SACF,CAAC,CACH;KACF,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,6BAA6B,GAA7B,6BAA6B,CAsExC"}
@@ -0,0 +1,17 @@
1
+ import { IAutoMovieRenderBudgetEvidence } from "./IAutoMovieRenderBudgetEvidence";
2
+ /**
3
+ * Format the caller-supplied budget evidence as an over-limit or unknown-required-texture diagnostic, or return null when neither condition is recorded. This helper returns text; it raises no job refusal and does not verify the provenance of supplied reports.
4
+ *
5
+ * Every recorded over-limit and required-texture count/byte gap remains visible together; absent storage facts do not become clearance. Other incomplete analyses retain their owning contract's outcome, so a null result is not blanket admission.
6
+ *
7
+ * Maintained consumers are internal budget helpers and tests. ProductionDesign.renderBudgets has no execution reader connecting this text to automatic render-job refusal.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation Over-limit assessments and gaps in required texture counts or bytes produce independent diagnostics, so unknown storage remains a refusal even beside an over-limit verdict.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function converts budget evidence into an operator message and leaves each measurement or recovery explanation with the owning engine report.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A finding-less over verdict still names its shot instead of disappearing, and unavailable texture bounds are never treated as zero.
12
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the explicit supplied-evidence diagnostic conditions, null-result limits and internal/test-only caller boundary, including the absent automatic ProductionDesign.renderBudgets refusal wiring.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S shots and their total G gaps and findings, the fixed filter and message-building passes cost O(S+G) time and allocate only the selected records and resulting strings.
14
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Messages reuse recorded gap reasons and finding recoveries; no inventory or budget measurement is repeated during refusal formatting.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Filtered shot arrays and recovery strings are temporary, and only the returned diagnostic string escapes; no evidence store or host handle is acquired.
16
+ */
17
+ export declare const autoMovieRenderBudgetRefusal: (evidence: IAutoMovieRenderBudgetEvidence) => string | null;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.autoMovieRenderBudgetRefusal = void 0;
4
+ /**
5
+ * Format the caller-supplied budget evidence as an over-limit or unknown-required-texture diagnostic, or return null when neither condition is recorded. This helper returns text; it raises no job refusal and does not verify the provenance of supplied reports.
6
+ *
7
+ * Every recorded over-limit and required-texture count/byte gap remains visible together; absent storage facts do not become clearance. Other incomplete analyses retain their owning contract's outcome, so a null result is not blanket admission.
8
+ *
9
+ * Maintained consumers are internal budget helpers and tests. ProductionDesign.renderBudgets has no execution reader connecting this text to automatic render-job refusal.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation Over-limit assessments and gaps in required texture counts or bytes produce independent diagnostics, so unknown storage remains a refusal even beside an over-limit verdict.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function converts budget evidence into an operator message and leaves each measurement or recovery explanation with the owning engine report.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A finding-less over verdict still names its shot instead of disappearing, and unavailable texture bounds are never treated as zero.
14
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the explicit supplied-evidence diagnostic conditions, null-result limits and internal/test-only caller boundary, including the absent automatic ProductionDesign.renderBudgets refusal wiring.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S shots and their total G gaps and findings, the fixed filter and message-building passes cost O(S+G) time and allocate only the selected records and resulting strings.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Messages reuse recorded gap reasons and finding recoveries; no inventory or budget measurement is repeated during refusal formatting.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Filtered shot arrays and recovery strings are temporary, and only the returned diagnostic string escapes; no evidence store or host handle is acquired.
18
+ */
19
+ const autoMovieRenderBudgetRefusal = (evidence) => {
20
+ const over = evidence.shots.filter((shot) => shot.status === "over");
21
+ const unknown = evidence.shots.filter((shot) => shot.inventory?.gaps.some((gap) => gap.metric === "textureBytes" || gap.metric === "textures") === true);
22
+ const unknownMessage = unknown.length === 0
23
+ ? null
24
+ : `Render tier "${evidence.tier}" has no safe resident texture bound in ${unknown.length} shot(s): ${unknown
25
+ .map((shot) => `${shot.shot}: ${shot
26
+ .inventory.gaps.filter((gap) => gap.metric === "textureBytes" || gap.metric === "textures")
27
+ .map((gap) => `${gap.reason}; ${gap.remedy}`)
28
+ .join("; ")}`)
29
+ .join(" | ")}`;
30
+ if (over.length === 0)
31
+ return unknownMessage;
32
+ const overMessage = `Render tier "${evidence.tier}" is over budget in ${over.length} shot(s): ${over
33
+ .map((shot) => {
34
+ // A verdict carries the findings that produced it. One that does not is
35
+ // a caller-built record, and the refusal still has to name the shot: a
36
+ // message that quietly dropped it would leave an over-budget render with
37
+ // nothing to act on.
38
+ const recoveries = (shot.report?.findings ?? [])
39
+ .filter((finding) => finding.status === "over")
40
+ .map((finding) => finding.recovery);
41
+ return `${shot.shot}: ${recoveries.length === 0
42
+ ? "the assessment recorded no over-limit finding to recover from"
43
+ : recoveries.join("; ")}`;
44
+ })
45
+ .join(" | ")}`;
46
+ return unknownMessage === null
47
+ ? overMessage
48
+ : `${overMessage}\n${unknownMessage}`;
49
+ };
50
+ exports.autoMovieRenderBudgetRefusal = autoMovieRenderBudgetRefusal;
51
+ //# sourceMappingURL=autoMovieRenderBudgetRefusal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoMovieRenderBudgetRefusal.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts"],"names":[],"mappings":";;;AAQA;;;;;;;;;;;;;;GAcG;AACI,MAAM,4BAA4B,GAEpB,CACnB,QAAwC,EACzB,EAAE;IACjB,MAAM,IAAI,GAAuC,QAAQ,CAAC,KAAK,CAAC,MAAM,CACpE,CAAC,IAAsC,EAAW,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAC5E,CAAC;IACF,MAAM,OAAO,GAAuC,QAAQ,CAAC,KAAK,CAAC,MAAM,CACvE,CAAC,IAAsC,EAAW,EAAE,CAClD,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CACvB,CAAC,GAAgC,EAAW,EAAE,CAC5C,GAAG,CAAC,MAAM,KAAK,cAAc,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU,CAC7D,KAAK,IAAI,CACb,CAAC;IACF,MAAM,cAAc,GAClB,OAAO,CAAC,MAAM,KAAK,CAAC;QAClB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,gBAAgB,QAAQ,CAAC,IAAI,2CAA2C,OAAO,CAAC,MAAM,aAAa,OAAO;aACvG,GAAG,CACF,CAAC,IAAsC,EAAU,EAAE,CACjD,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI;aAClB,SAAU,CAAC,IAAI,CAAC,MAAM,CACrB,CAAC,GAAgC,EAAW,EAAE,CAC5C,GAAG,CAAC,MAAM,KAAK,cAAc,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU,CAC7D;aACA,GAAG,CACF,CAAC,GAAgC,EAAU,EAAE,CAC3C,GAAG,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,CACjC;aACA,IAAI,CAAC,IAAI,CAAC,EAAE,CAClB;aACA,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,cAAc,CAAC;IAC7C,MAAM,WAAW,GAAW,gBAAgB,QAAQ,CAAC,IAAI,uBAAuB,IAAI,CAAC,MAAM,aAAa,IAAI;SACzG,GAAG,CAAC,CAAC,IAAsC,EAAU,EAAE;QACtD,wEAAwE;QACxE,uEAAuE;QACvE,yEAAyE;QACzE,qBAAqB;QACrB,MAAM,UAAU,GAAyB,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,EAAE,CAAC;aACnE,MAAM,CACL,CAAC,OAAgC,EAAW,EAAE,CAC5C,OAAO,CAAC,MAAM,KAAK,MAAM,CAC5B;aACA,GAAG,CACF,CAAC,OAAgC,EAAiB,EAAE,CAAC,OAAO,CAAC,QAAQ,CACtE,CAAC;QACJ,OAAO,GAAG,IAAI,CAAC,IAAI,KACjB,UAAU,CAAC,MAAM,KAAK,CAAC;YACrB,CAAC,CAAC,+DAA+D;YACjE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAC1B,EAAE,CAAC;IACL,CAAC,CAAC;SACD,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACjB,OAAO,cAAc,KAAK,IAAI;QAC5B,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,GAAG,WAAW,KAAK,cAAc,EAAE,CAAC;AAC1C,CAAC,CAAC;AA1DW,QAAA,4BAA4B,GAA5B,4BAA4B,CA0DvC"}
@@ -0,0 +1,22 @@
1
+ import { IAutoMovieRenderTargetRenderer } from "@automovie/interface";
2
+ import { IAutoMovieRenderGraphicsIdentity } from "./IAutoMovieRenderGraphicsIdentity";
3
+ /**
4
+ * Read a capture host's graphics probe as a render-target renderer identity, or
5
+ * `null` when no probe ran.
6
+ *
7
+ * `null` is the whole point of the return type. A render job that could not ask
8
+ * the browser what it is drawing with has not measured its target, and a
9
+ * fabricated `"unknown/unknown/unknown"` identity would fingerprint every such
10
+ * host identically, so two different GPUs would produce one digest and a stale
11
+ * report would read as fresh. A host that answered but withheld a field is a
12
+ * different case and keeps the `unknown` the target contract documents.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation Absent graphics probes remain null; an answered probe maps its renderer spelling to device and substitutes unknown only for individual blank fields, preserving the distinction between no observation and masked information.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This projection is the single boundary translating the host graphics record into the engine target renderer record.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Whitespace is inspected solely to detect missing information; present device strings remain unchanged and no absent probe is assigned a fabricated identity.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The comment explains null versus masked fields and the renderer-to-device rename, including why absence cannot fingerprint a measured graphics context.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms Three string trims and one fixed-size record allocation cost linear time in the supplied identity strings, independent of the rendered scene.
19
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The projection reads the supplied probe once and retains no cache; identical device names alone cannot authorize sharing actual render effects.
20
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only three string references escape in a new record; the projection holds no graphics context, browser session or process resource.
21
+ */
22
+ export declare const autoMovieRenderTargetRendererOfGraphics: (graphics: IAutoMovieRenderGraphicsIdentity | null | undefined) => IAutoMovieRenderTargetRenderer | null;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.autoMovieRenderTargetRendererOfGraphics = void 0;
4
+ /**
5
+ * Read a capture host's graphics probe as a render-target renderer identity, or
6
+ * `null` when no probe ran.
7
+ *
8
+ * `null` is the whole point of the return type. A render job that could not ask
9
+ * the browser what it is drawing with has not measured its target, and a
10
+ * fabricated `"unknown/unknown/unknown"` identity would fingerprint every such
11
+ * host identically, so two different GPUs would produce one digest and a stale
12
+ * report would read as fresh. A host that answered but withheld a field is a
13
+ * different case and keeps the `unknown` the target contract documents.
14
+ *
15
+ * @evidence contracts/development/implementation.md#principled-implementation Absent graphics probes remain null; an answered probe maps its renderer spelling to device and substitutes unknown only for individual blank fields, preserving the distinction between no observation and masked information.
16
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This projection is the single boundary translating the host graphics record into the engine target renderer record.
17
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Whitespace is inspected solely to detect missing information; present device strings remain unchanged and no absent probe is assigned a fabricated identity.
18
+ * @evidence contracts/development/common.md#meaningful-documentation The comment explains null versus masked fields and the renderer-to-device rename, including why absence cannot fingerprint a measured graphics context.
19
+ * @evidence contracts/development/implementation.md#efficient-algorithms Three string trims and one fixed-size record allocation cost linear time in the supplied identity strings, independent of the rendered scene.
20
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The projection reads the supplied probe once and retains no cache; identical device names alone cannot authorize sharing actual render effects.
21
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only three string references escape in a new record; the projection holds no graphics context, browser session or process resource.
22
+ */
23
+ const autoMovieRenderTargetRendererOfGraphics = (graphics) => graphics === null || graphics === undefined
24
+ ? null
25
+ : {
26
+ api: blankAs(graphics.api, "unknown"),
27
+ vendor: blankAs(graphics.vendor, "unknown"),
28
+ device: blankAs(graphics.renderer, "unknown"),
29
+ };
30
+ exports.autoMovieRenderTargetRendererOfGraphics = autoMovieRenderTargetRendererOfGraphics;
31
+ const blankAs = (value, fallback) => (value.trim().length === 0 ? fallback : value);
32
+ //# sourceMappingURL=autoMovieRenderTargetRendererOfGraphics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoMovieRenderTargetRendererOfGraphics.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,uCAAuC,GAEP,CAC3C,QAA6D,EACtB,EAAE,CACzC,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS;IACzC,CAAC,CAAC,IAAI;IACN,CAAC,CAAC;QACE,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;QACrC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;QAC3C,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC9C,CAAC;AAXK,QAAA,uCAAuC,GAAvC,uCAAuC,CAW5C;AAER,MAAM,OAAO,GAAgD,CAC3D,KAAa,EACb,QAAgB,EACR,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { IAutoMovieCompiledShotSource, IAutoMovieRenderTargetSettings } from "@automovie/interface";
2
+ /**
3
+ * Project intended renderer settings from one compiled shot and caller-supplied target dimensions.
4
+ *
5
+ * A scene environment supplies the beauty pass's curve, exposure and shadow policy. Without one this helper projects delivery tone mapping, exposure one and disabled shadows, assuming a host initialized to those defaults. applyRendererEnvironment instead preserves existing host exposure/shadows on that branch, so this projection is not a live settings observation.
6
+ *
7
+ * `shadowType` is `none` exactly when the supplied policy disables shadows, preserving the render-target invariant without claiming a live shadow allocation.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation Scene environment values supply tone mapping, exposure and shadow policy; disabled shadows map to shadowType none. Without an environment this helper chooses exposure one and disabled shadows, which match live settings only under the caller's neutral-host premise, since applyRendererEnvironment preserves existing exposure/shadows on that branch.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This boundary projects compiled scene policy into target settings while the engine target sealer owns runtime admission of dimensions and setting values.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No shot is special-cased; absent-environment defaults are explicit projected assumptions, not observed host state. A previously configured host can differ, and this helper does not compensate for or detect that mismatch.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The comment names environment precedence and shadow invariants, and input members specify drawing-buffer pixels, device pixel ratio and delivery tone mapping.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms The projection reads one environment and allocates one settings record, performing constant work irrespective of shot geometry or frame count.
14
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Compiled environment policy is read directly without rebuilding scene state or resealing assets; each invocation reflects its supplied dimensions and pixel ratio.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The settings record contains only scalar values, so no compiled geometry, GPU allocation or host session is retained.
16
+ */
17
+ export declare const autoMovieRenderTargetSettingsOfShot: (props: {
18
+ compiled: IAutoMovieCompiledShotSource;
19
+ width: number;
20
+ height: number;
21
+ pixelRatio: number;
22
+ delivery: IAutoMovieRenderTargetSettings["toneMapping"];
23
+ }) => IAutoMovieRenderTargetSettings;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.autoMovieRenderTargetSettingsOfShot = void 0;
4
+ /**
5
+ * Project intended renderer settings from one compiled shot and caller-supplied target dimensions.
6
+ *
7
+ * A scene environment supplies the beauty pass's curve, exposure and shadow policy. Without one this helper projects delivery tone mapping, exposure one and disabled shadows, assuming a host initialized to those defaults. applyRendererEnvironment instead preserves existing host exposure/shadows on that branch, so this projection is not a live settings observation.
8
+ *
9
+ * `shadowType` is `none` exactly when the supplied policy disables shadows, preserving the render-target invariant without claiming a live shadow allocation.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation Scene environment values supply tone mapping, exposure and shadow policy; disabled shadows map to shadowType none. Without an environment this helper chooses exposure one and disabled shadows, which match live settings only under the caller's neutral-host premise, since applyRendererEnvironment preserves existing exposure/shadows on that branch.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This boundary projects compiled scene policy into target settings while the engine target sealer owns runtime admission of dimensions and setting values.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No shot is special-cased; absent-environment defaults are explicit projected assumptions, not observed host state. A previously configured host can differ, and this helper does not compensate for or detect that mismatch.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The comment names environment precedence and shadow invariants, and input members specify drawing-buffer pixels, device pixel ratio and delivery tone mapping.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms The projection reads one environment and allocates one settings record, performing constant work irrespective of shot geometry or frame count.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Compiled environment policy is read directly without rebuilding scene state or resealing assets; each invocation reflects its supplied dimensions and pixel ratio.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The settings record contains only scalar values, so no compiled geometry, GPU allocation or host session is retained.
18
+ */
19
+ const autoMovieRenderTargetSettingsOfShot = (props) => {
20
+ const environment = props.compiled.scene.environment ?? null;
21
+ const shadows = environment !== null && environment.shadows.enabled
22
+ ? environment.shadows
23
+ : null;
24
+ return {
25
+ width: props.width,
26
+ height: props.height,
27
+ pixelRatio: props.pixelRatio,
28
+ shadows: shadows !== null,
29
+ shadowType: shadows === null ? "none" : shadows.type,
30
+ toneMapping: environment?.toneMapping ?? props.delivery,
31
+ exposure: environment?.exposure ?? 1,
32
+ };
33
+ };
34
+ exports.autoMovieRenderTargetSettingsOfShot = autoMovieRenderTargetSettingsOfShot;
35
+ //# sourceMappingURL=autoMovieRenderTargetSettingsOfShot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoMovieRenderTargetSettingsOfShot.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;GAcG;AACI,MAAM,mCAAmC,GAMT,CAAC,KAWvC,EAAkC,EAAE;IACnC,MAAM,WAAW,GAEN,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC;IACpD,MAAM,OAAO,GAKX,WAAW,KAAK,IAAI,IAAI,WAAW,CAAC,OAAO,CAAC,OAAO;QACjD,CAAC,CAAC,WAAW,CAAC,OAAO;QACrB,CAAC,CAAC,IAAI,CAAC;IACX,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,OAAO,EAAE,OAAO,KAAK,IAAI;QACzB,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI;QACpD,WAAW,EAAE,WAAW,EAAE,WAAW,IAAI,KAAK,CAAC,QAAQ;QACvD,QAAQ,EAAE,WAAW,EAAE,QAAQ,IAAI,CAAC;KACrC,CAAC;AACJ,CAAC,CAAC;AAtCW,QAAA,mCAAmC,GAAnC,mCAAmC,CAsC9C"}
@@ -0,0 +1,9 @@
1
+ export * from "./IAutoMovieRenderGraphicsIdentity";
2
+ export * from "./autoMovieRenderTargetRendererOfGraphics";
3
+ export * from "./autoMovieRenderTargetSettingsOfShot";
4
+ export * from "./selectAutoMovieRenderBudget";
5
+ export * from "./IAutoMovieRenderBudgetAssessment";
6
+ export * from "./assessAutoMovieRenderBudget";
7
+ export * from "./IAutoMovieRenderBudgetEvidence";
8
+ export * from "./autoMovieRenderBudgetEvidence";
9
+ export * from "./autoMovieRenderBudgetRefusal";
@@ -0,0 +1,26 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IAutoMovieRenderGraphicsIdentity"), exports);
18
+ __exportStar(require("./autoMovieRenderTargetRendererOfGraphics"), exports);
19
+ __exportStar(require("./autoMovieRenderTargetSettingsOfShot"), exports);
20
+ __exportStar(require("./selectAutoMovieRenderBudget"), exports);
21
+ __exportStar(require("./IAutoMovieRenderBudgetAssessment"), exports);
22
+ __exportStar(require("./assessAutoMovieRenderBudget"), exports);
23
+ __exportStar(require("./IAutoMovieRenderBudgetEvidence"), exports);
24
+ __exportStar(require("./autoMovieRenderBudgetEvidence"), exports);
25
+ __exportStar(require("./autoMovieRenderBudgetRefusal"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/renderBudgetPreflight/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,qEAAmD;AACnD,gEAA8C;AAC9C,mEAAiD;AACjD,kEAAgD;AAChD,iEAA+C"}
@@ -0,0 +1,18 @@
1
+ import { IAutoMovieRenderBudget } from "@automovie/interface";
2
+ /**
3
+ * Select the budget a render job targets, or `null` when the production
4
+ * declared none for this tier.
5
+ *
6
+ * Duplicate tiers resolve to the first declaration; this helper does not validate their uniqueness or equality. `null` is not a pass: it
7
+ * makes every metric `unbudgeted`, and a job that treated that as a clearance
8
+ * would be reporting that nobody's limits were met.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation Array find implements declaration-order tier lookup with exact string equality; the first match wins and an absent declaration returns null rather than a passing report.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One lookup defines tier selection for both job preflight and published evidence, keeping duplicate-tier precedence in the declaration owner.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Neither tier names nor budgets are normalized or repaired; missing and unmatched arrays share the contract's explicit unbudgeted result.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states first-declaration precedence, null meaning and why an undeclared limit cannot certify clearance.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms For B declarations lookup stops at the first match and costs O(B) in the unmatched case, with constant extra space and no sorting.
15
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The selected budget is returned by reference rather than copied; callers retain its declared identity and no lookup cache can become stale after a caller mutation.
16
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No array or module state is retained by the selector; the returned budget remains owned by the caller that supplied the declarations.
17
+ */
18
+ export declare const selectAutoMovieRenderBudget: (budgets: readonly IAutoMovieRenderBudget[] | undefined, tier: string) => IAutoMovieRenderBudget | null;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.selectAutoMovieRenderBudget = void 0;
4
+ /**
5
+ * Select the budget a render job targets, or `null` when the production
6
+ * declared none for this tier.
7
+ *
8
+ * Duplicate tiers resolve to the first declaration; this helper does not validate their uniqueness or equality. `null` is not a pass: it
9
+ * makes every metric `unbudgeted`, and a job that treated that as a clearance
10
+ * would be reporting that nobody's limits were met.
11
+ *
12
+ * @evidence contracts/development/implementation.md#principled-implementation Array find implements declaration-order tier lookup with exact string equality; the first match wins and an absent declaration returns null rather than a passing report.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One lookup defines tier selection for both job preflight and published evidence, keeping duplicate-tier precedence in the declaration owner.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Neither tier names nor budgets are normalized or repaired; missing and unmatched arrays share the contract's explicit unbudgeted result.
15
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states first-declaration precedence, null meaning and why an undeclared limit cannot certify clearance.
16
+ * @evidence contracts/development/implementation.md#efficient-algorithms For B declarations lookup stops at the first match and costs O(B) in the unmatched case, with constant extra space and no sorting.
17
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The selected budget is returned by reference rather than copied; callers retain its declared identity and no lookup cache can become stale after a caller mutation.
18
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No array or module state is retained by the selector; the returned budget remains owned by the caller that supplied the declarations.
19
+ */
20
+ const selectAutoMovieRenderBudget = (budgets, tier) => (budgets ?? []).find((budget) => budget.tier === tier) ?? null;
21
+ exports.selectAutoMovieRenderBudget = selectAutoMovieRenderBudget;
22
+ //# sourceMappingURL=selectAutoMovieRenderBudget.js.map