@amg555/frameforge-mcp 2.7.3 → 2.7.7

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 (565) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/AGENTS.md +33 -0
  3. package/CHANGELOG.md +49 -0
  4. package/CLAUDE.md +17 -6
  5. package/GEMINI.md +63 -0
  6. package/README.md +216 -426
  7. package/START_HERE.md +4 -2
  8. package/package.json +5 -3
  9. package/plugins/ai-video-editor/README.md +32 -0
  10. package/plugins/ai-video-editor/SKILL.md +152 -0
  11. package/plugins/ai-video-editor/assets/fonts/fonts.css +2409 -0
  12. package/plugins/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
  13. package/plugins/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
  14. package/plugins/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
  15. package/plugins/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
  16. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
  17. package/plugins/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
  18. package/plugins/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
  19. package/plugins/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
  20. package/plugins/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
  21. package/plugins/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
  22. package/plugins/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
  23. package/plugins/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
  24. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
  25. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
  26. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
  27. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
  28. package/plugins/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
  29. package/plugins/ai-video-editor/engine/hidpi.js +117 -0
  30. package/plugins/ai-video-editor/engine/page.html +43 -0
  31. package/plugins/ai-video-editor/engine/player.js +145 -0
  32. package/plugins/ai-video-editor/references/example-story-warm-canvas.js +95 -0
  33. package/plugins/ai-video-editor/references/story-guide.md +112 -0
  34. package/plugins/ai-video-editor/requirements.txt +4 -0
  35. package/plugins/ai-video-editor/styles/chalk-talk/base.js +490 -0
  36. package/plugins/ai-video-editor/styles/chalk-talk/style.json +14 -0
  37. package/plugins/ai-video-editor/styles/chalk-talk/style.md +41 -0
  38. package/plugins/ai-video-editor/styles/clean-tech/base.js +447 -0
  39. package/plugins/ai-video-editor/styles/clean-tech/style.json +15 -0
  40. package/plugins/ai-video-editor/styles/clean-tech/style.md +38 -0
  41. package/plugins/ai-video-editor/styles/creator-motion-graphics/base.js +698 -0
  42. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.json +16 -0
  43. package/plugins/ai-video-editor/styles/creator-motion-graphics/style.md +39 -0
  44. package/plugins/ai-video-editor/styles/data-story/base.js +432 -0
  45. package/plugins/ai-video-editor/styles/data-story/style.json +14 -0
  46. package/plugins/ai-video-editor/styles/data-story/style.md +38 -0
  47. package/plugins/ai-video-editor/styles/index.json +103 -0
  48. package/plugins/ai-video-editor/styles/pop-info/base.js +570 -0
  49. package/plugins/ai-video-editor/styles/pop-info/style.json +13 -0
  50. package/plugins/ai-video-editor/styles/pop-info/style.md +37 -0
  51. package/plugins/ai-video-editor/styles/software-walkthrough/base.js +544 -0
  52. package/plugins/ai-video-editor/styles/software-walkthrough/style.json +15 -0
  53. package/plugins/ai-video-editor/styles/software-walkthrough/style.md +38 -0
  54. package/plugins/ai-video-editor/styles/warm-canvas/base.js +610 -0
  55. package/plugins/ai-video-editor/styles/warm-canvas/style.json +14 -0
  56. package/plugins/ai-video-editor/styles/warm-canvas/style.md +37 -0
  57. package/plugins/aiinsight-shorts/CHANGELOG.md +6 -0
  58. package/plugins/aiinsight-shorts/README.md +43 -0
  59. package/plugins/aiinsight-shorts/SKILL.md +138 -0
  60. package/plugins/aiinsight-shorts/styles/deep-dive/STYLE.md +58 -0
  61. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/cues.json +140 -0
  62. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/lines.json +67 -0
  63. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.json +614 -0
  64. package/plugins/aiinsight-shorts/styles/deep-dive/example/data/words.txt +102 -0
  65. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  66. package/plugins/aiinsight-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  67. package/plugins/aiinsight-shorts/styles/deep-dive/example/index.html +17 -0
  68. package/plugins/aiinsight-shorts/styles/deep-dive/example/script.json +27 -0
  69. package/plugins/aiinsight-shorts/styles/deep-dive/example/sheet.html +11 -0
  70. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  71. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  72. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  73. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  74. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  75. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  76. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  77. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  78. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  79. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/main.js +56 -0
  80. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  81. package/plugins/aiinsight-shorts/styles/deep-dive/example/src/shots.js +136 -0
  82. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  83. package/plugins/aiinsight-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  84. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  85. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  86. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  87. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  88. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  89. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  90. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  91. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  92. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  93. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  94. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  95. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  96. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  97. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  98. package/plugins/aiinsight-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  99. package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
  100. package/plugins/aiinsight-shorts/styles/inside-out/STYLE.md +97 -0
  101. package/plugins/aiinsight-shorts/styles/inside-out/example/data/cues.json +178 -0
  102. package/plugins/aiinsight-shorts/styles/inside-out/example/data/lines.json +73 -0
  103. package/plugins/aiinsight-shorts/styles/inside-out/example/data/words.json +662 -0
  104. package/plugins/aiinsight-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  105. package/plugins/aiinsight-shorts/styles/inside-out/example/index.html +17 -0
  106. package/plugins/aiinsight-shorts/styles/inside-out/example/script.json +26 -0
  107. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  108. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  109. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  110. package/plugins/aiinsight-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  111. package/plugins/aiinsight-shorts/styles/inside-out/example/src/main.js +62 -0
  112. package/plugins/aiinsight-shorts/styles/inside-out/example/src/shots.js +195 -0
  113. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  114. package/plugins/aiinsight-shorts/styles/inside-out/example/tools/mix.py +172 -0
  115. package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
  116. package/plugins/aiinsight-shorts/styles/night-file/STYLE.md +36 -0
  117. package/plugins/aiinsight-shorts/styles/night-file/example/data/cues.json +146 -0
  118. package/plugins/aiinsight-shorts/styles/night-file/example/data/lines.json +73 -0
  119. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.json +572 -0
  120. package/plugins/aiinsight-shorts/styles/night-file/example/data/words.txt +95 -0
  121. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  122. package/plugins/aiinsight-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  123. package/plugins/aiinsight-shorts/styles/night-file/example/index.html +18 -0
  124. package/plugins/aiinsight-shorts/styles/night-file/example/script.json +26 -0
  125. package/plugins/aiinsight-shorts/styles/night-file/example/sheet.html +13 -0
  126. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/board.js +62 -0
  127. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/captions.js +49 -0
  128. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/engine.js +65 -0
  129. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/human.js +128 -0
  130. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/kit.js +151 -0
  131. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/lib.js +44 -0
  132. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  133. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  134. package/plugins/aiinsight-shorts/styles/night-file/example/src/core/timing.js +23 -0
  135. package/plugins/aiinsight-shorts/styles/night-file/example/src/main.js +56 -0
  136. package/plugins/aiinsight-shorts/styles/night-file/example/src/sheet.js +86 -0
  137. package/plugins/aiinsight-shorts/styles/night-file/example/src/shots.js +130 -0
  138. package/plugins/aiinsight-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  139. package/plugins/aiinsight-shorts/styles/night-file/example/tools/mix.py +172 -0
  140. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  141. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  142. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  143. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  144. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  145. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  146. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  147. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  148. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  149. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  150. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  151. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  152. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  153. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  154. package/plugins/aiinsight-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  155. package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
  156. package/plugins/aiinsight-shorts/styles/paper-atlas/STYLE.md +30 -0
  157. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  158. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  159. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.json +614 -0
  160. package/plugins/aiinsight-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  161. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  162. package/plugins/aiinsight-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  163. package/plugins/aiinsight-shorts/styles/paper-atlas/example/index.html +15 -0
  164. package/plugins/aiinsight-shorts/styles/paper-atlas/example/script.json +26 -0
  165. package/plugins/aiinsight-shorts/styles/paper-atlas/example/sheet.html +12 -0
  166. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  167. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  168. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  169. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  170. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  171. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/main.js +62 -0
  172. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  173. package/plugins/aiinsight-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  174. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  175. package/plugins/aiinsight-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  176. package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
  177. package/plugins/aiinsight-shorts/styles/stick-story/STYLE.md +32 -0
  178. package/plugins/aiinsight-shorts/styles/stick-story/example/data/cues.json +182 -0
  179. package/plugins/aiinsight-shorts/styles/stick-story/example/data/lines.json +79 -0
  180. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.json +662 -0
  181. package/plugins/aiinsight-shorts/styles/stick-story/example/data/words.txt +110 -0
  182. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  183. package/plugins/aiinsight-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  184. package/plugins/aiinsight-shorts/styles/stick-story/example/index.html +13 -0
  185. package/plugins/aiinsight-shorts/styles/stick-story/example/script.json +27 -0
  186. package/plugins/aiinsight-shorts/styles/stick-story/example/sheet.html +10 -0
  187. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/board.js +62 -0
  188. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  189. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  190. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  191. package/plugins/aiinsight-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  192. package/plugins/aiinsight-shorts/styles/stick-story/example/src/main.js +62 -0
  193. package/plugins/aiinsight-shorts/styles/stick-story/example/src/sheet.js +64 -0
  194. package/plugins/aiinsight-shorts/styles/stick-story/example/src/shots.js +148 -0
  195. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  196. package/plugins/aiinsight-shorts/styles/stick-story/example/tools/mix.py +172 -0
  197. package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
  198. package/plugins/aiinsight-shorts/styles/tall-tale/STYLE.md +51 -0
  199. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/cues.json +271 -0
  200. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/lines.json +127 -0
  201. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.json +908 -0
  202. package/plugins/aiinsight-shorts/styles/tall-tale/example/data/words.txt +151 -0
  203. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  204. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  205. package/plugins/aiinsight-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  206. package/plugins/aiinsight-shorts/styles/tall-tale/example/index.html +19 -0
  207. package/plugins/aiinsight-shorts/styles/tall-tale/example/script.json +37 -0
  208. package/plugins/aiinsight-shorts/styles/tall-tale/example/sheet.html +13 -0
  209. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  210. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  211. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  212. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  213. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  214. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  215. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  216. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  217. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/main.js +56 -0
  218. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  219. package/plugins/aiinsight-shorts/styles/tall-tale/example/src/shots.js +377 -0
  220. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  221. package/plugins/aiinsight-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  222. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  223. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  224. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  225. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  226. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  227. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  228. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  229. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  230. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  231. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  232. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  233. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  234. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  235. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  236. package/plugins/aiinsight-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  237. package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
  238. package/plugins/faceless-shorts/README.md +34 -0
  239. package/plugins/faceless-shorts/SKILL.md +124 -0
  240. package/plugins/faceless-shorts/styles/deep-dive/STYLE.md +58 -0
  241. package/plugins/faceless-shorts/styles/deep-dive/example/data/cues.json +140 -0
  242. package/plugins/faceless-shorts/styles/deep-dive/example/data/lines.json +67 -0
  243. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.json +614 -0
  244. package/plugins/faceless-shorts/styles/deep-dive/example/data/words.txt +102 -0
  245. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  246. package/plugins/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  247. package/plugins/faceless-shorts/styles/deep-dive/example/index.html +16 -0
  248. package/plugins/faceless-shorts/styles/deep-dive/example/script.json +27 -0
  249. package/plugins/faceless-shorts/styles/deep-dive/example/sheet.html +10 -0
  250. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/board.js +62 -0
  251. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/captions.js +68 -0
  252. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/engine.js +65 -0
  253. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/human.js +128 -0
  254. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/lib.js +44 -0
  255. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +33 -0
  256. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +79 -0
  257. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/sets.js +107 -0
  258. package/plugins/faceless-shorts/styles/deep-dive/example/src/core/timing.js +23 -0
  259. package/plugins/faceless-shorts/styles/deep-dive/example/src/main.js +56 -0
  260. package/plugins/faceless-shorts/styles/deep-dive/example/src/sheet.js +79 -0
  261. package/plugins/faceless-shorts/styles/deep-dive/example/src/shots.js +136 -0
  262. package/plugins/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +122 -0
  263. package/plugins/faceless-shorts/styles/deep-dive/example/tools/mix.py +172 -0
  264. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +21 -0
  265. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  266. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  267. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  268. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  269. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  270. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +95 -0
  271. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  272. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  273. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  274. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +145 -0
  275. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +45 -0
  276. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  277. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +85 -0
  278. package/plugins/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +6 -0
  279. package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  280. package/plugins/faceless-shorts/styles/inside-out/STYLE.md +97 -0
  281. package/plugins/faceless-shorts/styles/inside-out/example/data/cues.json +178 -0
  282. package/plugins/faceless-shorts/styles/inside-out/example/data/lines.json +73 -0
  283. package/plugins/faceless-shorts/styles/inside-out/example/data/words.json +662 -0
  284. package/plugins/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  285. package/plugins/faceless-shorts/styles/inside-out/example/index.html +16 -0
  286. package/plugins/faceless-shorts/styles/inside-out/example/script.json +26 -0
  287. package/plugins/faceless-shorts/styles/inside-out/example/src/core/captions.js +68 -0
  288. package/plugins/faceless-shorts/styles/inside-out/example/src/core/kit.js +345 -0
  289. package/plugins/faceless-shorts/styles/inside-out/example/src/core/lib.js +44 -0
  290. package/plugins/faceless-shorts/styles/inside-out/example/src/core/timing.js +23 -0
  291. package/plugins/faceless-shorts/styles/inside-out/example/src/main.js +62 -0
  292. package/plugins/faceless-shorts/styles/inside-out/example/src/shots.js +195 -0
  293. package/plugins/faceless-shorts/styles/inside-out/example/tools/capture.mjs +122 -0
  294. package/plugins/faceless-shorts/styles/inside-out/example/tools/mix.py +172 -0
  295. package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  296. package/plugins/faceless-shorts/styles/night-file/STYLE.md +36 -0
  297. package/plugins/faceless-shorts/styles/night-file/example/data/cues.json +146 -0
  298. package/plugins/faceless-shorts/styles/night-file/example/data/lines.json +73 -0
  299. package/plugins/faceless-shorts/styles/night-file/example/data/words.json +572 -0
  300. package/plugins/faceless-shorts/styles/night-file/example/data/words.txt +95 -0
  301. package/plugins/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  302. package/plugins/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  303. package/plugins/faceless-shorts/styles/night-file/example/index.html +16 -0
  304. package/plugins/faceless-shorts/styles/night-file/example/script.json +26 -0
  305. package/plugins/faceless-shorts/styles/night-file/example/sheet.html +11 -0
  306. package/plugins/faceless-shorts/styles/night-file/example/src/core/board.js +62 -0
  307. package/plugins/faceless-shorts/styles/night-file/example/src/core/captions.js +49 -0
  308. package/plugins/faceless-shorts/styles/night-file/example/src/core/engine.js +65 -0
  309. package/plugins/faceless-shorts/styles/night-file/example/src/core/human.js +128 -0
  310. package/plugins/faceless-shorts/styles/night-file/example/src/core/kit.js +151 -0
  311. package/plugins/faceless-shorts/styles/night-file/example/src/core/lib.js +44 -0
  312. package/plugins/faceless-shorts/styles/night-file/example/src/core/sdf.js +79 -0
  313. package/plugins/faceless-shorts/styles/night-file/example/src/core/sets3d.js +106 -0
  314. package/plugins/faceless-shorts/styles/night-file/example/src/core/timing.js +23 -0
  315. package/plugins/faceless-shorts/styles/night-file/example/src/main.js +56 -0
  316. package/plugins/faceless-shorts/styles/night-file/example/src/sheet.js +86 -0
  317. package/plugins/faceless-shorts/styles/night-file/example/src/shots.js +130 -0
  318. package/plugins/faceless-shorts/styles/night-file/example/tools/capture.mjs +122 -0
  319. package/plugins/faceless-shorts/styles/night-file/example/tools/mix.py +172 -0
  320. package/plugins/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +21 -0
  321. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  322. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  323. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  324. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  325. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  326. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +95 -0
  327. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  328. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  329. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  330. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +145 -0
  331. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +45 -0
  332. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  333. package/plugins/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +85 -0
  334. package/plugins/faceless-shorts/styles/night-file/example/vendor/three.module.js +6 -0
  335. package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  336. package/plugins/faceless-shorts/styles/paper-atlas/STYLE.md +30 -0
  337. package/plugins/faceless-shorts/styles/paper-atlas/example/data/cues.json +167 -0
  338. package/plugins/faceless-shorts/styles/paper-atlas/example/data/lines.json +67 -0
  339. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.json +614 -0
  340. package/plugins/faceless-shorts/styles/paper-atlas/example/data/words.txt +102 -0
  341. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  342. package/plugins/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  343. package/plugins/faceless-shorts/styles/paper-atlas/example/index.html +13 -0
  344. package/plugins/faceless-shorts/styles/paper-atlas/example/script.json +26 -0
  345. package/plugins/faceless-shorts/styles/paper-atlas/example/sheet.html +10 -0
  346. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/board.js +62 -0
  347. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +47 -0
  348. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +152 -0
  349. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +44 -0
  350. package/plugins/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +23 -0
  351. package/plugins/faceless-shorts/styles/paper-atlas/example/src/main.js +62 -0
  352. package/plugins/faceless-shorts/styles/paper-atlas/example/src/sheet.js +61 -0
  353. package/plugins/faceless-shorts/styles/paper-atlas/example/src/shots.js +139 -0
  354. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +122 -0
  355. package/plugins/faceless-shorts/styles/paper-atlas/example/tools/mix.py +172 -0
  356. package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  357. package/plugins/faceless-shorts/styles/stick-story/STYLE.md +32 -0
  358. package/plugins/faceless-shorts/styles/stick-story/example/data/cues.json +182 -0
  359. package/plugins/faceless-shorts/styles/stick-story/example/data/lines.json +79 -0
  360. package/plugins/faceless-shorts/styles/stick-story/example/data/words.json +662 -0
  361. package/plugins/faceless-shorts/styles/stick-story/example/data/words.txt +110 -0
  362. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  363. package/plugins/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  364. package/plugins/faceless-shorts/styles/stick-story/example/index.html +12 -0
  365. package/plugins/faceless-shorts/styles/stick-story/example/script.json +27 -0
  366. package/plugins/faceless-shorts/styles/stick-story/example/sheet.html +9 -0
  367. package/plugins/faceless-shorts/styles/stick-story/example/src/core/board.js +62 -0
  368. package/plugins/faceless-shorts/styles/stick-story/example/src/core/captions.js +47 -0
  369. package/plugins/faceless-shorts/styles/stick-story/example/src/core/kit.js +166 -0
  370. package/plugins/faceless-shorts/styles/stick-story/example/src/core/lib.js +44 -0
  371. package/plugins/faceless-shorts/styles/stick-story/example/src/core/timing.js +23 -0
  372. package/plugins/faceless-shorts/styles/stick-story/example/src/main.js +62 -0
  373. package/plugins/faceless-shorts/styles/stick-story/example/src/sheet.js +64 -0
  374. package/plugins/faceless-shorts/styles/stick-story/example/src/shots.js +148 -0
  375. package/plugins/faceless-shorts/styles/stick-story/example/tools/capture.mjs +122 -0
  376. package/plugins/faceless-shorts/styles/stick-story/example/tools/mix.py +172 -0
  377. package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  378. package/plugins/faceless-shorts/styles/tall-tale/STYLE.md +51 -0
  379. package/plugins/faceless-shorts/styles/tall-tale/example/data/cues.json +271 -0
  380. package/plugins/faceless-shorts/styles/tall-tale/example/data/lines.json +127 -0
  381. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.json +908 -0
  382. package/plugins/faceless-shorts/styles/tall-tale/example/data/words.txt +151 -0
  383. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  384. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  385. package/plugins/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  386. package/plugins/faceless-shorts/styles/tall-tale/example/index.html +17 -0
  387. package/plugins/faceless-shorts/styles/tall-tale/example/script.json +37 -0
  388. package/plugins/faceless-shorts/styles/tall-tale/example/sheet.html +11 -0
  389. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/board.js +62 -0
  390. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/captions.js +56 -0
  391. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/engine.js +65 -0
  392. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/lib.js +44 -0
  393. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/props.js +166 -0
  394. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/timing.js +23 -0
  395. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/toon.js +352 -0
  396. package/plugins/faceless-shorts/styles/tall-tale/example/src/core/world.js +340 -0
  397. package/plugins/faceless-shorts/styles/tall-tale/example/src/main.js +56 -0
  398. package/plugins/faceless-shorts/styles/tall-tale/example/src/sheet.js +99 -0
  399. package/plugins/faceless-shorts/styles/tall-tale/example/src/shots.js +377 -0
  400. package/plugins/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +122 -0
  401. package/plugins/faceless-shorts/styles/tall-tale/example/tools/mix.py +204 -0
  402. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +21 -0
  403. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +144 -0
  404. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +141 -0
  405. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +231 -0
  406. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +104 -0
  407. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +97 -0
  408. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +95 -0
  409. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +99 -0
  410. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +77 -0
  411. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +415 -0
  412. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +145 -0
  413. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +45 -0
  414. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +64 -0
  415. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +85 -0
  416. package/plugins/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +6 -0
  417. package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
  418. package/plugins/motion-styles/LIBRARY.md +896 -0
  419. package/plugins/motion-styles/README.md +29 -0
  420. package/plugins/motion-styles/SKILL.md +70 -0
  421. package/plugins/motion-styles/catalog.json +2253 -0
  422. package/plugins/motion-styles/prompts/bio-glow.md +149 -0
  423. package/plugins/motion-styles/prompts/blueprint.md +145 -0
  424. package/plugins/motion-styles/prompts/breaking-desk.md +147 -0
  425. package/plugins/motion-styles/prompts/callout-kit.md +147 -0
  426. package/plugins/motion-styles/prompts/chalk-talk.md +153 -0
  427. package/plugins/motion-styles/prompts/chat-story.md +143 -0
  428. package/plugins/motion-styles/prompts/clay-diorama.md +149 -0
  429. package/plugins/motion-styles/prompts/clean-tech.md +147 -0
  430. package/plugins/motion-styles/prompts/comic-panels.md +145 -0
  431. package/plugins/motion-styles/prompts/cosmic-scale.md +147 -0
  432. package/plugins/motion-styles/prompts/creator-motion.md +149 -0
  433. package/plugins/motion-styles/prompts/data-city.md +149 -0
  434. package/plugins/motion-styles/prompts/data-story.md +147 -0
  435. package/plugins/motion-styles/prompts/deep-layers.md +147 -0
  436. package/plugins/motion-styles/prompts/doc-cinema.md +145 -0
  437. package/plugins/motion-styles/prompts/evidence-board.md +145 -0
  438. package/plugins/motion-styles/prompts/exploded-view.md +149 -0
  439. package/plugins/motion-styles/prompts/glass-icons.md +147 -0
  440. package/plugins/motion-styles/prompts/glitch-pack.md +145 -0
  441. package/plugins/motion-styles/prompts/globe-arcs.md +147 -0
  442. package/plugins/motion-styles/prompts/headline-backdrop.md +145 -0
  443. package/plugins/motion-styles/prompts/iso-cutaway.md +147 -0
  444. package/plugins/motion-styles/prompts/isotype.md +145 -0
  445. package/plugins/motion-styles/prompts/karaoke-subs.md +145 -0
  446. package/plugins/motion-styles/prompts/low-poly-atlas.md +149 -0
  447. package/plugins/motion-styles/prompts/lower-thirds.md +147 -0
  448. package/plugins/motion-styles/prompts/marker-board.md +145 -0
  449. package/plugins/motion-styles/prompts/market-tape.md +145 -0
  450. package/plugins/motion-styles/prompts/math-canvas.md +145 -0
  451. package/plugins/motion-styles/prompts/myth-or-fact.md +145 -0
  452. package/plugins/motion-styles/prompts/neon-line.md +145 -0
  453. package/plugins/motion-styles/prompts/paper-craft.md +145 -0
  454. package/plugins/motion-styles/prompts/parchment-map.md +147 -0
  455. package/plugins/motion-styles/prompts/physics-toybox.md +147 -0
  456. package/plugins/motion-styles/prompts/pixel-quest.md +145 -0
  457. package/plugins/motion-styles/prompts/podcast-clip.md +147 -0
  458. package/plugins/motion-styles/prompts/pop-info.md +145 -0
  459. package/plugins/motion-styles/prompts/product-turntable.md +149 -0
  460. package/plugins/motion-styles/prompts/punch-captions.md +145 -0
  461. package/plugins/motion-styles/prompts/quiz-countdown.md +145 -0
  462. package/plugins/motion-styles/prompts/quote-cinema.md +145 -0
  463. package/plugins/motion-styles/prompts/recipe-steps.md +145 -0
  464. package/plugins/motion-styles/prompts/rubber-hose-reel.md +145 -0
  465. package/plugins/motion-styles/prompts/shadow-puppets.md +145 -0
  466. package/plugins/motion-styles/prompts/size-lineup.md +149 -0
  467. package/plugins/motion-styles/prompts/software-walkthrough.md +147 -0
  468. package/plugins/motion-styles/prompts/stack-split.md +145 -0
  469. package/plugins/motion-styles/prompts/sticker-pop.md +145 -0
  470. package/plugins/motion-styles/prompts/storybook.md +145 -0
  471. package/plugins/motion-styles/prompts/swiss-grid.md +145 -0
  472. package/plugins/motion-styles/prompts/synth-grid.md +147 -0
  473. package/plugins/motion-styles/prompts/tactics-board.md +145 -0
  474. package/plugins/motion-styles/prompts/terminal.md +145 -0
  475. package/plugins/motion-styles/prompts/tier-list.md +143 -0
  476. package/plugins/motion-styles/prompts/timeline-rail.md +145 -0
  477. package/plugins/motion-styles/prompts/top-5-countdown.md +145 -0
  478. package/plugins/motion-styles/prompts/versus-split.md +145 -0
  479. package/plugins/motion-styles/prompts/vhs-camcorder.md +145 -0
  480. package/plugins/motion-styles/prompts/visual-novel.md +145 -0
  481. package/plugins/motion-styles/prompts/warm-canvas.md +145 -0
  482. package/plugins/motion-styles/prompts/woodcut-tale.md +145 -0
  483. package/plugins/motion-styles/prompts/zine-collage.md +145 -0
  484. package/plugins/motion-styles/sources/bio-glow.html +639 -0
  485. package/plugins/motion-styles/sources/blueprint.html +617 -0
  486. package/plugins/motion-styles/sources/breaking-desk.html +585 -0
  487. package/plugins/motion-styles/sources/callout-kit.html +586 -0
  488. package/plugins/motion-styles/sources/chalk-talk.html +597 -0
  489. package/plugins/motion-styles/sources/chat-story.html +597 -0
  490. package/plugins/motion-styles/sources/clay-diorama.html +681 -0
  491. package/plugins/motion-styles/sources/clean-tech.html +554 -0
  492. package/plugins/motion-styles/sources/comic-panels.html +608 -0
  493. package/plugins/motion-styles/sources/cosmic-scale.html +628 -0
  494. package/plugins/motion-styles/sources/creator-motion.html +805 -0
  495. package/plugins/motion-styles/sources/data-city.html +613 -0
  496. package/plugins/motion-styles/sources/data-story.html +539 -0
  497. package/plugins/motion-styles/sources/deep-layers.html +624 -0
  498. package/plugins/motion-styles/sources/doc-cinema.html +590 -0
  499. package/plugins/motion-styles/sources/evidence-board.html +610 -0
  500. package/plugins/motion-styles/sources/exploded-view.html +618 -0
  501. package/plugins/motion-styles/sources/glass-icons.html +612 -0
  502. package/plugins/motion-styles/sources/glitch-pack.html +583 -0
  503. package/plugins/motion-styles/sources/globe-arcs.html +621 -0
  504. package/plugins/motion-styles/sources/headline-backdrop.html +584 -0
  505. package/plugins/motion-styles/sources/iso-cutaway.html +621 -0
  506. package/plugins/motion-styles/sources/isotype.html +588 -0
  507. package/plugins/motion-styles/sources/karaoke-subs.html +577 -0
  508. package/plugins/motion-styles/sources/low-poly-atlas.html +621 -0
  509. package/plugins/motion-styles/sources/lower-thirds.html +582 -0
  510. package/plugins/motion-styles/sources/marker-board.html +598 -0
  511. package/plugins/motion-styles/sources/market-tape.html +598 -0
  512. package/plugins/motion-styles/sources/math-canvas.html +592 -0
  513. package/plugins/motion-styles/sources/myth-or-fact.html +587 -0
  514. package/plugins/motion-styles/sources/neon-line.html +597 -0
  515. package/plugins/motion-styles/sources/paper-craft.html +612 -0
  516. package/plugins/motion-styles/sources/parchment-map.html +624 -0
  517. package/plugins/motion-styles/sources/physics-toybox.html +617 -0
  518. package/plugins/motion-styles/sources/pixel-quest.html +609 -0
  519. package/plugins/motion-styles/sources/podcast-clip.html +585 -0
  520. package/plugins/motion-styles/sources/pop-info.html +677 -0
  521. package/plugins/motion-styles/sources/product-turntable.html +611 -0
  522. package/plugins/motion-styles/sources/punch-captions.html +583 -0
  523. package/plugins/motion-styles/sources/quiz-countdown.html +593 -0
  524. package/plugins/motion-styles/sources/quote-cinema.html +581 -0
  525. package/plugins/motion-styles/sources/recipe-steps.html +599 -0
  526. package/plugins/motion-styles/sources/rubber-hose-reel.html +627 -0
  527. package/plugins/motion-styles/sources/shadow-puppets.html +609 -0
  528. package/plugins/motion-styles/sources/size-lineup.html +620 -0
  529. package/plugins/motion-styles/sources/software-walkthrough.html +651 -0
  530. package/plugins/motion-styles/sources/stack-split.html +588 -0
  531. package/plugins/motion-styles/sources/sticker-pop.html +587 -0
  532. package/plugins/motion-styles/sources/storybook.html +600 -0
  533. package/plugins/motion-styles/sources/swiss-grid.html +590 -0
  534. package/plugins/motion-styles/sources/synth-grid.html +614 -0
  535. package/plugins/motion-styles/sources/tactics-board.html +608 -0
  536. package/plugins/motion-styles/sources/terminal.html +593 -0
  537. package/plugins/motion-styles/sources/tier-list.html +600 -0
  538. package/plugins/motion-styles/sources/timeline-rail.html +598 -0
  539. package/plugins/motion-styles/sources/top-5-countdown.html +589 -0
  540. package/plugins/motion-styles/sources/versus-split.html +592 -0
  541. package/plugins/motion-styles/sources/vhs-camcorder.html +587 -0
  542. package/plugins/motion-styles/sources/visual-novel.html +623 -0
  543. package/plugins/motion-styles/sources/warm-canvas.html +742 -0
  544. package/plugins/motion-styles/sources/woodcut-tale.html +598 -0
  545. package/plugins/motion-styles/sources/zine-collage.html +594 -0
  546. package/plugins/video-pipeline/.claude-plugin/plugin.json +2 -2
  547. package/plugins/video-pipeline/skills/.upstream-skills.json +156 -143
  548. package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +3 -3
  549. package/scripts/deep-validate.js +3 -2
  550. package/src/audio-mixer/mixer.js +69 -0
  551. package/src/cli/make.js +19 -0
  552. package/src/harness/lib/browser.mjs +22 -1
  553. package/src/harness/lib/capture.mjs +33 -11
  554. package/src/harness/lib/jobs.mjs +16 -1
  555. package/src/mcp-server/server.js +726 -10
  556. package/src/pipeline/providers.js +77 -17
  557. package/src/skills/sync-upstream.js +15 -3
  558. package/src/utils/media-downloader.js +7 -0
  559. package/src/utils/tool-installer.js +212 -0
  560. package/src/utils/transcribe.js +9 -1
  561. package/src/video-renderer/renderer.js +68 -38
  562. package/src/video-renderer/scene-animator.js +50 -15
  563. package/src/workflows/assets.js +49 -5
  564. package/src/workflows/render.js +2 -0
  565. package/src/workflows/script.js +14 -3
@@ -0,0 +1,64 @@
1
+ // The Stick Story style sheet, drawn with the style's own kit.
2
+ import { ctx } from './core/lib.js';
3
+ import { startBoard, panel, frame, cell, small, swatches, rules } from './core/board.js';
4
+ import * as K from './core/kit.js';
5
+ const { P } = K;
6
+
7
+ const cv = document.getElementById('cv');
8
+ await document.fonts.load('900 40px Inter'); await document.fonts.load('800 40px Inter');
9
+ startBoard(cv, { title: 'STICK STORY: VIDEO STYLE SHEET', accent: P.gold });
10
+
11
+ // 1 · hero frame
12
+ let b = panel(20, 80, 560, 520, 1, 'HERO FRAME');
13
+ frame(b.x + 6, b.y, 240, () => {
14
+ K.livingRoom({ night: true, lampOn: false });
15
+ K.person({ x: 520, y: K.GROUND, h: 720, dir: 1, mood: 'worried', look: [1, -0.2], arms: { L: [-10, 20], R: [70, 20] }, hold: (x, y) => K.flashlight(x + 10, y, 1.3, true, -0.15) });
16
+ K.counterPill('9:12 P.M.', 540, 230, 1.1);
17
+ K.captionBar([{ txt: 'The power' }, { txt: 'goes' }, { txt: 'out.', hi: 1 }], 540, K.CAPLOOK.y, 1.05);
18
+ });
19
+ small('A STICK HERO WITH\nEYES THAT ACT', b.x + 270, b.y + 40, 'left', 17);
20
+ small('FLAT ROOMS,\nDAY OR NIGHT', b.x + 270, b.y + 130, 'left', 17);
21
+ small('ONE PICTURE\nPER CLAUSE', b.x + 270, b.y + 220, 'left', 17);
22
+ small('GOLD = STEPS,\nRED = DANGER', b.x + 270, b.y + 310, 'left', 17);
23
+
24
+ // 2 · palette
25
+ b = panel(590, 80, 660, 520, 2, 'PALETTE');
26
+ const yy = swatches(b, [['WALL', P.wall], ['FLOOR', P.floor], ['INK', P.ink], ['GOLD', P.gold], ['NAVY', P.navy], ['DANGER', P.red], ['SAFE', P.green], ['NIGHT', P.nWall]]);
27
+ ['PEOPLE ARE ALWAYS INK BLACK. COLOUR LIVES IN THE ROOM.', 'GOLD IS ONLY FOR STEP CARDS AND KEY WORDS.', 'NIGHT = THE SAME ROOM IN BLUE, LIT BY ONE LAMP.']
28
+ .forEach((t, i) => small(t, b.x + 4, yy + 20 + i * 40, 'left', 16, '#E6E7EA'));
29
+ // expressions strip (the eyes are the style's signature)
30
+ ctx.fillStyle = P.wall; ctx.beginPath(); ctx.roundRect(b.x, yy + 140, b.w, 150, 14); ctx.fill();
31
+ ['calm', 'happy', 'worried', 'scared', 'determined', 'sleepy'].forEach((m, i) => cell(b.x + 55 + i * 104, yy + 195, 0.36, () => K.bigHead(0, 0, 100, { mood: m }), m.toUpperCase(), 72));
32
+
33
+ // 3 · components
34
+ b = panel(1260, 80, 640, 520, 3, 'COMPONENTS');
35
+ ctx.fillStyle = P.wall; ctx.beginPath(); ctx.roundRect(b.x, b.y, b.w, b.h, 14); ctx.fill();
36
+ const gx = (i) => b.x + 75 + i * 150, gy = (r) => b.y + 140 + r * 195;
37
+ cell(gx(0), gy(0) + 80, 0.38, () => K.person({ x: 0, y: 0, h: 520, mood: 'happy', arms: { L: [-30, 40], R: [150, 20] } }), 'HERO', 30);
38
+ cell(gx(1), gy(0) + 80, 0.38, () => K.person({ x: 0, y: 0, h: 520, mood: 'scared', walk: 1.2, dir: -1 }), 'WALKING', 30);
39
+ cell(gx(2), gy(0), 0.55, () => K.bigHead(0, -20, 120, { mood: 'determined' }), 'CLOSE-UP', 90);
40
+ cell(gx(3), gy(0), 0.5, () => K.thought(0, -40, 0.8, () => K.bottle(0, -20, 0.6), 60, 120), 'THOUGHT', 90);
41
+ cell(gx(0), gy(1), 0.55, () => { K.bottle(-40, 60); K.can(50, 60); }, 'SUPPLIES', 70);
42
+ cell(gx(1), gy(1), 0.5, () => K.phone(0, 0, 0.8, true), 'PHONE', 70);
43
+ cell(gx(2), gy(1) - 10, 0.55, () => { K.check(-55, 0, 0.8); K.cross(55, 0, 0.8); }, 'YES / NO', 80);
44
+ cell(gx(3), gy(1), 0.2, () => K.stepCard(1, 'FILL THE TUB', 0, 0), 'STEP CARD', 70);
45
+
46
+ // 4 · scenes
47
+ b = panel(20, 610, 760, 456, 4, 'SCENES');
48
+ const sw = 200, sx = (i) => b.x + 20 + i * (sw + 45);
49
+ frame(sx(0), b.y, sw, () => { K.livingRoom({}); K.person({ x: 420, y: K.GROUND, h: 700, mood: 'calm', dir: 1, look: [1, 0] }); });
50
+ frame(sx(1), b.y, sw, () => { K.kitchen({}); K.person({ x: 650, y: K.GROUND, h: 700, mood: 'determined', dir: -1, hold: (x, y) => K.bottle(x, y + 40, 1) }); });
51
+ frame(sx(2), b.y, sw, () => { K.hallway({ night: true, openB: 0.3 }); K.person({ x: 520, y: K.GROUND, h: 700, mood: 'scared', dir: 1, walk: 0.6 }); });
52
+ ['(A) LIVING ROOM', '(B) KITCHEN', '(C) HALLWAY · NIGHT'].forEach((t, i) => small(t, sx(i) + sw / 2, b.y + sw * 16 / 9 + 26, 'center', 15));
53
+
54
+ // 5 · captions
55
+ b = panel(790, 610, 520, 456, 5, 'CAPTIONS');
56
+ ctx.fillStyle = P.wall; ctx.fillRect(b.x, b.y, b.w, b.h - 10);
57
+ [[[{ txt: 'Lock' }, { txt: 'the' }, { txt: 'door.', hi: 1 }], 70], [[{ txt: 'Then' }, { txt: 'fill' }, { txt: 'the' }, { txt: 'tub.', hi: 1 }], 175], [[{ txt: 'Day' }, { txt: 'three.', hi: 1 }], 280]]
58
+ .forEach(([w, y]) => cell(b.x + b.w / 2, b.y + y, 0.42, () => K.captionBar(w, 0, 0), null));
59
+ small('SENTENCE CASE · 2-4 WORDS · ONE GOLD WORD', b.x + b.w / 2, b.y + b.h - 26, 'center', 14, '#5A5560');
60
+
61
+ // 6 · rules
62
+ b = panel(1320, 610, 580, 456, 6, 'RULES');
63
+ rules(b, ['ONE PICTURE PER CLAUSE: CUT EVERY 1-2 S.', 'EYES ACT FIRST: LOOK, THEN REACT.', 'EVERY STEP GETS A GOLD NUMBERED CARD.', 'SAME ROOMS ALL VIDEO: DAY, THEN NIGHT.', 'CINEMA BARS ONLY ON THE SCARY BEAT.', 'SOFT CARTOON SOUND: POP, WHOOSH, STEPS.', 'MOOD: TENSE, CLEVER, A LITTLE FUNNY.'], b.y + 26, 17, 52);
64
+ window.SHEET_READY = true;
@@ -0,0 +1,148 @@
1
+ // WHAT IF THE POWER WENT OUT FOR 3 DAYS? : the shot list (Stick Story example).
2
+ // One picture per clause. A shot: { id, at, cam: [cx, cy], zoom, note, draw(lt, d, t) }. cut(i) = just before line i,
3
+ // Wd('word', i) = when the word is said. Sound: cue(t, type, { gain, dur }).
4
+ import { ctx, W, H, clamp, lerp, seg, eo, eio, eob, rnd, rr, circle, ell, line } from './core/lib.js';
5
+ import { L, Wd, T } from './core/timing.js';
6
+ import * as K from './core/kit.js';
7
+ const { P, GROUND } = K;
8
+
9
+ // small set pieces for this story
10
+ function tv(x, y, on) { rr(x - 170, y - 230, 340, 210, 16); ctx.fillStyle = P.ink; ctx.fill(); rr(x - 150, y - 212, 300, 174, 8); ctx.fillStyle = on ? '#7FB8E6' : '#2E3445'; ctx.fill(); rr(x - 120, y - 20, 240, 30, 8); ctx.fillStyle = '#6B4A34'; ctx.fill(); ctx.fillStyle = '#6B4A34'; ctx.fillRect(x - 110, y + 10, 20, 120); ctx.fillRect(x + 90, y + 10, 20, 120); }
11
+ function plug(x, y, inWall) { line([[x - 300, y + 40], [x - 120, y + 60], [x - 10, y + 10]], P.ink, 10); rr(x - 20, y - 22, inWall ? 40 : 56, 44, 8); ctx.fillStyle = '#E8E3D8'; ctx.fill(); ctx.strokeStyle = P.ink; ctx.lineWidth = 5; ctx.stroke(); if (!inWall) { line([[x + 36, y - 10], [x + 56, y - 10]], '#B8A36A', 7); line([[x + 36, y + 10], [x + 56, y + 10]], '#B8A36A', 7); } }
12
+ function socket(x, y) { rr(x - 50, y - 70, 100, 140, 14); ctx.fillStyle = '#F7F1E6'; ctx.fill(); ctx.strokeStyle = '#C9BFA9'; ctx.lineWidth = 5; ctx.stroke(); for (const dy of [-28, 28]) { circle(x, dy + y, 20, '#C9BFA9'); ctx.fillStyle = P.ink; ctx.fillRect(x - 8, y + dy - 8, 5, 14); ctx.fillRect(x + 3, y + dy - 8, 5, 14); } }
13
+ function candle(x, y, s, t) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-26, -140, 52, 150, 10); ctx.fillStyle = '#F4EEDC'; ctx.fill(); line([[0, -140], [0, -158]], P.ink, 5); const f = 1 + Math.sin(t * 20) * 0.08; ell(0, -190, 20 * f, 38 * f, '#F2B23E'); ell(0, -182, 10, 20, '#FFF3C4'); ctx.restore(); }
14
+ function curtain(x, y, h, wave) { ctx.beginPath(); ctx.moveTo(x, y); for (let k = 0; k <= 10; k++) ctx.lineTo(x + 200 + Math.sin(k + wave) * 18, y + h * k / 10); ctx.lineTo(x, y + h); ctx.closePath(); ctx.fillStyle = '#C96B5B'; ctx.fill(); }
15
+ function bolt(x, y, s) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); ctx.beginPath(); ctx.moveTo(10, -120); ctx.lineTo(-50, 10); ctx.lineTo(0, 10); ctx.lineTo(-20, 120); ctx.lineTo(60, -20); ctx.lineTo(10, -20); ctx.closePath(); ctx.fillStyle = '#FFD43B'; ctx.fill(); ctx.lineWidth = 8; ctx.strokeStyle = P.ink; ctx.stroke(); ctx.restore(); }
16
+
17
+ export function buildShots() {
18
+ const S = [], CUES = [], add = (o) => (S.push(o), o), cue = (t, type, o = {}) => CUES.push({ t: +t.toFixed(3), type, ...o });
19
+ const cut = (i) => (i === 0 ? 0 : L(i) - 0.08);
20
+ const blink = (t) => ((t % 3.1) < 0.12 ? 1 : 0);
21
+
22
+ // 1 · a normal evening, phone in hand
23
+ add({ id: 'S01', at: 0, cam: [540, 1100], note: 'evening, hero scrolls phone, looks up', draw(lt, d, t) {
24
+ K.livingRoom({ night: true, lampOn: true });
25
+ const up = lt > d * 0.6;
26
+ K.person({ glow: true, x: 520, y: GROUND, h: 840, mood: up ? 'worried' : 'calm', look: up ? [0.2, -1] : [0.6, 0.6], blink: blink(t), arms: { L: [-6, 14], R: [60, 60] }, hold: (x, y) => K.phone(x + 12, y - 40, 0.55, true) });
27
+ if (up) K.thought(800, 560, 0.9 * eob(seg(lt, d * 0.6, d * 0.6 + 0.25)), () => bolt(800, 545, 0.75), 640, 760);
28
+ } });
29
+ cue(0.2, 'pop', { gain: 0.5 });
30
+
31
+ // 2 · nine at night … everything goes dark
32
+ { const st = cut(1), dark = Wd('dark', 1) - st;
33
+ add({ id: 'S02', at: st, cam: [540, 1000], zoom: 0.1, note: 'lamp on, then BLACKOUT on "dark"', draw(lt, d, t) {
34
+ const off = lt > dark;
35
+ K.livingRoom({ night: true, lampOn: !off });
36
+ if (off) { ctx.fillStyle = 'rgba(5,8,18,0.62)'; ctx.fillRect(-300, -300, W + 600, H + 600); }
37
+ K.person({ glow: true, x: 520, y: GROUND, h: 840, mood: off ? 'scared' : 'calm', look: off ? [Math.sin(lt * 4), -0.3] : [0.5, 0], blink: off ? 0 : blink(t), arms: off ? { L: [-30, 40], R: [-30, 40] } : undefined });
38
+ K.counterPill('9:00 P.M.', 540, 300, eob(seg(lt, 0, 0.25)));
39
+ K.cinemaBars(off ? eo(seg(lt, dark, dark + 0.3)) : 0);
40
+ } });
41
+ cue(st, 'whoosh'); cue(st + dark, 'thud'); cue(st + dark + 0.05, 'whoosh', { gain: 0.6 }); }
42
+
43
+ // 3 · step one: don't touch the fridge
44
+ { const st = cut(2), fr = Wd('fridge', 2) - st;
45
+ add({ id: 'S03', at: st, cam: [400, 1100], note: 'kitchen, hand stops before the fridge', draw(lt, d, t) {
46
+ K.kitchen({ night: true }); ctx.fillStyle = 'rgba(5,8,18,0.35)'; ctx.fillRect(-300, -300, W + 600, H + 600);
47
+ const reach = eio(seg(lt, 0.1, fr)), stop = lt > fr;
48
+ K.person({ glow: true, x: 560, y: GROUND, h: 840, dir: -1, mood: stop ? 'determined' : 'calm', look: [-1, 0], arms: { L: [-6, 12], R: [lerp(10, stop ? 40 : 75, reach), 10] }, blink: blink(t) });
49
+ if (stop) K.cross(260, 760, eob(seg(lt, fr, fr + 0.25)));
50
+ K.stepCard(1, "DON'T OPEN IT", 540, 300, eob(seg(lt, 0.05, 0.3)));
51
+ } });
52
+ cue(st, 'whoosh'); cue(st + 0.05, 'pop'); cue(st + fr, 'boing', { gain: 0.5 }); }
53
+
54
+ // 4 · closed fridge = 4 hours, full freezer = 2 days
55
+ { const st = cut(3), h4 = Wd('four', 3) - st, fz = Wd('freezer', 3) - st;
56
+ add({ id: 'S04', at: st, cam: [300, 1050], zoom: 0.08, note: 'fridge with 4 HOURS and 2 DAYS timers', draw(lt, d, t) {
57
+ K.kitchen({ night: true }); ctx.fillStyle = 'rgba(5,8,18,0.35)'; ctx.fillRect(-300, -300, W + 600, H + 600);
58
+ K.person({ glow: true, x: 640, y: GROUND, h: 840, dir: -1, mood: lt > fz ? 'happy' : 'calm', look: [-1, -0.5], blink: blink(t) });
59
+ K.counterPill('FRIDGE: 4 HOURS', 330, 560, lt > h4 ? eob(seg(lt, h4, h4 + 0.25)) : 0);
60
+ K.counterPill('FREEZER: 2 DAYS', 330, 430, lt > fz ? eob(seg(lt, fz, fz + 0.25)) : 0);
61
+ if (lt > fz + 0.5) K.check(170, 900, eob(seg(lt, fz + 0.5, fz + 0.75)));
62
+ } });
63
+ cue(st, 'whoosh'); cue(st + h4, 'pop'); cue(st + fz, 'pop'); cue(st + fz + 0.5, 'sparkle', { dur: 0.6 }); }
64
+
65
+ // 5 · step two: flashlight, not a candle
66
+ { const st = cut(4), fl = Wd('flashlight', 4) - st, ca = Wd('candle', 4) - st;
67
+ add({ id: 'S05', at: st, cam: [540, 1100], note: 'flashlight beam on; candle gets a red X', draw(lt, d, t) {
68
+ K.livingRoom({ night: true, lampOn: false }); ctx.fillStyle = 'rgba(5,8,18,0.5)'; ctx.fillRect(-300, -300, W + 600, H + 600);
69
+ const on = lt > fl;
70
+ K.person({ glow: true, x: 420, y: GROUND, h: 840, mood: 'determined', look: [1, 0], arms: { L: [-6, 14], R: [80, 10] }, hold: (x, y) => K.flashlight(x + 10, y, 1.2, on, -0.05) });
71
+ K.stepCard(2, 'FLASHLIGHT', 540, 300, eob(seg(lt, 0.05, 0.3)));
72
+ if (lt > ca) { candle(860, 1250, 1, t); K.cross(860, 1020, eob(seg(lt, ca, ca + 0.25)) * 0.9); }
73
+ } });
74
+ cue(st, 'whoosh'); cue(st + 0.05, 'pop'); cue(st + fl, 'tock'); cue(st + ca, 'boing', { gain: 0.5 }); }
75
+
76
+ // 6 · candles are a real fire risk (close-up: candle by a curtain)
77
+ { const st = cut(5);
78
+ add({ id: 'S06', at: st, cam: [540, 1000], zoom: 0.14, note: 'candle flame licks toward the curtain', draw(lt, d, t) {
79
+ ctx.fillStyle = P.nWall; ctx.fillRect(-300, -300, W + 600, H + 600); curtain(380, 200, 1150, t * 2);
80
+ ctx.fillStyle = '#5C4636'; ctx.fillRect(-300, 1380, W + 600, 700);
81
+ candle(560, 1380, 1.6, t); const glow = ctx.createRadialGradient(560, 1070, 10, 560, 1070, 420); glow.addColorStop(0, 'rgba(242,178,62,0.35)'); glow.addColorStop(1, 'rgba(242,178,62,0)'); ctx.fillStyle = glow; ctx.fillRect(0, 600, W, 900);
82
+ K.counterPill('FIRE RISK', 540, 330, eob(seg(lt, 0.2, 0.45)));
83
+ } });
84
+ cue(st, 'whoosh'); cue(st + 0.2, 'alarm', { dur: 1.2, gain: 0.6 }); }
85
+
86
+ // 7 · step three: fill bottles with water
87
+ { const st = cut(6), wt = Wd('water', 6) - st;
88
+ add({ id: 'S07', at: st, cam: [540, 1100], note: 'bottles pop onto the counter one by one', draw(lt, d, t) {
89
+ K.kitchen({ night: true }); ctx.fillStyle = 'rgba(5,8,18,0.3)'; ctx.fillRect(-300, -300, W + 600, H + 600);
90
+ K.person({ glow: true, x: 230, y: GROUND, h: 840, mood: 'happy', look: [1, 0], blink: blink(t) });
91
+ for (let i = 0; i < 6; i++) { const p = seg(lt, 0.3 + i * 0.22, 0.5 + i * 0.22); if (p > 0) K.bottle(470 + i * 95, 1060, eob(p) * 1.05); }
92
+ K.stepCard(3, 'STORE WATER', 540, 300, eob(seg(lt, 0.05, 0.3)));
93
+ } });
94
+ cue(st, 'whoosh'); cue(st + 0.05, 'pop'); for (let i = 0; i < 6; i++) cue(st + 0.32 + i * 0.22, 'plop', { gain: 0.45 }); }
95
+
96
+ // 8 · a gallon per person, per day
97
+ { const st = cut(7);
98
+ add({ id: 'S08', at: st, cam: [540, 1000], zoom: 0.1, note: 'big rule card: 1 gallon / person / day', draw(lt, d, t) {
99
+ ctx.fillStyle = P.wall; ctx.fillRect(-300, -300, W + 600, H + 600);
100
+ K.counterPill('1 GALLON', 540, 520, eob(seg(lt, 0.1, 0.35)) * 1.5);
101
+ K.counterPill('PER PERSON', 540, 720, eob(seg(lt, 0.5, 0.75)) * 1.2);
102
+ K.counterPill('EVERY DAY', 540, 890, eob(seg(lt, 0.9, 1.15)) * 1.2);
103
+ K.person({ x: 280, y: 1560, h: 660, mood: 'happy', look: [1, -0.5] }); K.person({ x: 800, y: 1560, h: 600, mood: 'happy', dir: -1, look: [-1, -0.5], cap: '#E2574C' });
104
+ for (let i = 0; i < 2; i++) K.bottle(450 + i * 180, 1550, 1.3);
105
+ } });
106
+ cue(st + 0.1, 'pop'); cue(st + 0.5, 'pop'); cue(st + 0.9, 'pop'); }
107
+
108
+ // 9 · step four: unplug your electronics
109
+ { const st = cut(8), un = Wd('unplug', 8) - st;
110
+ add({ id: 'S09', at: st, cam: [600, 1200], note: 'hero pulls the TV plug from the socket', draw(lt, d, t) {
111
+ K.livingRoom({ night: true, lampOn: false }); ctx.fillStyle = 'rgba(5,8,18,0.4)'; ctx.fillRect(-300, -300, W + 600, H + 600);
112
+ tv(800, 1250, false); socket(560, 1380);
113
+ const pulled = eio(seg(lt, un, un + 0.4));
114
+ plug(560 - pulled * 90, 1380, pulled < 0.1);
115
+ K.person({ glow: true, x: 330, y: GROUND, h: 840, mood: 'determined', look: [1, 0.8], lean: 18, arms: { L: [-6, 14], R: [lerp(60, 50, pulled), 0] } });
116
+ K.stepCard(4, 'UNPLUG IT', 540, 300, eob(seg(lt, 0.05, 0.3)));
117
+ } });
118
+ cue(st, 'whoosh'); cue(st + 0.05, 'pop'); cue(st + un + 0.1, 'pop', { gain: 0.7 }); }
119
+
120
+ // 10 · a surge can fry them
121
+ { const st = cut(9), sg = Wd('surge', 9) - st;
122
+ add({ id: 'S10', at: st, cam: [540, 1100], zoom: 0.12, note: 'power returns: zap on the TV', draw(lt, d, t) {
123
+ K.livingRoom({ night: true, lampOn: lt > sg }); ctx.fillStyle = 'rgba(5,8,18,0.35)'; ctx.fillRect(-300, -300, W + 600, H + 600);
124
+ tv(560, 1350, false); socket(880, 1380); plug(880, 1380, true);
125
+ if (lt > sg) { const p = seg(lt, sg, sg + 0.6); bolt(560, 1050, eob(clamp(p * 2)) * 1.3); if (Math.floor(lt * 14) % 2 === 0) { ctx.fillStyle = 'rgba(255,240,180,0.25)'; ctx.fillRect(0, 0, W, H); } K.cross(800, 860, eob(seg(lt, sg + 0.3, sg + 0.55)) * 0.8); }
126
+ } });
127
+ cue(st, 'whoosh'); cue(st + sg, 'zip'); cue(st + sg + 0.05, 'slam', { gain: 0.6 }); }
128
+
129
+ // 11 · day three: lights flicker back on
130
+ { const st = cut(10), on = Wd('flicker', 10) - st;
131
+ add({ id: 'S11', at: st, cam: [540, 1050], note: 'DAY 3 card, lamp flickers back on', draw(lt, d, t) {
132
+ const flick = lt > on && (lt > on + 0.8 || Math.floor(lt * 12) % 2 === 0);
133
+ K.livingRoom({ night: true, lampOn: flick }); if (!flick) { ctx.fillStyle = 'rgba(5,8,18,0.55)'; ctx.fillRect(-300, -300, W + 600, H + 600); }
134
+ K.person({ glow: true, x: 520, y: GROUND, h: 840, mood: flick ? 'happy' : 'sleepy', look: [-0.6, -0.8], blink: 0, arms: flick ? { L: [150, 10], R: [150, 10] } : undefined });
135
+ K.counterPill('DAY 3', 540, 300, eob(seg(lt, 0, 0.25)));
136
+ } });
137
+ cue(st, 'whoosh'); cue(st + on, 'tock'); cue(st + on + 0.2, 'tock'); cue(st + on + 0.8, 'sparkle', { dur: 0.8 }); }
138
+
139
+ // 12 · because you were ready, you're totally fine
140
+ { const st = cut(11), fine = Wd('fine', 11) - st;
141
+ add({ id: 'S12', at: st, cam: [540, 1000], zoom: 0.1, note: 'daylight, hero relaxed, big check', draw(lt, d, t) {
142
+ K.livingRoom({}); K.person({ x: 480, y: GROUND, h: 860, mood: 'happy', look: [0, 0], blink: blink(t), arms: { L: [-20, 30], R: [130, 60] } });
143
+ K.check(820, 700, lt > fine - 0.3 ? eob(seg(lt, fine - 0.3, fine)) * 1.3 : 0);
144
+ } });
145
+ cue(st, 'whoosh'); cue(st + fine - 0.3, 'sparkle', { dur: 1 }); }
146
+
147
+ return { shots: S, cues: CUES };
148
+ }
@@ -0,0 +1,122 @@
1
+ // Frame-exact capture through headless Chrome. No npm packages (Node 22+). Run from the project folder.
2
+ // node tools/capture.mjs check boot, list shots + captions, report errors
3
+ // node tools/capture.mjs cues write data/cues.json (the sound cues, for tools/mix.py)
4
+ // node tools/capture.mjs sheet review/all.jpg [step=0.5] [cols=9] contact sheet, a frame every `step` s, time-stamped
5
+ // node tools/capture.mjs frames review/full "1.2,8.4" full-size JPEGs of those times
6
+ // node tools/capture.mjs video renders/out.mp4 [start end] [--draft] the film (30 fps) with data/mix.wav if it exists
7
+ // node tools/capture.mjs preview serve the project and print a URL to watch it in a browser
8
+ // CHROME=/path/to/chrome overrides the browser.
9
+ import { spawn, spawnSync } from 'node:child_process';
10
+ import http from 'node:http';
11
+ import fs from 'node:fs';
12
+ import os from 'node:os';
13
+ import path from 'node:path';
14
+ import { fileURLToPath } from 'node:url';
15
+
16
+ const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
17
+ const FPS = +(process.env.FPS || 30);
18
+ const CHROME = [process.env.CHROME, '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', '/Applications/Chromium.app/Contents/MacOS/Chromium',
19
+ '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge', '/usr/bin/google-chrome', '/usr/bin/google-chrome-stable', '/usr/bin/chromium',
20
+ '/usr/bin/chromium-browser', '/snap/bin/chromium', 'C:/Program Files/Google/Chrome/Application/chrome.exe',
21
+ 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe'].find((p) => p && fs.existsSync(p));
22
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
23
+ const args = process.argv.slice(2), flags = new Set(args.filter((a) => a.startsWith('--')));
24
+ const [mode, ...rest] = args.filter((a) => !a.startsWith('--'));
25
+
26
+ const MIME = { '.html': 'text/html', '.js': 'text/javascript', '.mjs': 'text/javascript', '.json': 'application/json', '.otf': 'font/otf',
27
+ '.ttf': 'font/ttf', '.woff2': 'font/woff2', '.wav': 'audio/wav', '.mp3': 'audio/mpeg', '.png': 'image/png', '.jpg': 'image/jpeg' };
28
+ function serve(port = 0) {
29
+ return new Promise((res) => {
30
+ const srv = http.createServer((req, r) => {
31
+ const u = decodeURIComponent(req.url.split('?')[0]), f = path.join(ROOT, u === '/' ? 'index.html' : u);
32
+ if (!f.startsWith(ROOT) || !fs.existsSync(f) || fs.statSync(f).isDirectory()) { r.writeHead(404); r.end(); return; }
33
+ r.writeHead(200, { 'Content-Type': MIME[path.extname(f)] || 'application/octet-stream', 'Cache-Control': 'no-store' });
34
+ fs.createReadStream(f).pipe(r);
35
+ });
36
+ srv.listen(port, '127.0.0.1', () => res(srv));
37
+ });
38
+ }
39
+
40
+ async function openPage(port) {
41
+ if (!CHROME) throw new Error('Chrome not found: install Google Chrome or set CHROME=/path/to/chrome');
42
+ const prof = fs.mkdtempSync(path.join(os.tmpdir(), 'fs-chrome-'));
43
+ const chrome = spawn(CHROME, ['--headless=new', '--remote-debugging-port=0', `--user-data-dir=${prof}`, '--no-first-run', '--no-default-browser-check',
44
+ '--hide-scrollbars', '--window-size=1080,1920', '--ignore-gpu-blocklist', '--enable-unsafe-swiftshader', ...(process.env.SOFTWARE_GL ? ['--use-angle=swiftshader'] : []), ...(process.getuid?.() === 0 ? ['--no-sandbox'] : []), '--disable-background-timer-throttling', '--disable-renderer-backgrounding', 'about:blank'], { stdio: 'ignore' });
45
+ let dbg;
46
+ for (let i = 0; i < 200 && !dbg; i++) { try { dbg = fs.readFileSync(path.join(prof, 'DevToolsActivePort'), 'utf8').split('\n')[0].trim(); } catch { await sleep(100); } }
47
+ if (!dbg) throw new Error('Chrome did not start');
48
+ const r = await fetch(`http://127.0.0.1:${dbg}/json/new?${encodeURIComponent(`http://127.0.0.1:${port}/index.html?capture=1${process.env.QS || ''}`)}`, { method: 'PUT' });
49
+ const target = await r.json();
50
+ const ws = new WebSocket(target.webSocketDebuggerUrl);
51
+ await new Promise((res, rej) => { ws.onopen = res; ws.onerror = rej; });
52
+ let id = 0; const pend = new Map(), logs = [];
53
+ ws.onmessage = (e) => {
54
+ const m = JSON.parse(e.data);
55
+ if (m.id && pend.has(m.id)) { const p = pend.get(m.id); pend.delete(m.id); m.error ? p.rej(new Error(m.error.message)) : p.res(m.result); }
56
+ else if (m.method === 'Runtime.exceptionThrown') logs.push('EXCEPTION ' + (m.params.exceptionDetails.exception?.description || m.params.exceptionDetails.text));
57
+ else if (m.method === 'Runtime.consoleAPICalled' && m.params.type === 'error') logs.push('ERROR ' + m.params.args.map((a) => a.value ?? a.description).join(' '));
58
+ };
59
+ const send = (method, params = {}) => new Promise((res, rej) => { const i = ++id; pend.set(i, { res, rej }); ws.send(JSON.stringify({ id: i, method, params })); });
60
+ const ev = async (expr) => { const x = await send('Runtime.evaluate', { expression: expr, returnByValue: true, awaitPromise: true }); if (x.exceptionDetails) throw new Error(x.exceptionDetails.exception?.description || x.exceptionDetails.text); return x.result.value; };
61
+ await send('Runtime.enable');
62
+ for (let i = 0; ; i++) {
63
+ const st = await ev('window.OP ? (OP.bootError ? "ERR:" + OP.bootError : OP.ready) : false').catch(() => false);
64
+ if (st === true) break;
65
+ if (typeof st === 'string') throw new Error('boot failed: ' + st + '\n' + logs.join('\n'));
66
+ if (i > 1200) throw new Error('boot timeout\n' + logs.join('\n'));
67
+ await sleep(100);
68
+ }
69
+ const close = () => { try { ws.close(); } catch {} chrome.kill('SIGKILL'); setTimeout(() => { try { fs.rmSync(prof, { recursive: true, force: true }); } catch {} }, 300); };
70
+ return { ev, logs, close };
71
+ }
72
+ const jpg = (d) => Buffer.from(d.slice(d.indexOf(',') + 1), 'base64');
73
+ const FRAME = (t, q, label) => `(() => { const d = OP.frame(${t}, ${q}); ${label ? `const cv = document.getElementById('cv'), c = cv.getContext('2d'); c.setTransform(1,0,0,1,0,0); c.fillStyle = '#000'; c.fillRect(0, 0, 250, 86); c.fillStyle = '#fff'; c.font = '700 60px sans-serif'; c.textAlign = 'left'; c.textBaseline = 'alphabetic'; c.fillText('${(+t).toFixed(2)}', 14, 64); return cv.toDataURL('image/jpeg', ${q});` : 'return d;'} })()`;
74
+
75
+ const srv = await serve(mode === 'preview' ? 8765 : 0), port = srv.address().port;
76
+ if (mode === 'preview') { console.log(`open http://127.0.0.1:${port}/ (Ctrl+C to stop)`); }
77
+ else {
78
+ const P = await openPage(port);
79
+ try {
80
+ const dur = await P.ev('OP.duration()');
81
+ if (mode === 'check') {
82
+ console.log(`duration ${dur.toFixed(2)} s`);
83
+ for (const s of await P.ev('OP.shots()')) console.log(`${s.id.padEnd(5)} ${s.at.toFixed(2).padStart(6)} → ${s.end.toFixed(2).padStart(6)} (${(s.end - s.at).toFixed(2)} s) ${s.note}`);
84
+ console.log('captions:'); for (const c of await P.ev('OP.captions()')) console.log(` ${c.s.toFixed(2).padStart(6)}–${c.e.toFixed(2).padEnd(6)} ${c.text}`);
85
+ let bad = 0; for (let t = 0; t < dur; t += 0.25) { try { await P.ev(`OP.draw(${t})`); } catch (e) { bad++; console.log(`ERROR at ${t.toFixed(2)}: ${e.message.split('\n')[0]}`); } }
86
+ if (P.logs.length) console.log(P.logs.join('\n'));
87
+ console.log(bad || P.logs.length ? 'CHECK FAILED' : 'CHECK OK');
88
+ } else if (mode === 'cues') {
89
+ const cues = await P.ev('OP.cues()');
90
+ fs.mkdirSync(path.join(ROOT, 'data'), { recursive: true });
91
+ fs.writeFileSync(path.join(ROOT, 'data/cues.json'), JSON.stringify({ duration: dur, cues }, null, 1));
92
+ console.log(`data/cues.json: ${cues.length} cues, ${dur.toFixed(2)} s`);
93
+ } else if (mode === 'frames') {
94
+ const dir = path.resolve(ROOT, rest[0] || 'review/frames'); fs.mkdirSync(dir, { recursive: true });
95
+ for (const t of (rest[1] || '0').split(',').map(Number)) { fs.writeFileSync(path.join(dir, `t${t.toFixed(2)}.jpg`), jpg(await P.ev(FRAME(t, 0.92)))); }
96
+ console.log(dir);
97
+ } else if (mode === 'sheet') {
98
+ const out = path.resolve(ROOT, rest[0] || 'review/all.jpg'), step = +(rest[1] || 0.5), cols = +(rest[2] || 9);
99
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'fs-sheet-')); let n = 0;
100
+ for (let t = step / 2; t < dur; t += step) fs.writeFileSync(path.join(tmp, `f${String(n++).padStart(4, '0')}.jpg`), jpg(await P.ev(FRAME(t, 0.8, true))));
101
+ const rows = Math.ceil(n / cols); fs.mkdirSync(path.dirname(out), { recursive: true });
102
+ const r = spawnSync('ffmpeg', ['-v', 'error', '-y', '-framerate', '1', '-i', path.join(tmp, 'f%04d.jpg'), '-vf', `scale=216:384,tile=${cols}x${rows}:padding=4:color=black`, '-frames:v', '1', '-q:v', '3', out]);
103
+ fs.rmSync(tmp, { recursive: true, force: true });
104
+ if (r.status) throw new Error('ffmpeg: ' + r.stderr); console.log(`${out} (${n} frames, every ${step} s)`);
105
+ } else if (mode === 'video') {
106
+ const out = path.resolve(ROOT, rest[0] || 'renders/video.mp4'); fs.mkdirSync(path.dirname(out), { recursive: true });
107
+ const mix = path.join(ROOT, 'data/mix.wav'), hasMix = fs.existsSync(mix), a0 = rest[1] ? +rest[1] : 0, a1 = rest[2] ? Math.min(+rest[2], dur) : dur, n = Math.round((a1 - a0) * FPS);
108
+ const ff = spawn('ffmpeg', ['-v', 'error', '-y', '-f', 'image2pipe', '-framerate', String(FPS), '-i', '-',
109
+ ...(hasMix ? ['-ss', String(a0), '-t', String(a1 - a0), '-i', mix] : ['-f', 'lavfi', '-i', 'anullsrc=r=48000:cl=stereo']), '-map', '0:v', '-map', '1:a',
110
+ '-c:v', 'libx264', '-preset', flags.has('--draft') ? 'ultrafast' : 'veryfast', '-crf', flags.has('--draft') ? '28' : '18', '-pix_fmt', 'yuv420p',
111
+ '-c:a', 'aac', '-b:a', '192k', '-shortest', '-movflags', '+faststart', out], { stdio: ['pipe', 'inherit', 'inherit'] });
112
+ const t0 = Date.now();
113
+ for (let i = 0; i < n; i++) {
114
+ const b = jpg(await P.ev(FRAME(a0 + i / FPS, flags.has('--draft') ? 0.8 : 0.93)));
115
+ if (!ff.stdin.write(b)) await new Promise((r) => ff.stdin.once('drain', r));
116
+ if (i % 150 === 0) process.stdout.write(`\r${i}/${n} frames`);
117
+ }
118
+ ff.stdin.end(); await new Promise((r) => ff.on('close', r));
119
+ console.log(`\r${out} (${n} frames, ${hasMix ? 'with data/mix.wav' : 'SILENT: no data/mix.wav'}, ${((Date.now() - t0) / 1000).toFixed(0)} s)`);
120
+ } else console.log('modes: check · cues · sheet · frames · video · preview');
121
+ } finally { P.close(); srv.close(); }
122
+ }
@@ -0,0 +1,172 @@
1
+ """Inside Out soundtrack: narration + soft procedural sound effects + a quiet music bed, all made here with numpy.
2
+ No samples, no AI audio, no downloads.
3
+
4
+ python3 tools/mix.py [project=.] → data/mix.wav (48 kHz stereo)
5
+
6
+ Reads data/cues.json (node tools/capture.mjs cues), data/narration.wav if it exists (voice.py or words.py --audio),
7
+ and script.json "music": "bed" (the procedural score, default) · "none" · "audio/your-track.mp3" (your own royalty-free
8
+ track, any format ffmpeg reads). The music ducks under the voice.
9
+
10
+ Sound rules (STYLE.md): every effect is soft and rounded, nothing above ~5 kHz, no ticks / hats / glitches / beeps.
11
+ Cue types: whoosh slide pop plop gulp boing bubbles sizzle sparkle thud slam tock zip alarm (+ gain, dur)
12
+ """
13
+ import json, subprocess, sys
14
+ from pathlib import Path
15
+ import numpy as np
16
+ from scipy import signal
17
+ from scipy.io import wavfile
18
+
19
+ P = Path(sys.argv[1] if len(sys.argv) > 1 else '.')
20
+ SR = 48000
21
+ rng = np.random.default_rng(11)
22
+ cj = json.loads((P / 'data/cues.json').read_text())
23
+ script = json.loads((P / 'script.json').read_text())
24
+ DUR = float(cj['duration'])
25
+ N = int(DUR * SR) + SR // 10
26
+
27
+
28
+ def lp(x, f, o=2): b, a = signal.butter(o, min(f, SR / 2 - 100) / (SR / 2), 'low'); return signal.lfilter(b, a, x)
29
+ def hp(x, f, o=2): b, a = signal.butter(o, f / (SR / 2), 'high'); return signal.lfilter(b, a, x)
30
+ def bp(x, f0, f1, o=2): b, a = signal.butter(o, [f0 / (SR / 2), f1 / (SR / 2)], 'band'); return signal.lfilter(b, a, x)
31
+ def db(x): return 10 ** (x / 20)
32
+ def tt(d): return np.arange(int(d * SR)) / SR
33
+ def env(n, a=0.005, r=None):
34
+ """attack a seconds then exponential release over the rest"""
35
+ e = np.ones(n); na = max(1, int(a * SR)); e[:na] = np.linspace(0, 1, na)
36
+ rest = n - na; e[na:] = np.exp(-np.linspace(0, r or 5, rest)) if rest > 0 else 1; return e
37
+ def sweep(f0, f1, d, shape='exp'):
38
+ t = tt(d); f = f0 * (f1 / f0) ** (t / d) if shape == 'exp' else f0 + (f1 - f0) * t / d
39
+ return np.sin(2 * np.pi * np.cumsum(f) / SR)
40
+ def noise(d): return rng.standard_normal(int(d * SR))
41
+
42
+
43
+ # ---------- the effects ----------
44
+ def whoosh(d=0.38, **_):
45
+ n = noise(d); lo, hi = lp(n, 500), lp(n, 2200)
46
+ k = np.sin(np.pi * np.linspace(0, 1, len(n))); x = (lo * (1 - k) + hi * k) * k ** 1.5
47
+ return x / (np.abs(x).max() + 1e-9) * 0.5
48
+ def slide(d=1.0, **_):
49
+ n = lp(noise(d), 700); e = np.sin(np.pi * np.linspace(0, 1, len(n))) ** 2
50
+ return n / (np.abs(n).max() + 1e-9) * e * 0.35 + sweep(260, 120, d) * e * 0.08
51
+ def pop(**_): x = sweep(560, 240, 0.11) * env(int(0.11 * SR), 0.002, 6); return lp(x, 3000) * 0.7
52
+ def plop(**_): x = sweep(700, 180, 0.14) * env(int(0.14 * SR), 0.002, 5); return lp(x, 2500) * 0.6
53
+ def gulp(**_):
54
+ a = sweep(320, 140, 0.16) * env(int(0.16 * SR), 0.01, 4); b = sweep(240, 90, 0.2) * env(int(0.2 * SR), 0.01, 4)
55
+ x = np.concatenate([a, np.zeros(int(0.04 * SR)), b]); return lp(x, 1800) * 0.8
56
+ def boing(**_):
57
+ d = 0.42; t = tt(d); f = 200 * (1 + 0.6 * t / d) * (1 + 0.08 * np.sin(2 * np.pi * 18 * t))
58
+ return lp(np.sin(2 * np.pi * np.cumsum(f) / SR) * env(len(t), 0.004, 4), 2000) * 0.55
59
+ def bubbles(d=2.0, **_):
60
+ x = np.zeros(int(d * SR))
61
+ for _ in range(int(d * 7)):
62
+ st = rng.integers(0, max(1, len(x) - int(0.08 * SR))); f = rng.uniform(380, 900); b = sweep(f, f * 1.6, 0.06) * env(int(0.06 * SR), 0.003, 5)
63
+ x[st:st + len(b)] += b * rng.uniform(0.2, 0.5)
64
+ return lp(x, 2500) * 0.5
65
+ def sizzle(d=1.0, **_):
66
+ n = bp(noise(d), 1800, 4500); crack = (rng.random(len(n)) < 0.002).astype(float); crack = lp(crack, 300) * 40
67
+ e = np.minimum(1, np.linspace(0, 6, len(n))) * np.linspace(1, 0.2, len(n)); return n * (0.4 + crack) * e * 0.12
68
+ def sparkle(d=1.2, **_):
69
+ notes = [784, 880, 1047, 1175, 1319, 1568]; x = np.zeros(int(d * SR) + SR // 2)
70
+ for k, f in enumerate(notes):
71
+ st = int(k * d / len(notes) * SR); n = int(0.4 * SR); t = tt(0.4)
72
+ x[st:st + n] += (np.sin(2 * np.pi * f * t) + 0.3 * np.sin(4 * np.pi * f * t)) * env(n, 0.004, 6) * 0.22
73
+ return lp(x, 4500)
74
+ def thud(**_):
75
+ d = 0.35; t = tt(d); x = np.sin(2 * np.pi * (70 + 40 * np.exp(-t * 30)) * t) * env(len(t), 0.002, 7)
76
+ return x * 0.9 + lp(noise(d), 220) * env(len(t), 0.001, 12) * 0.3
77
+ def slam(**_):
78
+ d = 0.5; t = tt(d); x = np.sin(2 * np.pi * (60 + 60 * np.exp(-t * 25)) * t) * env(len(t), 0.002, 6)
79
+ return np.tanh(1.6 * (x + lp(noise(d), 1200) * env(len(t), 0.001, 10) * 0.6)) * 0.9
80
+ def tock(**_): d = 0.09; t = tt(d); return (np.sin(2 * np.pi * 420 * t) + 0.3 * np.sin(2 * np.pi * 840 * t)) * env(len(t), 0.001, 9) * 0.35
81
+ def zip_(**_):
82
+ d = 0.32; n = bp(noise(d), 400, 3000); k = np.linspace(0, 1, len(n))
83
+ return (n / (np.abs(n).max() + 1e-9) * 0.35 + sweep(300, 1100, d) * 0.12) * np.sin(np.pi * k) ** 1.2
84
+ def alarm(d=2.0, **_):
85
+ x = np.zeros(int(d * SR)); one = np.sin(2 * np.pi * 150 * tt(0.22)) * env(int(0.22 * SR), 0.02, 5)
86
+ for st in np.arange(0, d - 0.25, 0.5): i = int(st * SR); x[i:i + len(one)] += one
87
+ return lp(x, 900) * 0.55
88
+
89
+ def inhale(d=1.0, **_):
90
+ n = bp(noise(d), 300, 2600); k = np.linspace(0, 1, len(n)); e = np.sin(np.pi * np.minimum(1, k * 1.15)) ** 1.5 * (0.6 + 0.4 * k)
91
+ return n / (np.abs(n).max() + 1e-9) * e * 0.5
92
+ def heartbeat(**_):
93
+ one = lambda d, f: np.sin(2 * np.pi * f * tt(d)) * env(int(d * SR), 0.004, 7)
94
+ x = np.concatenate([one(0.16, 58), np.zeros(int(0.09 * SR)), one(0.2, 52) * 0.75]); return lp(x, 300) * 1.0
95
+
96
+ FX = dict(inhale=inhale, heartbeat=heartbeat, whoosh=whoosh, slide=slide, pop=pop, plop=plop, gulp=gulp, boing=boing, bubbles=bubbles, sizzle=sizzle,
97
+ sparkle=sparkle, thud=thud, slam=slam, tock=tock, zip=zip_, alarm=alarm)
98
+ LEVEL = dict(inhale=-15, heartbeat=-8, whoosh=-17, slide=-19, pop=-14, plop=-15, gulp=-11, boing=-15, bubbles=-21, sizzle=-18, sparkle=-17,
99
+ thud=-11, slam=-9, tock=-18, zip=-14, alarm=-17)
100
+
101
+
102
+ # ---------- the music bed: soft pad + plucked arpeggio, 100 BPM, I–vi–IV–V ----------
103
+ def music_bed():
104
+ bpm = 100; beat = 60 / bpm; bar = beat * 4
105
+ chords = [[261.6, 329.6, 392.0], [220.0, 261.6, 329.6], [174.6, 220.0, 261.6], [196.0, 246.9, 293.7]]
106
+ x = np.zeros(N)
107
+ nb = int(np.ceil(DUR / bar)) + 1
108
+ for b in range(nb):
109
+ ch = chords[b % 4]; st = int(b * bar * SR); n = int(bar * SR)
110
+ if st >= N: break
111
+ t = tt(bar); e = np.minimum(1, t / 0.4) * np.minimum(1, (bar - t) / 0.4)
112
+ pad = sum(np.sin(2 * np.pi * f / 2 * t) + 0.25 * np.sin(2 * np.pi * f * t) for f in ch) * e * 0.10
113
+ x[st:st + n] += pad[:max(0, min(n, N - st))]
114
+ for k in range(8): # eighth-note pluck arpeggio
115
+ f = ch[[0, 1, 2, 1, 2, 0, 1, 2][k]] * (2 if k % 4 == 2 else 1); ps = st + int(k * beat / 2 * SR); pn = int(0.5 * SR)
116
+ if ps + pn >= N: continue
117
+ pt = tt(0.5); pl = (np.sin(2 * np.pi * f * pt) + 0.35 * np.sin(4 * np.pi * f * pt)) * env(pn, 0.003, 7) * 0.12
118
+ x[ps:ps + pn] += pl
119
+ x = lp(x, 3200)
120
+ fade = np.ones(N); fo = int(1.2 * SR); fade[-fo:] = np.linspace(1, 0, fo)
121
+ return x / (np.abs(x).max() + 1e-9) * fade
122
+
123
+ def music_tension():
124
+ """low drone + slow minor pulse, for mysterious / tense explainers (script.json "music": "tension")"""
125
+ t = np.arange(N) / SR; x = np.zeros(N)
126
+ for f, g in [(55, 0.5), (82.4, 0.3), (110, 0.2), (130.8, 0.12)]: x += np.sin(2 * np.pi * f * t + np.sin(t * 0.3) * 0.5) * g
127
+ x *= 0.55 + 0.45 * np.sin(2 * np.pi * t / 8) ** 2
128
+ beat = 60 / 84; ping = lambda f: (np.sin(2 * np.pi * f * tt(1.2)) + 0.3 * np.sin(4 * np.pi * f * tt(1.2))) * env(int(1.2 * SR), 0.01, 5)
129
+ seq = [220.0, 261.6, 196.0, 174.6]
130
+ for k in range(int(DUR / (beat * 2))):
131
+ i = int(k * beat * 2 * SR); pg = ping(seq[(k // 2) % 4]) * 0.35
132
+ if i + len(pg) < N: x[i:i + len(pg)] += pg
133
+ x = lp(x, 2200); fade = np.ones(N); fo = int(1.5 * SR); fade[-fo:] = np.linspace(1, 0, fo); fi = int(0.8 * SR); fade[:fi] *= np.linspace(0, 1, fi)
134
+ return x / (np.abs(x).max() + 1e-9) * fade
135
+
136
+ def load_audio(f):
137
+ out = subprocess.run(['ffmpeg', '-v', 'error', '-i', str(f), '-f', 'f32le', '-ac', '2', '-ar', str(SR), '-'], capture_output=True, check=True).stdout
138
+ a = np.frombuffer(out, dtype=np.float32).reshape(-1, 2).astype(np.float64); return a
139
+
140
+
141
+ mix = np.zeros((N, 2))
142
+ # voice
143
+ vf = P / 'data/narration.wav'
144
+ voice = None
145
+ if vf.exists():
146
+ v = load_audio(vf)[:N]; voice = np.zeros((N, 2)); voice[:len(v)] = v
147
+ rms = np.sqrt(np.mean(voice ** 2) + 1e-12); voice *= db(-19) / rms
148
+ mix += voice
149
+ # music
150
+ mus = script.get('music', 'bed')
151
+ if mus and mus != 'none':
152
+ m = music_bed() if mus == 'bed' else music_tension() if mus == 'tension' else None
153
+ if m is None:
154
+ a = load_audio(P / mus)[:N]; m = np.zeros(N); m[:len(a)] = a.mean(1); m /= np.abs(m).max() + 1e-9
155
+ m = np.stack([m, m], 1) * db(-24 if voice is not None else -20)
156
+ if voice is not None: # duck under the voice
157
+ lev = np.abs(voice.mean(1)); lev = signal.lfilter([1 - 0.9995], [1, -0.9995], lev); lev /= lev.max() + 1e-9
158
+ m *= (1 - 0.55 * np.clip(lev * 3, 0, 1))[:, None]
159
+ mix += m
160
+ # effects
161
+ for c in cj['cues']:
162
+ fn = FX.get(c['type'])
163
+ if not fn: print('unknown cue type, skipped:', c['type']); continue
164
+ x = fn(**({'d': c['dur']} if c.get('dur') else {}))
165
+ x = lp(x, 5000) * db(LEVEL[c['type']]) * c.get('gain', 1.0) / (np.abs(x).max() + 1e-9) * 0.9
166
+ i = int(c['t'] * SR); n = min(len(x), N - i)
167
+ if n > 0 and i >= 0: pan = c.get('pan', 0.0); mix[i:i + n, 0] += x[:n] * (1 - max(0, pan)); mix[i:i + n, 1] += x[:n] * (1 + min(0, pan))
168
+ # master: gentle soft-clip, peak -1 dBFS
169
+ mix = np.tanh(mix * 1.2) / 1.2
170
+ mix *= db(-1) / (np.abs(mix).max() + 1e-9)
171
+ wavfile.write(P / 'data/mix.wav', SR, (mix * 32767).astype(np.int16))
172
+ print(f"data/mix.wav: {DUR:.2f} s · voice: {'yes' if voice is not None else 'NO (captions-only)'} · music: {mus} · {len(cj['cues'])} cues")
@@ -0,0 +1,51 @@
1
+ # Tall Tale 3D: funny true stories, 9:16
2
+
3
+ Playful, clever, a little cheeky. Flat 2D cartoon people (thick ink outlines, big round white heads, bean bodies, stick
4
+ limbs) acting inside a sunny, saturated 3D world: small-town streets, wallpapered shops, meadows, trains. The camera moves
5
+ in every shot, faces react on every beat, captions come one word at a time.
6
+ Example: `example/` = **THE GIRL WHO WAS MAILED TO GRANDMA** (1914; 52 s, 21 shots). Sheet: `style-sheet.png`.
7
+
8
+ ## 1. Rules
9
+ - **People are 2D, the world is 3D.** Every person is a `Toon` cut-out that turns to face the camera and casts a real
10
+ shadow. Never build people in 3D; never draw sets flat.
11
+ - **Faces do the acting.** Change the mood on the beat: `smug` when someone's clever, `shock` on the reveal, `laugh` /
12
+ `happy` for the payoff, `worried` + `sweat` for trouble. Blink with `blink(t)`, talk with `talk(t)`.
13
+ - One hat + one neck thing per character; same look all video. Kids: `kid: true` (short legs) and `height: 1.4`.
14
+ - Camera always moving: push-ins, pans, crane-downs, a punch-in on the reveal word. New shot every 1.5-3 s.
15
+ - Bright midday sun outside, warm bulbs inside, pink sunset for endings or flashbacks.
16
+ - Captions: one word at a time (short words pair up: "a single"), white Inter Black with a black edge and soft shadow,
17
+ centre screen (y 1340). No colour highlight. Words keep their punctuation.
18
+ - Story shape: open on the most surprising fact ("they mailed their daughter"), then "See, ..." rewind and explain the
19
+ trick step by step, one picture per clause, short reaction beats, end on a punchline that flips the start.
20
+ - Narration: upbeat storyteller, `am_michael` x1.05. Music `"bounce"` (light comedy). Lots of small sounds: `pop`,
21
+ `plop`, `boing`, `stamp`, `ding`, `chirp`, `chug`, `whoosh` on cuts.
22
+ - True stories only, checked against good sources (museums, encyclopaedias, major outlets) and listed in `script.json`
23
+ "sources". If sources disagree on a number, use the one most of them give and keep the wording simple.
24
+
25
+ ## 2. Engine map (`example/src/`)
26
+ | file | gives you |
27
+ |---|---|
28
+ | `core/engine.js` | `makeEngine` (neutral tone curve, soft shadows, bloom, depth of field, saturation grade), `camera(fov)` |
29
+ | `core/toon.js` | `drawToon(g, look, st)` (2D drawing), `new Toon(look, { height, res })` (3D cut-out: `.at(x,y,z)`, `.set(st)`, `.face(cam)`, `.tint(col)`, `.restyle(patch)`), `PROPS` held in hands |
30
+ | `core/world.js` | sets: `mainStreet(E, { shops, dusk })` (returns `buildings` with each shop's position), `interior(E, { wall, motif, floor, ceiling, view, signText, counterOn })`, `meadow(E, { sunset, fenceOn })`; pieces: `sky, clouds, sunlight, hills, tree, pole, wire, lamp, barrel, crate, car, fence, bunting, signBoard, facade, extras`; painted textures `T.planks/wallpaper/brick/siding/dirt/grass/felt`; `snapshot(E, scene, cam)` renders a set into a texture (window views) |
31
+ | `core/props.js` | `house()` (`.door` opens), `signpost`, `platformScale()` (`.set(lbs)`), `train()` (`.update(t)`), `rails`, `cubbies`, `mailSack`, `parcel`, `desk`, `poster(lines)`, `chickCrate()` |
32
+ | `core/captions.js` | one-word captions, `captionText(text, x, y)` |
33
+
34
+ **Toon look**: `{ body, pattern: plain│check│stripes│overalls│vest│apron│stamps, patCol, hat: none│cap│bowler│boater│beanie│visor│tophat│bun│flower│bow│mailcap, hatCol, band, neck: none│bowtie│tie│scarf│collar, neckCol, dots, extra: [mustache, glasses, freckles, blush, pencil, monocle], kid, stamps }`.
35
+ **Toon state**: `{ mood: neutral│smug│happy│laugh│shock│worried│angry│sad│sly│proud│tired│dizzy, look: [dx, dy], blink, talk,
36
+ sweat, tears, armL / armR: [shoulder°, elbow°] (0 = down, 150 = up), legs: stand│walk│run│sit│jump, phase, lean, bob,
37
+ holdL / holdR: PROPS.x, flip }`. A prop made with arguments (`PROPS.book('RULES', 1)`) needs a `v: 'something'` in the
38
+ state that changes when the prop changes, so the cut-out redraws.
39
+ Positions: people stand at y 0 (boardwalks y 0.18, on a counter y 1.26). Interior counter: x 2.2..3.2, clerk at x 3.55.
40
+
41
+ ## 3. Shot anatomy (see `example/src/shots.js`)
42
+ Build every set once at the top, give each set its own cut-outs, then per shot: place people, `set()` their state from
43
+ `t`, `shoot(scene, people, camFrom, camTo, lookFrom, lookTo, k, LOOK)` (moves the camera, turns everyone to face it,
44
+ renders with depth of field), `blit()`, then any 2D overlay (a RETURN TO SENDER stamp). Cues go on the word
45
+ (`cue(Wd('banned', 17), 'stamp')`).
46
+
47
+ ## 4. QA pitfalls
48
+ - A cut-out seen from the side becomes a sliver: keep the camera within ~60° of facing people (`.face(cam)` handles the rest).
49
+ - People inside furniture: check feet heights (boardwalk 0.18, counter top 1.18 + scale 0.08).
50
+ - Shadows only fall inside the sun's shadow box: move `sun.key.target` near the action when you build a new set.
51
+ - Rendering speed: same as Deep Dive (`SOFTWARE_GL=1 QS='&res=0.6&aa=0&shadow=1024' FPS=24` without a GPU, ≈2-3 s/frame).