@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
@@ -0,0 +1,141 @@
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.renderAutoMovieWorkspace = renderAutoMovieWorkspace;
37
+ const fs = __importStar(require("node:fs"));
38
+ const path = __importStar(require("node:path"));
39
+ const yaml_1 = require("yaml");
40
+ /**
41
+ * Render pnpm settings for a new production or workspace. Given an existing
42
+ * workspace's directory and YAML, fill missing scaffold catalog entries.
43
+ * Existing pins, overrides, workspace members and build policy keep their values.
44
+ * A linked SDK supplies missing scoped packages when their sibling manifests
45
+ * identify them. Other new entries use the installed scaffold's ranges.
46
+ *
47
+ * @param workspace The new layout or the existing workspace whose catalogs the CLI needs.
48
+ * @returns Workspace YAML, byte-for-byte unchanged when every required entry exists.
49
+ * @throws If the shipped settings or workspace YAML cannot be read as required.
50
+ * @evidence contracts/development/implementation.md#principled-implementation Both paths resolve the shipped manifests' catalog references from the same build settings and template version. Local SDK lookup requires an existing link and the requested package identity.
51
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The layout selects creation or completion. The YAML document owns edits and the caller owns the write.
52
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The build discovers the dependencies. Package names and workspace layouts follow their published conventions.
53
+ * @evidence contracts/development/implementation.md#efficient-algorithms The existing document is parsed once and each required entry is visited once. Only missing SDK entries probe sibling manifests in distinct linked directories.
54
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Both layouts share the resolved defaults. SDK directories are deduplicated per document.
55
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources File reads close synchronously. Parsed settings, document and link directories live for one call.
56
+ * @evidence contracts/development/common.md#meaningful-documentation The comment describes each mode, precedence, return value and failure.
57
+ */
58
+ function renderAutoMovieWorkspace(workspace) {
59
+ const settings = JSON.parse(fs.readFileSync(path.join(__dirname, "../generated/pnpm-workspace.json"), "utf8"));
60
+ const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, "../package.json"), "utf8"));
61
+ const catalogs = {
62
+ automovie: Object.fromEntries(settings.automovie.map((name) => [name, `^${manifest.version}`])),
63
+ ...settings.catalogs,
64
+ };
65
+ if (typeof workspace === "string")
66
+ return (0, yaml_1.stringify)({
67
+ ...(workspace === "workspace"
68
+ ? { packages: ["movies/shorts/*", "movies/series/*", "packages/*"] }
69
+ : {}),
70
+ catalogs,
71
+ allowBuilds: settings.allowBuilds,
72
+ });
73
+ const document = (0, yaml_1.parseDocument)(workspace.source, { merge: true });
74
+ if (document.errors.length)
75
+ throw document.errors[0];
76
+ const root = mapping(document.toJS({ mapAsMap: true }), "pnpm-workspace.yaml");
77
+ const current = mapping(root.get("catalogs"), "catalogs");
78
+ const sdk = mapping(current.get("automovie"), "catalogs.automovie");
79
+ const overrides = mapping(root.get("overrides"), "overrides");
80
+ const directories = new Set();
81
+ for (const [name, spec] of new Map([...sdk, ...overrides]))
82
+ if (name.startsWith("@automovie/") &&
83
+ typeof spec === "string" &&
84
+ spec.startsWith("link:"))
85
+ directories.add(path.dirname(path.resolve(workspace.directory, spec.slice(5))));
86
+ let changed = false;
87
+ for (const [catalog, dependencies] of Object.entries(catalogs)) {
88
+ const entries = mapping(current.get(catalog), `catalogs.${catalog}`);
89
+ const missing = Object.entries(dependencies).filter(([name]) => !entries.has(name));
90
+ if (missing.length === 0)
91
+ continue;
92
+ if (!changed)
93
+ isolateMapping(document, ["catalogs"], current);
94
+ isolateMapping(document, ["catalogs", catalog], entries);
95
+ for (const [name, range] of missing) {
96
+ const link = catalog === "automovie" && !overrides.has(name)
97
+ ? linkedSibling(workspace.directory, directories, name)
98
+ : undefined;
99
+ document.setIn(["catalogs", catalog, name], link ?? range);
100
+ }
101
+ changed = true;
102
+ }
103
+ return changed ? document.toString() : workspace.source;
104
+ }
105
+ /** Give this path its own entries, preserving the old values at other uses of its anchor. */
106
+ function isolateMapping(document, keys, values) {
107
+ const node = document.getIn(keys, true);
108
+ if (!(0, yaml_1.isMap)(node)) {
109
+ document.setIn(keys, document.createNode(values));
110
+ return;
111
+ }
112
+ if (node.anchor)
113
+ (0, yaml_1.visit)(document, {
114
+ Alias: (_key, alias) => {
115
+ if (alias.resolve(document) === node)
116
+ return document.createNode(values, { aliasDuplicateObjects: false });
117
+ },
118
+ });
119
+ }
120
+ /** Read an optional YAML mapping, refusing malformed pnpm settings before edits. */
121
+ function mapping(value, key) {
122
+ if (value === undefined || value === null)
123
+ return new Map();
124
+ if (value instanceof Map)
125
+ return value;
126
+ throw new Error(`${key} must be a mapping in pnpm-workspace.yaml`);
127
+ }
128
+ /** Resolve a missing scoped SDK package beside the workspace's linked SDK packages. */
129
+ function linkedSibling(root, directories, name) {
130
+ if (!name.startsWith("@automovie/"))
131
+ return undefined;
132
+ for (const directory of directories) {
133
+ const candidate = path.join(directory, name.slice("@automovie/".length));
134
+ const file = path.join(candidate, "package.json");
135
+ if (fs.existsSync(file) &&
136
+ JSON.parse(fs.readFileSync(file, "utf8")).name === name)
137
+ return `link:${path.relative(root, candidate).split(path.sep).join("/")}`;
138
+ }
139
+ return undefined;
140
+ }
141
+ //# sourceMappingURL=renderAutoMovieWorkspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderAutoMovieWorkspace.js","sourceRoot":"","sources":["../src/renderAutoMovieWorkspace.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automovie/template",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "The scaffold every AutoMovie production is created from and the function that creates its files.",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -42,12 +42,12 @@
42
42
  "yaml": "^2.9.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@automovie/evidence": "^0.2.0",
46
- "@ttsc/evidence": "^0.37.0",
47
- "@ttsc/lint": "^0.37.0",
45
+ "@automovie/evidence": "^0.3.0",
46
+ "@ttsc/evidence": "^0.37.1",
47
+ "@ttsc/lint": "^0.37.1",
48
48
  "@types/node": "^22.19.17",
49
49
  "rimraf": "^6.0.1",
50
- "ttsc": "^0.37.0",
50
+ "ttsc": "^0.37.1",
51
51
  "typescript": "^7.0.2",
52
52
  "@wrtnlabs/evidence": "^0.8.2"
53
53
  },
@@ -1,35 +1,36 @@
1
1
  ---
2
2
  name: 3d-modeling
3
- description: Defines the form each subject of a production takes, namely the polygon man for a person, an installed archetype for an object people use, a coarse form of a few primitives for anything else, and on the user's request a generated, crafted or recovered form with its rig. Use before building or changing a subject's form; judging any picture belongs to the visual-debugging skill and body motion to the motion skill.
3
+ description: Prepares a subject's form and attachments.
4
4
  ---
5
5
 
6
6
  # 3D modeling
7
7
 
8
- 3D modeling gives each subject its form: the coarse default every scene uses and, on request, a detailed one. Read [project context](../production/project-context.md) first for the representation the production adopted.
8
+ Prepare each subject's form and attachments from its production record.
9
9
 
10
10
  ## Default form
11
11
 
12
- Each subject takes the least form its motion hint needs, as [coarse first](../development/entities.md#coarse-first) sets:
12
+ Use [entity work](../development/entities.md#coarse-first) for people and provided objects. A needed subject without a provided model takes a coarse form, and a subject the hint does not need stays a description in the generation prompt.
13
13
 
14
- - no form for a subject the hint does not need, which stays a description in the generation prompt;
15
- - the polygon man for a [person](../development/entities.md#people);
16
- - an [installed archetype](../development/entities.md#objects), where one offers it, for an object a person holds, uses, sits on or rides;
17
- - a [coarse form](coarse-forms.md) for anything else a scene shows or touches.
14
+ | Read | To |
15
+ | --- | --- |
16
+ | [Coarse forms](coarse-forms.md) | Build a subject no package provides from a few primitives |
17
+ | [Modularization](modularization.md) | Define parts, groups, placements or shared boundaries |
18
+ | [Inspecting a form](inspection.md) | Inspect a form's measures, coverage or light |
19
+
20
+ Commissioned detail uses modularization and form inspection too.
21
+
22
+ A coarse form that reads poorly gets a better choice of primitives, never finer geometry.
18
23
 
19
- ## Requested detail
24
+ ## Commissioned detail
20
25
 
21
- Go further only for a [detail option](../development/entities.md#detail), such as a [direct 3D film](../direct-film/SKILL.md)'s, or when primitives cannot make a form identifiable. The user chooses its source: a diffusion model's output, code that shapes it in detail, or an existing mesh. Build only what the request names and the subject's visible role needs, because finer geometry takes the time motion needs and diffusion repaints it anyway.
26
+ For a commissioned [detail option](../development/entities.md#detail), use the source the user chooses and cover the required views and controls.
22
27
 
23
- | Task | Read |
28
+ | Read | To |
24
29
  | --- | --- |
25
- | Generate the form with a diffusion model | [Diffusion](diffusion/SKILL.md) |
26
- | Shape it in code from dimensions and formulas | [Crafting](crafting/SKILL.md) |
27
- | Build or fit it from sections and guides | [Lofting](crafting/lofting.md) |
28
- | Find an existing mesh, material, environment map or motion clip | [Sources](sources.md) |
29
- | Take a found or generated mesh into the production, or vary it by a parameter | [Conditioning](conditioning.md) |
30
- | Rebuild a fixed mesh as curves or surfaces | [Mesh recovery](crafting/recovery.md) |
31
- | Define parts, groups, placements or shared boundaries | [Modularization](modularization.md) |
32
- | Add or change a skeleton, skin, attachment or deformation control | [Rigging](rigging.md) |
33
- | Inspect a form's measures, coverage, construction or light | [Inspecting a form](inspection.md) |
34
-
35
- Whatever its source, a form is reproducible, rigged when it moves, and judged on screen under [visual debugging](../visual-debugging/SKILL.md), because a completed generation, fit, compilation or test establishes no visual result. The installed packages' documentation owns data formats and callable behavior.
30
+ | [Diffusion](diffusion/SKILL.md) | Generate the form with a diffusion model |
31
+ | [Crafting](crafting/SKILL.md) | Shape it in code from dimensions and formulas |
32
+ | [Lofting](crafting/lofting.md) | Build or fit it from sections and guides |
33
+ | [Sources](sources.md) | Find an existing mesh, material, environment map or motion clip |
34
+ | [Conditioning](conditioning.md) | Take a found or generated mesh into the production, or vary it by a parameter |
35
+ | [Mesh recovery](crafting/recovery.md) | Rebuild a fixed mesh as curves or surfaces |
36
+ | [Rigging](rigging.md) | Add or change a skeleton, skin, attachment or deformation control |
@@ -1,23 +1,23 @@
1
1
  # Coarse forms
2
2
 
3
- A coarse form is the few primitives that tell a reader of the hint what a subject is, how big it is and where its parts are. It serves every subject that is neither a person nor an object an [installed archetype](../development/entities.md#objects) offers.
3
+ A coarse form is the few primitives that tell a reader of the hint what a subject is, how big it is and where its parts are. It serves every subject that is neither a person nor an object an installed archetype offers.
4
4
 
5
5
  ## Parts
6
6
 
7
- People recognize an object quickly once two or three of its simple volumes and their arrangement can be made out ([Biederman 1987](https://doi.org/10.1037/0033-295X.94.2.115)). Build the two to four volumes that make the subject itself, each where the real one sits: a cylinder with an arc on its side is a mug, and the same arc over the top makes it a bucket. The generation prompt names the subject, so the form only has to be told apart from the other subjects in its scene.
7
+ Use two to four simple volumes in their real arrangement to distinguish the subject ([Biederman 1987](https://doi.org/10.1037/0033-295X.94.2.115)). Name it in the generation prompt.
8
8
 
9
- Add a further part only when a scene uses it: one a body grips, sits on, strikes or opens, or one that moves on its own pivot, such as a gate or a lid. A part a body acts on declares its [affordance](../development/entities.md#objects).
9
+ Add only parts a scene interacts with or moves separately. Define their affordances under entity work.
10
10
 
11
11
  ## Size
12
12
 
13
- Take every dimension from the subject's record, because the hint's outline and depth are rendered from the form and a wrong size or bulk comes back wrong in the film.
13
+ Size the form from the subject's record.
14
14
 
15
15
  ## Primitives
16
16
 
17
- Use boxes, cylinders, cones, spheres, wedges and flat outlines extruded straight, each with the fewest sides that keep its outline at the scene's camera distance. A low-polygon kit piece from [Sources](sources.md) serves instead when it already has these parts at the record's size.
17
+ Use primitives or straight extrusions with only the sides needed at the scene's camera distance. A correctly sized low-poly piece from [Sources](sources.md) also works.
18
18
 
19
- Leave out bevels, surface relief, ornament, texture and any interior no camera sees; [what stays out](../development/entities.md#what-stays-out) says how the facts a coarse form cannot show reach the film.
19
+ Leave out bevels, surface relief, ornament, texture and any interior no camera sees. Entity work says how the facts a coarse form cannot show reach the film.
20
20
 
21
21
  ## Outline check
22
22
 
23
- Render the form's outline from the cameras its scenes use, beside the polygon man. Stop when someone who has not read the screenplay could name the subject from that outline and its size is right against the figure, then accept it under [entity work](../development/entities.md#inspection-and-handoff).
23
+ Render its outline from the actual scene cameras beside the polygon man. Confirm the silhouette identifies it without the screenplay and the scale is correct. Follow entity inspection and handoff.
@@ -1,20 +1,24 @@
1
1
  ---
2
2
  name: 3d-modeling-diffusion
3
- description: Generates the form of a commissioned detail option with a text- or image-to-3D model, steered first by the subject's own coarse form and canon references. Use when the user chooses a generated form for a detail option.
3
+ description: Generates a commissioned detail option's form with a text- or image-to-3D model.
4
4
  ---
5
5
 
6
6
  # Diffusion
7
7
 
8
- A generated form serves only a commissioned [detail option](../../development/entities.md#detail); the coarse form stays the default and the hint every scene uses. Steer the model with what the production has already decided, because the coarse form holds the subject's size and parts and the canon references hold its look:
8
+ Generate only a commissioned [detail option](../../development/entities.md#detail). Use the coarse form for dimensions and parts and canon references for appearance:
9
9
 
10
- | The subject has | Steer it with | Read |
11
- | --- | --- | --- |
12
- | A [coarse form](../coarse-forms.md) whose layout the detail must keep | The coarse form as a geometry condition, with a canon reference for the look | [Geometry condition](shape-hints.md#geometry-condition) |
13
- | A crafted form that is already final | Texture on that form from the canon references | [Texture on the given mesh](shape-hints.md#texture-on-the-given-mesh) |
14
- | A polygon man, for a detailed person | A pose condition from its joints, then a bind onto the same skeleton, so the motion planned for it still fits | [Bodies](shape-hints.md#bodies) |
15
- | Canon references, and no model that takes a shape | Views rendered from the coarse form and restyled under [turnaround views](../../image/turnaround-views.md) | [Views rendered from the shape](shape-hints.md#views-rendered-from-the-shape), with [image hints](image-hints.md) |
16
- | Only its record | A text prompt in the record's wording | [Text prompts](prompts.md) |
10
+ | Read | When the subject has |
11
+ | --- | --- |
12
+ | [Geometry condition](shape-hints.md#geometry-condition) | A coarse form whose layout the detail must keep |
13
+ | [Texture on the given mesh](shape-hints.md#texture-on-the-given-mesh) | A crafted form that is already final |
14
+ | [Bodies](shape-hints.md#bodies) | A polygon man, for a detailed person |
15
+ | [Rendered views](shape-hints.md#views-rendered-from-the-shape) | Canon references, and no model that takes a shape |
16
+ | [Text prompts](prompts.md) | Only its record |
17
+
18
+ Condition geometry on the [coarse form](../coarse-forms.md) and appearance on canon references. Texture a final crafted form from those references. For bodies, condition on the polygon man's joints and bind to the same skeleton.
19
+
20
+ The views are rendered from the coarse form and restyled under [turnaround views](../../image/turnaround-views.md), and [image hints](image-hints.md) covers those images. A text prompt keeps the record's wording.
17
21
 
18
22
  Choose the model with the user, from [3D models](models.md) or beyond, and record it in [project context](../../production/project-context.md); [request](request.md) sets what to ask for, whatever steers it.
19
23
 
20
- Freeze each accepted result and take it into the entity's detail option under [Conditioning](../conditioning.md), keep it where [media records](../../production/media-records.md#files) sets, and check that it keeps the coarse form's size, pivots and contacts.
24
+ Freeze each accepted result and take it into the entity's detail option under [Conditioning](../conditioning.md), keep it where [media records](../../production/media-records.md#files) sets, and compare it with the coarse form as [detail](../../development/entities.md#detail) sets.
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  name: audio
3
- description: Decides what each shot sounds like for the video model to generate, finishes a generated film's sound across its accepted takes, makes a voice preview when the user wants to hear voices before video generation, and builds a soundtrack only when the commission asks for one, always for the user to accept by ear. Use when writing a shot's sound into a generation prompt, finishing a generated film's sound, when the user requests a voice preview, or when a soundtrack is commissioned.
3
+ description: Plans, generates and finishes a film's sound.
4
4
  ---
5
5
 
6
6
  # Audio
7
7
 
8
- Audio work serves a generated film's sound, its finishing across takes, a voice preview and a commissioned soundtrack. Because [you cannot hear](../../../AGENTS.md#what-you-can-observe), measure what the decoded bytes show and have the user accept every sound by listening. Source changes follow [development](../development/SKILL.md).
9
-
10
- | Task | Read |
8
+ | Read | To |
11
9
  | --- | --- |
12
- | Decide a shot's sound for its video request | [Generated sound](generated-sound.md) |
13
- | Finish a generated film's sound across its takes | [Film sound](film-sound.md) |
14
- | Make a voice preview | [Voice preview](acquisition.md#voice-preview) |
15
- | Build a commissioned soundtrack | [Commissioned soundtrack](soundtrack.md) |
16
- | Find, license and adopt speech, music or recordings | [Acquisition](acquisition.md) |
17
- | Build and place effects and beds | [Sound effects](sound-effects.md) |
10
+ | [Generated sound](generated-sound.md) | Decide a shot's sound for its video request |
11
+ | [Film sound](film-sound.md) | Finish a generated film's sound across its takes |
12
+ | [Audio generation](diffusion/SKILL.md) | Choose a generator, write audio prompts or clone a voice |
13
+ | [Voice preview](acquisition.md#voice-preview) | Make a voice preview |
14
+ | [Commissioned soundtrack](soundtrack.md) | Build a commissioned soundtrack |
15
+ | [Listening](listening.md) | Verify an adopted take, mix or audio delivery |
16
+ | [Acquisition](acquisition.md) | Find, license and adopt speech, music or recordings |
17
+ | [Sound effects](sound-effects.md) | Build and place effects and beds |
@@ -1,37 +1,35 @@
1
1
  # Audio acquisition
2
2
 
3
- Acquisition finds a source for audio the video model does not make, checks its rights and adopts its takes. It serves a requested voice preview, [speech made apart from a take](generated-sound.md), a direct 3D film's dialogue, the beds and score [film sound](film-sound.md) needs, and a [commissioned soundtrack](soundtrack.md).
3
+ Adopt and clear audio sourced apart from the video model, including voice previews, dialogue, beds, scores and commissioned soundtracks.
4
4
 
5
- Audio is generated and recorded outside deterministic replay. Before wiring audio into a render, read the installed packages' contracts for admitted formats and mixing, and this production's host, because a decoder's presence does not mean the delivery entry uses it. Setup and secrets follow [source layout](../development/source-layout.md).
5
+ Before wiring audio, check the installed format and mixing contracts and the delivery host's supported path. Follow [source layout](../development/source-layout.md) for setup and secrets.
6
6
 
7
7
  ## Source choice
8
8
 
9
- Use the user's recordings or chosen provider first, and [research](../story/planning/research.md) reference sounds when needed. Otherwise compare an existing recording or licensed library, a hosted speech or audio service, and [local speech](#local-speech) or other local generation, against the required language, performance, privacy, cost, hardware and turnaround, using existing connectors and command-line tools before writing acquisition code.
9
+ Start with the user's recordings or provider. [Research](../story/planning/research.md) reference sounds as needed. Compare libraries, hosted and local generation by language, performance, privacy, cost and time. Reuse connectors and CLI tools.
10
10
 
11
- Check each asset's terms, on every layer [media records](../production/media-records.md#records) lists, for commercial use, adaptation, attribution and delivery. Permission to synchronize sound with a film differs from permission to publish its raw files, and a free download grants neither; a recorded song needs both a synchronization license for the composition and a master-use license for the recording. Clone or design a voice after a real person only with that person's recorded consent, and through the provider's own voice verification where it has one.
11
+ Check [all rights layers](../production/media-records.md#records) for commercial use, adaptation, attribution and release. Check synchronization and raw-file distribution separately. For recorded music, clear composition synchronization and recording master use.
12
12
 
13
- ## Generating speech
13
+ Clone or design a voice after a real person only with that person's recorded consent, and through the provider's own voice verification where it has one.
14
14
 
15
- Generate one take of a few full lines in the production's language and voice, measure it and have the user listen to it before any batch. Generate a scene's exchange in one request where the speech model takes several speakers, so the turns keep their timing together. Pin each voice with its accepted reference audio and record the model, seed and settings with every take, expecting variation between runs all the same.
15
+ ## Speech
16
16
 
17
- ## Take adoption
17
+ ### Generating speech
18
18
 
19
- Keep accepted bytes and their record under [media records](../production/media-records.md#records); a regeneration is a new take until the user has heard it. Convert the take to a format the installed packages admit, at the film's sample rate, keeping the original.
19
+ Write speech and voice descriptions as audio prompts, or clone a reference voice or convert an existing performance, under this skill's audio generation pages.
20
20
 
21
- Measure durations and trims from the accepted bytes, and place dialogue, captions, cuts and cues against them. When a line does not fit, edit the take, script or shot deliberately and have the user listen to the result.
22
-
23
- For a commissioned soundtrack, keep an accepted music take's tempo map beside it, because the screenplay's music events and the scenes' timing cite it. A cue sheet is made later, from the locked cut, under [assembly](../production/assembly.md#repair-and-delivery).
21
+ ### Voice preview
24
22
 
25
- ## Listening
23
+ Make a preview, generated as above, only when the user wants to hear voices before video generation, with effects only when requested too.
26
24
 
27
- Measure what the decoded bytes show, such as duration, silence, clipping and loudness, and ask the user to listen to each adopted take for words, pronunciation, performance and noise. A waveform, timing report or successful render does not show that the intended recording is audible. The [commissioned soundtrack](soundtrack.md) sets the other listenings; in the delivered audio the user listens for intelligibility, missing cues, transitions and the ending.
25
+ Ask the user to play it alongside the motion hint and listen. A preview is never delivered or required, and the [video prompt](../video/diffusion/prompts.md#sound) still carries the film's sound.
28
26
 
29
- ## Local speech
27
+ ## Takes
30
28
 
31
- Speech, such as a voice preview, can be generated on the local machine. [VoxCPM](https://github.com/OpenBMB/VoxCPM) is one option; its README, [installation guide](https://voxcpm.readthedocs.io/en/latest/installation.html) and [quick start](https://voxcpm.readthedocs.io/en/latest/quickstart.html) own model versions, platform requirements and interfaces. Choose a model against the requested language, performance and the actual machine.
29
+ ### Take adoption
32
30
 
33
- Before installing one, get the user's approval for the environment location, dependencies, model downloads and storage, including downloads the first inference triggers; an existing approval covering that setup is enough. Install it in an isolated environment outside the JavaScript dependencies, record the setup in [project context](../production/project-context.md) and document its commands in the README.
31
+ Keep accepted bytes and their record under [media records](../production/media-records.md#records); a regeneration is a new take until the user has heard it. Convert the take to a format the installed packages admit, at the sample rate the output requires, keeping the original.
34
32
 
35
- ## Voice preview
33
+ Measure durations and trims from the accepted bytes, and place dialogue, captions, cuts and cues against them. When a line does not fit, edit the take, script or shot deliberately and have the user listen to the result.
36
34
 
37
- Make a preview only when the user wants to hear the voices before video generation, with [local speech](#local-speech) or another speech service, adding [sound effects](sound-effects.md) only when the user asks for them too. Ask the user to play it alongside the motion hint and listen. A preview is never delivered or required, and the video prompt still carries the film's sound.
35
+ Keep each accepted music take's tempo map with it for screenplay events and scene timing. Make the cue sheet from the locked cut under [assembly](../production/assembly.md#repair-and-delivery).
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: audio-diffusion
3
+ description: Chooses audio models, writes sound prompts and clones voices.
4
+ ---
5
+
6
+ # Audio generation
7
+
8
+ Generate audio for the sound work the audio skill admits. This route includes diffusion, flow and autoregressive models; choose by the conditioning the task needs. Rights and accepted takes belong to [acquisition](../acquisition.md).
9
+
10
+ | Read | To |
11
+ | --- | --- |
12
+ | [Models](models.md) | Choose a speech, conversion or sound model |
13
+ | [Prompts](prompts.md) | Write speech, effects or music prompts |
14
+ | [Cloning](cloning.md) | Clone a voice or convert an existing performance |
15
+
16
+ ## Model documentation
17
+
18
+ Read the exact checkpoint and endpoint guide for languages, inputs, controls, normalization, pronunciation, speaker binding, limits, formats, duration and seeds.
@@ -0,0 +1,25 @@
1
+ # Voice cloning
2
+
3
+ Voice cloning uses reference audio to condition a speaker's identity. For new words, use reference-conditioned text-to-speech; for an existing delivery, use performance conversion. Voice design from description belongs to [prompts](prompts.md#voice-design).
4
+
5
+ ## Reference and transcript
6
+
7
+ Choose a checkpoint whose documentation supports cloning in the required language, and check reference permission under [source choice](../acquisition.md#source-choice).
8
+
9
+ Use a clean single-speaker reference whose delivery fits the task; continuation can carry its emotion, pace and recording character. Trim at complete phrase boundaries and retain the padding the model requires.
10
+
11
+ Match reference length and format to the model. Verify any reference transcript against the reference audio. Keep it separate from the new words.
12
+
13
+ ## New speech
14
+
15
+ Bind each character to its accepted reference bytes. Use the checkpoint's recommended reference-only or transcript-conditioned input for the task.
16
+
17
+ Write new lines and delivery controls under [prompts](prompts.md), and verify a [first take](prompts.md#first-take) before a batch. Reuse the accepted reference for later lines; even a fixed reference can vary between requests.
18
+
19
+ Record reference digest, conditioning mode and transcript when used under [media records](../../production/media-records.md#records). Fine-tuning also needs training recordings and separate verification.
20
+
21
+ ## Performance conversion
22
+
23
+ When the words and delivery already work but the voice drifts, convert the existing speech to the accepted voice. [Separate](../film-sound.md#separation) dialogue from the mix first so music and effects are not converted with it.
24
+
25
+ Compare duration and word boundaries with the source, and have the user [listen](../listening.md#user-listening) for retained expression, voice identity and artifacts. Replace the dialogue stem, recheck synchronization under [partial repair](../../video/finishing.md#partial-repair), and finish the affected [mix](../film-sound.md).
@@ -0,0 +1,59 @@
1
+ # Audio models
2
+
3
+ These models differ in how they create a voice, take a reference and preserve a performance; the user may choose another. Verify the chosen checkpoint in its own documentation.
4
+
5
+ Choose against the requested language, reference material, performance and rights. Check the exact checkpoint's terms under [source choice](../acquisition.md#source-choice); code and weights can have different licenses.
6
+
7
+ ## Speech
8
+
9
+ ### Voice cloning
10
+
11
+ [VoxCPM2](https://github.com/OpenBMB/VoxCPM) designs voices from text, clones from reference audio, or continues a reference with its transcript. It supports Korean among 30 languages, with Apache-2.0 code and weights. Earlier VoxCPM releases have different language coverage.
12
+
13
+ [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) separates Base checkpoints for reference cloning, VoiceDesign for descriptions, and CustomVoice for provided speakers. Its ten languages include Korean; the releases use Apache-2.0. Choose Base when cloning an arbitrary reference.
14
+
15
+ [CosyVoice3](https://github.com/QwenAudio/CosyVoice) offers cross-language reference cloning and performance instructions. The [Fun-CosyVoice3-0.5B-2512 checkpoint](https://huggingface.co/FunAudioLLM/Fun-CosyVoice3-0.5B-2512) supports Korean among nine languages under Apache-2.0. Its [examples](https://github.com/QwenAudio/CosyVoice/blob/main/example.py) distinguish instruction and reference modes.
16
+
17
+ [GPT-SoVITS](https://github.com/RVC-Boss/GPT-SoVITS) offers reference synthesis and few-shot voice adaptation, including Korean. Adaptation adds preparation of training recordings. The repository is MIT; check pretrained components and recordings separately.
18
+
19
+ [Chatterbox](https://github.com/resemble-ai/chatterbox) provides multilingual reference cloning including Korean; Turbo and Nano target English with smaller models. Its repository declares the research retired and unmaintained since August 2026, retaining MIT code, so weigh maintenance before adopting it.
20
+
21
+ [XTTS-v2](https://huggingface.co/coqui/XTTS-v2) clones from one or several references across 17 languages including Korean. Its weights use the Coqui Public Model License, which the maintained [TTS code fork](https://github.com/idiap/coqui-ai-TTS) does not relicense.
22
+
23
+ ### Voice design and dialogue
24
+
25
+ [MOSS-TTS](https://github.com/OpenMOSS/MOSS-TTS) has separate long-speech, dialogue, voice-design, realtime and effects models; choose the one for the task. Its [v1.5 speech checkpoint](https://huggingface.co/OpenMOSS-Team/MOSS-TTS-v1.5) supports reference cloning and duration control across 31 languages including Korean under Apache-2.0.
26
+
27
+ [MOSS-TTSD](https://github.com/OpenMOSS/MOSS-TTSD) uses speaker-bound references and transcript prefixes for continued dialogue. Its speaker and language support belong to that release, separately from the single-speaker model.
28
+
29
+ [Fish Drama 3](https://huggingface.co/fishaudio/drama-3) generates multiple characters and long content with reference voices and local revisions. Its [direction guide](https://docs.fish.audio/features/text-to-speech/drama-3) distinguishes line delivery, momentary sounds and word-scoped changes. [S2-Pro](https://github.com/fishaudio/fish-speech) is a smaller previous generation.
30
+
31
+ Drama 3's license file uses Fish Audio Community terms while model metadata still labels research terms; inspect the downloaded revision. S2-Pro retains research terms.
32
+
33
+ [Higgs TTS 3](https://huggingface.co/bosonai/higgs-tts-3-4b) offers conversational reference cloning and inline performance controls, including Korean. Its custom license has a creator-use grant with attribution conditions, separate from hosted or product use. The older Higgs repository is not its runtime.
34
+
35
+ ### Emotion and continuation
36
+
37
+ [IndexTTS-2.5](https://github.com/index-tts/index-tts) separates speaker and emotion references, with speed and pronunciation controls. It lists Chinese, English, Japanese, Spanish and Arabic, not Korean. Read its Bilibili Model Use License and check which duration controls the chosen release implements.
38
+
39
+ [F5-TTS](https://github.com/SWivid/F5-TTS) uses flow matching for reference-and-transcript continuation. Its [inference guide](https://github.com/SWivid/F5-TTS/blob/main/src/f5_tts/infer/README.md) covers reference trimming, punctuation and number readings. Code is MIT, but official [weights](https://huggingface.co/SWivid/F5-TTS) are CC-BY-NC-4.0; community checkpoints need separate evidence.
40
+
41
+ ### Converting a performance
42
+
43
+ [OpenVoice V2](https://github.com/myshell-ai/OpenVoice) separates base speech synthesis from tone-color conversion, supporting six languages including Korean under MIT. It serves [performance conversion](cloning.md#performance-conversion); reference-conditioned TTS can choose new timing.
44
+
45
+ ### Other roles
46
+
47
+ [VibeVoice](https://github.com/microsoft/VibeVoice) separates ASR and realtime synthesis from its original TTS release, whose code Microsoft removed. An available recognizer or experimental speaker does not establish arbitrary-reference cloning.
48
+
49
+ [ElevenLabs](https://elevenlabs.io/docs/overview/capabilities/text-to-speech/best-practices) offers hosted speech with model-specific pronunciation and delivery controls. Its [voice-design guide](https://elevenlabs.io/docs/eleven-creative/voices/voice-design) separates voice traits from preview text, while [voice changer](https://elevenlabs.io/docs/overview/capabilities/voice-changer) converts an existing performance.
50
+
51
+ [Gemini TTS](https://aistudio.google.com/docs/speech-generation#prompting-guide) separates the spoken transcript, turn-level delivery and momentary vocal events. Its current endpoint's structured input differs from earlier prompt-only examples; verify the endpoint before reusing a recipe.
52
+
53
+ ## Effects and ambience
54
+
55
+ [Stable Audio 3](https://github.com/Stability-AI/stable-audio-3) generates instrumental music and effects under Stability's Community License. Its [prompt guide](https://stability.ai/guides/stable-audio-3-prompt-guide) covers sources, acoustic character, stems, audio variations and continuation; it is not intended for intelligible vocals.
56
+
57
+ [MOSS-SoundEffect](https://github.com/OpenMOSS/MOSS-TTS) is another purpose-built effects model.
58
+
59
+ [MMAudio](https://github.com/hkchengrex/MMAudio) takes picture and text for short effects and ambience, not dialogue or a continuous scene bed. Code is MIT and checkpoints CC-BY-NC-4.0.
@@ -0,0 +1,45 @@
1
+ # Audio prompts
2
+
3
+ Keep requested speech, reference transcript and performance instructions distinct. Follow the chosen [model's](models.md) syntax.
4
+
5
+ ## Speech
6
+
7
+ ### Spoken text
8
+
9
+ Give the exact lines in the requested language. Resolve ambiguous numbers, dates and abbreviations into their intended spoken reading, keeping captions tied to the screenplay's wording.
10
+
11
+ Use pronunciation dictionaries, aliases or phonemes only in the languages and forms the endpoint supports. A language setting can control normalization without changing a voice's accent, so verify its role in the model's documentation.
12
+
13
+ ### Voice design
14
+
15
+ Specify the lasting language, regional pronunciation, pitch, resonance, texture and age cues that distinguish the voice. Specify intonation and emphasis separately.
16
+
17
+ Keep each accepted voice description with its request. Use a reference when preserving an existing voice.
18
+
19
+ ### Performance and dialogue
20
+
21
+ Direct the line's intent, emotion, pace and emphasis from the screenplay. Keep sustained delivery separate from momentary breaths, laughter and pauses, and scope a change to the turn or words it affects.
22
+
23
+ Use the documented instruction input or inline notation. A stage direction or speaker name pasted into ordinary spoken text may be read aloud, and pause tags or phoneme syntax from another model or version may not be supported.
24
+
25
+ Bind each speaker to its voice or reference and preserve turn order through the endpoint's speaker roles. Generate an exchange together where supported; use overlaps only where the model supports them.
26
+
27
+ Set duration through documented controls, then measure the bytes. Prompted pace and punctuation guide delivery but do not lock picture timing; fit accepted speech under [take adoption](../acquisition.md#take-adoption).
28
+
29
+ ### First take
30
+
31
+ Compare voices on identical complete lines with difficult names and required emotions. Decode the results and have the user [listen](../listening.md#user-listening) before batching.
32
+
33
+ Adopt the accepted take under [take adoption](../acquisition.md#take-adoption), with the request's text, controls and inputs in its record. An accepted designed voice can become the cloning reference for later lines; a seed alone does not preserve identity.
34
+
35
+ ## Effects and ambience
36
+
37
+ Describe source, action, attack, decay, texture, distance and room. State whether the cue is isolated, recurring or continuous.
38
+
39
+ Keep effects separate from dialogue unless the model supports a combined request, and bind picture references in their documented role.
40
+
41
+ ## Music
42
+
43
+ For commissioned music, name its role, genre, leading instruments, mood, energy and arrangement. Specify a full mix or an isolated part where supported, and whether it is instrumental; a music model need not generate intelligible lyrics.
44
+
45
+ Use a tempo target as direction, then keep the accepted take's tempo map under [take adoption](../acquisition.md#take-adoption). Continue or repair from surrounding accepted audio where supported, so the new passage fits its musical context.
@@ -1,10 +1,10 @@
1
1
  # Film sound
2
2
 
3
- Each take of a generated film brings its own sound, so once the takes are [finished](../video/finishing.md), film sound finishes the film's sound across them, under the user's listening. Its [loudness](#loudness) target serves any film with sound. Beds, effects and score come through [acquisition](acquisition.md) and [sound effects](sound-effects.md).
3
+ Finish generated takes' sound together and verify it with the user. Follow the loudness target for any film with sound. Source beds, effects and score through [acquisition](acquisition.md) and sound effects.
4
4
 
5
5
  ## Separation
6
6
 
7
- A take's sound is one mix of speech, effects, ambience and any music. Before re-voicing a line or replacing a bed, separate the speech from the rest, change the part that needs it and mix it back. Few separation tools are proven on film mixes, so choose one that:
7
+ Separate speech from the mix before replacing lines or beds. Change the required stem and remix. Choose a separator by these criteria:
8
8
 
9
9
  - separates dialogue, music and effects stems, because a voice-only tool discards the bed;
10
10
  - is proven on real film mixes rather than synthetic ones, where effects are the hardest stem;
@@ -16,10 +16,12 @@ Test it on the production's own takes, shouts and breaths included, and have the
16
16
 
17
17
  ## One bed and one score per scene
18
18
 
19
- Ambience generated per request jumps at every cut and music generated per request restarts, and a video-to-audio pass, whose models work on clips of a few seconds, jumps the same way, so keep that pass for close effects. Lay one continuous bed per scene under its cuts, ducking or replacing each take's own ambience at the joins and filling gaps with room tone. Lay the score the screenplay gives a scene as one separate track.
19
+ Keep per-clip generated audio for close effects. Run one ambience bed across scene cuts, ducking or replacing take ambience and filling gaps with room tone. Keep the screenplay's score on a separate track.
20
20
 
21
21
  ## Loudness
22
22
 
23
- Every delivered film with sound has a loudness target in the [delivery profile](../production/project-context.md). Ask the user for the release's integrated loudness with its tolerance, whether it is measured over the whole programme or gated on dialogue, and its maximum true peak, such as -23 LUFS over the whole programme and -1 dBTP under [EBU R128](https://tech.ebu.ch/publications/r128). Measure on the decoded mix, by [ITU-R BS.1770](https://www.itu.int/rec/R-REC-BS.1770) with dialogue gating where the target asks for it, that loudness and true peak meet the target and that every spoken line rises over the bed.
23
+ Record the release's integrated loudness target and tolerance, measurement scope and true-peak limit in the [delivery profile](../production/project-context.md#the-delivery-profile). Ask the user which release specification applies, such as [EBU R128](https://tech.ebu.ch/publications/r128).
24
24
 
25
- Keep dialogue, music and effects on separate tracks through the whole mix, so the stems and any music-and-effects mix the profile asks for can be exported; a generated take's speech reaches its own track only through [separation](#separation).
25
+ Measure on the decoded mix, by [ITU-R BS.1770](https://www.itu.int/rec/R-REC-BS.1770) with dialogue gating where the target asks for it, that loudness and true peak meet the target and that every spoken line rises over the bed.
26
+
27
+ Keep dialogue, music and effects on separate tracks through the whole mix, so the stems and any music-and-effects mix the profile asks for can be exported; a generated take's speech reaches its own track only through separation.