@automovie/template 0.1.0 → 0.2.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 (732) hide show
  1. package/README.md +14 -18
  2. package/generated/pnpm-workspace.json +54 -0
  3. package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
  4. package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
  5. package/generated/skills/3d-modeling/crafting/construction.md +70 -0
  6. package/generated/skills/3d-modeling/crafting/lofting.md +73 -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 +27 -0
  10. package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
  11. package/generated/skills/3d-modeling/diffusion/request.md +16 -0
  12. package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
  13. package/generated/skills/3d-modeling/inspection.md +55 -0
  14. package/generated/skills/3d-modeling/modularization.md +25 -0
  15. package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
  16. package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
  17. package/{lib → generated}/skills/contracts/development/design.md +2 -3
  18. package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
  19. package/{lib → generated}/skills/contracts/development/testing.md +1 -1
  20. package/generated/skills/development/repair.md +13 -0
  21. package/{lib → generated}/skills/documentation/SKILL.md +2 -8
  22. package/generated/skills/documentation/writing.md +63 -0
  23. package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
  24. package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
  25. package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
  26. package/generated/skills/motion/laws/transitions.md +37 -0
  27. package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
  28. package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
  29. package/generated/skills/prompting/SKILL.md +82 -0
  30. package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
  31. package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
  32. package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
  33. package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
  34. package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
  35. package/lib/assertScaffoldProjectName.d.ts +1 -1
  36. package/lib/assertScaffoldProjectName.js +1 -1
  37. package/lib/createAutoMovieScaffold.d.ts +27 -0
  38. package/lib/createAutoMovieScaffold.js +145 -0
  39. package/lib/createAutoMovieScaffold.js.map +1 -0
  40. package/lib/index.d.ts +1 -45
  41. package/lib/index.js +1 -45
  42. package/lib/index.js.map +1 -1
  43. package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
  44. package/lib/listAutoMovieScaffoldFiles.js +2 -2
  45. package/package.json +9 -12
  46. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
  47. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
  48. package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
  49. package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
  50. package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
  51. package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
  52. package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
  53. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
  54. package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
  55. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
  56. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
  57. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
  58. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
  59. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
  60. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
  61. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
  62. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
  63. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
  64. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
  65. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
  66. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
  67. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
  68. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
  69. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
  70. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
  71. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
  72. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
  73. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
  74. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +2 -2
  75. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
  76. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
  77. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
  78. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
  79. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
  80. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
  81. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +3 -3
  82. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
  83. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
  84. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
  85. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
  86. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
  87. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
  88. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
  89. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
  90. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -6
  91. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
  92. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
  93. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
  94. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
  95. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
  96. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +3 -3
  97. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
  98. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
  99. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
  100. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
  101. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
  102. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
  103. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
  104. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
  105. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
  106. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
  107. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
  108. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
  109. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
  110. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
  111. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
  112. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
  113. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
  114. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
  115. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
  116. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
  117. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
  118. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
  119. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
  120. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
  121. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
  122. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
  123. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
  124. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
  125. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
  126. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
  127. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
  128. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
  129. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
  130. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
  131. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
  132. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
  133. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
  134. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
  135. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
  136. package/scaffold/instructions/.agents/skills/development/SKILL.md +5 -7
  137. package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
  138. package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
  139. package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
  140. package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
  141. package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
  142. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
  143. package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
  144. package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
  145. package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
  146. package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
  147. package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
  148. package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
  149. package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
  150. package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
  151. package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
  152. package/scaffold/instructions/.agents/skills/image/models.md +18 -0
  153. package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
  154. package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
  155. package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
  156. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
  157. package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
  158. package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
  159. package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
  160. package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
  161. package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
  162. package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
  163. package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
  164. package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
  165. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
  166. package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
  167. package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
  168. package/scaffold/instructions/.agents/skills/motion/laws/extension.md +35 -0
  169. package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
  170. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
  171. package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
  172. package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
  173. package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
  174. package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
  175. package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
  176. package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
  177. package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
  178. package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
  179. package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
  180. package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
  181. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
  182. package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
  183. package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
  184. package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
  185. package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
  186. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
  187. package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
  188. package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
  189. package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
  190. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
  191. package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
  192. package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
  193. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
  194. package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
  195. package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
  196. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
  197. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
  198. package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
  199. package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
  200. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
  201. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +4 -4
  202. package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
  203. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
  204. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
  205. package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
  206. package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
  207. package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
  208. package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
  209. package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
  210. package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
  211. package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
  212. package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
  213. package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +14 -0
  214. package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
  215. package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
  216. package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
  217. package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
  218. package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
  219. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
  220. package/scaffold/instructions/AGENTS.md +30 -56
  221. package/scaffold/production/PROJECT.md +1 -1
  222. package/scaffold/production/README.md +50 -96
  223. package/scaffold/production/_gitignore +1 -2
  224. package/scaffold/production/index.html +4 -8
  225. package/scaffold/production/lint.config.ts +1 -1
  226. package/scaffold/production/package.json +31 -31
  227. package/scaffold/production/src/IFilm.ts +3 -3
  228. package/scaffold/production/src/IFilmProduction.ts +16 -5
  229. package/scaffold/production/src/composition/films/index.ts +3 -2
  230. package/scaffold/production/src/composition/films/starter.ts +2 -2
  231. package/scaffold/production/src/main.ts +9 -195
  232. package/scaffold/production/src/markFilmProduction.ts +43 -0
  233. package/scaffold/production/src/selectFilm.ts +3 -5
  234. package/scaffold/production/src/subjects.ts +59 -0
  235. package/scaffold/production/vite.config.ts +4 -2
  236. package/scaffold/workspace/README.md +5 -7
  237. package/scaffold/workspace/package.json +1 -1
  238. package/src/IAutoMovieScaffoldProps.ts +15 -6
  239. package/src/assertScaffoldProjectName.ts +1 -1
  240. package/src/createAutoMovieScaffold.ts +152 -0
  241. package/src/index.ts +1 -46
  242. package/src/listAutoMovieScaffoldFiles.ts +2 -2
  243. package/build/resolveTemplateVersions.ts +0 -92
  244. package/build/syncScaffoldInstructions.ts +0 -28
  245. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
  246. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
  247. package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
  248. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
  249. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
  250. package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
  251. package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
  252. package/lib/AutoMovieScaffoldLayer.js +0 -3
  253. package/lib/AutoMovieScaffoldLayer.js.map +0 -1
  254. package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
  255. package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
  256. package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
  257. package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
  258. package/lib/IAutoMovieCatalogVersionProps.js +0 -3
  259. package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
  260. package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
  261. package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
  262. package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
  263. package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
  264. package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
  265. package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
  266. package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
  267. package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
  268. package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
  269. package/lib/IBoundChild.d.ts +0 -71
  270. package/lib/IBoundChild.js +0 -3
  271. package/lib/IBoundChild.js.map +0 -1
  272. package/lib/IBoundChildStatus.d.ts +0 -20
  273. package/lib/IBoundChildStatus.js +0 -3
  274. package/lib/IBoundChildStatus.js.map +0 -1
  275. package/lib/IBoundParent.d.ts +0 -61
  276. package/lib/IBoundParent.js +0 -3
  277. package/lib/IBoundParent.js.map +0 -1
  278. package/lib/IBoundParentStatus.d.ts +0 -14
  279. package/lib/IBoundParentStatus.js +0 -3
  280. package/lib/IBoundParentStatus.js.map +0 -1
  281. package/lib/ICreateResult.d.ts +0 -27
  282. package/lib/ICreateResult.js +0 -3
  283. package/lib/ICreateResult.js.map +0 -1
  284. package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
  285. package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
  286. package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
  287. package/lib/IScaffoldCompletedPublication.d.ts +0 -15
  288. package/lib/IScaffoldCompletedPublication.js +0 -3
  289. package/lib/IScaffoldCompletedPublication.js.map +0 -1
  290. package/lib/IScaffoldFileSnapshot.d.ts +0 -24
  291. package/lib/IScaffoldFileSnapshot.js +0 -3
  292. package/lib/IScaffoldFileSnapshot.js.map +0 -1
  293. package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
  294. package/lib/IScaffoldParentPublicationRequest.js +0 -3
  295. package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
  296. package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
  297. package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
  298. package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
  299. package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
  300. package/lib/IScaffoldPhysicalDirectory.js +0 -3
  301. package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
  302. package/lib/IScaffoldPosixConstants.d.ts +0 -24
  303. package/lib/IScaffoldPosixConstants.js +0 -3
  304. package/lib/IScaffoldPosixConstants.js.map +0 -1
  305. package/lib/IScaffoldPublicationEntry.d.ts +0 -20
  306. package/lib/IScaffoldPublicationEntry.js +0 -3
  307. package/lib/IScaffoldPublicationEntry.js.map +0 -1
  308. package/lib/IScaffoldPublicationFailure.d.ts +0 -18
  309. package/lib/IScaffoldPublicationFailure.js +0 -3
  310. package/lib/IScaffoldPublicationFailure.js.map +0 -1
  311. package/lib/IScaffoldPublicationOptions.d.ts +0 -17
  312. package/lib/IScaffoldPublicationOptions.js +0 -3
  313. package/lib/IScaffoldPublicationOptions.js.map +0 -1
  314. package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
  315. package/lib/IScaffoldPublicationReceipt.js +0 -3
  316. package/lib/IScaffoldPublicationReceipt.js.map +0 -1
  317. package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
  318. package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
  319. package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
  320. package/lib/IScaffoldSyncPlan.d.ts +0 -25
  321. package/lib/IScaffoldSyncPlan.js +0 -3
  322. package/lib/IScaffoldSyncPlan.js.map +0 -1
  323. package/lib/IScaffoldSyncProps.d.ts +0 -16
  324. package/lib/IScaffoldSyncProps.js +0 -3
  325. package/lib/IScaffoldSyncProps.js.map +0 -1
  326. package/lib/IWindowsFileInformation.d.ts +0 -20
  327. package/lib/IWindowsFileInformation.js +0 -3
  328. package/lib/IWindowsFileInformation.js.map +0 -1
  329. package/lib/IWindowsLibrary.d.ts +0 -127
  330. package/lib/IWindowsLibrary.js +0 -3
  331. package/lib/IWindowsLibrary.js.map +0 -1
  332. package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
  333. package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
  334. package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
  335. package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
  336. package/lib/ScaffoldFilePublicationOutcome.js +0 -3
  337. package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
  338. package/lib/ScaffoldParentChangedError.d.ts +0 -11
  339. package/lib/ScaffoldParentChangedError.js +0 -19
  340. package/lib/ScaffoldParentChangedError.js.map +0 -1
  341. package/lib/ScaffoldPublicationError.d.ts +0 -17
  342. package/lib/ScaffoldPublicationError.js +0 -46
  343. package/lib/ScaffoldPublicationError.js.map +0 -1
  344. package/lib/assertOrdinaryFile.d.ts +0 -13
  345. package/lib/assertOrdinaryFile.js +0 -20
  346. package/lib/assertOrdinaryFile.js.map +0 -1
  347. package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
  348. package/lib/assertOrdinarySingleLinkFile.js +0 -22
  349. package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
  350. package/lib/assertScaffoldOwnership.d.ts +0 -13
  351. package/lib/assertScaffoldOwnership.js +0 -24
  352. package/lib/assertScaffoldOwnership.js.map +0 -1
  353. package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
  354. package/lib/assertScaffoldPhysicalDirectory.js +0 -26
  355. package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
  356. package/lib/attachScaffoldSyncState.d.ts +0 -18
  357. package/lib/attachScaffoldSyncState.js +0 -30
  358. package/lib/attachScaffoldSyncState.js.map +0 -1
  359. package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
  360. package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
  361. package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
  362. package/lib/captureScaffoldFile.d.ts +0 -13
  363. package/lib/captureScaffoldFile.js +0 -67
  364. package/lib/captureScaffoldFile.js.map +0 -1
  365. package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
  366. package/lib/captureScaffoldPhysicalDirectory.js +0 -63
  367. package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
  368. package/lib/combineScaffoldFailures.d.ts +0 -19
  369. package/lib/combineScaffoldFailures.js +0 -32
  370. package/lib/combineScaffoldFailures.js.map +0 -1
  371. package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
  372. package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
  373. package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
  374. package/lib/createScaffoldSyncState.d.ts +0 -12
  375. package/lib/createScaffoldSyncState.js +0 -26
  376. package/lib/createScaffoldSyncState.js.map +0 -1
  377. package/lib/createScaffoldVariables.d.ts +0 -25
  378. package/lib/createScaffoldVariables.js +0 -41
  379. package/lib/createScaffoldVariables.js.map +0 -1
  380. package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
  381. package/lib/ensureScaffoldBaseDirectory.js +0 -89
  382. package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
  383. package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
  384. package/lib/ensureScaffoldFileDirectory.js +0 -103
  385. package/lib/ensureScaffoldFileDirectory.js.map +0 -1
  386. package/lib/inside.d.ts +0 -12
  387. package/lib/inside.js +0 -57
  388. package/lib/inside.js.map +0 -1
  389. package/lib/isScaffoldInstruction.d.ts +0 -12
  390. package/lib/isScaffoldInstruction.js +0 -29
  391. package/lib/isScaffoldInstruction.js.map +0 -1
  392. package/lib/loadWindowsLibrary.d.ts +0 -13
  393. package/lib/loadWindowsLibrary.js +0 -180
  394. package/lib/loadWindowsLibrary.js.map +0 -1
  395. package/lib/mergeScaffoldFiles.d.ts +0 -18
  396. package/lib/mergeScaffoldFiles.js +0 -37
  397. package/lib/mergeScaffoldFiles.js.map +0 -1
  398. package/lib/missingPath.d.ts +0 -12
  399. package/lib/missingPath.js +0 -18
  400. package/lib/missingPath.js.map +0 -1
  401. package/lib/nativeError.d.ts +0 -12
  402. package/lib/nativeError.js +0 -17
  403. package/lib/nativeError.js.map +0 -1
  404. package/lib/openPosixParent.d.ts +0 -13
  405. package/lib/openPosixParent.js +0 -135
  406. package/lib/openPosixParent.js.map +0 -1
  407. package/lib/openWindowsParent.d.ts +0 -13
  408. package/lib/openWindowsParent.js +0 -224
  409. package/lib/openWindowsParent.js.map +0 -1
  410. package/lib/overwriteScaffoldFile.d.ts +0 -22
  411. package/lib/overwriteScaffoldFile.js +0 -214
  412. package/lib/overwriteScaffoldFile.js.map +0 -1
  413. package/lib/physicalDirectoryIdentity.d.ts +0 -15
  414. package/lib/physicalDirectoryIdentity.js +0 -65
  415. package/lib/physicalDirectoryIdentity.js.map +0 -1
  416. package/lib/physicalVersion.d.ts +0 -13
  417. package/lib/physicalVersion.js +0 -18
  418. package/lib/physicalVersion.js.map +0 -1
  419. package/lib/planScaffoldPublication.d.ts +0 -22
  420. package/lib/planScaffoldPublication.js +0 -100
  421. package/lib/planScaffoldPublication.js.map +0 -1
  422. package/lib/planScaffoldSync.d.ts +0 -14
  423. package/lib/planScaffoldSync.js +0 -102
  424. package/lib/planScaffoldSync.js.map +0 -1
  425. package/lib/publishFiles.d.ts +0 -23
  426. package/lib/publishFiles.js +0 -124
  427. package/lib/publishFiles.js.map +0 -1
  428. package/lib/publishNativeScaffoldFile.d.ts +0 -21
  429. package/lib/publishNativeScaffoldFile.js +0 -211
  430. package/lib/publishNativeScaffoldFile.js.map +0 -1
  431. package/lib/publishScaffoldCandidate.d.ts +0 -24
  432. package/lib/publishScaffoldCandidate.js +0 -70
  433. package/lib/publishScaffoldCandidate.js.map +0 -1
  434. package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
  435. package/lib/readAutoMovieScaffoldSources.js +0 -103
  436. package/lib/readAutoMovieScaffoldSources.js.map +0 -1
  437. package/lib/readScaffoldSyncFile.d.ts +0 -16
  438. package/lib/readScaffoldSyncFile.js +0 -64
  439. package/lib/readScaffoldSyncFile.js.map +0 -1
  440. package/lib/renderScaffold.d.ts +0 -19
  441. package/lib/renderScaffold.js +0 -33
  442. package/lib/renderScaffold.js.map +0 -1
  443. package/lib/renderScaffoldEntries.d.ts +0 -20
  444. package/lib/renderScaffoldEntries.js +0 -106
  445. package/lib/renderScaffoldEntries.js.map +0 -1
  446. package/lib/renderScaffoldInstructions.d.ts +0 -17
  447. package/lib/renderScaffoldInstructions.js +0 -23
  448. package/lib/renderScaffoldInstructions.js.map +0 -1
  449. package/lib/renderScaffoldLayer.d.ts +0 -20
  450. package/lib/renderScaffoldLayer.js +0 -28
  451. package/lib/renderScaffoldLayer.js.map +0 -1
  452. package/lib/renderTemplate.d.ts +0 -19
  453. package/lib/renderTemplate.js +0 -56
  454. package/lib/renderTemplate.js.map +0 -1
  455. package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
  456. package/lib/renderWorkspaceProductionScaffold.js +0 -30
  457. package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
  458. package/lib/renderWorkspaceScaffold.d.ts +0 -19
  459. package/lib/renderWorkspaceScaffold.js +0 -33
  460. package/lib/renderWorkspaceScaffold.js.map +0 -1
  461. package/lib/replaceSharedScaffoldFile.d.ts +0 -30
  462. package/lib/replaceSharedScaffoldFile.js +0 -106
  463. package/lib/replaceSharedScaffoldFile.js.map +0 -1
  464. package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
  465. package/lib/resolveAutoMovieCatalogVersion.js +0 -24
  466. package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
  467. package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
  468. package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
  469. package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
  470. package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
  471. package/lib/resolveScaffoldPosixConstants.js +0 -44
  472. package/lib/resolveScaffoldPosixConstants.js.map +0 -1
  473. package/lib/scaffoldAssetDirectory.d.ts +0 -19
  474. package/lib/scaffoldAssetDirectory.js +0 -63
  475. package/lib/scaffoldAssetDirectory.js.map +0 -1
  476. package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
  477. package/lib/scaffoldPhysicalIdentity.js +0 -22
  478. package/lib/scaffoldPhysicalIdentity.js.map +0 -1
  479. package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
  480. package/lib/scaffoldSharedSkillDirectory.js +0 -62
  481. package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
  482. package/lib/skills/3d-modeling/crafting.md +0 -82
  483. package/lib/skills/3d-modeling/diffusion.md +0 -34
  484. package/lib/skills/3d-modeling/inspection.md +0 -54
  485. package/lib/skills/3d-modeling/lofting.md +0 -43
  486. package/lib/skills/3d-modeling/modularization.md +0 -31
  487. package/lib/skills/3d-modeling/recovery.md +0 -29
  488. package/lib/skills/development/repair.md +0 -13
  489. package/lib/skills/documentation/writing.md +0 -51
  490. package/lib/skills/motion/layers.md +0 -7
  491. package/lib/skills/motion/transitions.md +0 -27
  492. package/lib/skills/prompting/SKILL.md +0 -80
  493. package/lib/syncScaffold.d.ts +0 -19
  494. package/lib/syncScaffold.js +0 -28
  495. package/lib/syncScaffold.js.map +0 -1
  496. package/lib/writeFiles.d.ts +0 -20
  497. package/lib/writeFiles.js +0 -33
  498. package/lib/writeFiles.js.map +0 -1
  499. package/lib/writeScaffoldFile.d.ts +0 -35
  500. package/lib/writeScaffoldFile.js +0 -107
  501. package/lib/writeScaffoldFile.js.map +0 -1
  502. package/lib/writtenVersion.d.ts +0 -13
  503. package/lib/writtenVersion.js +0 -18
  504. package/lib/writtenVersion.js.map +0 -1
  505. package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
  506. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
  507. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
  508. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
  509. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
  510. package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
  511. package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
  512. package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
  513. package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
  514. package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
  515. package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
  516. package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
  517. package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
  518. package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
  519. package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
  520. package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
  521. package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
  522. package/scaffold/production/evidence.config.ts +0 -12
  523. package/scaffold/production/src/executable/capture.ts +0 -489
  524. package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
  525. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
  526. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
  527. package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
  528. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
  529. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
  530. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
  531. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
  532. package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
  533. package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
  534. package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
  535. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
  536. package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
  537. package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
  538. package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
  539. package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
  540. package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
  541. package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
  542. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
  543. package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
  544. package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
  545. package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
  546. package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
  547. package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
  548. package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
  549. package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
  550. package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
  551. package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
  552. package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
  553. package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
  554. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
  555. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
  556. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
  557. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
  558. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
  559. package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
  560. package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
  561. package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
  562. package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
  563. package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
  564. package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
  565. package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
  566. package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
  567. package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
  568. package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
  569. package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
  570. package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
  571. package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
  572. package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
  573. package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
  574. package/scaffold/production/src/executable/render/node/index.ts +0 -27
  575. package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
  576. package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
  577. package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
  578. package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
  579. package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
  580. package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
  581. package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
  582. package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
  583. package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
  584. package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
  585. package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
  586. package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
  587. package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
  588. package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
  589. package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
  590. package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
  591. package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
  592. package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
  593. package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
  594. package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
  595. package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
  596. package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
  597. package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
  598. package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
  599. package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
  600. package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
  601. package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
  602. package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
  603. package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
  604. package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
  605. package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
  606. package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
  607. package/scaffold/production/src/executable/render.ts +0 -92
  608. package/scaffold/production/src/executable/review.ts +0 -54
  609. package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
  610. package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
  611. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
  612. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
  613. package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
  614. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
  615. package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
  616. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
  617. package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
  618. package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
  619. package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
  620. package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
  621. package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
  622. package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
  623. package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
  624. package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
  625. package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
  626. package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
  627. package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
  628. package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
  629. package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
  630. package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
  631. package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
  632. package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
  633. package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
  634. package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
  635. package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
  636. package/scaffold/workspace/pnpm-workspace.yaml +0 -46
  637. package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
  638. package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
  639. package/src/AutoMovieScaffoldLayer.ts +0 -18
  640. package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
  641. package/src/IAutoMovieCatalogVersionProps.ts +0 -18
  642. package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
  643. package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
  644. package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
  645. package/src/IBoundChild.ts +0 -86
  646. package/src/IBoundChildStatus.ts +0 -24
  647. package/src/IBoundParent.ts +0 -65
  648. package/src/IBoundParentStatus.ts +0 -15
  649. package/src/ICreateResult.ts +0 -35
  650. package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
  651. package/src/IScaffoldCompletedPublication.ts +0 -17
  652. package/src/IScaffoldFileSnapshot.ts +0 -28
  653. package/src/IScaffoldParentPublicationRequest.ts +0 -29
  654. package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
  655. package/src/IScaffoldPhysicalDirectory.ts +0 -22
  656. package/src/IScaffoldPosixConstants.ts +0 -30
  657. package/src/IScaffoldPublicationEntry.ts +0 -22
  658. package/src/IScaffoldPublicationFailure.ts +0 -18
  659. package/src/IScaffoldPublicationOptions.ts +0 -19
  660. package/src/IScaffoldPublicationReceipt.ts +0 -29
  661. package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
  662. package/src/IScaffoldSyncPlan.ts +0 -26
  663. package/src/IScaffoldSyncProps.ts +0 -16
  664. package/src/IWindowsFileInformation.ts +0 -24
  665. package/src/IWindowsLibrary.ts +0 -148
  666. package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
  667. package/src/ScaffoldFilePublicationOutcome.ts +0 -18
  668. package/src/ScaffoldParentChangedError.ts +0 -14
  669. package/src/ScaffoldPublicationError.ts +0 -58
  670. package/src/assertOrdinaryFile.ts +0 -20
  671. package/src/assertOrdinarySingleLinkFile.ts +0 -26
  672. package/src/assertScaffoldOwnership.ts +0 -29
  673. package/src/assertScaffoldPhysicalDirectory.ts +0 -29
  674. package/src/attachScaffoldSyncState.ts +0 -30
  675. package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
  676. package/src/captureScaffoldFile.ts +0 -34
  677. package/src/captureScaffoldPhysicalDirectory.ts +0 -34
  678. package/src/combineScaffoldFailures.ts +0 -35
  679. package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
  680. package/src/createScaffoldSyncState.ts +0 -33
  681. package/src/createScaffoldVariables.ts +0 -50
  682. package/src/ensureScaffoldBaseDirectory.ts +0 -55
  683. package/src/ensureScaffoldFileDirectory.ts +0 -75
  684. package/src/inside.ts +0 -25
  685. package/src/isScaffoldInstruction.ts +0 -29
  686. package/src/loadWindowsLibrary.ts +0 -277
  687. package/src/mergeScaffoldFiles.ts +0 -39
  688. package/src/missingPath.ts +0 -16
  689. package/src/nativeError.ts +0 -15
  690. package/src/openPosixParent.ts +0 -155
  691. package/src/openWindowsParent.ts +0 -305
  692. package/src/overwriteScaffoldFile.ts +0 -262
  693. package/src/physicalDirectoryIdentity.ts +0 -33
  694. package/src/physicalVersion.ts +0 -18
  695. package/src/planScaffoldPublication.ts +0 -100
  696. package/src/planScaffoldSync.ts +0 -122
  697. package/src/publishFiles.ts +0 -120
  698. package/src/publishNativeScaffoldFile.ts +0 -287
  699. package/src/publishScaffoldCandidate.ts +0 -94
  700. package/src/readAutoMovieScaffoldSources.ts +0 -82
  701. package/src/readScaffoldSyncFile.ts +0 -66
  702. package/src/renderScaffold.ts +0 -43
  703. package/src/renderScaffoldEntries.ts +0 -110
  704. package/src/renderScaffoldInstructions.ts +0 -22
  705. package/src/renderScaffoldLayer.ts +0 -38
  706. package/src/renderTemplate.ts +0 -62
  707. package/src/renderWorkspaceProductionScaffold.ts +0 -35
  708. package/src/renderWorkspaceScaffold.ts +0 -43
  709. package/src/replaceSharedScaffoldFile.ts +0 -88
  710. package/src/resolveAutoMovieCatalogVersion.ts +0 -27
  711. package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
  712. package/src/resolveScaffoldPosixConstants.ts +0 -50
  713. package/src/scaffoldAssetDirectory.ts +0 -30
  714. package/src/scaffoldPhysicalIdentity.ts +0 -21
  715. package/src/scaffoldSharedSkillDirectory.ts +0 -25
  716. package/src/syncScaffold.ts +0 -38
  717. package/src/writeFiles.ts +0 -48
  718. package/src/writeScaffoldFile.ts +0 -88
  719. package/src/writtenVersion.ts +0 -19
  720. /package/{lib → generated}/skills/contracts/development/common.md +0 -0
  721. /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
  722. /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
  723. /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
  724. /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
  725. /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
  726. /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
  727. /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
  728. /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
  729. /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
  730. /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
  731. /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
  732. /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createScaffoldVariables = void 0;
4
- const AUTOMOVIE_TEMPLATE_CATALOGS_1 = require("./AUTOMOVIE_TEMPLATE_CATALOGS");
5
- const AUTOMOVIE_TEMPLATE_VERSIONS_1 = require("./AUTOMOVIE_TEMPLATE_VERSIONS");
6
- /**
7
- * The token table for the `production` and `workspace` scaffold layers.
8
- *
9
- * `{{name}}` is the admitted project name and `{{skills}}` the path from the rendered directory to the shared `.agents/skills` tree. Every `{{version:<key>}}` resolves to the build-time {@link AUTOMOVIE_TEMPLATE_VERSIONS} range for `"release"`, or to the named-catalog specifier `catalog:<name>` from {@link AUTOMOVIE_TEMPLATE_CATALOGS} for `"catalog"`, so a workspace production takes its versions from the workspace root's `pnpm-workspace.yaml`.
10
- *
11
- * @param props The admitted name, the skills path, and how dependency versions are written.
12
- * @returns A fresh token table.
13
- * @throws When a version key has no catalog in catalog mode.
14
- *
15
- * @evidence contracts/development/implementation.md#principled-implementation A pnpm `catalog:<name>` specifier resolves through the workspace's named `catalogs`, so writing it for every version key defers each range to the catalog the workspace root renders from the same version table.
16
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One owner builds every layer's table; the renderers choose only the name, the skills path and the dependency mode.
17
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The keys are exactly the version table's plus `name` and `skills`, with no per-file value; an unknown token still fails rendering.
18
- * @evidence contracts/development/common.md#meaningful-documentation The comment states every token, both dependency modes and why the catalog mode exists.
19
- * @evidence contracts/development/implementation.md#efficient-algorithms One pass over the fixed version table.
20
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A render builds its table once.
21
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned table is owned by the caller and holds one string per key.
22
- */
23
- const createScaffoldVariables = (props) => {
24
- const variables = {
25
- name: props.name,
26
- skills: props.skills,
27
- };
28
- for (const [key, value] of Object.entries(AUTOMOVIE_TEMPLATE_VERSIONS_1.AUTOMOVIE_TEMPLATE_VERSIONS)) {
29
- if (props.dependencies === "release") {
30
- variables[`version:${key}`] = value;
31
- continue;
32
- }
33
- const catalog = AUTOMOVIE_TEMPLATE_CATALOGS_1.AUTOMOVIE_TEMPLATE_CATALOGS[key];
34
- if (catalog === undefined)
35
- throw new Error(`version key "${key}" has no workspace catalog`);
36
- variables[`version:${key}`] = `catalog:${catalog}`;
37
- }
38
- return variables;
39
- };
40
- exports.createScaffoldVariables = createScaffoldVariables;
41
- //# sourceMappingURL=createScaffoldVariables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createScaffoldVariables.js","sourceRoot":"","sources":["../src/createScaffoldVariables.ts"],"names":[],"mappings":";;;AAAA,+EAA4E;AAC5E,+EAA4E;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,uBAAuB,GASL,CAAC,KAI/B,EAA0B,EAAE;IAC3B,MAAM,SAAS,GAA2B;QACxC,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC;IACF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,yDAA2B,CAAC,EAAE,CAAC;QACvE,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACrC,SAAS,CAAC,WAAW,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;YACpC,SAAS;QACX,CAAC;QACD,MAAM,OAAO,GAAuB,yDAA2B,CAAC,GAAG,CAAC,CAAC;QACrE,IAAI,OAAO,KAAK,SAAS;YACvB,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,4BAA4B,CAAC,CAAC;QACnE,SAAS,CAAC,WAAW,GAAG,EAAE,CAAC,GAAG,WAAW,OAAO,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AA7BW,QAAA,uBAAuB,GAAvB,uBAAuB,CA6BlC"}
@@ -1,19 +0,0 @@
1
- import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
2
- /**
3
- * Create or capture the scaffold root, qualifying the nearest existing directory and every missing level created below it.
4
- *
5
- * The nearest existing ancestor of `directory` is captured first; each missing level is then created with a plain `mkdir`, after revalidating the level above it, and captured as a new, empty, ordinary directory. Existing ancestors above that first capture are not walked: an intermediate link in its pathname can therefore lead to the captured real directory.
6
- *
7
- * @param directory Root path, resolved against the working directory.
8
- * @returns The captured root.
9
- * @throws When an existing level is a link or not a directory, when a captured level changes during creation, when a level created here is not empty, or when an ancestor cannot be read for a reason other than being missing.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation The walk climbs with `path.dirname` until a level exists, which ends at the file-system root, then creates downward with non-recursive `mkdirSync`, so every created level has a captured parent; a level created by someone else between the climb and the `mkdir` makes `mkdir` throw `EEXIST` instead of being adopted.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This function owns only the root and its missing ancestors; descendants of the root belong to `ensureScaffoldFileDirectory`, which checks containment against this capture.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only `ENOENT` and `ENOTDIR` are treated as missing levels; any other capture error propagates, and an unexpected entry in a level created here is refused rather than tolerated.
14
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the climb, create-and-capture order, path resolution and refusals, and limits link admission to the first captured existing directory and newly created levels rather than every existing pathname ancestor.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the number of path levels, with a constant number of stats, opens, and real-path reads per level; `missing.unshift` is quadratic only in that depth, which is a handful of levels.
16
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call captures the current file-system state that the caller is about to rely on, so an earlier capture is not equivalent; `publishFiles` calls this once per publication.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources physicalDirectoryIdentity attempts close for each capture and propagates close failures; successful captures own only strings. This walk keeps a call-local list bounded by missing path depth, while created directories intentionally remain after later refusal.
18
- */
19
- export declare const ensureScaffoldBaseDirectory: (directory: string) => IScaffoldPhysicalDirectory;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ensureScaffoldBaseDirectory = void 0;
37
- const fs = __importStar(require("node:fs"));
38
- const path = __importStar(require("node:path"));
39
- const assertScaffoldPhysicalDirectory_1 = require("./assertScaffoldPhysicalDirectory");
40
- const captureEmptyScaffoldPhysicalDirectory_1 = require("./captureEmptyScaffoldPhysicalDirectory");
41
- const captureScaffoldPhysicalDirectory_1 = require("./captureScaffoldPhysicalDirectory");
42
- const missingPath_1 = require("./missingPath");
43
- /**
44
- * Create or capture the scaffold root, qualifying the nearest existing directory and every missing level created below it.
45
- *
46
- * The nearest existing ancestor of `directory` is captured first; each missing level is then created with a plain `mkdir`, after revalidating the level above it, and captured as a new, empty, ordinary directory. Existing ancestors above that first capture are not walked: an intermediate link in its pathname can therefore lead to the captured real directory.
47
- *
48
- * @param directory Root path, resolved against the working directory.
49
- * @returns The captured root.
50
- * @throws When an existing level is a link or not a directory, when a captured level changes during creation, when a level created here is not empty, or when an ancestor cannot be read for a reason other than being missing.
51
- *
52
- * @evidence contracts/development/implementation.md#principled-implementation The walk climbs with `path.dirname` until a level exists, which ends at the file-system root, then creates downward with non-recursive `mkdirSync`, so every created level has a captured parent; a level created by someone else between the climb and the `mkdir` makes `mkdir` throw `EEXIST` instead of being adopted.
53
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This function owns only the root and its missing ancestors; descendants of the root belong to `ensureScaffoldFileDirectory`, which checks containment against this capture.
54
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only `ENOENT` and `ENOTDIR` are treated as missing levels; any other capture error propagates, and an unexpected entry in a level created here is refused rather than tolerated.
55
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the climb, create-and-capture order, path resolution and refusals, and limits link admission to the first captured existing directory and newly created levels rather than every existing pathname ancestor.
56
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the number of path levels, with a constant number of stats, opens, and real-path reads per level; `missing.unshift` is quadratic only in that depth, which is a handful of levels.
57
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call captures the current file-system state that the caller is about to rely on, so an earlier capture is not equivalent; `publishFiles` calls this once per publication.
58
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources physicalDirectoryIdentity attempts close for each capture and propagates close failures; successful captures own only strings. This walk keeps a call-local list bounded by missing path depth, while created directories intentionally remain after later refusal.
59
- */
60
- const ensureScaffoldBaseDirectory = (directory) => {
61
- const absolute = path.resolve(directory);
62
- const missing = [];
63
- let cursor = absolute;
64
- let ownership;
65
- while (true) {
66
- try {
67
- ownership = (0, captureScaffoldPhysicalDirectory_1.captureScaffoldPhysicalDirectory)(cursor);
68
- break;
69
- }
70
- catch (error) {
71
- if ((0, missingPath_1.missingPath)(error) === false)
72
- throw error;
73
- missing.unshift(cursor);
74
- const parent = path.dirname(cursor);
75
- if (parent === cursor)
76
- throw error;
77
- cursor = parent;
78
- }
79
- }
80
- for (const target of missing) {
81
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(ownership);
82
- fs.mkdirSync(target);
83
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(ownership);
84
- ownership = (0, captureEmptyScaffoldPhysicalDirectory_1.captureEmptyScaffoldPhysicalDirectory)(target);
85
- }
86
- return ownership;
87
- };
88
- exports.ensureScaffoldBaseDirectory = ensureScaffoldBaseDirectory;
89
- //# sourceMappingURL=ensureScaffoldBaseDirectory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensureScaffoldBaseDirectory.js","sourceRoot":"","sources":["../src/ensureScaffoldBaseDirectory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAGlC,uFAAoF;AACpF,mGAAgG;AAChG,yFAAsF;AACtF,+CAA4C;AAE5C;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,2BAA2B,GAEN,CAChC,SAAiB,EACW,EAAE;IAC9B,MAAM,QAAQ,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAW,QAAQ,CAAC;IAC9B,IAAI,SAAqC,CAAC;IAC1C,OAAO,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC;YACH,SAAS,GAAG,IAAA,mEAAgC,EAAC,MAAM,CAAC,CAAC;YACrD,MAAM;QACR,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC,KAAK,KAAK;gBAAE,MAAM,KAAK,CAAC;YAC9C,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACxB,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC5C,IAAI,MAAM,KAAK,MAAM;gBAAE,MAAM,KAAK,CAAC;YACnC,MAAM,GAAG,MAAM,CAAC;QAClB,CAAC;IACH,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAA,iEAA+B,EAAC,SAAS,CAAC,CAAC;QAC3C,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACrB,IAAA,iEAA+B,EAAC,SAAS,CAAC,CAAC;QAC3C,SAAS,GAAG,IAAA,6EAAqC,EAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AA5BW,QAAA,2BAA2B,GAA3B,2BAA2B,CA4BtC"}
@@ -1,25 +0,0 @@
1
- import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
2
- /**
3
- * Resolve, creating where missing, every directory between the captured root and `directory`, and return the capture of `directory`.
4
- *
5
- * Each level is checked against the root and the level above it before it is read, created, or reused. A level created here must be empty. A level whose real path leaves the root's real path is refused, which catches a junction or symbolic link at any depth.
6
- *
7
- * @param props.base Captured scaffold root.
8
- * @param props.cache Captures of levels already resolved in this publication, keyed by absolute path. The function adds every level it captures; a hit is revalidated before use.
9
- * @param props.directory Directory to resolve, inside the root.
10
- * @returns The capture of `directory`, or `base` when they are the same.
11
- * @throws When `directory` is outside the root lexically or physically, or any level fails revalidation.
12
- *
13
- * @evidence contracts/development/implementation.md#principled-implementation Containment is decided twice: lexically with `path.relative`, which rejects `..` and absolute results, and physically by comparing native real paths, because a link can make a lexically contained path resolve elsewhere; creation uses non-recursive `mkdirSync` after revalidating the parent so only a captured parent receives a new level.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns descendant levels and their per-publication cache, while the caller owns the cache's lifetime and the root capture.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A cached level is still revalidated before reuse, and only a missing level is created; any other capture failure propagates.
16
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the per-level checks, the cache's key and ownership, the return for the root itself, and each refusal.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the depth of `directory` below the root, with a constant number of captures per level; a cache hit replaces the capture and creation of a level with one revalidation.
18
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A level captured for an earlier file of the same publication is reused from `props.cache` when its absolute path matches, and equivalence is proved by revalidating its identity and real path before use; a changed level throws rather than being recaptured.
19
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller's cache grows by one scalar capture per distinct candidate directory and holds no descriptor; identity helpers attempt close before returning, propagating close errors without proving release. Created directories are not removed on a later failure.
20
- */
21
- export declare const ensureScaffoldFileDirectory: (props: {
22
- base: IScaffoldPhysicalDirectory;
23
- cache: Map<string, IScaffoldPhysicalDirectory>;
24
- directory: string;
25
- }) => IScaffoldPhysicalDirectory;
@@ -1,103 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ensureScaffoldFileDirectory = void 0;
37
- const fs = __importStar(require("node:fs"));
38
- const path = __importStar(require("node:path"));
39
- const assertScaffoldPhysicalDirectory_1 = require("./assertScaffoldPhysicalDirectory");
40
- const captureEmptyScaffoldPhysicalDirectory_1 = require("./captureEmptyScaffoldPhysicalDirectory");
41
- const captureScaffoldPhysicalDirectory_1 = require("./captureScaffoldPhysicalDirectory");
42
- const inside_1 = require("./inside");
43
- const missingPath_1 = require("./missingPath");
44
- /**
45
- * Resolve, creating where missing, every directory between the captured root and `directory`, and return the capture of `directory`.
46
- *
47
- * Each level is checked against the root and the level above it before it is read, created, or reused. A level created here must be empty. A level whose real path leaves the root's real path is refused, which catches a junction or symbolic link at any depth.
48
- *
49
- * @param props.base Captured scaffold root.
50
- * @param props.cache Captures of levels already resolved in this publication, keyed by absolute path. The function adds every level it captures; a hit is revalidated before use.
51
- * @param props.directory Directory to resolve, inside the root.
52
- * @returns The capture of `directory`, or `base` when they are the same.
53
- * @throws When `directory` is outside the root lexically or physically, or any level fails revalidation.
54
- *
55
- * @evidence contracts/development/implementation.md#principled-implementation Containment is decided twice: lexically with `path.relative`, which rejects `..` and absolute results, and physically by comparing native real paths, because a link can make a lexically contained path resolve elsewhere; creation uses non-recursive `mkdirSync` after revalidating the parent so only a captured parent receives a new level.
56
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns descendant levels and their per-publication cache, while the caller owns the cache's lifetime and the root capture.
57
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A cached level is still revalidated before reuse, and only a missing level is created; any other capture failure propagates.
58
- * @evidence contracts/development/common.md#meaningful-documentation The comment states the per-level checks, the cache's key and ownership, the return for the root itself, and each refusal.
59
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the depth of `directory` below the root, with a constant number of captures per level; a cache hit replaces the capture and creation of a level with one revalidation.
60
- * @evidence contracts/development/implementation.md#reuse-equivalent-work A level captured for an earlier file of the same publication is reused from `props.cache` when its absolute path matches, and equivalence is proved by revalidating its identity and real path before use; a changed level throws rather than being recaptured.
61
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller's cache grows by one scalar capture per distinct candidate directory and holds no descriptor; identity helpers attempt close before returning, propagating close errors without proving release. Created directories are not removed on a later failure.
62
- */
63
- const ensureScaffoldFileDirectory = (props) => {
64
- const absolute = path.resolve(props.directory);
65
- const relative = path.relative(props.base.path, absolute);
66
- if (relative === ".." ||
67
- relative.startsWith(`..${path.sep}`) ||
68
- path.isAbsolute(relative))
69
- throw new Error(`scaffold directory escapes its base: ${absolute}`);
70
- let current = props.base;
71
- if (relative.length === 0)
72
- return current;
73
- for (const segment of relative.split(path.sep)) {
74
- const target = path.join(current.path, segment);
75
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(props.base);
76
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(current);
77
- let child = props.cache.get(target);
78
- if (child === undefined) {
79
- try {
80
- child = (0, captureScaffoldPhysicalDirectory_1.captureScaffoldPhysicalDirectory)(target);
81
- }
82
- catch (error) {
83
- if ((0, missingPath_1.missingPath)(error) === false)
84
- throw error;
85
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(props.base);
86
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(current);
87
- fs.mkdirSync(target);
88
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(props.base);
89
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(current);
90
- child = (0, captureEmptyScaffoldPhysicalDirectory_1.captureEmptyScaffoldPhysicalDirectory)(target);
91
- }
92
- if ((0, inside_1.inside)(props.base.real, child.real) === false)
93
- throw new Error(`scaffold directory escapes its physical base: ${target}`);
94
- props.cache.set(target, child);
95
- }
96
- else
97
- (0, assertScaffoldPhysicalDirectory_1.assertScaffoldPhysicalDirectory)(child);
98
- current = child;
99
- }
100
- return current;
101
- };
102
- exports.ensureScaffoldFileDirectory = ensureScaffoldFileDirectory;
103
- //# sourceMappingURL=ensureScaffoldFileDirectory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensureScaffoldFileDirectory.js","sourceRoot":"","sources":["../src/ensureScaffoldFileDirectory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAGlC,uFAAoF;AACpF,mGAAgG;AAChG,yFAAsF;AACtF,qCAAkC;AAClC,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,2BAA2B,GAIL,CAAC,KAInC,EAA8B,EAAE;IAC/B,MAAM,QAAQ,GAAW,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAW,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAClE,IACE,QAAQ,KAAK,IAAI;QACjB,QAAQ,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC;QACpC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAEzB,MAAM,IAAI,KAAK,CAAC,wCAAwC,QAAQ,EAAE,CAAC,CAAC;IACtE,IAAI,OAAO,GAA+B,KAAK,CAAC,IAAI,CAAC;IACrD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC;IAC1C,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,MAAM,MAAM,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxD,IAAA,iEAA+B,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAA,iEAA+B,EAAC,OAAO,CAAC,CAAC;QACzC,IAAI,KAAK,GAA2C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5E,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC;gBACH,KAAK,GAAG,IAAA,mEAAgC,EAAC,MAAM,CAAC,CAAC;YACnD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC,KAAK,KAAK;oBAAE,MAAM,KAAK,CAAC;gBAC9C,IAAA,iEAA+B,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC5C,IAAA,iEAA+B,EAAC,OAAO,CAAC,CAAC;gBACzC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBACrB,IAAA,iEAA+B,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC5C,IAAA,iEAA+B,EAAC,OAAO,CAAC,CAAC;gBACzC,KAAK,GAAG,IAAA,6EAAqC,EAAC,MAAM,CAAC,CAAC;YACxD,CAAC;YACD,IAAI,IAAA,eAAM,EAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK;gBAC/C,MAAM,IAAI,KAAK,CACb,iDAAiD,MAAM,EAAE,CAC1D,CAAC;YACJ,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACjC,CAAC;;YAAM,IAAA,iEAA+B,EAAC,KAAK,CAAC,CAAC;QAC9C,OAAO,GAAG,KAAK,CAAC;IAClB,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AA7CW,QAAA,2BAA2B,GAA3B,2BAA2B,CA6CtC"}
package/lib/inside.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * Whether a resolved target is the root or a lexical descendant under the current platform's path rules.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Path.relative determines whether a target is the root or a descendant, rejecting parent traversal and absolute remainders.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The shared lexical containment predicate serves both descendant capture and physical real-path ownership checks.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It compares path components rather than accepting a string prefix that could name a sibling directory.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment names the root-inclusive result and dependence on the current platform's path rules.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One relative-path calculation and prefix checks cost time proportional to the two path lengths.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The pure path predicate has no request coordination or filesystem cache; callers supply the actual lexical or real paths.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The temporary relative string lives only for the call and no filesystem handle is opened.
11
- */
12
- export declare const inside: (root: string, target: string) => boolean;
package/lib/inside.js DELETED
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.inside = void 0;
37
- const path = __importStar(require("node:path"));
38
- /**
39
- * Whether a resolved target is the root or a lexical descendant under the current platform's path rules.
40
- *
41
- * @evidence contracts/development/implementation.md#principled-implementation Path.relative determines whether a target is the root or a descendant, rejecting parent traversal and absolute remainders.
42
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The shared lexical containment predicate serves both descendant capture and physical real-path ownership checks.
43
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It compares path components rather than accepting a string prefix that could name a sibling directory.
44
- * @evidence contracts/development/common.md#meaningful-documentation The comment names the root-inclusive result and dependence on the current platform's path rules.
45
- * @evidence contracts/development/implementation.md#efficient-algorithms One relative-path calculation and prefix checks cost time proportional to the two path lengths.
46
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The pure path predicate has no request coordination or filesystem cache; callers supply the actual lexical or real paths.
47
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The temporary relative string lives only for the call and no filesystem handle is opened.
48
- */
49
- const inside = (root, target) => {
50
- const relative = path.relative(root, target);
51
- return (relative.length === 0 ||
52
- (relative !== ".." &&
53
- relative.startsWith(`..${path.sep}`) === false &&
54
- path.isAbsolute(relative) === false));
55
- };
56
- exports.inside = inside;
57
- //# sourceMappingURL=inside.js.map
package/lib/inside.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"inside.js","sourceRoot":"","sources":["../src/inside.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAElC;;;;;;;;;;GAUG;AACI,MAAM,MAAM,GAA8C,CAC/D,IAAY,EACZ,MAAc,EACL,EAAE;IACX,MAAM,QAAQ,GAAW,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACrD,OAAO,CACL,QAAQ,CAAC,MAAM,KAAK,CAAC;QACrB,CAAC,QAAQ,KAAK,IAAI;YAChB,QAAQ,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK;YAC9C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC,CACvC,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,MAAM,GAAN,MAAM,CAWjB"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Whether a project-relative file belongs to the generated instruction surface.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Only the two routers and non-contract skill resources are managed; normalized components refuse path traversal.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate defines both state admission and rendered instruction selection.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Contracts, project scope, README, configuration, source and media remain project-owned; no production name changes selection.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment and branches identify the exact generated surface.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Splitting and validating components is linear in path length.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same predicate serves renderer state and sync rather than duplicate path rules.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a call-local component array is allocated; no filesystem resource is acquired.
11
- */
12
- export declare function isScaffoldInstruction(relative: string): boolean;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isScaffoldInstruction = isScaffoldInstruction;
4
- /**
5
- * Whether a project-relative file belongs to the generated instruction surface.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Only the two routers and non-contract skill resources are managed; normalized components refuse path traversal.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate defines both state admission and rendered instruction selection.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Contracts, project scope, README, configuration, source and media remain project-owned; no production name changes selection.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment and branches identify the exact generated surface.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Splitting and validating components is linear in path length.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same predicate serves renderer state and sync rather than duplicate path rules.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a call-local component array is allocated; no filesystem resource is acquired.
14
- */
15
- function isScaffoldInstruction(relative) {
16
- if (relative === "AGENTS.md" || relative === "CLAUDE.md")
17
- return true;
18
- const parts = relative.split("/");
19
- return (parts.length >= 4 &&
20
- parts[0] === ".agents" &&
21
- parts[1] === "skills" &&
22
- parts[2] !== "contracts" &&
23
- parts
24
- .slice(2)
25
- .every((part) => /^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$/u.test(part) &&
26
- part !== "." &&
27
- part !== ".."));
28
- }
29
- //# sourceMappingURL=isScaffoldInstruction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isScaffoldInstruction.js","sourceRoot":"","sources":["../src/isScaffoldInstruction.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAAsC,QAAgB;IACpD,IAAI,QAAQ,KAAK,WAAW,IAAI,QAAQ,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC;IACtE,MAAM,KAAK,GAAa,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,CACL,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS;QACtB,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ;QACrB,KAAK,CAAC,CAAC,CAAC,KAAK,WAAW;QACxB,KAAK;aACF,KAAK,CAAC,CAAC,CAAC;aACR,KAAK,CACJ,CAAC,IAAY,EAAW,EAAE,CACxB,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC;YAC5C,IAAI,KAAK,GAAG;YACZ,IAAI,KAAK,IAAI,CAChB,CACJ,CAAC;AACJ,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type IWindowsLibrary } from "./IWindowsLibrary";
2
- /**
3
- * Bind kernel32 and ntdll once, on first use.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation Koffi binds the declared kernel32 and ntdll ABI, including pointer-width HANDLEs and explicit native structure layouts, lazily once per module.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Binding definitions stay separate from parent and child operations so loading does not create a filesystem handle.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Native methods are called through their bindings without replacing globals or foreign implementations.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment states first-use initialization; the interface documents native transfer counts, status and structure ownership.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms First use builds a fixed set of types and function bindings; subsequent calls read one cached binding record.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The binding set is shared because operating-system ABI and pointer width stay fixed for the process; a failed creation is not cached.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One kernel32 and one ntdll binding set remain for the module's process lifetime; no parent or child HANDLE is retained by this cache.
12
- */
13
- export declare const loadWindowsLibrary: () => IWindowsLibrary;
@@ -1,180 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.loadWindowsLibrary = void 0;
7
- const koffi_1 = __importDefault(require("koffi"));
8
- const FILE_ATTRIBUTE_DIRECTORY_1 = require("./FILE_ATTRIBUTE_DIRECTORY");
9
- const nativeError_1 = require("./nativeError");
10
- const FILE_BEGIN = 0;
11
- let windowsLibrary;
12
- /**
13
- * Bind kernel32 and ntdll once, on first use.
14
- *
15
- * @evidence contracts/development/implementation.md#principled-implementation Koffi binds the declared kernel32 and ntdll ABI, including pointer-width HANDLEs and explicit native structure layouts, lazily once per module.
16
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Binding definitions stay separate from parent and child operations so loading does not create a filesystem handle.
17
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Native methods are called through their bindings without replacing globals or foreign implementations.
18
- * @evidence contracts/development/common.md#meaningful-documentation The comment states first-use initialization; the interface documents native transfer counts, status and structure ownership.
19
- * @evidence contracts/development/implementation.md#efficient-algorithms First use builds a fixed set of types and function bindings; subsequent calls read one cached binding record.
20
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The binding set is shared because operating-system ABI and pointer width stay fixed for the process; a failed creation is not cached.
21
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One kernel32 and one ntdll binding set remain for the module's process lifetime; no parent or child HANDLE is retained by this cache.
22
- */
23
- const loadWindowsLibrary = () => (windowsLibrary ??= createWindowsLibrary());
24
- exports.loadWindowsLibrary = loadWindowsLibrary;
25
- const createWindowsLibrary = () => {
26
- const kernel = koffi_1.default.load("kernel32.dll");
27
- const ntdll = koffi_1.default.load("ntdll.dll");
28
- const handleType = koffi_1.default.pointer("AutoMovieScaffoldHandle", koffi_1.default.opaque("AutoMovieScaffoldHandleValue"));
29
- const unicodeType = koffi_1.default.struct("AutoMovieScaffoldUnicodeString", {
30
- Length: "uint16_t",
31
- MaximumLength: "uint16_t",
32
- Buffer: "void *",
33
- });
34
- const objectAttributesType = koffi_1.default.struct("AutoMovieScaffoldObjectAttributes", {
35
- Length: "uint32_t",
36
- RootDirectory: handleType,
37
- ObjectName: koffi_1.default.pointer(unicodeType),
38
- Attributes: "uint32_t",
39
- SecurityDescriptor: "void *",
40
- SecurityQualityOfService: "void *",
41
- });
42
- const ioStatusType = koffi_1.default.struct("AutoMovieScaffoldIoStatusBlock", {
43
- Status: "intptr_t",
44
- Information: "uintptr_t",
45
- });
46
- const fileTimeType = koffi_1.default.struct("AutoMovieScaffoldFileTime", {
47
- dwLowDateTime: "uint32_t",
48
- dwHighDateTime: "uint32_t",
49
- });
50
- const fileInformationType = koffi_1.default.struct("AutoMovieScaffoldFileInformation", {
51
- dwFileAttributes: "uint32_t",
52
- ftCreationTime: fileTimeType,
53
- ftLastAccessTime: fileTimeType,
54
- ftLastWriteTime: fileTimeType,
55
- dwVolumeSerialNumber: "uint32_t",
56
- nFileSizeHigh: "uint32_t",
57
- nFileSizeLow: "uint32_t",
58
- nNumberOfLinks: "uint32_t",
59
- nFileIndexHigh: "uint32_t",
60
- nFileIndexLow: "uint32_t",
61
- });
62
- const getFileInformation = kernel.func("__stdcall", "GetFileInformationByHandle", "bool", [handleType, koffi_1.default.out(koffi_1.default.pointer(fileInformationType))]);
63
- const getLastError = kernel.func("uint32_t __stdcall GetLastError(void)");
64
- const transferCount = koffi_1.default.out(koffi_1.default.pointer("uint32_t"));
65
- const writeFileNative = kernel.func("__stdcall", "WriteFile", "bool", [
66
- handleType,
67
- "void *",
68
- "uint32_t",
69
- transferCount,
70
- "void *",
71
- ]);
72
- const readFileNative = kernel.func("__stdcall", "ReadFile", "bool", [
73
- handleType,
74
- "void *",
75
- "uint32_t",
76
- transferCount,
77
- "void *",
78
- ]);
79
- const setFilePointerNative = kernel.func("__stdcall", "SetFilePointerEx", "bool", [
80
- handleType,
81
- "int64_t",
82
- "void *",
83
- "uint32_t",
84
- ]);
85
- const dword = (value) => Number(value) >>> 0;
86
- const readInformation = (handle, label) => {
87
- const zeroTime = { dwHighDateTime: 0, dwLowDateTime: 0 };
88
- const information = {
89
- dwFileAttributes: 0,
90
- dwVolumeSerialNumber: 0,
91
- ftCreationTime: { ...zeroTime },
92
- ftLastAccessTime: { ...zeroTime },
93
- ftLastWriteTime: { ...zeroTime },
94
- nFileIndexHigh: 0,
95
- nFileIndexLow: 0,
96
- nFileSizeHigh: 0,
97
- nFileSizeLow: 0,
98
- nNumberOfLinks: 0,
99
- };
100
- if (getFileInformation(handle, information) === false)
101
- throw (0, nativeError_1.nativeError)(`unable to inspect ${label}`, getLastError());
102
- return information;
103
- };
104
- // Formatted like `scaffoldPhysicalIdentity`: Node's Windows `fstat` reports
105
- // the volume serial number as `dev` and the file index as `ino`.
106
- const identityOf = (information) => {
107
- const volume = BigInt(dword(information.dwVolumeSerialNumber));
108
- const fileIndex = (BigInt(dword(information.nFileIndexHigh)) << 32n) |
109
- BigInt(dword(information.nFileIndexLow));
110
- return `${volume}:${fileIndex}`;
111
- };
112
- return {
113
- closeHandle: kernel.func("__stdcall", "CloseHandle", "bool", [
114
- handleType,
115
- ]),
116
- createFile: kernel.func("__stdcall", "CreateFileW", handleType, [
117
- "str16",
118
- "uint32_t",
119
- "uint32_t",
120
- "void *",
121
- "uint32_t",
122
- "uint32_t",
123
- "void *",
124
- ]),
125
- flushFileBuffers: kernel.func("__stdcall", "FlushFileBuffers", "bool", [
126
- handleType,
127
- ]),
128
- getLastError,
129
- handleType,
130
- inspectFile: (handle) => {
131
- const information = readInformation(handle, "scaffold child");
132
- const lastWrite = information.ftLastWriteTime;
133
- return {
134
- attributes: dword(information.dwFileAttributes),
135
- identity: identityOf(information),
136
- lastWrite: (BigInt(dword(lastWrite.dwHighDateTime)) << 32n) |
137
- BigInt(dword(lastWrite.dwLowDateTime)),
138
- links: dword(information.nNumberOfLinks),
139
- size: (BigInt(dword(information.nFileSizeHigh)) << 32n) |
140
- BigInt(dword(information.nFileSizeLow)),
141
- };
142
- },
143
- inspectParent: (handle) => {
144
- const information = readInformation(handle, "scaffold parent");
145
- return {
146
- directory: (dword(information.dwFileAttributes) & FILE_ATTRIBUTE_DIRECTORY_1.FILE_ATTRIBUTE_DIRECTORY) !==
147
- 0,
148
- identity: identityOf(information),
149
- };
150
- },
151
- ntCreateFile: ntdll.func("__stdcall", "NtCreateFile", "int32_t", [
152
- koffi_1.default.out(koffi_1.default.pointer(handleType)),
153
- "uint32_t",
154
- koffi_1.default.pointer(objectAttributesType),
155
- koffi_1.default.out(koffi_1.default.pointer(ioStatusType)),
156
- "int64_t *",
157
- "uint32_t",
158
- "uint32_t",
159
- "uint32_t",
160
- "uint32_t",
161
- "void *",
162
- "uint32_t",
163
- ]),
164
- objectAttributesType,
165
- readFile: (handle, target, length) => {
166
- const read = [0];
167
- return readFileNative(handle, target, length, read, null) === false
168
- ? null
169
- : read[0];
170
- },
171
- setFilePointer: (handle, position) => setFilePointerNative(handle, BigInt(position), null, FILE_BEGIN),
172
- writeFile: (handle, source, length) => {
173
- const written = [0];
174
- return writeFileNative(handle, source, length, written, null) === false
175
- ? null
176
- : written[0];
177
- },
178
- };
179
- };
180
- //# sourceMappingURL=loadWindowsLibrary.js.map