@automovie/template 0.0.0 → 0.2.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 (741) hide show
  1. package/README.md +14 -18
  2. package/generated/pnpm-workspace.json +54 -0
  3. package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
  4. package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
  5. package/generated/skills/3d-modeling/crafting/construction.md +70 -0
  6. package/generated/skills/3d-modeling/crafting/lofting.md +73 -0
  7. package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
  8. package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
  9. package/generated/skills/3d-modeling/diffusion/models.md +27 -0
  10. package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
  11. package/generated/skills/3d-modeling/diffusion/request.md +16 -0
  12. package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
  13. package/generated/skills/3d-modeling/inspection.md +55 -0
  14. package/generated/skills/3d-modeling/modularization.md +25 -0
  15. package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
  16. package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
  17. package/{lib → generated}/skills/contracts/development/design.md +2 -3
  18. package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
  19. package/{lib → generated}/skills/contracts/development/testing.md +1 -1
  20. package/generated/skills/development/repair.md +13 -0
  21. package/{lib → generated}/skills/documentation/SKILL.md +2 -8
  22. package/generated/skills/documentation/writing.md +63 -0
  23. package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
  24. package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
  25. package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
  26. package/generated/skills/motion/laws/transitions.md +37 -0
  27. package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
  28. package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
  29. package/generated/skills/prompting/SKILL.md +82 -0
  30. package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
  31. package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
  32. package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
  33. package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
  34. package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
  35. package/lib/assertScaffoldProjectName.d.ts +1 -1
  36. package/lib/assertScaffoldProjectName.js +1 -1
  37. package/lib/createAutoMovieScaffold.d.ts +27 -0
  38. package/lib/createAutoMovieScaffold.js +145 -0
  39. package/lib/createAutoMovieScaffold.js.map +1 -0
  40. package/lib/index.d.ts +1 -45
  41. package/lib/index.js +1 -45
  42. package/lib/index.js.map +1 -1
  43. package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
  44. package/lib/listAutoMovieScaffoldFiles.js +2 -2
  45. package/package.json +9 -12
  46. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
  47. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
  48. package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
  49. package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
  50. package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
  51. package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
  52. package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
  53. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
  54. package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
  55. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
  56. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
  57. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
  58. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
  59. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
  60. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
  61. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
  62. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
  63. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
  64. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
  65. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
  66. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
  67. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
  68. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
  69. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
  70. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
  71. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
  72. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
  73. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
  74. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +2 -2
  75. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
  76. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
  77. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
  78. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
  79. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
  80. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
  81. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +3 -3
  82. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
  83. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
  84. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
  85. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
  86. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
  87. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
  88. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
  89. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
  90. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -6
  91. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
  92. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
  93. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
  94. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
  95. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
  96. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +3 -3
  97. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
  98. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
  99. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
  100. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
  101. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
  102. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
  103. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
  104. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
  105. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
  106. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
  107. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
  108. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
  109. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
  110. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
  111. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
  112. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
  113. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
  114. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
  115. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
  116. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
  117. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
  118. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
  119. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
  120. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
  121. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
  122. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
  123. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
  124. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
  125. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
  126. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
  127. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
  128. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
  129. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
  130. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
  131. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
  132. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
  133. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
  134. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
  135. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
  136. package/scaffold/instructions/.agents/skills/development/SKILL.md +5 -7
  137. package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
  138. package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
  139. package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
  140. package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
  141. package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
  142. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
  143. package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
  144. package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
  145. package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
  146. package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
  147. package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
  148. package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
  149. package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
  150. package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
  151. package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
  152. package/scaffold/instructions/.agents/skills/image/models.md +18 -0
  153. package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
  154. package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
  155. package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
  156. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
  157. package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
  158. package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
  159. package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
  160. package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
  161. package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
  162. package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
  163. package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
  164. package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
  165. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
  166. package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
  167. package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
  168. package/scaffold/instructions/.agents/skills/motion/laws/extension.md +35 -0
  169. package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
  170. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
  171. package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
  172. package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
  173. package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
  174. package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
  175. package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
  176. package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
  177. package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
  178. package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
  179. package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
  180. package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
  181. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
  182. package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
  183. package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
  184. package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
  185. package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
  186. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
  187. package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
  188. package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
  189. package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
  190. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
  191. package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
  192. package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
  193. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
  194. package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
  195. package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
  196. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
  197. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
  198. package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
  199. package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
  200. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
  201. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +4 -4
  202. package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
  203. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
  204. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
  205. package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
  206. package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
  207. package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
  208. package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
  209. package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
  210. package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
  211. package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
  212. package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
  213. package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +14 -0
  214. package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
  215. package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
  216. package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
  217. package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
  218. package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
  219. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
  220. package/scaffold/instructions/AGENTS.md +30 -56
  221. package/scaffold/production/PROJECT.md +1 -1
  222. package/scaffold/production/README.md +50 -96
  223. package/scaffold/production/_gitignore +1 -2
  224. package/scaffold/production/index.html +4 -8
  225. package/scaffold/production/lint.config.ts +1 -1
  226. package/scaffold/production/package.json +31 -31
  227. package/scaffold/production/src/IFilm.ts +3 -3
  228. package/scaffold/production/src/IFilmProduction.ts +16 -5
  229. package/scaffold/production/src/composition/films/index.ts +3 -2
  230. package/scaffold/production/src/composition/films/starter.ts +2 -2
  231. package/scaffold/production/src/main.ts +9 -195
  232. package/scaffold/production/src/markFilmProduction.ts +43 -0
  233. package/scaffold/production/src/selectFilm.ts +3 -5
  234. package/scaffold/production/src/subjects.ts +59 -0
  235. package/scaffold/production/vite.config.ts +4 -2
  236. package/scaffold/workspace/README.md +5 -7
  237. package/scaffold/workspace/package.json +1 -1
  238. package/src/IAutoMovieScaffoldProps.ts +15 -6
  239. package/src/assertScaffoldProjectName.ts +1 -1
  240. package/src/createAutoMovieScaffold.ts +152 -0
  241. package/src/index.ts +1 -46
  242. package/src/listAutoMovieScaffoldFiles.ts +2 -2
  243. package/build/resolveTemplateVersions.ts +0 -92
  244. package/build/syncScaffoldInstructions.ts +0 -28
  245. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
  246. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
  247. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
  248. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
  249. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
  250. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
  251. package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
  252. package/lib/AutoMovieScaffoldLayer.js +0 -3
  253. package/lib/AutoMovieScaffoldLayer.js.map +0 -1
  254. package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
  255. package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
  256. package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
  257. package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
  258. package/lib/IAutoMovieCatalogVersionProps.js +0 -3
  259. package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
  260. package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
  261. package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
  262. package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
  263. package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
  264. package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
  265. package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
  266. package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
  267. package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
  268. package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
  269. package/lib/IBoundChild.d.ts +0 -71
  270. package/lib/IBoundChild.js +0 -3
  271. package/lib/IBoundChild.js.map +0 -1
  272. package/lib/IBoundChildStatus.d.ts +0 -20
  273. package/lib/IBoundChildStatus.js +0 -3
  274. package/lib/IBoundChildStatus.js.map +0 -1
  275. package/lib/IBoundParent.d.ts +0 -61
  276. package/lib/IBoundParent.js +0 -3
  277. package/lib/IBoundParent.js.map +0 -1
  278. package/lib/IBoundParentStatus.d.ts +0 -14
  279. package/lib/IBoundParentStatus.js +0 -3
  280. package/lib/IBoundParentStatus.js.map +0 -1
  281. package/lib/ICreateResult.d.ts +0 -27
  282. package/lib/ICreateResult.js +0 -3
  283. package/lib/ICreateResult.js.map +0 -1
  284. package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
  285. package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
  286. package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
  287. package/lib/IScaffoldCompletedPublication.d.ts +0 -15
  288. package/lib/IScaffoldCompletedPublication.js +0 -3
  289. package/lib/IScaffoldCompletedPublication.js.map +0 -1
  290. package/lib/IScaffoldFileSnapshot.d.ts +0 -24
  291. package/lib/IScaffoldFileSnapshot.js +0 -3
  292. package/lib/IScaffoldFileSnapshot.js.map +0 -1
  293. package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
  294. package/lib/IScaffoldParentPublicationRequest.js +0 -3
  295. package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
  296. package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
  297. package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
  298. package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
  299. package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
  300. package/lib/IScaffoldPhysicalDirectory.js +0 -3
  301. package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
  302. package/lib/IScaffoldPosixConstants.d.ts +0 -24
  303. package/lib/IScaffoldPosixConstants.js +0 -3
  304. package/lib/IScaffoldPosixConstants.js.map +0 -1
  305. package/lib/IScaffoldPublicationEntry.d.ts +0 -20
  306. package/lib/IScaffoldPublicationEntry.js +0 -3
  307. package/lib/IScaffoldPublicationEntry.js.map +0 -1
  308. package/lib/IScaffoldPublicationFailure.d.ts +0 -18
  309. package/lib/IScaffoldPublicationFailure.js +0 -3
  310. package/lib/IScaffoldPublicationFailure.js.map +0 -1
  311. package/lib/IScaffoldPublicationOptions.d.ts +0 -17
  312. package/lib/IScaffoldPublicationOptions.js +0 -3
  313. package/lib/IScaffoldPublicationOptions.js.map +0 -1
  314. package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
  315. package/lib/IScaffoldPublicationReceipt.js +0 -3
  316. package/lib/IScaffoldPublicationReceipt.js.map +0 -1
  317. package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
  318. package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
  319. package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
  320. package/lib/IScaffoldSyncPlan.d.ts +0 -25
  321. package/lib/IScaffoldSyncPlan.js +0 -3
  322. package/lib/IScaffoldSyncPlan.js.map +0 -1
  323. package/lib/IScaffoldSyncProps.d.ts +0 -16
  324. package/lib/IScaffoldSyncProps.js +0 -3
  325. package/lib/IScaffoldSyncProps.js.map +0 -1
  326. package/lib/IWindowsFileInformation.d.ts +0 -20
  327. package/lib/IWindowsFileInformation.js +0 -3
  328. package/lib/IWindowsFileInformation.js.map +0 -1
  329. package/lib/IWindowsLibrary.d.ts +0 -127
  330. package/lib/IWindowsLibrary.js +0 -3
  331. package/lib/IWindowsLibrary.js.map +0 -1
  332. package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
  333. package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
  334. package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
  335. package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
  336. package/lib/ScaffoldFilePublicationOutcome.js +0 -3
  337. package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
  338. package/lib/ScaffoldParentChangedError.d.ts +0 -11
  339. package/lib/ScaffoldParentChangedError.js +0 -19
  340. package/lib/ScaffoldParentChangedError.js.map +0 -1
  341. package/lib/ScaffoldPublicationError.d.ts +0 -17
  342. package/lib/ScaffoldPublicationError.js +0 -46
  343. package/lib/ScaffoldPublicationError.js.map +0 -1
  344. package/lib/assertOrdinaryFile.d.ts +0 -13
  345. package/lib/assertOrdinaryFile.js +0 -20
  346. package/lib/assertOrdinaryFile.js.map +0 -1
  347. package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
  348. package/lib/assertOrdinarySingleLinkFile.js +0 -22
  349. package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
  350. package/lib/assertScaffoldOwnership.d.ts +0 -13
  351. package/lib/assertScaffoldOwnership.js +0 -24
  352. package/lib/assertScaffoldOwnership.js.map +0 -1
  353. package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
  354. package/lib/assertScaffoldPhysicalDirectory.js +0 -26
  355. package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
  356. package/lib/attachScaffoldSyncState.d.ts +0 -18
  357. package/lib/attachScaffoldSyncState.js +0 -30
  358. package/lib/attachScaffoldSyncState.js.map +0 -1
  359. package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
  360. package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
  361. package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
  362. package/lib/captureScaffoldFile.d.ts +0 -13
  363. package/lib/captureScaffoldFile.js +0 -67
  364. package/lib/captureScaffoldFile.js.map +0 -1
  365. package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
  366. package/lib/captureScaffoldPhysicalDirectory.js +0 -63
  367. package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
  368. package/lib/combineScaffoldFailures.d.ts +0 -19
  369. package/lib/combineScaffoldFailures.js +0 -32
  370. package/lib/combineScaffoldFailures.js.map +0 -1
  371. package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
  372. package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
  373. package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
  374. package/lib/createScaffoldSyncState.d.ts +0 -12
  375. package/lib/createScaffoldSyncState.js +0 -26
  376. package/lib/createScaffoldSyncState.js.map +0 -1
  377. package/lib/createScaffoldVariables.d.ts +0 -25
  378. package/lib/createScaffoldVariables.js +0 -41
  379. package/lib/createScaffoldVariables.js.map +0 -1
  380. package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
  381. package/lib/ensureScaffoldBaseDirectory.js +0 -89
  382. package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
  383. package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
  384. package/lib/ensureScaffoldFileDirectory.js +0 -103
  385. package/lib/ensureScaffoldFileDirectory.js.map +0 -1
  386. package/lib/inside.d.ts +0 -12
  387. package/lib/inside.js +0 -57
  388. package/lib/inside.js.map +0 -1
  389. package/lib/isScaffoldInstruction.d.ts +0 -12
  390. package/lib/isScaffoldInstruction.js +0 -29
  391. package/lib/isScaffoldInstruction.js.map +0 -1
  392. package/lib/loadWindowsLibrary.d.ts +0 -13
  393. package/lib/loadWindowsLibrary.js +0 -180
  394. package/lib/loadWindowsLibrary.js.map +0 -1
  395. package/lib/mergeScaffoldFiles.d.ts +0 -18
  396. package/lib/mergeScaffoldFiles.js +0 -37
  397. package/lib/mergeScaffoldFiles.js.map +0 -1
  398. package/lib/missingPath.d.ts +0 -12
  399. package/lib/missingPath.js +0 -18
  400. package/lib/missingPath.js.map +0 -1
  401. package/lib/nativeError.d.ts +0 -12
  402. package/lib/nativeError.js +0 -17
  403. package/lib/nativeError.js.map +0 -1
  404. package/lib/openPosixParent.d.ts +0 -13
  405. package/lib/openPosixParent.js +0 -135
  406. package/lib/openPosixParent.js.map +0 -1
  407. package/lib/openWindowsParent.d.ts +0 -13
  408. package/lib/openWindowsParent.js +0 -224
  409. package/lib/openWindowsParent.js.map +0 -1
  410. package/lib/overwriteScaffoldFile.d.ts +0 -22
  411. package/lib/overwriteScaffoldFile.js +0 -214
  412. package/lib/overwriteScaffoldFile.js.map +0 -1
  413. package/lib/physicalDirectoryIdentity.d.ts +0 -15
  414. package/lib/physicalDirectoryIdentity.js +0 -65
  415. package/lib/physicalDirectoryIdentity.js.map +0 -1
  416. package/lib/physicalVersion.d.ts +0 -13
  417. package/lib/physicalVersion.js +0 -18
  418. package/lib/physicalVersion.js.map +0 -1
  419. package/lib/planScaffoldPublication.d.ts +0 -22
  420. package/lib/planScaffoldPublication.js +0 -100
  421. package/lib/planScaffoldPublication.js.map +0 -1
  422. package/lib/planScaffoldSync.d.ts +0 -14
  423. package/lib/planScaffoldSync.js +0 -102
  424. package/lib/planScaffoldSync.js.map +0 -1
  425. package/lib/publishFiles.d.ts +0 -23
  426. package/lib/publishFiles.js +0 -124
  427. package/lib/publishFiles.js.map +0 -1
  428. package/lib/publishNativeScaffoldFile.d.ts +0 -21
  429. package/lib/publishNativeScaffoldFile.js +0 -211
  430. package/lib/publishNativeScaffoldFile.js.map +0 -1
  431. package/lib/publishScaffoldCandidate.d.ts +0 -24
  432. package/lib/publishScaffoldCandidate.js +0 -70
  433. package/lib/publishScaffoldCandidate.js.map +0 -1
  434. package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
  435. package/lib/readAutoMovieScaffoldSources.js +0 -103
  436. package/lib/readAutoMovieScaffoldSources.js.map +0 -1
  437. package/lib/readScaffoldSyncFile.d.ts +0 -16
  438. package/lib/readScaffoldSyncFile.js +0 -64
  439. package/lib/readScaffoldSyncFile.js.map +0 -1
  440. package/lib/renderScaffold.d.ts +0 -19
  441. package/lib/renderScaffold.js +0 -33
  442. package/lib/renderScaffold.js.map +0 -1
  443. package/lib/renderScaffoldEntries.d.ts +0 -20
  444. package/lib/renderScaffoldEntries.js +0 -106
  445. package/lib/renderScaffoldEntries.js.map +0 -1
  446. package/lib/renderScaffoldInstructions.d.ts +0 -17
  447. package/lib/renderScaffoldInstructions.js +0 -23
  448. package/lib/renderScaffoldInstructions.js.map +0 -1
  449. package/lib/renderScaffoldLayer.d.ts +0 -20
  450. package/lib/renderScaffoldLayer.js +0 -28
  451. package/lib/renderScaffoldLayer.js.map +0 -1
  452. package/lib/renderTemplate.d.ts +0 -19
  453. package/lib/renderTemplate.js +0 -56
  454. package/lib/renderTemplate.js.map +0 -1
  455. package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
  456. package/lib/renderWorkspaceProductionScaffold.js +0 -30
  457. package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
  458. package/lib/renderWorkspaceScaffold.d.ts +0 -19
  459. package/lib/renderWorkspaceScaffold.js +0 -33
  460. package/lib/renderWorkspaceScaffold.js.map +0 -1
  461. package/lib/replaceSharedScaffoldFile.d.ts +0 -30
  462. package/lib/replaceSharedScaffoldFile.js +0 -106
  463. package/lib/replaceSharedScaffoldFile.js.map +0 -1
  464. package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
  465. package/lib/resolveAutoMovieCatalogVersion.js +0 -24
  466. package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
  467. package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
  468. package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
  469. package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
  470. package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
  471. package/lib/resolveScaffoldPosixConstants.js +0 -44
  472. package/lib/resolveScaffoldPosixConstants.js.map +0 -1
  473. package/lib/scaffoldAssetDirectory.d.ts +0 -19
  474. package/lib/scaffoldAssetDirectory.js +0 -63
  475. package/lib/scaffoldAssetDirectory.js.map +0 -1
  476. package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
  477. package/lib/scaffoldPhysicalIdentity.js +0 -22
  478. package/lib/scaffoldPhysicalIdentity.js.map +0 -1
  479. package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
  480. package/lib/scaffoldSharedSkillDirectory.js +0 -62
  481. package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
  482. package/lib/skills/3d-modeling/crafting.md +0 -82
  483. package/lib/skills/3d-modeling/diffusion.md +0 -34
  484. package/lib/skills/3d-modeling/inspection.md +0 -54
  485. package/lib/skills/3d-modeling/lofting.md +0 -43
  486. package/lib/skills/3d-modeling/modularization.md +0 -31
  487. package/lib/skills/3d-modeling/recovery.md +0 -29
  488. package/lib/skills/development/repair.md +0 -13
  489. package/lib/skills/documentation/writing.md +0 -51
  490. package/lib/skills/motion/layers.md +0 -7
  491. package/lib/skills/motion/transitions.md +0 -27
  492. package/lib/skills/prompting/SKILL.md +0 -80
  493. package/lib/syncScaffold.d.ts +0 -19
  494. package/lib/syncScaffold.js +0 -28
  495. package/lib/syncScaffold.js.map +0 -1
  496. package/lib/writeFiles.d.ts +0 -20
  497. package/lib/writeFiles.js +0 -33
  498. package/lib/writeFiles.js.map +0 -1
  499. package/lib/writeScaffoldFile.d.ts +0 -35
  500. package/lib/writeScaffoldFile.js +0 -107
  501. package/lib/writeScaffoldFile.js.map +0 -1
  502. package/lib/writtenVersion.d.ts +0 -13
  503. package/lib/writtenVersion.js +0 -18
  504. package/lib/writtenVersion.js.map +0 -1
  505. package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
  506. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
  507. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
  508. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
  509. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
  510. package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
  511. package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
  512. package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
  513. package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
  514. package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
  515. package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
  516. package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
  517. package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
  518. package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
  519. package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
  520. package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
  521. package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
  522. package/scaffold/production/evidence.config.ts +0 -12
  523. package/scaffold/production/src/executable/capture.ts +0 -487
  524. package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
  525. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
  526. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
  527. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
  528. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
  529. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
  530. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
  531. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
  532. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
  533. package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
  534. package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
  535. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
  536. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
  537. package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
  538. package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
  539. package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
  540. package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
  541. package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
  542. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
  543. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
  544. package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
  545. package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
  546. package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
  547. package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
  548. package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
  549. package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
  550. package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
  551. package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
  552. package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
  553. package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
  554. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
  555. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
  556. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
  557. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
  558. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
  559. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
  560. package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
  561. package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
  562. package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
  563. package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
  564. package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
  565. package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
  566. package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
  567. package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
  568. package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
  569. package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
  570. package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
  571. package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
  572. package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
  573. package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
  574. package/scaffold/production/src/executable/render/node/index.ts +0 -27
  575. package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
  576. package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
  577. package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
  578. package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
  579. package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
  580. package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
  581. package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
  582. package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
  583. package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
  584. package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
  585. package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
  586. package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
  587. package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
  588. package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
  589. package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
  590. package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
  591. package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
  592. package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
  593. package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
  594. package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
  595. package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
  596. package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
  597. package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
  598. package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
  599. package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
  600. package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
  601. package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
  602. package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
  603. package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
  604. package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
  605. package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
  606. package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
  607. package/scaffold/production/src/executable/render.ts +0 -92
  608. package/scaffold/production/src/executable/review.ts +0 -54
  609. package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
  610. package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
  611. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
  612. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
  613. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
  614. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
  615. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
  616. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
  617. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
  618. package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
  619. package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
  620. package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
  621. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterLighting.ts +0 -221
  622. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterSheet.ts +0 -175
  623. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterTarget.ts +0 -282
  624. package/scaffold/production/src/executable/viewer/node/raster/IAutoMovieSceneRaster.ts +0 -62
  625. package/scaffold/production/src/executable/viewer/node/raster/IRasterizeAutoMovieSceneProps.ts +0 -34
  626. package/scaffold/production/src/executable/viewer/node/raster/encodeAutoMovieRasterPng.ts +0 -77
  627. package/scaffold/production/src/executable/viewer/node/raster/index.ts +0 -8
  628. package/scaffold/production/src/executable/viewer/node/raster/rasterizeAutoMovieScene.ts +0 -594
  629. package/scaffold/production/src/executable/viewer/node/raster/stampAutoMovieRasterLabel.ts +0 -120
  630. package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
  631. package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
  632. package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
  633. package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
  634. package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
  635. package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
  636. package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
  637. package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
  638. package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
  639. package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
  640. package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
  641. package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
  642. package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
  643. package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
  644. package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
  645. package/scaffold/workspace/pnpm-workspace.yaml +0 -46
  646. package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
  647. package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
  648. package/src/AutoMovieScaffoldLayer.ts +0 -18
  649. package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
  650. package/src/IAutoMovieCatalogVersionProps.ts +0 -18
  651. package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
  652. package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
  653. package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
  654. package/src/IBoundChild.ts +0 -86
  655. package/src/IBoundChildStatus.ts +0 -24
  656. package/src/IBoundParent.ts +0 -65
  657. package/src/IBoundParentStatus.ts +0 -15
  658. package/src/ICreateResult.ts +0 -35
  659. package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
  660. package/src/IScaffoldCompletedPublication.ts +0 -17
  661. package/src/IScaffoldFileSnapshot.ts +0 -28
  662. package/src/IScaffoldParentPublicationRequest.ts +0 -29
  663. package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
  664. package/src/IScaffoldPhysicalDirectory.ts +0 -22
  665. package/src/IScaffoldPosixConstants.ts +0 -30
  666. package/src/IScaffoldPublicationEntry.ts +0 -22
  667. package/src/IScaffoldPublicationFailure.ts +0 -18
  668. package/src/IScaffoldPublicationOptions.ts +0 -19
  669. package/src/IScaffoldPublicationReceipt.ts +0 -29
  670. package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
  671. package/src/IScaffoldSyncPlan.ts +0 -26
  672. package/src/IScaffoldSyncProps.ts +0 -16
  673. package/src/IWindowsFileInformation.ts +0 -24
  674. package/src/IWindowsLibrary.ts +0 -148
  675. package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
  676. package/src/ScaffoldFilePublicationOutcome.ts +0 -18
  677. package/src/ScaffoldParentChangedError.ts +0 -14
  678. package/src/ScaffoldPublicationError.ts +0 -58
  679. package/src/assertOrdinaryFile.ts +0 -20
  680. package/src/assertOrdinarySingleLinkFile.ts +0 -26
  681. package/src/assertScaffoldOwnership.ts +0 -29
  682. package/src/assertScaffoldPhysicalDirectory.ts +0 -29
  683. package/src/attachScaffoldSyncState.ts +0 -30
  684. package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
  685. package/src/captureScaffoldFile.ts +0 -34
  686. package/src/captureScaffoldPhysicalDirectory.ts +0 -34
  687. package/src/combineScaffoldFailures.ts +0 -35
  688. package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
  689. package/src/createScaffoldSyncState.ts +0 -33
  690. package/src/createScaffoldVariables.ts +0 -50
  691. package/src/ensureScaffoldBaseDirectory.ts +0 -55
  692. package/src/ensureScaffoldFileDirectory.ts +0 -75
  693. package/src/inside.ts +0 -25
  694. package/src/isScaffoldInstruction.ts +0 -29
  695. package/src/loadWindowsLibrary.ts +0 -277
  696. package/src/mergeScaffoldFiles.ts +0 -39
  697. package/src/missingPath.ts +0 -16
  698. package/src/nativeError.ts +0 -15
  699. package/src/openPosixParent.ts +0 -155
  700. package/src/openWindowsParent.ts +0 -305
  701. package/src/overwriteScaffoldFile.ts +0 -262
  702. package/src/physicalDirectoryIdentity.ts +0 -33
  703. package/src/physicalVersion.ts +0 -18
  704. package/src/planScaffoldPublication.ts +0 -100
  705. package/src/planScaffoldSync.ts +0 -122
  706. package/src/publishFiles.ts +0 -120
  707. package/src/publishNativeScaffoldFile.ts +0 -287
  708. package/src/publishScaffoldCandidate.ts +0 -94
  709. package/src/readAutoMovieScaffoldSources.ts +0 -82
  710. package/src/readScaffoldSyncFile.ts +0 -66
  711. package/src/renderScaffold.ts +0 -43
  712. package/src/renderScaffoldEntries.ts +0 -110
  713. package/src/renderScaffoldInstructions.ts +0 -22
  714. package/src/renderScaffoldLayer.ts +0 -38
  715. package/src/renderTemplate.ts +0 -62
  716. package/src/renderWorkspaceProductionScaffold.ts +0 -35
  717. package/src/renderWorkspaceScaffold.ts +0 -43
  718. package/src/replaceSharedScaffoldFile.ts +0 -88
  719. package/src/resolveAutoMovieCatalogVersion.ts +0 -27
  720. package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
  721. package/src/resolveScaffoldPosixConstants.ts +0 -50
  722. package/src/scaffoldAssetDirectory.ts +0 -30
  723. package/src/scaffoldPhysicalIdentity.ts +0 -21
  724. package/src/scaffoldSharedSkillDirectory.ts +0 -25
  725. package/src/syncScaffold.ts +0 -38
  726. package/src/writeFiles.ts +0 -48
  727. package/src/writeScaffoldFile.ts +0 -88
  728. package/src/writtenVersion.ts +0 -19
  729. /package/{lib → generated}/skills/contracts/development/common.md +0 -0
  730. /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
  731. /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
  732. /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
  733. /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
  734. /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
  735. /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
  736. /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
  737. /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
  738. /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
  739. /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
  740. /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
  741. /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
@@ -1,230 +0,0 @@
1
- import { resolveProductionFrameRate } from "@automovie/engine";
2
- import type { IAutoMovieFilmTimeline } from "@automovie/interface";
3
- import {
4
- assertProductionVideoProfile,
5
- productionVisualDeliveryOccurrence,
6
- resolveProductionVideoProfile,
7
- } from "@automovie/render";
8
- import type { Sample } from "mp4box";
9
-
10
- import type { IProductionRenditionClip } from "./IProductionRenditionClip";
11
- import { appendLosslessVideoClip } from "./appendLosslessVideoClip";
12
- import { openLosslessVideoTrack } from "./openLosslessVideoTrack";
13
- import { parseProductionRenditionClip } from "./parseProductionRenditionClip";
14
- import { probeProductionVideoMp4 } from "./probeProductionVideoMp4";
15
- import { sameSampleDescription } from "./sameSampleDescription";
16
- import { sampleDescription } from "./sampleDescription";
17
-
18
- /**
19
- * Splice a cut-only timeline whose occurrences each come from one of two
20
- * lanes, a range of the deterministic feature or a full repaint clip, into
21
- * one video track without decoding.
22
- *
23
- * `sources[i]` must belong to timeline segment `i`, joined by
24
- * `productionVisualDeliveryOccurrence`. Segments must be cuts, non-empty and
25
- * contiguous from frame 0 to `timeline.totalFrames`. Every deterministic
26
- * source must be the same bytes, a feature of exactly `totalFrames` frames,
27
- * and its occurrence copies that feature's samples `startFrame` through
28
- * `endFrame - 1` in decode order; that range must present exactly the
29
- * segment's frames, and must start at a sync sample when the previous
30
- * occurrence is a repaint. A repainted occurrence must be a full-shot clip of
31
- * exactly the segment's length. Every occurrence must share the first one's
32
- * raster, media timescale, sample duration and decoder configuration. The
33
- * written video must pass the delivery profile at the timeline's rational
34
- * frame rate.
35
- *
36
- * Each refusal throws an `Error` naming the occurrence index where one is
37
- * responsible, or an `unsupported-video-profile.<field>` error from the final
38
- * profile check.
39
- *
40
- * No production module calls this function at present; only tests reach it.
41
- *
42
- * @evidence contracts/development/implementation.md#principled-implementation A deterministic range is copied only when its decode-order samples present exactly the segment's whole-frame slots; a crossing from repaint requires a declared sync sample, while consecutive deterministic ranges continue the same source stream. Truthful sync declarations and decoder independence remain premises for both lanes, since the clip parser does not decode payloads or verify IDR pictures.
43
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This function owns the lane rules and the timeline join; clip parsing, the container and re-timing are the shared `parseProductionRenditionClip`, `openLosslessVideoTrack` and `appendLosslessVideoClip`. The gap is that no production consumer remains.
44
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Transitions, trims, gaps, a range that would need reordered frames from a neighbor, and mismatched clips are refused instead of being re-encoded or patched, and no occurrence is special-cased.
45
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the source join, the timeline shape, every deterministic and repaint lane rule including frame closure and the sync rule, the shared presentation contract, the final profile check, and how refusals name the occurrence.
46
- * @evidence contracts/development/implementation.md#efficient-algorithms The deterministic source is parsed once, while each repaint occurrence is parsed independently. Every parse/probe includes its sample and media-box residency cost O(M + S log(M+1)) plus descriptions and box inspection. Distinct arrays claiming the deterministic source incur whole-source byte comparisons, ranges scan their samples, and appending/serialization/output verification add payload, subsample and output-parse work; total work is not bounded by the bytes spliced alone.
47
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The parsed deterministic feature is shared by every deterministic occurrence after its bytes are proved identical to the first one's, so equality of content, not of the array reference alone, decides the reuse; nothing is cached across calls.
48
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Parsed sources and copied input buffers, range sample arrays, output payload copies/fragment boxes, serialized output and its verification parse can coexist. A short deterministic range still references the entire deterministic source. No byte, sample, box or occurrence cap or measured peak multiplier is established; local objects become collectable after completion or refusal, and the caller retains only returned bytes from this function.
49
- */
50
- export const conformProductionVisualDeliveryVideoMp4: (props: {
51
- timeline: IAutoMovieFilmTimeline;
52
- sources: ReadonlyArray<{
53
- occurrence: string;
54
- lane: "deterministic" | "repainted";
55
- bytes: Uint8Array;
56
- }>;
57
- }) => Uint8Array = (props: {
58
- /** Current cut-only film timeline the sources must cover exactly. */
59
- timeline: IAutoMovieFilmTimeline;
60
-
61
- /** One source per timeline segment, in segment order. */
62
- sources: ReadonlyArray<{
63
- /** Occurrence key from `productionVisualDeliveryOccurrence`. */
64
- occurrence: string;
65
-
66
- /** Whether the bytes are the deterministic feature or a repaint clip. */
67
- lane: "deterministic" | "repainted";
68
-
69
- /** The deterministic feature MP4 or the repaint clip MP4. */
70
- bytes: Uint8Array;
71
- }>;
72
- }): Uint8Array => {
73
- if (
74
- props.sources.length !== props.timeline.segments.length ||
75
- props.sources.some(
76
- (source: (typeof props.sources)[number], index: number): boolean =>
77
- source.occurrence !==
78
- productionVisualDeliveryOccurrence(
79
- props.timeline.segments[index]!,
80
- index,
81
- ),
82
- )
83
- )
84
- throw new Error(
85
- "Visual delivery sources must exactly join the current timeline occurrences.",
86
- );
87
- let deterministic: IProductionRenditionClip | undefined;
88
- let nextFrame: number = 0;
89
- const parsed: IProductionRenditionClip[] = props.timeline.segments.map(
90
- (
91
- segment: IAutoMovieFilmTimeline["segments"][number],
92
- index: number,
93
- ): IProductionRenditionClip => {
94
- if (
95
- segment.transitionIn.kind !== "cut" ||
96
- segment.transitionOut.kind !== "cut"
97
- )
98
- throw new Error(
99
- `Mixed visual delivery currently requires cut-only editing at occurrence ${index}.`,
100
- );
101
- if (
102
- segment.startFrame !== nextFrame ||
103
- segment.endFrame <= segment.startFrame
104
- )
105
- throw new Error(
106
- `Visual delivery occurrence ${index} does not occupy the next continuous film frames.`,
107
- );
108
- nextFrame = segment.endFrame;
109
- const source: (typeof props.sources)[number] = props.sources[index]!;
110
- if (source.lane === "repainted") {
111
- const clip: IProductionRenditionClip = parseProductionRenditionClip(
112
- source.bytes,
113
- `Repaint occurrence ${index}`,
114
- );
115
- if (
116
- segment.sourceInFrame !== 0 ||
117
- segment.sourceOutFrame !== clip.probe.frameCount ||
118
- segment.endFrame - segment.startFrame !== clip.probe.frameCount
119
- )
120
- throw new Error(
121
- `Repaint occurrence ${index} must supply the exact full-shot clip.`,
122
- );
123
- return clip;
124
- }
125
- deterministic ??= parseProductionRenditionClip(
126
- source.bytes,
127
- "Deterministic feature source",
128
- );
129
- if (
130
- deterministic.probe.frameCount !== props.timeline.totalFrames ||
131
- (source.bytes !== deterministic.bytes &&
132
- Buffer.compare(source.bytes, deterministic.bytes) !== 0)
133
- )
134
- throw new Error(
135
- "Every deterministic lane must cite the same exact current feature source.",
136
- );
137
- const samples: Sample[] = deterministic.samples.slice(
138
- segment.startFrame,
139
- segment.endFrame,
140
- );
141
- if (
142
- samples.length !== segment.endFrame - segment.startFrame ||
143
- (index > 0 &&
144
- props.sources[index - 1]!.lane !== "deterministic" &&
145
- samples[0]!.is_sync !== true)
146
- )
147
- throw new Error(
148
- `Deterministic occurrence ${index} cannot begin losslessly at its declared lane crossing.`,
149
- );
150
- // The parser proved presentation times a whole-frame permutation from
151
- // the feature's origin, so a range of n samples whose times all fall in
152
- // the segment's n frame slots presents exactly those frames.
153
- const presentationStart: number =
154
- deterministic.presentationStart +
155
- segment.startFrame * deterministic.sampleDuration;
156
- const presentationEnd: number =
157
- deterministic.presentationStart +
158
- segment.endFrame * deterministic.sampleDuration;
159
- if (
160
- samples.some(
161
- (sample: Sample): boolean =>
162
- sample.cts < presentationStart || sample.cts >= presentationEnd,
163
- )
164
- )
165
- throw new Error(
166
- `Deterministic occurrence ${index} does not present exactly its own frames in decode order.`,
167
- );
168
- return {
169
- ...deterministic,
170
- samples,
171
- decodeStart: samples[0]!.dts,
172
- presentationStart,
173
- };
174
- },
175
- );
176
- const first: IProductionRenditionClip | undefined = parsed[0];
177
- if (first === undefined)
178
- throw new Error("Mixed visual delivery requires a non-empty timeline.");
179
- if (nextFrame !== props.timeline.totalFrames)
180
- throw new Error("Visual delivery sources do not cover the current film.");
181
- const description: ReturnType<typeof sampleDescription> = sampleDescription(
182
- first.samples[0]!,
183
- );
184
- for (const [index, clip] of parsed.entries())
185
- if (
186
- clip.probe.width !== first.probe.width ||
187
- clip.probe.height !== first.probe.height ||
188
- clip.track.timescale !== first.track.timescale ||
189
- clip.sampleDuration !== first.sampleDuration ||
190
- sameSampleDescription(
191
- description,
192
- sampleDescription(clip.samples[0]!),
193
- ) === false
194
- )
195
- throw new Error(
196
- `Visual delivery occurrence ${index} changes the exact video presentation contract.`,
197
- );
198
- const output: ReturnType<typeof openLosslessVideoTrack> =
199
- openLosslessVideoTrack({
200
- label: "Visual delivery feature",
201
- name: "AutoMovie explicit visual-lane feature",
202
- timescale: first.track.timescale,
203
- sampleDuration: first.sampleDuration,
204
- frames: props.timeline.totalFrames,
205
- description,
206
- width: first.probe.width,
207
- height: first.probe.height,
208
- language: first.track.language,
209
- });
210
- let frame: number = 0;
211
- for (const clip of parsed)
212
- frame = appendLosslessVideoClip({
213
- ...output,
214
- clip,
215
- frame,
216
- sampleDuration: first.sampleDuration,
217
- });
218
- const bytes: Uint8Array = new Uint8Array(output.file.getBuffer().buffer);
219
- // Coverage was proved before writing, and the profile assertion proves the
220
- // exact rational clock of every written sample.
221
- assertProductionVideoProfile({
222
- expected: resolveProductionVideoProfile({
223
- width: first.probe.width,
224
- height: first.probe.height,
225
- frameRate: resolveProductionFrameRate(props.timeline),
226
- }),
227
- actual: probeProductionVideoMp4(bytes),
228
- });
229
- return bytes;
230
- };
@@ -1,253 +0,0 @@
1
- import {
2
- auditAutoMovieDecodedFrames,
3
- auditAutoMovieEncodedPresentation,
4
- } from "@automovie/render";
5
- import { type ChildProcessWithoutNullStreams, spawn } from "node:child_process";
6
- import { readFile, writeFile } from "node:fs/promises";
7
- import path from "node:path";
8
-
9
- /**
10
- * Decode every image and audio sample of a delivered MP4 and audit its clock.
11
- *
12
- * One FFmpeg run keeps input timestamps (`-copyts`), passes every video image
13
- * through at the demuxer time base into a framemd5 listing beside the file,
14
- * and streams the audio as stereo float at the given rate into a peak and
15
- * RMS counter; no decoded PCM is retained. The listing is admitted by
16
- * {@link auditAutoMovieDecodedFrames}, an FFprobe run by
17
- * {@link auditAutoMovieEncodedPresentation}, and the decoded audio must
18
- * cover the presentation, within one AAC frame (1024 samples) of end
19
- * padding, and must not be silent. Every child must exit 0; a twenty-minute
20
- * deadline or the abort signal ends it. The result is also written to
21
- * `<output>.decode.json`.
22
- *
23
- * @returns The video audit, audio statistics, probe and timings.
24
- * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Decode every image and audio sample of a delivered MP4 and audit its clock) and documents the returned value as stated in this comment.
25
- * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Decode every image and audio sample of a delivered MP4 and audit its clock) directly over its typed inputs (`options`) as a single pass (for loop bounded by offset < complete), delegating to `performance.now`, `path.resolve`, `Buffer.alloc`, `run`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (4 throw sites). Beyond structural 0, 1 and 2 the body uses the literals 48000, 4, 8, 1024, whose basis this answer does not independently establish and a reviewer must confirm.
26
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One async operation of 125 lines and 24 top-level statements that reuses `performance.now`, `path.resolve`, `Buffer.alloc`, `run`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
27
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters. Literal caveat: 48000, 4, 8, 1024 are not independently sourced here.
28
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `options`; the dominant cost is a single pass (for loop bounded by offset < complete), performed once per call with 11 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
29
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Awaits 4 calls per invocation and shares no result or in-flight work between invocations: equivalence of effectful calls is not decided here, so every call repeats its effects.
30
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The body touches I/O, timers, listeners or process state; it retains nothing after it settles beyond its result, and any handle it opens is owned and released by the call or by its callees.
31
- */
32
- export async function decodeAutoMovieDelivery(options: {
33
- /** Delivered MP4. */ outputPath: string;
34
- /** FFmpeg executable. */ ffmpegExecutable: string;
35
- /** FFprobe executable. */ ffprobeExecutable: string;
36
- /** Commissioned frame count. */ frameCount: number;
37
- /** Commissioned frames per second. */ fps: number;
38
- /** Raster width, pixels. */ width: number;
39
- /** Raster height, pixels. */ height: number;
40
- /** Audio samples per second; 48000 by default. */ sampleRate?: number;
41
- /** Cancellation. */ signal?: AbortSignal;
42
- }): Promise<decodeAutoMovieDelivery.IResult> {
43
- const sampleRate: number = options.sampleRate ?? 48000;
44
- const begun: number = performance.now();
45
- const checksumPath: string = path.resolve(`${options.outputPath}.framemd5`);
46
- let audioBytes: number = 0;
47
- let squaredSum: number = 0;
48
- let peak: number = 0;
49
- let carry: Buffer = Buffer.alloc(0);
50
- await run(
51
- options.ffmpegExecutable,
52
- [
53
- "-v",
54
- "error",
55
- "-nostdin",
56
- "-y",
57
- "-copyts",
58
- "-threads",
59
- "4",
60
- "-i",
61
- options.outputPath,
62
- "-map",
63
- "0:v:0",
64
- "-an",
65
- "-fps_mode",
66
- "passthrough",
67
- "-enc_time_base",
68
- "demux",
69
- "-f",
70
- "framemd5",
71
- checksumPath,
72
- "-map",
73
- "0:a:0",
74
- "-vn",
75
- "-ar",
76
- String(sampleRate),
77
- "-ac",
78
- "2",
79
- "-f",
80
- "f32le",
81
- "pipe:1",
82
- ],
83
- (chunk: Buffer): void => {
84
- const bytes: Buffer =
85
- carry.length === 0 ? chunk : Buffer.concat([carry, chunk]);
86
- const complete: number = bytes.length - (bytes.length % 4);
87
- for (let offset: number = 0; offset < complete; offset += 4) {
88
- const value: number = bytes.readFloatLE(offset);
89
- if (!Number.isFinite(value))
90
- throw new Error("The decoded soundtrack contains nonfinite samples");
91
- peak = Math.max(peak, Math.abs(value));
92
- squaredSum += value * value;
93
- }
94
- audioBytes += complete;
95
- carry = Buffer.from(bytes.subarray(complete));
96
- },
97
- options.signal,
98
- );
99
- if (carry.length !== 0 || audioBytes % 8 !== 0 || audioBytes === 0)
100
- throw new Error(
101
- "The decoded soundtrack does not contain complete stereo samples",
102
- );
103
- const decodeMs: number = performance.now() - begun;
104
- const video: auditAutoMovieDecodedFrames.IResult =
105
- auditAutoMovieDecodedFrames(
106
- await readFile(checksumPath, "utf8"),
107
- options.frameCount,
108
- options.fps,
109
- );
110
- const probeStarted: number = performance.now();
111
- const chunks: Buffer[] = [];
112
- let retained: number = 0;
113
- await run(
114
- options.ffprobeExecutable,
115
- [
116
- "-v",
117
- "error",
118
- "-show_streams",
119
- "-show_format",
120
- "-of",
121
- "json",
122
- options.outputPath,
123
- ],
124
- (chunk: Buffer): void => {
125
- retained += chunk.length;
126
- if (retained > 1024 * 1024)
127
- throw new Error("The stream probe exceeded its metadata budget");
128
- chunks.push(chunk);
129
- },
130
- options.signal,
131
- );
132
- const streams: unknown = JSON.parse(Buffer.concat(chunks).toString("utf8"));
133
- auditAutoMovieEncodedPresentation(streams, {
134
- durationSeconds: options.frameCount / options.fps,
135
- width: options.width,
136
- height: options.height,
137
- fps: options.fps,
138
- sampleRate,
139
- channels: 2,
140
- });
141
- const probeMs: number = performance.now() - probeStarted;
142
- const samples: number = audioBytes / 8;
143
- const presentation: number = (options.frameCount / options.fps) * sampleRate;
144
- if (samples < presentation || samples > presentation + 1024 || peak === 0)
145
- throw new Error(
146
- "The decoded soundtrack is silent, truncated or longer than one AAC frame of padding",
147
- );
148
- const result: decodeAutoMovieDelivery.IResult = {
149
- video,
150
- audio: {
151
- decodedSamplesPerChannel: samples,
152
- sampleRate,
153
- channels: 2,
154
- peak,
155
- rms: Math.sqrt(squaredSum / (audioBytes / 4)),
156
- },
157
- streams,
158
- decodeMs,
159
- probeMs,
160
- };
161
- await writeFile(
162
- `${options.outputPath}.decode.json`,
163
- JSON.stringify(result, null, 2),
164
- );
165
- return result;
166
- }
167
- /**
168
- * Companion types of {@link decodeAutoMovieDelivery}.
169
- *
170
- * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 1 documented member as stated in this comment.
171
- * @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 1 member (`IResult`); units and frames named in its text: second, milliseconds. It has no optional member, so no absent-value state combines with another.
172
- * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `decodeAutoMovieDelivery` in packages/render/src/node/decodeAutoMovieDelivery.ts; its surface is the 1 member listed and the text shows 2 other files naming it, mostly movies (1), packages/render (1), so no member is declared for a presumed future need.
173
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, a use of `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows. The widening above is the remaining shortcut and is not justified here.
174
- */
175
- export namespace decodeAutoMovieDelivery {
176
- /** A decoded delivery's audit. */
177
- export interface IResult {
178
- /** The admitted decoded video. */
179
- video: auditAutoMovieDecodedFrames.IResult;
180
-
181
- /** Decoded audio statistics. */
182
- audio: {
183
- /** Samples per channel, including AAC end padding. */ decodedSamplesPerChannel: number;
184
- /** Samples per second. */ sampleRate: number;
185
- /** Channels. */ channels: number;
186
- /** Peak absolute amplitude. */ peak: number;
187
- /** Root mean square amplitude. */ rms: number;
188
- };
189
-
190
- /** The FFprobe output. */
191
- streams: unknown;
192
-
193
- /** Decode wall milliseconds. */
194
- decodeMs: number;
195
-
196
- /** Probe wall milliseconds. */
197
- probeMs: number;
198
- }
199
- }
200
-
201
- /** Run one owned child without a shell, bounding stderr and terminating it on a consumer error, abort or the deadline. */
202
- function run(
203
- executable: string,
204
- args: string[],
205
- consume: (chunk: Buffer) => void,
206
- signal?: AbortSignal,
207
- ): Promise<undefined> {
208
- signal?.throwIfAborted();
209
- return new Promise<undefined>(
210
- (
211
- resolve: (value: undefined) => void,
212
- reject: (error: Error) => void,
213
- ): void => {
214
- const child: ChildProcessWithoutNullStreams = spawn(executable, args, {
215
- windowsHide: true,
216
- stdio: "pipe",
217
- ...(signal ? { signal } : {}),
218
- });
219
- let stderr: string = "";
220
- let failure: Error | undefined;
221
- child.stdin.end();
222
- const timer: ReturnType<typeof setTimeout> = setTimeout(
223
- (): void => {
224
- failure = new Error("Media verification exceeded twenty minutes");
225
- child.kill();
226
- },
227
- 20 * 60 * 1000,
228
- );
229
- child.stdout.on("data", (chunk: Buffer): void => {
230
- if (failure !== undefined) return;
231
- try {
232
- consume(chunk);
233
- } catch (error: unknown) {
234
- failure = error instanceof Error ? error : new Error(String(error));
235
- child.kill();
236
- }
237
- });
238
- child.stderr.on("data", (chunk: Buffer): void => {
239
- stderr = (stderr + chunk.toString("utf8")).slice(-65536);
240
- });
241
- child.once("error", (error: Error): void => {
242
- failure = error;
243
- });
244
- child.once("close", (code: number | null): void => {
245
- clearTimeout(timer);
246
- if (failure !== undefined) reject(failure);
247
- else if (code !== 0)
248
- reject(new Error(`Media verification exited ${code}: ${stderr}`));
249
- else resolve(undefined);
250
- });
251
- },
252
- );
253
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * Whether `leftNumerator / leftDenominator` equals
3
- * `rightNumerator / rightDenominator` exactly.
4
- *
5
- * Returns false, rather than throwing, when any term is not a safe integer or
6
- * either denominator is not positive, because such a pair names no MP4 clock
7
- * ratio. Callers compare a duration on one timescale with a duration on
8
- * another, where dividing in floating point can make two unequal clocks look
9
- * equal.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Two fractions with positive denominators are equal exactly when their cross products are equal, and the products are formed in BigInt so terms up to 2^53 multiply without rounding; a zero or negative denominator is excluded because cross-multiplication would then call unrelated values equal, such as 1/0 and 2/0.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One expression decides admissibility and equality, and the boolean result lets `neutralTrackPresentation` fold an invalid clock into its refusal without a separate error path.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No tolerance or rounding is applied and no clock value is special-cased; invalid terms are reported as unequal, never coerced.
14
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the exact relation compared, which inputs return false instead of throwing and why, and the float-division hazard callers avoid by using it.
15
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The function performs two fixed-size BigInt multiplications and chooses no algorithm or data structure.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A constant-time comparison of four numbers coordinates no work worth sharing.
17
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The temporary BigInt values die with the call, and nothing is retained or opened.
18
- */
19
- export const equalRational: (
20
- leftNumerator: number,
21
- leftDenominator: number,
22
- rightNumerator: number,
23
- rightDenominator: number,
24
- ) => boolean = (
25
- leftNumerator: number,
26
- leftDenominator: number,
27
- rightNumerator: number,
28
- rightDenominator: number,
29
- ): boolean =>
30
- [leftNumerator, leftDenominator, rightNumerator, rightDenominator].every(
31
- (term: number): boolean => Number.isSafeInteger(term),
32
- ) &&
33
- leftDenominator > 0 &&
34
- rightDenominator > 0 &&
35
- BigInt(leftNumerator) * BigInt(rightDenominator) ===
36
- BigInt(rightNumerator) * BigInt(leftDenominator);
@@ -1,26 +0,0 @@
1
- /**
2
- * The exact product of two MP4 clock terms as a BigInt.
3
- *
4
- * Both terms must be positive safe integers, such as a track duration in ticks and the other track's timescale in ticks per second; anything else throws `MP4 presentation clocks must be positive safe integers.` Two track runtimes are equal exactly when `durationA * timescaleB` equals `durationB * timescaleA`, which callers decide by comparing two products. `muxProductionFeatureMp4` uses it to prove its two inputs share a runtime and `probeProductionRenderedMedia` to prove a delivered feature's tracks do, each with its own refusal text for an unequal result.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Cross-multiplication decides equality of two duration-over-timescale ratios without division, and BigInt makes the product exact although it can exceed 2^53; refusing non-positive terms keeps the products meaningful, since a zero timescale would make every runtime look equal.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The mux and the feature probe need the same admission and product, so the arithmetic lives here once while each caller keeps the comparison and the message that names what it failed.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Invalid terms throw instead of being clamped, rounded or treated as equal, and no clock value or caller is special-cased.
9
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the admitted inputs and their units, the refusal message, the runtime-equality identity callers build from two products, and which callers use it for what.
10
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms One validation and one BigInt multiplication run in constant time with no algorithm choice.
11
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A constant-time product of two numbers is cheaper to recompute than any cache lookup, and each caller forms different products.
12
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned BigInt is the caller's value, and the function holds no state or handle.
13
- */
14
- export const exactProductionClockProduct: (
15
- left: number,
16
- right: number,
17
- ) => bigint = (left: number, right: number): bigint => {
18
- if (
19
- Number.isSafeInteger(left) === false ||
20
- left <= 0 ||
21
- Number.isSafeInteger(right) === false ||
22
- right <= 0
23
- )
24
- throw new Error("MP4 presentation clocks must be positive safe integers.");
25
- return BigInt(left) * BigInt(right);
26
- };