@automovie/template 0.0.0-stage → 0.1.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 (742) 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 +489 -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/process/ProcessOwnership.ts +102 -0
  624. package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +18 -0
  625. package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +70 -0
  626. package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +125 -0
  627. package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +52 -0
  628. package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +41 -0
  629. package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +22 -0
  630. package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +24 -0
  631. package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +24 -0
  632. package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +45 -0
  633. package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +15 -0
  634. package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +15 -0
  635. package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +41 -0
  636. package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +68 -0
  637. package/scaffold/production/src/main.ts +197 -0
  638. package/scaffold/production/src/selectFilm.ts +34 -0
  639. package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +75 -0
  640. package/scaffold/production/test/features/test_clamp_production_seconds.ts +39 -0
  641. package/scaffold/production/test/features/test_select_film.ts +59 -0
  642. package/scaffold/production/test/features/testing/test_test_execution.ts +57 -0
  643. package/scaffold/production/test/features/testing/test_test_selection.ts +78 -0
  644. package/scaffold/production/test/helpers/assessTestExecution.ts +22 -0
  645. package/scaffold/production/test/helpers/selectTestFiles.ts +79 -0
  646. package/scaffold/production/test/index.ts +64 -0
  647. package/scaffold/production/test/tsconfig.json +6 -0
  648. package/scaffold/production/tsconfig.json +34 -0
  649. package/scaffold/production/tsconfig.test.json +9 -0
  650. package/scaffold/production/vite.config.ts +35 -0
  651. package/scaffold/workspace/README.md +42 -0
  652. package/scaffold/workspace/_gitignore +9 -0
  653. package/scaffold/workspace/package.json +19 -0
  654. package/scaffold/workspace/pnpm-workspace.yaml +46 -0
  655. package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +48 -0
  656. package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +39 -0
  657. package/src/AutoMovieScaffoldLayer.ts +18 -0
  658. package/src/FILE_ATTRIBUTE_DIRECTORY.ts +2 -0
  659. package/src/IAutoMovieCatalogVersionProps.ts +18 -0
  660. package/src/IAutoMovieScaffoldProps.ts +14 -0
  661. package/src/IAutoMovieScaffoldSourceEntry.ts +19 -0
  662. package/src/IAutoMovieTemplateDependencyVersionsProps.ts +19 -0
  663. package/src/IAutoMovieWorkspacePackageVersions.ts +44 -0
  664. package/src/IBoundChild.ts +86 -0
  665. package/src/IBoundChildStatus.ts +24 -0
  666. package/src/IBoundParent.ts +65 -0
  667. package/src/IBoundParentStatus.ts +15 -0
  668. package/src/ICreateResult.ts +35 -0
  669. package/src/IScaffoldCompletedFilePublicationOutcome.ts +17 -0
  670. package/src/IScaffoldCompletedPublication.ts +17 -0
  671. package/src/IScaffoldFileSnapshot.ts +28 -0
  672. package/src/IScaffoldParentPublicationRequest.ts +29 -0
  673. package/src/IScaffoldPartialFilePublicationOutcome.ts +25 -0
  674. package/src/IScaffoldPhysicalDirectory.ts +22 -0
  675. package/src/IScaffoldPosixConstants.ts +30 -0
  676. package/src/IScaffoldPublicationEntry.ts +22 -0
  677. package/src/IScaffoldPublicationFailure.ts +18 -0
  678. package/src/IScaffoldPublicationOptions.ts +19 -0
  679. package/src/IScaffoldPublicationReceipt.ts +29 -0
  680. package/src/IScaffoldRefusedFilePublicationOutcome.ts +20 -0
  681. package/src/IScaffoldSyncPlan.ts +26 -0
  682. package/src/IScaffoldSyncProps.ts +16 -0
  683. package/src/IWindowsFileInformation.ts +24 -0
  684. package/src/IWindowsLibrary.ts +148 -0
  685. package/src/SCAFFOLD_SYNC_STATE_FILE.ts +5 -0
  686. package/src/ScaffoldFilePublicationOutcome.ts +18 -0
  687. package/src/ScaffoldParentChangedError.ts +14 -0
  688. package/src/ScaffoldPublicationError.ts +58 -0
  689. package/src/assertOrdinaryFile.ts +20 -0
  690. package/src/assertOrdinarySingleLinkFile.ts +26 -0
  691. package/src/assertScaffoldOwnership.ts +29 -0
  692. package/src/assertScaffoldPhysicalDirectory.ts +29 -0
  693. package/src/assertScaffoldProjectName.ts +34 -0
  694. package/src/attachScaffoldSyncState.ts +30 -0
  695. package/src/captureEmptyScaffoldPhysicalDirectory.ts +45 -0
  696. package/src/captureScaffoldFile.ts +34 -0
  697. package/src/captureScaffoldPhysicalDirectory.ts +34 -0
  698. package/src/combineScaffoldFailures.ts +35 -0
  699. package/src/createAutoMovieCatalogVersionResolver.ts +117 -0
  700. package/src/createScaffoldSyncState.ts +33 -0
  701. package/src/createScaffoldVariables.ts +50 -0
  702. package/src/ensureScaffoldBaseDirectory.ts +55 -0
  703. package/src/ensureScaffoldFileDirectory.ts +75 -0
  704. package/src/index.ts +48 -0
  705. package/src/inside.ts +25 -0
  706. package/src/isScaffoldInstruction.ts +29 -0
  707. package/src/listAutoMovieScaffoldFiles.ts +56 -0
  708. package/src/loadWindowsLibrary.ts +277 -0
  709. package/src/mergeScaffoldFiles.ts +39 -0
  710. package/src/missingPath.ts +16 -0
  711. package/src/nativeError.ts +15 -0
  712. package/src/openPosixParent.ts +155 -0
  713. package/src/openWindowsParent.ts +305 -0
  714. package/src/overwriteScaffoldFile.ts +262 -0
  715. package/src/physicalDirectoryIdentity.ts +33 -0
  716. package/src/physicalVersion.ts +18 -0
  717. package/src/planScaffoldPublication.ts +100 -0
  718. package/src/planScaffoldSync.ts +122 -0
  719. package/src/publishFiles.ts +120 -0
  720. package/src/publishNativeScaffoldFile.ts +287 -0
  721. package/src/publishScaffoldCandidate.ts +94 -0
  722. package/src/readAutoMovieScaffoldSources.ts +82 -0
  723. package/src/readScaffoldSyncFile.ts +66 -0
  724. package/src/renderScaffold.ts +43 -0
  725. package/src/renderScaffoldEntries.ts +110 -0
  726. package/src/renderScaffoldInstructions.ts +22 -0
  727. package/src/renderScaffoldLayer.ts +38 -0
  728. package/src/renderTemplate.ts +62 -0
  729. package/src/renderWorkspaceProductionScaffold.ts +35 -0
  730. package/src/renderWorkspaceScaffold.ts +43 -0
  731. package/src/replaceSharedScaffoldFile.ts +88 -0
  732. package/src/resolveAutoMovieCatalogVersion.ts +27 -0
  733. package/src/resolveAutoMovieTemplateDependencyVersions.ts +70 -0
  734. package/src/resolveScaffoldPosixConstants.ts +50 -0
  735. package/src/scaffoldAssetDirectory.ts +30 -0
  736. package/src/scaffoldPhysicalIdentity.ts +21 -0
  737. package/src/scaffoldSharedSkillDirectory.ts +25 -0
  738. package/src/scaffoldSharedSkillPath.ts +31 -0
  739. package/src/syncScaffold.ts +38 -0
  740. package/src/writeFiles.ts +48 -0
  741. package/src/writeScaffoldFile.ts +88 -0
  742. package/src/writtenVersion.ts +19 -0
@@ -0,0 +1,13 @@
1
+ # Repair
2
+
3
+ Repair preserves established contracts by fixing the responsible cause.
4
+
5
+ ## Before editing
6
+
7
+ Read the implementation, its callers, contracts, and tests until you know why the code is structured as it is and which invariants it owns. Then group every known symptom by cause, and trace each cause, and your change, through callers and consumers, error and recovery paths, caches and determinism, and Windows and POSIX.
8
+
9
+ ## The fix
10
+
11
+ Fix each cause at its owner and delete the compensations the fix makes unnecessary. Put non-obvious invariants in nearby comments.
12
+
13
+ Verify every case the trace reached, including corrected behavior and behavior that must remain, with the checks the [development skill](SKILL.md) names.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: documentation
3
+ description: Owns how any document is written, with its sentences, terms, paragraphs and lists, and what a README holds. Use before writing or changing a technical document, README or doc comment; instructions for an agent add the prompting skill's rules.
4
+ ---
5
+
6
+ # Documentation
7
+
8
+ Good writing is the same for every reader: deliver the core point concisely and clearly. Only the reader, and so what the reader needs, differs by document.
9
+
10
+ Every document follows [Writing](writing.md). A README adds the rules below.
11
+
12
+ ## READMEs
13
+
14
+ Write a README from the view of the person who uses its project or package, and keep it to the essentials:
15
+
16
+ - what it is and when to use it;
17
+ - how to install and start it;
18
+ - the few entry points;
19
+ - where the detail lives.
20
+
21
+ A README lists no API that the source and its types already own, because that list goes stale at the next change, and it carries nothing only a maintainer needs. Every name, command and sample in it exists in the code, and every sample runs.
22
+
23
+ ## Doc comments
24
+
25
+ The project's development skill names what a public declaration's comment must say.
@@ -0,0 +1,51 @@
1
+ # Writing
2
+
3
+ How the text of any document is put together, from its sentences up to its lists.
4
+
5
+ ## Sentences
6
+
7
+ - Write only what the reader needs and would not otherwise know.
8
+ - Say simply what can be said simply.
9
+ - Cut padding, preamble, filler and closing summaries.
10
+ - Cut a qualification that changes nothing, an example that restates the rule, and a sentence that repeats another.
11
+ - Make one point in one sentence in one place.
12
+ - Give the reason when it is not obvious.
13
+ - Say what to do rather than what to avoid, and name the concrete pattern when a prohibition is needed.
14
+ - Use plain language, without emphasis capitals, em-dashes, emoji in prose, promotional adjectives or hedging.
15
+
16
+ Completeness means covering what the reader needs, never longer phrasing.
17
+
18
+ ## Terms
19
+
20
+ Use one term per concept across a set of documents, because a second word reads as a second thing. Name the concept with the field's established term, or with plain words where the field has none, never with a coined word. Explain a field term in plain words where a newcomer to that document first meets it, or link the document that explains it.
21
+
22
+ A metaphor or a plain picture may explain a concept once in prose, but it never becomes the concept's name in a heading, a label, a description or later text. A reader who knows the field cannot find the concept under a private name, and a reader who does not takes the picture literally.
23
+
24
+ ## A person wrote it
25
+
26
+ Text reads as written by a person for this reader. These habits mark text as produced without thought, and a reader who spots one stops trusting the rest:
27
+
28
+ - stock AI phrasing;
29
+ - a sentence frame or opener repeated across sibling documents;
30
+ - one template stamped on every document, whatever it holds;
31
+ - three parallel items where the content has two or four.
32
+
33
+ ## Paragraphs
34
+
35
+ A paragraph is one topic. Start a new one when the topic changes, keep sentences on the same topic together, and write each paragraph on one source line.
36
+
37
+ Gluing several topics into one long paragraph to keep the paragraph count low is a failure, not concision, because the reader cannot find the second topic. Giving every sentence its own paragraph is the opposite failure, because the reader cannot see which sentences belong together.
38
+
39
+ ## Lists, tables and code
40
+
41
+ A list is for parallel items short enough to take in at a glance, one line each, and for steps whose order changes the result. Mark a sublist differently from its parent, such as `-` items under a numbered list.
42
+
43
+ A long item, or one that carries reasoning, is not a list item. Give it the form of what it is:
44
+
45
+ | Content | Form |
46
+ | --- | --- |
47
+ | Topics | A subsection each, written as prose |
48
+ | Steps that need explanation | A short step line with a paragraph or a sublist of short items under it |
49
+ | An argument whose conditions, reasons and exceptions depend on each other | Prose, with no list |
50
+ | A repeated mapping | A table |
51
+ | An exact command | A code block |
@@ -0,0 +1,51 @@
1
+ # Author by effector goals
2
+
3
+ Almost every action is an interaction: a part of the body meets the floor, a prop, a partner, or a point the performer aims at. That part is the end effector, effector for short, what it reaches is the target, and a goal puts the effector on its target for a window.
4
+
5
+ Author every movement as goals, and let inverse kinematics find the joint angles within the rig's range of motion. A goal survives a taller body, a longer arm, a different opponent or a moved prop; a joint angle fitted to one body puts the next body's hand beside the cup.
6
+
7
+ ## Write the goal
8
+
9
+ A goal names five things:
10
+
11
+ | Part | Names | Example |
12
+ | --- | --- | --- |
13
+ | End effector | A measured point on the body | The palm center, the ball of the foot, the knuckles, the seat bones, the heel |
14
+ | Target | Where the effector goes | A declared region or socket of another entity, a prop's grip or surface, a point in the set, an imagined point the performer aims at |
15
+ | Approach | The direction and the effector's orientation, where the act needs one | A palm facing a partner, a sole flat on a step |
16
+ | Window | When the goal holds | From a grip closing to its release |
17
+ | Tracking | Whether the target is frozen at the window's start or tracked through it | A reach to a moving hand |
18
+
19
+ A goal on a moving body, such as a palm on the chin or a hand on the other forearm, attaches to that bone, so a layered sway or breath carries the hand with the body instead of leaving it at a world point.
20
+
21
+ A tracked target is followed as a person follows one: the goal reads the target where the performer perceived it a reaction time earlier, with the delay taken from the action's study, the primary sources on the real practice. A limb that reads the target at the current instant cannot be dodged, feinted or made to miss.
22
+
23
+ Take every distance, height and reach from the performer's own measured segments and the target's measured parts. A constant measured on one figure ties the action to that figure and fails on the next; when no measure can supply a value, name it as provisional with its source.
24
+
25
+ The action's study supplies the key poses, the timing and the windows. Take joint values straight from those key poses only where no goal determines the pose, such as a guard's carriage or a follow-through.
26
+
27
+ ## Shape the path in time
28
+
29
+ Move an effector to its target on a smooth, bell-shaped speed profile, that of minimum jerk (Flash and Hogan 1985), because a constant-speed path reads as mechanical. A movement that delivers speed at its end, such as a throw or a strike, sequences from proximal to distal segments (Putnam 1993) and reaches its target before the speed falls to zero.
30
+
31
+ ## Decide what happens out of reach
32
+
33
+ Compute the reach before posing: the root-to-target distance against the limb's reachable band. Declare the rule for a target outside it, whether too far or closer than the limb can fold to. The action either refuses with the feasible range, or takes a declared alternative that still reaches the goal, such as a step, a lean or a support hand. An alternative that changes the outcome, such as a stumble, applies only when the caller selects it, because the outcome belongs to whoever decided the scene.
34
+
35
+ A silent clamp moves the contact somewhere the screenplay did not ask for and hides the miss from every check. The action's documentation says which rule it follows, and the code must match that sentence.
36
+
37
+ ## Decide the root once
38
+
39
+ Decide the root once, from every demand on it together: the contacts, the far reaches, and balance, which keeps the extrapolated center of mass, the center of mass shifted by its velocity, over the support. Then fit every limb from that root, because separate corrections per limb disagree, and balance left to a check is met after the pose is already wrong.
40
+
41
+ A contact that still cannot be reached shows the root is wrong: revise that one root, by lowering, leaning or stepping, and refit every limb. A contact dragged off its point to keep the root's path is the error a viewer sees first.
42
+
43
+ ## Order the fits
44
+
45
+ Fit supports before reaching limbs: feet on the floor, seat bones on the seat, hands on a held bar. A later fit can pull an earlier contact away, so check every earlier contact after each later fit.
46
+
47
+ A bend hint, the direction given to a limb's middle joint, chooses which side the elbow or knee falls on. A solver may still prefer the side its range-of-motion cost favors, so check that the solved middle joint follows the hint. When no hint is given, keep the side the pose being fitted already bends toward at that instant.
48
+
49
+ When two limbs rest on each other, as in crossed arms, place them in one direction. Fit the first against the body, then the second against the first as solved. Re-placing each against the other in turn flips each elbow between its two possible sides and does not converge.
50
+
51
+ When a fit searches for a pose, such as a grip aperture or a root height, measure each trial after the joint limits are applied, or the search converges on a pose the body cannot take.
@@ -0,0 +1,39 @@
1
+ # Contacts and supports
2
+
3
+ A contact is where the body touches something and must not slip: a planted foot, a seat, a grip, a carried object, another performer.
4
+
5
+ ## Windows and support frames
6
+
7
+ Each contact holds through a declared window: a plant, a seat, a grip, a rest or a hang. Each window names its support frame, the thing the contact rests on and moves with: the ground, a prop or another performer. Slip and penetration are measured in that frame, so a hand on a moving rail or a rider on a moving mount is not reported as sliding.
8
+
9
+ Release a support only after the next one bears the weight, as the heel lands before the other toe leaves and the feet bear the weight before the seat is left. Releasing first makes the body float or drop.
10
+
11
+ ## Feet
12
+
13
+ Plant a foot at the point that actually touches: the ball, the heel, or both. Holding the ankle while the check reads the ball lets the ball drift as the foot pivots.
14
+
15
+ A heel lift rotates the foot about the metatarsophalangeal axis with the ball fixed in the world, the forefoot rocker of Perry's *Gait Analysis*. Measure swing clearance at the lowest point of the toe and sole, not at the ankle.
16
+
17
+ Plan travel as whole steps. A normal step is about 0.41 of stature (Murray, Drought and Kory 1964; Grieve and Gear 1966), and the first and last steps are shorter. Covering even a short distance in one stride splits the legs into a lunge.
18
+
19
+ ## Held objects
20
+
21
+ At grip closure, store the object's pose in the hand's frame (inverse(hand) · object) and keep it fixed until release, as a parent constraint keeps its offset at activation. Re-deriving the offset during the hold lets the object drift in the hand and tilt when it is set down. Set an object down by giving the hand the goal that puts the object at its target pose through that stored offset.
22
+
23
+ A held object stays held across actions until an action takes that hand over to put it down, hand it on or use it. Until then the hand travels with the body and keeps its grip. Refuse an action that would use a holding hand for something else, because the object would be left in the air or dragged through a gesture.
24
+
25
+ At a handover:
26
+
27
+ - both hands hold through a shared window while the object's world pose blends from the giver to the receiver;
28
+ - the giver opens only after the receiver's grip has closed;
29
+ - every outcome that keeps the object, such as a withdrawn offer, keeps a hand on it until the object is set down.
30
+
31
+ ## Contact between performers
32
+
33
+ Compute the shared target of a handshake, a handover or a clinch once, from both bodies' reach, and give it to each performer as its target. Two performers each aiming at where the other is chase each other.
34
+
35
+ Judge a contact against each performer's final displayed pose. A contact stop, the instant a moving limb is halted at contact, committed against a provisional pose lands at the wrong instant and lets one body pass into the other. When a contact stop changes what is displayed, resolve the contacts again against the new display, or resolve both performers together at each instant.
36
+
37
+ A contact stop changes the pose only. The action keeps its duration, its events and its decisive instant, such as an impact or a landing, so a partner and the sound still match it at the planned time. Resolve contacts that fall in the same span in time order, each later one seeing the earlier stops.
38
+
39
+ Measure penetration against each part's own collider, not against one radius shared by a whole limb.
@@ -0,0 +1,23 @@
1
+ # Design an action as a law
2
+
3
+ A law takes a body, its parameters, the performer's skill, the state it is entered from and its targets. Give every law the parts below, because cuts, partners, sound and checks all rely on them.
4
+
5
+ ## Plan once, evaluate by time
6
+
7
+ Decide everything an instance needs when it starts: its duration, its footprints, a flight path, a strike path. Each pose is then computed from that plan and a time alone. A law that decides while it plays gives playback one motion and a seek another. [Transitions](transitions.md#pose-as-a-function-of-time) gives what this demands of solvers and caches.
8
+
9
+ ## Continue from the entry state
10
+
11
+ Plan from where the body is when the action starts: the displayed pose and its velocity, the feet on the floor, what the hands hold. The root, the planted feet and the effectors continue from there by the law's own planning, and [the transition](transitions.md#changing-action) carries only the joint offsets the law cannot plan from. A law that always starts from its own rest pose turns every transition into a visible correction.
12
+
13
+ ## Declare events and the decisive instant
14
+
15
+ Name the instants other work depends on: the phases of the movement, the start and end of each contact, and the decisive instant when the action has one. The decisive instant is the frame the action exists for, such as an impact, a release, a catch or a landing. Cuts, a partner's timing, sound and review address the action through these names. Without them an action can only be cut or matched at a guessed fraction of its length, and the guess breaks when the duration changes with the body.
16
+
17
+ ## Take the outcome as an input
18
+
19
+ When an action can end in different outcomes, such as a strike that lands, is blocked or misses, the outcome is decided before the geometry: by the caller who authored the scene, or by a declared rule over the participants' intents. Geometry then realizes that outcome and is checked against it. An outcome left to wherever the geometry happens to arrive changes when a body or a distance changes, and nobody chose the change.
20
+
21
+ ## Scale time with the body
22
+
23
+ Take durations and speeds from the body, as distances already are. Bodies of different size move alike at equal Froude number, v²/(g·l) with l the leg length (Alexander 1984), so a pace is a Froude number and not a speed in meters per second. A fixed speed makes a small body run where a tall one strolls.
@@ -0,0 +1,7 @@
1
+ # Layer what runs over every action
2
+
3
+ Gaze, breathing and displays of feeling run on top of whatever action the body performs. A layer adds its contribution to the action's pose. It never starts, cuts or ends an action, so an action plays the same with or without it.
4
+
5
+ A layer leaves every contact goal untouched, because planted feet and gripping hands are solved from those goals and must not slide. It uses the joints the action leaves free, such as the eyes, the head and the chest, or adds small offsets to the trunk that the [contact fits](authoring.md#order-the-fits) then absorb.
6
+
7
+ A layer that begins, ends or changes its target blends from where it is, never from neutral, so the head does not snap. Its timing and amplitude come from its own study and vary under [skill and seed](variation.md) like any action's.
@@ -0,0 +1,27 @@
1
+ # Time, transitions and redirection
2
+
3
+ An action rarely plays from start to end: it is cut into another, joins one, or has its target moved while it plays.
4
+
5
+ ## Pose as a function of time
6
+
7
+ An action evaluates each pose from its plan and a time alone, which has two consequences for solvers and caches. A solver's reference pose comes from a fixed instant, such as the previous contact event of the plan (the events and windows an action resolves into), never from the frame before. A cached result is keyed only by exact event times, never by sampled frames. Either way, playback, seeking and capture at different rates still agree.
8
+
9
+ ## Declared cuts
10
+
11
+ Each action declares its cuts: the actions it may be cut into, the window of each cut (a share of the action, or one of its events), where the target action is entered, and the transition kind. Refuse a cut the action does not list at the moment the plan is built, so an impossible change of plan surfaces before the film renders.
12
+
13
+ The kind follows what changes. A change to a different action [inertializes](#changing-action): it carries the difference in pose and velocity at the cut and lets it decay, instead of crossfading. A change of target within one family of movement [redirects](#changing-target-within-an-action). A cyclic movement that continues into another, such as a walk into a run, joins on the matching foot event, so the gait keeps its phase.
14
+
15
+ A cut also names what it carries unchanged: the stance foot's plant, a guard, a grip. The action cut into plans from that state as its entry.
16
+
17
+ ## Changing action
18
+
19
+ At a cut into a different action, inertialize (Bollo 2018, "Inertialization: High-Performance Animation Transitions in Gears of War"). Each channel's offset x0 and velocity v0 are taken from both sides at the same instant and decayed together on Bollo's quintic polynomial. Where x0 and v0 have opposite signs, the decay time t1 is limited to t1 ≤ −5·x0/v0. Leaving out v0 keeps the pose continuous but breaks its velocity, which reads as a jerk at the cut.
20
+
21
+ Keep the offset off every limb that bears a contact. After the offset is applied, solve each planted foot and gripping hand onto its goal again, so the decay reaches only the free joints. A contact that takes part in the blend slides for as long as the blend lasts.
22
+
23
+ Blend angles in unwrapped form, along the shortest arc ((b − a + 180) mod 360 − 180), or blend in quaternions. A heading or twist that crosses ±180° and is differenced raw reports thousands of degrees per second where the limb barely moved.
24
+
25
+ ## Changing target within an action
26
+
27
+ When the target of a reach or a strike moves mid-motion, superpose a second minimum-jerk unit from the old target to the new one on the running unit (Flash and Hogan 1985; Flash and Henis 1991), and let the solver follow the summed goal. Restarting the reach from rest discards the motion already under way.
@@ -0,0 +1,23 @@
1
+ # Vary by parameters, skill and seed
2
+
3
+ Two takes of one action differ and a novice differs from an expert, yet the same take replays exactly. Parameters, skill and seed give all three.
4
+
5
+ ## One law, many performances
6
+
7
+ A different performance of an action, such as a tired walk, a taller performer or a second take, is the same law at other parameters, another skill or another seed. Copying a law and editing its constants makes a variant that the next repair does not reach, so the copies drift apart. When a performance needs something the law cannot express, give the law that parameter with the study that bounds it.
8
+
9
+ ## Skill moves measured quantities
10
+
11
+ Express skill as a value from novice to expert, and let each quantity of an action move between the novice and expert values its study measured: a phase duration, a peak speed, a reaction time, a scatter. Each family of actions takes these values from its own studies, because another family's numbers give a walker a boxer's timing. Name a quantity with no located study as provisional.
12
+
13
+ Skill changes how well the same action is done. It never widens a range of motion and never changes an outcome.
14
+
15
+ ## Variability that holds across tasks
16
+
17
+ Scale each draw's spread by two regularities that hold across tasks. The variance of a timed interval is a constant motor part plus a part that grows with the interval (Wing and Kristofferson 1973). Endpoint scatter grows with the distance moved and shrinks with the movement time (Schmidt et al. 1979), because motor noise grows with the size of the command (Harris and Wolpert 1998).
18
+
19
+ ## Draws that do not disturb each other
20
+
21
+ Take each random draw from a stream keyed by the seed and by stable identities: the performer, the action, its instance and the quantity drawn. Adding, removing or reordering one action then leaves every other draw unchanged. A single stream consumed in order changes the whole film when one action is inserted.
22
+
23
+ A seed varies the motion inside the bounds its study gives. It never chooses an outcome.
@@ -0,0 +1,36 @@
1
+ # Verify a motion
2
+
3
+ Give each action isolated cases. Each case's checks test the action's own goal as bounded assertions, in the unit tests or capture checks the project has:
4
+
5
+ - the distance from effector to target;
6
+ - penetration;
7
+ - slip of every planted or held contact;
8
+ - range-of-motion overshoot;
9
+ - balance, as the extrapolated center of mass against the support (Hof 2005);
10
+ - continuity of every displayed channel and of its velocity at every cut.
11
+
12
+ A case that only shows the action establishes nothing.
13
+
14
+ ## Checks that can fail
15
+
16
+ A check states the bound it tests and tests exactly that bound. A value reported with no bound is a measurement, not a pass.
17
+
18
+ Measure the displayed result, never the plan's own output. A check that compares two outputs of the same plan, or reads back the target the plan reached, cannot catch the plan being wrong.
19
+
20
+ Check slip and penetration at a rate that cannot step over the contact, because a strike or a plant can begin and end between two output frames.
21
+
22
+ Take every bound from the requirement or its study. Widening a bound until a case passes hides the defect the case exists to find.
23
+
24
+ Run the cases across bodies of different statures and proportions, and against different partners and props, because a pass on one body establishes nothing about another. Cut each action at every window it declares for a cut, and move its target mid-motion where it tracks one, because films use an action where it is interrupted.
25
+
26
+ ## Look at the frames
27
+
28
+ Review stills of every case, in order, from several named views, with a joint overlay where the project's capture offers one and with every held prop drawn at every frame. Numbers alone miss what a still shows at once: a carry crossed in one split lunge, or a bottle that is not where the hand is.
29
+
30
+ Sample the stills in time as [capture](../visual-debugging/capture.md#times) sets.
31
+
32
+ ## Judge rounds honestly
33
+
34
+ Keep each round's capture as [capture](../visual-debugging/capture.md#rounds) sets, and keep a round only as [correction rounds](../visual-debugging/correction-rounds.md#compare-again) allow.
35
+
36
+ Unit tests of the laws answer the [testing contract](../contracts/development/testing.md).
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: prompting
3
+ description: Owns what makes an instruction for an agent work, namely what to state, reasons, one owner per rule, routing to packages, the layout and splitting of skills, what a shared skill may hold and how a prompt is verified. Use before changing AGENTS.md, CLAUDE.md or a skill.
4
+ ---
5
+
6
+ # Prompting
7
+
8
+ Every prompt follows the documentation skill's [Writing](../documentation/writing.md) rules. The rules here are what makes an instruction for an agent work.
9
+
10
+ The best skill is one a person finds orderly at a glance and understands at once, because structure and wording that serve a human reader serve the agent too. Test a changed skill by reading it top to bottom as someone new to the project, and fix whatever makes that reader slow down, reread or hunt for where a rule lives.
11
+
12
+ Before editing a prompt, fetch and read in full the current prompting guide for the model that will read it, rather than recalling it, because it changes with each model. Where it disagrees with the user's rules in this repository, the user's rules win.
13
+
14
+ ## What to state
15
+
16
+ State only facts the code does not show, rules the user set, and mistakes an agent made. Leave dates and history to git.
17
+
18
+ The writing rules ask for a reason when it is not obvious. For a consequential instruction, the reason also says who loses what when it is missed, and it sits in the instruction the recipient reads, because a source comment or an unexplained prohibition cannot guide a case the instruction did not list.
19
+
20
+ Keep method choices open unless the failure requires a particular order or boundary.
21
+
22
+ ## One owner
23
+
24
+ Give each rule one owner, in one section of one file, and let every other place link to it, so a task receives one consistent requirement. Update a rule's callers when moving it.
25
+
26
+ ## Packages
27
+
28
+ A skill routes to a package and stops there; naming the package is the routing. It carries no function name, command line or file path that a package owns, and it lists no package's features, because a copy in a skill cannot be kept in step with the package. The package's README and types own them.
29
+
30
+ ## Skills and contracts
31
+
32
+ A skill gives a job's goal, order and boundaries, and points to the checklists it relies on without restating their items.
33
+
34
+ An agent does not reliably follow long, detailed or conditional prose. A rule that every declaration must meet therefore belongs in a [contracts](../contracts/SKILL.md) checklist as one question under its own H2. Evidence makes each selected declaration answer it, and [review](../review/SKILL.md) checks that the answer is true and complete.
35
+
36
+ Group judgments the agent can make together, and split them when their task, respondent (whoever answers the question) or repair owner differs. Keep overall achievement distinct from passing its detailed tests.
37
+
38
+ ## Layout
39
+
40
+ ### Entry files
41
+
42
+ [`AGENTS.md`](../../../AGENTS.md) holds what every session needs, in under 200 lines, and lists every top-level skill with its trigger, because Claude Code finds skills only there. [`CLAUDE.md`](../../../CLAUDE.md) is `@AGENTS.md`.
43
+
44
+ ### Skill files
45
+
46
+ A skill is `.agents/skills/<name>/SKILL.md`, with `name` equal to the directory and a third-person `description` that says what it does and when to use it. A job with its own trigger gets its own skill.
47
+
48
+ ### Splitting a skill
49
+
50
+ `SKILL.md` stays a short overview: what the skill is for, when to read it, and which resource each task needs. An agent loads it on every use of the skill, so everything in it that the task at hand does not need costs attention on every task.
51
+
52
+ Split when any of these shows:
53
+
54
+ - several unrelated branches sit in one file;
55
+ - a branch only some tasks take;
56
+ - a length the opening can no longer introduce.
57
+
58
+ A branch moves into a sibling file. A group of files with one purpose moves into a subfolder with its own routing `SKILL.md`, at any depth, whose `name` joins the parent's and the folder's, such as `story-planning`.
59
+
60
+ Each sibling file has:
61
+
62
+ - a name that states its subject, so a reader picks it from the listing alone;
63
+ - an opening that states its subject, in its own words;
64
+ - a direct link from its router, never a chain more than one step long.
65
+
66
+ ### Helpers
67
+
68
+ Put repeated deterministic operations in tested helpers, reusing existing tools before adding another. Link their task-specific invocation from the relevant guide, and take examples from working consumers rather than copying their implementation into the prompt.
69
+
70
+ ## Shared skills {#shared-skills}
71
+
72
+ A skill shared with other projects, such as one a project template ships, holds only what is universal, orthodox and valid in every receiving project, because each of them follows it as written. It names tools, owners and records by their role, and leaves one project's paths, packages and decisions to that project's own skills.
73
+
74
+ ## Verification
75
+
76
+ Check that links resolve, triggers reach their resources and each rule has one owner. Compare the instructions with a real governed task and its actual consumers.
77
+
78
+ When a separate context is available and authorized, give it the task and raw inputs without the intended answer and observe its choices.
79
+
80
+ Report static inspection, behavioral observation and unavailable checks separately. Explaining a rule does not prove another session follows it.
@@ -0,0 +1,60 @@
1
+ # Capture
2
+
3
+ A capture is the stills, contact sheets and manifest that one plan produces. This document owns the instrument that draws them, the conditions that make them repeatable, and the choice of subject, views and times.
4
+
5
+ ## The instrument
6
+
7
+ The viewer and its capture are the instrument. Restore a broken one before other work, because every judgment of a picture passes through it. Confirm the adopted scene, its required subjects, the current displayed artifact and relevant controls, seeking, playback and capture through the actual consumer, and protect other owners' processes meanwhile.
8
+
9
+ Repair a missing capability at the owner of that capability, then reconnect and verify the actual consumer; a build, a server response or an unrelated demonstration alone does not prove recovery. A view, pass or selection that the judgment needs and the instrument lacks is a missing capability too.
10
+
11
+ ## Plan
12
+
13
+ Before capturing, write what the stills must show as questions with a yes or no answer, such as whether every leg reaches the floor or whether the fist arrives before the head turns, and answer each from the stills. An overall impression passes over what a definite question finds.
14
+
15
+ The questions fix the capture's cells. A cell is one still, fixed by its subject, its time or pose, its view and its [pass](passes.md). Plan every cell the questions need before drawing any, so one run gathers the whole round's evidence.
16
+
17
+ ## Conditions
18
+
19
+ Capture the actual consumer with current source, and record what repeats the observation: the source revision, asset identities, input, time or pose, resolved camera, light, pass, raster size, renderer and detail settings.
20
+
21
+ The renderer is one of the conditions. A simplified renderer establishes pose, contact, staging and silhouette; material, lighting, shadow and texture are judged on the renderer that draws the delivered picture.
22
+
23
+ A result holds for the use its capture covered; broader reuse needs broader subjects, views, times and states.
24
+
25
+ ## Subject
26
+
27
+ A unit that passes alone can fail against its neighbor, and close-ups that each pass can add up to a whole that fails at first sight, so choose the selections the questions need from all of these:
28
+
29
+ - the whole, as a viewer first meets it;
30
+ - each unit alone;
31
+ - each unit with the neighbors it touches or shares a boundary with;
32
+ - each defect's region.
33
+
34
+ Select by the groups and parts the subject's own definition names. Confirm from the capture's record that each selection matched what was meant, because an empty selection draws a still with no defect in it. Keep enough of the reference or the neighbors visible to read placement and depth.
35
+
36
+ ## Views
37
+
38
+ Name each view so that it repeats: a direction, a distance or scale and a target, or the delivery's own camera. Front and side alone hide what faces neither, so add the back, the top, the quarters and the high and low obliques the subject needs. To tell a wrong bend from a foreshortened one, capture the same cells from a second view.
39
+
40
+ Frame a close-up on the affected region from outside the subject. A view that fits itself to its subject resolves to another camera when the subject changes, so the record keeps the resolved camera for a later [comparison](comparison.md#match-the-cells).
41
+
42
+ ## Times
43
+
44
+ A moving picture is read as stills in time order. Sample it at five to ten stills per second, the denser end where more happens, because at a sparser spacing the stills no longer show how one pose becomes the next.
45
+
46
+ Around every contact, cut, join and decisive instant, capture the output's own consecutive frames, because a contact shorter than the gap between two stills leaves an arm out and an arm back with nothing wrong between them. A few sparse stills never replace those frames.
47
+
48
+ Sample an encoded or generated file from the file itself, at the same seconds as its source, because stills of the source cannot show what the file holds.
49
+
50
+ A reviewer who sees a moving picture only as stills says so, and claims nothing about how it plays that the stills do not show.
51
+
52
+ ## Stills and sheets
53
+
54
+ Read a contact sheet first for the whole capture, with each cell captioned by what fixes it. A sheet shrinks every still, so open the full-size still wherever a contact, a joint, a seam or a small part decides the judgment.
55
+
56
+ A cell that could not be drawn stays on the sheet with its cause and stays unverified; an uncomputed subject is unavailable evidence.
57
+
58
+ ## Rounds
59
+
60
+ Keep each round's capture apart from the next, under a name that states its round or revision, with its manifest. Where a tool writes every run to the same place, copy the round out before the next run, and judge a rerun by the time of the files it wrote.
@@ -0,0 +1,35 @@
1
+ # Comparison
2
+
3
+ A comparison joins two captures cell by cell, so that only the compared thing differs between the two stills of a pair. This document owns which pairs to make, how their cells match and how the difference is read.
4
+
5
+ ## What a pair separates
6
+
7
+ | Pair | Separates |
8
+ | --- | --- |
9
+ | Before and after a correction | The change's effect from what was already there, and regressions outside it |
10
+ | A reference or fixed source and the result | The result's own errors from the source's |
11
+ | A computed result and its picture | A calculation fault from a display fault |
12
+ | The source's picture and the encoded file | What encoding, color conversion or assembly changed |
13
+ | A conditioning input and what a generator made from it | What the generator kept, moved or invented |
14
+ | A coarse form and its detailed option | What the detail shows at the size it is used |
15
+ | A sequential capture and a restart or seek to the same time | State that depends on how the time was reached |
16
+ | This delivery and the previous one | What changed between them at matched times |
17
+
18
+ ## Match the cells
19
+
20
+ Pair two cells only when everything but the compared thing agrees: subject, time or pose, resolved camera, light, pass, raster size and renderer. A view's name does not establish the same framing when the view fits itself to its subject, so the later capture reuses the earlier one's resolved camera.
21
+
22
+ Report a cell that one capture holds and the other lacks as unmatched, with its cause. A comparison over the cells that happened to match says nothing about the ones that did not.
23
+
24
+ ## Read the difference
25
+
26
+ | Form | Shows |
27
+ | --- | --- |
28
+ | The pair side by side | What each still looks like on its own terms |
29
+ | One over the other | A shift in placement, silhouette, horizon or facing |
30
+ | A difference image | Where the pixels changed, including where no change was meant |
31
+ | A measured difference per cell | Which pairs to open first |
32
+
33
+ A measured difference ranks where to look and never replaces looking. Identical bytes establish that nothing changed, and nothing about whether the picture is right.
34
+
35
+ A difference outside the region the change was meant to affect is a regression until it is explained.
@@ -0,0 +1,34 @@
1
+ # Correction rounds
2
+
3
+ A correction round gathers every finding of one capture, traces each to its cause, repairs the causes in one change and compares again. This document owns that order.
4
+
5
+ ## Measure, then look
6
+
7
+ Settle by measurement what a number decides, because an eye on a picture misjudges position, depth and timing. The skill of each subject names its measures. Then [plan the capture](capture.md#plan) from questions with a yes or no answer.
8
+
9
+ ## Inspect before editing
10
+
11
+ Inspect the whole affected subject at every scale before changing anything: the whole, its regions, its neighbors and its close-ups, from every needed view and at every needed time. Write down every observed defect with its cell and its conditions.
12
+
13
+ ## Trace the causes
14
+
15
+ Trace causes through generation and display, including shared boundaries and derived outputs. Where causes or their interactions are unclear, plan the controlled [comparisons](comparison.md) that separate them as one set, run the whole set without changing the source, and record the results. Map each proposed change to all defects and parts it affects.
16
+
17
+ ## Fix in one change
18
+
19
+ Fix all identified causes in one combined change at their sources, and judge it on the assembled subject. A cause that crosses an ownership boundary is changed by both owners in the same round.
20
+
21
+ This procedure replaces these whack-a-mole patterns, however cheap a capture is:
22
+
23
+ - editing after each observed defect;
24
+ - changing one value and capturing to see its effect;
25
+ - capturing after each single fix;
26
+ - leaving a traced cause to a later round or finer scale.
27
+
28
+ ## Compare again
29
+
30
+ Repeat the round's capture after the change and [compare](comparison.md) it with the earlier one across every affected part, view, time, identity, resolution and motion state, checking both the recorded defects and regressions. Account for every recorded defect before accepting the round; new or unexplained defects keep it open.
31
+
32
+ When a fix is tried in rounds, keep a round only if nothing got worse than in the best earlier round, and record every remaining failure with its numbers.
33
+
34
+ Look at the new capture yourself. Stale, blank or unobserved output stays unverified.
@@ -0,0 +1,29 @@
1
+ # Passes
2
+
3
+ A pass is what a cell draws of its subject. This document owns choosing passes, keeping them matched and marking what a measurement found.
4
+
5
+ ## Choose by the question
6
+
7
+ | Question | Pass |
8
+ | --- | --- |
9
+ | How the result looks to its audience | The finished picture from the delivery's renderer |
10
+ | Why a surface has its shape | The construction that generated it |
11
+ | What one quantity is across the picture | A structural pass that draws only that quantity, such as depth, normals, a mask, weights or curvature |
12
+ | Where joints, contacts, targets and paths are | An overlay of them on the picture |
13
+ | What a receiver is given | The guide pass itself, read through the receiver's input path |
14
+
15
+ Use a structural pass only for the quantity it documents, and read its range and convention before reading its colors. A plausible image does not establish that a pass holds what its name says.
16
+
17
+ ## Keep passes matched
18
+
19
+ Draw every pass of a set from the same evaluated state, at the same subjects, views and times, so two passes of one cell differ only in what they draw. Switching pass must not advance or restart motion, and each pass returns the scene and renderer state it borrowed.
20
+
21
+ A layer drawn over another shares its camera exactly. A layer drawn through a surface says so in its caption, because a line seen through a surface reads as lying on it.
22
+
23
+ ## Mark what a measurement found
24
+
25
+ A measurement that finds a defect knows where it is. Draw that place on the subject in a color the pass uses for nothing else, with a legend naming each color's finding, so the reviewer looks at the defect instead of searching the picture for a number from a report.
26
+
27
+ Draw each kind of thing in one color throughout a capture. Show labels to establish identity, and hide them where they cover what is judged.
28
+
29
+ A marked still shows where a measurement fired, never that the unmarked rest is right.
@@ -0,0 +1,5 @@
1
+ # Rendering cost
2
+
3
+ Measure rendering cost at the intended resolution, asset population and motion load. Separate startup or compilation, motion evaluation, transform updates and drawing from capture and encoding, so a repair addresses the actual bottleneck.
4
+
5
+ When a lower-specification host is a requirement, observe that host or report it as untested; a coarser mesh alone does not establish acceptable memory or frame time. Keep measured budgets and accepted visual compromises where the project records its decisions.
@@ -0,0 +1,19 @@
1
+ import type { IScaffoldPublicationReceipt } from "./IScaffoldPublicationReceipt";
2
+ import type { IScaffoldSyncPlan } from "./IScaffoldSyncPlan";
3
+ import type { IScaffoldSyncProps } from "./IScaffoldSyncProps";
4
+ /**
5
+ * Applies an explicit, conflict-free generated-instruction update.
6
+ *
7
+ * @evidence contracts/development/implementation.md#principled-implementation A complete fresh plan precedes any write; current-generation preconditions bind replacements, and the baseline is published only after all content succeeds.
8
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This coordinator reuses the existing publication receipts and native file ownership checks rather than implement another writer.
9
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Dry runs and any conflict write nothing; partial publication retains its truthful receipt and is never retried or rolled back.
10
+ * @evidence contracts/development/common.md#meaningful-documentation The result distinguishes conflicted, planned, unchanged and actual publication outcomes, including every retained retired path.
11
+ * @evidence contracts/development/implementation.md#efficient-algorithms Planning dominates byte scans; publication writes/readbacks only changed files and the final state.
12
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Unchanged instructions are omitted from the candidate; effectful publication and filesystem planning are never reused across calls.
13
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller receives the plan and optional receipt; mature publication owners attempt descriptor release and preserve close/partial failures.
14
+ */
15
+ export declare function syncScaffold(props: IScaffoldSyncProps): {
16
+ status: "conflicted" | "planned" | "unchanged" | IScaffoldPublicationReceipt["status"];
17
+ plan: IScaffoldSyncPlan;
18
+ receipt?: IScaffoldPublicationReceipt;
19
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.syncScaffold = syncScaffold;
4
+ const planScaffoldSync_1 = require("./planScaffoldSync");
5
+ const publishFiles_1 = require("./publishFiles");
6
+ /**
7
+ * Applies an explicit, conflict-free generated-instruction update.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation A complete fresh plan precedes any write; current-generation preconditions bind replacements, and the baseline is published only after all content succeeds.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure This coordinator reuses the existing publication receipts and native file ownership checks rather than implement another writer.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Dry runs and any conflict write nothing; partial publication retains its truthful receipt and is never retried or rolled back.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The result distinguishes conflicted, planned, unchanged and actual publication outcomes, including every retained retired path.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms Planning dominates byte scans; publication writes/readbacks only changed files and the final state.
14
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Unchanged instructions are omitted from the candidate; effectful publication and filesystem planning are never reused across calls.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller receives the plan and optional receipt; mature publication owners attempt descriptor release and preserve close/partial failures.
16
+ */
17
+ function syncScaffold(props) {
18
+ const plan = (0, planScaffoldSync_1.planScaffoldSync)(props);
19
+ if (plan.conflicts.length > 0)
20
+ return { status: "conflicted", plan };
21
+ if (props.check)
22
+ return { status: "planned", plan };
23
+ if (Object.keys(plan.files).length === 0)
24
+ return { status: "unchanged", plan };
25
+ const receipt = (0, publishFiles_1.publishFiles)(plan.location, plan.files, { force: true, expected: plan.expected });
26
+ return { status: receipt.status, plan, receipt };
27
+ }
28
+ //# sourceMappingURL=syncScaffold.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncScaffold.js","sourceRoot":"","sources":["../src/syncScaffold.ts"],"names":[],"mappings":";;;AAGA,yDAAsD;AACtD,iDAA8C;AAE9C;;;;;;;;;;GAUG;AACH,sBAA6B,KAAyB;IASpD,MAAM,IAAI,GAAsB,IAAA,mCAAgB,EAAC,KAAK,CAAC,CAAC;IACxD,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;IACrE,IAAI,KAAK,CAAC,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACpD,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC;QACtC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IACvC,MAAM,OAAO,GAAgC,IAAA,2BAAY,EACvD,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,EACV,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CACzC,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACnD,CAAC"}