@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,267 +0,0 @@
1
- import { ITessellation, realizeAutoMovieGeometry } from "@automovie/engine";
2
- import type {
3
- IAutoMovieBone,
4
- IAutoMovieMaterial,
5
- IAutoMovieMesh,
6
- IAutoMovieModel,
7
- IAutoMovieModelPart,
8
- IAutoMovieTransform,
9
- } from "@automovie/interface";
10
- import type {
11
- Document,
12
- Buffer as GLTFBuffer,
13
- Material,
14
- Node,
15
- Primitive,
16
- Scene,
17
- } from "@gltf-transform/core";
18
-
19
- import { loadModelGltfCore } from "./loadModelGltfCore";
20
-
21
- /**
22
- * Serialize an `IAutoMovieModel` into binary glTF 2.0 (`.glb`) bytes with all geometry in one embedded buffer.
23
- *
24
- * Each skeleton bone becomes a node under its parent, or under the scene for a root, carrying rest translation and rotation with unit scale. Each part becomes a mesh node with its own transform under its `attachedBone`, or under the scene when unattached. The canonical engine owner realizes primitive and bicubic atlas recipes; authored meshes retain their positions, normals, vertex colors as `COLOR_0`, and indices. Atlas budgets can retain finite partial geometry; this export does not turn processing status into a coverage or quality certificate.
25
- *
26
- * Materials use glTF metallic-roughness, authored alpha mode or an opacity-derived default, mask cutoff 0.5 by default, and authored sidedness. Exported base alpha is `(baseColor.a ?? 1) * opacity`; the live viewer currently uses opacity alone, so authored base alpha can produce a different appearance.
27
- *
28
- * Skinned parts export as static rest meshes without joints, weights or glTF skin. Texture bindings, mesh UVs, transmission, index of refraction, thickness, clear-coat, subsurface and overlay fields are omitted. Indexed meshes without authored normals get area-weighted smooth normals; unindexed meshes omit `NORMAL` and leave shading to the reader.
29
- *
30
- * Call with an engine-validated model whose numeric attributes are representable by the exported Float32/Uint32 arrays. Missing parent, material and attached-bone references throw; this function does not repeat graph or numeric validation, and the serializer can also reject its document.
31
- *
32
- * @evidence contracts/development/implementation.md#principled-implementation glTF nodes carry the represented rest hierarchy and transforms, while accessors and metallic-roughness materials carry the emitted static surface facts. Canonical engine realization and indexed normal accumulation supply geometry; Float32/Uint32 conversion assumes validated representable inputs. Partial atlas output does not certify coverage. The documented alpha difference and omitted skin, texture and extension fields prevent claiming complete live-viewer equivalence.
33
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Materials, bones and parts are visited in dependency order, with helpers for material conversion, geometry, part transforms, indexed normals and bone-rest transforms. The Node entry exposes this exporter, and its callers receive bytes without file writing; the serializer is loaded only when export is requested.
34
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Deferred SDK loading is a load-time boundary, not a patch of the serializer, and no model, part or material id is special-cased; every rule applies to the field it reads.
35
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the validated-model premise, emitted hierarchy and attributes, material defaults and alpha difference, omitted capabilities, Float32/Uint32 conversion, reference refusals and serializer failure boundary. Callers get static GLB bytes rather than a validated visual delivery or animation.
36
- * @evidence contracts/development/implementation.md#efficient-algorithms Canonical recipe realization owns its adaptive work before export. Export-local work visits M materials, B bones, P parts and their V attribute elements plus I triangle indices, using maps for expected constant-time reference lookup and linear indexed normal accumulation. Typed arrays, document objects and the serialized binary coexist during writing; the SDK's graph bookkeeping and serialization add their own work and allocations, so neither a total linear bound nor a fixed peak multiplier is asserted. Input and output size have no independent quota here.
37
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one caller-owned model into fresh bytes; the module loader's cache already shares the deferred `@gltf-transform/core` module across calls, and no export result is cached.
38
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The pending module import or binary write can retain the invocation, document, maps and typed arrays until settlement; this function adds no timeout or cancellation. After settlement it keeps no result cache or persistent document handle, while the module loader retains the loaded serializer and the caller owns the returned bytes. No output file is opened.
39
- */
40
- export const exportModelToGLB: (
41
- model: IAutoMovieModel,
42
- ) => Promise<Uint8Array> = async (
43
- model: IAutoMovieModel,
44
- ): Promise<Uint8Array> => {
45
- // The deferred CommonJS loader shares the SDK's supported require branch
46
- // and its nominal declaration graph without eager SDK initialization.
47
- const gltf: typeof import("@gltf-transform/core") = await loadModelGltfCore();
48
- const doc: Document = new gltf.Document();
49
- const buffer: GLTFBuffer = doc.createBuffer();
50
- const scene: Scene = doc.createScene(model.name ?? model.id);
51
-
52
- const materials: Map<string, Material> = new Map();
53
- for (const m of model.materials) materials.set(m.id, toMaterial(doc, m));
54
-
55
- const boneNodes: Map<string, Node> = new Map();
56
- if (model.skeleton !== null) {
57
- for (const bone of model.skeleton.bones)
58
- boneNodes.set(bone.bone, setBoneRest(doc.createNode(bone.bone), bone));
59
- for (const bone of model.skeleton.bones) {
60
- const node: Node = boneNodes.get(bone.bone)!;
61
- if (bone.parent === null) {
62
- scene.addChild(node);
63
- continue;
64
- }
65
- const parent: Node | undefined = boneNodes.get(bone.parent);
66
- if (parent === undefined)
67
- throw new Error(
68
- `skeleton bone "${bone.bone}" references missing parent "${bone.parent}"`,
69
- );
70
- parent.addChild(node);
71
- }
72
- }
73
-
74
- for (const part of model.parts) {
75
- const prim: Primitive = toPrimitive(doc, buffer, part);
76
- if (part.material !== null) {
77
- const material: Material | undefined = materials.get(part.material);
78
- if (material === undefined)
79
- throw new Error(
80
- `part "${part.id}" references missing material "${part.material}"`,
81
- );
82
- prim.setMaterial(material);
83
- }
84
- const label: string = part.name ?? part.id;
85
- const node: Node = setTRS(
86
- doc.createNode(label).setMesh(doc.createMesh(label).addPrimitive(prim)),
87
- part.transform,
88
- );
89
- if (part.attachedBone === null) {
90
- scene.addChild(node);
91
- continue;
92
- }
93
- const boneNode: Node | undefined = boneNodes.get(part.attachedBone);
94
- if (boneNode === undefined)
95
- throw new Error(
96
- `part "${part.id}" references missing attachedBone "${part.attachedBone}"`,
97
- );
98
- boneNode.addChild(node);
99
- }
100
-
101
- return new gltf.NodeIO().writeBinary(doc);
102
- };
103
-
104
- /**
105
- * Convert one material with authored alpha mode or an opacity-derived default, default mask cutoff 0.5, and authored sidedness. Base alpha multiplies authored alpha by opacity, which differs from the live viewer's opacity-only rule.
106
- */
107
- const toMaterial: (doc: Document, m: IAutoMovieMaterial) => Material = (
108
- doc: Document,
109
- m: IAutoMovieMaterial,
110
- ): Material => {
111
- const alphaMode: "opaque" | "mask" | "blend" =
112
- m.alphaMode ?? (m.opacity < 1 ? "blend" : "opaque");
113
- const material: Material = doc
114
- .createMaterial(m.name ?? m.id)
115
- .setBaseColorFactor([
116
- m.baseColor.r,
117
- m.baseColor.g,
118
- m.baseColor.b,
119
- (m.baseColor.a ?? 1) * m.opacity,
120
- ])
121
- .setMetallicFactor(m.metallic)
122
- .setRoughnessFactor(m.roughness)
123
- .setDoubleSided(m.doubleSided === true)
124
- .setAlphaMode(
125
- alphaMode === "blend"
126
- ? "BLEND"
127
- : alphaMode === "mask"
128
- ? "MASK"
129
- : "OPAQUE",
130
- );
131
- if (alphaMode === "mask") material.setAlphaCutoff(m.alphaCutoff ?? 0.5);
132
- if (m.emissive !== null)
133
- material.setEmissiveFactor([m.emissive.r, m.emissive.g, m.emissive.b]);
134
- return material;
135
- };
136
-
137
- /** One primitive holding a part's tessellated or authored geometry. */
138
- const toPrimitive: (
139
- doc: Document,
140
- buffer: GLTFBuffer,
141
- part: IAutoMovieModelPart,
142
- ) => Primitive = (
143
- doc: Document,
144
- buffer: GLTFBuffer,
145
- part: IAutoMovieModelPart,
146
- ): Primitive => {
147
- const mesh: IAutoMovieMesh = realizeAutoMovieGeometry(part.geometry).mesh;
148
- const geometry: ITessellation = {
149
- positions: mesh.positions,
150
- normals:
151
- mesh.normals ??
152
- (mesh.indices === null
153
- ? []
154
- : computeSmoothNormals(mesh.positions, mesh.indices)),
155
- indices: mesh.indices ?? [],
156
- };
157
- const prim: Primitive = doc
158
- .createPrimitive()
159
- .setAttribute(
160
- "POSITION",
161
- doc
162
- .createAccessor()
163
- .setType("VEC3")
164
- .setArray(new Float32Array(geometry.positions))
165
- .setBuffer(buffer),
166
- );
167
- if (geometry.normals.length !== 0)
168
- prim.setAttribute(
169
- "NORMAL",
170
- doc
171
- .createAccessor()
172
- .setType("VEC3")
173
- .setArray(new Float32Array(geometry.normals))
174
- .setBuffer(buffer),
175
- );
176
- if (part.geometry.type === "mesh" && part.geometry.mesh.colors !== undefined)
177
- prim.setAttribute(
178
- "COLOR_0",
179
- doc
180
- .createAccessor()
181
- .setType("VEC3")
182
- .setArray(new Float32Array(part.geometry.mesh.colors))
183
- .setBuffer(buffer),
184
- );
185
- if (geometry.indices.length !== 0)
186
- prim.setIndices(
187
- doc
188
- .createAccessor()
189
- .setType("SCALAR")
190
- .setArray(new Uint32Array(geometry.indices))
191
- .setBuffer(buffer),
192
- );
193
- return prim;
194
- };
195
-
196
- /** Apply a part's translation, rotation and scale to its node; `null` is identity. */
197
- const setTRS: (node: Node, t: IAutoMovieTransform | null) => Node = (
198
- node: Node,
199
- t: IAutoMovieTransform | null,
200
- ): Node => {
201
- if (t === null) return node;
202
- return node
203
- .setTranslation([t.translation.x, t.translation.y, t.translation.z])
204
- .setRotation([t.rotation.x, t.rotation.y, t.rotation.z, t.rotation.w])
205
- .setScale([t.scale.x, t.scale.y, t.scale.z]);
206
- };
207
-
208
- /**
209
- * Accumulate each indexed triangle's unnormalized cross product onto its three vertices, then normalize each sum to obtain area-weighted smooth normals. Vertices with no area keep zero normals; validated indices and representable numeric inputs are assumed.
210
- */
211
- const computeSmoothNormals: (
212
- positions: number[],
213
- indices: number[],
214
- ) => number[] = (positions: number[], indices: number[]): number[] => {
215
- const normals: number[] = new Array<number>(positions.length).fill(0);
216
- for (let i: number = 0; i + 2 < indices.length; i += 3) {
217
- const a: number = indices[i]! * 3;
218
- const b: number = indices[i + 1]! * 3;
219
- const c: number = indices[i + 2]! * 3;
220
- const abx: number = positions[b]! - positions[a]!;
221
- const aby: number = positions[b + 1]! - positions[a + 1]!;
222
- const abz: number = positions[b + 2]! - positions[a + 2]!;
223
- const acx: number = positions[c]! - positions[a]!;
224
- const acy: number = positions[c + 1]! - positions[a + 1]!;
225
- const acz: number = positions[c + 2]! - positions[a + 2]!;
226
- const nx: number = aby * acz - abz * acy;
227
- const ny: number = abz * acx - abx * acz;
228
- const nz: number = abx * acy - aby * acx;
229
- for (const v of [a, b, c]) {
230
- normals[v] = normals[v]! + nx;
231
- normals[v + 1] = normals[v + 1]! + ny;
232
- normals[v + 2] = normals[v + 2]! + nz;
233
- }
234
- }
235
- for (let v: number = 0; v < normals.length; v += 3) {
236
- const length: number = Math.hypot(
237
- normals[v]!,
238
- normals[v + 1]!,
239
- normals[v + 2]!,
240
- );
241
- if (length === 0) continue;
242
- normals[v] = normals[v]! / length;
243
- normals[v + 1] = normals[v + 1]! / length;
244
- normals[v + 2] = normals[v + 2]! / length;
245
- }
246
- return normals;
247
- };
248
-
249
- /**
250
- * Apply bone-rest translation and rotation with unit scale, matching engine forward kinematics and the live viewer. Part nodes retain their own scale through `setTRS`.
251
- */
252
- const setBoneRest: (node: Node, bone: IAutoMovieBone) => Node = (
253
- node: Node,
254
- bone: IAutoMovieBone,
255
- ): Node =>
256
- node
257
- .setTranslation([
258
- bone.rest.translation.x,
259
- bone.rest.translation.y,
260
- bone.rest.translation.z,
261
- ])
262
- .setRotation([
263
- bone.rest.rotation.x,
264
- bone.rest.rotation.y,
265
- bone.rest.rotation.z,
266
- bone.rest.rotation.w,
267
- ]);
@@ -1,27 +0,0 @@
1
- export * from "./assembleProductionChunkVideoMp4";
2
- export * from "./assertProductionFeatureUsesRenditionClips";
3
- export * from "./assertProductionFeatureUsesRenditionVideo";
4
- export * from "./assertProductionRenditionClipDelivery";
5
- export * from "./conformProductionRenditionVideoMp4";
6
- export * from "./conformProductionVisualDeliveryVideoMp4";
7
- export * from "./exportModelToGLB";
8
- export * from "./muxProductionFeatureMp4";
9
- export * from "./normalizeProductionH264Mp4";
10
- export * from "./probeProductionPngPicture";
11
- export * from "./probeProductionRenderedMedia";
12
- export * from "./probeProductionVideoMp4";
13
- export * from "./trimProductionAudioPresentation";
14
- export * from "./capture/index.js";
15
- export * from "./IAutoMovieViewerVideoOptions";
16
- export * from "./IAutoMovieViewerVideoResult";
17
- export * from "./renderViewerFrames";
18
- export * from "./renderViewerVideo";
19
- export { recordViewerPlayback } from "./recordViewerPlayback";
20
- export { writeViewerFrameSheet } from "./writeViewerFrameSheet";
21
- export * from "./mixAutoMovieAudioCues";
22
- export * from "./decodeAutoMovieDelivery";
23
- export * from "./cache/IAutoMovieDirectoryArtifactStore";
24
- export * from "./cache/IAutoMovieViewerFrameCacheReport";
25
- export * from "./cache/createAutoMovieDirectoryArtifactStore";
26
- export * from "./cache/createAutoMovieArtifactMiddleware";
27
- export * from "./cache/digestAutoMovieSourceTree";
@@ -1,18 +0,0 @@
1
- /**
2
- * Load the installed glTF SDK's CommonJS export only when a model export requests it. Resolution and evaluation failures reject the returned promise.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation The SDK's declared require export and its corresponding types supply one nominal Document/property-graph identity in this CommonJS package and its CommonJS test consumer. The SDK performs all model serialization.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The existing exportModelToGLB caller awaits this single deferred import; the helper adds no serializer, adapter or public package entry. Its module contains only this function, so importing the function does not eagerly load the SDK.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The ordinary SDK package require selects its supported export condition without casts, patched foreign methods or a copied SDK implementation. A promise callback defers loading and converts synchronous load failures to rejection.
7
- * @evidence contracts/development/common.md#meaningful-documentation Documents deferred loading of the SDK's supported CommonJS export, failure rejection and the absence of model or visual admission.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms The helper adds fixed call overhead to Node's module resolution, dependency loading and evaluation work; package graph size and runtime module caching determine that cost rather than model vertex count.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Node's module loader shares the resolved SDK module and its dependencies; the helper creates no separate namespace, model-byte or serialization-result cache.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The original pending import promise retains loader work until settlement, and the runtime module cache retains the loaded SDK. This helper acquires no output file, model buffer or host capture resource and adds no timeout or cancellation.
11
- */
12
- export function loadModelGltfCore(): Promise<
13
- typeof import("@gltf-transform/core")
14
- > {
15
- return Promise.resolve().then((): typeof import("@gltf-transform/core") =>
16
- require("@gltf-transform/core"),
17
- );
18
- }
@@ -1,74 +0,0 @@
1
- import { decodeProductionAudioAsset } from "@automovie/ingest";
2
- import {
3
- encodeAutoMovieWavPcm16,
4
- mixAutoMovieAudioPcm,
5
- } from "@automovie/render";
6
- import { createHash } from "node:crypto";
7
- import { mkdir, readFile, writeFile } from "node:fs/promises";
8
- import path from "node:path";
9
-
10
- /**
11
- * Mix WAV assets into one stereo 16-bit PCM WAV soundtrack, usable as
12
- * `renderViewerVideo`'s `audioMix`.
13
- *
14
- * A thin file shell over the pure laws: every referenced asset is read once
15
- * and decoded by the public Ingest decoder (16-bit PCM or 32-bit float, mono
16
- * or stereo folded to mono, resampled linearly to the output rate), the cues
17
- * are summed by {@link mixAutoMovieAudioPcm} into `round(durationSeconds *
18
- * sampleRate)` frames, and the result is encoded by
19
- * {@link encodeAutoMovieWavPcm16}. Unreferenced assets are not read. The
20
- * output and its SHA-256 are deterministic for equal inputs.
21
- *
22
- * @returns The written path and the SHA-256 of its bytes.
23
- * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Mix WAV assets into one stereo 16-bit PCM WAV soundtrack, usable as `renderViewerVideo`'s `audioMix`) and documents the returned value as stated in this comment.
24
- * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Mix WAV assets into one stereo 16-bit PCM WAV soundtrack, usable as `renderViewerVideo`'s `audioMix`) directly over its typed inputs (`input`) as nested iteration of depth 2 (for-of over new Set( input.cues.map((c: mixAutoM; map over input.cues), delegating to `decodeProductionAudioAsset`, `readFile`, `mixAutoMovieAudioPcm`, `Math.round`, `encodeAutoMovieWavPcm16`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.
25
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One async operation of 36 lines and 7 top-level statements that reuses `decodeProductionAudioAsset`, `readFile`, `mixAutoMovieAudioPcm`, `Math.round`, `encodeAutoMovieWavPcm16` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
26
- * @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.
27
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `input`; the dominant cost is nested iteration of depth 2 (for-of over new Set( input.cues.map((c: mixAutoM; map over input.cues), performed once per call with 12 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
28
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Awaits 3 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.
29
- * @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.
30
- */
31
- export async function mixAutoMovieAudioCues(input: {
32
- /** Output samples per second. */ sampleRate: number;
33
- /** Output length, seconds; positive. */ durationSeconds: number;
34
- /** WAV file path by asset id. */ assets: Readonly<Record<string, string>>;
35
- /** The cues, as {@link mixAutoMovieAudioPcm.ICue}. */ cues: readonly mixAutoMovieAudioPcm.ICue[];
36
- /** Output WAV path; its directory is created. */ outputPath: string;
37
- /** Linear gain on every cue; 1 by default. */ master?: number;
38
- /** Edge fade, seconds; 0.004 by default. */ fadeSeconds?: number;
39
- }): Promise<{ path: string; sha256: string }> {
40
- const sources: Record<string, Float32Array> = {};
41
- for (const id of new Set(
42
- input.cues.map((c: mixAutoMovieAudioPcm.ICue): string => c.asset),
43
- )) {
44
- const file: string | undefined = input.assets[id];
45
- if (file === undefined)
46
- throw new Error(`Audio cue names an unknown asset: ${id}`);
47
- sources[id] = decodeProductionAudioAsset({
48
- path: file,
49
- bytes: new Uint8Array(await readFile(file)),
50
- sampleRate: input.sampleRate,
51
- }).samples;
52
- }
53
- const mixed: ReturnType<typeof mixAutoMovieAudioPcm> = mixAutoMovieAudioPcm({
54
- sampleRate: input.sampleRate,
55
- frames: Math.round(input.durationSeconds * input.sampleRate),
56
- sources,
57
- cues: input.cues,
58
- ...(input.master === undefined ? {} : { master: input.master }),
59
- ...(input.fadeSeconds === undefined
60
- ? {}
61
- : { fadeSeconds: input.fadeSeconds }),
62
- });
63
- const bytes: Uint8Array = encodeAutoMovieWavPcm16(
64
- mixed.left,
65
- mixed.right,
66
- input.sampleRate,
67
- );
68
- await mkdir(path.dirname(input.outputPath), { recursive: true });
69
- await writeFile(input.outputPath, bytes);
70
- return {
71
- path: input.outputPath,
72
- sha256: createHash("sha256").update(bytes).digest("hex"),
73
- };
74
- }
@@ -1,170 +0,0 @@
1
- import type {
2
- IAutoMovieProductionMediaProbe,
3
- IAutoMovieProductionVideoProbe,
4
- } from "@automovie/interface";
5
- import type { IsoFileOptions, Movie, Sample, Track, createFile } from "mp4box";
6
-
7
- import { addProductionMp4Sample } from "./addProductionMp4Sample";
8
- import { exactProductionClockProduct } from "./exactProductionClockProduct";
9
- import { parseMp4 } from "./parseMp4";
10
- import { parseProductionMp4Output } from "./parseProductionMp4Output";
11
- import { probeParsedProductionVideoMp4 } from "./probeParsedProductionVideoMp4";
12
- import { probeProductionRenderedMedia } from "./probeProductionRenderedMedia";
13
- import { residentMp4Box } from "./residentMp4Box";
14
- import { sampleBytes } from "./sampleBytes";
15
- import { sampleDescription } from "./sampleDescription";
16
- import { sampleOptions } from "./sampleOptions";
17
- import { trimProductionAudioPresentation } from "./trimProductionAudioPresentation";
18
-
19
- /**
20
- * Mux one single-track H.264 video MP4 and one Opus audio-mix MP4 of exactly the same runtime into a two-track feature MP4, copying every coded sample unchanged.
21
- *
22
- * The video must pass the production video probe and the audio the audio-mix probe, including its Opus delivery profile. Their movie runtimes must be exactly equal, decided by cross-multiplying durations and timescales. The output keeps both tracks' media clocks, uses the video timescale as the movie clock, and gives the audio track one edit that skips the Opus priming samples and presents exactly the audio's runtime. The result is re-probed as a delivered feature before it is returned.
23
- *
24
- * Throws the probes' refusals for an invalid input, `MP4 presentation clocks must be positive safe integers.` for a zero or unsafe runtime term, `Feature mux requires byte sources with exactly equal track runtimes.` for unequal runtimes, and the feature probe's refusal if the written file does not verify.
25
- *
26
- * No production module calls this function at present; only tests reach it.
27
- *
28
- * @evidence contracts/development/implementation.md#principled-implementation Samples are copied with their own timing and flags, so neither elementary stream is decoded or re-encoded, and runtime equality is the exact integer identity `videoDuration * audioTimescale = audioDuration * videoTimescale`; the presentation length in 48 kHz samples is an exact BigInt quotient because the Opus profile already proved it whole.
29
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Input admission is the existing video and audio-mix probes, the audio edit is `trimProductionAudioPresentation`, and the output check is the feature probe; this function owns only the runtime proof and the two-track copy. The gap is that no production consumer remains.
30
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unequal or unsafe runtimes are refused rather than padded or trimmed to fit, the audio probe's kind is checked rather than cast, and no input is special-cased.
31
- * @evidence contracts/development/common.md#meaningful-documentation The doc states what each input must pass, the runtime rule, how the output clocks and the audio edit are formed, the final verification, and every refusal.
32
- * @evidence contracts/development/implementation.md#efficient-algorithms The video parse is shared by its admission and copy, the audio is parsed twice because its probe exposes no parsed form, each video and audio sample is appended once, and the output is parsed once. Byte copying and serialization scale with the encoded bytes, but each admitted track's residency proof additionally costs O(M + S log(M + 1)) for its S samples and the parsed file's M media boxes, with box and returned-list inspection on top; the whole mux is not strictly linear in the input bytes.
33
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call muxes one caller-held pair of byte arrays and retains no result; equal inputs give byte-identical output that a caller may store.
34
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The copied input parses, source sample views, output sample payloads and boxes, serialized output, and output probe's copied buffer and tables can coexist during verification. The audio admission parse is temporary to its probe; the copy parse stays referenced by this call. Input bytes, samples and boxes are uncapped, and no exact peak ratio is established; after return only the returned array is retained by the caller, with no handle or background task.
35
- */
36
- export const muxProductionFeatureMp4: (props: {
37
- video: Uint8Array;
38
- audio: Uint8Array;
39
- }) => Uint8Array = (props: {
40
- /** Single-track H.264 video MP4. */
41
- video: Uint8Array;
42
-
43
- /** Single-track Opus audio-mix MP4 of the same runtime. */
44
- audio: Uint8Array;
45
- }): Uint8Array => {
46
- const video: { file: ReturnType<typeof createFile>; movie: Movie } =
47
- parseProductionMp4Output(props.video);
48
- const videoProbe: IAutoMovieProductionVideoProbe =
49
- probeParsedProductionVideoMp4(props.video, video);
50
- const audioProbe: IAutoMovieProductionMediaProbe =
51
- probeProductionRenderedMedia({
52
- kind: "audio-mix",
53
- mediaType: "audio/mp4",
54
- bytes: props.audio,
55
- });
56
- if (audioProbe.kind !== "audio")
57
- throw new Error("Feature mux requires an audio-mix MP4 audio track.");
58
- const audio: { file: ReturnType<typeof createFile>; movie: Movie } = parseMp4(
59
- props.audio,
60
- );
61
- const videoTrack: Track = video.movie.videoTracks[0]!;
62
- const audioTrack: Track = audio.movie.audioTracks[0]!;
63
- if (
64
- exactProductionClockProduct(
65
- videoProbe.presentation.movieDuration,
66
- audioProbe.timebase.movieTimescale,
67
- ) !==
68
- exactProductionClockProduct(
69
- audioProbe.timebase.movieDuration,
70
- videoProbe.presentation.movieTimescale,
71
- )
72
- )
73
- throw new Error(
74
- "Feature mux requires byte sources with exactly equal track runtimes.",
75
- );
76
- // The audio-mix probe's Opus profile proved the presentation a whole number
77
- // of samples on its 48 kHz clock, and the runtime comparison proved the
78
- // movie timescale a positive safe integer, so this quotient is exact.
79
- const presentationSamples: number = Number(
80
- exactProductionClockProduct(
81
- audioProbe.timebase.movieDuration,
82
- audioProbe.sampleRate,
83
- ) / BigInt(audioProbe.timebase.movieTimescale),
84
- );
85
- const output: ReturnType<typeof createFile> = residentMp4Box().createFile();
86
- output.init({
87
- brands: ["isom", "iso2", "mp41", "Opus"],
88
- timescale: videoTrack.timescale,
89
- duration: videoTrack.duration,
90
- });
91
- copyTrack({
92
- output,
93
- source: video.file,
94
- bytes: props.video,
95
- track: videoTrack,
96
- name: "AutoMovie H.264 feature",
97
- });
98
- const outputAudioTrack: number = copyTrack({
99
- output,
100
- source: audio.file,
101
- bytes: props.audio,
102
- track: audioTrack,
103
- name: "AutoMovie deterministic mix",
104
- });
105
- trimProductionAudioPresentation({
106
- file: output,
107
- track: outputAudioTrack,
108
- mediaTimescale: audioTrack.timescale,
109
- movieTimescale: videoTrack.timescale,
110
- primingSamples: audioProbe.primingSamples,
111
- presentationSamples,
112
- });
113
- const bytes: Uint8Array = new Uint8Array(output.getBuffer().buffer);
114
- probeProductionRenderedMedia({
115
- kind: "feature",
116
- mediaType: "video/mp4",
117
- bytes,
118
- });
119
- return bytes;
120
- };
121
-
122
- /** Add one track mirroring `track` to `output` and copy every sample into it. */
123
- const copyTrack: (props: {
124
- output: ReturnType<typeof createFile>;
125
- source: ReturnType<typeof createFile>;
126
- bytes: Uint8Array;
127
- track: Track;
128
- name: string;
129
- }) => number = (props: {
130
- output: ReturnType<typeof createFile>;
131
- source: ReturnType<typeof createFile>;
132
- bytes: Uint8Array;
133
- track: Track;
134
- name: string;
135
- }): number => {
136
- const samples: Sample[] = props.source.getTrackSamplesInfo(props.track.id);
137
- const description: ReturnType<typeof sampleDescription> = sampleDescription(
138
- samples[0]!,
139
- );
140
- const options: IsoFileOptions = {
141
- type: description.type,
142
- hdlr: props.track.type === "audio" ? "soun" : "vide",
143
- name: props.name,
144
- timescale: props.track.timescale,
145
- media_duration: props.track.duration,
146
- duration: props.track.duration,
147
- language: props.track.language,
148
- description_boxes: description.boxes,
149
- };
150
- if (props.track.video !== undefined) {
151
- options.width = props.track.video.width;
152
- options.height = props.track.video.height;
153
- }
154
- if (props.track.audio !== undefined) {
155
- options.samplerate = props.track.audio.sample_rate;
156
- options.channel_count = props.track.audio.channel_count;
157
- options.samplesize = props.track.audio.sample_size;
158
- }
159
- const id: number = props.output.addTrack(options);
160
- // mp4box's addSample copies the payload into the output's media box, so a
161
- // view of the source bytes is passed instead of a second copy.
162
- for (const sample of samples)
163
- addProductionMp4Sample(
164
- props.output,
165
- id,
166
- sampleBytes(props.bytes, sample),
167
- sampleOptions(sample),
168
- );
169
- return id;
170
- };
@@ -1,59 +0,0 @@
1
- import { AUTOMOVIE_MP4_UNITY_MATRIX } from "@automovie/render";
2
- import type { Entry, Track } from "mp4box";
3
-
4
- import { equalRational } from "./equalRational";
5
-
6
- /**
7
- * Whether `track` presents its media untransformed, starting at the media
8
- * time `presentationStart`.
9
- *
10
- * The track must carry the ISO unity display matrix, and its movie duration
11
- * over the movie timescale must equal its media duration over the media
12
- * timescale exactly. Its edit list must be either empty, with
13
- * `presentationStart` 0, or one edit that starts at `presentationStart` in
14
- * media ticks, plays at rate 1, and lasts the media duration on the movie
15
- * clock. Those are the only presentations a lossless splice may join; anything
16
- * else would change reviewed pixels or reviewed timing. A clock term that is
17
- * not a safe integer, or a timescale that is not positive, answers false.
18
- *
19
- * @evidence contracts/development/implementation.md#principled-implementation ISO/IEC 14496-12 presents a track through its matrix and edit list, so a unity matrix and at most one rate-1 edit spanning the whole media from the first presented sample leave the media timeline unchanged; durations on different clocks are compared by exact cross-multiplication through `equalRational`, which also refuses unsafe terms and non-positive timescales.
20
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The clip parser and the feature-uses-clips proof ask the same question of a clip and of a delivered feature, and the matrix is read from `AUTOMOVIE_MP4_UNITY_MATRIX`, which the delivery profile also reads.
21
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No tolerance is applied to any duration or edit field, and an empty edit, a second edit or a non-unit rate answers false rather than being interpreted.
22
- * @evidence contracts/development/common.md#meaningful-documentation The doc states every condition, the unit of `presentationStart`, why only these presentations are admissible, and which invalid clocks answer false.
23
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The check reads nine matrix terms and at most one edit, so no algorithm or data structure is chosen.
24
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one track once, cheaper than any cached verdict.
25
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains no reference to the track and opens nothing.
26
- */
27
- export const neutralTrackPresentation: (
28
- track: Track,
29
- presentationStart: number,
30
- ) => boolean = (track: Track, presentationStart: number): boolean => {
31
- if (
32
- Array.from(track.matrix).some(
33
- (value: number, index: number): boolean =>
34
- value !== AUTOMOVIE_MP4_UNITY_MATRIX[index],
35
- ) ||
36
- equalRational(
37
- track.movie_duration,
38
- track.movie_timescale,
39
- track.duration,
40
- track.timescale,
41
- ) === false
42
- )
43
- return false;
44
- const edits: Entry[] = track.edits ?? [];
45
- const edit: Entry | undefined = edits[0];
46
- if (edit === undefined) return presentationStart === 0;
47
- return (
48
- edits.length === 1 &&
49
- edit.media_time === presentationStart &&
50
- edit.media_rate_integer === 1 &&
51
- edit.media_rate_fraction === 0 &&
52
- equalRational(
53
- edit.segment_duration,
54
- track.movie_timescale,
55
- track.duration,
56
- track.timescale,
57
- )
58
- );
59
- };