@automovie/template 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +2 -2
  2. package/generated/pnpm-workspace.json +3 -3
  3. package/generated/skills/3d-modeling/conditioning.md +42 -34
  4. package/generated/skills/3d-modeling/crafting/SKILL.md +6 -6
  5. package/generated/skills/3d-modeling/crafting/construction.md +22 -29
  6. package/generated/skills/3d-modeling/crafting/lofting.md +26 -24
  7. package/generated/skills/3d-modeling/crafting/recovery.md +8 -8
  8. package/generated/skills/3d-modeling/diffusion/image-hints.md +5 -5
  9. package/generated/skills/3d-modeling/diffusion/models.md +32 -16
  10. package/generated/skills/3d-modeling/diffusion/prompts.md +3 -3
  11. package/generated/skills/3d-modeling/diffusion/request.md +7 -5
  12. package/generated/skills/3d-modeling/diffusion/shape-hints.md +19 -17
  13. package/generated/skills/3d-modeling/inspection.md +11 -9
  14. package/generated/skills/3d-modeling/modularization.md +9 -9
  15. package/generated/skills/3d-modeling/rigging.md +44 -35
  16. package/generated/skills/3d-modeling/sources.md +10 -10
  17. package/generated/skills/contracts/development/common.md +4 -4
  18. package/generated/skills/contracts/development/design.md +4 -4
  19. package/generated/skills/contracts/development/implementation.md +7 -7
  20. package/generated/skills/contracts/development/testing.md +4 -4
  21. package/generated/skills/development/repair.md +2 -4
  22. package/generated/skills/documentation/SKILL.md +4 -4
  23. package/generated/skills/documentation/writing.md +56 -34
  24. package/generated/skills/motion/laws/authoring.md +20 -30
  25. package/generated/skills/motion/laws/contacts.md +13 -13
  26. package/generated/skills/motion/laws/declaration.md +8 -6
  27. package/generated/skills/motion/laws/transitions.md +20 -18
  28. package/generated/skills/motion/laws/variation.md +6 -6
  29. package/generated/skills/motion/laws/verification.md +8 -6
  30. package/generated/skills/prompting/SKILL.md +52 -34
  31. package/generated/skills/visual-debugging/capture.md +24 -22
  32. package/generated/skills/visual-debugging/comparison.md +4 -4
  33. package/generated/skills/visual-debugging/correction-rounds.md +6 -15
  34. package/generated/skills/visual-debugging/passes.md +11 -11
  35. package/generated/skills/visual-debugging/rendering-cost.md +2 -2
  36. package/lib/createAutoMovieScaffold.js +2 -20
  37. package/lib/createAutoMovieScaffold.js.map +1 -1
  38. package/lib/index.d.ts +1 -0
  39. package/lib/index.js +1 -0
  40. package/lib/index.js.map +1 -1
  41. package/lib/renderAutoMovieWorkspace.d.ts +22 -0
  42. package/lib/renderAutoMovieWorkspace.js +141 -0
  43. package/lib/renderAutoMovieWorkspace.js.map +1 -0
  44. package/package.json +5 -5
  45. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +22 -21
  46. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -7
  47. package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +14 -10
  48. package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -10
  49. package/scaffold/instructions/.agents/skills/audio/acquisition.md +16 -18
  50. package/scaffold/instructions/.agents/skills/audio/diffusion/SKILL.md +18 -0
  51. package/scaffold/instructions/.agents/skills/audio/diffusion/cloning.md +25 -0
  52. package/scaffold/instructions/.agents/skills/audio/diffusion/models.md +59 -0
  53. package/scaffold/instructions/.agents/skills/audio/diffusion/prompts.md +45 -0
  54. package/scaffold/instructions/.agents/skills/audio/film-sound.md +7 -5
  55. package/scaffold/instructions/.agents/skills/audio/generated-sound.md +5 -3
  56. package/scaffold/instructions/.agents/skills/audio/listening.md +13 -0
  57. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +6 -6
  58. package/scaffold/instructions/.agents/skills/audio/soundtrack.md +4 -2
  59. package/scaffold/instructions/.agents/skills/automovie/SKILL.md +32 -0
  60. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +6 -29
  61. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +13 -13
  62. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +18 -7
  63. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +9 -6
  64. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +6 -7
  65. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +18 -20
  66. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +4 -6
  67. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +12 -13
  68. package/scaffold/instructions/.agents/skills/contracts/items.md +26 -0
  69. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +37 -25
  70. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +1 -1
  71. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
  72. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
  73. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
  74. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +1 -1
  75. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
  76. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +4 -4
  77. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +2 -2
  78. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +1 -1
  79. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +1 -1
  80. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +2 -2
  81. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +2 -2
  82. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +1 -1
  83. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +1 -1
  84. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +2 -2
  85. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +2 -2
  86. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +2 -2
  87. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +1 -1
  88. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +2 -2
  89. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +1 -1
  90. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +1 -1
  91. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +1 -1
  92. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +1 -1
  93. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +1 -1
  94. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +2 -2
  95. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -2
  96. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +3 -3
  97. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +3 -3
  98. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +2 -2
  99. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +1 -1
  100. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +2 -2
  101. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +1 -3
  102. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +3 -5
  103. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +1 -3
  104. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +0 -2
  105. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +1 -3
  106. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +1 -3
  107. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +1 -3
  108. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +11 -14
  109. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +1 -3
  110. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +1 -3
  111. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +3 -5
  112. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +2 -4
  113. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +1 -4
  114. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +6 -6
  115. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +1 -3
  116. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +2 -4
  117. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +3 -5
  118. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +5 -7
  119. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +5 -7
  120. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +2 -4
  121. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +6 -8
  122. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +1 -3
  123. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +4 -6
  124. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +2 -4
  125. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +2 -4
  126. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +3 -5
  127. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +1 -3
  128. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +6 -8
  129. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +5 -7
  130. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +19 -22
  131. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +9 -11
  132. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +3 -5
  133. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +1 -3
  134. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +1 -3
  135. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +1 -3
  136. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +0 -2
  137. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +1 -1
  138. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +1 -1
  139. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +1 -1
  140. package/scaffold/instructions/.agents/skills/development/SKILL.md +14 -24
  141. package/scaffold/instructions/.agents/skills/development/entities.md +19 -15
  142. package/scaffold/instructions/.agents/skills/development/modules.md +31 -0
  143. package/scaffold/instructions/.agents/skills/development/source-layout.md +66 -50
  144. package/scaffold/instructions/.agents/skills/development/testing.md +10 -11
  145. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +7 -7
  146. package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
  147. package/scaffold/instructions/.agents/skills/evidence/answering.md +3 -3
  148. package/scaffold/instructions/.agents/skills/evidence/configuration.md +4 -4
  149. package/scaffold/instructions/.agents/skills/image/SKILL.md +8 -19
  150. package/scaffold/instructions/.agents/skills/image/canon-references.md +16 -6
  151. package/scaffold/instructions/.agents/skills/image/diffusion/SKILL.md +23 -0
  152. package/scaffold/instructions/.agents/skills/image/diffusion/conditioning.md +29 -0
  153. package/scaffold/instructions/.agents/skills/image/diffusion/consistency.md +25 -0
  154. package/scaffold/instructions/.agents/skills/image/diffusion/editing.md +15 -0
  155. package/scaffold/instructions/.agents/skills/image/diffusion/finishing.md +11 -0
  156. package/scaffold/instructions/.agents/skills/image/diffusion/models.md +35 -0
  157. package/scaffold/instructions/.agents/skills/image/diffusion/prompting.md +27 -0
  158. package/scaffold/instructions/.agents/skills/image/turnaround-views.md +6 -2
  159. package/scaffold/instructions/.agents/skills/motion/SKILL.md +15 -32
  160. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +15 -15
  161. package/scaffold/instructions/.agents/skills/motion/compose/composition.md +34 -26
  162. package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +5 -5
  163. package/scaffold/instructions/.agents/skills/motion/control-channels.md +14 -10
  164. package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +12 -8
  165. package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +23 -9
  166. package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +20 -8
  167. package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -16
  168. package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +18 -12
  169. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +6 -6
  170. package/scaffold/instructions/.agents/skills/motion/judgment.md +37 -0
  171. package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +11 -11
  172. package/scaffold/instructions/.agents/skills/motion/laws/extension.md +15 -11
  173. package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +47 -17
  174. package/scaffold/instructions/.agents/skills/motion/performance.md +11 -0
  175. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +15 -15
  176. package/scaffold/instructions/.agents/skills/motion/retargeting.md +5 -5
  177. package/scaffold/instructions/.agents/skills/motion/segment-review.md +7 -5
  178. package/scaffold/instructions/.agents/skills/motion/staging.md +10 -8
  179. package/scaffold/instructions/.agents/skills/production/SKILL.md +11 -38
  180. package/scaffold/instructions/.agents/skills/production/assembly.md +11 -5
  181. package/scaffold/instructions/.agents/skills/production/captions.md +4 -4
  182. package/scaffold/instructions/.agents/skills/production/director.md +17 -0
  183. package/scaffold/instructions/.agents/skills/production/media-records.md +33 -11
  184. package/scaffold/instructions/.agents/skills/production/project-context.md +64 -22
  185. package/scaffold/instructions/.agents/skills/production/reorganization.md +3 -3
  186. package/scaffold/instructions/.agents/skills/production/stage-caches.md +7 -11
  187. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +7 -7
  188. package/scaffold/instructions/.agents/skills/production/workflow.md +45 -0
  189. package/scaffold/instructions/.agents/skills/review/SKILL.md +10 -15
  190. package/scaffold/instructions/.agents/skills/review/delivery-review.md +51 -30
  191. package/scaffold/instructions/.agents/skills/review/estimation.md +32 -13
  192. package/scaffold/instructions/.agents/skills/review/independent-reading.md +6 -4
  193. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +7 -7
  194. package/scaffold/instructions/.agents/skills/review/source-review.md +5 -9
  195. package/scaffold/instructions/.agents/skills/story/SKILL.md +10 -13
  196. package/scaffold/instructions/.agents/skills/story/answers.md +10 -10
  197. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +10 -12
  198. package/scaffold/instructions/.agents/skills/story/correction/repair.md +20 -14
  199. package/scaffold/instructions/.agents/skills/story/document-layout.md +32 -17
  200. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +11 -9
  201. package/scaffold/instructions/.agents/skills/story/layers/brief.md +4 -8
  202. package/scaffold/instructions/.agents/skills/story/layers/notation.md +8 -6
  203. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +20 -12
  204. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +3 -3
  205. package/scaffold/instructions/.agents/skills/story/layers/settings.md +28 -11
  206. package/scaffold/instructions/.agents/skills/story/layers/shots.md +8 -8
  207. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +3 -3
  208. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +7 -7
  209. package/scaffold/instructions/.agents/skills/story/planning/direction.md +2 -2
  210. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +9 -7
  211. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +10 -8
  212. package/scaffold/instructions/.agents/skills/story/planning/research.md +15 -18
  213. package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +8 -7
  214. package/scaffold/instructions/.agents/skills/story/workflow/long.md +18 -14
  215. package/scaffold/instructions/.agents/skills/story/workflow/routes.md +23 -17
  216. package/scaffold/instructions/.agents/skills/story/workflow/short.md +22 -14
  217. package/scaffold/instructions/.agents/skills/video/SKILL.md +9 -14
  218. package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +7 -7
  219. package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +6 -6
  220. package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +29 -12
  221. package/scaffold/instructions/.agents/skills/video/diffusion/models.md +40 -19
  222. package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +23 -15
  223. package/scaffold/instructions/.agents/skills/video/direct-film.md +53 -0
  224. package/scaffold/instructions/.agents/skills/video/finishing.md +14 -12
  225. package/scaffold/instructions/.agents/skills/video/generated-film.md +24 -0
  226. package/scaffold/instructions/.agents/skills/video/generation.md +25 -17
  227. package/scaffold/instructions/.agents/skills/video/requests.md +8 -8
  228. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +20 -18
  229. package/scaffold/instructions/AGENTS.md +46 -46
  230. package/scaffold/production/README.md +10 -19
  231. package/scaffold/production/package.json +1 -1
  232. package/scaffold/production/src/IFilmProduction.ts +6 -2
  233. package/scaffold/production/src/executable/physics.ts +8 -4
  234. package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +4 -4
  235. package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +5 -3
  236. package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +7 -7
  237. package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +4 -2
  238. package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +3 -3
  239. package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +3 -3
  240. package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +4 -2
  241. package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +2 -2
  242. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +17 -18
  243. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +17 -18
  244. package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +4 -4
  245. package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +37 -21
  246. package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +25 -15
  247. package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +1 -1
  248. package/scaffold/production/src/markFilmProduction.ts +1 -1
  249. package/scaffold/production/src/subjects.ts +7 -1
  250. package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +129 -0
  251. package/scaffold/production/tsconfig.json +1 -2
  252. package/scaffold/production/vite.config.ts +12 -0
  253. package/scaffold/workspace/README.md +2 -2
  254. package/scaffold/workspace/package.json +1 -1
  255. package/src/createAutoMovieScaffold.ts +2 -39
  256. package/src/index.ts +1 -0
  257. package/src/renderAutoMovieWorkspace.ts +157 -0
  258. package/scaffold/instructions/.agents/skills/development/reuse.md +0 -48
  259. package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +0 -51
  260. package/scaffold/instructions/.agents/skills/image/conditioning.md +0 -27
  261. package/scaffold/instructions/.agents/skills/image/consistency.md +0 -23
  262. package/scaffold/instructions/.agents/skills/image/editing.md +0 -15
  263. package/scaffold/instructions/.agents/skills/image/finishing.md +0 -11
  264. package/scaffold/instructions/.agents/skills/image/models.md +0 -18
  265. package/scaffold/instructions/.agents/skills/image/prompting.md +0 -25
@@ -1,70 +1,70 @@
1
1
  # AGENTS.md
2
2
 
3
- This repository holds AutoMovie productions. A production turns an LLM-authored screenplay into a deterministic whole motion hint, the coarse film whose staging and motion guide video diffusion; a screenplay, a standalone asset, a direct 3D film or a generated film can also be commissioned alone. It is built with the installed AutoMovie packages, which [installed packages](.agents/skills/development/reuse.md#installed-packages) introduces.
3
+ AutoMovie lets an LLM write a screenplay and turn it into a reproducible 3D motion hint.
4
4
 
5
- A production is the directory holding its `PROJECT.md`: this root for a single production, or each `movies/shorts/<name>` and `movies/series/<name>` of a workspace, where the folder also fixes the [story route](.agents/skills/story/workflow/routes.md#choosing-the-route). Every project path a skill names, such as `src`, `docs` or `media`, is that production's, and its `README.md` lists the commands, which run in its directory. The skills and bundled contracts under `.agents/skills` serve every production; a production's own contracts live in its `docs/contracts`, and a workspace keeps its [shared modules](.agents/skills/development/source-layout.md#shared-modules) in `packages/<name>` and lists its own commands in its README.
5
+ The motion hint can guide video diffusion or be rendered with commissioned [detail](.agents/skills/development/entities.md#detail). A commission can also end at the screenplay, hint or a standalone asset.
6
6
 
7
- ## Attitude
7
+ ## Starting work
8
8
 
9
- Work by these rules:
9
+ The main agent is the [director](.agents/skills/production/director.md) for every commission. A worker follows its assigned role and reports to the director.
10
10
 
11
- - Do the literal request, widening it only when the user hands that over.
12
- - Follow the user's instruction over any skill.
13
- - Answer a question from the user before continuing any work.
14
- - Write everything the user sees in the user's language.
15
- - Finish each inspection round, then repair its findings together by cause, with their owners and affected consumers.
16
- - Keep external generation outside deterministic playback, and retain the actual media used.
17
- - Save each expensive stage's result and resume from it under [stage caches](.agents/skills/production/stage-caches.md).
18
- - Review your own work unprompted as a demanding viewer of the depicted practice, and report what you verified, not what you built.
11
+ At [project intake](.agents/skills/production/project-context.md#intake), confirm the deliverables and which decisions the user wants to make or delegate. For a screenplay, ask which [writing route](.agents/skills/story/workflow/routes.md#who-writes-the-screenplay) they want unless they have already chosen one. Record their answer in `PROJECT.md` before assigning the writer.
12
+
13
+ Assign narrative drafting and revision to a writer subagent, including direct writing. When the route calls for Evidence and independent review, assign each to a separate subagent at its stage.
14
+
15
+ Inspect each handoff against the commission and the stage's skill. If it falls short, show the responsible worker what needs repair and check the revision before advancing.
16
+
17
+ Resolve project paths from the directory containing `PROJECT.md`. Run commands from the directory whose README documents them.
19
18
 
20
19
  ## Principles
21
20
 
22
- | Principle | Owner |
23
- | --- | --- |
24
- | Models stay coarse and motion is authored in detail | [Entity work](.agents/skills/development/entities.md#coarse-first) |
25
- | The screenplay decides every exchange, outcome and reaction, and code never chooses one | [Screenplay layer](.agents/skills/story/layers/screenplay.md) |
26
- | A film only composes accepted modules | [Composition contract](.agents/skills/contracts/development/composition.md#composition-only), [catalog cases](.agents/skills/motion/catalog-cases.md) |
27
- | Search the installed packages before writing, and vary a module instead of copying it | [Reuse](.agents/skills/development/reuse.md) |
28
- | Divide programming by responsibility and test each module | [Development](.agents/skills/development/SKILL.md) |
21
+ Keep subjects simple and motion detailed.
22
+
23
+ - Use the polygon man from `@automovie/human`.
24
+ - Use `@automovie/archetypes` for objects, or build a coarse form.
25
+ - Compose actions from `@automovie/motions`.
29
26
 
30
- ## What you can observe
27
+ Realize the screenplay in code.
31
28
 
32
- You see pictures only as still images and cannot hear. Judge motion from stills dense enough to show it, with consecutive frames at every contact and cut, as [visual debugging](.agents/skills/visual-debugging/capture.md#times) samples them. Ask the user to watch playback where continuous motion is the claim, and to listen to any sound.
29
+ - Take every outcome from the screenplay.
30
+ - Compute physics only for the response, parts and moments the scene needs.
33
31
 
34
- Every judgment of the film passes through the inspector page and the capture command, so keep both working under [restoring the instrument](.agents/skills/visual-debugging/capture.md#restoring-the-instrument).
32
+ Work from evidence and verify the result.
35
33
 
36
- ## Finishing work
34
+ - Research uncertain details the task depends on. Ask the user if the answer remains unclear or sources still conflict.
35
+ - Finish each inspection round, then repair all its findings together by cause.
36
+ - Judge pictures on captured stills. Ask the user for observations that require playback or listening.
37
+ - Review unprompted as a critical viewer of the depicted practice. Report what you verified.
37
38
 
38
- A message without a tool call ends the turn. While work remains, do not end it with:
39
+ Finish the commission. Pause only for a user decision or approval for a destructive or outward-facing action.
39
40
 
40
- - a summary that announces the next step;
41
- - an offer to continue;
42
- - a list of decisions that do not block the work;
43
- - a report because a stage finished;
44
- - a wait on background work.
41
+ ## Attitude
45
42
 
46
- Put status notes in the same message as the next tool call.
43
+ Work with the user.
47
44
 
48
- Stop only when nothing can move without the user or a destructive or outward-facing action needs confirmation.
45
+ - Do the literal request, widening it only when the user hands that over.
46
+ - Follow the user's instruction over any skill.
47
+ - Answer a question from the user before continuing any work.
48
+ - Write everything the user sees in the user's language.
49
49
 
50
50
  ## Skills
51
51
 
52
- Read the production's `PROJECT.md` first, because it records the adopted scope and choices under [project context](.agents/skills/production/project-context.md). Then read every skill whose trigger fits the task:
52
+ Use the [production workflow](.agents/skills/production/workflow.md#commissioned-outputs) to choose or finish a commissioned route. For work already scoped, start at its skill below. Follow links when the current decision needs their rules or prerequisites.
53
53
 
54
54
  | Skill | Use when |
55
55
  | --- | --- |
56
- | [production](.agents/skills/production/SKILL.md) | Starting, resuming, reorganizing or handing off a production, keeping its caches and media records, or assembling its film |
57
- | [story](.agents/skills/story/SKILL.md) | Researching, planning, writing or revising a brief, settings, treatments, scripts or the screenplay, answering story contracts, or repairing a narrative |
58
- | [3d-modeling](.agents/skills/3d-modeling/SKILL.md) | Building or changing a subject's form, coarse or at a commissioned [detail](.agents/skills/development/entities.md#detail) |
59
- | [motion](.agents/skills/motion/SKILL.md) | Composing a performance, staging or camera, accepting catalog cases, extending the motion vocabulary, choosing a physical mode, retargeting, generating or tracing motion, or preparing control channels |
60
- | [image](.agents/skills/image/SKILL.md) | Generating canon references, shot frames or turnaround views, or choosing an image generator, editing or finishing an image |
61
- | [video](.agents/skills/video/SKILL.md) | Choosing the video model, planning or writing video requests, or generating, adopting and finishing takes |
62
- | [direct-film](.agents/skills/direct-film/SKILL.md) | Finishing a programmed film as a direct 3D film, or judging its rendered picture |
63
- | [audio](.agents/skills/audio/SKILL.md) | Writing a shot's sound into a video prompt, finishing a generated film's sound, making a voice preview, or building a commissioned soundtrack |
64
- | [development](.agents/skills/development/SKILL.md) | Implementing production code, integrations, commands or behavioral tests |
65
- | [evidence](.agents/skills/evidence/SKILL.md) | Adopting a requirement, configuring the evidence graph, or answering source and test contracts |
66
- | [contracts](.agents/skills/contracts/SKILL.md) | Selecting, answering or citing a contract item |
67
- | [documentation](.agents/skills/documentation/SKILL.md) | Writing a README, technical document, evidence prose or doc comment, not a creative body |
56
+ | [3d-modeling](.agents/skills/3d-modeling/SKILL.md) | Preparing a subject's form, attachment or commissioned detail |
57
+ | [audio](.agents/skills/audio/SKILL.md) | Making commissioned sound, a voice preview or a generated film's sound |
58
+ | [automovie](.agents/skills/automovie/SKILL.md) | Choosing or reading an installed package |
59
+ | [contracts](.agents/skills/contracts/SKILL.md) | Finding what an item asks and which work answers it |
60
+ | [development](.agents/skills/development/SKILL.md) | Writing code, integrations, dependencies, commands or tests |
61
+ | [documentation](.agents/skills/documentation/SKILL.md) | Writing a document, README, evidence answer or doc comment |
62
+ | [evidence](.agents/skills/evidence/SKILL.md) | Adopting a requirement, configuring checks or recording answers |
63
+ | [image](.agents/skills/image/SKILL.md) | Making appearance references, shot frames or views for generation |
64
+ | [motion](.agents/skills/motion/SKILL.md) | Composing, extending or verifying motion, staging, camera and channels |
65
+ | [production](.agents/skills/production/SKILL.md) | Choosing a commissioned route or managing scope, caches, assembly or handoff |
68
66
  | [prompting](.agents/skills/prompting/SKILL.md) | Changing `AGENTS.md`, `CLAUDE.md` or a skill |
69
- | [visual-debugging](.agents/skills/visual-debugging/SKILL.md) | Judging any picture, claiming a visual change works, or restoring the inspector page or the capture command |
70
- | [review](.agents/skills/review/SKILL.md) | Reviewing source or a narrative independently, accepting a delivery, or estimating quality on request |
67
+ | [review](.agents/skills/review/SKILL.md) | Reviewing work, accepting deliveries or estimating requested quality |
68
+ | [story](.agents/skills/story/SKILL.md) | Researching, planning, writing or repairing narrative |
69
+ | [video](.agents/skills/video/SKILL.md) | Finishing the hint as a direct 3D film or a generated film |
70
+ | [visual-debugging](.agents/skills/visual-debugging/SKILL.md) | Judging pictures or checking the viewer and capture |
@@ -1,6 +1,6 @@
1
1
  # {{name}}
2
2
 
3
- Use an LLM to author a complete movie screenplay, then program the main scenes' motion, staging and camera and assemble the whole video as a reproducible motion hint. Every person is a polygon man, drawn from the body the installed Human package prepares, and every other subject is the simplest form that identifies it, as [entity work]({{skills}}/development/entities.md#coarse-first) sets; the accuracy goes to motion.
3
+ Use an LLM to author a complete screenplay and program its motion, staging and camera in 3D. Assemble the result as a reproducible motion hint or finish it as a direct 3D or generated film. Start with the polygon man prepared by the installed Human package and [coarse forms]({{skills}}/development/entities.md#coarse-first) for the other subjects.
4
4
 
5
5
  ## First run
6
6
 
@@ -13,7 +13,11 @@ pnpm run evidence
13
13
  pnpm test
14
14
  ```
15
15
 
16
- The project starts with instructions, contracts and a working inspector page over an empty starter film; passing checks do not complete a production. Start with [production]({{skills}}/production/SKILL.md) for the requested output and [story]({{skills}}/story/SKILL.md) for creative work. Default lint and evidence check ordinary TypeScript source and tests, and [evidence configuration]({{skills}}/evidence/configuration.md) adds the narrative scope and stages to the same configuration.
16
+ The project starts with instructions, contracts and a working inspector page over an empty starter film. Passing checks do not complete a production.
17
+
18
+ Read the [production workflow]({{skills}}/production/workflow.md) for the stages, their handoffs and the skills that own them.
19
+
20
+ Default lint and evidence check ordinary TypeScript source and tests. [Evidence configuration]({{skills}}/evidence/configuration.md) adds the narrative scope and stages to the same configuration.
17
21
 
18
22
  ## Films and the inspector
19
23
 
@@ -23,13 +27,13 @@ Each delivered video is one film in `src/composition/films/`, registered in `src
23
27
 
24
28
  ## Stills
25
29
 
26
- Run `pnpm run review:setup` once to install the browser. `pnpm run capture --subject <film> [request]` runs `automovie capture --module src/subjects.ts`: it draws each planned still of the film through the delivery render's draw function and writes the stills, contact sheets and a record into `media/capture/<film>/`, as the [render README](https://github.com/samchon/automovie/tree/master/packages/render#capture) describes, exiting non-zero when a cell could not be drawn. `--file <video>` captures an encoded file's own frames around its cuts instead of a film.
30
+ Run `pnpm run review:setup` once to install the browser. `pnpm run capture --subject <film> [request]` runs `automovie capture --module src/subjects.ts`: it draws each planned still of the film through the delivery render's draw function and writes the stills, contact sheets and a record into `media/capture/<film>/`, as the [render README](https://github.com/samchon/automovie/tree/master/packages/render#capture) describes, exiting non-zero when a cell could not be drawn. `pnpm exec automovie capture --file <video>` captures an encoded file's own frames around its cuts instead of a film.
27
31
 
28
32
  The request takes the inspector address's keys, each written with `--` before it. The [render README](https://github.com/samchon/automovie/tree/master/packages/render#request-keys) lists every key with what it asks for and the requirement it serves, including marks, rounds, comparisons and the options that select exact frames or seconds.
29
33
 
30
34
  ```bash
31
35
  pnpm run capture --subject catalog --from 12 --to 14 --events 13.1 --views "right;three-quarter@ortho"
32
- pnpm run capture --file media/automovie/<film>/videos/film.mp4 --from 60 --to 70
36
+ pnpm exec automovie capture --file media/automovie/<film>/videos/film.mp4 --from 60 --to 70
33
37
  ```
34
38
 
35
39
  ## Render and playback
@@ -42,25 +46,12 @@ With `pnpm run dev` running, `pnpm run review --url <inspector-address> --second
42
46
 
43
47
  ## Physical performance
44
48
 
45
- [Physical feedback]({{skills}}/motion/physical-feedback.md) chooses each scene's physical mode; the installed Engine's README and public declarations own its profiles, simulation, checkpoints, archives and audits.
49
+ [Physical feedback]({{skills}}/motion/physical-feedback.md) defines when to simulate. Read the installed Engine's README and types for its simulation and playback APIs.
46
50
 
47
51
  `pnpm run physics <input-module.ts> <output.amphys> [maximum-bytes]` computes a simulated performance once from a Node module exporting `createPhysicalInput()` and writes the archive with its JSON manifest, 256 MiB at most by default. Keep the archive as a [stage cache]({{skills}}/production/stage-caches.md) under `.cache/` and regenerate it after changing physical inputs; playback, seeking and capture read it through the Engine's physical playback, which checks it against the current input's identity.
48
52
 
49
53
  Supply `IFilmProduction.performance` from the displayed state: `src/markFilmProduction.ts` hands it to the inspection in every host, and `marks=joint,bone,contact` draws its skeleton and contact forces. The starter's empty scene supplies none.
50
54
 
51
- ## Make a motion hint
52
-
53
- A motion hint is made in these steps:
54
-
55
- 1. Adopt the request in [PROJECT.md](PROJECT.md), recording its output boundary and the intended execution and capture path under [project context]({{skills}}/production/project-context.md).
56
- 2. Write the screenplay along its [writing route]({{skills}}/story/workflow/SKILL.md), by the [writer the user chooses]({{skills}}/story/workflow/routes.md#who-writes-the-screenplay); when the agent writes the story, [ask the user]({{skills}}/story/planning/requirements.md#asking-the-user) about it first. The route sets the layers before the [screenplay]({{skills}}/story/SKILL.md) and when evidence, independent review and a short's film draft run.
57
- 3. Build the coarse entities under [entity work]({{skills}}/development/entities.md) and accept every module in its [catalog cases]({{skills}}/motion/catalog-cases.md). Take the objects people use from the installed archetypes and what people do from the installed motion vocabulary, and write laws, interactions and consequences, with their tests, only for what the packages lack.
58
- 4. Compose every required main scene from the accepted modules under [motion]({{skills}}/motion/SKILL.md) and [staging]({{skills}}/motion/staging.md), in the folders [source layout]({{skills}}/development/source-layout.md) gives, with each shot's sound described for the video prompt under [audio]({{skills}}/audio/SKILL.md).
59
- 5. Prepare the [control channels]({{skills}}/motion/control-channels.md) from the same performance, with the frame and camera mapping of time-matched channels aligned. Use the supplied inspector, capture and render, or document the production's adopted replacement here.
60
- 6. Assemble and encode the complete work through [assembly]({{skills}}/production/assembly.md), inspect the actual output through [delivery review]({{skills}}/review/delivery-review.md), and hand off what [assembly and handoff]({{skills}}/production/assembly.md#repair-and-delivery) lists.
61
-
62
- Other outputs complete as [commissioned outputs]({{skills}}/production/SKILL.md#commissioned-outputs) set, with their boundaries in `PROJECT.md`.
63
-
64
55
  ## Commands
65
56
 
66
57
  | Command | Purpose |
@@ -76,7 +67,7 @@ Other outputs complete as [commissioned outputs]({{skills}}/production/SKILL.md#
76
67
  | `pnpm run render --subject <film>` | Export one film as a picture-only video |
77
68
  | `pnpm run review --url <address> --seconds <s>` | Record real-time playback of the running inspector page |
78
69
  | `pnpm run capture --subject <film> [request]` | Stills, sheets and a record of a film, with views, passes, marks and round comparison |
79
- | `pnpm run capture --file <video> [request]` | Stills of an encoded file's own frames, around its cuts |
70
+ | `pnpm exec automovie capture --file <video> [request]` | Stills of an encoded file's own frames, around its cuts |
80
71
 
81
72
  The project uses ES modules with `verbatimModuleSyntax` and `isolatedModules`: mark type-only imports and exports with `type`, and keep each file transformable on its own.
82
73
 
@@ -2,7 +2,7 @@
2
2
  "name": "{{name}}",
3
3
  "private": true,
4
4
  "type": "module",
5
- "version": "0.2.0",
5
+ "version": "0.3.0",
6
6
  "license": "MIT",
7
7
  "description": "An AutoMovie coding-agent production repository.",
8
8
  "engines": {
@@ -1,6 +1,7 @@
1
- import type { AutoMoviePhysicsCache, IAutoMovieMark } from "@automovie/engine";
2
1
  import type {
3
2
  IAutoMovieContactReceipt,
3
+ IAutoMovieMark,
4
+ IAutoMoviePhysicalFrame,
4
5
  IAutoMoviePhysicalProfile,
5
6
  } from "@automovie/interface";
6
7
  import type * as THREE from "three";
@@ -20,12 +21,15 @@ export interface IFilmProduction {
20
21
  /** Camera the Viewer renders through; camera entities move it in `seek`. */
21
22
  camera: THREE.PerspectiveCamera;
22
23
 
24
+ /** Inspection mark kinds that may first appear after second zero; `marks` still supplies their actual geometry at the drawn second. */
25
+ markKinds?: readonly string[];
26
+
23
27
  /** Optional physical review source: `markFilmProduction` draws its bodies' skeleton and its contact forces as `joint`, `bone` and `contact` marks. */
24
28
  performance?: {
25
29
  /** Scene ids and profiles for the displayed bodies. */
26
30
  bodies: { id: string; profile: IAutoMoviePhysicalProfile }[];
27
31
  /** Exact world state used by the current displayed frame. */
28
- frame: () => AutoMoviePhysicsCache.IFrame;
32
+ frame: () => IAutoMoviePhysicalFrame;
29
33
  /** Actual geometric or solved contact episodes. */
30
34
  contacts: () => readonly IAutoMovieContactReceipt[];
31
35
  /** Inspection vector length per newton of step-mean force. */
@@ -2,6 +2,10 @@ import {
2
2
  AutoMoviePhysicalPlayback,
3
3
  AutoMoviePhysicalSimulation,
4
4
  } from "@automovie/engine";
5
+ import type {
6
+ IAutoMoviePhysicalSimulation,
7
+ IAutoMoviePhysicalSimulationInput,
8
+ } from "@automovie/interface";
5
9
  import { mkdir, writeFile } from "node:fs/promises";
6
10
  import path from "node:path";
7
11
  import { pathToFileURL } from "node:url";
@@ -15,14 +19,14 @@ async function main(): Promise<void> {
15
19
  );
16
20
  const producer: {
17
21
  createPhysicalInput?: () =>
18
- | AutoMoviePhysicalSimulation.IInput
19
- | Promise<AutoMoviePhysicalSimulation.IInput>;
22
+ | IAutoMoviePhysicalSimulationInput.IInput
23
+ | Promise<IAutoMoviePhysicalSimulationInput.IInput>;
20
24
  } = await import(pathToFileURL(path.resolve(file)).href);
21
25
  if (typeof producer.createPhysicalInput !== "function")
22
26
  throw new Error("Input module must export createPhysicalInput()");
23
- const input: AutoMoviePhysicalSimulation.IInput =
27
+ const input: IAutoMoviePhysicalSimulationInput.IInput =
24
28
  await producer.createPhysicalInput();
25
- const run: AutoMoviePhysicalSimulation =
29
+ const run: IAutoMoviePhysicalSimulation =
26
30
  await AutoMoviePhysicalSimulation.compute(input);
27
31
  const bytes: Uint8Array = await AutoMoviePhysicalPlayback.encode(
28
32
  run.cache,
@@ -1,7 +1,7 @@
1
- import {
2
- type IAutoMovieRecoveryArchiveInput,
3
- type IAutoMovieRecoveryArchivedModel,
4
- } from "@automovie/recovery";
1
+ import type {
2
+ IAutoMovieRecoveryArchiveInput,
3
+ IAutoMovieRecoveryArchivedModel,
4
+ } from "@automovie/interface";
5
5
  import { createHash } from "node:crypto";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
@@ -1,7 +1,9 @@
1
+ import type {
2
+ IAutoMovieRecoveryArtifact,
3
+ IAutoMovieRecoveryArtifactInput,
4
+ IAutoMovieRecoveryOpenContinuation,
5
+ } from "@automovie/interface";
1
6
  import {
2
- type IAutoMovieRecoveryArtifact,
3
- type IAutoMovieRecoveryArtifactInput,
4
- type IAutoMovieRecoveryOpenContinuation,
5
7
  describeRecoveryNamedDomains,
6
8
  readRecoveryMetadata as read,
7
9
  } from "@automovie/recovery";
@@ -1,7 +1,7 @@
1
- import {
2
- type IAutoMovieRecoveryArraySource,
3
- type IAutoMovieRecoveryByteDigest,
4
- } from "@automovie/recovery";
1
+ import type {
2
+ IAutoMovieByteDigest,
3
+ IAutoMovieJsonArraySource,
4
+ } from "@automovie/interface";
5
5
  import { createHash, randomUUID } from "node:crypto";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
@@ -32,9 +32,9 @@ export function writeAutoMovieRecoveryArtifact(
32
32
  artifact: object,
33
33
  arraySources: ReadonlyMap<
34
34
  readonly unknown[],
35
- readonly IAutoMovieRecoveryArraySource[]
35
+ readonly IAutoMovieJsonArraySource[]
36
36
  > = new Map(),
37
- ): IAutoMovieRecoveryByteDigest {
37
+ ): IAutoMovieByteDigest {
38
38
  if (artifact === null || typeof artifact !== "object")
39
39
  throw new Error("An artifact root must be a plain data container");
40
40
  fs.mkdirSync(path.dirname(output), { recursive: true });
@@ -276,7 +276,7 @@ export function writeAutoMovieRecoveryArtifact(
276
276
  }
277
277
  ancestors.delete(current);
278
278
  };
279
- let result: IAutoMovieRecoveryByteDigest;
279
+ let result: IAutoMovieByteDigest;
280
280
  try {
281
281
  encode(artifact);
282
282
  flush();
@@ -1,6 +1,8 @@
1
1
  import { decodeAutoMoviePpmImage } from "@automovie/ingest";
2
- import type { IAutoMovieRecoveryCameraView } from "@automovie/interface";
3
- import type { IAutoMovieRecoveryCameraFile } from "@automovie/recovery";
2
+ import type {
3
+ IAutoMovieRecoveryCameraFile,
4
+ IAutoMovieRecoveryCameraView,
5
+ } from "@automovie/interface";
4
6
  import { createHash } from "node:crypto";
5
7
  import path from "node:path";
6
8
 
@@ -1,11 +1,11 @@
1
1
  import type {
2
+ AutoMovieRecoveryCurveFormat,
2
3
  IAutoMovieRecoveryInput,
4
+ IAutoMovieRecoveryMeshSections,
3
5
  IAutoMovieRecoveryRegistration,
6
+ IAutoMovieRecoveryResult,
4
7
  } from "@automovie/interface";
5
8
  import {
6
- type AutoMovieRecoveryCurveFormat,
7
- type IAutoMovieRecoveryMeshSections,
8
- type IAutoMovieRecoveryResult,
9
9
  convertAutoMovieRecoveryCurves,
10
10
  observeAutoMovieRecovery,
11
11
  prepareAutoMovieRecoveryInput,
@@ -1,8 +1,8 @@
1
1
  import { decodeAutoMoviePpmImage } from "@automovie/ingest";
2
2
  import type {
3
- AutoMovieRecoveryImageRecipe,
4
3
  IAutoMovieRecoveryImageInput,
5
4
  IAutoMovieRecoveryImageObservation,
5
+ IAutoMovieRecoveryImageRecipe,
6
6
  } from "@automovie/interface";
7
7
  import {
8
8
  compileAutoMovieRecoveryImageLoft,
@@ -140,12 +140,12 @@ export function recoveryImages(args: string[], sourceEpoch: string): void {
140
140
  : fitAutoMovieRecoveryImageLoft(spec?.observation, spec?.policy);
141
141
  } else {
142
142
  const spec: {
143
- recipe: AutoMovieRecoveryImageRecipe;
143
+ recipe: IAutoMovieRecoveryImageRecipe;
144
144
  budget:
145
145
  | Parameters<typeof compileAutoMovieRecoveryImageLoft>[1]
146
146
  | Parameters<typeof compileAutoMovieRecoverySupportLoft>[1];
147
147
  } = document as {
148
- recipe: AutoMovieRecoveryImageRecipe;
148
+ recipe: IAutoMovieRecoveryImageRecipe;
149
149
  budget:
150
150
  | Parameters<typeof compileAutoMovieRecoveryImageLoft>[1]
151
151
  | Parameters<typeof compileAutoMovieRecoverySupportLoft>[1];
@@ -1,6 +1,8 @@
1
+ import type {
2
+ IAutoMovieRecoveryOpenContinuation,
3
+ IAutoMovieRecoveryTensorFamiliesInput,
4
+ } from "@automovie/interface";
1
5
  import {
2
- type IAutoMovieRecoveryOpenContinuation,
3
- type IAutoMovieRecoveryTensorFamiliesInput,
4
6
  applyAutoMovieRecoveryAnalyticPublication,
5
7
  restoreRecoveryCurveBasis,
6
8
  } from "@automovie/recovery";
@@ -1,10 +1,10 @@
1
1
  import type {
2
2
  IAutoMovieRecoveryInput,
3
+ IAutoMovieRecoveryMeshSections,
4
+ IAutoMovieRecoveryOpenContinuation,
3
5
  IAutoMovieRecoveryRegistration,
4
6
  } from "@automovie/interface";
5
7
  import {
6
- type IAutoMovieRecoveryMeshSections,
7
- type IAutoMovieRecoveryOpenContinuation,
8
8
  AutoMovieRecoveryOpenContinuation as O,
9
9
  reconstructRecoveryOpen,
10
10
  restoreRecoveryCurveBasis,
@@ -1,13 +1,11 @@
1
- import {
2
- type IAutoMovieCurve64 as C,
3
- type IAutoMovieContourLoftEmission64,
4
- type IAutoMovieContourLoft64 as L,
5
- generateAutoMovieContourLoft64,
6
- } from "@automovie/engine";
7
- import {
8
- type IAutoMovieRecoveryArraySource,
9
- type IAutoMovieRecoveryContourFileMesh,
10
- } from "@automovie/recovery";
1
+ import { generateAutoMovieContourLoft64 } from "@automovie/engine";
2
+ import type {
3
+ AutoMovieVector3Tuple,
4
+ IAutoMovieContourLoft64,
5
+ IAutoMovieContourLoftEmission64,
6
+ IAutoMovieJsonArraySource,
7
+ IAutoMovieRecoveryContourFileMesh,
8
+ } from "@automovie/interface";
11
9
  import fs from "node:fs";
12
10
  import path from "node:path";
13
11
 
@@ -32,7 +30,7 @@ import { createRecoveryFileVectorTable } from "../internal/createRecoveryFileVec
32
30
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Scalar channel buffers retain at most 8192 numbers each. Every structured generating ring flushes immediately, so at most one indivisible ring's copied points/phases are pending; its size is bounded by the original retained ring, independently of emitted-mesh limits. Each table owns at most three 65520-byte pages, totaling 393120 bytes across both tables, plus bounded headers and per-face triples. Dirty victims flush before reuse and both tables finish before success. Fragment descriptors and kernel reports grow with actual admitted output. Every acquired descriptor closes independently without replacing a primary failure.
33
31
  */
34
32
  export function createAutoMovieRecoveryContourFileMesh(
35
- input: L,
33
+ input: IAutoMovieContourLoft64,
36
34
  directory: string,
37
35
  limits: { maxVertices: number; maxTriangles: number },
38
36
  ): IAutoMovieRecoveryContourFileMesh {
@@ -56,7 +54,7 @@ export function createAutoMovieRecoveryContourFileMesh(
56
54
  const descriptors: number[] = [];
57
55
  const placeholders: unknown[][] = [[], [], [], []];
58
56
  const pending: unknown[][] = [[], [], [], []];
59
- const sources: IAutoMovieRecoveryArraySource[][] = [[], [], [], []];
57
+ const sources: IAutoMovieJsonArraySource[][] = [[], [], [], []];
60
58
  const counts: number[] = [0, 0, 0, 0];
61
59
  const flush: (channel: number) => void = (channel: number): void => {
62
60
  if (!pending[channel]!.length) return;
@@ -116,7 +114,7 @@ export function createAutoMovieRecoveryContourFileMesh(
116
114
  const areaTable: ReturnType<typeof createRecoveryFileVectorTable> =
117
115
  table(area);
118
116
  emission = generateAutoMovieContourLoft64(input, {
119
- vertex: (index: number, point: C.Vector): void => {
117
+ vertex: (index: number, point: Readonly<AutoMovieVector3Tuple>): void => {
120
118
  if (index !== vertices || vertices >= limits.maxVertices)
121
119
  throw new Error(
122
120
  "Contour vertex population exceeded its admitted output ceiling",
@@ -175,15 +173,16 @@ export function createAutoMovieRecoveryContourFileMesh(
175
173
  },
176
174
  construction: (
177
175
  id: string,
178
- points: readonly C.Vector[],
179
- phase: (point: C.Vector) => number,
176
+ points: readonly Readonly<AutoMovieVector3Tuple>[],
177
+ phase: (point: Readonly<AutoMovieVector3Tuple>) => number,
180
178
  ): void => {
181
179
  // One original ring is indivisible; no complete output collection is copied.
182
180
  append(3, {
183
181
  id,
184
182
  closed: true,
185
- points: points.map((point: C.Vector): number[] =>
186
- point.map((value: number): number => value * 0.001),
183
+ points: points.map(
184
+ (point: Readonly<AutoMovieVector3Tuple>): number[] =>
185
+ point.map((value: number): number => value * 0.001),
187
186
  ),
188
187
  phases: points.map(phase),
189
188
  });
@@ -246,7 +245,7 @@ export function createAutoMovieRecoveryContourFileMesh(
246
245
  (
247
246
  target: unknown[],
248
247
  channel: number,
249
- ): [unknown[], IAutoMovieRecoveryArraySource[]] => [
248
+ ): [unknown[], IAutoMovieJsonArraySource[]] => [
250
249
  target,
251
250
  sources[channel]!,
252
251
  ],
@@ -1,11 +1,11 @@
1
- import type { tessellateAutoMovieLocalHermite64 as T } from "@automovie/engine";
2
- import type { IAutoMovieMesh } from "@automovie/interface";
3
- import {
4
- type IAutoMovieRecoveryByteDigest,
5
- type IAutoMovieRecoveryFileReceipt,
6
- type IAutoMovieRecoveryMeshChunkOwner,
7
- type IAutoMovieRecoveryMeshSpool,
8
- } from "@automovie/recovery";
1
+ import type {
2
+ IAutoMovieByteDigest,
3
+ IAutoMovieFileReceipt,
4
+ IAutoMovieLocalHermiteStream64,
5
+ IAutoMovieMesh,
6
+ IAutoMovieRecoveryMeshChunkOwner,
7
+ IAutoMovieRecoveryMeshSpool,
8
+ } from "@automovie/interface";
9
9
  import fs from "node:fs";
10
10
  import path from "node:path";
11
11
 
@@ -136,7 +136,10 @@ export function createAutoMovieRecoveryMeshSpool(
136
136
  construction,
137
137
  ownership,
138
138
  counts,
139
- append: (chunk: T.Chunk, owner: IAutoMovieRecoveryMeshChunkOwner): void => {
139
+ append: (
140
+ chunk: IAutoMovieLocalHermiteStream64.Chunk,
141
+ owner: IAutoMovieRecoveryMeshChunkOwner,
142
+ ): void => {
140
143
  const count: number = chunk.positions.length / 3;
141
144
  if (
142
145
  chunk.vertexStart !== counts.vertices ||
@@ -180,7 +183,9 @@ export function createAutoMovieRecoveryMeshSpool(
180
183
  triangleCount: chunk.indices.length / 3,
181
184
  physicalVertexIds: chunk.physicalVertexIds,
182
185
  patches: chunk.faceRanges.map(
183
- (range: T.Chunk["faceRanges"][number]): object => ({
186
+ (
187
+ range: IAutoMovieLocalHermiteStream64.Chunk["faceRanges"][number],
188
+ ): object => ({
184
189
  ...range,
185
190
  triangleStart: counts.triangles + range.triangleStart,
186
191
  }),
@@ -193,10 +198,7 @@ export function createAutoMovieRecoveryMeshSpool(
193
198
  counts.triangles += chunk.indices.length / 3;
194
199
  counts.chunks++;
195
200
  },
196
- commit: (
197
- output: string,
198
- context: object,
199
- ): IAutoMovieRecoveryFileReceipt => {
201
+ commit: (output: string, context: object): IAutoMovieFileReceipt => {
200
202
  for (const channel of channels) flush(channel);
201
203
  if (
202
204
  channels[0]!.items !== counts.vertices * 3 ||
@@ -232,10 +234,7 @@ export function createAutoMovieRecoveryMeshSpool(
232
234
  channel.committedFiles = channel.files.length;
233
235
  return { ...previous };
234
236
  },
235
- publish: (
236
- output: string,
237
- artifact: object,
238
- ): IAutoMovieRecoveryByteDigest => {
237
+ publish: (output: string, artifact: object): IAutoMovieByteDigest => {
239
238
  for (const channel of channels) flush(channel);
240
239
  return writeAutoMovieRecoveryArtifact(
241
240
  output,
@@ -1,7 +1,7 @@
1
- import {
2
- type IAutoMovieRecoveryMeshFrontier,
3
- type IAutoMovieRecoveryMeshFrontierInput,
4
- } from "@automovie/recovery";
1
+ import type {
2
+ IAutoMovieRecoveryMeshFrontier,
3
+ IAutoMovieRecoveryMeshFrontierInput,
4
+ } from "@automovie/interface";
5
5
  import { createHash } from "node:crypto";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";