@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,106 @@
1
+ // Night File 3D sets: dark places with ONE light source. People are faceless Humans (human.js, face: false) in two looks:
2
+ // witness = near-black with a thin red rim light, subject = solid glowing red (blooms). Each set returns { scene, update(t) }.
3
+ import * as THREE from 'three';
4
+ import { rbox, mesh } from './sdf.js';
5
+
6
+ const std = (color, rough = 0.8, extra = {}) => new THREE.MeshStandardMaterial({ color, roughness: rough, ...extra });
7
+ const box = (w, h, d, m, x, y, z) => { const o = new THREE.Mesh(new THREE.BoxGeometry(w, h, d), m); o.position.set(x, y, z); o.castShadow = o.receiveShadow = true; return o; };
8
+
9
+ /** witness look: dark body, red fresnel rim */
10
+ export function witnessMat() {
11
+ return new THREE.ShaderMaterial({
12
+ uniforms: { uRim: { value: new THREE.Color('#E4322B') }, uBase: { value: new THREE.Color('#07080B') } },
13
+ vertexShader: 'varying vec3 vN; varying vec3 vV; void main(){ vec4 mv = modelViewMatrix * vec4(position, 1.0); vN = normalize(normalMatrix * normal); vV = normalize(-mv.xyz); gl_Position = projectionMatrix * mv; }',
14
+ fragmentShader: 'uniform vec3 uRim, uBase; varying vec3 vN; varying vec3 vV; void main(){ float f = pow(1.0 - max(dot(normalize(vN), normalize(vV)), 0.0), 3.0); gl_FragColor = vec4(uBase + uRim * f * 2.2, 1.0); }',
15
+ });
16
+ }
17
+ /** subject look: glowing ember red */
18
+ export function subjectMat(i = 2.2) { return new THREE.MeshStandardMaterial({ color: '#2A0503', emissive: '#E4322B', emissiveIntensity: i, roughness: 0.6 }); }
19
+ /** a soft visible light cone (fake volumetric) from (x, y, z) pointing down */
20
+ export function lightCone(h = 2.6, r = 1.1, color = '#F1D9A6', a = 0.12) {
21
+ const g = new THREE.ConeGeometry(r, h, 48, 1, true); g.translate(0, -h / 2, 0);
22
+ const m = new THREE.ShaderMaterial({ transparent: true, depthWrite: false, blending: THREE.AdditiveBlending, side: THREE.DoubleSide, uniforms: { uC: { value: new THREE.Color(color) }, uA: { value: a }, uH: { value: h } },
23
+ vertexShader: 'varying float vY; varying vec3 vN; varying vec3 vV; void main(){ vY = position.y; vec4 mv = modelViewMatrix * vec4(position, 1.0); vN = normalize(normalMatrix * normal); vV = normalize(-mv.xyz); gl_Position = projectionMatrix * mv; }',
24
+ fragmentShader: 'uniform vec3 uC; uniform float uA, uH; varying float vY; varying vec3 vN; varying vec3 vV; void main(){ float e = abs(dot(normalize(vN), normalize(vV))); float fade = 1.0 + vY / uH; gl_FragColor = vec4(uC * uA * e * e * fade, 1.0); }' });
25
+ return new THREE.Mesh(g, m);
26
+ }
27
+ function lamp(scene, x, y, z, I = 18) {
28
+ const s = new THREE.SpotLight('#F6DDAE', I, 10, 0.85, 0.6, 1.3); s.position.set(x, y, z); s.target.position.set(x, 0, z); s.castShadow = true; s.shadow.mapSize.set(2048, 2048); s.shadow.bias = -0.0003; s.shadow.radius = 4;
29
+ scene.add(s, s.target); const fix = new THREE.Mesh(new THREE.CylinderGeometry(0.22, 0.26, 0.05, 32), new THREE.MeshBasicMaterial({ color: '#FFF0CF' })); fix.position.set(x, y + 0.02, z); scene.add(fix);
30
+ const c = lightCone(y, 1.35); c.position.set(x, y, z); scene.add(c); return s;
31
+ }
32
+
33
+ /** long apartment corridor, doors both sides, one working ceiling light. o.flicker(t) optional */
34
+ export function corridor() {
35
+ const scene = new THREE.Scene(); scene.background = new THREE.Color('#050608'); scene.fog = new THREE.Fog('#050608', 4, 16);
36
+ const wall = std('#3A4258', 0.85), floorM = std('#262B36', 0.55), doorM = std('#3A3330', 0.6), frameM = std('#1B1E26', 0.7);
37
+ const fl = box(3, 0.1, 22, floorM, 0, -0.05, -8); scene.add(fl);
38
+ scene.add(box(0.1, 3, 22, wall, -1.5, 1.5, -8), box(0.1, 3, 22, wall, 1.5, 1.5, -8), box(3, 0.1, 22, std('#1A1E28'), 0, 3, -8), box(3, 3, 0.1, wall, 0, 1.5, -19));
39
+ for (let i = 0; i < 5; i++) for (const s of [-1, 1]) { const z = -1 - i * 3.4 - (s > 0 ? 1.7 : 0); scene.add(box(0.06, 2.1, 0.95, doorM, s * 1.44, 1.05, z), box(0.08, 2.25, 1.1, frameM, s * 1.47, 1.1, z)); const k = new THREE.Mesh(new THREE.SphereGeometry(0.035, 12, 8), std('#B89A5E', 0.3, { metalness: 0.8 })); k.position.set(s * 1.39, 1.0, z + 0.35); scene.add(k); }
40
+ const end = box(0.95, 2.1, 0.06, doorM, 0, 1.05, -18.94); scene.add(end);
41
+ const L1 = lamp(scene, 0, 2.95, -4.5, 22); const L2 = lamp(scene, 0, 2.95, -11.5, 9);
42
+ scene.add(new THREE.HemisphereLight('#4A5A80', '#0A0C12', 0.7));
43
+ return { scene, lights: [L1, L2], update(t) { L2.intensity = (Math.sin(t * 37) > 0.6 || Math.sin(t * 11.3) > 0.9) ? 1 : 9; } };
44
+ }
45
+ /** a house at night: one lit window, a streetlight, moonlight */
46
+ export function houseNight() {
47
+ const scene = new THREE.Scene(); scene.background = new THREE.Color('#070B14'); scene.fog = new THREE.Fog('#070B14', 8, 30);
48
+ const g = box(40, 0.1, 40, std('#0F141C', 0.95), 0, -0.05, -5); scene.add(g);
49
+ const houseM = std('#2E3850', 0.85); scene.add(box(5, 3, 4, houseM, 0, 1.5, -6));
50
+ const roof = new THREE.Mesh(new THREE.CylinderGeometry(0.01, 3.4, 1.8, 4, 1), std('#151A25', 0.8)); roof.rotation.y = Math.PI / 4; roof.scale.set(1.05, 1, 0.85); roof.position.set(0, 3.9, -6); scene.add(roof);
51
+ const lit = new THREE.Mesh(new THREE.PlaneGeometry(0.9, 0.8), new THREE.MeshBasicMaterial({ color: new THREE.Color('#F4C67A').multiplyScalar(0.85) })); lit.position.set(1.3, 1.7, -3.98); scene.add(lit);
52
+ const dark = new THREE.Mesh(new THREE.PlaneGeometry(0.9, 0.8), std('#0A0D14')); dark.position.set(-1.3, 1.7, -3.98); scene.add(dark);
53
+ scene.add(box(0.9, 1.9, 0.05, std('#120F0E'), -0.1, 0.95, -3.98));
54
+ const wl = new THREE.PointLight('#F4C67A', 6, 6, 1.6); wl.position.set(1.3, 1.7, -3.4); scene.add(wl);
55
+ const pole = box(0.08, 4, 0.08, std('#1C2230'), 3.6, 2, -1.5); scene.add(pole); lamp(scene, 3.1, 3.9, -1.5, 14);
56
+ const moon = new THREE.DirectionalLight('#8FA8E0', 1.4); moon.position.set(-5, 8, 3); scene.add(moon); scene.add(new THREE.HemisphereLight('#2A3A60', '#05070C', 0.7));
57
+ for (let i = 0; i < 7; i++) { const tr = new THREE.Mesh(new THREE.ConeGeometry(0.9, 3 + (i % 3), 8), std('#080B12', 0.9)); tr.position.set(-9 + i * 3 + (i > 2 ? 5 : 0), 1.6 + (i % 3) / 2, -9 - (i % 2) * 2); scene.add(tr); }
58
+ return { scene, update() {} };
59
+ }
60
+ /** a cork case wall with pinned photos (canvas textures) and red string */
61
+ export function caseWall(photos) {
62
+ const scene = new THREE.Scene(); scene.background = new THREE.Color('#0A0806');
63
+ const cork = document.createElement('canvas'); cork.width = cork.height = 512; const c = cork.getContext('2d'); c.fillStyle = '#5A3F2A'; c.fillRect(0, 0, 512, 512); for (let i = 0; i < 5000; i++) { c.fillStyle = `rgba(${Math.random() > 0.5 ? '20,10,5' : '140,100,60'},${Math.random() * 0.25})`; c.fillRect(Math.random() * 512, Math.random() * 512, 2, 2); }
64
+ const ct = new THREE.CanvasTexture(cork); ct.colorSpace = THREE.SRGBColorSpace; ct.wrapS = ct.wrapT = THREE.RepeatWrapping; ct.repeat.set(3, 4);
65
+ const board = new THREE.Mesh(new THREE.PlaneGeometry(4, 5.2), std('#ffffff', 0.95, { map: ct })); board.receiveShadow = true; scene.add(board);
66
+ const pins = [[-1.0, 1.4], [0.9, 1.6], [0.0, 0.2], [-1.1, -1.2], [1.0, -1.0]];
67
+ pins.forEach(([x, y], i) => { const tex = new THREE.CanvasTexture(photos[i % photos.length]); tex.colorSpace = THREE.SRGBColorSpace; const ph = new THREE.Mesh(new THREE.PlaneGeometry(0.9, 1.05), std('#ffffff', 0.6, { map: tex })); ph.position.set(x, y - 0.42, 0.02 + i * 0.002); ph.rotation.z = (i % 2 ? 1 : -1) * 0.06; ph.castShadow = true; scene.add(ph); const pin = new THREE.Mesh(new THREE.SphereGeometry(0.05, 16, 12), std('#D62828', 0.3)); pin.position.set(x, y, 0.06); scene.add(pin); });
68
+ const strM = new THREE.MeshStandardMaterial({ color: '#C21F1F', roughness: 0.6, emissive: '#5A0A0A', emissiveIntensity: 0.6 });
69
+ [[0, 2], [1, 2], [2, 3], [2, 4], [0, 1]].forEach(([a, b]) => { const A = new THREE.Vector3(pins[a][0], pins[a][1], 0.07), Bv = new THREE.Vector3(pins[b][0], pins[b][1], 0.07), mid = A.clone().lerp(Bv, 0.5); mid.z = 0.1; mid.y -= 0.08; scene.add(new THREE.Mesh(new THREE.TubeGeometry(new THREE.QuadraticBezierCurve3(A, mid, Bv), 20, 0.012, 6), strM)); });
70
+ const s = new THREE.SpotLight('#F6DDAE', 30, 10, 0.45, 0.6, 1.3); s.position.set(0.6, 1.4, 4); s.target.position.set(0, 0.2, 0); s.castShadow = true; s.shadow.mapSize.set(2048, 2048); scene.add(s, s.target);
71
+ scene.add(new THREE.HemisphereLight('#3A2A20', '#000000', 0.25));
72
+ return { scene, update() {} };
73
+ }
74
+
75
+ /** 1970s airliner cabin at night: rows of seats, dim window glow, overhead reading lights, a rear door that can open
76
+ * onto a storm. Aisle runs along -z (rear door at z = -14). update(t, { door: 0..1, rain: 0..1, flash }) */
77
+ export function planeCabin() {
78
+ const scene = new THREE.Scene(); scene.background = new THREE.Color('#05060A'); scene.fog = new THREE.Fog('#05060A', 5, 18);
79
+ const shell = new THREE.Mesh(new THREE.CylinderGeometry(1.9, 1.9, 18, 48, 1, true, 0, Math.PI * 2), std('#2B3142', 0.85, { side: THREE.BackSide }));
80
+ shell.rotation.x = Math.PI / 2; shell.position.set(0, 1.05, -6); shell.receiveShadow = true; scene.add(shell);
81
+ scene.add(box(3.4, 0.1, 18, std('#3A2E34', 0.7), 0, -0.05, -6));
82
+ const seatM = std('#3E4A6A', 0.75), headM = std('#D8D2C4', 0.8);
83
+ for (let r = 0; r < 9; r++) for (const s of [-1, 1]) for (const c of [0, 1]) {
84
+ const x = s * (0.55 + c * 0.52), z = -0.4 - r * 1.25; scene.add(box(0.48, 0.45, 0.5, seatM, x, 0.42, z), box(0.48, 0.75, 0.1, seatM, x, 0.95, z - 0.22), box(0.36, 0.14, 0.03, headM, x, 1.25, z - 0.17));
85
+ }
86
+ const winM = new THREE.MeshBasicMaterial({ color: '#1B2A44' });
87
+ for (let r = 0; r < 9; r++) for (const s of [-1, 1]) { const w = new THREE.Mesh(new THREE.PlaneGeometry(0.22, 0.32), winM); w.position.set(s * 1.62, 1.35, -0.4 - r * 1.25); w.rotation.y = -s * Math.PI / 2 + s * 0.35; scene.add(w); }
88
+ scene.add(box(2.6, 0.12, 18, std('#20252F', 0.8), 0, 2.45, -6));
89
+ const doorFrame = box(1.0, 2.0, 0.08, std('#4A4F5E', 0.6), 0, 1.0, -14.2); scene.add(doorFrame);
90
+ const door = box(0.9, 1.9, 0.06, std('#3A3F4C', 0.6), 0, 0.95, -14.15); scene.add(door);
91
+ const storm = new THREE.Mesh(new THREE.PlaneGeometry(0.86, 1.86), new THREE.MeshBasicMaterial({ color: '#1A2440' })); storm.position.set(0, 0.95, -14.17); scene.add(storm);
92
+ const rainG = new THREE.BufferGeometry(), RN = 220, rp = new Float32Array(RN * 6); rainG.setAttribute('position', new THREE.BufferAttribute(rp, 3));
93
+ const rain = new THREE.LineSegments(rainG, new THREE.LineBasicMaterial({ color: '#C9D8F2', transparent: true, opacity: 0.85 })); scene.add(rain);
94
+ const L1 = lamp(scene, 0, 2.38, -2.0, 12), L2 = lamp(scene, 0, 2.38, -5.4, 8), L3 = lamp(scene, 0, 2.38, -8.9, 5);
95
+ scene.add(new THREE.HemisphereLight('#4A5A80', '#0A0C12', 0.55));
96
+ const flashL = new THREE.PointLight('#BFD3FF', 0, 12, 1.2); flashL.position.set(0, 1.2, -14.8); scene.add(flashL);
97
+ const exitL = new THREE.SpotLight('#9FB4E0', 6, 8, 0.7, 0.6, 1.2); exitL.position.set(0, 2.3, -12.2); exitL.target.position.set(0, 0, -14); scene.add(exitL, exitL.target); // dim cold light by the rear door
98
+ return {
99
+ scene, update(t, o = {}) {
100
+ const dk = o.door || 0; door.position.x = dk * 0.95; door.position.z = -14.15 + dk * 0.3; storm.material.color.set(dk > 0.3 ? '#4A5C8E' : '#1A2440');
101
+ const ra = o.rain || 0; rain.visible = ra > 0;
102
+ for (let i = 0; i < RN; i++) { const x = (Math.sin(i * 12.9) * 0.5) * 0.8, y = ((i * 0.37 + t * 9) % 2.2) - 0.1, z = -14.3 - (i % 7) * 0.4; rp.set([x, 2 - y, z, x - 0.06, 2 - y - 0.25, z], i * 6); }
103
+ rainG.attributes.position.needsUpdate = true; flashL.intensity = o.flash ? 40 * o.flash : 0;
104
+ },
105
+ };
106
+ }
@@ -0,0 +1,23 @@
1
+ // Timing: everything on screen is placed on the narration's clock.
2
+ // data/lines.json { duration, lines: [{ i, text, start, end }] } (voice.py, or estimate.py for captions-only)
3
+ // data/words.json [{ w, line, s, e }] (words.py, or estimate.py)
4
+ // L(i) = line i start · Le(i) = line i end · Wd(word, line) = start of the first word in that line matching
5
+ // the prefix (case/punctuation ignored; throws if it isn't there, so a rewritten script can't silently drift).
6
+ export const T = { dur: 0, lines: [], words: [] };
7
+ const norm = (w) => String(w).toLowerCase().replace(/[^a-z0-9'\u0D00-\u0D7F]+/g, '');
8
+
9
+ export async function loadTiming() {
10
+ const get = async (f) => { const r = await fetch(f, { cache: 'no-store' }); if (!r.ok) throw new Error(`missing ${f}: run voice.py + words.py (or estimate.py)`); return r.json(); };
11
+ const lines = await get('data/lines.json'), words = await get('data/words.json');
12
+ T.lines = lines.lines; T.words = words; T.dur = lines.duration;
13
+ return T;
14
+ }
15
+ export const L = (i) => { const l = T.lines[i]; if (!l) throw new Error(`no line ${i}`); return l.start; };
16
+ export const Le = (i) => { const l = T.lines[i]; if (!l) throw new Error(`no line ${i}`); return l.end; };
17
+ export function Wd(word, line, which = 's') {
18
+ const n = norm(word);
19
+ const hit = T.words.find((w) => (line == null || w.line === line) && norm(w.w).startsWith(n));
20
+ if (!hit) throw new Error(`word "${word}" not found${line != null ? ` in line ${line}` : ''}`);
21
+ return hit[which];
22
+ }
23
+ export const lineWords = (i) => T.words.filter((w) => w.line === i);
@@ -0,0 +1,56 @@
1
+ // Boot: fonts → script + timing → 3D engine + sets → captions → shots. draw(t) renders film time t (pure function of t):
2
+ // the shot renders its 3D frame into the hidden WebGL canvas, which is copied onto the 2D canvas, then the 2D layer
3
+ // (labels, counters) and the captions go on top. window.OP is the API tools/capture.mjs drives.
4
+ import { W, H, setCtx, ctx, clamp } from './core/lib.js';
5
+ import { T, loadTiming } from './core/timing.js';
6
+ import { buildCaptions, drawCaption, captionList } from './core/captions.js';
7
+ import { makeEngine, RES, AA } from './core/engine.js';
8
+ import { buildShots } from './shots.js';
9
+
10
+ const cv = document.getElementById('cv'), GL = document.getElementById('gl');
11
+ setCtx(cv.getContext('2d'));
12
+ const OP = (window.OP = { ready: false });
13
+
14
+ function draw(t) {
15
+ t = clamp(t, 0, T.dur - 1e-4);
16
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
17
+ const S = OP._shots; let i = S.length - 1; while (i > 0 && S[i].at > t) i--;
18
+ const sh = S[i], end = i < S.length - 1 ? S[i + 1].at : T.dur, d = end - sh.at, lt = t - sh.at;
19
+ const blit = () => ctx.drawImage(GL, 0, 0, W, H);
20
+ ctx.save(); sh.draw(lt, d, t, blit); ctx.restore();
21
+ ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
22
+ const fade = Math.min(clamp(t / 0.25), clamp((T.dur - t) / 0.4));
23
+ if (fade < 1) { ctx.fillStyle = '#000'; ctx.globalAlpha = 1 - fade; ctx.fillRect(0, 0, W, H); ctx.globalAlpha = 1; }
24
+ drawCaption(t);
25
+ }
26
+
27
+ (async () => {
28
+ try {
29
+ await document.fonts.load('900 100px Inter'); await document.fonts.load('900 100px Inter', 'മലയാളം').catch(() => {}); await document.fonts.load('700 100px FreeMono'); await document.fonts.load('700 100px FreeMono', 'മലയാളം').catch(() => {});
30
+ const script = await (await fetch('script.json', { cache: 'no-store' })).json();
31
+ await loadTiming();
32
+ buildCaptions(script);
33
+ GL.width = Math.round(1080 * RES); GL.height = Math.round(1920 * RES);
34
+ const E = makeEngine(GL, { w: GL.width, h: GL.height, samples: AA });
35
+ const { shots, cues } = buildShots(E);
36
+ shots.sort((a, b) => a.at - b.at);
37
+ OP._shots = shots; OP.script = script;
38
+ OP.duration = () => T.dur;
39
+ OP.draw = draw;
40
+ OP.frame = (t, q = 0.92) => { draw(t); return cv.toDataURL('image/jpeg', q); };
41
+ OP.shots = () => shots.map((s, i) => ({ id: s.id, at: +s.at.toFixed(3), end: +(i < shots.length - 1 ? shots[i + 1].at : T.dur).toFixed(3), note: s.note || '' }));
42
+ OP.captions = () => captionList().map((c) => ({ s: +c.s.toFixed(3), e: +c.e.toFixed(3), text: c.words.map((w) => (w.hi ? '*' : '') + w.txt).join(' ') }));
43
+ OP.cues = () => cues.slice().sort((a, b) => a.t - b.t);
44
+ OP.ready = true;
45
+ const q = new URLSearchParams(location.search);
46
+ if (!q.has('capture')) {
47
+ if (q.has('t')) draw(+q.get('t'));
48
+ else {
49
+ const audio = new Audio('data/mix.wav'); let t0 = null; const btn = document.getElementById('play'); btn.hidden = false;
50
+ btn.onclick = () => { btn.hidden = true; t0 = performance.now(); audio.currentTime = 0; audio.play().catch(() => {}); };
51
+ const loop = (now) => { const t = t0 == null ? 0 : (now - t0) / 1000; draw(t); if (t0 != null && t > T.dur) { t0 = null; btn.hidden = false; } requestAnimationFrame(loop); };
52
+ requestAnimationFrame(loop);
53
+ }
54
+ }
55
+ } catch (e) { OP.bootError = String(e && e.stack || e); console.error(e); }
56
+ })();
@@ -0,0 +1,86 @@
1
+ // The Night File (3D) style sheet: 3D renders from the engine + the 2D evidence inserts and typewriter type.
2
+ import * as THREE from 'three';
3
+ import { ctx, setCtx } from './core/lib.js';
4
+ import { startBoard, panel, frame, cell, small, swatches, rules } from './core/board.js';
5
+ import { makeEngine, camera } from './core/engine.js';
6
+ import { Human } from './core/human.js';
7
+ import * as SETS from './core/sets3d.js';
8
+ import * as K from './core/kit.js';
9
+ const { P } = K;
10
+
11
+ await document.fonts.load('900 40px Inter'); await document.fonts.load('700 40px FreeMono');
12
+ const GL = document.getElementById('gl'), GL2 = document.getElementById('gl2');
13
+ const E = makeEngine(GL), E2 = makeEngine(GL2, { w: 1280, h: 860 });
14
+ const NIGHT = { exposure: 1.05, bloom: 0.85, bloomThreshold: 0.55, vignette: 0.65, grain: 0.05, warm: 0 };
15
+ const cam = camera(32);
16
+ // photos for the case wall, drawn with the 2D kit
17
+ const photo = (kind) => { const c = document.createElement('canvas'); c.width = 360; c.height = 420; const g = c.getContext('2d'); setCtx(g); g.fillStyle = '#D8CFBA'; g.fillRect(0, 0, 360, 420); g.save(); g.translate(180, 210); g.scale(1.5, 1.5); K.polaroid(0, 0, 1, 0, kind); g.restore(); return c; };
18
+ const photos = [photo('dark'), photo('house'), photo('glow'), photo('dark'), photo('house')];
19
+ const B = startBoard(document.getElementById('cv'), { title: 'NIGHT FILE 3D: VIDEO STYLE SHEET', bg: '#0D0F14', line: '#3A2A2C', head: P.cream, accent: P.red });
20
+ const shot = (x, y, w, renderFn, over) => frame(x, y, w, () => { renderFn(); ctx.drawImage(GL, 0, 0); if (over) over(); });
21
+ const wide = (box, renderFn, over) => { renderFn(); B.save(); B.beginPath(); B.roundRect(box.x, box.y, box.w, box.h, 12); B.clip(); B.drawImage(GL2, box.x, box.y, box.w, box.h); B.restore(); setCtx(B); if (over) over(); };
22
+ const person = (kind, look = {}) => { const h = new Human({ face: false, ...look }); h.setAllMaterial(kind === 'subject' ? SETS.subjectMat() : SETS.witnessMat()); return h; };
23
+
24
+ const C = SETS.corridor();
25
+ const subj = person('subject'), wit = person('witness'); C.scene.add(subj.group, wit.group);
26
+
27
+ // 1 · hero frame
28
+ let b = panel(20, 80, 560, 520, 1, 'HERO FRAME');
29
+ shot(b.x + 6, b.y, 240, () => {
30
+ subj.group.position.set(0.1, 0, -6.2); subj.pose({ head: [6, 0, 0] });
31
+ wit.group.position.set(0.75, 0, 0.4); wit.group.rotation.y = Math.PI + 0.25; wit.walk(0.4, 0.5);
32
+ cam.position.set(0.25, 1.55, 2.6); cam.lookAt(0, 1.25, -6); C.update(0.1); E.render(C.scene, cam, { ...NIGHT, focus: 8.8, aperture: 0.0008 });
33
+ }, () => { K.dateStamp('OCT 19, 1994', '2:13 A.M. · 4TH FLOOR', 1, 80, 230); K.captionMono([{ txt: 'Nobody' }, { txt: 'opened', hi: 1 }], 540, K.CAPLOOK.y); K.captionMono([{ txt: 'the' }, { txt: 'door.' }], 540, K.CAPLOOK.y + 105); });
34
+ small('REAL 3D ROOMS,\nONE LIGHT SOURCE', b.x + 270, b.y + 40, 'left', 17);
35
+ small('FACELESS PEOPLE,\nRIM-LIT IN RED', b.x + 270, b.y + 130, 'left', 17);
36
+ small('THE SUBJECT\nGLOWS SOLID RED', b.x + 270, b.y + 220, 'left', 17);
37
+ small('TYPED DATES,\nFILM GRAIN', b.x + 270, b.y + 310, 'left', 17);
38
+
39
+ // 2 · palette + people
40
+ b = panel(590, 80, 660, 520, 2, 'PALETTE & PEOPLE');
41
+ const yy = swatches(b, [['VOID', P.void], ['ROOM', P.room], ['WALL', P.light], ['LAMP', P.beam], ['RED', P.red], ['EMBER', P.redDeep], ['TYPE', P.cream], ['TAPE', P.tape]]);
42
+ {
43
+ const s = new THREE.Scene(); s.background = new THREE.Color('#06070A'); s.fog = new THREE.Fog('#06070A', 5, 12);
44
+ const f = new THREE.Mesh(new THREE.PlaneGeometry(20, 20), new THREE.MeshStandardMaterial({ color: '#1A1E28', roughness: 0.6 })); f.rotation.x = -Math.PI / 2; f.receiveShadow = true; s.add(f);
45
+ const sp = new THREE.SpotLight('#F6DDAE', 40, 10, 0.9, 0.6, 1.2); sp.position.set(0, 4, 2); sp.target.position.set(0, 0, 0); sp.castShadow = true; s.add(sp, sp.target);
46
+ const ppl = [['witness', -1.35, (h) => h.pose({})], ['witness', -0.45, (h) => h.walk(1.1)], ['subject', 0.45, (h) => h.pose({ head: [8, 0, 0] })], ['memory', 1.35, (h) => h.pose({ shR: [20, 0, 10] })]];
47
+ ppl.forEach(([k, x, pose]) => { const h = person(k === 'memory' ? 'subject' : k); if (k === 'memory') h.setAllMaterial(Object.assign(SETS.subjectMat(0.9), { transparent: true, opacity: 0.35 })); h.group.position.x = x; pose(h); s.add(h.group); });
48
+ const c2 = new THREE.PerspectiveCamera(26, 1280 / 860, 0.05, 100); c2.position.set(0, 1.1, 5.4); c2.lookAt(0, 0.95, 0);
49
+ wide({ x: b.x, y: yy + 6, w: b.w, h: 262 }, () => E2.render(s, c2, { ...NIGHT, aperture: 0 }), () => [['WITNESS', 0.13], ['WALKING', 0.38], ['THE SUBJECT', 0.62], ['MEMORY', 0.87]].forEach(([t, fx]) => small(t, b.x + b.w * fx, yy + 255, 'center', 14, '#E9DCCB')));
50
+ small('RED = THE PERSON THE STORY IS ABOUT. NOTHING ELSE IS RED.', b.x + b.w / 2, yy + 300, 'center', 14, '#C9C2B2');
51
+ }
52
+
53
+ // 3 · evidence inserts (2D graphics laid over the 3D)
54
+ b = panel(1260, 80, 640, 520, 3, 'EVIDENCE INSERTS');
55
+ ctx.fillStyle = '#05060A'; ctx.beginPath(); ctx.roundRect(b.x, b.y, b.w, b.h, 14); ctx.fill();
56
+ const gx = (i) => b.x + 80 + i * 158, gy = (r) => b.y + 110 + r * 205, L = '#C9C2B2';
57
+ cell(gx(0) + 40, gy(0), 0.32, () => K.caseFile(0, 0, 1), 'CASE FILE', 100, L);
58
+ cell(gx(2), gy(0), 0.42, () => K.polaroid(0, 0, 1, -0.08, 'glow'), 'POLAROID', 100, L);
59
+ cell(gx(3) - 14, gy(0), 0.42, () => K.clock(0, 0, 1, 2, 13), 'CLOCK', 100, L);
60
+ cell(gx(0), gy(1), 0.35, () => K.cassette(0, 0, 1), 'TAPE', 90, L);
61
+ cell(gx(1), gy(1) + 40, 0.6, () => { K.marker(-50, 0, 0.9, 1); K.marker(60, 0, 0.9, 2); }, 'MARKERS', 50, L);
62
+ cell(gx(2), gy(1), 0.5, () => { ctx.fillStyle = P.paper; ctx.fillRect(-130, -70, 260, 160); K.redacted(-110, -50, [220, 160, 200]); }, 'REDACTED', 90, L);
63
+ cell(gx(3), gy(1), 0.5, () => { K.polaroid(0, 0, 0.8, 0.05, 'house'); K.redCircle(0, -10, 120, 90); }, 'RED CIRCLE', 90, L);
64
+
65
+ // 4 · scenes
66
+ b = panel(20, 610, 760, 456, 4, 'SCENES');
67
+ const sw = 200, sx = (i) => b.x + 20 + i * (sw + 45);
68
+ shot(sx(0), b.y, sw, () => { subj.group.position.set(0, 0, -30); wit.group.position.set(0, 0, -3.2); wit.group.rotation.y = Math.PI; wit.walk(1.4); cam.position.set(0.5, 1.3, 1.8); cam.lookAt(0, 1.1, -6); C.update(0.3); E.render(C.scene, cam, { ...NIGHT, exposure: 1.4, focus: 5, aperture: 0.001 }); });
69
+ const Hs = SETS.houseNight(), s2 = person('subject'); s2.group.position.set(1.4, 0, -1.2); s2.group.rotation.y = Math.PI * 0.85; s2.pose({}); Hs.scene.add(s2.group);
70
+ shot(sx(1), b.y, sw, () => { cam.position.set(-2.2, 1.9, 10.5); cam.lookAt(0.4, 2.3, -5); E.render(Hs.scene, cam, { ...NIGHT, exposure: 1.5, bloom: 0.45, bloomThreshold: 0.8, focus: 10.5, aperture: 0.0008 }); });
71
+ const CW = SETS.caseWall(photos);
72
+ shot(sx(2), b.y, sw, () => { cam.position.set(0.3, 0.1, 9.2); cam.lookAt(0, 0.1, 0); E.render(CW.scene, cam, { ...NIGHT, bloom: 0.4, focus: 9.2, aperture: 0.0008 }); });
73
+ ['(A) THE CORRIDOR', '(B) THE HOUSE', '(C) THE CASE WALL'].forEach((t, i) => small(t, sx(i) + sw / 2, b.y + sw * 16 / 9 + 26, 'center', 15, '#C9C2B2'));
74
+
75
+ // 5 · captions
76
+ b = panel(790, 610, 520, 456, 5, 'CAPTIONS');
77
+ wide({ x: b.x, y: b.y, w: b.w, h: b.h - 10 }, () => { const c3 = new THREE.PerspectiveCamera(32, 1280 / 860, 0.05, 100); c3.position.set(0, 1.5, 1); c3.lookAt(0, 1.4, -8); E2.render(C.scene, c3, { ...NIGHT, focus: 0.5, aperture: 0.01, maxblur: 0.015 }); }, () => {
78
+ [[[{ txt: 'She' }, { txt: 'never' }, { txt: 'came', hi: 1 }, { txt: 'home.' }], 70], [[{ txt: 'The' }, { txt: 'phone', hi: 1 }, { txt: 'rang' }, { txt: 'again.' }], 165], [[{ txt: 'At' }, { txt: '2:13', hi: 1 }, { txt: 'A.M.' }], 260]]
79
+ .forEach(([w, y]) => cell(b.x + b.w / 2, b.y + y, 0.48, () => K.captionMono(w, 0, 0), null));
80
+ cell(b.x + 30, b.y + 312, 0.34, () => K.dateStamp('JUNE 3, 1987', 'MILLBROOK, OHIO', 1, 0, 0), null);
81
+ });
82
+
83
+ // 6 · rules
84
+ b = panel(1320, 610, 580, 456, 6, 'RULES');
85
+ rules(b, ['SLOW: PUSH-INS AND DRIFTS, 3-5 S SHOTS.', 'ONE LIGHT PER SCENE. THE REST IS DARK.', 'NO FACES, NO GORE, NO WEAPONS SHOWN.', 'REAL CASES: CHECKED FACTS, RESPECTFUL.', 'TYPEWRITER CAPTIONS, ONE RED WORD.', 'SOUND: LOW DRONE, ROOM TONE, ONE HIT.', 'MOOD: QUIET, UNEASY, INVESTIGATIVE.'], b.y + 26, 17, 52);
86
+ window.SHEET_READY = true;
@@ -0,0 +1,130 @@
1
+ // THE MAN WHO JUMPED OUT OF A PLANE (D.B. Cooper, 1971) : the shot list (Night File 3D example).
2
+ // Faceless people: witnesses are dark with a red rim, the subject glows solid red. Slow camera, one light per scene.
3
+ import * as THREE from 'three';
4
+ import { ctx, setCtx, W, H, clamp, lerp, seg, eo, eio, eob, rr } from './core/lib.js';
5
+ import { L, Wd, T } from './core/timing.js';
6
+ import { camera } from './core/engine.js';
7
+ import { Human } from './core/human.js';
8
+ import * as SETS from './core/sets3d.js';
9
+ import * as K from './core/kit.js';
10
+
11
+ const V3 = (x, y, z) => new THREE.Vector3(x, y, z), lerpV = (a, b, k) => a.clone().lerp(b, k);
12
+ const NIGHT = { exposure: 1.25, bloom: 0.85, bloomThreshold: 0.55, vignette: 0.6, grain: 0.05, warm: 0 };
13
+ /** paper insert (ticket / note) drawn in 2D */
14
+ function paper(x, y, w, h, rot, lines, sc = 1) {
15
+ if (sc <= 0) return; ctx.save(); ctx.translate(x, y); ctx.rotate(rot); ctx.scale(sc, sc); ctx.shadowColor = 'rgba(0,0,0,0.7)'; ctx.shadowBlur = 40;
16
+ rr(-w / 2, -h / 2, w, h, 6); ctx.fillStyle = K.P.paper; ctx.fill(); ctx.shadowBlur = 0; ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';
17
+ lines.forEach(([txt, size, col, dy]) => { ctx.font = `700 ${size}px FreeMono`; ctx.fillStyle = col || K.P.ink; ctx.fillText(txt, -w / 2 + 40, -h / 2 + dy); });
18
+ ctx.restore();
19
+ }
20
+
21
+ export function buildShots(E) {
22
+ const S = [], CUES = [], add = (o) => (S.push(o), o), cue = (t, type, o = {}) => CUES.push({ t: +t.toFixed(3), type, ...o });
23
+ const cut = (i) => (i === 0 ? 0 : L(i) - 0.1);
24
+ const cam = camera(34);
25
+ const C = SETS.planeCabin(), CW = SETS.caseWall([0, 1, 2].map((k) => { const c = document.createElement('canvas'); c.width = 360; c.height = 420; const g = c.getContext('2d'), prev = ctx; setCtx(g); g.fillStyle = '#D8CFBA'; g.fillRect(0, 0, 360, 420); g.save(); g.translate(180, 210); g.scale(1.5, 1.5); K.polaroid(0, 0, 1, 0, ['glow', 'house', 'dark'][k]); g.restore(); setCtx(prev); return c; }));
26
+ const person = (kind) => { const h = new Human({ face: false }); h.setAllMaterial(kind === 'subject' ? SETS.subjectMat() : SETS.witnessMat()); return h; };
27
+ const cooper = person('subject'), crew = person('witness'); C.scene.add(cooper.group, crew.group);
28
+ const seated = []; [[-1.07, -0.4], [1.07, -1.65], [-0.55, -2.9], [1.07, -4.15], [-1.07, -5.4], [0.55, -6.65]].forEach(([x, z]) => { const h = person('witness'); h.group.position.set(x, 0, z + 0.08); h.hips.position.y = 0.66; h.pose({ hipL: [88, 0, 2], hipR: [88, 0, 2], knL: 88, knR: 88, spine: [-6, 0, 0], shL: [30, 0, 4], shR: [30, 0, 4], elL: 50, elR: 50 }); C.scene.add(h.group); seated.push(h); });
29
+ const sit = (h, x, z) => { h.group.position.set(x, 0, z); h.group.rotation.set(0, 0, 0); h.hips.position.y = 0.66; h.pose({ hipL: [88, 0, 2], hipR: [88, 0, 2], knL: 88, knR: 88, spine: [-4, 0, 0], shL: [30, 0, 4], shR: [30, 0, 4], elL: 55, elR: 55 }); };
30
+ const render = (scene, focusP, extra = {}) => { if (cam.fov !== (extra.fov || 34)) { cam.fov = extra.fov || 34; cam.updateProjectionMatrix(); } E.render(scene, cam, { ...NIGHT, focus: cam.position.distanceTo(focusP), aperture: 0.0012, ...extra }); };
31
+ const hideAll = () => { cooper.group.visible = crew.group.visible = false; seated.forEach((h) => (h.group.visible = true)); C.update(0, {}); };
32
+
33
+ // 1 · the date types on over the dark cabin
34
+ add({ id: 'S01', at: 0, note: 'cabin from the front, date types on', draw(lt, d, t, blit) {
35
+ hideAll(); cam.position.copy(lerpV(V3(0.3, 1.55, 1.8), V3(0.15, 1.5, 0.6), eio(lt / d))); cam.lookAt(0, 1.1, -10); render(C.scene, V3(0, 1, -5)); blit();
36
+ K.dateStamp('NOV 24, 1971', 'FLIGHT 305 · PORTLAND', clamp(lt / 1.6), 80, 300);
37
+ } });
38
+ cue(0.3, 'tock', { gain: 0.4 });
39
+
40
+ // 2 · a quiet man boards (the subject walks up the aisle, glowing)
41
+ { const st = cut(1);
42
+ add({ id: 'S02', at: st, note: 'the subject walks up the aisle toward us', draw(lt, d, t, blit) {
43
+ hideAll(); cooper.group.visible = true; cooper.group.rotation.y = 0; cooper.group.position.set(0, 0, lerp(-7, -3.2, lt / d)); cooper.walk(lt * 5.2, 0.8);
44
+ cam.position.copy(lerpV(V3(0.25, 1.5, 0.4), V3(0.2, 1.45, -0.2), eio(lt / d))); cam.lookAt(0, 1.2, -6); render(C.scene, cooper.group.position.clone().add(V3(0, 1.2, 0))); blit();
45
+ } });
46
+ cue(st, 'whoosh', { gain: 0.5 }); }
47
+
48
+ // 3 · the ticket: DAN COOPER (2D insert over the blurred cabin)
49
+ { const st = cut(2), nm = Wd('cooper', 2) - st;
50
+ add({ id: 'S03', at: st, note: 'paper ticket insert, name circled', draw(lt, d, t, blit) {
51
+ hideAll(); cooper.group.visible = true; sit(cooper, 0.55, -10.1); cam.position.set(0.1, 1.4, -6.5); cam.lookAt(0.5, 0.9, -10); render(C.scene, V3(0, 1, -2), { aperture: 0.01, maxblur: 0.014 }); blit();
52
+ const k = eo(clamp(lt / 0.5)); paper(540, lerp(1100, 860, k), 820, 460, -0.04, [['NORTHWEST ORIENT AIRLINES', 34, K.P.redDeep, 70], ['FLIGHT 305 PDX → SEA', 40, null, 140], ['PASSENGER:', 34, '#6A6458', 230], ['DAN COOPER', 74, null, 320], ['ONE WAY · CASH', 34, '#6A6458', 400]], k);
53
+ if (lt > nm) K.redCircle(540 - 410 + 40 + 190, lerp(1100, 860, k) - 230 + 300, 230, 70, seg(lt, nm, nm + 0.5));
54
+ } });
55
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + nm, 'slide', { dur: 0.5, gain: 0.4 }); }
56
+
57
+ // 4 · he hands the flight attendant a note
58
+ { const st = cut(3), nt = Wd('note', 3) - st;
59
+ add({ id: 'S04', at: st, note: 'attendant stops at his row; the note appears', draw(lt, d, t, blit) {
60
+ hideAll(); cooper.group.visible = crew.group.visible = true; sit(cooper, 0.55, -10.1);
61
+ crew.group.position.set(-0.05, 0, lerp(-8.4, -9.4, eo(clamp(lt / 1.2)))); crew.group.rotation.y = Math.PI * 0.9; crew.pose({ shR: [40, 0, 10], elR: 40, head: [10, 30, 0] });
62
+ cam.position.copy(lerpV(V3(-0.9, 1.6, -6.8), V3(-0.7, 1.55, -7.6), eio(lt / d))); cam.lookAt(0.3, 1.0, -10); render(C.scene, V3(0.3, 1, -9.8)); blit();
63
+ if (lt > nt) paper(540, 520, 560, 300, 0.06, [['TO THE STEWARDESS:', 32, K.P.redDeep, 70], ['████████████████', 34, null, 140], ['████████ ███████', 34, null, 200], ['██████', 34, null, 260]], eob(seg(lt, nt, nt + 0.3)));
64
+ } });
65
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + nt, 'pop', { gain: 0.4 }); }
66
+
67
+ // 5 · $200,000 and four parachutes (case file insert)
68
+ { const st = cut(4), pc = Wd('parachutes', 4) - st;
69
+ add({ id: 'S05', at: st, note: 'case file: the demands type on', draw(lt, d, t, blit) {
70
+ hideAll(); cam.position.set(0, 1.5, -2); cam.lookAt(0, 1.1, -12); render(C.scene, V3(0, 1, 0), { aperture: 0.012, maxblur: 0.016, exposure: 0.9 }); blit();
71
+ K.caseFile(540, 820, 1.25, 'CASE NO. 71-305', 0, -0.03);
72
+ K.dateStamp('$200,000', '4 PARACHUTES', lt > pc ? 1 : clamp(lt / 1.2) * 0.62, 250, 1000);
73
+ } });
74
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + 0.2, 'tock', { gain: 0.4 }); cue(st + pc, 'tock', { gain: 0.4 }); }
75
+
76
+ // 6 · in Seattle, every passenger goes (they fade, he stays)
77
+ { const st = cut(5);
78
+ add({ id: 'S06', at: st, note: 'passengers vanish one by one; the subject stays', draw(lt, d, t, blit) {
79
+ hideAll(); cooper.group.visible = true; sit(cooper, 0.55, -10.1); seated.forEach((h, i) => (h.group.visible = lt < 0.4 + i * (d - 0.6) / 6));
80
+ cam.position.copy(lerpV(V3(0.0, 1.7, 1.2), V3(0.0, 1.6, -1.5), eio(lt / d))); cam.lookAt(0.2, 1.0, -10); render(C.scene, V3(0.5, 1, -10)); blit();
81
+ K.dateStamp('SEATTLE', '7:40 P.M.', clamp(lt / 1.2), 80, 300);
82
+ } });
83
+ cue(st, 'whoosh', { gain: 0.5 }); for (let i = 0; i < 6; i++) cue(st + 0.4 + i * (cut(6) - st - 0.6) / 6, 'tock', { gain: 0.25 }); }
84
+
85
+ // 7 · somewhere over the forests, in the rain (the rear door, lightning)
86
+ { const st = cut(6);
87
+ add({ id: 'S07', at: st, note: 'the rear door: rain, lightning flashes', draw(lt, d, t, blit) {
88
+ hideAll(); seated.forEach((h) => (h.group.visible = false)); const fl = (Math.sin(t * 13) > 0.94 ? 1 : 0) * (lt > 0.6 ? 1 : 0); C.update(t, { door: 0.15, rain: 1, flash: fl });
89
+ cam.position.copy(lerpV(V3(0.0, 1.72, -9.6), V3(0.0, 1.66, -10.4), eio(lt / d))); cam.lookAt(0, 1.0, -14.2); render(C.scene, V3(0, 1, -14.2), { fov: 58, exposure: 1.3 + fl * 0.5 }); blit();
90
+ } });
91
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + 0.6, 'slide', { dur: cut(7) - st - 0.6, gain: 0.6 }); }
92
+
93
+ // 8 · he opens the rear stairs and jumps
94
+ { const st = cut(7), op = Wd('opens', 7) - st, jp = Wd('jumps', 7) - st;
95
+ add({ id: 'S08', at: st, note: 'door opens on "opens"; he is gone on "jumps"', draw(lt, d, t, blit) {
96
+ hideAll(); seated.forEach((h) => (h.group.visible = false)); cooper.group.visible = true;
97
+ const door = eio(seg(lt, op, op + 0.5)), out = eio(seg(lt, jp, jp + 0.35));
98
+ cooper.group.rotation.set(0, Math.PI, 0); cooper.group.position.set(0, -out * 3, lerp(-11.0, -13.7, eio(clamp(lt / jp))) - out * 3); if (out < 0.05) cooper.walk(lt * 4, 0.5);
99
+ C.update(t, { door: Math.max(0.15, door), rain: 1, flash: out > 0 && out < 1 ? 1 : 0 });
100
+ cam.position.copy(lerpV(V3(0.0, 1.72, -9.3), V3(0.0, 1.68, -9.9), eio(lt / d))); cam.lookAt(0, 1.0, -14); render(C.scene, V3(0, 1, -13), { fov: 58 }); blit();
101
+ } });
102
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + op, 'thud', { gain: 0.6 }); cue(st + jp, 'whoosh'); cue(st + jp + 0.05, 'slam', { gain: 0.7 }); }
103
+
104
+ // 9 · never seen again (empty cabin, open door)
105
+ { const st = cut(8);
106
+ add({ id: 'S09', at: st, note: 'empty cabin, door open, rain', draw(lt, d, t, blit) {
107
+ hideAll(); seated.forEach((h) => (h.group.visible = false)); C.update(t, { door: 1, rain: 1 });
108
+ cam.position.copy(lerpV(V3(0, 1.72, -9.6), V3(0, 1.66, -10.6), eio(lt / d))); cam.lookAt(0, 1.0, -14); render(C.scene, V3(0, 1, -14), { fov: 58 }); blit();
109
+ } });
110
+ cue(st, 'slide', { dur: 2, gain: 0.4 }); }
111
+
112
+ // 10 · nine years later: the cash by the river (case wall)
113
+ { const st = cut(9), cs = Wd('cash', 9) - st;
114
+ add({ id: 'S10', at: st, note: 'case wall, 1980 date, red circle', draw(lt, d, t, blit) {
115
+ cam.position.copy(lerpV(V3(0.4, 0.3, 9.5), V3(0.2, 0.2, 7.2), eio(lt / d))); cam.lookAt(0, 0.2, 0); render(CW.scene, V3(0, 0.2, 0), { bloom: 0.4 }); blit();
116
+ K.dateStamp('FEB 10, 1980', 'COLUMBIA RIVER · $5,800', clamp(lt / 1.6), 80, 300);
117
+ if (lt > cs) K.redCircle(540, 1000, 300, 230, seg(lt, cs, cs + 0.6));
118
+ } });
119
+ cue(st, 'whoosh', { gain: 0.5 }); cue(st + 0.2, 'tock', { gain: 0.35 }); }
120
+
121
+ // 11 · still missing: UNSOLVED stamp
122
+ { const st = cut(10), ms = Wd('missing', 10) - st;
123
+ add({ id: 'S11', at: st, note: 'case file slams down, UNSOLVED stamp', draw(lt, d, t, blit) {
124
+ cam.position.set(0.1, 0.1, 6.5); cam.lookAt(0, 0.1, 0); render(CW.scene, V3(0, 0, 0), { bloom: 0.4, aperture: 0.01, maxblur: 0.014, exposure: 0.9 }); blit();
125
+ K.caseFile(540, lerp(1500, 860, eob(seg(lt, 0, 0.45))), 1.3, 'CASE NO. 71-305', lt > ms ? seg(lt, ms, ms + 0.25) : 0, -0.04);
126
+ } });
127
+ cue(st, 'whoosh', { gain: 0.6 }); cue(st + 0.4, 'thud', { gain: 0.5 }); cue(st + ms, 'slam'); }
128
+
129
+ return { shots: S, cues: CUES };
130
+ }
@@ -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
+ }