@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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jeongho Nam
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,38 @@
1
- # Temporary Holding Version
1
+ # @automovie/template
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The scaffold every AutoMovie production starts from, together with the functions that render it and write it to disk. Most people reach it through the [`automovie` CLI](../../README.md#commands). Use this package directly when your own tool has to install or update a scaffold.
4
+
5
+ ## Use
6
+
7
+ ```bash
8
+ npm install @automovie/template
9
+ ```
10
+
11
+ ```ts
12
+ import { renderScaffold, writeFiles } from "@automovie/template";
13
+
14
+ const written: string[] = writeFiles("my-film", renderScaffold({ name: "my-film" }));
15
+ ```
16
+
17
+ ## Rendering a scaffold
18
+
19
+ A renderer returns a `{ path: content }` map and writes nothing. The map is the same for the same name and package version.
20
+
21
+ | Renderer | Produces |
22
+ | --- | --- |
23
+ | `renderScaffold` | A single production in its own repository |
24
+ | `renderWorkspaceScaffold` | A pnpm workspace root with shared instructions and dependency catalogs |
25
+ | `renderWorkspaceProductionScaffold` | One production for `movies/<shorts\|series>/<name>` inside such a workspace |
26
+ | `renderScaffoldInstructions` | Only the instruction files: `AGENTS.md`, `CLAUDE.md` and `.agents/skills` |
27
+
28
+ ## Writing it to disk
29
+
30
+ `writeFiles(location, files, options)` writes a rendered map and returns the paths written, or throws `ScaffoldPublicationError`. `publishFiles` takes the same arguments and returns a receipt instead: every completed file and the first one that did not complete. Both refuse a non-empty directory unless `force` is set, and neither deletes or rolls back what was already written when a later file fails.
31
+
32
+ ## Updating an installed project
33
+
34
+ An installed project changes only through sync, never through a package upgrade. `planScaffoldSync({ location, baseline? })` compares a project's instruction files with the current bundle, and `syncScaffold` applies that plan when it has no conflict; with `check: true` it only reports. Sync rewrites `AGENTS.md`, `CLAUDE.md` and the bundled skill files, never the contracts (the checklists a production answers), configuration, source or written content. A file edited locally is a conflict, and a conflict stops every write. The CLI exposes this as `automovie sync`.
35
+
36
+ ## What the scaffold contains
37
+
38
+ The scaffold contains instructions for the coding agent (`AGENTS.md`, `CLAUDE.md` and the skills), an `evidence.config.ts` and `lint.config.ts`, a `PROJECT.md` for the choices a production adopts, a test runner with the tests of the bundled tooling, and Node tooling under `src/executable`. It ships no film content. The generated [README](./scaffold/production/README.md#make-a-motion-hint) is the user's guide to the workflow and commands.
@@ -0,0 +1,92 @@
1
+ // Resolve the scaffold's dependency versions from the monorepo's real package
2
+ // manifests and pnpm catalogs for the published template version inventory.
3
+ import { readFileSync, writeFileSync } from "node:fs";
4
+ import { resolve } from "node:path";
5
+
6
+ import { resolveAutoMovieTemplateDependencyVersions } from "../src/resolveAutoMovieTemplateDependencyVersions";
7
+
8
+ interface IWorkspaceManifestVersion {
9
+ version: string;
10
+ }
11
+
12
+ const NEWLINE: string = String.fromCharCode(10);
13
+
14
+ const HERE: string = __dirname;
15
+ const ROOT: string = resolve(HERE, "../../..");
16
+
17
+ const packageVersion: (relative: string) => string = (
18
+ relative: string,
19
+ ): string => {
20
+ const manifest: IWorkspaceManifestVersion = JSON.parse(
21
+ readFileSync(resolve(ROOT, relative, "package.json"), "utf8"),
22
+ ) as IWorkspaceManifestVersion;
23
+ return `^${manifest.version}`;
24
+ };
25
+
26
+ const workspaceYaml: () => string = (): string =>
27
+ readFileSync(resolve(ROOT, "pnpm-workspace.yaml"), "utf8");
28
+
29
+ /** Read each workspace input once before resolving the scaffold placeholders. */
30
+ const resolveTemplateVersions: () => Record<string, string> = (): Record<
31
+ string,
32
+ string
33
+ > =>
34
+ resolveAutoMovieTemplateDependencyVersions({
35
+ workspace: workspaceYaml(),
36
+ packages: {
37
+ cli: packageVersion("packages/cli"),
38
+ engine: packageVersion("packages/engine"),
39
+ evidence: packageVersion("packages/evidence"),
40
+ human: packageVersion("packages/human"),
41
+ ingest: packageVersion("packages/ingest"),
42
+ interface: packageVersion("packages/interface"),
43
+ motions: packageVersion("packages/motions"),
44
+ recovery: packageVersion("packages/recovery"),
45
+ render: packageVersion("packages/render"),
46
+ template: packageVersion("packages/template"),
47
+ viewer: packageVersion("packages/viewer"),
48
+ },
49
+ });
50
+
51
+ /**
52
+ * The generated module body, from the versions this repository resolved.
53
+ *
54
+ * Unquoted identifier keys and double-quoted values, so the file it writes is already prettier-canonical: `JSON.stringify` quotes its keys and the repository's own `format:check` would flag the result of every sync.
55
+ */
56
+ const renderAutoMovieTemplateVersionsModule: (
57
+ versions: Readonly<Record<string, string>>,
58
+ ) => string = (versions: Readonly<Record<string, string>>): string =>
59
+ [
60
+ "// GENERATED by build/resolveTemplateVersions.ts from the workspace. Do not edit by hand.",
61
+ "// Bump the package versions / catalog and re-run `pnpm run build:versions`.",
62
+ "",
63
+ "/** Dependency versions baked into the scaffold, kept in sync with this repo. */",
64
+ "export const AUTOMOVIE_TEMPLATE_VERSIONS: Record<string, string> = {",
65
+ ...Object.entries(versions).map(
66
+ ([key, value]: [string, string]): string =>
67
+ ` ${key}: ${JSON.stringify(value)},`,
68
+ ),
69
+ "};",
70
+ "",
71
+ ].join(NEWLINE);
72
+
73
+ /**
74
+ * Write that module, when this file is the process entry.
75
+ *
76
+ * Guarded so importing the resolver does not write a file. The build command executes this entry directly when it intends to regenerate the module.
77
+ */
78
+ if (
79
+ process.argv[1] !== undefined &&
80
+ resolve(process.argv[1]) === resolve(__filename)
81
+ ) {
82
+ const target: string = resolve(
83
+ __dirname,
84
+ "../src/AUTOMOVIE_TEMPLATE_VERSIONS.ts",
85
+ );
86
+ writeFileSync(
87
+ target,
88
+ renderAutoMovieTemplateVersionsModule(resolveTemplateVersions()),
89
+ "utf8",
90
+ );
91
+ process.stdout.write(`synced template versions -> ${target}` + NEWLINE);
92
+ }
@@ -0,0 +1,28 @@
1
+ // Copy the repository skill items the scaffold's `$<name>` placeholders name
2
+ // into `lib/skills`, where the scaffold reader ships them in the placeholders'
3
+ // place, so a generated production inherits them verbatim instead of a hand copy.
4
+ import { cpSync, mkdirSync, rmSync } from "node:fs";
5
+ import { dirname, resolve } from "node:path";
6
+
7
+ import { listAutoMovieScaffoldFiles } from "../src/listAutoMovieScaffoldFiles";
8
+ import { scaffoldSharedSkillPath } from "../src/scaffoldSharedSkillPath";
9
+
10
+ const HERE: string = __dirname;
11
+ const ROOT_SKILLS: string = resolve(HERE, "../../../.agents/skills");
12
+ const SCAFFOLD: string = resolve(HERE, "../scaffold/instructions");
13
+
14
+ // `lib/skills` is the directory `src/scaffoldSharedSkillDirectory.ts` reads;
15
+ // it is rebuilt whole so an item a placeholder no longer names cannot ship.
16
+ const DESTINATION: string = resolve(HERE, "../lib/skills");
17
+
18
+ rmSync(DESTINATION, { force: true, recursive: true });
19
+ let count: number = 0;
20
+ for (const relative of listAutoMovieScaffoldFiles(SCAFFOLD)) {
21
+ const shared: string | null = scaffoldSharedSkillPath(relative);
22
+ if (shared === null) continue;
23
+ const destination: string = resolve(DESTINATION, shared);
24
+ mkdirSync(dirname(destination), { recursive: true });
25
+ cpSync(resolve(ROOT_SKILLS, shared), destination, { recursive: true });
26
+ count++;
27
+ }
28
+ console.log(`synced ${count} shared scaffold skill items`);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The named pnpm catalog of a workspace root that holds each `{{version:<key>}}` dependency.
3
+ *
4
+ * A workspace production writes `catalog:<name>` for every versioned dependency, and the root's `pnpm-workspace.yaml` lists the same names under `catalogs`, grouped like this repository's own catalogs: `automovie` for the CLI and every `@automovie/*` package, `samchon` for the compiler, lint, evidence and test tools, and `typescript`, `three`, `gltf`, `vite`, `media` and `utils` for the rest. Inside a catalog, packages released together share one YAML anchor: `&automovie`, `&ttsc` and `&three`.
5
+ *
6
+ * Principled implementation: The names match the catalogs the root renders, so each `catalog:<name>` specifier resolves through pnpm's named-catalog lookup to the entry the root declares.
7
+ * Clear and simple design: One table owns the key-to-catalog relation for the variable builder; the workspace YAML owns the entries and their anchors.
8
+ * Prohibited implementation shortcuts: Every key of `AUTOMOVIE_TEMPLATE_VERSIONS` has a catalog, so a new version key without one fails rendering instead of silently using the default catalog.
9
+ * Meaningful documentation: The prose names every catalog, its members and the shared anchors.
10
+ * Efficient algorithms: A constant record with no computation.
11
+ * Reuse equivalent work: Every render reads the same immutable record.
12
+ * Bound retention and release resources: One fixed record for the module lifetime.
13
+ */
14
+ export declare const AUTOMOVIE_TEMPLATE_CATALOGS: Readonly<Record<string, string>>;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTOMOVIE_TEMPLATE_CATALOGS = void 0;
4
+ /**
5
+ * The named pnpm catalog of a workspace root that holds each `{{version:<key>}}` dependency.
6
+ *
7
+ * A workspace production writes `catalog:<name>` for every versioned dependency, and the root's `pnpm-workspace.yaml` lists the same names under `catalogs`, grouped like this repository's own catalogs: `automovie` for the CLI and every `@automovie/*` package, `samchon` for the compiler, lint, evidence and test tools, and `typescript`, `three`, `gltf`, `vite`, `media` and `utils` for the rest. Inside a catalog, packages released together share one YAML anchor: `&automovie`, `&ttsc` and `&three`.
8
+ *
9
+ * Principled implementation: The names match the catalogs the root renders, so each `catalog:<name>` specifier resolves through pnpm's named-catalog lookup to the entry the root declares.
10
+ * Clear and simple design: One table owns the key-to-catalog relation for the variable builder; the workspace YAML owns the entries and their anchors.
11
+ * Prohibited implementation shortcuts: Every key of `AUTOMOVIE_TEMPLATE_VERSIONS` has a catalog, so a new version key without one fails rendering instead of silently using the default catalog.
12
+ * Meaningful documentation: The prose names every catalog, its members and the shared anchors.
13
+ * Efficient algorithms: A constant record with no computation.
14
+ * Reuse equivalent work: Every render reads the same immutable record.
15
+ * Bound retention and release resources: One fixed record for the module lifetime.
16
+ */
17
+ exports.AUTOMOVIE_TEMPLATE_CATALOGS = {
18
+ cli: "automovie",
19
+ engine: "automovie",
20
+ evidence: "automovie",
21
+ human: "automovie",
22
+ ingest: "automovie",
23
+ interface: "automovie",
24
+ motions: "automovie",
25
+ recovery: "automovie",
26
+ render: "automovie",
27
+ template: "automovie",
28
+ viewer: "automovie",
29
+ huggingFaceTransformers: "media",
30
+ h264Mp4Encoder: "media",
31
+ ffmpegStatic: "media",
32
+ kokoroJs: "media",
33
+ libopusWasm: "media",
34
+ mp4box: "media",
35
+ onnxruntimeNode: "media",
36
+ playwright: "media",
37
+ playwrightCore: "media",
38
+ pngjs: "media",
39
+ pngjsTypes: "media",
40
+ three: "three",
41
+ threeTypes: "three",
42
+ gltfTransformCore: "gltf",
43
+ vite: "vite",
44
+ nodeTypes: "utils",
45
+ nestiaE2e: "samchon",
46
+ ttsc: "samchon",
47
+ ttscLint: "samchon",
48
+ evidenceCli: "samchon",
49
+ evidenceLint: "samchon",
50
+ typescript: "typescript",
51
+ };
52
+ //# sourceMappingURL=AUTOMOVIE_TEMPLATE_CATALOGS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AUTOMOVIE_TEMPLATE_CATALOGS.js","sourceRoot":"","sources":["../src/AUTOMOVIE_TEMPLATE_CATALOGS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACU,QAAA,2BAA2B,GAAqC;IAC3E,GAAG,EAAE,WAAW;IAChB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,WAAW;IACnB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,WAAW;IACnB,uBAAuB,EAAE,OAAO;IAChC,cAAc,EAAE,OAAO;IACvB,YAAY,EAAE,OAAO;IACrB,QAAQ,EAAE,OAAO;IACjB,WAAW,EAAE,OAAO;IACpB,MAAM,EAAE,OAAO;IACf,eAAe,EAAE,OAAO;IACxB,UAAU,EAAE,OAAO;IACnB,cAAc,EAAE,OAAO;IACvB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,OAAO;IACnB,iBAAiB,EAAE,MAAM;IACzB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,YAAY;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** Dependency versions baked into the scaffold, kept in sync with this repo. */
2
+ export declare const AUTOMOVIE_TEMPLATE_VERSIONS: Record<string, string>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // GENERATED by build/resolveTemplateVersions.ts from the workspace. Do not edit by hand.
3
+ // Bump the package versions / catalog and re-run `pnpm run build:versions`.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AUTOMOVIE_TEMPLATE_VERSIONS = void 0;
6
+ /** Dependency versions baked into the scaffold, kept in sync with this repo. */
7
+ exports.AUTOMOVIE_TEMPLATE_VERSIONS = {
8
+ cli: "^0.1.0",
9
+ engine: "^0.1.0",
10
+ evidence: "^0.1.0",
11
+ human: "^0.1.0",
12
+ ingest: "^0.1.0",
13
+ interface: "^0.1.0",
14
+ motions: "^0.1.0",
15
+ recovery: "^0.1.0",
16
+ render: "^0.1.0",
17
+ template: "^0.1.0",
18
+ viewer: "^0.1.0",
19
+ huggingFaceTransformers: "3.8.1",
20
+ h264Mp4Encoder: "^1.0.12",
21
+ ffmpegStatic: "^5.2.0",
22
+ kokoroJs: "1.2.1",
23
+ libopusWasm: "^0.2.0",
24
+ mp4box: "^2.4.1",
25
+ onnxruntimeNode: "1.21.0",
26
+ playwright: "^1.60.0",
27
+ playwrightCore: "^1.60.0",
28
+ pngjs: "^7.0.0",
29
+ pngjsTypes: "^6.0.5",
30
+ three: "^0.186.0",
31
+ gltfTransformCore: "^4.5.0",
32
+ threeTypes: "^0.186.0",
33
+ vite: "^5.4.10",
34
+ nodeTypes: "^22.19.17",
35
+ nestiaE2e: "^12.1.0",
36
+ ttsc: "^0.36.3",
37
+ ttscLint: "^0.36.3",
38
+ evidenceCli: "^0.8.2",
39
+ evidenceLint: "^0.36.3",
40
+ typescript: "^7.0.2",
41
+ };
42
+ //# sourceMappingURL=AUTOMOVIE_TEMPLATE_VERSIONS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AUTOMOVIE_TEMPLATE_VERSIONS.js","sourceRoot":"","sources":["../src/AUTOMOVIE_TEMPLATE_VERSIONS.ts"],"names":[],"mappings":";AAAA,yFAAyF;AACzF,4EAA4E;;;AAE5E,gFAAgF;AACnE,QAAA,2BAA2B,GAA2B;IACjE,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,OAAO;IAChC,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,QAAQ;IACtB,QAAQ,EAAE,OAAO;IACjB,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,QAAQ;IACzB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,UAAU;IACjB,iBAAiB,EAAE,QAAQ;IAC3B,UAAU,EAAE,UAAU;IACtB,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,QAAQ;CACrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * One bundled scaffold layer, a directory under the package's `scaffold` folder that the renderers compose.
3
+ *
4
+ * - `instructions`: `AGENTS.md`, `CLAUDE.md` and `.agents/skills`, the shared instruction surface that explicit sync owns.
5
+ * - `production`: one production's package, configuration, `PROJECT.md`, README, source and tests.
6
+ * - `workspace`: a pnpm workspace root's `pnpm-workspace.yaml`, `package.json`, README and ignore rules.
7
+ *
8
+ * A single production is `instructions` plus `production`; a workspace root is `instructions` plus `workspace`, and each production added to it is `production` alone.
9
+ *
10
+ * @evidence contracts/development/design.md#principled-representation The three members partition the shipped scaffold by owner: shared instructions, one production, and the workspace root, so each installation is a union of whole layers.
11
+ * @evidence contracts/development/design.md#minimal-and-owned-surface A closed union names the folders the renderers may read, so no caller can request a path outside the bundle.
12
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts No layer carries a per-installation exception; a layout difference is a token value or another layer.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The comment lists every layer's content and which installations compose which layers.
14
+ */
15
+ export type AutoMovieScaffoldLayer = "instructions" | "production" | "workspace";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AutoMovieScaffoldLayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieScaffoldLayer.js","sourceRoot":"","sources":["../src/AutoMovieScaffoldLayer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ /** Windows SDK directory attribute bit used by held-handle inspection to distinguish directory parents and ordinary child files. */
2
+ export declare const FILE_ATTRIBUTE_DIRECTORY: number;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILE_ATTRIBUTE_DIRECTORY = void 0;
4
+ /** Windows SDK directory attribute bit used by held-handle inspection to distinguish directory parents and ordinary child files. */
5
+ exports.FILE_ATTRIBUTE_DIRECTORY = 0x10;
6
+ //# sourceMappingURL=FILE_ATTRIBUTE_DIRECTORY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FILE_ATTRIBUTE_DIRECTORY.js","sourceRoot":"","sources":["../src/FILE_ATTRIBUTE_DIRECTORY.ts"],"names":[],"mappings":";;;AAAA,oIAAoI;AACvH,QAAA,wBAAwB,GAAW,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Inputs for one pnpm workspace catalog lookup.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation The lookup is addressed by catalog and dependency name because pnpm names catalog entries that way in `catalogs.<catalog>.<dependency>`.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Three strings are the whole question, and parsing stays with `createAutoMovieCatalogVersionResolver`.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts There is no default catalog or fallback value, so a lookup either names a real entry or throws.
7
+ * @evidence contracts/development/common.md#meaningful-documentation Each member states which level of the manifest it selects and that only direct children count.
8
+ */
9
+ export interface IAutoMovieCatalogVersionProps {
10
+ /** Catalog name, a direct child of the top-level `catalogs` mapping. */
11
+ catalog: string;
12
+ /** Dependency name, a direct child of the requested catalog. */
13
+ dependency: string;
14
+ /** Complete `pnpm-workspace.yaml` text. */
15
+ workspace: string;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieCatalogVersionProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieCatalogVersionProps.js","sourceRoot":"","sources":["../src/IAutoMovieCatalogVersionProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Project-owned values for {@link renderScaffold}, {@link renderWorkspaceScaffold} and {@link renderWorkspaceProductionScaffold}.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation The record carries only what differs per project; versions come from the generated table at build time, so a caller cannot pin the scaffold to dependency ranges the package was not built with.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface One field serves the one per-project token the scaffold has, `{{name}}`, and the name rule lives in `assertScaffoldProjectName`, which every renderer applies.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The record has no override or escape field that would let a caller supply raw token values past the name rule.
7
+ * @evidence contracts/development/common.md#meaningful-documentation The member comment states where the name lands, that it is trimmed, and which names are refused.
8
+ */
9
+ export interface IAutoMovieScaffoldProps {
10
+ /**
11
+ * The new project's or workspace's name, substituted into its package.json and README heading after trimming. assertScaffoldProjectName documents the refused separators, ASCII controls and device-name patterns; its checks do not validate npm naming or every filesystem limit.
12
+ */
13
+ name: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieScaffoldProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieScaffoldProps.js","sourceRoot":"","sources":["../src/IAutoMovieScaffoldProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * One scaffold source before its path and text are rendered by {@link renderScaffoldEntries}.
3
+ *
4
+ * The source path is kept until the whole list has been rendered, so a collision error can name both sources that produce the same output path.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation Keeping the unrendered path is what makes a collision diagnosable, because two different sources can render to one output only after path rendering and the `.gitignore` rename.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Two fields are the whole input a render needs, and reading them from disk stays with `renderScaffold`, so the renderer can take any list.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The entry has no pre-rendered or override field, so every source passes through the same token and collision checks.
9
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states why the source path is kept, and each member states its form before rendering.
10
+ */
11
+ export interface IAutoMovieScaffoldSourceEntry {
12
+ /** File text before line-ending normalization and token rendering. */
13
+ content: string;
14
+ /**
15
+ * Path relative to the scaffold root, with the host's separator, before the `_gitignore` rename and token rendering.
16
+ */
17
+ relative: string;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieScaffoldSourceEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieScaffoldSourceEntry.js","sourceRoot":"","sources":["../src/IAutoMovieScaffoldSourceEntry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import type { IAutoMovieWorkspacePackageVersions } from "./IAutoMovieWorkspacePackageVersions";
2
+ /**
3
+ * Inputs of {@link resolveAutoMovieTemplateDependencyVersions}, read by the caller before resolution so the resolver itself touches no file.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation Passing the manifest text and the package ranges as values makes resolution a pure function of its inputs, which is what lets the build script and the test drive the same code with different workspaces.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The two fields mirror the two sources of the version table, the pnpm catalogs and the workspace package manifests, and acquiring them stays with the build script.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Neither field has a default, so a resolution can never fall back to a version that was not read from the workspace.
8
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states that the caller acquires the inputs; the members state which file each comes from and what it must contain.
9
+ */
10
+ export interface IAutoMovieTemplateDependencyVersionsProps {
11
+ /**
12
+ * Complete `pnpm-workspace.yaml` text. Its top-level `catalogs` mapping must contain every catalog and dependency the resolver reads.
13
+ */
14
+ workspace: string;
15
+ /** Ranges of the workspace's own packages, copied into the table unchanged. */
16
+ packages: IAutoMovieWorkspacePackageVersions;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieTemplateDependencyVersionsProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieTemplateDependencyVersionsProps.js","sourceRoot":"","sources":["../src/IAutoMovieTemplateDependencyVersionsProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Version ranges of the AutoMovie workspace packages, keyed by package directory name, as the scaffold's `{{version:<key>}}` tokens receive them.
3
+ *
4
+ * The build reads each `packages/<key>/package.json` and supplies `^` plus its `version`; {@link resolveAutoMovieTemplateDependencyVersions} copies every value unchanged into the generated version table. Each value is an npm range that a generated project's `package.json` writes as the package's dependency.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation The build anchors each caret range at the package's own version; npm semver keeps the leftmost nonzero component fixed, so a current 0.1.x package admits later 0.1.x patches rather than 0.2.0. The resolver copies caller-supplied ranges without interpreting or validating semver.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface One required field per workspace package makes a missing package a type error at the build script instead of a missing token at render time; reading the manifests stays in the build script.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The record holds every workspace package uniformly, with no field defaulted or special-cased for one package.
9
+ * @evidence contracts/development/common.md#meaningful-documentation The comment states the keys, where each value comes from, its form, and where it ends up; the members name the published package each range belongs to.
10
+ */
11
+ export interface IAutoMovieWorkspacePackageVersions {
12
+ /** Range of `automovie`, the command-line package. */
13
+ cli: string;
14
+ /** Range of `@automovie/engine`. */
15
+ engine: string;
16
+ /** Range of `@automovie/evidence`. */
17
+ evidence: string;
18
+ /** Range of `@automovie/human`. */
19
+ human: string;
20
+ /** Range of `@automovie/ingest`. */
21
+ ingest: string;
22
+ /** Range of `@automovie/interface`. */
23
+ interface: string;
24
+ /** Range of `@automovie/motions`. */
25
+ motions: string;
26
+ /** Range of `@automovie/recovery`. */
27
+ recovery: string;
28
+ /** Range of `@automovie/render`. */
29
+ render: string;
30
+ /** Range of `@automovie/template`. */
31
+ template: string;
32
+ /** Range of `@automovie/viewer`. */
33
+ viewer: string;
34
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieWorkspacePackageVersions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieWorkspacePackageVersions.js","sourceRoot":"","sources":["../src/IAutoMovieWorkspacePackageVersions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,71 @@
1
+ import { type IBoundChildStatus } from "./IBoundChildStatus";
2
+ /**
3
+ * One child opened relative to a held parent, driven through whatever the platform hands back: a POSIX descriptor served by `node:fs`, or a Windows HANDLE served by kernel32. Node's own C runtime does not share descriptor tables with `ucrtbase.dll`, so a Windows handle is never lowered to a CRT descriptor; every byte, flush, inspection, and close goes through the handle itself.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation A held child exposes positioned byte transfer, status, flush and close without converting Windows HANDLEs into unrelated C-runtime descriptors.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The publication sequence consumes one child contract while each native adapter owns its actual file primitive.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts All child operations address the held handle, with no retry through a successor pathname or replacement of foreign methods.
8
+ * @evidence contracts/development/common.md#meaningful-documentation Method comments state byte positions, transferred counts, native failure effects and explicit release ownership.
9
+ */
10
+ export interface IBoundChild {
11
+ /**
12
+ * Release the created or verification child descriptor or HANDLE; native close failure throws.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation POSIX closeSync and Windows CloseHandle release the child primitive each adapter acquired; a failed native close throws and cannot establish release.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Publication and resident verification call this operation when their own held-child work ends, keeping cleanup sequencing outside the platform adapters.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The child descriptor release declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The prose covers both created and verification children and says native close failure throws; a failed call carries no release guarantee.
18
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The child descriptor release signature specifies behavior but contains no executable algorithm.
19
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The child descriptor release interface member implements no cross-call reuse or invalidation policy.
20
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The child descriptor release declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
21
+ */
22
+ close(): void;
23
+ /**
24
+ * Read at most `length` bytes into `target` at its byte `offset`, starting at absolute file byte `position`; return the transferred count, including zero at end of file, or throw on native failure.
25
+ *
26
+ * @evidence contracts/development/implementation.md#principled-implementation Explicit file and buffer byte positions make POSIX positioned reads and Windows seek-then-read serve the same readback loop; callers provide non-negative positions and lengths within their allocated buffer.
27
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The readback owner advances by the returned count, while each adapter supplies native byte transfer and error reporting.
28
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The positioned child byte reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
29
+ * @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes buffer offset from absolute file position, uses byte units, and states short reads, zero at end of file and thrown native errors.
30
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The positioned child byte reading signature specifies behavior but contains no executable algorithm.
31
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The positioned child byte reading interface member implements no cross-call reuse or invalidation policy.
32
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The positioned child byte reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
33
+ */
34
+ read(target: Buffer, offset: number, length: number, position: number): number;
35
+ /**
36
+ * Read ordinary-file, link-count, size and written-generation facts through this held child handle.
37
+ *
38
+ * @evidence contracts/development/implementation.md#principled-implementation fstatSync or GetFileInformationByHandle observes the held child instead of a successor pathname; the version includes physical identity, size and native last-write state for resident comparison.
39
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One status record supplies ordinary-file admission, exact-size completion and generation comparison without a second identity-only API.
40
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The held child generation reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
41
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states handle-based provenance and the returned qualification and generation facts; IBoundChildStatus documents exact byte size and link-count meanings.
42
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The held child generation reading signature specifies behavior but contains no executable algorithm.
43
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The held child generation reading interface member implements no cross-call reuse or invalidation policy.
44
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The held child generation reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
45
+ */
46
+ status(): IBoundChildStatus;
47
+ /**
48
+ * Flush this child's completed writes to its native filesystem handle; failure throws.
49
+ *
50
+ * @evidence contracts/development/implementation.md#principled-implementation fsyncSync or FlushFileBuffers flushes this writer before readback and completion, propagating native failure instead of treating a successful write as a successful flush.
51
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The publication sequence chooses the flush boundary after its write loop; the adapter owns the platform-specific flush call.
52
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The child flush request declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
53
+ * @evidence contracts/development/common.md#meaningful-documentation The prose identifies this child's completed writes as the flush subject and says a failed native flush throws.
54
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The child flush request signature specifies behavior but contains no executable algorithm.
55
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The child flush request interface member implements no cross-call reuse or invalidation policy.
56
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The child flush request declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
57
+ */
58
+ sync(): void;
59
+ /**
60
+ * Write at most `length` bytes from `source` at its byte `offset`, starting at absolute file byte `position`; return the confirmed transferred count or throw on native failure.
61
+ *
62
+ * @evidence contracts/development/implementation.md#principled-implementation Explicit positions map to POSIX positioned writes or Windows seek-then-write; the publication loop supplies an in-bounds source slice and advances only by the native confirmed count, refusing zero progress.
63
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Byte transfer returns progress to the publication owner, which alone accumulates partial byte counts and decides when to flush.
64
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The positioned child byte writing declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
65
+ * @evidence contracts/development/common.md#meaningful-documentation The prose separates source-buffer offset from absolute file position, specifies byte units and confirmed short-write counts, and says native failure throws.
66
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The positioned child byte writing signature specifies behavior but contains no executable algorithm.
67
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The positioned child byte writing interface member implements no cross-call reuse or invalidation policy.
68
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The positioned child byte writing declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
69
+ */
70
+ write(source: Buffer, offset: number, length: number, position: number): number;
71
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IBoundChild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBoundChild.js","sourceRoot":"","sources":["../src/IBoundChild.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * What the held child handle reports about the file it names.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation Ordinary-file and link-count facts accompany exact byte size and an opaque written-generation key observed through the child handle.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The status keeps the facts required by write admission and resident verification without an unread separate file-identity field.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The generation key includes actual identity and last-write state rather than a pathname-derived assumption.
7
+ * @evidence contracts/development/common.md#meaningful-documentation Members explain link and regular-file qualification, byte units and opaque generation comparison.
8
+ */
9
+ export interface IBoundChildStatus {
10
+ /** Whether the held child is a symbolic link or Windows reparse point. */
11
+ link: boolean;
12
+ /** Native hard-link population; exactly one is required before and after writing. */
13
+ links: bigint;
14
+ /** Whether the held child is an ordinary file, excluding links and directories. */
15
+ regular: boolean;
16
+ /** Exact current file size in bytes, compared with the requested content length. */
17
+ size: bigint;
18
+ /** Opaque physical-identity, size and last-write generation key for before-and-after resident verification. */
19
+ version: string;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IBoundChildStatus.js.map