@automovie/template 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (751) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -2
  3. package/build/resolveTemplateVersions.ts +92 -0
  4. package/build/syncScaffoldInstructions.ts +28 -0
  5. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +14 -0
  6. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +52 -0
  7. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +1 -0
  8. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +2 -0
  9. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +42 -0
  10. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +1 -0
  11. package/lib/AutoMovieScaffoldLayer.d.ts +15 -0
  12. package/lib/AutoMovieScaffoldLayer.js +3 -0
  13. package/lib/AutoMovieScaffoldLayer.js.map +1 -0
  14. package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +2 -0
  15. package/lib/FILE_ATTRIBUTE_DIRECTORY.js +6 -0
  16. package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +1 -0
  17. package/lib/IAutoMovieCatalogVersionProps.d.ts +16 -0
  18. package/lib/IAutoMovieCatalogVersionProps.js +3 -0
  19. package/lib/IAutoMovieCatalogVersionProps.js.map +1 -0
  20. package/lib/IAutoMovieScaffoldProps.d.ts +14 -0
  21. package/lib/IAutoMovieScaffoldProps.js +3 -0
  22. package/lib/IAutoMovieScaffoldProps.js.map +1 -0
  23. package/lib/IAutoMovieScaffoldSourceEntry.d.ts +18 -0
  24. package/lib/IAutoMovieScaffoldSourceEntry.js +3 -0
  25. package/lib/IAutoMovieScaffoldSourceEntry.js.map +1 -0
  26. package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +17 -0
  27. package/lib/IAutoMovieTemplateDependencyVersionsProps.js +3 -0
  28. package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +1 -0
  29. package/lib/IAutoMovieWorkspacePackageVersions.d.ts +34 -0
  30. package/lib/IAutoMovieWorkspacePackageVersions.js +3 -0
  31. package/lib/IAutoMovieWorkspacePackageVersions.js.map +1 -0
  32. package/lib/IBoundChild.d.ts +71 -0
  33. package/lib/IBoundChild.js +3 -0
  34. package/lib/IBoundChild.js.map +1 -0
  35. package/lib/IBoundChildStatus.d.ts +20 -0
  36. package/lib/IBoundChildStatus.js +3 -0
  37. package/lib/IBoundChildStatus.js.map +1 -0
  38. package/lib/IBoundParent.d.ts +61 -0
  39. package/lib/IBoundParent.js +3 -0
  40. package/lib/IBoundParent.js.map +1 -0
  41. package/lib/IBoundParentStatus.d.ts +14 -0
  42. package/lib/IBoundParentStatus.js +3 -0
  43. package/lib/IBoundParentStatus.js.map +1 -0
  44. package/lib/ICreateResult.d.ts +27 -0
  45. package/lib/ICreateResult.js +3 -0
  46. package/lib/ICreateResult.js.map +1 -0
  47. package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +16 -0
  48. package/lib/IScaffoldCompletedFilePublicationOutcome.js +3 -0
  49. package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +1 -0
  50. package/lib/IScaffoldCompletedPublication.d.ts +15 -0
  51. package/lib/IScaffoldCompletedPublication.js +3 -0
  52. package/lib/IScaffoldCompletedPublication.js.map +1 -0
  53. package/lib/IScaffoldFileSnapshot.d.ts +24 -0
  54. package/lib/IScaffoldFileSnapshot.js +3 -0
  55. package/lib/IScaffoldFileSnapshot.js.map +1 -0
  56. package/lib/IScaffoldParentPublicationRequest.d.ts +26 -0
  57. package/lib/IScaffoldParentPublicationRequest.js +3 -0
  58. package/lib/IScaffoldParentPublicationRequest.js.map +1 -0
  59. package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +22 -0
  60. package/lib/IScaffoldPartialFilePublicationOutcome.js +3 -0
  61. package/lib/IScaffoldPartialFilePublicationOutcome.js.map +1 -0
  62. package/lib/IScaffoldPhysicalDirectory.d.ts +20 -0
  63. package/lib/IScaffoldPhysicalDirectory.js +3 -0
  64. package/lib/IScaffoldPhysicalDirectory.js.map +1 -0
  65. package/lib/IScaffoldPosixConstants.d.ts +24 -0
  66. package/lib/IScaffoldPosixConstants.js +3 -0
  67. package/lib/IScaffoldPosixConstants.js.map +1 -0
  68. package/lib/IScaffoldPublicationEntry.d.ts +20 -0
  69. package/lib/IScaffoldPublicationEntry.js +3 -0
  70. package/lib/IScaffoldPublicationEntry.js.map +1 -0
  71. package/lib/IScaffoldPublicationFailure.d.ts +18 -0
  72. package/lib/IScaffoldPublicationFailure.js +3 -0
  73. package/lib/IScaffoldPublicationFailure.js.map +1 -0
  74. package/lib/IScaffoldPublicationOptions.d.ts +17 -0
  75. package/lib/IScaffoldPublicationOptions.js +3 -0
  76. package/lib/IScaffoldPublicationOptions.js.map +1 -0
  77. package/lib/IScaffoldPublicationReceipt.d.ts +25 -0
  78. package/lib/IScaffoldPublicationReceipt.js +3 -0
  79. package/lib/IScaffoldPublicationReceipt.js.map +1 -0
  80. package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +18 -0
  81. package/lib/IScaffoldRefusedFilePublicationOutcome.js +3 -0
  82. package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +1 -0
  83. package/lib/IScaffoldSyncPlan.d.ts +25 -0
  84. package/lib/IScaffoldSyncPlan.js +3 -0
  85. package/lib/IScaffoldSyncPlan.js.map +1 -0
  86. package/lib/IScaffoldSyncProps.d.ts +16 -0
  87. package/lib/IScaffoldSyncProps.js +3 -0
  88. package/lib/IScaffoldSyncProps.js.map +1 -0
  89. package/lib/IWindowsFileInformation.d.ts +20 -0
  90. package/lib/IWindowsFileInformation.js +3 -0
  91. package/lib/IWindowsFileInformation.js.map +1 -0
  92. package/lib/IWindowsLibrary.d.ts +127 -0
  93. package/lib/IWindowsLibrary.js +3 -0
  94. package/lib/IWindowsLibrary.js.map +1 -0
  95. package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +4 -0
  96. package/lib/SCAFFOLD_SYNC_STATE_FILE.js +8 -0
  97. package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +1 -0
  98. package/lib/ScaffoldFilePublicationOutcome.d.ts +14 -0
  99. package/lib/ScaffoldFilePublicationOutcome.js +3 -0
  100. package/lib/ScaffoldFilePublicationOutcome.js.map +1 -0
  101. package/lib/ScaffoldParentChangedError.d.ts +11 -0
  102. package/lib/ScaffoldParentChangedError.js +19 -0
  103. package/lib/ScaffoldParentChangedError.js.map +1 -0
  104. package/lib/ScaffoldPublicationError.d.ts +17 -0
  105. package/lib/ScaffoldPublicationError.js +46 -0
  106. package/lib/ScaffoldPublicationError.js.map +1 -0
  107. package/lib/assertOrdinaryFile.d.ts +13 -0
  108. package/lib/assertOrdinaryFile.js +20 -0
  109. package/lib/assertOrdinaryFile.js.map +1 -0
  110. package/lib/assertOrdinarySingleLinkFile.d.ts +13 -0
  111. package/lib/assertOrdinarySingleLinkFile.js +22 -0
  112. package/lib/assertOrdinarySingleLinkFile.js.map +1 -0
  113. package/lib/assertScaffoldOwnership.d.ts +13 -0
  114. package/lib/assertScaffoldOwnership.js +24 -0
  115. package/lib/assertScaffoldOwnership.js.map +1 -0
  116. package/lib/assertScaffoldPhysicalDirectory.d.ts +16 -0
  117. package/lib/assertScaffoldPhysicalDirectory.js +26 -0
  118. package/lib/assertScaffoldPhysicalDirectory.js.map +1 -0
  119. package/lib/assertScaffoldProjectName.d.ts +18 -0
  120. package/lib/assertScaffoldProjectName.js +34 -0
  121. package/lib/assertScaffoldProjectName.js.map +1 -0
  122. package/lib/attachScaffoldSyncState.d.ts +18 -0
  123. package/lib/attachScaffoldSyncState.js +30 -0
  124. package/lib/attachScaffoldSyncState.js.map +1 -0
  125. package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +13 -0
  126. package/lib/captureEmptyScaffoldPhysicalDirectory.js +69 -0
  127. package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +1 -0
  128. package/lib/captureScaffoldFile.d.ts +13 -0
  129. package/lib/captureScaffoldFile.js +67 -0
  130. package/lib/captureScaffoldFile.js.map +1 -0
  131. package/lib/captureScaffoldPhysicalDirectory.d.ts +13 -0
  132. package/lib/captureScaffoldPhysicalDirectory.js +63 -0
  133. package/lib/captureScaffoldPhysicalDirectory.js.map +1 -0
  134. package/lib/combineScaffoldFailures.d.ts +19 -0
  135. package/lib/combineScaffoldFailures.js +32 -0
  136. package/lib/combineScaffoldFailures.js.map +1 -0
  137. package/lib/createAutoMovieCatalogVersionResolver.d.ts +17 -0
  138. package/lib/createAutoMovieCatalogVersionResolver.js +64 -0
  139. package/lib/createAutoMovieCatalogVersionResolver.js.map +1 -0
  140. package/lib/createScaffoldSyncState.d.ts +12 -0
  141. package/lib/createScaffoldSyncState.js +26 -0
  142. package/lib/createScaffoldSyncState.js.map +1 -0
  143. package/lib/createScaffoldVariables.d.ts +25 -0
  144. package/lib/createScaffoldVariables.js +41 -0
  145. package/lib/createScaffoldVariables.js.map +1 -0
  146. package/lib/ensureScaffoldBaseDirectory.d.ts +19 -0
  147. package/lib/ensureScaffoldBaseDirectory.js +89 -0
  148. package/lib/ensureScaffoldBaseDirectory.js.map +1 -0
  149. package/lib/ensureScaffoldFileDirectory.d.ts +25 -0
  150. package/lib/ensureScaffoldFileDirectory.js +103 -0
  151. package/lib/ensureScaffoldFileDirectory.js.map +1 -0
  152. package/lib/index.d.ts +47 -0
  153. package/lib/index.js +64 -0
  154. package/lib/index.js.map +1 -0
  155. package/lib/inside.d.ts +12 -0
  156. package/lib/inside.js +57 -0
  157. package/lib/inside.js.map +1 -0
  158. package/lib/isScaffoldInstruction.d.ts +12 -0
  159. package/lib/isScaffoldInstruction.js +29 -0
  160. package/lib/isScaffoldInstruction.js.map +1 -0
  161. package/lib/listAutoMovieScaffoldFiles.d.ts +17 -0
  162. package/lib/listAutoMovieScaffoldFiles.js +87 -0
  163. package/lib/listAutoMovieScaffoldFiles.js.map +1 -0
  164. package/lib/loadWindowsLibrary.d.ts +13 -0
  165. package/lib/loadWindowsLibrary.js +180 -0
  166. package/lib/loadWindowsLibrary.js.map +1 -0
  167. package/lib/mergeScaffoldFiles.d.ts +18 -0
  168. package/lib/mergeScaffoldFiles.js +37 -0
  169. package/lib/mergeScaffoldFiles.js.map +1 -0
  170. package/lib/missingPath.d.ts +12 -0
  171. package/lib/missingPath.js +18 -0
  172. package/lib/missingPath.js.map +1 -0
  173. package/lib/nativeError.d.ts +12 -0
  174. package/lib/nativeError.js +17 -0
  175. package/lib/nativeError.js.map +1 -0
  176. package/lib/openPosixParent.d.ts +13 -0
  177. package/lib/openPosixParent.js +135 -0
  178. package/lib/openPosixParent.js.map +1 -0
  179. package/lib/openWindowsParent.d.ts +13 -0
  180. package/lib/openWindowsParent.js +224 -0
  181. package/lib/openWindowsParent.js.map +1 -0
  182. package/lib/overwriteScaffoldFile.d.ts +22 -0
  183. package/lib/overwriteScaffoldFile.js +214 -0
  184. package/lib/overwriteScaffoldFile.js.map +1 -0
  185. package/lib/physicalDirectoryIdentity.d.ts +15 -0
  186. package/lib/physicalDirectoryIdentity.js +65 -0
  187. package/lib/physicalDirectoryIdentity.js.map +1 -0
  188. package/lib/physicalVersion.d.ts +13 -0
  189. package/lib/physicalVersion.js +18 -0
  190. package/lib/physicalVersion.js.map +1 -0
  191. package/lib/planScaffoldPublication.d.ts +22 -0
  192. package/lib/planScaffoldPublication.js +100 -0
  193. package/lib/planScaffoldPublication.js.map +1 -0
  194. package/lib/planScaffoldSync.d.ts +14 -0
  195. package/lib/planScaffoldSync.js +102 -0
  196. package/lib/planScaffoldSync.js.map +1 -0
  197. package/lib/publishFiles.d.ts +23 -0
  198. package/lib/publishFiles.js +124 -0
  199. package/lib/publishFiles.js.map +1 -0
  200. package/lib/publishNativeScaffoldFile.d.ts +21 -0
  201. package/lib/publishNativeScaffoldFile.js +211 -0
  202. package/lib/publishNativeScaffoldFile.js.map +1 -0
  203. package/lib/publishScaffoldCandidate.d.ts +24 -0
  204. package/lib/publishScaffoldCandidate.js +70 -0
  205. package/lib/publishScaffoldCandidate.js.map +1 -0
  206. package/lib/readAutoMovieScaffoldSources.d.ts +20 -0
  207. package/lib/readAutoMovieScaffoldSources.js +103 -0
  208. package/lib/readAutoMovieScaffoldSources.js.map +1 -0
  209. package/lib/readScaffoldSyncFile.d.ts +16 -0
  210. package/lib/readScaffoldSyncFile.js +64 -0
  211. package/lib/readScaffoldSyncFile.js.map +1 -0
  212. package/lib/renderScaffold.d.ts +19 -0
  213. package/lib/renderScaffold.js +33 -0
  214. package/lib/renderScaffold.js.map +1 -0
  215. package/lib/renderScaffoldEntries.d.ts +20 -0
  216. package/lib/renderScaffoldEntries.js +106 -0
  217. package/lib/renderScaffoldEntries.js.map +1 -0
  218. package/lib/renderScaffoldInstructions.d.ts +17 -0
  219. package/lib/renderScaffoldInstructions.js +23 -0
  220. package/lib/renderScaffoldInstructions.js.map +1 -0
  221. package/lib/renderScaffoldLayer.d.ts +20 -0
  222. package/lib/renderScaffoldLayer.js +28 -0
  223. package/lib/renderScaffoldLayer.js.map +1 -0
  224. package/lib/renderTemplate.d.ts +19 -0
  225. package/lib/renderTemplate.js +56 -0
  226. package/lib/renderTemplate.js.map +1 -0
  227. package/lib/renderWorkspaceProductionScaffold.d.ts +19 -0
  228. package/lib/renderWorkspaceProductionScaffold.js +30 -0
  229. package/lib/renderWorkspaceProductionScaffold.js.map +1 -0
  230. package/lib/renderWorkspaceScaffold.d.ts +19 -0
  231. package/lib/renderWorkspaceScaffold.js +33 -0
  232. package/lib/renderWorkspaceScaffold.js.map +1 -0
  233. package/lib/replaceSharedScaffoldFile.d.ts +30 -0
  234. package/lib/replaceSharedScaffoldFile.js +106 -0
  235. package/lib/replaceSharedScaffoldFile.js.map +1 -0
  236. package/lib/resolveAutoMovieCatalogVersion.d.ts +19 -0
  237. package/lib/resolveAutoMovieCatalogVersion.js +24 -0
  238. package/lib/resolveAutoMovieCatalogVersion.js.map +1 -0
  239. package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +19 -0
  240. package/lib/resolveAutoMovieTemplateDependencyVersions.js +62 -0
  241. package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +1 -0
  242. package/lib/resolveScaffoldPosixConstants.d.ts +13 -0
  243. package/lib/resolveScaffoldPosixConstants.js +44 -0
  244. package/lib/resolveScaffoldPosixConstants.js.map +1 -0
  245. package/lib/scaffoldAssetDirectory.d.ts +19 -0
  246. package/lib/scaffoldAssetDirectory.js +63 -0
  247. package/lib/scaffoldAssetDirectory.js.map +1 -0
  248. package/lib/scaffoldPhysicalIdentity.d.ts +18 -0
  249. package/lib/scaffoldPhysicalIdentity.js +22 -0
  250. package/lib/scaffoldPhysicalIdentity.js.map +1 -0
  251. package/lib/scaffoldSharedSkillDirectory.d.ts +17 -0
  252. package/lib/scaffoldSharedSkillDirectory.js +62 -0
  253. package/lib/scaffoldSharedSkillDirectory.js.map +1 -0
  254. package/lib/scaffoldSharedSkillPath.d.ts +17 -0
  255. package/lib/scaffoldSharedSkillPath.js +66 -0
  256. package/lib/scaffoldSharedSkillPath.js.map +1 -0
  257. package/lib/skills/3d-modeling/conditioning.md +82 -0
  258. package/lib/skills/3d-modeling/crafting.md +82 -0
  259. package/lib/skills/3d-modeling/diffusion.md +34 -0
  260. package/lib/skills/3d-modeling/inspection.md +54 -0
  261. package/lib/skills/3d-modeling/lofting.md +43 -0
  262. package/lib/skills/3d-modeling/modularization.md +31 -0
  263. package/lib/skills/3d-modeling/recovery.md +29 -0
  264. package/lib/skills/3d-modeling/rigging.md +97 -0
  265. package/lib/skills/3d-modeling/sources.md +29 -0
  266. package/lib/skills/contracts/development/common.md +13 -0
  267. package/lib/skills/contracts/development/design.md +28 -0
  268. package/lib/skills/contracts/development/implementation.md +49 -0
  269. package/lib/skills/contracts/development/testing.md +27 -0
  270. package/lib/skills/development/repair.md +13 -0
  271. package/lib/skills/documentation/SKILL.md +25 -0
  272. package/lib/skills/documentation/writing.md +51 -0
  273. package/lib/skills/motion/authoring.md +51 -0
  274. package/lib/skills/motion/contacts.md +39 -0
  275. package/lib/skills/motion/laws.md +23 -0
  276. package/lib/skills/motion/layers.md +7 -0
  277. package/lib/skills/motion/transitions.md +27 -0
  278. package/lib/skills/motion/variation.md +23 -0
  279. package/lib/skills/motion/verification.md +36 -0
  280. package/lib/skills/prompting/SKILL.md +80 -0
  281. package/lib/skills/visual-debugging/capture.md +60 -0
  282. package/lib/skills/visual-debugging/comparison.md +35 -0
  283. package/lib/skills/visual-debugging/correction-rounds.md +34 -0
  284. package/lib/skills/visual-debugging/passes.md +29 -0
  285. package/lib/skills/visual-debugging/rendering-cost.md +5 -0
  286. package/lib/syncScaffold.d.ts +19 -0
  287. package/lib/syncScaffold.js +28 -0
  288. package/lib/syncScaffold.js.map +1 -0
  289. package/lib/writeFiles.d.ts +20 -0
  290. package/lib/writeFiles.js +33 -0
  291. package/lib/writeFiles.js.map +1 -0
  292. package/lib/writeScaffoldFile.d.ts +35 -0
  293. package/lib/writeScaffoldFile.js +107 -0
  294. package/lib/writeScaffoldFile.js.map +1 -0
  295. package/lib/writtenVersion.d.ts +13 -0
  296. package/lib/writtenVersion.js +18 -0
  297. package/lib/writtenVersion.js.map +1 -0
  298. package/package.json +59 -3
  299. package/scaffold/instructions/.agents/skills/$documentation +0 -0
  300. package/scaffold/instructions/.agents/skills/$prompting +0 -0
  301. package/scaffold/instructions/.agents/skills/3d-modeling/$conditioning.md +0 -0
  302. package/scaffold/instructions/.agents/skills/3d-modeling/$crafting.md +0 -0
  303. package/scaffold/instructions/.agents/skills/3d-modeling/$diffusion.md +0 -0
  304. package/scaffold/instructions/.agents/skills/3d-modeling/$inspection.md +0 -0
  305. package/scaffold/instructions/.agents/skills/3d-modeling/$lofting.md +0 -0
  306. package/scaffold/instructions/.agents/skills/3d-modeling/$modularization.md +0 -0
  307. package/scaffold/instructions/.agents/skills/3d-modeling/$recovery.md +0 -0
  308. package/scaffold/instructions/.agents/skills/3d-modeling/$rigging.md +0 -0
  309. package/scaffold/instructions/.agents/skills/3d-modeling/$sources.md +0 -0
  310. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +32 -0
  311. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +25 -0
  312. package/scaffold/instructions/.agents/skills/audio/SKILL.md +28 -0
  313. package/scaffold/instructions/.agents/skills/audio/acquisition.md +25 -0
  314. package/scaffold/instructions/.agents/skills/audio/local-speech.md +11 -0
  315. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +29 -0
  316. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +41 -0
  317. package/scaffold/instructions/.agents/skills/contracts/development/$common.md +0 -0
  318. package/scaffold/instructions/.agents/skills/contracts/development/$design.md +0 -0
  319. package/scaffold/instructions/.agents/skills/contracts/development/$implementation.md +0 -0
  320. package/scaffold/instructions/.agents/skills/contracts/development/$testing.md +0 -0
  321. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +22 -0
  322. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +25 -0
  323. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +29 -0
  324. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +27 -0
  325. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +42 -0
  326. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +32 -0
  327. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +34 -0
  328. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +44 -0
  329. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +9 -0
  330. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +9 -0
  331. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +9 -0
  332. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +9 -0
  333. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +9 -0
  334. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +9 -0
  335. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +9 -0
  336. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +17 -0
  337. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +9 -0
  338. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +9 -0
  339. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +9 -0
  340. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +9 -0
  341. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +9 -0
  342. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +13 -0
  343. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +9 -0
  344. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +9 -0
  345. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +13 -0
  346. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +13 -0
  347. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +13 -0
  348. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +13 -0
  349. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +13 -0
  350. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +13 -0
  351. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +13 -0
  352. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +13 -0
  353. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +13 -0
  354. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +13 -0
  355. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +13 -0
  356. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +13 -0
  357. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +13 -0
  358. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +13 -0
  359. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +13 -0
  360. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +17 -0
  361. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +13 -0
  362. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +13 -0
  363. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +13 -0
  364. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +21 -0
  365. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +42 -0
  366. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +8 -0
  367. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +15 -0
  368. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +11 -0
  369. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +25 -0
  370. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +9 -0
  371. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +94 -0
  372. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +20 -0
  373. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +15 -0
  374. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +11 -0
  375. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +17 -0
  376. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +19 -0
  377. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +25 -0
  378. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +19 -0
  379. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +17 -0
  380. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +31 -0
  381. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +15 -0
  382. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +43 -0
  383. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +37 -0
  384. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +26 -0
  385. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +26 -0
  386. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +38 -0
  387. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +31 -0
  388. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +21 -0
  389. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +15 -0
  390. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +17 -0
  391. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +41 -0
  392. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +17 -0
  393. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +34 -0
  394. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +37 -0
  395. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +82 -0
  396. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +45 -0
  397. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +34 -0
  398. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +27 -0
  399. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +14 -0
  400. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +12 -0
  401. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +10 -0
  402. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +9 -0
  403. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +9 -0
  404. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +9 -0
  405. package/scaffold/instructions/.agents/skills/development/$repair.md +0 -0
  406. package/scaffold/instructions/.agents/skills/development/SKILL.md +33 -0
  407. package/scaffold/instructions/.agents/skills/development/entities.md +43 -0
  408. package/scaffold/instructions/.agents/skills/development/reuse.md +47 -0
  409. package/scaffold/instructions/.agents/skills/development/source-layout.md +69 -0
  410. package/scaffold/instructions/.agents/skills/development/testing.md +27 -0
  411. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +16 -0
  412. package/scaffold/instructions/.agents/skills/evidence/adoption.md +11 -0
  413. package/scaffold/instructions/.agents/skills/evidence/answering.md +11 -0
  414. package/scaffold/instructions/.agents/skills/evidence/configuration.md +23 -0
  415. package/scaffold/instructions/.agents/skills/image/SKILL.md +69 -0
  416. package/scaffold/instructions/.agents/skills/motion/$authoring.md +0 -0
  417. package/scaffold/instructions/.agents/skills/motion/$contacts.md +0 -0
  418. package/scaffold/instructions/.agents/skills/motion/$laws.md +0 -0
  419. package/scaffold/instructions/.agents/skills/motion/$layers.md +0 -0
  420. package/scaffold/instructions/.agents/skills/motion/$transitions.md +0 -0
  421. package/scaffold/instructions/.agents/skills/motion/$variation.md +0 -0
  422. package/scaffold/instructions/.agents/skills/motion/$verification.md +0 -0
  423. package/scaffold/instructions/.agents/skills/motion/SKILL.md +55 -0
  424. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +11 -0
  425. package/scaffold/instructions/.agents/skills/motion/control-channels.md +19 -0
  426. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +25 -0
  427. package/scaffold/instructions/.agents/skills/motion/method-references.md +23 -0
  428. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +31 -0
  429. package/scaffold/instructions/.agents/skills/motion/retargeting.md +23 -0
  430. package/scaffold/instructions/.agents/skills/motion/segment-review.md +17 -0
  431. package/scaffold/instructions/.agents/skills/motion/staging.md +29 -0
  432. package/scaffold/instructions/.agents/skills/production/SKILL.md +45 -0
  433. package/scaffold/instructions/.agents/skills/production/assembly.md +30 -0
  434. package/scaffold/instructions/.agents/skills/production/media-records.md +29 -0
  435. package/scaffold/instructions/.agents/skills/production/project-context.md +25 -0
  436. package/scaffold/instructions/.agents/skills/production/stage-caches.md +30 -0
  437. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +21 -0
  438. package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +21 -0
  439. package/scaffold/instructions/.agents/skills/review/SKILL.md +24 -0
  440. package/scaffold/instructions/.agents/skills/review/delivery-review.md +65 -0
  441. package/scaffold/instructions/.agents/skills/review/estimation.md +48 -0
  442. package/scaffold/instructions/.agents/skills/review/independent-reading.md +39 -0
  443. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +53 -0
  444. package/scaffold/instructions/.agents/skills/review/source-review.md +31 -0
  445. package/scaffold/instructions/.agents/skills/story/SKILL.md +20 -0
  446. package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +13 -0
  447. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +29 -0
  448. package/scaffold/instructions/.agents/skills/story/correction/repair.md +35 -0
  449. package/scaffold/instructions/.agents/skills/story/document-layout.md +38 -0
  450. package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +13 -0
  451. package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +13 -0
  452. package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +23 -0
  453. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +17 -0
  454. package/scaffold/instructions/.agents/skills/story/layers/brief.md +29 -0
  455. package/scaffold/instructions/.agents/skills/story/layers/notation.md +34 -0
  456. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +15 -0
  457. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +11 -0
  458. package/scaffold/instructions/.agents/skills/story/layers/settings.md +39 -0
  459. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +9 -0
  460. package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +13 -0
  461. package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +17 -0
  462. package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +11 -0
  463. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +15 -0
  464. package/scaffold/instructions/.agents/skills/story/planning/direction.md +14 -0
  465. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +20 -0
  466. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +25 -0
  467. package/scaffold/instructions/.agents/skills/story/planning/research.md +25 -0
  468. package/scaffold/instructions/.agents/skills/story/workflow.md +61 -0
  469. package/scaffold/instructions/.agents/skills/video/SKILL.md +29 -0
  470. package/scaffold/instructions/.agents/skills/video/diffusion.md +33 -0
  471. package/scaffold/instructions/.agents/skills/video/generation.md +27 -0
  472. package/scaffold/instructions/.agents/skills/video/prompts.md +51 -0
  473. package/scaffold/instructions/.agents/skills/visual-debugging/$capture.md +0 -0
  474. package/scaffold/instructions/.agents/skills/visual-debugging/$comparison.md +0 -0
  475. package/scaffold/instructions/.agents/skills/visual-debugging/$correction-rounds.md +0 -0
  476. package/scaffold/instructions/.agents/skills/visual-debugging/$passes.md +0 -0
  477. package/scaffold/instructions/.agents/skills/visual-debugging/$rendering-cost.md +0 -0
  478. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +30 -0
  479. package/scaffold/instructions/AGENTS.md +96 -0
  480. package/scaffold/instructions/CLAUDE.md +1 -0
  481. package/scaffold/production/PROJECT.md +3 -0
  482. package/scaffold/production/README.md +146 -0
  483. package/scaffold/production/_gitignore +20 -0
  484. package/scaffold/production/evidence.config.ts +12 -0
  485. package/scaffold/production/index.html +20 -0
  486. package/scaffold/production/lint.config.ts +46 -0
  487. package/scaffold/production/package.json +54 -0
  488. package/scaffold/production/src/IFilm.ts +41 -0
  489. package/scaffold/production/src/IFilmProduction.ts +80 -0
  490. package/scaffold/production/src/clampProductionSeconds.ts +21 -0
  491. package/scaffold/production/src/composition/films/index.ts +10 -0
  492. package/scaffold/production/src/composition/films/starter.ts +45 -0
  493. package/scaffold/production/src/executable/capture.ts +487 -0
  494. package/scaffold/production/src/executable/physics.ts +48 -0
  495. package/scaffold/production/src/executable/planCaptureStills.ts +65 -0
  496. package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +171 -0
  497. package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +268 -0
  498. package/scaffold/production/src/executable/recovery/node/artifact/index.ts +3 -0
  499. package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +303 -0
  500. package/scaffold/production/src/executable/recovery/node/cli.ts +12 -0
  501. package/scaffold/production/src/executable/recovery/node/index.ts +9 -0
  502. package/scaffold/production/src/executable/recovery/node/internal/IAutoMovieRecoveryMemoryUsage.ts +25 -0
  503. package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTable.ts +95 -0
  504. package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTableInput.ts +50 -0
  505. package/scaffold/production/src/executable/recovery/node/internal/createRecoveryFileVectorTable.ts +181 -0
  506. package/scaffold/production/src/executable/recovery/node/internal/observeRecoveryAtlas.ts +492 -0
  507. package/scaffold/production/src/executable/recovery/node/internal/readAutoMovieRecoveryBoundedFile.ts +57 -0
  508. package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +80 -0
  509. package/scaffold/production/src/executable/recovery/node/internal/readRecoveryFixedReference.ts +26 -0
  510. package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +272 -0
  511. package/scaffold/production/src/executable/recovery/node/internal/recoveryAtlas.ts +152 -0
  512. package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraMap.ts +113 -0
  513. package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraScene.ts +117 -0
  514. package/scaffold/production/src/executable/recovery/node/internal/recoveryCameras.ts +158 -0
  515. package/scaffold/production/src/executable/recovery/node/internal/recoveryContourPath.ts +185 -0
  516. package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +176 -0
  517. package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +151 -0
  518. package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +237 -0
  519. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +265 -0
  520. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +252 -0
  521. package/scaffold/production/src/executable/recovery/node/mesh/index.ts +3 -0
  522. package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +239 -0
  523. package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +63 -0
  524. package/scaffold/production/src/executable/recovery/node/reconstruction/index.ts +1 -0
  525. package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +473 -0
  526. package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +148 -0
  527. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +1 -0
  528. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +1 -0
  529. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +1 -0
  530. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +79 -0
  531. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +39 -0
  532. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +20 -0
  533. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +1 -0
  534. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +1 -0
  535. package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +92 -0
  536. package/scaffold/production/src/executable/render/headlessCapture/index.ts +9 -0
  537. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +128 -0
  538. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +43 -0
  539. package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +44 -0
  540. package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +24 -0
  541. package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +89 -0
  542. package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +62 -0
  543. package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +167 -0
  544. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +184 -0
  545. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +127 -0
  546. package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +102 -0
  547. package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +59 -0
  548. package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +30 -0
  549. package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +187 -0
  550. package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +55 -0
  551. package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +107 -0
  552. package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +203 -0
  553. package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +66 -0
  554. package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +95 -0
  555. package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +11 -0
  556. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +13 -0
  557. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +30 -0
  558. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +51 -0
  559. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +27 -0
  560. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +44 -0
  561. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +43 -0
  562. package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +39 -0
  563. package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +233 -0
  564. package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +377 -0
  565. package/scaffold/production/src/executable/render/node/capture/index.ts +14 -0
  566. package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +34 -0
  567. package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +169 -0
  568. package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +165 -0
  569. package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +179 -0
  570. package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +86 -0
  571. package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +230 -0
  572. package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +253 -0
  573. package/scaffold/production/src/executable/render/node/equalRational.ts +36 -0
  574. package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +26 -0
  575. package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +267 -0
  576. package/scaffold/production/src/executable/render/node/index.ts +27 -0
  577. package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +18 -0
  578. package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +74 -0
  579. package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +170 -0
  580. package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +59 -0
  581. package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +110 -0
  582. package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +81 -0
  583. package/scaffold/production/src/executable/render/node/parseMp4.ts +46 -0
  584. package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +70 -0
  585. package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +92 -0
  586. package/scaffold/production/src/executable/render/node/planViewerVideo.ts +140 -0
  587. package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +48 -0
  588. package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +223 -0
  589. package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +355 -0
  590. package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +27 -0
  591. package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +220 -0
  592. package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +149 -0
  593. package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +137 -0
  594. package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +139 -0
  595. package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +301 -0
  596. package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +75 -0
  597. package/scaffold/production/src/executable/render/node/residentMp4Box.ts +36 -0
  598. package/scaffold/production/src/executable/render/node/residentPngJs.ts +26 -0
  599. package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +58 -0
  600. package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +43 -0
  601. package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +28 -0
  602. package/scaffold/production/src/executable/render/node/sampleBytes.ts +46 -0
  603. package/scaffold/production/src/executable/render/node/sampleDescription.ts +40 -0
  604. package/scaffold/production/src/executable/render/node/sampleOptions.ts +37 -0
  605. package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +29 -0
  606. package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +115 -0
  607. package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +86 -0
  608. package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +101 -0
  609. package/scaffold/production/src/executable/render.ts +92 -0
  610. package/scaffold/production/src/executable/review.ts +54 -0
  611. package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +119 -0
  612. package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +64 -0
  613. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +41 -0
  614. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +22 -0
  615. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +18 -0
  616. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +32 -0
  617. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +130 -0
  618. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +38 -0
  619. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +41 -0
  620. package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +154 -0
  621. package/scaffold/production/src/executable/viewer/node/capture/index.ts +8 -0
  622. package/scaffold/production/src/executable/viewer/node/index.ts +2 -0
  623. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterLighting.ts +221 -0
  624. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterSheet.ts +175 -0
  625. package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterTarget.ts +282 -0
  626. package/scaffold/production/src/executable/viewer/node/raster/IAutoMovieSceneRaster.ts +62 -0
  627. package/scaffold/production/src/executable/viewer/node/raster/IRasterizeAutoMovieSceneProps.ts +34 -0
  628. package/scaffold/production/src/executable/viewer/node/raster/encodeAutoMovieRasterPng.ts +77 -0
  629. package/scaffold/production/src/executable/viewer/node/raster/index.ts +8 -0
  630. package/scaffold/production/src/executable/viewer/node/raster/rasterizeAutoMovieScene.ts +594 -0
  631. package/scaffold/production/src/executable/viewer/node/raster/stampAutoMovieRasterLabel.ts +120 -0
  632. package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +102 -0
  633. package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +18 -0
  634. package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +70 -0
  635. package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +125 -0
  636. package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +52 -0
  637. package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +41 -0
  638. package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +22 -0
  639. package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +24 -0
  640. package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +24 -0
  641. package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +45 -0
  642. package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +15 -0
  643. package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +15 -0
  644. package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +41 -0
  645. package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +68 -0
  646. package/scaffold/production/src/main.ts +197 -0
  647. package/scaffold/production/src/selectFilm.ts +34 -0
  648. package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +75 -0
  649. package/scaffold/production/test/features/test_clamp_production_seconds.ts +39 -0
  650. package/scaffold/production/test/features/test_select_film.ts +59 -0
  651. package/scaffold/production/test/features/testing/test_test_execution.ts +57 -0
  652. package/scaffold/production/test/features/testing/test_test_selection.ts +78 -0
  653. package/scaffold/production/test/helpers/assessTestExecution.ts +22 -0
  654. package/scaffold/production/test/helpers/selectTestFiles.ts +79 -0
  655. package/scaffold/production/test/index.ts +64 -0
  656. package/scaffold/production/test/tsconfig.json +6 -0
  657. package/scaffold/production/tsconfig.json +34 -0
  658. package/scaffold/production/tsconfig.test.json +9 -0
  659. package/scaffold/production/vite.config.ts +35 -0
  660. package/scaffold/workspace/README.md +42 -0
  661. package/scaffold/workspace/_gitignore +9 -0
  662. package/scaffold/workspace/package.json +19 -0
  663. package/scaffold/workspace/pnpm-workspace.yaml +46 -0
  664. package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +48 -0
  665. package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +39 -0
  666. package/src/AutoMovieScaffoldLayer.ts +18 -0
  667. package/src/FILE_ATTRIBUTE_DIRECTORY.ts +2 -0
  668. package/src/IAutoMovieCatalogVersionProps.ts +18 -0
  669. package/src/IAutoMovieScaffoldProps.ts +14 -0
  670. package/src/IAutoMovieScaffoldSourceEntry.ts +19 -0
  671. package/src/IAutoMovieTemplateDependencyVersionsProps.ts +19 -0
  672. package/src/IAutoMovieWorkspacePackageVersions.ts +44 -0
  673. package/src/IBoundChild.ts +86 -0
  674. package/src/IBoundChildStatus.ts +24 -0
  675. package/src/IBoundParent.ts +65 -0
  676. package/src/IBoundParentStatus.ts +15 -0
  677. package/src/ICreateResult.ts +35 -0
  678. package/src/IScaffoldCompletedFilePublicationOutcome.ts +17 -0
  679. package/src/IScaffoldCompletedPublication.ts +17 -0
  680. package/src/IScaffoldFileSnapshot.ts +28 -0
  681. package/src/IScaffoldParentPublicationRequest.ts +29 -0
  682. package/src/IScaffoldPartialFilePublicationOutcome.ts +25 -0
  683. package/src/IScaffoldPhysicalDirectory.ts +22 -0
  684. package/src/IScaffoldPosixConstants.ts +30 -0
  685. package/src/IScaffoldPublicationEntry.ts +22 -0
  686. package/src/IScaffoldPublicationFailure.ts +18 -0
  687. package/src/IScaffoldPublicationOptions.ts +19 -0
  688. package/src/IScaffoldPublicationReceipt.ts +29 -0
  689. package/src/IScaffoldRefusedFilePublicationOutcome.ts +20 -0
  690. package/src/IScaffoldSyncPlan.ts +26 -0
  691. package/src/IScaffoldSyncProps.ts +16 -0
  692. package/src/IWindowsFileInformation.ts +24 -0
  693. package/src/IWindowsLibrary.ts +148 -0
  694. package/src/SCAFFOLD_SYNC_STATE_FILE.ts +5 -0
  695. package/src/ScaffoldFilePublicationOutcome.ts +18 -0
  696. package/src/ScaffoldParentChangedError.ts +14 -0
  697. package/src/ScaffoldPublicationError.ts +58 -0
  698. package/src/assertOrdinaryFile.ts +20 -0
  699. package/src/assertOrdinarySingleLinkFile.ts +26 -0
  700. package/src/assertScaffoldOwnership.ts +29 -0
  701. package/src/assertScaffoldPhysicalDirectory.ts +29 -0
  702. package/src/assertScaffoldProjectName.ts +34 -0
  703. package/src/attachScaffoldSyncState.ts +30 -0
  704. package/src/captureEmptyScaffoldPhysicalDirectory.ts +45 -0
  705. package/src/captureScaffoldFile.ts +34 -0
  706. package/src/captureScaffoldPhysicalDirectory.ts +34 -0
  707. package/src/combineScaffoldFailures.ts +35 -0
  708. package/src/createAutoMovieCatalogVersionResolver.ts +117 -0
  709. package/src/createScaffoldSyncState.ts +33 -0
  710. package/src/createScaffoldVariables.ts +50 -0
  711. package/src/ensureScaffoldBaseDirectory.ts +55 -0
  712. package/src/ensureScaffoldFileDirectory.ts +75 -0
  713. package/src/index.ts +48 -0
  714. package/src/inside.ts +25 -0
  715. package/src/isScaffoldInstruction.ts +29 -0
  716. package/src/listAutoMovieScaffoldFiles.ts +56 -0
  717. package/src/loadWindowsLibrary.ts +277 -0
  718. package/src/mergeScaffoldFiles.ts +39 -0
  719. package/src/missingPath.ts +16 -0
  720. package/src/nativeError.ts +15 -0
  721. package/src/openPosixParent.ts +155 -0
  722. package/src/openWindowsParent.ts +305 -0
  723. package/src/overwriteScaffoldFile.ts +262 -0
  724. package/src/physicalDirectoryIdentity.ts +33 -0
  725. package/src/physicalVersion.ts +18 -0
  726. package/src/planScaffoldPublication.ts +100 -0
  727. package/src/planScaffoldSync.ts +122 -0
  728. package/src/publishFiles.ts +120 -0
  729. package/src/publishNativeScaffoldFile.ts +287 -0
  730. package/src/publishScaffoldCandidate.ts +94 -0
  731. package/src/readAutoMovieScaffoldSources.ts +82 -0
  732. package/src/readScaffoldSyncFile.ts +66 -0
  733. package/src/renderScaffold.ts +43 -0
  734. package/src/renderScaffoldEntries.ts +110 -0
  735. package/src/renderScaffoldInstructions.ts +22 -0
  736. package/src/renderScaffoldLayer.ts +38 -0
  737. package/src/renderTemplate.ts +62 -0
  738. package/src/renderWorkspaceProductionScaffold.ts +35 -0
  739. package/src/renderWorkspaceScaffold.ts +43 -0
  740. package/src/replaceSharedScaffoldFile.ts +88 -0
  741. package/src/resolveAutoMovieCatalogVersion.ts +27 -0
  742. package/src/resolveAutoMovieTemplateDependencyVersions.ts +70 -0
  743. package/src/resolveScaffoldPosixConstants.ts +50 -0
  744. package/src/scaffoldAssetDirectory.ts +30 -0
  745. package/src/scaffoldPhysicalIdentity.ts +21 -0
  746. package/src/scaffoldSharedSkillDirectory.ts +25 -0
  747. package/src/scaffoldSharedSkillPath.ts +31 -0
  748. package/src/syncScaffold.ts +38 -0
  749. package/src/writeFiles.ts +48 -0
  750. package/src/writeScaffoldFile.ts +88 -0
  751. package/src/writtenVersion.ts +19 -0
@@ -0,0 +1,33 @@
1
+ # Video diffusion models
2
+
3
+ The models below are representative examples, not a complete or required list; any model the user prefers or a newer release can serve. Their values change between versions, so the linked documentation, read when planning, owns them; the table only shows how differently models take a motion hint.
4
+
5
+ | Model | Takes the hint as | Output | References | Prompt | Sound | Documentation |
6
+ | --- | --- | --- | --- | --- | --- | --- |
7
+ | Runway Aleph 2.0 | Video to edit or restyle, 2 to 30 s at up to 30 fps | Input length, up to 1080p | Up to 5 timed keyframe images | Up to 1,000 characters | None documented | [Models](https://docs.dev.runwayml.com/guides/models.md), [prompting](https://help.runwayml.com/hc/en-us/articles/52150503729171-Aleph-2-0-Prompting-Guide) |
8
+ | Kling 4.0 Omni | Video to edit, plus up to 5 reference videos totaling 3 to 30 s | 3 to 30 s, 720p or 1080p, 24 fps | Up to 15 assets per request | Up to 26,000 characters, no negative field or seed | Depends on the mode | [API](https://kling.ai/document-api/api/video/4-0/video-omni), [guide](https://kling.ai/quickstart/kling-4-model-user-guide) |
9
+ | Kling Motion Control | One figure's body motion from a continuous take, 3 to 30 s | Length of the motion video | One character image | Up to 2,500 characters | Not documented | [Guide](https://kling.ai/quickstart/motion-control-user-guide) |
10
+ | Seedance 2.5 | Video to edit or extend, or up to 10 reference videos totaling 30 s | 4 to 30 s, 24 fps | Images and videos; references with real human faces are rejected | Not documented | Generated, mono | [Model](https://docs.byteplus.com/en/docs/ModelArk/seedance-2-5), [prompting](https://docs.byteplus.com/en/docs/ModelArk/seedance-2-0-prompt-guide) |
11
+ | MiniMax-H3 | Up to 3 reference videos totaling 15 s | 4 to 15 s, 768P or 2K, 24 fps | Images and videos | Up to 7,000 characters | Generated, stereo | [Guide](https://platform.minimax.io/docs/guides/video-generation), [prompting](https://huggingface.co/MiniMaxAI/MiniMax-H3/raw/main/docs/VIDEO_PROMPT_WRITING_GUIDE_ref_en.md) |
12
+ | Gemini Omni Flash | Video to edit, up to 15 s; not offered in the EEA, Switzerland or the UK | 3 to 15 s, 24 fps | Up to 6 images, at most 3 per character for 2 characters | No negative field | Generated | [Omni](https://aistudio.google.com/docs/omni) |
13
+ | Veo 3.1 | Still frames only: a first frame, or first and last frames | 4, 6 or 8 s, 24 fps | Up to 3 images of one subject | Negative prompt and seed | Generated | [Reference](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo-video-generation), [prompting](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/video/video-gen-prompt-guide) |
14
+ | Luma Ray 3.2 | Video to edit, up to 18 s, at one of nine strengths from adhere to reimagine | 5 or 10 s generated, 24 fps | Start or end frame | Up to 6,000 characters, no negative field | None | [Editing](https://docs.agents.lumalabs.ai/guides/videos/editing) |
15
+ | LTX-2.5, open weights | The RGB hint through the Layout-To-Render adapter, or one depth, edge or pose pass through Union Control | Frame count 8n+1, 24 fps, sides divisible by 32 | A first frame carries the look | One or two sentences for Layout-To-Render | Generated | [Layout-To-Render](https://docs.ltx.io/open-source-model/vfx-post-production/layout-to-render.md), [IC-LoRA](https://docs.ltx.io/open-source-model/usage-guides/ic-lo-ra.md), [prompting](https://docs.ltx.io/api-documentation/implementation-guides/prompting-guide.md) |
16
+ | Wan VACE and Wan Fun Control, open weights | Depth, pose, edge, scribble, layout or mask passes, combinable | 81 frames at 16 fps, frame count 4n+1, sides divisible by 16 | Reference images | Up to 512 text-encoder tokens | None | [VACE](https://github.com/ali-vilab/VACE), [Wan2.2](https://github.com/Wan-Video/Wan2.2) |
17
+
18
+ ## Match how the model takes the hint
19
+
20
+ How closely a model keeps the hint follows from how it takes it:
21
+
22
+ | Model kind | What it keeps of the hint |
23
+ | --- | --- |
24
+ | Open weights with control channels | The hint's own pose, depth or layout channels, exactly |
25
+ | Hosted, edits or restyles a video | Motion and camera, most directly among hosted models |
26
+ | Hosted, reads a reference video | Motion and camera as guidance; it may move figures |
27
+ | Hosted, takes still frames | Only the first and last frames |
28
+
29
+ Hosted models take the hint as RGB video at most and derive any structure from it themselves. Choose an open model with control channels when exact positions, contacts and camera outweigh its setup cost.
30
+
31
+ Render the hint at the model's frame rate, frame grid and size, because a model snaps other lengths to its grid and drops or shortens frames.
32
+
33
+ Read each model's terms before adopting it: territory limits, rejected reference content such as real faces, revenue thresholds and labeling duties for open weights, and price per second.
@@ -0,0 +1,27 @@
1
+ # Generation
2
+
3
+ Takes are generated after the [video skill](SKILL.md) has chosen the model, planned the requests and written the prompts. Read the provider and setup authority in [project context](../production/project-context.md) and use the selected service's existing connector, CLI or API.
4
+
5
+ ## Prove one path first
6
+
7
+ Before a batch, prove one representative request end to end on a case with the intended performance, contacts and identity continuity: the input, the generation, the download, and stills extracted from the downloaded file. Fix input or integration causes before multiplying them.
8
+
9
+ ## Submit
10
+
11
+ Bind each request to its exact input bytes and source revision and record it under [media records](../production/media-records.md#records). Check the existing job state before retrying, since a retry can bill another job, and keep to the adopted cost and quality limits. A transient URL, seed or finished job is not a take: keep the downloaded original apart from its derivatives.
12
+
13
+ ## Inspect and choose
14
+
15
+ Extract stills from the take's file at the spacing [capture](../visual-debugging/capture.md#times) sets and check identity, positions, contacts, camera and motion against the hint's stills at matched times under [comparison](../visual-debugging/comparison.md). The user judges its sound and its continuous motion.
16
+
17
+ Choose among takes for fidelity to the screenplay beat and the hint, never for an effect the screenplay did not decide. A take that loses action, identity or causality is repaired at the source, the request or the selection, never hidden by a cut.
18
+
19
+ ## Place takes in time
20
+
21
+ Map a take's decoded timestamps and time base into the film; a nominal frame rate cannot place an action, especially at variable rates. Trimming, retiming and rebasing are different operations, and a shortest-stream option or silent padding must not hide lost material. [FFmpeg's filters](https://ffmpeg.org/ffmpeg-filters.html) document them.
22
+
23
+ A new take, trim or speed change requires rechecking its timing against its neighbors.
24
+
25
+ ## Hand off
26
+
27
+ Measure the accepted takes' actual timing and hand them with their source relationships and limits to [assembly](../production/assembly.md).
@@ -0,0 +1,51 @@
1
+ # Video prompts
2
+
3
+ A video prompt tells a model what the motion hint cannot show: who each figure is, what the place and light look like, and what the shot sounds like. The hint, its control channels and the references already fix positions, timing and camera, so prose that restates or contradicts them competes with the stronger input.
4
+
5
+ Follow the selected model's own prompting guide, linked in [diffusion models](diffusion.md); the rules here are what those guides share.
6
+
7
+ ## Content
8
+
9
+ ### Plain prose
10
+
11
+ Describe the finished shot in plain prose, in this order: camera and framing, each figure, the single action, the setting, light and palette, style, then sound. Natural sentences steer better than keyword lists, and pasted tag-style prompts from another model lose meaning.
12
+
13
+ ### One move, one action
14
+
15
+ Give each shot one camera move and one subject action, written as countable beats ("takes three steps and stops at the rail"). Several moves or actions in one request blur, morph or drop. Split the shot instead, or use the model's own timestamp or multi-shot syntax when it has one.
16
+
17
+ ### One description per subject
18
+
19
+ Name each figure as the person or thing it becomes, by its reference token or element name when the model binds references ("the woman from Image 1, in a navy wool coat"). Reuse the identical description, palette words and light logic in every shot of the same subject, because a reworded description is a different character to the model.
20
+
21
+ ### What to show
22
+
23
+ Describe what to show, not what to avoid, because a negated word still primes its concept. Where the model has a negative field, list plain nouns there ("mannequin, clay, plastic, untextured render") without "no" or "don't".
24
+
25
+ ### Settings stay out of prose
26
+
27
+ Keep duration, size, frame rate and seed in the request's settings. Prose such as "make it longer" changes nothing.
28
+
29
+ ## Polygon men and controls
30
+
31
+ The hint's figures are gray and coarse. Strength is the setting for how far a model may depart from its input video: at low strength a model keeps their look and returns mannequins, robots or clay; at high strength it frees the look but loses the motion. Choose the input so motion and appearance arrive through different channels.
32
+
33
+ ### Structural control
34
+
35
+ With a pose, depth, edge or layout control, describe appearance, material, light and style only. The control carries the motion, and words about motion or structure fight it.
36
+
37
+ ### Raw hint video
38
+
39
+ State the video's role in one sentence ("the input video supplies only camera, positions, timing and occlusion") and map each polygon man to its reference. Never describe the gray look positively: words such as "3D", "render", "clay", "gray" or "model" in the positive prompt pull the result toward the polygon man.
40
+
41
+ ### First frame or keyframe
42
+
43
+ When the model accepts one, give appearance there: an image made from the hint's own first frame under [image](../image/SKILL.md), so the generated shot starts in the hint's pose and camera.
44
+
45
+ ## Sound
46
+
47
+ Write the shot's sound, decided under [audio](../audio/SKILL.md), in the model's syntax: usually each line in quotes after a named speaker whose name matches the visual description, then separate effect and ambience lines. When the model makes no sound, leave sound out of the prompt; audio owns that case.
48
+
49
+ ## Check before submitting
50
+
51
+ Compare the prompt with the hint's start, middle and end frames: every visible figure is named once, no sentence contradicts the hint's positions, order or camera, and the prompt stays within the model's length limit. Regenerate with a stronger control or a shorter shot rather than a longer prompt when motion or camera drifts.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: visual-debugging
3
+ description: Owns how a production's pictures are judged and corrected, whatever made them, namely the instrument, planned captures of matched stills, passes, comparisons and correction rounds. Use before judging an entity, a catalog case, a segment, a control channel, a generated image or take or a delivery on screen, before claiming a visual change works, and when the Viewer or frame capture is broken or lacks a view the judgment needs.
4
+ ---
5
+
6
+ # Visual debugging
7
+
8
+ Readiness or numerical success proves no appearance; only an observed picture does. You read every picture as stills, as [what you can observe](../../../AGENTS.md#what-you-can-observe) states, so each judgment starts from a planned capture.
9
+
10
+ This skill owns how a picture is captured, compared and corrected, whatever made it. The skill of each subject owns what to look for in it, and the README owns the instrument, the Viewer and the frame capture, with their commands and options.
11
+
12
+ | Task | Read |
13
+ | --- | --- |
14
+ | Restore the instrument, or plan a capture's subject, views, times and stills | [Capture](capture.md) |
15
+ | Choose what each still draws, and mark what a measurement found | [Passes](passes.md) |
16
+ | Set two captures against each other | [Comparison](comparison.md) |
17
+ | Correct what a capture shows | [Correction rounds](correction-rounds.md) |
18
+ | Measure what drawing costs | [Rendering cost](rendering-cost.md) |
19
+
20
+ | Subject | Read also |
21
+ | --- | --- |
22
+ | An entity's form | [Inspecting a form](../3d-modeling/inspection.md), at the uses [entity work](../development/entities.md#inspect-and-hand-off) sets |
23
+ | One module alone | [Catalog cases](../motion/catalog-cases.md) |
24
+ | A segment of the film | [Segment review](../motion/segment-review.md) |
25
+ | A control channel | [Control channels](../motion/control-channels.md) |
26
+ | A generated image | [Image](../image/SKILL.md) |
27
+ | A generated take | [Generation](../video/generation.md) |
28
+ | A delivery | [Delivery review](../review/delivery-review.md) |
29
+
30
+ When the instrument lacks a view, pass or selection the judgment needs, follow [installed packages](../development/reuse.md#installed-packages) rather than judging without it.
@@ -0,0 +1,96 @@
1
+ # AGENTS.md
2
+
3
+ This repository holds AutoMovie productions. A production primarily turns an LLM-authored screenplay into a deterministic whole motion hint, the coarse film whose staging and motion guide video diffusion. A screenplay, a standalone asset, a direct 3D film or a generated film can also be commissioned on its own.
4
+
5
+ The [production skill](.agents/skills/production/SKILL.md) routes the commissioned output and its working files.
6
+
7
+ A production is built with the installed AutoMovie packages. [Installed packages](.agents/skills/development/reuse.md#installed-packages) says what each one is for and where its API is written.
8
+
9
+ ## Layout
10
+
11
+ A production is the directory holding its `PROJECT.md`: this repository root for a single production, or each `movies/shorts/<name>` and `movies/series/<name>` of an AutoMovie workspace. Every project path a skill names, such as `PROJECT.md`, `README.md`, `src`, `test`, `docs`, `references`, `media`, `package.json` and its configurations, is that production's. Its `README.md` lists its commands, which run in its directory.
12
+
13
+ The skills and bundled contracts under `.agents/skills` serve every production; a production's own work and language contracts live in its `docs/contracts`.
14
+
15
+ In a workspace the production's folder fixes its [story route](.agents/skills/story/workflow.md#route-and-parents). `packages/<name>` holds the workspace's [shared modules](.agents/skills/development/source-layout.md#shared-modules). The workspace README lists its commands, including the one that adds a production.
16
+
17
+ ## Attitude
18
+
19
+ - Do the literal request, widening it only when the user hands that over.
20
+ - The user's instruction outranks any skill.
21
+ - Answer a question from the user before continuing any work.
22
+ - Write everything the user sees in the user's language.
23
+ - Finish each inspection round, then repair all its findings together by cause, with their owners and affected consumers.
24
+ - Do not copy a package's API into instructions.
25
+ - Keep external generation outside deterministic playback, and retain the actual media used.
26
+ - Save each expensive stage's result and resume from it under [stage caches](.agents/skills/production/stage-caches.md).
27
+
28
+ ### Principles
29
+
30
+ | Principle | Owner |
31
+ | --- | --- |
32
+ | Models stay coarse and motion is authored in detail | [Entity work](.agents/skills/development/entities.md#coarse-first) |
33
+ | The screenplay decides every exchange, outcome and reaction, and code never chooses one | [Screenplay layer](.agents/skills/story/layers/screenplay.md) |
34
+ | A film only composes accepted modules | [Composition contract](.agents/skills/contracts/development/composition.md#composition-only), [catalog cases](.agents/skills/motion/catalog-cases.md) |
35
+ | Search the installed packages before writing, and vary a module instead of copying it | [Reuse](.agents/skills/development/reuse.md) |
36
+ | Divide programming by responsibility and test each module | [Development](.agents/skills/development/SKILL.md) |
37
+
38
+ ### What you can observe
39
+
40
+ You see pictures only as still images and cannot hear. Judge motion from stills dense enough to show it, on consecutive frames at every contact and cut, as [visual debugging](.agents/skills/visual-debugging/capture.md#times) samples them. Ask the user to watch playback where continuous motion is the claim, and to listen to any sound.
41
+
42
+ Keep the Viewer and the frame capture working, and restore a broken one before other work, because every judgment of the film passes through them.
43
+
44
+ ### Before reporting
45
+
46
+ Review your own screenplay, code, modules and film unprompted, as a demanding viewer of the depicted practice. Fix what falls short at its cause, then report what you verified, not what you built.
47
+
48
+ ## Finishing work
49
+
50
+ A message without a tool call ends the turn. While work remains, do not end it with:
51
+
52
+ - a summary that announces the next step;
53
+ - an offer to continue;
54
+ - a list of decisions that do not block the work;
55
+ - a report because a stage finished;
56
+ - a wait on background work.
57
+
58
+ Put status notes in the same message as the next tool call. Stop only when nothing can move without the user or a destructive or outward-facing action needs confirmation.
59
+
60
+ ## Skills
61
+
62
+ Read the production's `PROJECT.md` for the adopted scope, then enter the requested task directly.
63
+
64
+ ### Creation
65
+
66
+ | Skill | Use for |
67
+ | --- | --- |
68
+ | [production](.agents/skills/production/SKILL.md) | Starting, resuming, restructuring or handing off a production: project context, sustained runs, stage caches, media records, instruction sync and final assembly |
69
+ | [story](.agents/skills/story/SKILL.md) | Research, and planning, writing, continuing or revising a brief, settings, treatments, scripts, final screenplay, expression pass, narrative evidence or cause-based repair |
70
+ | [3d-modeling](.agents/skills/3d-modeling/SKILL.md) | A subject's form: the coarse form of a few primitives by default, and a detailed representation, geometry, rig or authored control when [entity work](.agents/skills/development/entities.md#detail) says a commission needs one |
71
+ | [motion](.agents/skills/motion/SKILL.md) | Programmed performance by end-effector goals, catalog cases, staging, camera, physical responses, frame evaluation, the motion hint's control channels and motion verification |
72
+ | [image](.agents/skills/image/SKILL.md) | Canon reference images, shot frames, style frames or turnaround views |
73
+ | [video](.agents/skills/video/SKILL.md) | Choosing the video model, planning requests, writing video prompts, and generating and adopting takes |
74
+ | [audio](.agents/skills/audio/SKILL.md) | A shot's sound for the video model's prompt, a voice preview, or a commissioned soundtrack the user accepts by ear |
75
+
76
+ ### Implementation and evidence
77
+
78
+ | Skill | Use for |
79
+ | --- | --- |
80
+ | [development](.agents/skills/development/SKILL.md) | Production implementation, integrations and behavioral tests |
81
+ | [evidence](.agents/skills/evidence/SKILL.md) | Adopting requirements, configuring the evidence graph and answering source and test contracts |
82
+ | [contracts](.agents/skills/contracts/SKILL.md) | The checklists each respondent answers; read before selecting, answering or citing an item |
83
+
84
+ ### Writing
85
+
86
+ | Skill | Use for |
87
+ | --- | --- |
88
+ | [documentation](.agents/skills/documentation/SKILL.md) | A README, technical document, evidence prose or doc comment; creative bodies follow story |
89
+ | [prompting](.agents/skills/prompting/SKILL.md) | Changing `AGENTS.md`, `CLAUDE.md` or a skill |
90
+
91
+ ### Assessment
92
+
93
+ | Skill | Use for |
94
+ | --- | --- |
95
+ | [visual-debugging](.agents/skills/visual-debugging/SKILL.md) | Judging any picture on stills: planning a capture, choosing passes, comparing captures, running correction rounds, and restoring the Viewer or frame capture |
96
+ | [review](.agents/skills/review/SKILL.md) | Source and narrative review, delivery acceptance, or a requested read-only experience estimation |
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1,3 @@
1
+ # Project
2
+
3
+ No project purpose or deliverable has been adopted yet. Record the overview, commissioned scope, current choices, constraints and unresolved delegation through [project context]({{skills}}/production/project-context.md). Creative writing instructions belong under `docs/instructions`.
@@ -0,0 +1,146 @@
1
+ # {{name}}
2
+
3
+ Use an LLM to author a complete movie screenplay, then program the main scenes' motion, staging and camera and assemble the whole video as a reproducible motion hint. Every person is a polygon man, drawn from the body the installed Human package prepares, and every other subject is the simplest form that identifies it, as [entity work]({{skills}}/development/entities.md#coarse-first) sets; the accuracy goes to motion. Stills and pilot clips alone do not complete a motion hint.
4
+
5
+ ## First run
6
+
7
+ Use Node.js 22.23.2 or later. A production inside an AutoMovie workspace installs once with `pnpm install` at the workspace root instead of the `npm install` line, then runs the same scripts here.
8
+
9
+ ```bash
10
+ npm install --package-lock=false
11
+ npm run lint
12
+ npm run evidence
13
+ npm test
14
+ ```
15
+
16
+ The project includes instructions, contracts and a working empty Viewer with exact-time video export. Start with [production]({{skills}}/production/SKILL.md) for the requested output and [story]({{skills}}/story/SKILL.md) for creative work. Default lint and evidence check ordinary TypeScript source and tests; [evidence configuration]({{skills}}/evidence/configuration.md) adds narrative scope and stages to that same configuration. The empty scene and checks do not complete a production.
17
+
18
+ ## Viewer and export
19
+
20
+ Run `npm run dev`, then open [the Viewer](http://127.0.0.1:5173/). Play, pause and seek use the same deterministic performance as export. Each delivered video is one film in `src/composition/films/`, registered in `src/composition/films/index.ts` under its screenplay file's name, with its running time, frame rate and optional `width` × `height` delivery raster (1280 × 720 by default; 720 × 1280 for a vertical short); `?film=<name>` selects one, and may be omitted while only one exists. URL parameters `start`, `end`, `rate` and `play=1` select interval playback, for example [0–15 seconds at half speed](http://127.0.0.1:5173/?film=starter&start=0&end=15&rate=0.5&play=1). The starter film `src/composition/films/starter.ts` holds an empty scene; each film composes its scenes and sets its own running time.
21
+
22
+ Keep the server running, set `CHROME_PATH` to an installed Chrome or Chromium executable, then run `npm run render -- --film <name>`, omitting `--film` while only one film exists. `src/executable/render.ts` sets the selected film's capture URL, raster, frame rate, duration and destinations. FFmpeg is supplied by `ffmpeg-static`; `FFMPEG_PATH` selects another executable. `VIEWER_URL` selects another running host. Capture mode uses `?capture=1&w=1280&h=720&film=<name>` and the completed `__afSeek(seconds)` hook.
23
+
24
+ The public Render runner writes `media/automovie/<film>/videos/film.mp4` and the command retains `capture-report.json` beside it, so each film's renders stay apart. Export requires a whole number of frames and captures actual Viewer pixels at `i / fps`, followed by one picture-only encode. Its hashes and timings describe capture; judge the film on stills of the encoded file under [delivery review]({{skills}}/review/delivery-review.md), and ask the user to watch its playback before accepting it.
25
+
26
+ ## Node frame capture
27
+
28
+ `npm run capture -- --film <name>` draws film frames directly in Node, with no Viewer server, browser or GPU: it mounts the film through its own `create()` and `seek()` and rasterizes each second on the CPU through the installed Viewer's Node rasterizer. It is the one route to stills of the source: by default it samples the ten-second window from `--from <s>` (0) at 5 frames per second on the film's frame grid and writes 50 frames `t<seconds>.png` with the second stamped in the corner, one 50-cell contact sheet `sheet-<from>-<to>.png` with a JSON cell index, and `manifest.json` into `media/automovie/<film>/frames/capture/<from>-<to>/`, the same path on every run. The script runs through `ttsx --no-plugins --noCheck`, so no type check or compiler plugin delays the drawing; the [compile checker]({{skills}}/development/SKILL.md) reports compile errors.
29
+
30
+ | Option | Effect |
31
+ | --- | --- |
32
+ | `--from <s>`, `--to <s>` | Half-open window, ten seconds from `--from` by default |
33
+ | `--rate <n>` | Stills per second, 5 by default and at most 10 |
34
+ | `--events <s,…>` | Adds 10 per second within half a second of each second, such as a contact |
35
+ | `--every <frames>`, `--at <s,…>` | The film's frame grid, or exact seconds, instead of the rate |
36
+ | `--view <name>` | One of the film's named `IFilmProduction.views`, such as side-on, behind a subject or high 45°, into a folder suffixed with that name |
37
+ | `--view x,y,z:tx,ty,tz` | A static inspection camera in world metres |
38
+ | `--width`, `--height`, `--supersample <1-4>` | Raster override and antialiasing |
39
+ | `--per-sheet`, `--columns`, `--no-label`, `--no-sheet` | Sheet layout, or no stamp or sheet |
40
+ | `--out <dir>`, `--list` | Another directory, or print the films |
41
+ | `--module <file.ts>[,<file.ts>…]` [`--export <name>`] | Unregistered film modules such as motion rehearsals, whole by default, into `media/automovie/modules/<module>/`; several share one run |
42
+ | `--video` | Every frame of the film's grid in the window (whole film by default), encoded with the installed FFmpeg into `media/automovie/<film>/videos/capture.mp4` as a quick review copy before the Viewer render |
43
+
44
+ A catalog case is one window of the catalog film, and a review segment one ten-second window of a delivered film:
45
+
46
+ ```bash
47
+ npm run capture -- --film catalog --from 12 --to 14 --events 13.1 --view side
48
+ npm run capture -- --film <name> --from 60
49
+ ```
50
+
51
+ The frames are flat-shaded diagnostics of pose, contact, staging and framing under the scene's lights, without textures, shadows or post-processing; their manifest counts objects that were not drawn. Film code must therefore run in plain Node: no DOM, no URL-loaded textures and no `import.meta.env`, with any development-server request falling back when absent. Delivered pixels still come from the Viewer through `npm run render`.
52
+
53
+ ## Stills from an encoded file
54
+
55
+ The Node capture draws the source, so it cannot show what an encoded or generated file holds. Extract stills from such a file with the FFmpeg this project already uses, the `ffmpeg-static` executable or the one `FFMPEG_PATH` names, written as `ffmpeg` below; `node -p "require('ffmpeg-static')"` prints the path of the first. The first line writes one still at a second under review, and the second samples a run of them at a fixed rate.
56
+
57
+ ```bash
58
+ ffmpeg -ss <seconds> -i <file> -frames:v 1 <still>.png
59
+ ffmpeg -i <file> -vf fps=<rate> <folder>/t%04d.png
60
+ ```
61
+
62
+ No npm script wraps this. Keep the stills under `media/automovie/<film>/frames/`.
63
+
64
+ ## Physical performance review
65
+
66
+ [Physical feedback]({{skills}}/motion/physical-feedback.md) chooses each scene's physical mode; the installed Engine's README and public declarations own its profiles, simulation, checkpoints, archives and audits. Supply `IFilmProduction.performance` from the displayed state to enable the shared inspection overlays; the starter's empty scene supplies none.
67
+
68
+ Run `npm run review:setup` once to install Playwright's recording FFmpeg, and set `CHROME_PATH` to an installed Chrome or Chromium executable. `npm run review -- playback <viewer-url> <observation-seconds>` records actual Play-button playback as a video with its displayed clock and browser errors into `media/automovie/<film>/videos/review/`, unless a final directory argument names another, for the user to watch.
69
+
70
+ In the Viewer, URL parameters `rig=1` and `contacts=1` show the review skeleton and contact force vectors, and `view` an inspection camera: a named view or `x,y,z:tx,ty,tz` in world metres, as for capture. Omit them for delivered captures. Judge a correction at the same source revision, film seconds and camera.
71
+
72
+ `npm run physics -- <input-module.ts> <output.amphys> [maximum-bytes]` computes a simulated performance once from a Node module exporting `createPhysicalInput()` and writes the archive with its JSON manifest, limited to 256 MiB by default. Keep the archive as a [stage cache]({{skills}}/production/stage-caches.md) under `.cache/` and regenerate it after changing physical inputs; playback, seeking and capture read it through the installed Engine's physical playback, which checks it against the current input's identity.
73
+
74
+ ## Make a motion hint
75
+
76
+ 1. Adopt the request, output boundary and operating choices in [PROJECT.md](PROJECT.md) through [project context]({{skills}}/production/project-context.md).
77
+
78
+ Include the intended execution/capture path. Make routine choices within the user's delegation and keep creative requirements with their owners.
79
+
80
+ 2. Study every practice and style the film shows through [research]({{skills}}/story/planning/research.md), then write the story with evidence and independent review.
81
+
82
+ Write the [settings]({{skills}}/story/layers/settings.md), or a short's [brief]({{skills}}/story/layers/brief.md), that draw on the study, then the complete [screenplay]({{skills}}/story/SKILL.md) along its [writing route]({{skills}}/story/workflow.md#route-and-parents).
83
+
84
+ 3. Build the coarse entities under [entity work]({{skills}}/development/entities.md) and accept every module in its [catalog cases]({{skills}}/motion/catalog-cases.md).
85
+
86
+ Compose people's actions from the installed motion vocabulary, and write laws, interactions and consequences, with their tests, only for what it lacks.
87
+
88
+ 4. Compose every required main scene from the accepted modules under [motion]({{skills}}/motion/SKILL.md) and [staging for the camera]({{skills}}/motion/staging.md).
89
+
90
+ Put the scenes in the folders [source layout]({{skills}}/development/source-layout.md) gives. [Audio]({{skills}}/audio/SKILL.md) describes each shot's sound for the video-diffusion prompt.
91
+
92
+ 5. Prepare the [motion hint and its control channels]({{skills}}/motion/control-channels.md) from the same actual performance.
93
+
94
+ Keep the frame/camera mapping aligned for time-matched channels. Use the supplied Viewer/export host or document the production's adopted replacement here.
95
+
96
+ 6. Assemble and encode the complete work through [assembly]({{skills}}/production/assembly.md), then inspect the actual output through [delivery review]({{skills}}/review/delivery-review.md).
97
+
98
+ Hand off the fixed inputs, source, commands, observed result and remaining limits.
99
+
100
+ A separately commissioned screenplay ends with its text duties; a standalone asset needs no invented narrative. A whole motion hint needs no finished diffusion film. A requested direct 3D film finishes through its actual renderer, with sound only as [audio]({{skills}}/audio/SKILL.md) sets; [generated video]({{skills}}/video/generation.md) uses the model, requests and prompts [video]({{skills}}/video/SKILL.md) sets and accepted fixed takes before the final edit. Their delivery boundaries stay explicit in PROJECT.md.
101
+
102
+ ## Commands
103
+
104
+ | Command | Purpose |
105
+ | --- | --- |
106
+ | `npx ttsc --watch`, run in `test/` | The single compile checker kept running while you edit; read compile errors from its output |
107
+ | `npm run lint` | TypeScript and source correctness |
108
+ | `npm run evidence` | Source/test checklists and the selected path's active evidence obligations |
109
+ | `npm test` | Run exported `test_*` functions under `test/features` through `tsconfig.test.json`; an empty selection fails |
110
+ | `npm run format` | Source formatting |
111
+ | `npm run dev` | Actual production Viewer on `127.0.0.1:5173` |
112
+ | `npm run build` | Bundle the production Viewer |
113
+ | `npm run physics -- <input-module.ts> <output.amphys> [maximum-bytes]` | Precompute an adopted physical performance outside the browser |
114
+ | `npm run render -- --film <name>` | Export one film of the running Viewer as a picture-only video |
115
+ | `npm run capture -- --film <name> --from <s>` | Stills and one 50-cell sheet of a ten-second window, drawn in Node at 5 per second |
116
+
117
+ The project uses ES modules with `verbatimModuleSyntax` and `isolatedModules`: mark type-only imports and exports with `type`, and keep each file transformable on its own.
118
+
119
+ `test/index.ts` discovers pure logic unit tests in `test/features/<source path>/test_<name>.ts` through `tsconfig.test.json`. Export a named `test_<name>(): void` or `Promise<void>` function and assert behavior with `node:assert/strict` or `TestValidator` from `@nestia/e2e`. Use `npm test -- --include <substring> --exclude <substring>` to select test filenames; repeated options accumulate. Tests call portable logic directly; actual Viewer and media inspection run separately.
120
+
121
+ ## Project files
122
+
123
+ | Path, when used | Holds |
124
+ | --- | --- |
125
+ | `.agents/skills`, at this project's root or its workspace root | The task entry points `AGENTS.md` lists, their resources and the contracts |
126
+ | `PROJECT.md` | The project overview, commissioned scope, current choices, constraints and setup authority |
127
+ | `docs/instructions` | Creative writing requirements |
128
+ | Other `docs` locations | Research studies, bodies, working editions, evidence, reviews and acceptance records when needed |
129
+ | `references/` | The retained research originals |
130
+ | `src` | Entities, laws, interactions, consequences, scene and film composition, host entries and commands |
131
+ | `src/integrations` | Optional provider or local-tool code |
132
+ | `test` | Tests and their runner |
133
+ | `index.html`, `vite.config.ts` | The Viewer host page and its Vite configuration |
134
+ | `public` | Small fixed browser inputs; audio and video belong in `media/` |
135
+ | Runtime README instructions and `.env.example` | Nonsecret setup and variable names; actual secrets stay in ignored local `.env` |
136
+ | `evidence.config.ts` | The duties selected through installed `@automovie/evidence`, which `npm run evidence` evaluates as the selected native graph |
137
+ | `lint.config.ts` | Generic source lint |
138
+ | `tsconfig.json` | Compiler settings |
139
+ | `tsconfig.test.json` | The scope of pure TypeScript unit tests |
140
+ | `package.json` | Dependencies and commands |
141
+
142
+ `AGENTS.md` groups creation, implementation/evidence, writing and assessment; `story` routes to its planning, layers, naturalness, correction and evidence parts.
143
+
144
+ [Document layout]({{skills}}/story/document-layout.md), [source layout]({{skills}}/development/source-layout.md) and [media records]({{skills}}/production/media-records.md) explain the owners of the `docs`, `src` and `media` locations. The dependency direction between source folders is the source layout's rule.
145
+
146
+ Package upgrades leave this project unchanged. `automovie sync <directory> --check`, run on the directory holding `AGENTS.md` (this project or its workspace root), previews generated instruction updates, and omitting `--check` applies a conflict-free plan that preserves contracts, project decisions, README, configuration, authored content and proof. Keep `.automovie/scaffold-state.json` beside that `AGENTS.md`; [sync and reorganization]({{skills}}/production/sync-and-reorganization.md) covers baselines, retired paths and approvals. Installed package READMEs, public types and JSDoc own API behavior.
@@ -0,0 +1,20 @@
1
+ node_modules/
2
+ lib/
3
+ dist/
4
+ /docs/review/
5
+ /docs/revision/
6
+ /docs/naturalness/
7
+ /docs/prompts/**/payloads/
8
+ /references/private/
9
+ /media/automovie/
10
+ /media/*/audios/
11
+ /media/*/videos/
12
+ *.log
13
+ .DS_Store
14
+ .wiki/
15
+ .cache/
16
+ .env
17
+ .env.*
18
+ !.env.example
19
+ __pycache__/
20
+ .venv/
@@ -0,0 +1,12 @@
1
+ import { createEvidenceConfig } from "@automovie/evidence";
2
+ import { resolve } from "node:path";
3
+
4
+ /**
5
+ * The default project checks source and tests without selecting a narrative.
6
+ *
7
+ * `skills` names the shared `.agents/skills` tree whose bundled contracts the answers cite: this project's own, or its workspace root's.
8
+ */
9
+ export default createEvidenceConfig({
10
+ location: import.meta.dirname,
11
+ skills: resolve(import.meta.dirname, "{{skills}}"),
12
+ });
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="data:," />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <title>AutoMovie Viewer</title>
8
+ <style>
9
+ body { margin: 0; background: #111820; color: #eef3fa; font: 14px system-ui; }
10
+ canvas { display: block; }
11
+ #clips { display: flex; align-items: center; gap: 12px; padding: 12px; }
12
+ #seek { width: 40vw; }
13
+ </style>
14
+ </head>
15
+ <body>
16
+ <canvas id="view"></canvas>
17
+ <nav id="clips"><button id="play">Play</button><button id="pause">Pause</button><input id="seek" type="range" min="0" step="0.01" value="0" aria-label="Film time" /><output id="clock"></output></nav>
18
+ <script type="module" src="/src/main.ts"></script>
19
+ </body>
20
+ </html>
@@ -0,0 +1,46 @@
1
+ import type { ITtscLintConfig } from "@ttsc/lint";
2
+
3
+ /** Source correctness and formatting, the same for every folder; the dependency direction between source folders is the source layout's rule, and checklist answers run through `npm run evidence`. */
4
+ export default {
5
+ format: {
6
+ severity: "off",
7
+ semi: true,
8
+ singleQuote: false,
9
+ arrowParens: "always",
10
+ bracketSpacing: true,
11
+ quoteProps: "as-needed",
12
+ trailingComma: "all",
13
+ printWidth: 80,
14
+ tabWidth: 2,
15
+ useTabs: false,
16
+ endOfLine: "lf",
17
+ sortImports: { order: ["<THIRD_PARTY_MODULES>", "^[./]"] },
18
+ jsDoc: true,
19
+ },
20
+ rules: {
21
+ eqeqeq: "error",
22
+ "no-debugger": "error",
23
+ "no-duplicate-imports": "error",
24
+ "no-fallthrough": "error",
25
+ "no-self-compare": "error",
26
+ "no-var": "error",
27
+ "no-restricted-syntax": [
28
+ "error",
29
+ {
30
+ selector:
31
+ "MemberExpression[object.name='Math'][property.name='random']",
32
+ message: "Draw variation from the installed seeded generator.",
33
+ },
34
+ ],
35
+ "prefer-const": "error",
36
+ "typescript/await-thenable": "error",
37
+ "typescript/ban-ts-comment": "error",
38
+ "typescript/no-explicit-any": "error",
39
+ "typescript/no-floating-promises": "error",
40
+ "typescript/no-misused-promises": "error",
41
+ "typescript/no-unnecessary-type-constraint": "error",
42
+ "typescript/prefer-as-const": "error",
43
+ "typescript/require-array-sort-compare": "error",
44
+ "typescript/switch-exhaustiveness-check": "error",
45
+ },
46
+ } satisfies ITtscLintConfig;
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "{{name}}",
3
+ "private": true,
4
+ "type": "module",
5
+ "version": "0.1.0",
6
+ "license": "MIT",
7
+ "description": "An AutoMovie coding-agent production repository.",
8
+ "engines": {
9
+ "node": ">=22.23.2"
10
+ },
11
+ "scripts": {
12
+ "lint": "ttsc --cache-dir node_modules/.cache/ttsc --noEmit -p tsconfig.json",
13
+ "format": "ttsc format --cache-dir node_modules/.cache/ttsc -p tsconfig.json",
14
+ "evidence": "evidence",
15
+ "test": "ttsx --cache-dir node_modules/.cache/ttsc -P tsconfig.test.json test/index.ts",
16
+ "dev": "vite",
17
+ "build": "vite build",
18
+ "render": "ttsx --cache-dir node_modules/.cache/ttsc -P tsconfig.json src/executable/render.ts",
19
+ "capture": "ttsx --no-plugins --noCheck -P tsconfig.json src/executable/capture.ts",
20
+ "review": "ttsx --cache-dir node_modules/.cache/ttsc -P tsconfig.json src/executable/review.ts",
21
+ "review:setup": "playwright install ffmpeg",
22
+ "physics": "ttsx --cache-dir node_modules/.cache/ttsc -P tsconfig.json src/executable/physics.ts"
23
+ },
24
+ "dependencies": {
25
+ "@automovie/engine": "{{version:engine}}",
26
+ "@automovie/human": "{{version:human}}",
27
+ "@automovie/ingest": "{{version:ingest}}",
28
+ "@automovie/interface": "{{version:interface}}",
29
+ "@automovie/motions": "{{version:motions}}",
30
+ "@automovie/recovery": "{{version:recovery}}",
31
+ "@automovie/render": "{{version:render}}",
32
+ "@automovie/viewer": "{{version:viewer}}",
33
+ "three": "{{version:three}}",
34
+ "@gltf-transform/core": "{{version:gltfTransformCore}}",
35
+ "h264-mp4-encoder": "{{version:h264Mp4Encoder}}",
36
+ "mp4box": "{{version:mp4box}}",
37
+ "playwright-core": "{{version:playwrightCore}}",
38
+ "pngjs": "{{version:pngjs}}"
39
+ },
40
+ "devDependencies": {
41
+ "playwright": "{{version:playwright}}",
42
+ "@nestia/e2e": "{{version:nestiaE2e}}",
43
+ "@automovie/evidence": "{{version:evidence}}",
44
+ "@ttsc/lint": "{{version:ttscLint}}",
45
+ "@types/node": "{{version:nodeTypes}}",
46
+ "ttsc": "{{version:ttsc}}",
47
+ "typescript": "{{version:typescript}}",
48
+ "@wrtnlabs/evidence": "{{version:evidenceCli}}",
49
+ "@types/three": "{{version:threeTypes}}",
50
+ "vite": "{{version:vite}}",
51
+ "ffmpeg-static": "{{version:ffmpegStatic}}",
52
+ "@types/pngjs": "{{version:pngjsTypes}}"
53
+ }
54
+ }
@@ -0,0 +1,41 @@
1
+ import type { IFilmProduction } from "./IFilmProduction";
2
+
3
+ /**
4
+ * One deliverable video: its running time and the scene it plays.
5
+ *
6
+ * A production registers one film per screenplay file in
7
+ * `src/composition/films/index.ts`, under that file's name; the Viewer and the
8
+ * render each play one of them.
9
+ *
10
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states what a film is, where films are registered and that each Viewer or render plays one; each member states its unit or lifetime.
11
+ * @evidence contracts/development/design.md#principled-representation A film is the unit the Viewer mounts and the render exports, so it holds exactly the running time both need and an asynchronous factory that prepares a fresh scene per mount, because real films load assets, measure contacts and decode sound before their first frame; seconds are the shared timebase.
12
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Running time, frame rate, an optional delivery raster and the factory, read by the Viewer entry, the render and capture commands and the seek clamp; the scene contents belong to the film's scenes.
13
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts No member names a particular film, shot or scene.
14
+ */
15
+ export interface IFilm {
16
+ /** Running time in seconds; a whole number of frames at `fps`. */
17
+ durationSeconds: number;
18
+
19
+ /** Frames per second of the film's grid, shared by playback, stills and export. */
20
+ fps: number;
21
+
22
+ /** Delivery raster width in pixels, such as 720 for a vertical short; 1280 when absent. */
23
+ width?: number;
24
+
25
+ /** Delivery raster height in pixels, such as 1280 for a vertical short; 720 when absent. */
26
+ height?: number;
27
+
28
+ /**
29
+ * Prepares the film's scene and exact-time performance for one Viewer mount,
30
+ * reporting progress messages while it loads, measures or decodes.
31
+ *
32
+ * @evidence contracts/development/common.md#meaningful-documentation States that each call prepares a fresh scene for one mount and what the progress callback receives.
33
+ * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the film that implements it answers.
34
+ * @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure A signature has no body; the film that implements it answers.
35
+ * @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts A signature has no body; the film that implements it answers.
36
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms A signature has no body; the film that implements it answers.
37
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A signature has no body; the film that implements it answers.
38
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A signature has no body; the film that implements it answers.
39
+ */
40
+ create(progress?: (message: string) => void): Promise<IFilmProduction>;
41
+ }