@automovie/template 0.1.0 → 0.3.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 (784) hide show
  1. package/README.md +14 -18
  2. package/generated/pnpm-workspace.json +54 -0
  3. package/generated/skills/3d-modeling/conditioning.md +87 -0
  4. package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
  5. package/generated/skills/3d-modeling/crafting/construction.md +63 -0
  6. package/generated/skills/3d-modeling/crafting/lofting.md +75 -0
  7. package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
  8. package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
  9. package/generated/skills/3d-modeling/diffusion/models.md +43 -0
  10. package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
  11. package/generated/skills/3d-modeling/diffusion/request.md +18 -0
  12. package/generated/skills/3d-modeling/diffusion/shape-hints.md +33 -0
  13. package/generated/skills/3d-modeling/inspection.md +57 -0
  14. package/generated/skills/3d-modeling/modularization.md +25 -0
  15. package/generated/skills/3d-modeling/rigging.md +100 -0
  16. package/generated/skills/3d-modeling/sources.md +29 -0
  17. package/generated/skills/contracts/development/common.md +13 -0
  18. package/generated/skills/contracts/development/design.md +27 -0
  19. package/generated/skills/contracts/development/implementation.md +49 -0
  20. package/generated/skills/contracts/development/testing.md +27 -0
  21. package/generated/skills/development/repair.md +11 -0
  22. package/generated/skills/documentation/SKILL.md +19 -0
  23. package/generated/skills/documentation/writing.md +85 -0
  24. package/generated/skills/motion/laws/authoring.md +45 -0
  25. package/generated/skills/motion/laws/contacts.md +41 -0
  26. package/generated/skills/motion/laws/declaration.md +25 -0
  27. package/generated/skills/motion/laws/transitions.md +39 -0
  28. package/generated/skills/motion/laws/variation.md +23 -0
  29. package/generated/skills/motion/laws/verification.md +32 -0
  30. package/generated/skills/prompting/SKILL.md +100 -0
  31. package/generated/skills/visual-debugging/capture.md +64 -0
  32. package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
  33. package/generated/skills/visual-debugging/correction-rounds.md +25 -0
  34. package/generated/skills/visual-debugging/passes.md +29 -0
  35. package/generated/skills/visual-debugging/rendering-cost.md +5 -0
  36. package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
  37. package/lib/assertScaffoldProjectName.d.ts +1 -1
  38. package/lib/assertScaffoldProjectName.js +1 -1
  39. package/lib/createAutoMovieScaffold.d.ts +27 -0
  40. package/lib/createAutoMovieScaffold.js +127 -0
  41. package/lib/createAutoMovieScaffold.js.map +1 -0
  42. package/lib/index.d.ts +2 -45
  43. package/lib/index.js +2 -45
  44. package/lib/index.js.map +1 -1
  45. package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
  46. package/lib/listAutoMovieScaffoldFiles.js +2 -2
  47. package/lib/renderAutoMovieWorkspace.d.ts +22 -0
  48. package/lib/renderAutoMovieWorkspace.js +141 -0
  49. package/lib/renderAutoMovieWorkspace.js.map +1 -0
  50. package/package.json +9 -12
  51. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +22 -18
  52. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +8 -10
  53. package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +24 -0
  54. package/scaffold/instructions/.agents/skills/audio/SKILL.md +11 -22
  55. package/scaffold/instructions/.agents/skills/audio/acquisition.md +22 -12
  56. package/scaffold/instructions/.agents/skills/audio/diffusion/SKILL.md +18 -0
  57. package/scaffold/instructions/.agents/skills/audio/diffusion/cloning.md +25 -0
  58. package/scaffold/instructions/.agents/skills/audio/diffusion/models.md +59 -0
  59. package/scaffold/instructions/.agents/skills/audio/diffusion/prompts.md +45 -0
  60. package/scaffold/instructions/.agents/skills/audio/film-sound.md +27 -0
  61. package/scaffold/instructions/.agents/skills/audio/generated-sound.md +17 -0
  62. package/scaffold/instructions/.agents/skills/audio/listening.md +13 -0
  63. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
  64. package/scaffold/instructions/.agents/skills/audio/soundtrack.md +7 -0
  65. package/scaffold/instructions/.agents/skills/automovie/SKILL.md +32 -0
  66. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +6 -35
  67. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +13 -13
  68. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +20 -11
  69. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +17 -10
  70. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +10 -10
  71. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +24 -26
  72. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +19 -19
  73. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +18 -18
  74. package/scaffold/instructions/.agents/skills/contracts/items.md +26 -0
  75. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +36 -26
  76. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
  77. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +3 -3
  78. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +2 -2
  79. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +2 -2
  80. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
  81. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
  82. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +2 -2
  83. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +7 -7
  84. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
  85. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
  86. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +3 -3
  87. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
  88. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
  89. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
  90. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
  91. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
  92. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
  93. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +5 -5
  94. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
  95. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +5 -5
  96. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
  97. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +5 -5
  98. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
  99. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
  100. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
  101. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
  102. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +3 -7
  103. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +5 -5
  104. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
  105. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
  106. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
  107. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
  108. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +5 -5
  109. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -9
  110. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +9 -11
  111. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -4
  112. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -6
  113. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -6
  114. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -9
  115. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +3 -5
  116. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +38 -48
  117. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -10
  118. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -6
  119. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -10
  120. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -13
  121. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +4 -7
  122. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +13 -13
  123. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +15 -17
  124. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +6 -6
  125. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +16 -18
  126. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -22
  127. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +8 -13
  128. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +7 -10
  129. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -24
  130. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -17
  131. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -19
  132. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -9
  133. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +7 -8
  134. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +30 -28
  135. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +10 -11
  136. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -20
  137. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +14 -28
  138. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +40 -47
  139. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +18 -20
  140. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -26
  141. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -19
  142. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -10
  143. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -7
  144. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -6
  145. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
  146. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
  147. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
  148. package/scaffold/instructions/.agents/skills/development/SKILL.md +14 -26
  149. package/scaffold/instructions/.agents/skills/development/entities.md +25 -21
  150. package/scaffold/instructions/.agents/skills/development/modules.md +31 -0
  151. package/scaffold/instructions/.agents/skills/development/source-layout.md +65 -41
  152. package/scaffold/instructions/.agents/skills/development/testing.md +12 -10
  153. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +7 -7
  154. package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
  155. package/scaffold/instructions/.agents/skills/evidence/answering.md +3 -5
  156. package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
  157. package/scaffold/instructions/.agents/skills/image/SKILL.md +9 -62
  158. package/scaffold/instructions/.agents/skills/image/canon-references.md +37 -0
  159. package/scaffold/instructions/.agents/skills/image/diffusion/SKILL.md +23 -0
  160. package/scaffold/instructions/.agents/skills/image/diffusion/conditioning.md +29 -0
  161. package/scaffold/instructions/.agents/skills/image/diffusion/consistency.md +25 -0
  162. package/scaffold/instructions/.agents/skills/image/diffusion/editing.md +15 -0
  163. package/scaffold/instructions/.agents/skills/image/diffusion/finishing.md +11 -0
  164. package/scaffold/instructions/.agents/skills/image/diffusion/models.md +35 -0
  165. package/scaffold/instructions/.agents/skills/image/diffusion/prompting.md +27 -0
  166. package/scaffold/instructions/.agents/skills/image/turnaround-views.md +17 -0
  167. package/scaffold/instructions/.agents/skills/motion/SKILL.md +15 -48
  168. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +25 -5
  169. package/scaffold/instructions/.agents/skills/motion/compose/composition.md +66 -0
  170. package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
  171. package/scaffold/instructions/.agents/skills/motion/control-channels.md +25 -9
  172. package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +28 -0
  173. package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +31 -0
  174. package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +49 -0
  175. package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +32 -0
  176. package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +59 -0
  177. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +9 -13
  178. package/scaffold/instructions/.agents/skills/motion/judgment.md +37 -0
  179. package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
  180. package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
  181. package/scaffold/instructions/.agents/skills/motion/laws/extension.md +39 -0
  182. package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +51 -0
  183. package/scaffold/instructions/.agents/skills/motion/performance.md +11 -0
  184. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +15 -15
  185. package/scaffold/instructions/.agents/skills/motion/retargeting.md +9 -11
  186. package/scaffold/instructions/.agents/skills/motion/segment-review.md +7 -7
  187. package/scaffold/instructions/.agents/skills/motion/staging.md +24 -14
  188. package/scaffold/instructions/.agents/skills/production/SKILL.md +11 -38
  189. package/scaffold/instructions/.agents/skills/production/assembly.md +19 -11
  190. package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
  191. package/scaffold/instructions/.agents/skills/production/director.md +17 -0
  192. package/scaffold/instructions/.agents/skills/production/media-records.md +38 -15
  193. package/scaffold/instructions/.agents/skills/production/project-context.md +77 -14
  194. package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
  195. package/scaffold/instructions/.agents/skills/production/stage-caches.md +9 -13
  196. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +10 -10
  197. package/scaffold/instructions/.agents/skills/production/workflow.md +45 -0
  198. package/scaffold/instructions/.agents/skills/review/SKILL.md +10 -17
  199. package/scaffold/instructions/.agents/skills/review/delivery-review.md +50 -33
  200. package/scaffold/instructions/.agents/skills/review/estimation.md +35 -16
  201. package/scaffold/instructions/.agents/skills/review/independent-reading.md +12 -18
  202. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
  203. package/scaffold/instructions/.agents/skills/review/source-review.md +7 -23
  204. package/scaffold/instructions/.agents/skills/story/SKILL.md +10 -13
  205. package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
  206. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +10 -16
  207. package/scaffold/instructions/.agents/skills/story/correction/repair.md +18 -16
  208. package/scaffold/instructions/.agents/skills/story/document-layout.md +33 -21
  209. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +12 -9
  210. package/scaffold/instructions/.agents/skills/story/layers/brief.md +5 -21
  211. package/scaffold/instructions/.agents/skills/story/layers/notation.md +27 -16
  212. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +31 -7
  213. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +5 -5
  214. package/scaffold/instructions/.agents/skills/story/layers/settings.md +28 -17
  215. package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
  216. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
  217. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +7 -7
  218. package/scaffold/instructions/.agents/skills/story/planning/direction.md +5 -5
  219. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +13 -10
  220. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +13 -11
  221. package/scaffold/instructions/.agents/skills/story/planning/research.md +21 -11
  222. package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +15 -0
  223. package/scaffold/instructions/.agents/skills/story/workflow/long.md +42 -0
  224. package/scaffold/instructions/.agents/skills/story/workflow/routes.md +46 -0
  225. package/scaffold/instructions/.agents/skills/story/workflow/short.md +41 -0
  226. package/scaffold/instructions/.agents/skills/video/SKILL.md +9 -23
  227. package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
  228. package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
  229. package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +31 -0
  230. package/scaffold/instructions/.agents/skills/video/diffusion/models.md +47 -0
  231. package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +53 -0
  232. package/scaffold/instructions/.agents/skills/video/direct-film.md +53 -0
  233. package/scaffold/instructions/.agents/skills/video/finishing.md +46 -0
  234. package/scaffold/instructions/.agents/skills/video/generated-film.md +24 -0
  235. package/scaffold/instructions/.agents/skills/video/generation.md +32 -13
  236. package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
  237. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +19 -18
  238. package/scaffold/instructions/AGENTS.md +44 -70
  239. package/scaffold/production/PROJECT.md +1 -1
  240. package/scaffold/production/README.md +44 -99
  241. package/scaffold/production/_gitignore +1 -2
  242. package/scaffold/production/index.html +4 -8
  243. package/scaffold/production/lint.config.ts +1 -1
  244. package/scaffold/production/package.json +31 -31
  245. package/scaffold/production/src/IFilm.ts +3 -3
  246. package/scaffold/production/src/IFilmProduction.ts +21 -6
  247. package/scaffold/production/src/composition/films/index.ts +3 -2
  248. package/scaffold/production/src/composition/films/starter.ts +2 -2
  249. package/scaffold/production/src/executable/physics.ts +8 -4
  250. package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +4 -4
  251. package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +5 -3
  252. package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +7 -7
  253. package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +4 -2
  254. package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +3 -3
  255. package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +3 -3
  256. package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +4 -2
  257. package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +2 -2
  258. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +17 -18
  259. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +17 -18
  260. package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +4 -4
  261. package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +37 -21
  262. package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +25 -15
  263. package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +1 -1
  264. package/scaffold/production/src/main.ts +9 -195
  265. package/scaffold/production/src/markFilmProduction.ts +43 -0
  266. package/scaffold/production/src/selectFilm.ts +3 -5
  267. package/scaffold/production/src/subjects.ts +65 -0
  268. package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +129 -0
  269. package/scaffold/production/tsconfig.json +1 -2
  270. package/scaffold/production/vite.config.ts +16 -2
  271. package/scaffold/workspace/README.md +6 -8
  272. package/scaffold/workspace/package.json +1 -1
  273. package/src/IAutoMovieScaffoldProps.ts +15 -6
  274. package/src/assertScaffoldProjectName.ts +1 -1
  275. package/src/createAutoMovieScaffold.ts +115 -0
  276. package/src/index.ts +2 -46
  277. package/src/listAutoMovieScaffoldFiles.ts +2 -2
  278. package/src/renderAutoMovieWorkspace.ts +157 -0
  279. package/build/resolveTemplateVersions.ts +0 -92
  280. package/build/syncScaffoldInstructions.ts +0 -28
  281. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
  282. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
  283. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
  284. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
  285. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
  286. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
  287. package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
  288. package/lib/AutoMovieScaffoldLayer.js +0 -3
  289. package/lib/AutoMovieScaffoldLayer.js.map +0 -1
  290. package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
  291. package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
  292. package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
  293. package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
  294. package/lib/IAutoMovieCatalogVersionProps.js +0 -3
  295. package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
  296. package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
  297. package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
  298. package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
  299. package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
  300. package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
  301. package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
  302. package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
  303. package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
  304. package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
  305. package/lib/IBoundChild.d.ts +0 -71
  306. package/lib/IBoundChild.js +0 -3
  307. package/lib/IBoundChild.js.map +0 -1
  308. package/lib/IBoundChildStatus.d.ts +0 -20
  309. package/lib/IBoundChildStatus.js +0 -3
  310. package/lib/IBoundChildStatus.js.map +0 -1
  311. package/lib/IBoundParent.d.ts +0 -61
  312. package/lib/IBoundParent.js +0 -3
  313. package/lib/IBoundParent.js.map +0 -1
  314. package/lib/IBoundParentStatus.d.ts +0 -14
  315. package/lib/IBoundParentStatus.js +0 -3
  316. package/lib/IBoundParentStatus.js.map +0 -1
  317. package/lib/ICreateResult.d.ts +0 -27
  318. package/lib/ICreateResult.js +0 -3
  319. package/lib/ICreateResult.js.map +0 -1
  320. package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
  321. package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
  322. package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
  323. package/lib/IScaffoldCompletedPublication.d.ts +0 -15
  324. package/lib/IScaffoldCompletedPublication.js +0 -3
  325. package/lib/IScaffoldCompletedPublication.js.map +0 -1
  326. package/lib/IScaffoldFileSnapshot.d.ts +0 -24
  327. package/lib/IScaffoldFileSnapshot.js +0 -3
  328. package/lib/IScaffoldFileSnapshot.js.map +0 -1
  329. package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
  330. package/lib/IScaffoldParentPublicationRequest.js +0 -3
  331. package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
  332. package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
  333. package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
  334. package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
  335. package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
  336. package/lib/IScaffoldPhysicalDirectory.js +0 -3
  337. package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
  338. package/lib/IScaffoldPosixConstants.d.ts +0 -24
  339. package/lib/IScaffoldPosixConstants.js +0 -3
  340. package/lib/IScaffoldPosixConstants.js.map +0 -1
  341. package/lib/IScaffoldPublicationEntry.d.ts +0 -20
  342. package/lib/IScaffoldPublicationEntry.js +0 -3
  343. package/lib/IScaffoldPublicationEntry.js.map +0 -1
  344. package/lib/IScaffoldPublicationFailure.d.ts +0 -18
  345. package/lib/IScaffoldPublicationFailure.js +0 -3
  346. package/lib/IScaffoldPublicationFailure.js.map +0 -1
  347. package/lib/IScaffoldPublicationOptions.d.ts +0 -17
  348. package/lib/IScaffoldPublicationOptions.js +0 -3
  349. package/lib/IScaffoldPublicationOptions.js.map +0 -1
  350. package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
  351. package/lib/IScaffoldPublicationReceipt.js +0 -3
  352. package/lib/IScaffoldPublicationReceipt.js.map +0 -1
  353. package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
  354. package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
  355. package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
  356. package/lib/IScaffoldSyncPlan.d.ts +0 -25
  357. package/lib/IScaffoldSyncPlan.js +0 -3
  358. package/lib/IScaffoldSyncPlan.js.map +0 -1
  359. package/lib/IScaffoldSyncProps.d.ts +0 -16
  360. package/lib/IScaffoldSyncProps.js +0 -3
  361. package/lib/IScaffoldSyncProps.js.map +0 -1
  362. package/lib/IWindowsFileInformation.d.ts +0 -20
  363. package/lib/IWindowsFileInformation.js +0 -3
  364. package/lib/IWindowsFileInformation.js.map +0 -1
  365. package/lib/IWindowsLibrary.d.ts +0 -127
  366. package/lib/IWindowsLibrary.js +0 -3
  367. package/lib/IWindowsLibrary.js.map +0 -1
  368. package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
  369. package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
  370. package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
  371. package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
  372. package/lib/ScaffoldFilePublicationOutcome.js +0 -3
  373. package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
  374. package/lib/ScaffoldParentChangedError.d.ts +0 -11
  375. package/lib/ScaffoldParentChangedError.js +0 -19
  376. package/lib/ScaffoldParentChangedError.js.map +0 -1
  377. package/lib/ScaffoldPublicationError.d.ts +0 -17
  378. package/lib/ScaffoldPublicationError.js +0 -46
  379. package/lib/ScaffoldPublicationError.js.map +0 -1
  380. package/lib/assertOrdinaryFile.d.ts +0 -13
  381. package/lib/assertOrdinaryFile.js +0 -20
  382. package/lib/assertOrdinaryFile.js.map +0 -1
  383. package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
  384. package/lib/assertOrdinarySingleLinkFile.js +0 -22
  385. package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
  386. package/lib/assertScaffoldOwnership.d.ts +0 -13
  387. package/lib/assertScaffoldOwnership.js +0 -24
  388. package/lib/assertScaffoldOwnership.js.map +0 -1
  389. package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
  390. package/lib/assertScaffoldPhysicalDirectory.js +0 -26
  391. package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
  392. package/lib/attachScaffoldSyncState.d.ts +0 -18
  393. package/lib/attachScaffoldSyncState.js +0 -30
  394. package/lib/attachScaffoldSyncState.js.map +0 -1
  395. package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
  396. package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
  397. package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
  398. package/lib/captureScaffoldFile.d.ts +0 -13
  399. package/lib/captureScaffoldFile.js +0 -67
  400. package/lib/captureScaffoldFile.js.map +0 -1
  401. package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
  402. package/lib/captureScaffoldPhysicalDirectory.js +0 -63
  403. package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
  404. package/lib/combineScaffoldFailures.d.ts +0 -19
  405. package/lib/combineScaffoldFailures.js +0 -32
  406. package/lib/combineScaffoldFailures.js.map +0 -1
  407. package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
  408. package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
  409. package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
  410. package/lib/createScaffoldSyncState.d.ts +0 -12
  411. package/lib/createScaffoldSyncState.js +0 -26
  412. package/lib/createScaffoldSyncState.js.map +0 -1
  413. package/lib/createScaffoldVariables.d.ts +0 -25
  414. package/lib/createScaffoldVariables.js +0 -41
  415. package/lib/createScaffoldVariables.js.map +0 -1
  416. package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
  417. package/lib/ensureScaffoldBaseDirectory.js +0 -89
  418. package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
  419. package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
  420. package/lib/ensureScaffoldFileDirectory.js +0 -103
  421. package/lib/ensureScaffoldFileDirectory.js.map +0 -1
  422. package/lib/inside.d.ts +0 -12
  423. package/lib/inside.js +0 -57
  424. package/lib/inside.js.map +0 -1
  425. package/lib/isScaffoldInstruction.d.ts +0 -12
  426. package/lib/isScaffoldInstruction.js +0 -29
  427. package/lib/isScaffoldInstruction.js.map +0 -1
  428. package/lib/loadWindowsLibrary.d.ts +0 -13
  429. package/lib/loadWindowsLibrary.js +0 -180
  430. package/lib/loadWindowsLibrary.js.map +0 -1
  431. package/lib/mergeScaffoldFiles.d.ts +0 -18
  432. package/lib/mergeScaffoldFiles.js +0 -37
  433. package/lib/mergeScaffoldFiles.js.map +0 -1
  434. package/lib/missingPath.d.ts +0 -12
  435. package/lib/missingPath.js +0 -18
  436. package/lib/missingPath.js.map +0 -1
  437. package/lib/nativeError.d.ts +0 -12
  438. package/lib/nativeError.js +0 -17
  439. package/lib/nativeError.js.map +0 -1
  440. package/lib/openPosixParent.d.ts +0 -13
  441. package/lib/openPosixParent.js +0 -135
  442. package/lib/openPosixParent.js.map +0 -1
  443. package/lib/openWindowsParent.d.ts +0 -13
  444. package/lib/openWindowsParent.js +0 -224
  445. package/lib/openWindowsParent.js.map +0 -1
  446. package/lib/overwriteScaffoldFile.d.ts +0 -22
  447. package/lib/overwriteScaffoldFile.js +0 -214
  448. package/lib/overwriteScaffoldFile.js.map +0 -1
  449. package/lib/physicalDirectoryIdentity.d.ts +0 -15
  450. package/lib/physicalDirectoryIdentity.js +0 -65
  451. package/lib/physicalDirectoryIdentity.js.map +0 -1
  452. package/lib/physicalVersion.d.ts +0 -13
  453. package/lib/physicalVersion.js +0 -18
  454. package/lib/physicalVersion.js.map +0 -1
  455. package/lib/planScaffoldPublication.d.ts +0 -22
  456. package/lib/planScaffoldPublication.js +0 -100
  457. package/lib/planScaffoldPublication.js.map +0 -1
  458. package/lib/planScaffoldSync.d.ts +0 -14
  459. package/lib/planScaffoldSync.js +0 -102
  460. package/lib/planScaffoldSync.js.map +0 -1
  461. package/lib/publishFiles.d.ts +0 -23
  462. package/lib/publishFiles.js +0 -124
  463. package/lib/publishFiles.js.map +0 -1
  464. package/lib/publishNativeScaffoldFile.d.ts +0 -21
  465. package/lib/publishNativeScaffoldFile.js +0 -211
  466. package/lib/publishNativeScaffoldFile.js.map +0 -1
  467. package/lib/publishScaffoldCandidate.d.ts +0 -24
  468. package/lib/publishScaffoldCandidate.js +0 -70
  469. package/lib/publishScaffoldCandidate.js.map +0 -1
  470. package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
  471. package/lib/readAutoMovieScaffoldSources.js +0 -103
  472. package/lib/readAutoMovieScaffoldSources.js.map +0 -1
  473. package/lib/readScaffoldSyncFile.d.ts +0 -16
  474. package/lib/readScaffoldSyncFile.js +0 -64
  475. package/lib/readScaffoldSyncFile.js.map +0 -1
  476. package/lib/renderScaffold.d.ts +0 -19
  477. package/lib/renderScaffold.js +0 -33
  478. package/lib/renderScaffold.js.map +0 -1
  479. package/lib/renderScaffoldEntries.d.ts +0 -20
  480. package/lib/renderScaffoldEntries.js +0 -106
  481. package/lib/renderScaffoldEntries.js.map +0 -1
  482. package/lib/renderScaffoldInstructions.d.ts +0 -17
  483. package/lib/renderScaffoldInstructions.js +0 -23
  484. package/lib/renderScaffoldInstructions.js.map +0 -1
  485. package/lib/renderScaffoldLayer.d.ts +0 -20
  486. package/lib/renderScaffoldLayer.js +0 -28
  487. package/lib/renderScaffoldLayer.js.map +0 -1
  488. package/lib/renderTemplate.d.ts +0 -19
  489. package/lib/renderTemplate.js +0 -56
  490. package/lib/renderTemplate.js.map +0 -1
  491. package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
  492. package/lib/renderWorkspaceProductionScaffold.js +0 -30
  493. package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
  494. package/lib/renderWorkspaceScaffold.d.ts +0 -19
  495. package/lib/renderWorkspaceScaffold.js +0 -33
  496. package/lib/renderWorkspaceScaffold.js.map +0 -1
  497. package/lib/replaceSharedScaffoldFile.d.ts +0 -30
  498. package/lib/replaceSharedScaffoldFile.js +0 -106
  499. package/lib/replaceSharedScaffoldFile.js.map +0 -1
  500. package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
  501. package/lib/resolveAutoMovieCatalogVersion.js +0 -24
  502. package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
  503. package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
  504. package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
  505. package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
  506. package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
  507. package/lib/resolveScaffoldPosixConstants.js +0 -44
  508. package/lib/resolveScaffoldPosixConstants.js.map +0 -1
  509. package/lib/scaffoldAssetDirectory.d.ts +0 -19
  510. package/lib/scaffoldAssetDirectory.js +0 -63
  511. package/lib/scaffoldAssetDirectory.js.map +0 -1
  512. package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
  513. package/lib/scaffoldPhysicalIdentity.js +0 -22
  514. package/lib/scaffoldPhysicalIdentity.js.map +0 -1
  515. package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
  516. package/lib/scaffoldSharedSkillDirectory.js +0 -62
  517. package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
  518. package/lib/skills/3d-modeling/conditioning.md +0 -82
  519. package/lib/skills/3d-modeling/crafting.md +0 -82
  520. package/lib/skills/3d-modeling/diffusion.md +0 -34
  521. package/lib/skills/3d-modeling/inspection.md +0 -54
  522. package/lib/skills/3d-modeling/lofting.md +0 -43
  523. package/lib/skills/3d-modeling/modularization.md +0 -31
  524. package/lib/skills/3d-modeling/recovery.md +0 -29
  525. package/lib/skills/3d-modeling/rigging.md +0 -97
  526. package/lib/skills/3d-modeling/sources.md +0 -29
  527. package/lib/skills/contracts/development/common.md +0 -13
  528. package/lib/skills/contracts/development/design.md +0 -28
  529. package/lib/skills/contracts/development/implementation.md +0 -49
  530. package/lib/skills/contracts/development/testing.md +0 -27
  531. package/lib/skills/development/repair.md +0 -13
  532. package/lib/skills/documentation/SKILL.md +0 -25
  533. package/lib/skills/documentation/writing.md +0 -51
  534. package/lib/skills/motion/authoring.md +0 -51
  535. package/lib/skills/motion/contacts.md +0 -39
  536. package/lib/skills/motion/laws.md +0 -23
  537. package/lib/skills/motion/layers.md +0 -7
  538. package/lib/skills/motion/transitions.md +0 -27
  539. package/lib/skills/motion/variation.md +0 -23
  540. package/lib/skills/motion/verification.md +0 -36
  541. package/lib/skills/prompting/SKILL.md +0 -80
  542. package/lib/skills/visual-debugging/capture.md +0 -60
  543. package/lib/skills/visual-debugging/correction-rounds.md +0 -34
  544. package/lib/skills/visual-debugging/passes.md +0 -29
  545. package/lib/skills/visual-debugging/rendering-cost.md +0 -5
  546. package/lib/syncScaffold.d.ts +0 -19
  547. package/lib/syncScaffold.js +0 -28
  548. package/lib/syncScaffold.js.map +0 -1
  549. package/lib/writeFiles.d.ts +0 -20
  550. package/lib/writeFiles.js +0 -33
  551. package/lib/writeFiles.js.map +0 -1
  552. package/lib/writeScaffoldFile.d.ts +0 -35
  553. package/lib/writeScaffoldFile.js +0 -107
  554. package/lib/writeScaffoldFile.js.map +0 -1
  555. package/lib/writtenVersion.d.ts +0 -13
  556. package/lib/writtenVersion.js +0 -18
  557. package/lib/writtenVersion.js.map +0 -1
  558. package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
  559. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
  560. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
  561. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
  562. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
  563. package/scaffold/instructions/.agents/skills/development/reuse.md +0 -47
  564. package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
  565. package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
  566. package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
  567. package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
  568. package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
  569. package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
  570. package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
  571. package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
  572. package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
  573. package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
  574. package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
  575. package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
  576. package/scaffold/production/evidence.config.ts +0 -12
  577. package/scaffold/production/src/executable/capture.ts +0 -489
  578. package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
  579. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
  580. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
  581. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
  582. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
  583. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
  584. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
  585. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
  586. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
  587. package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
  588. package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
  589. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
  590. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
  591. package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
  592. package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
  593. package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
  594. package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
  595. package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
  596. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
  597. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
  598. package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
  599. package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
  600. package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
  601. package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
  602. package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
  603. package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
  604. package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
  605. package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
  606. package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
  607. package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
  608. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
  609. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
  610. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
  611. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
  612. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
  613. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
  614. package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
  615. package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
  616. package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
  617. package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
  618. package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
  619. package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
  620. package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
  621. package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
  622. package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
  623. package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
  624. package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
  625. package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
  626. package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
  627. package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
  628. package/scaffold/production/src/executable/render/node/index.ts +0 -27
  629. package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
  630. package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
  631. package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
  632. package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
  633. package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
  634. package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
  635. package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
  636. package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
  637. package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
  638. package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
  639. package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
  640. package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
  641. package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
  642. package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
  643. package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
  644. package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
  645. package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
  646. package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
  647. package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
  648. package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
  649. package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
  650. package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
  651. package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
  652. package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
  653. package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
  654. package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
  655. package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
  656. package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
  657. package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
  658. package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
  659. package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
  660. package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
  661. package/scaffold/production/src/executable/render.ts +0 -92
  662. package/scaffold/production/src/executable/review.ts +0 -54
  663. package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
  664. package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
  665. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
  666. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
  667. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
  668. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
  669. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
  670. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
  671. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
  672. package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
  673. package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
  674. package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
  675. package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
  676. package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
  677. package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
  678. package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
  679. package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
  680. package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
  681. package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
  682. package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
  683. package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
  684. package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
  685. package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
  686. package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
  687. package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
  688. package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
  689. package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
  690. package/scaffold/workspace/pnpm-workspace.yaml +0 -46
  691. package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
  692. package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
  693. package/src/AutoMovieScaffoldLayer.ts +0 -18
  694. package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
  695. package/src/IAutoMovieCatalogVersionProps.ts +0 -18
  696. package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
  697. package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
  698. package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
  699. package/src/IBoundChild.ts +0 -86
  700. package/src/IBoundChildStatus.ts +0 -24
  701. package/src/IBoundParent.ts +0 -65
  702. package/src/IBoundParentStatus.ts +0 -15
  703. package/src/ICreateResult.ts +0 -35
  704. package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
  705. package/src/IScaffoldCompletedPublication.ts +0 -17
  706. package/src/IScaffoldFileSnapshot.ts +0 -28
  707. package/src/IScaffoldParentPublicationRequest.ts +0 -29
  708. package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
  709. package/src/IScaffoldPhysicalDirectory.ts +0 -22
  710. package/src/IScaffoldPosixConstants.ts +0 -30
  711. package/src/IScaffoldPublicationEntry.ts +0 -22
  712. package/src/IScaffoldPublicationFailure.ts +0 -18
  713. package/src/IScaffoldPublicationOptions.ts +0 -19
  714. package/src/IScaffoldPublicationReceipt.ts +0 -29
  715. package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
  716. package/src/IScaffoldSyncPlan.ts +0 -26
  717. package/src/IScaffoldSyncProps.ts +0 -16
  718. package/src/IWindowsFileInformation.ts +0 -24
  719. package/src/IWindowsLibrary.ts +0 -148
  720. package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
  721. package/src/ScaffoldFilePublicationOutcome.ts +0 -18
  722. package/src/ScaffoldParentChangedError.ts +0 -14
  723. package/src/ScaffoldPublicationError.ts +0 -58
  724. package/src/assertOrdinaryFile.ts +0 -20
  725. package/src/assertOrdinarySingleLinkFile.ts +0 -26
  726. package/src/assertScaffoldOwnership.ts +0 -29
  727. package/src/assertScaffoldPhysicalDirectory.ts +0 -29
  728. package/src/attachScaffoldSyncState.ts +0 -30
  729. package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
  730. package/src/captureScaffoldFile.ts +0 -34
  731. package/src/captureScaffoldPhysicalDirectory.ts +0 -34
  732. package/src/combineScaffoldFailures.ts +0 -35
  733. package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
  734. package/src/createScaffoldSyncState.ts +0 -33
  735. package/src/createScaffoldVariables.ts +0 -50
  736. package/src/ensureScaffoldBaseDirectory.ts +0 -55
  737. package/src/ensureScaffoldFileDirectory.ts +0 -75
  738. package/src/inside.ts +0 -25
  739. package/src/isScaffoldInstruction.ts +0 -29
  740. package/src/loadWindowsLibrary.ts +0 -277
  741. package/src/mergeScaffoldFiles.ts +0 -39
  742. package/src/missingPath.ts +0 -16
  743. package/src/nativeError.ts +0 -15
  744. package/src/openPosixParent.ts +0 -155
  745. package/src/openWindowsParent.ts +0 -305
  746. package/src/overwriteScaffoldFile.ts +0 -262
  747. package/src/physicalDirectoryIdentity.ts +0 -33
  748. package/src/physicalVersion.ts +0 -18
  749. package/src/planScaffoldPublication.ts +0 -100
  750. package/src/planScaffoldSync.ts +0 -122
  751. package/src/publishFiles.ts +0 -120
  752. package/src/publishNativeScaffoldFile.ts +0 -287
  753. package/src/publishScaffoldCandidate.ts +0 -94
  754. package/src/readAutoMovieScaffoldSources.ts +0 -82
  755. package/src/readScaffoldSyncFile.ts +0 -66
  756. package/src/renderScaffold.ts +0 -43
  757. package/src/renderScaffoldEntries.ts +0 -110
  758. package/src/renderScaffoldInstructions.ts +0 -22
  759. package/src/renderScaffoldLayer.ts +0 -38
  760. package/src/renderTemplate.ts +0 -62
  761. package/src/renderWorkspaceProductionScaffold.ts +0 -35
  762. package/src/renderWorkspaceScaffold.ts +0 -43
  763. package/src/replaceSharedScaffoldFile.ts +0 -88
  764. package/src/resolveAutoMovieCatalogVersion.ts +0 -27
  765. package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
  766. package/src/resolveScaffoldPosixConstants.ts +0 -50
  767. package/src/scaffoldAssetDirectory.ts +0 -30
  768. package/src/scaffoldPhysicalIdentity.ts +0 -21
  769. package/src/scaffoldSharedSkillDirectory.ts +0 -25
  770. package/src/syncScaffold.ts +0 -38
  771. package/src/writeFiles.ts +0 -48
  772. package/src/writeScaffoldFile.ts +0 -88
  773. package/src/writtenVersion.ts +0 -19
  774. /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
  775. /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
  776. /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
  777. /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
  778. /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
  779. /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
  780. /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
  781. /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
  782. /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
  783. /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
  784. /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
@@ -1,24 +0,0 @@
1
- /**
2
- * Native open flags needed for held-parent POSIX scaffold publication. Values are the running system's ABI bits, not normalized platform-independent flags.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation Named integer flags preserve the native open and openat ABI; the resolver supplies only a documented close-on-exec value absent from Node's constants.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface The record contains precisely the seven flags the parent and child open operations combine.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Flags belong to actual operating-system contracts and select no fixture or consumer-specific pathname.
7
- * @evidence contracts/development/common.md#meaningful-documentation Members state the native open effect of each bit and the declaration distinguishes ABI values from portable normalized flags.
8
- */
9
- export interface IScaffoldPosixConstants {
10
- /** Close the descriptor when a new program image is executed. */
11
- O_CLOEXEC: number;
12
- /** Create the child when its directory slot is absent. */
13
- O_CREAT: number;
14
- /** Require the parent descriptor to name a directory. */
15
- O_DIRECTORY: number;
16
- /** Refuse a child slot that already exists alongside O_CREAT. */
17
- O_EXCL: number;
18
- /** Refuse a symbolic link at the final opened component. */
19
- O_NOFOLLOW: number;
20
- /** Open the parent or verification child for reading only. */
21
- O_RDONLY: number;
22
- /** Open the newly created child for writing and readback. */
23
- O_RDWR: number;
24
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldPosixConstants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldPosixConstants.js","sourceRoot":"","sources":["../src/IScaffoldPosixConstants.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- /**
2
- * One validated file of an immutable scaffold publication candidate.
3
- *
4
- * {@link planScaffoldPublication} builds and freezes every entry before any directory or file is touched, so the bytes and target a publisher receives are the ones that passed validation. `readonly` is compile-time only; the runtime immutability comes from those producers freezing the entry and its byte array.
5
- *
6
- * @evidence contracts/development/design.md#principled-representation UTF-8 bytes use a frozen number array because a nonempty typed array cannot be frozen; planScaffoldPublication proves target containment lexically, and ensureScaffoldFileDirectory plus assertScaffoldOwnership qualify physical directory containment before writing.
7
- * @evidence contracts/development/design.md#minimal-and-owned-surface Fields separate content, diagnostics and destination: bytes feeds write and readback, relative names the entry in errors and receipts, and target selects the parent directory and child name.
8
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The record carries no special case; the documentation states that freezing is done by the planner and `publishScaffoldCandidate`, not guaranteed by the `readonly` modifiers themselves.
9
- * @evidence contracts/development/common.md#meaningful-documentation The comment says who freezes the entry and when, the bytes' encoding, the relative path's diagnostic role, and that the target's containment is lexical at this stage.
10
- */
11
- export interface IScaffoldPublicationEntry {
12
- /** UTF-8 bytes of the file content, fixed before any mutation begins. */
13
- bytes: readonly number[];
14
- /** Map key exactly as authored, used in error messages and receipts. */
15
- relative: string;
16
- /**
17
- * Absolute target that lexically stays below the candidate root; links are checked only when its parent directory is captured.
18
- */
19
- target: string;
20
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldPublicationEntry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldPublicationEntry.js","sourceRoot":"","sources":["../src/IScaffoldPublicationEntry.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- import { type IScaffoldPublicationEntry } from "./IScaffoldPublicationEntry";
2
- import { type ScaffoldFilePublicationOutcome } from "./ScaffoldFilePublicationOutcome";
3
- /**
4
- * The entry where publication stopped and its non-completed outcome.
5
- *
6
- * @evidence contracts/development/design.md#principled-representation Publication is sequential and stops at the first non-completed outcome, so one failure record fully describes the stop and every later entry is known untouched.
7
- * @evidence contracts/development/design.md#minimal-and-owned-surface The outcome type excludes `completed` through `Exclude`, so the failure cannot claim success and no separate failure union is maintained.
8
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The record keeps the adapter's outcome as reported after validation, without reclassifying a partial slot as a refusal.
9
- * @evidence contracts/development/common.md#meaningful-documentation The comment names the stopping entry and distinguishes refusal before that target file changed from a partial file effect; existing competitors and directory preparation are outside this per-file record.
10
- */
11
- export interface IScaffoldPublicationFailure {
12
- /** Planned entry where publication stopped. */
13
- entry: IScaffoldPublicationEntry;
14
- /** Refusal before target-file mutation or an incomplete file effect observed at that entry. */
15
- outcome: Exclude<ScaffoldFilePublicationOutcome, {
16
- status: "completed";
17
- }>;
18
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldPublicationFailure.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldPublicationFailure.js","sourceRoot":"","sources":["../src/IScaffoldPublicationFailure.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import type { IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
2
- /**
3
- * Options for publishing a scaffold into a directory.
4
- *
5
- * @evidence contracts/development/design.md#principled-representation Force is an explicit opt-in because both effects it grants, admitting a populated root and rewriting an existing file, overwrite state the user owns.
6
- * @evidence contracts/development/design.md#minimal-and-owned-surface Force admits replacement while optional captured generations constrain each candidate to its inspected state; sync uses both without introducing a second writer.
7
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Force grants no authority over links or multiply linked files; overwriteScaffoldFile still requires one ordinary single-link resident with its captured identity and written state.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment states both effects of `force`, the limits on replacement, and that omission means a new or empty root only.
9
- */
10
- export interface IScaffoldPublicationOptions {
11
- /**
12
- * Admit a non-empty target directory and replace existing files in place. A file is replaced only when it is an ordinary file with exactly one link whose identity did not change between capture and write. Omitted or `false` refuses a non-empty directory before writing anything.
13
- */
14
- force?: boolean;
15
- /** Per-candidate relative-path generation required at write time; null requires absence. Unspecified candidates use ordinary publication admission. */
16
- expected?: Readonly<Record<string, IScaffoldFileSnapshot | null>>;
17
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldPublicationOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldPublicationOptions.js","sourceRoot":"","sources":["../src/IScaffoldPublicationOptions.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { type IScaffoldCompletedPublication } from "./IScaffoldCompletedPublication";
2
- import { type IScaffoldPublicationEntry } from "./IScaffoldPublicationEntry";
3
- import { type IScaffoldPublicationFailure } from "./IScaffoldPublicationFailure";
4
- /**
5
- * Everything observed while publishing one candidate.
6
- *
7
- * Entries are published in candidate order and publication stops at the first entry that does not complete, so `completed` is a prefix of `planned` and every entry after `failure` was not attempted.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation The receipt is a prefix description of a sequential, stop-at-first-failure loop, so `completed`, `failure`, and `planned` together determine every file's state without a per-entry status list.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface The candidate-wide `status` is derived from the other fields by `publishScaffoldCandidate`, and the throwing form in `writeFiles` and the CLI both decide success from that one field.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts `refused` means the first entry had no file mutation; completed or partial file effects remain partial candidate outcomes, and the receipt makes no promise that directory preparation left nothing behind.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the ordering, the prefix property, what is untouched after the failure, and how each candidate-wide status is derived.
13
- */
14
- export interface IScaffoldPublicationReceipt {
15
- /** Entries completed before publication stopped, in candidate order. */
16
- completed: readonly IScaffoldCompletedPublication[];
17
- /** Entry where publication stopped, or `null` when every entry completed. */
18
- failure: IScaffoldPublicationFailure | null;
19
- /** The whole candidate in publication order, attempted or not. */
20
- planned: readonly IScaffoldPublicationEntry[];
21
- /**
22
- * `completed` when every entry completed, `refused` when the first entry was refused before any target file changed, and `partial` otherwise. Prepared directories and existing competitors are not described by this status.
23
- */
24
- status: "completed" | "partial" | "refused";
25
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldPublicationReceipt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldPublicationReceipt.js","sourceRoot":"","sources":["../src/IScaffoldPublicationReceipt.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- /**
2
- * A failed attempt that created or rewrote no file at the target. An existing competitor can remain there, and directories prepared before refusal can remain.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation The reasons identify refusal before an exclusive slot was created or an existing file was truncated; the guarantee concerns this attempt's file effect, not the absence of a competitor or previously prepared directories.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface One closed reason union covers failures before this attempt creates or truncates a file; it distinguishes changed parent authority and occupied names from other pre-mutation errors.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts `publishFiles` maps every exception it catches to `create-failed`, which holds because `writeScaffoldFile` throws only before any write and `publishNativeScaffoldFile` reports its failures instead of throwing.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes unchanged target files from existing competitors and directory preparation; reason members identify parent changes, occupied names and other pre-mutation failures.
8
- */
9
- export interface IScaffoldRefusedFilePublicationOutcome {
10
- /** Original native or validation error, kept for the caller. */
11
- error: unknown;
12
- /**
13
- * Why this attempt changed no file: `parent-changed` when a missing or invalid requested parent could not be opened, or its held directory identity differed; `target-competitor` when the name was already occupied, and `create-failed` for any other failure before this attempt created a slot or truncated an existing resident.
14
- */
15
- reason: "create-failed" | "parent-changed" | "target-competitor";
16
- /** Discriminator: this attempt created or rewrote no target file. */
17
- status: "refused";
18
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldRefusedFilePublicationOutcome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldRefusedFilePublicationOutcome.js","sourceRoot":"","sources":["../src/IScaffoldRefusedFilePublicationOutcome.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- import type { IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
2
- /**
3
- * The complete observed instruction update before mutation.
4
- *
5
- * @evidence contracts/development/design.md#principled-representation The plan couples candidate bytes with the exact target file generations observed during conflict detection.
6
- * @evidence contracts/development/design.md#minimal-and-owned-surface One record exposes updates, unchanged paths, conflicts and retained retired paths.
7
- * @evidence contracts/development/design.md#prohibited-design-shortcuts A conflict is not a completed update; obsolete files are reported instead of deleted through successor pathnames.
8
- * @evidence contracts/development/common.md#meaningful-documentation Members identify output bytes, preconditions and the legacy-state boundary.
9
- */
10
- export interface IScaffoldSyncPlan {
11
- /** Absolute target root. */
12
- location: string;
13
- /** Changed instruction bytes, followed by the new state only after all content. */
14
- files: Record<string, string>;
15
- /** Expected generation for each candidate; null means the file must remain absent. */
16
- expected: Record<string, IScaffoldFileSnapshot | null>;
17
- /** Managed instruction paths whose current text differs from the bundle. */
18
- changed: string[];
19
- /** Managed paths already matching the bundle. */
20
- unchanged: string[];
21
- /** Local changes or unbased existing differences that prevent any write. */
22
- conflicts: string[];
23
- /** Previously generated paths no longer supplied; retained for explicit retirement. */
24
- retired: string[];
25
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldSyncPlan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldSyncPlan.js","sourceRoot":"","sources":["../src/IScaffoldSyncPlan.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- /**
2
- * Inputs for explicit generated-instruction synchronization.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation The target and optional previous instruction root define a three-way update against the name-independent instruction bundle; no source file presence chooses a narrative route.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface One record is shared by planning and applying the plan.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Baseline is an explicit prior adopted input; check never authorizes writes.
7
- * @evidence contracts/development/common.md#meaningful-documentation Members state path resolution, legacy baseline and dry-run behavior.
8
- */
9
- export interface IScaffoldSyncProps {
10
- /** Directory holding the generated `AGENTS.md`: a single production or a workspace root, resolved against the caller's working directory. */
11
- location: string;
12
- /** Previous adopted instruction root the caller asserts the files came from; a file it supplies is compared with it instead of the stored digest, a file it lacks falls back to stored state. Never overwritten. */
13
- baseline?: string;
14
- /** Inspect the complete plan without changing files or sync state. */
15
- check?: boolean;
16
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IScaffoldSyncProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IScaffoldSyncProps.js","sourceRoot":"","sources":["../src/IScaffoldSyncProps.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- /**
2
- * The fields of `BY_HANDLE_FILE_INFORMATION` the adapter reads.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation Unsigned native attributes, file index, size, link count and FILETIME retain the information read from one Windows handle.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface The lowered record keeps only BY_HANDLE_FILE_INFORMATION fields consumed by directory and child qualification.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The identity is the actual volume serial and file index, without a substituted inode or copied expected answer.
7
- * @evidence contracts/development/common.md#meaningful-documentation Members explain DWORD assembly, exact byte size, raw write ticks and identity formatting.
8
- */
9
- export interface IWindowsFileInformation {
10
- /** Unsigned Windows file-attribute bits read from BY_HANDLE_FILE_INFORMATION. */
11
- attributes: number;
12
- /** Volume serial and 64-bit file index formatted like scaffoldPhysicalIdentity. */
13
- identity: string;
14
- /** Raw unsigned FILETIME last-write ticks retained for generation comparison. */
15
- lastWrite: bigint;
16
- /** Unsigned native hard-link population reported by the handle. */
17
- links: number;
18
- /** Unsigned 64-bit byte size assembled from the native high and low DWORDs. */
19
- size: bigint;
20
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IWindowsFileInformation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IWindowsFileInformation.js","sourceRoot":"","sources":["../src/IWindowsFileInformation.ts"],"names":[],"mappings":""}
@@ -1,127 +0,0 @@
1
- import { type LibraryHandle, type TypeObject } from "koffi";
2
- import { type IBoundParentStatus } from "./IBoundParentStatus";
3
- import { type IWindowsFileInformation } from "./IWindowsFileInformation";
4
- /**
5
- * The kernel32 and ntdll entry points the Windows adapter needs.
6
- *
7
- * @evidence contracts/development/design.md#principled-representation Koffi-bound Win32 and NT call signatures retain raw HANDLEs, UTF-16 names, byte counts and explicit error results.
8
- * @evidence contracts/development/design.md#minimal-and-owned-surface One lazy binding set supplies both parent-relative opening and child I/O without mixing native HANDLEs with CRT descriptor tables.
9
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The interface declares actual native entry points; it introduces no monkey patch, fixture path or emulated host.
10
- * @evidence contracts/development/common.md#meaningful-documentation Members state handle and structure roles, byte positioning, native status meanings and immediate last-error observation.
11
- */
12
- export interface IWindowsLibrary {
13
- /**
14
- * Close a native HANDLE; false leaves the Win32 error available through getLastError.
15
- *
16
- * @evidence contracts/development/implementation.md#principled-implementation Close a native HANDLE; false leaves the Win32 error available through getLastError.
17
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Parent and child adapters share the raw CloseHandle result and convert a false result with immediate getLastError, leaving release order to publication.
18
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows handle release declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
19
- * @evidence contracts/development/common.md#meaningful-documentation The prose names the HANDLE being closed and identifies false as native failure whose error must be read through getLastError; false does not prove release.
20
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows handle release signature specifies behavior but contains no executable algorithm.
21
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows handle release interface member implements no cross-call reuse or invalidation policy.
22
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows handle release declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
23
- */
24
- closeHandle(handle: unknown): boolean;
25
- /**
26
- * Call CreateFileW with UTF-16 pathname, explicit access, sharing, disposition and flags; return its raw HANDLE for validity checking.
27
- *
28
- * @evidence contracts/development/implementation.md#principled-implementation Call CreateFileW with UTF-16 pathname, explicit access, sharing, disposition and flags; return its raw HANDLE for validity checking.
29
- * @evidence contracts/development/implementation.md#clear-and-simple-structure openWindowsParent chooses access, sharing and no-follow flags; this binding carries those choices to CreateFileW and returns the raw HANDLE for invalid-value qualification.
30
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The UTF-16 parent handle opening declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
31
- * @evidence contracts/development/common.md#meaningful-documentation The prose states UTF-16 pathname encoding and explicit native access, sharing, disposition and flag inputs, and that the returned raw HANDLE still needs validity checking.
32
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The UTF-16 parent handle opening signature specifies behavior but contains no executable algorithm.
33
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The UTF-16 parent handle opening interface member implements no cross-call reuse or invalidation policy.
34
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The UTF-16 parent handle opening declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
35
- */
36
- createFile(pathname: string, access: number, share: number, security: unknown, disposition: number, flags: number, template: unknown): unknown;
37
- /**
38
- * Flush an opened child's native buffers; false reports Win32 failure.
39
- *
40
- * @evidence contracts/development/implementation.md#principled-implementation Flush an opened child's native buffers; false reports Win32 failure.
41
- * @evidence contracts/development/implementation.md#clear-and-simple-structure windowsChild supplies its held writer HANDLE and converts the Win32 boolean to the common sync operation's thrown failure.
42
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 buffer flush declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
43
- * @evidence contracts/development/common.md#meaningful-documentation The prose names opened-child buffer flushing and distinguishes false as a Win32 failure rather than completed synchronization.
44
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 buffer flush signature specifies behavior but contains no executable algorithm.
45
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 buffer flush interface member implements no cross-call reuse or invalidation policy.
46
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 buffer flush declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
47
- */
48
- flushFileBuffers(handle: unknown): boolean;
49
- /**
50
- * Read the calling thread's most recent Win32 error immediately after a failed native call.
51
- *
52
- * @evidence contracts/development/implementation.md#principled-implementation Read the calling thread's most recent Win32 error immediately after a failed native call.
53
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Adapters read this numeric error immediately after the failed call, then nativeError adds operation context without a second native lookup.
54
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The thread-local native error reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
55
- * @evidence contracts/development/common.md#meaningful-documentation The prose identifies calling-thread provenance and the required immediate read after native failure, so an unrelated later call cannot replace the diagnostic.
56
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The thread-local native error reading signature specifies behavior but contains no executable algorithm.
57
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The thread-local native error reading interface member implements no cross-call reuse or invalidation policy.
58
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The thread-local native error reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
59
- */
60
- getLastError(): number;
61
- /** Koffi's process-width opaque HANDLE type used for calls and invalid-handle detection. */
62
- handleType: TypeObject;
63
- /**
64
- * Read one held child's unsigned size, link count, attributes, identity and last-write generation; native inspection failure throws.
65
- *
66
- * @evidence contracts/development/implementation.md#principled-implementation Read one held child's unsigned size, link count, attributes, identity and last-write generation; native inspection failure throws.
67
- * @evidence contracts/development/implementation.md#clear-and-simple-structure loadWindowsLibrary lowers BY_HANDLE_FILE_INFORMATION once into the fields windowsChild consumes for qualification and generation comparison.
68
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows child information reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
69
- * @evidence contracts/development/common.md#meaningful-documentation The prose lists held-child size, links, attributes, identity and last-write facts and says failed inspection throws; IWindowsFileInformation defines exact byte size and raw FILETIME units.
70
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows child information reading signature specifies behavior but contains no executable algorithm.
71
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows child information reading interface member implements no cross-call reuse or invalidation policy.
72
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows child information reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
73
- */
74
- inspectFile(handle: unknown): IWindowsFileInformation;
75
- /**
76
- * Read directory qualification and physical identity through the held parent HANDLE.
77
- *
78
- * @evidence contracts/development/implementation.md#principled-implementation Read directory qualification and physical identity through the held parent HANDLE.
79
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The loader returns only the directory predicate and device-and-index identity consumed by openBoundParent before child creation.
80
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows parent generation reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
81
- * @evidence contracts/development/common.md#meaningful-documentation The prose gives held-parent HANDLE provenance and distinguishes directory qualification from the physical identity compared with the earlier capture.
82
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows parent generation reading signature specifies behavior but contains no executable algorithm.
83
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows parent generation reading interface member implements no cross-call reuse or invalidation policy.
84
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows parent generation reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
85
- */
86
- inspectParent(handle: unknown): IBoundParentStatus;
87
- /** Bound NT entry point used for parent-relative create and resident reopen with explicit NTSTATUS handling. */
88
- ntCreateFile: ReturnType<LibraryHandle["func"]>;
89
- /** Koffi structure layout carrying the held RootDirectory and UTF-16 ObjectName for NtCreateFile. */
90
- objectAttributesType: TypeObject;
91
- /**
92
- * Read at most `length` bytes into `target` from the HANDLE's current byte position; return the confirmed count, including zero at end of file, or `null` on Win32 failure. The caller supplies a buffer slice of that length.
93
- *
94
- * @evidence contracts/development/implementation.md#principled-implementation Read at most length bytes into target from the handle's current position; return the confirmed count or null on Win32 failure.
95
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The loader lowers ReadFile's output count and boolean to number-or-null; windowsChild owns seeking and selecting the target buffer slice.
96
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 read transfer declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
97
- * @evidence contracts/development/common.md#meaningful-documentation The prose states byte length, current handle position, caller-owned slice bounds, short and zero reads, and null for native failure.
98
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 read transfer signature specifies behavior but contains no executable algorithm.
99
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 read transfer interface member implements no cross-call reuse or invalidation policy.
100
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 read transfer declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
101
- */
102
- readFile(handle: unknown, target: Buffer, length: number): number | null;
103
- /**
104
- * Set a handle's absolute byte position with SetFilePointerEx; return false on Win32 failure.
105
- *
106
- * @evidence contracts/development/implementation.md#principled-implementation Set a handle's absolute byte position with SetFilePointerEx; return false on Win32 failure.
107
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The loader fixes FILE_BEGIN and converts the safe integer position to int64_t; windowsChild owns seeking before each read or write.
108
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The absolute native byte positioning declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
109
- * @evidence contracts/development/common.md#meaningful-documentation The prose states an absolute byte position, names SetFilePointerEx and identifies false as failed positioning.
110
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The absolute native byte positioning signature specifies behavior but contains no executable algorithm.
111
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The absolute native byte positioning interface member implements no cross-call reuse or invalidation policy.
112
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The absolute native byte positioning declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
113
- */
114
- setFilePointer(handle: unknown, position: number): boolean;
115
- /**
116
- * Write at most `length` bytes from `source` at the HANDLE's current byte position; return the confirmed count or `null` on Win32 failure. The caller supplies a source slice of that length.
117
- *
118
- * @evidence contracts/development/implementation.md#principled-implementation Write at most length bytes from source at the handle's current position; return the confirmed count or null on Win32 failure.
119
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The loader lowers WriteFile's output count and boolean to number-or-null; windowsChild owns seeking and selecting the source slice while publication accumulates confirmed progress.
120
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 write transfer declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
121
- * @evidence contracts/development/common.md#meaningful-documentation The prose states byte length, current handle position, caller-owned slice bounds, confirmed short-write counts and null for native failure.
122
- * @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 write transfer signature specifies behavior but contains no executable algorithm.
123
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 write transfer interface member implements no cross-call reuse or invalidation policy.
124
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 write transfer declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
125
- */
126
- writeFile(handle: unknown, source: Buffer, length: number): number | null;
127
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IWindowsLibrary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IWindowsLibrary.js","sourceRoot":"","sources":["../src/IWindowsLibrary.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- /**
2
- * Project-local record of the last accepted generated instruction bytes.
3
- */
4
- export declare const SCAFFOLD_SYNC_STATE_FILE: string;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SCAFFOLD_SYNC_STATE_FILE = void 0;
4
- /**
5
- * Project-local record of the last accepted generated instruction bytes.
6
- */
7
- exports.SCAFFOLD_SYNC_STATE_FILE = ".automovie/scaffold-state.json";
8
- //# sourceMappingURL=SCAFFOLD_SYNC_STATE_FILE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SCAFFOLD_SYNC_STATE_FILE.js","sourceRoot":"","sources":["../src/SCAFFOLD_SYNC_STATE_FILE.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,wBAAwB,GACnC,gCAAgC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { type IScaffoldCompletedFilePublicationOutcome } from "./IScaffoldCompletedFilePublicationOutcome";
2
- import { type IScaffoldPartialFilePublicationOutcome } from "./IScaffoldPartialFilePublicationOutcome";
3
- import { type IScaffoldRefusedFilePublicationOutcome } from "./IScaffoldRefusedFilePublicationOutcome";
4
- /**
5
- * Outcome a one-file publisher reports for one candidate entry.
6
- *
7
- * The publisher returns rather than throws because a thrown I/O error cannot describe a write's effect. `refused` means this attempt created or rewrote no target file; a competitor or prepared directories can remain. `partial` names the parent and confirmed byte count after reservation or truncation, and `completed` means the file was verified.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation A status discriminator separates pre-mutation refusal, incomplete file effect and verified completion for both exclusive create and forced replacement, without deriving state from error-message text.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface The union is the one seam between the candidate loop and any adapter; validation of each variant against the contract stays with `publishScaffoldCandidate`.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The union is the whole adapter contract and carries no fallback state; an adapter that returns something outside it is refused by `publishScaffoldCandidate` rather than coerced into a variant.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states why adapters report instead of throwing and what each status says about the file slot.
13
- */
14
- export type ScaffoldFilePublicationOutcome = IScaffoldCompletedFilePublicationOutcome | IScaffoldRefusedFilePublicationOutcome | IScaffoldPartialFilePublicationOutcome;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ScaffoldFilePublicationOutcome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScaffoldFilePublicationOutcome.js","sourceRoot":"","sources":["../src/ScaffoldFilePublicationOutcome.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- /**
2
- * The requested parent cannot be opened as the captured directory, or its held handle reports a different directory identity.
3
- *
4
- * @evidence contracts/development/design.md#principled-representation A distinct Error subtype classifies missing or invalid parent paths reported by the native open adapters and directory or identity mismatches reported by the held-parent inspection, all before child creation.
5
- * @evidence contracts/development/design.md#minimal-and-owned-surface The error carries the existing message and standard cause chain, with one stable name used for the pre-create refusal decision.
6
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Native missing-path and invalid-directory errors retain their parent-changed classification even when no handle was acquired; inspection mismatches are reported without retrying another pathname.
7
- * @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes failure to open the requested parent from a mismatch observed through an opened handle, and the constructor preserves standard ErrorOptions causes.
8
- */
9
- export declare class ScaffoldParentChangedError extends Error {
10
- constructor(message: string, options?: ErrorOptions);
11
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScaffoldParentChangedError = void 0;
4
- /**
5
- * The requested parent cannot be opened as the captured directory, or its held handle reports a different directory identity.
6
- *
7
- * @evidence contracts/development/design.md#principled-representation A distinct Error subtype classifies missing or invalid parent paths reported by the native open adapters and directory or identity mismatches reported by the held-parent inspection, all before child creation.
8
- * @evidence contracts/development/design.md#minimal-and-owned-surface The error carries the existing message and standard cause chain, with one stable name used for the pre-create refusal decision.
9
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Native missing-path and invalid-directory errors retain their parent-changed classification even when no handle was acquired; inspection mismatches are reported without retrying another pathname.
10
- * @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes failure to open the requested parent from a mismatch observed through an opened handle, and the constructor preserves standard ErrorOptions causes.
11
- */
12
- class ScaffoldParentChangedError extends Error {
13
- constructor(message, options) {
14
- super(message, options);
15
- this.name = "ScaffoldParentChangedError";
16
- }
17
- }
18
- exports.ScaffoldParentChangedError = ScaffoldParentChangedError;
19
- //# sourceMappingURL=ScaffoldParentChangedError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScaffoldParentChangedError.js","sourceRoot":"","sources":["../src/ScaffoldParentChangedError.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,gCAAwC,SAAQ,KAAK;IACnD,YAAmB,OAAe,EAAE,OAAsB;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC;IAC3C,CAAC;CACF"}
@@ -1,17 +0,0 @@
1
- import { type IScaffoldPublicationReceipt } from "./IScaffoldPublicationReceipt";
2
- /**
3
- * Error thrown when a scaffold publication did not complete, carrying the receipt of the observed file effects for recovery.
4
- *
5
- * The message lists the completed relative paths and the stopping entry with its status, refusal reason or partial byte count, and parent identity. The stopping outcome's own error becomes `cause`.
6
- *
7
- * @evidence contracts/development/design.md#principled-representation The error is built from the frozen receipt after publication stopped, so the throwing form loses none of the observed effect; `cause` uses the standard `ErrorOptions` chaining for the native error.
8
- * @evidence contracts/development/design.md#minimal-and-owned-surface One error class serves both throwing callers, `writeFiles` and the CLI, and holds the receipt instead of copying its fields onto the error.
9
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The constructor accepts a completed receipt and then reports a failure without a stopping entry instead of refusing; it is constructed only after a `status` check in both callers.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states what the message contains, where the native cause goes, and that `receipt` is kept for recovery.
11
- */
12
- export declare class ScaffoldPublicationError extends Error {
13
- /** Receipt of the publication that did not complete. */
14
- readonly receipt: IScaffoldPublicationReceipt;
15
- /** @param receipt Receipt whose status is not `completed`. */
16
- constructor(receipt: IScaffoldPublicationReceipt);
17
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScaffoldPublicationError = void 0;
4
- /**
5
- * Error thrown when a scaffold publication did not complete, carrying the receipt of the observed file effects for recovery.
6
- *
7
- * The message lists the completed relative paths and the stopping entry with its status, refusal reason or partial byte count, and parent identity. The stopping outcome's own error becomes `cause`.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation The error is built from the frozen receipt after publication stopped, so the throwing form loses none of the observed effect; `cause` uses the standard `ErrorOptions` chaining for the native error.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface One error class serves both throwing callers, `writeFiles` and the CLI, and holds the receipt instead of copying its fields onto the error.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The constructor accepts a completed receipt and then reports a failure without a stopping entry instead of refusing; it is constructed only after a `status` check in both callers.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states what the message contains, where the native cause goes, and that `receipt` is kept for recovery.
13
- */
14
- class ScaffoldPublicationError extends Error {
15
- /** Receipt of the publication that did not complete. */
16
- receipt;
17
- /** @param receipt Receipt whose status is not `completed`. */
18
- constructor(receipt) {
19
- const failure = receipt.failure;
20
- super(failure === null
21
- ? "scaffold publication failed without a stopping entry"
22
- : `scaffold publication ${receipt.status}: ${JSON.stringify({
23
- completed: receipt.completed.map(({ entry, parentIdentity, }) => ({
24
- parentIdentity,
25
- relative: entry.relative,
26
- })),
27
- failure: {
28
- bytesWritten: failure.outcome.status === "partial"
29
- ? failure.outcome.bytesWritten
30
- : undefined,
31
- parentIdentity: failure.outcome.status === "partial"
32
- ? failure.outcome.parentIdentity
33
- : undefined,
34
- reason: failure.outcome.status === "refused"
35
- ? failure.outcome.reason
36
- : undefined,
37
- relative: failure.entry.relative,
38
- status: failure.outcome.status,
39
- },
40
- })}`, { cause: failure?.outcome.error });
41
- this.name = "ScaffoldPublicationError";
42
- this.receipt = receipt;
43
- }
44
- }
45
- exports.ScaffoldPublicationError = ScaffoldPublicationError;
46
- //# sourceMappingURL=ScaffoldPublicationError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScaffoldPublicationError.js","sourceRoot":"","sources":["../src/ScaffoldPublicationError.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;GASG;AACH,8BAAsC,SAAQ,KAAK;IACjD,wDAAwD;IACxC,OAAO,CAA8B;IAErD,8DAA8D;IAC9D,YAAmB,OAAoC;QACrD,MAAM,OAAO,GAA2C,OAAO,CAAC,OAAO,CAAC;QACxE,KAAK,CACH,OAAO,KAAK,IAAI;YACd,CAAC,CAAC,sDAAsD;YACxD,CAAC,CAAC,wBAAwB,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC;gBACxD,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,CAC9B,CAAC,EACC,KAAK,EACL,cAAc,GACmC,EAGjD,EAAE,CAAC,CAAC;oBACJ,cAAc;oBACd,QAAQ,EAAE,KAAK,CAAC,QAAQ;iBACzB,CAAC,CACH;gBACD,OAAO,EAAE;oBACP,YAAY,EACV,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS;wBAClC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY;wBAC9B,CAAC,CAAC,SAAS;oBACf,cAAc,EACZ,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS;wBAClC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc;wBAChC,CAAC,CAAC,SAAS;oBACf,MAAM,EACJ,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS;wBAClC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM;wBACxB,CAAC,CAAC,SAAS;oBACf,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ;oBAChC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM;iBAC/B;aACF,CAAC,EAAE,EACR,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,CAClC,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
@@ -1,13 +0,0 @@
1
- import * as fs from "node:fs";
2
- /**
3
- * Admission for reading or capturing a scaffold file: a regular file, not a symbolic link. Any number of directory entries may name it; the in-place rewrite separately requires exactly one through {@link assertOrdinarySingleLinkFile}.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation A bigint lstat must name a regular non-symlink file; reading such a file is safe whatever its link count, because no other name observes a read.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One admission predicate serves pathname capture; the stricter single-link predicate stays with the descriptor that rewrites in place.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Symbolic links and non-regular entries are still refused, so a capture never follows a link out of the scaffold.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the regular-file and symlink conditions and why the link count is not one of them.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms Two stat predicates cost constant work per observed file.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh stats remain distinct filesystem observations; admission caches no earlier verdict.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate owns only the supplied stat reference and opens no descriptor or retained task.
12
- */
13
- export declare const assertOrdinaryFile: (status: fs.BigIntStats, file: string) => void;