@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,20 @@
1
+ import { type IScaffoldPublicationOptions } from "./IScaffoldPublicationOptions";
2
+ /**
3
+ * Write a path-to-text map under `location` and return the absolute paths written, sorted by UTF-16 code unit.
4
+ *
5
+ * This is the throwing form of {@link publishFiles}: it applies the same validation and writes, and throws {@link ScaffoldPublicationError} when the receipt is not `completed`. Files written before the failure are left in place. Rendering the map is {@link renderScaffold}'s job.
6
+ *
7
+ * @param location Target directory, resolved against the working directory.
8
+ * @param files UTF-8 text keyed by paths resolved against `location`; absolute keys are admitted when their targets remain below it.
9
+ * @param options `force` admits a populated directory and in-place replacement.
10
+ * @returns Absolute paths of every file written, sorted.
11
+ *
12
+ * @evidence contracts/development/implementation.md#principled-implementation The comparator uses the string relational operators, which compare UTF-16 code units independent of locale, so the returned order is the same on every host; `localeCompare` would vary with the host's ICU data.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function adds only the throw and the sort to `publishFiles`, so validation and writing have one implementation.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Files written before a failure are not deleted, because removal through a pathname could reach a different file; the receipt in the thrown error says what remains.
15
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states the relation to `publishFiles`, the thrown error, that earlier files stay on failure, the sort order, and the meaning of each parameter.
16
+ * @evidence contracts/development/implementation.md#efficient-algorithms Beyond `publishFiles`, the cost is one map and one comparison sort of the written paths, n log n in file count.
17
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This wrapper performs one publication per call; repeating a call repeats its writes as the effects require.
18
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The receipt is released when the function returns unless it travels inside the thrown error; only the path array is returned, and `publishFiles` owns every descriptor.
19
+ */
20
+ export declare const writeFiles: (location: string, files: Record<string, string>, options?: IScaffoldPublicationOptions) => string[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeFiles = void 0;
4
+ const ScaffoldPublicationError_1 = require("./ScaffoldPublicationError");
5
+ const publishFiles_1 = require("./publishFiles");
6
+ /**
7
+ * Write a path-to-text map under `location` and return the absolute paths written, sorted by UTF-16 code unit.
8
+ *
9
+ * This is the throwing form of {@link publishFiles}: it applies the same validation and writes, and throws {@link ScaffoldPublicationError} when the receipt is not `completed`. Files written before the failure are left in place. Rendering the map is {@link renderScaffold}'s job.
10
+ *
11
+ * @param location Target directory, resolved against the working directory.
12
+ * @param files UTF-8 text keyed by paths resolved against `location`; absolute keys are admitted when their targets remain below it.
13
+ * @param options `force` admits a populated directory and in-place replacement.
14
+ * @returns Absolute paths of every file written, sorted.
15
+ *
16
+ * @evidence contracts/development/implementation.md#principled-implementation The comparator uses the string relational operators, which compare UTF-16 code units independent of locale, so the returned order is the same on every host; `localeCompare` would vary with the host's ICU data.
17
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function adds only the throw and the sort to `publishFiles`, so validation and writing have one implementation.
18
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Files written before a failure are not deleted, because removal through a pathname could reach a different file; the receipt in the thrown error says what remains.
19
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states the relation to `publishFiles`, the thrown error, that earlier files stay on failure, the sort order, and the meaning of each parameter.
20
+ * @evidence contracts/development/implementation.md#efficient-algorithms Beyond `publishFiles`, the cost is one map and one comparison sort of the written paths, n log n in file count.
21
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This wrapper performs one publication per call; repeating a call repeats its writes as the effects require.
22
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The receipt is released when the function returns unless it travels inside the thrown error; only the path array is returned, and `publishFiles` owns every descriptor.
23
+ */
24
+ const writeFiles = (location, files, options) => {
25
+ const receipt = (0, publishFiles_1.publishFiles)(location, files, options);
26
+ if (receipt.status !== "completed")
27
+ throw new ScaffoldPublicationError_1.ScaffoldPublicationError(receipt);
28
+ return receipt.completed
29
+ .map(({ entry }) => entry.target)
30
+ .sort((left, right) => left < right ? -1 : left > right ? 1 : 0);
31
+ };
32
+ exports.writeFiles = writeFiles;
33
+ //# sourceMappingURL=writeFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeFiles.js","sourceRoot":"","sources":["../src/writeFiles.ts"],"names":[],"mappings":";;;AAEA,yEAAsE;AACtE,iDAA8C;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,UAAU,GAIP,CACd,QAAgB,EAChB,KAA6B,EAC7B,OAAqC,EAC3B,EAAE;IACZ,MAAM,OAAO,GAAgC,IAAA,2BAAY,EACvD,QAAQ,EACR,KAAK,EACL,OAAO,CACR,CAAC;IACF,IAAI,OAAO,CAAC,MAAM,KAAK,WAAW;QAChC,MAAM,IAAI,mDAAwB,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC,SAAS;SACrB,GAAG,CACF,CAAC,EAAE,KAAK,EAAoD,EAAU,EAAE,CACtE,KAAK,CAAC,MAAM,CACf;SACA,IAAI,CAAC,CAAC,IAAY,EAAE,KAAa,EAAU,EAAE,CAC5C,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACzC,CAAC;AACN,CAAC,CAAC;AAxBW,QAAA,UAAU,GAAV,UAAU,CAwBrB"}
@@ -0,0 +1,35 @@
1
+ import { type IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
2
+ import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
3
+ import { type ScaffoldFilePublicationOutcome } from "./ScaffoldFilePublicationOutcome";
4
+ /**
5
+ * Write one scaffold file into a captured parent directory and report the effect.
6
+ *
7
+ * A missing file is created through {@link publishNativeScaffoldFile}, relative to a handle on `parent`. With `force`, an existing ordinary file that exactly one directory entry names is rewritten in place: the descriptor that truncates it must stay the file the pathname names before the truncation, after the write, and after the final readback. An existing ordinary file that other entries also name, such as a build cache's hard link, is never truncated; {@link replaceSharedScaffoldFile} renames a verified new file over its entry, so the other names keep the old bytes. Without `force`, an existing file meets the exclusive create and is refused as `target-competitor`.
8
+ *
9
+ * An in-place rewrite reports `refused` (`create-failed`) for any failure before truncation and `partial` with the bytes written for any failure after it. A link to the file created between the descriptor's link-count check and the truncation is not seen, and the rewrite then reaches it.
10
+ *
11
+ * @param props.base Captured scaffold root; `parent` must lie inside it.
12
+ * @param props.bytes Exact file content.
13
+ * @param props.force Rewrite an existing file instead of refusing it.
14
+ * @param props.expected Earlier inspected generation, or null requiring absence; an existing replacement stays bound to this generation through truncation.
15
+ * @param props.parent Captured directory that must be `target`'s parent.
16
+ * @param props.target Path of the file.
17
+ * @returns The frozen outcome.
18
+ * @throws Before any write, when `target` is not directly inside `parent`, when `base` or `parent` fails revalidation, or, with `force`, when an existing `target` is a symbolic link or not a regular file.
19
+ *
20
+ * @evidence contracts/development/implementation.md#principled-implementation A new file uses the native exclusive create relative to the parent handle, which cannot follow a link or replace an entry; an existing file is rewritten through `ftruncate` and positioned writes on one descriptor, and every check compares that descriptor's identity, size, and modification time with a fresh pathname capture, leaving the change time out because Windows moves it when this module's own verification opens the file; the link race named in the comment is the unresolved limitation.
21
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This function chooses create versus replacement and checks ownership against base; publishNativeScaffoldFile owns handle-relative creation and overwriteScaffoldFile owns the replacement descriptor sequence.
22
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed rewrite is never cleaned up or retried; it is reported as `refused` or `partial` from whether truncation happened, and a multiply linked file is never rewritten in place, because that would change every other name for it; its entry is replaced instead.
23
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states both paths, the admission for a rewrite, the refusal without `force`, how failures map to outcomes, the remaining race, each parameter, and what throws before any write.
24
+ * @evidence contracts/development/implementation.md#efficient-algorithms A create costs what `publishNativeScaffoldFile` costs; a rewrite is one write pass and one readback pass over the file plus a constant number of stats and pathname opens, linear in its size.
25
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Every call writes one file and re-observes it, which is an effect that must not be shared; directory captures it receives are reused by the caller's cache.
26
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Replacement delegates writer and resident descriptors to overwriteScaffoldFile, while creation delegates handles to publishNativeScaffoldFile; both attempt release on every outcome and preserve close errors without promising release after a failed close. This dispatch retains no handle itself.
27
+ */
28
+ export declare const writeScaffoldFile: (props: {
29
+ base: IScaffoldPhysicalDirectory;
30
+ bytes: Uint8Array;
31
+ force: boolean;
32
+ expected?: IScaffoldFileSnapshot | null;
33
+ parent: IScaffoldPhysicalDirectory;
34
+ target: string;
35
+ }) => ScaffoldFilePublicationOutcome;
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.writeScaffoldFile = void 0;
37
+ const path = __importStar(require("node:path"));
38
+ const assertScaffoldOwnership_1 = require("./assertScaffoldOwnership");
39
+ const captureScaffoldFile_1 = require("./captureScaffoldFile");
40
+ const missingPath_1 = require("./missingPath");
41
+ const overwriteScaffoldFile_1 = require("./overwriteScaffoldFile");
42
+ const publishNativeScaffoldFile_1 = require("./publishNativeScaffoldFile");
43
+ const replaceSharedScaffoldFile_1 = require("./replaceSharedScaffoldFile");
44
+ /**
45
+ * Write one scaffold file into a captured parent directory and report the effect.
46
+ *
47
+ * A missing file is created through {@link publishNativeScaffoldFile}, relative to a handle on `parent`. With `force`, an existing ordinary file that exactly one directory entry names is rewritten in place: the descriptor that truncates it must stay the file the pathname names before the truncation, after the write, and after the final readback. An existing ordinary file that other entries also name, such as a build cache's hard link, is never truncated; {@link replaceSharedScaffoldFile} renames a verified new file over its entry, so the other names keep the old bytes. Without `force`, an existing file meets the exclusive create and is refused as `target-competitor`.
48
+ *
49
+ * An in-place rewrite reports `refused` (`create-failed`) for any failure before truncation and `partial` with the bytes written for any failure after it. A link to the file created between the descriptor's link-count check and the truncation is not seen, and the rewrite then reaches it.
50
+ *
51
+ * @param props.base Captured scaffold root; `parent` must lie inside it.
52
+ * @param props.bytes Exact file content.
53
+ * @param props.force Rewrite an existing file instead of refusing it.
54
+ * @param props.expected Earlier inspected generation, or null requiring absence; an existing replacement stays bound to this generation through truncation.
55
+ * @param props.parent Captured directory that must be `target`'s parent.
56
+ * @param props.target Path of the file.
57
+ * @returns The frozen outcome.
58
+ * @throws Before any write, when `target` is not directly inside `parent`, when `base` or `parent` fails revalidation, or, with `force`, when an existing `target` is a symbolic link or not a regular file.
59
+ *
60
+ * @evidence contracts/development/implementation.md#principled-implementation A new file uses the native exclusive create relative to the parent handle, which cannot follow a link or replace an entry; an existing file is rewritten through `ftruncate` and positioned writes on one descriptor, and every check compares that descriptor's identity, size, and modification time with a fresh pathname capture, leaving the change time out because Windows moves it when this module's own verification opens the file; the link race named in the comment is the unresolved limitation.
61
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This function chooses create versus replacement and checks ownership against base; publishNativeScaffoldFile owns handle-relative creation and overwriteScaffoldFile owns the replacement descriptor sequence.
62
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed rewrite is never cleaned up or retried; it is reported as `refused` or `partial` from whether truncation happened, and a multiply linked file is never rewritten in place, because that would change every other name for it; its entry is replaced instead.
63
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states both paths, the admission for a rewrite, the refusal without `force`, how failures map to outcomes, the remaining race, each parameter, and what throws before any write.
64
+ * @evidence contracts/development/implementation.md#efficient-algorithms A create costs what `publishNativeScaffoldFile` costs; a rewrite is one write pass and one readback pass over the file plus a constant number of stats and pathname opens, linear in its size.
65
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Every call writes one file and re-observes it, which is an effect that must not be shared; directory captures it receives are reused by the caller's cache.
66
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Replacement delegates writer and resident descriptors to overwriteScaffoldFile, while creation delegates handles to publishNativeScaffoldFile; both attempt release on every outcome and preserve close errors without promising release after a failed close. This dispatch retains no handle itself.
67
+ */
68
+ const writeScaffoldFile = (props) => {
69
+ const target = path.resolve(props.target);
70
+ if (path.dirname(target) !== props.parent.path)
71
+ throw new Error(`scaffold file changed declared parent: ${target}`);
72
+ (0, assertScaffoldOwnership_1.assertScaffoldOwnership)(props.base, props.parent);
73
+ if (props.force || props.expected !== undefined) {
74
+ let existing;
75
+ try {
76
+ existing = (0, captureScaffoldFile_1.captureScaffoldFile)(target);
77
+ }
78
+ catch (error) {
79
+ if ((0, missingPath_1.missingPath)(error) === false)
80
+ throw error;
81
+ existing = null;
82
+ }
83
+ if (props.expected !== undefined &&
84
+ (props.expected === null
85
+ ? existing !== null
86
+ : existing === null ||
87
+ props.expected.path !== target ||
88
+ props.expected.identity !== existing.identity ||
89
+ props.expected.written !== existing.written))
90
+ throw new Error(`scaffold file changed since inspection: ${target}`);
91
+ if (existing !== null && props.force)
92
+ return (existing.shared ? replaceSharedScaffoldFile_1.replaceSharedScaffoldFile : overwriteScaffoldFile_1.overwriteScaffoldFile)({
93
+ base: props.base,
94
+ bytes: props.bytes,
95
+ existing: props.expected ?? existing,
96
+ parent: props.parent,
97
+ });
98
+ }
99
+ return (0, publishNativeScaffoldFile_1.publishNativeScaffoldFile)({
100
+ bytes: props.bytes,
101
+ childName: path.basename(target),
102
+ expectedParentIdentity: props.parent.identity,
103
+ parentPath: props.parent.path,
104
+ });
105
+ };
106
+ exports.writeScaffoldFile = writeScaffoldFile;
107
+ //# sourceMappingURL=writeScaffoldFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeScaffoldFile.js","sourceRoot":"","sources":["../src/writeScaffoldFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAKlC,uEAAoE;AACpE,+DAA4D;AAC5D,+CAA4C;AAC5C,mEAAgE;AAChE,2EAAwE;AACxE,2EAAwE;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,MAAM,iBAAiB,GAOS,CAAC,KAOvC,EAAkC,EAAE;IACnC,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,IAAI;QAC5C,MAAM,IAAI,KAAK,CAAC,0CAA0C,MAAM,EAAE,CAAC,CAAC;IACtE,IAAA,iDAAuB,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClD,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAChD,IAAI,QAAsC,CAAC;QAC3C,IAAI,CAAC;YACH,QAAQ,GAAG,IAAA,yCAAmB,EAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC,KAAK,KAAK;gBAAE,MAAM,KAAK,CAAC;YAC9C,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;QACD,IACE,KAAK,CAAC,QAAQ,KAAK,SAAS;YAC5B,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI;gBACtB,CAAC,CAAC,QAAQ,KAAK,IAAI;gBACnB,CAAC,CAAC,QAAQ,KAAK,IAAI;oBACjB,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;oBAC9B,KAAK,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;oBAC7C,KAAK,CAAC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO,CAAC;YAEhD,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,EAAE,CAAC,CAAC;QACvE,IAAI,QAAQ,KAAK,IAAI,IAAI,KAAK,CAAC,KAAK;YAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,qDAAyB,CAAC,CAAC,CAAC,6CAAqB,CAAC,CAAC;gBAC3E,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ;gBACpC,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;IACP,CAAC;IACD,OAAO,IAAA,qDAAyB,EAAC;QAC/B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAChC,sBAAsB,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;QAC7C,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC;AAnDW,QAAA,iBAAiB,GAAjB,iBAAiB,CAmD5B"}
@@ -0,0 +1,13 @@
1
+ import * as fs from "node:fs";
2
+ /**
3
+ * Identity, size, and modification time: the part of a stat a writer moves.
4
+ *
5
+ * @evidence contracts/development/implementation.md#principled-implementation Device-and-inode identity, exact byte size and modification-time nanoseconds define the resident written-state key.
6
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One formatter keeps replacement and pathname verification on the same comparison representation.
7
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Change time is intentionally absent because Windows verification opens can move it; full post-close comparison uses physicalVersion instead.
8
+ * @evidence contracts/development/common.md#meaningful-documentation The comment names the three stat components whose change can reveal another writer.
9
+ * @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of bigint string conversions costs their digit count and never reads file contents.
10
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The formatter reuses shared physical identity formatting but does not cache a stat or previous generation.
11
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a fresh key string escapes; the function holds no file handle or retained cache.
12
+ */
13
+ export declare const writtenVersion: (status: fs.BigIntStats) => string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writtenVersion = void 0;
4
+ const scaffoldPhysicalIdentity_1 = require("./scaffoldPhysicalIdentity");
5
+ /**
6
+ * Identity, size, and modification time: the part of a stat a writer moves.
7
+ *
8
+ * @evidence contracts/development/implementation.md#principled-implementation Device-and-inode identity, exact byte size and modification-time nanoseconds define the resident written-state key.
9
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One formatter keeps replacement and pathname verification on the same comparison representation.
10
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Change time is intentionally absent because Windows verification opens can move it; full post-close comparison uses physicalVersion instead.
11
+ * @evidence contracts/development/common.md#meaningful-documentation The comment names the three stat components whose change can reveal another writer.
12
+ * @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of bigint string conversions costs their digit count and never reads file contents.
13
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The formatter reuses shared physical identity formatting but does not cache a stat or previous generation.
14
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a fresh key string escapes; the function holds no file handle or retained cache.
15
+ */
16
+ const writtenVersion = (status) => `${(0, scaffoldPhysicalIdentity_1.scaffoldPhysicalIdentity)(status)}:${status.size}:${status.mtimeNs}`;
17
+ exports.writtenVersion = writtenVersion;
18
+ //# sourceMappingURL=writtenVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writtenVersion.js","sourceRoot":"","sources":["../src/writtenVersion.ts"],"names":[],"mappings":";;;AAEA,yEAAsE;AAEtE;;;;;;;;;;GAUG;AACI,MAAM,cAAc,GAAuC,CAChE,MAAsB,EACd,EAAE,CACV,GAAG,IAAA,mDAAwB,EAAC,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;AAH5D,QAAA,cAAc,GAAd,cAAc,CAG8C"}
package/package.json CHANGED
@@ -1,6 +1,62 @@
1
1
  {
2
2
  "name": "@automovie/template",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.0",
4
+ "description": "The self-contained scaffold every AutoMovie production is created from and the library that materializes it.",
5
+ "main": "lib/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./lib/index.d.ts",
9
+ "default": "./lib/index.js"
10
+ },
11
+ "./package.json": "./package.json"
12
+ },
13
+ "keywords": [
14
+ "automovie",
15
+ "scaffold",
16
+ "template"
17
+ ],
18
+ "author": "Samchon",
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/samchon/automovie"
23
+ },
24
+ "files": [
25
+ "build",
26
+ "lib",
27
+ "README.md",
28
+ "scaffold",
29
+ "scaffold/production/_gitignore",
30
+ "scaffold/workspace/_gitignore",
31
+ "src",
32
+ "package.json",
33
+ "LICENSE",
34
+ "!**/node_modules/**",
35
+ "!**/.cache/**",
36
+ "!**/.git/**"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "dependencies": {
42
+ "koffi": "^3.2.1",
43
+ "yaml": "^2.9.0"
44
+ },
45
+ "devDependencies": {
46
+ "@ttsc/evidence": "^0.36.3",
47
+ "@ttsc/lint": "^0.36.3",
48
+ "@types/node": "^22.19.17",
49
+ "rimraf": "^6.0.1",
50
+ "ttsc": "^0.36.3",
51
+ "typescript": "^7.0.2",
52
+ "@wrtnlabs/evidence": "^0.8.2",
53
+ "@automovie/evidence": "^0.0.0"
54
+ },
55
+ "scripts": {
56
+ "build:versions": "ttsx --no-plugins build/resolveTemplateVersions.ts",
57
+ "build:instructions": "ttsx --no-plugins build/syncScaffoldInstructions.ts",
58
+ "build": "pnpm run build:versions && rimraf lib && pnpm run build:instructions && ttsc",
59
+ "evidence": "evidence"
60
+ },
61
+ "types": "lib/index.d.ts"
6
62
  }
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: 3d-modeling
3
+ description: Defines the form each subject of a production takes, namely the polygon man for a person, a coarse form of a few primitives for anything else, and on the user's request a generated, crafted or recovered form with its rig. Use before building or changing a subject's form; judging any picture belongs to the visual-debugging skill and body motion to the motion skill.
4
+ ---
5
+
6
+ # 3D modeling
7
+
8
+ A production's film is a hint for video diffusion, which supplies the look, so each subject takes the least form that serves the hint. Read [project context](../production/project-context.md) first for the representation the production adopted.
9
+
10
+ ## Default form
11
+
12
+ A subject the hint does not need takes no form and stays a description in the generation prompt. A person is the polygon man that [entity work](../development/entities.md#people) prepares. Anything else a scene shows or touches is a [coarse form](coarse-forms.md), a few primitives that are just enough to tell what it is.
13
+
14
+ ## Requested detail {#requested-detail}
15
+
16
+ Go further only when the user asks for it, as a [detail option](../development/entities.md#detail), or when primitives cannot make a form identifiable. The user chooses its source: a diffusion model's output, code that shapes it in detail, or an existing mesh.
17
+
18
+ Build only what the request names and the subject's visible role needs. Finer geometry than that takes the time motion needed, and diffusion repaints it anyway.
19
+
20
+ | Task | Read |
21
+ | --- | --- |
22
+ | Generate the form with a diffusion model | [Diffusion](diffusion.md) |
23
+ | Shape it in code from dimensions and formulas | [Crafting](crafting.md) |
24
+ | Build or fit it from sections and guides | [Lofting](lofting.md) |
25
+ | Find an existing mesh, material, environment map or motion clip | [Sources](sources.md) |
26
+ | Take a found or generated mesh into the production, or vary it by a parameter | [Conditioning](conditioning.md) |
27
+ | Rebuild a fixed mesh as curves or surfaces | [Recovery](recovery.md) |
28
+ | Define parts, groups, placements or shared boundaries | [Modularization](modularization.md) |
29
+ | Add or change a skeleton, skin, attachment or deformation control | [Rigging](rigging.md) |
30
+ | Inspect a form's measures, coverage, construction or light | [Inspecting a form](inspection.md) |
31
+
32
+ Whatever its source, a form is reproducible, rigged when it moves and judged on screen under [visual debugging](../visual-debugging/SKILL.md): a completed generation, fit, compilation or test establishes no visual result. The installed packages' documentation owns data formats and callable behavior.
@@ -0,0 +1,25 @@
1
+ # Coarse forms
2
+
3
+ A coarse form is the few primitives that tell a reader of the hint what a subject is, how big it is and where its parts are. A person takes the polygon man under [entity work](../development/entities.md#people); this page covers every other subject.
4
+
5
+ ## Parts
6
+
7
+ People recognize an object quickly once two or three of its simple volumes and their arrangement can be made out ([Biederman 1987](https://doi.org/10.1037/0033-295X.94.2.115)). Build the two to four volumes that make the subject itself, each where the real one sits: a cylinder with an arc on its side is a mug, and the same arc over the top makes it a bucket.
8
+
9
+ The generation prompt names the subject, so the form only has to be told apart from the other subjects in its scene.
10
+
11
+ Add a further part only when a scene uses it: one a body grips, sits on, strikes or opens, or one that moves on its own pivot, such as a door or a lid.
12
+
13
+ ## Size
14
+
15
+ Take every dimension from the subject's record. The hint's outline and depth are rendered from the form, so a wrong size or bulk comes back wrong in the film.
16
+
17
+ ## Primitives
18
+
19
+ Use boxes, cylinders, cones, spheres, wedges and flat outlines extruded straight, each with the fewest sides that keep its outline at the scene's camera distance. A low-polygon kit piece from [Sources](sources.md) serves instead when it already has these parts at the record's size.
20
+
21
+ Leave out bevels, surface relief, ornament, texture and any interior no camera sees. [Entity work](../development/entities.md#what-stays-out) says how the facts a coarse form cannot show reach the film.
22
+
23
+ ## Check
24
+
25
+ Render the form's outline from the cameras its scenes use, beside the polygon man. Stop when someone who has not read the screenplay could name the subject from that outline and its size is right against the figure, then accept it under [entity work](../development/entities.md#inspect-and-hand-off).
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: audio
3
+ description: Decides what each shot sounds like for the video model to generate, makes a voice preview when the user wants to hear voices before video generation, and builds a soundtrack only when the commission asks for one, always for the user to accept by ear. Use when writing a shot's sound into a generation prompt, when the user requests a voice preview, or when a soundtrack is commissioned.
4
+ ---
5
+
6
+ # Audio
7
+
8
+ Because [you cannot hear](../../../AGENTS.md#what-you-can-observe), you measure what decoded bytes show and the user accepts every sound by listening. Audio work has three cases. Source changes follow [development](../development/SKILL.md).
9
+
10
+ ## Generated sound
11
+
12
+ A generated film's voices, effects and ambience come from the video model, which generates them in sync with the picture. The production's audio work is to decide what each shot sounds like, from the screenplay's speech and sound decisions, and write it into that shot's prompt in the selected model's syntax under [video](../video/SKILL.md).
13
+
14
+ The model times and lip-syncs speech inside the clip it generates, so keep each shot's lines speakable at a natural pace within that clip's duration, about one or two short exchanges per four seconds.
15
+
16
+ When the selected model or mode generates no sound, report it to the user with two choices, a sound-generating model or mode, or a separate video-to-audio pass over the accepted take, and follow their choice.
17
+
18
+ ## Voice preview
19
+
20
+ Make a preview only when the user wants to hear the voices before video generation. Use [local speech](local-speech.md) or another speech service under [acquisition](acquisition.md), adding [sound effects](sound-effects.md) only when the user asks for them too, and ask the user to play it with the motion hint in the Viewer and listen. A preview is never delivered or required, and the video prompt still carries the film's sound.
21
+
22
+ ## Commissioned soundtrack {#commissioned-soundtrack}
23
+
24
+ A motion hint and a direct 3D film are silent unless the commission asks for sound, and no stage waits on a soundtrack nobody commissioned.
25
+
26
+ When one is commissioned, record its tracks and loudness target in the [delivery profile](../production/project-context.md), acquire its material under [acquisition](acquisition.md), build it under [sound effects](sound-effects.md), and have the user listen at every acceptance: each adopted take, each mixed passage with its picture, and the delivered file.
27
+
28
+ Record which takes and passages the user heard, because a measurement cannot stand for a listening.
@@ -0,0 +1,25 @@
1
+ # Audio acquisition
2
+
3
+ Audio is acquired only for a requested voice preview or a [commissioned soundtrack](SKILL.md#commissioned-soundtrack); a generated film's sound needs none of it.
4
+
5
+ Audio generation and recording happen outside deterministic replay. Read the installed packages' contracts for admitted formats and mixing, and this production's host, before wiring audio into a render; a decoder's presence does not mean the delivery entry uses it. Setup and secrets follow [source layout](../development/source-layout.md).
6
+
7
+ ## Choose a source
8
+
9
+ Use the user's supplied recordings or chosen provider first, and [research](../story/planning/research.md) reference sounds when needed. Otherwise compare an existing recording or licensed library, a hosted speech or audio service, and local generation against the required language, performance, privacy, cost, hardware and turnaround, using existing connectors and command-line tools before writing acquisition code.
10
+
11
+ Check each asset's license for commercial use, adaptation, attribution and delivery; permission to synchronize sound with a film differs from permission to publish its raw files, and a free download grants neither.
12
+
13
+ ## Adopt a take
14
+
15
+ Keep accepted bytes and their record under [media records](../production/media-records.md#records); a regeneration is a new take until the user has heard it. Convert to a format the installed packages admit while keeping the original.
16
+
17
+ For a commissioned soundtrack, keep an accepted music take's tempo map and cue sheet beside it: they are the anchors the screenplay's music events and the scenes' timing cite.
18
+
19
+ Measure durations and trims from the accepted bytes, place dialogue, captions, cuts and cues against them, and when a line does not fit, edit the take, script or shot intentionally and have the user listen to the result.
20
+
21
+ ## Have it heard
22
+
23
+ Measure what decoded bytes show, such as duration, silence, clipping and loudness, and ask the user to listen to each adopted take for words, pronunciation, performance and noise. The [audio skill](SKILL.md#commissioned-soundtrack) sets when the user listens; in the delivered audio the user listens for intelligibility, missing cues, transitions and the ending.
24
+
25
+ A waveform, timing report or successful render does not establish that the intended recording is audible. Fix acquisition, identity, timing or wiring at its owner.
@@ -0,0 +1,11 @@
1
+ # Local speech
2
+
3
+ A voice preview the user requested under [audio](SKILL.md) can be made on the local machine. [VoxCPM](https://github.com/OpenBMB/VoxCPM) is one local speech option; its README, [installation guide](https://voxcpm.readthedocs.io/en/latest/installation.html) and [quick start](https://voxcpm.readthedocs.io/en/latest/quickstart.html) own model versions, platform requirements and interfaces.
4
+
5
+ Choose against the requested language, performance and the actual machine. Foley and designed sounds follow [sound effects](sound-effects.md).
6
+
7
+ Before an agent-managed installation, get the user's approval for the environment location, dependencies, model downloads and storage, including downloads the first inference triggers; an existing approval covering that setup is enough. Install in an isolated environment outside the JavaScript dependencies.
8
+
9
+ Generate one short take in the production's language and voice, measure it and have the user listen to it before any batch, keeping the checkpoint and settings with the take.
10
+
11
+ Adopt accepted takes through [audio acquisition](acquisition.md#adopt-a-take), record the setup in [project context](../production/project-context.md), and document the commands in the README.
@@ -0,0 +1,29 @@
1
+ # Sound effects
2
+
3
+ Effects are built in two cases only: the user asks for them with a requested voice preview, or a [soundtrack is commissioned](SKILL.md#commissioned-soundtrack). A generated film's effects come from the video model's prompt.
4
+
5
+ Define each cue by its event, source material, action, intensity, distance and acoustic space. Choose a recording, self-recorded Foley or purpose-built generator that can express those qualities. Keep close effects separate from ambience and speech so their timing and perspective remain editable.
6
+
7
+ ## Acquire a sound
8
+
9
+ [Freesound](https://freesound.org/) provides searchable recordings with per-asset licenses; filter for [CC0](https://creativecommons.org/publicdomain/zero/1.0/) when public raw-file redistribution is needed, or evaluate [CC BY](https://creativecommons.org/licenses/by/4.0/) with its credit requirements. [OpenGameArt](https://opengameart.org/) also provides sound packs with licenses on their asset pages.
10
+
11
+ Inspect the individual source, recording method and terms rather than treating a site's free catalog as one license. Follow [acquisition](acquisition.md) for adoption and delivery rights.
12
+
13
+ Record Foley when the required material or movement is missing. Capture isolated variations with useful intensity and perspective differences.
14
+
15
+ When generating, describe the source, action and recording character, have the user audition a short result, then select variations before expanding.
16
+
17
+ [Stable Audio](https://github.com/Stability-AI/stable-audio-3) is one purpose-built option; its current model documentation owns setup, controls and output rights. Evaluate those rights separately from the inference code's license.
18
+
19
+ ## Edit with picture
20
+
21
+ Select dry takes that match the depicted event; layer, trim and shape them to distinguish contact types and intensities. Set each cue from its measured onset, end it with its event and decay, and place it through gain, pan and room sound consistent with the scene. Use movement sound for a pass-by and contact sound for an impact.
22
+
23
+ Cap overlapping instances per sound and per source, as game engines bound [sound concurrency](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Engine/FSoundConcurrencySettings?lang=en-US), and duck beds and effects under speech.
24
+
25
+ For a commissioned soundtrack, measure on the decoded mix that every spoken line rises over the bed and that loudness, measured as [ITU-R BS.1770](https://www.itu.int/rec/R-REC-BS.1770) defines it, reaches the target the [delivery profile](../production/project-context.md) records, which may be dialogue-gated.
26
+
27
+ At each listening the [audio skill](SKILL.md#commissioned-soundtrack) sets, the user hears the complete working passage with moving picture at normal speed, replays uncertain contacts and transitions, and reports synchronization, repetition, perspective and balance with speech and ambience together.
28
+
29
+ Hand accepted bytes and measured cues to [assembly](../production/assembly.md) for a commissioned soundtrack, and ask for the affected listening again after either picture or sound changes.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: contracts
3
+ description: Holds the checklists Evidence asks, in two families: development for source and tests, and story for research through the screenplay, each broad item with its detailed statements. Use before selecting, answering or citing a contract item.
4
+ ---
5
+
6
+ # Contracts
7
+
8
+ This tree holds the questions Evidence asks. Read only the family and contracts the calling task selects. This file is not an evidence target.
9
+
10
+ A respondent is whoever answers an item: a declaration, a document or a record.
11
+
12
+ | Family | Respondents | Where they answer |
13
+ | --- | --- | --- |
14
+ | [Development](development/SKILL.md) | Source declarations and tests | Their doc comments |
15
+ | [Story](story/SKILL.md) | Research studies, settings or brief, treatments, scripts and screenplay units and populations, discovery results and review records | Where [answer placement](../story/evidence/answer-placement.md) puts them |
16
+
17
+ ## Items and statements {#items-and-statements}
18
+
19
+ Each H2 is one item, and a separate answer establishes it. An item is one broad question with its reason: what to achieve, and what its recipient loses when it is missed. Items stay few. A new concern on a theme an item already covers joins that item, because every item costs every respondent an answer.
20
+
21
+ The detail lives one level down. An item's statements are single assertions that can each be checked, with their exceptions, listed under the item's anchor in a `statements` document beside its contract.
22
+
23
+ Statements are how you question your own compliance:
24
+
25
+ 1. Check the work against every statement before answering.
26
+ 2. Repair what fails.
27
+ 3. Write an answer that is true against all of them and names each statement that does not apply, with its reason. The answer does not recite the list.
28
+
29
+ A reviewer audits the answer against the same list. Unless an item says its statements are its whole boundary, another proven loss on the item's question is still a finding.
30
+
31
+ Statement documents are not evidence targets: no selector reaches them, and a citation names the item, never a statement.
32
+
33
+ An enumeration in an item or a statement defines what to compare, not ingredients to add to the respondent.
34
+
35
+ An item and its statements cite no research or reference source; a statement may link the skill document or sibling statement that owns a rule it applies.
36
+
37
+ ## What the graph does not hold
38
+
39
+ An item asks only what its authored respondent can establish from its own content and the references it cites. What a rendered or generated picture shows, and what a sound is, can only be observed, so generation requests, prompts, control channels and delivered media have no contract family.
40
+
41
+ [Review](../review/SKILL.md) judges them on stills and through the user's ears, and records the observations in the [acceptance record](../review/delivery-review.md#acceptance-record). An answer that records such an observation in place of the work it describes adds paperwork, not evidence.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: contracts-development
3
+ description: Maps the development checklists, common, design, implementation, testing, entities, behaviors and composition, onto the source declarations and tests that answer them in their doc comments. Use before writing or citing a development contract item.
4
+ ---
5
+
6
+ # Development contracts
7
+
8
+ Every respondent here answers in its own doc comment, citing an item as `contracts/development/<file>.md#<anchor>`.
9
+
10
+ | Contract | Respondent | Statements |
11
+ | --- | --- | --- |
12
+ | [Common](common.md) | Every exported declaration, tests included | |
13
+ | [Design](design.md) | Each exported type, interface, type alias and class | |
14
+ | [Implementation](implementation.md) | Each exported function and class method | |
15
+ | [Testing](testing.md) | Each exported test function | |
16
+ | [Entities](entities.md) | Each exported declaration under `src/entities/`, which also names the settings or brief facts it realizes and the research its measurements follow | [Entity statements](statements/entities.md) |
17
+ | [Behaviors](behaviors.md) | Each exported function and method under `src/laws/`, `src/interactions/` and `src/consequences/`, which also cites the research it follows | [Behavior statements](statements/behaviors.md) |
18
+ | [Composition](composition.md) | Each exported function and method under `src/composition/`, which also cites the screenplay scenes, beats or file it realizes | [Composition statements](statements/composition.md) |
19
+
20
+ Common, design, implementation and testing are AutoMovie's shared engineering checklists, and each of their items ends by saying what its answer states. Entities, behaviors and composition belong to productions and follow the chain [source layout](../../development/source-layout.md) draws from settings or brief and research through the screenplay to code. Each of their items is one broad question, and its [statements](../SKILL.md#items-and-statements) carry the detail.
21
+
22
+ An `@evidence` tag resolves only to a contract item or to the research or screenplay its contract cites; name any other document a declaration follows by its path and anchor in an answer's prose, because Evidence rejects a tag whose target its claim does not select.