@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,110 @@
1
+ 0.35 0.55 L0 What
2
+ 0.57 0.80 L0 would
3
+ 0.82 0.99 L0 you
4
+ 1.01 1.15 L0 do
5
+ 1.16 1.30 L0 if
6
+ 1.31 1.49 L0 the
7
+ 1.50 1.73 L0 power
8
+ 1.75 1.96 L0 went
9
+ 1.97 2.15 L0 out
10
+ 2.16 2.33 L0 for
11
+ 2.35 2.58 L0 three
12
+ 2.60 2.83 L0 whole
13
+ 2.85 3.06 L0 days?
14
+ 3.33 3.54 L1 It's
15
+ 3.56 3.81 L1 nine
16
+ 3.83 4.00 L1 at
17
+ 4.01 4.30 L1 night,
18
+ 4.43 4.64 L1 and
19
+ 4.65 5.05 L1 suddenly
20
+ 5.09 5.56 L1 everything
21
+ 5.60 5.85 L1 goes
22
+ 5.87 6.12 L1 dark.
23
+ 6.40 6.64 L2 Step
24
+ 6.66 6.86 L2 one:
25
+ 6.88 7.11 L2 don't
26
+ 7.13 7.40 L2 touch
27
+ 7.43 7.63 L2 the
28
+ 7.64 7.95 L2 fridge.
29
+ 8.24 8.41 L3 If
30
+ 8.43 8.63 L3 you
31
+ 8.65 8.90 L3 keep
32
+ 8.92 9.09 L3 it
33
+ 9.11 9.43 L3 closed,
34
+ 9.56 9.80 L3 your
35
+ 9.83 10.07 L3 food
36
+ 10.09 10.38 L3 stays
37
+ 10.40 10.65 L3 cold
38
+ 10.67 10.88 L3 for
39
+ 10.90 11.18 L3 about
40
+ 11.21 11.45 L3 four
41
+ 11.47 11.76 L3 hours,
42
+ 11.88 12.09 L3 and
43
+ 12.11 12.24 L3 a
44
+ 12.26 12.50 L3 full
45
+ 12.52 12.88 L3 freezer
46
+ 12.91 13.20 L3 lasts
47
+ 13.22 13.43 L3 two
48
+ 13.45 13.70 L3 days.
49
+ 13.98 14.20 L4 Step
50
+ 14.21 14.40 L4 two:
51
+ 14.41 14.63 L4 grab
52
+ 14.65 14.77 L4 a
53
+ 14.78 15.19 L4 flashlight,
54
+ 15.32 15.50 L4 not
55
+ 15.52 15.63 L4 a
56
+ 15.64 15.93 L4 candle.
57
+ 16.21 16.59 L5 Candles
58
+ 16.62 16.84 L5 and
59
+ 16.86 17.11 L5 dark
60
+ 17.13 17.43 L5 rooms
61
+ 17.46 17.67 L5 are
62
+ 17.69 17.83 L5 a
63
+ 17.84 18.10 L5 real
64
+ 18.12 18.38 L5 fire
65
+ 18.40 18.66 L5 risk.
66
+ 18.94 19.18 L6 Step
67
+ 19.20 19.47 L6 three:
68
+ 19.49 19.73 L6 fill
69
+ 19.75 19.99 L6 some
70
+ 20.01 20.35 L6 bottles
71
+ 20.38 20.62 L6 with
72
+ 20.64 20.91 L6 water,
73
+ 21.18 21.45 L7 about
74
+ 21.48 21.60 L7 a
75
+ 21.61 21.92 L7 gallon
76
+ 21.95 22.15 L7 per
77
+ 22.17 22.48 L7 person,
78
+ 22.61 22.88 L7 every
79
+ 22.90 23.10 L7 day.
80
+ 23.38 23.65 L8 Step
81
+ 23.67 23.94 L8 four:
82
+ 23.96 24.31 L8 unplug
83
+ 24.34 24.60 L8 your
84
+ 24.63 25.18 L8 electronics,
85
+ 25.34 25.68 L9 because
86
+ 25.71 25.95 L9 when
87
+ 25.97 26.16 L9 the
88
+ 26.18 26.45 L9 power
89
+ 26.48 26.75 L9 comes
90
+ 26.77 27.01 L9 back,
91
+ 27.13 27.25 L9 a
92
+ 27.27 27.54 L9 surge
93
+ 27.56 27.76 L9 can
94
+ 27.78 27.98 L9 fry
95
+ 27.99 28.23 L9 them.
96
+ 28.51 28.70 L10 Day
97
+ 28.71 28.97 L10 three:
98
+ 28.99 29.18 L10 the
99
+ 29.20 29.49 L10 lights
100
+ 29.52 29.84 L10 flicker
101
+ 29.87 30.09 L10 back
102
+ 30.11 30.27 L10 on.
103
+ 30.54 30.71 L11 And
104
+ 30.73 31.02 L11 because
105
+ 31.04 31.21 L11 you
106
+ 31.23 31.43 L11 were
107
+ 31.45 31.68 L11 ready,
108
+ 31.78 32.02 L11 you're
109
+ 32.03 32.33 L11 totally
110
+ 32.35 32.56 L11 fine.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html><head><meta charset="utf-8"><title>Stick Story</title>
3
+ <style>
4
+ @font-face { font-family: 'Inter'; font-weight: 900; src: url('fonts/Inter-Black.otf'); }
5
+ @font-face { font-family: 'Inter'; font-weight: 800; src: url('fonts/Inter-ExtraBold.otf'); }
6
+ @font-face { font-family: 'Inter'; font-weight: 100 900; src: local('Nirmala UI Bold'), local('NirmalaUI-Bold'), local('Nirmala UI'), local('Noto Sans Malayalam Bold'), local('NotoSansMalayalam-Bold'), local('Noto Sans Malayalam'), local('Malayalam Sangam MN Bold'), local('Malayalam Sangam MN'), local('FreeSans Bold'), local('FreeSansBold'), local('FreeSans'); unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC; } /* Malayalam (AI Insight Shorts) */
7
+ html, body { margin: 0; background: #111; height: 100%; } body { display: flex; align-items: center; justify-content: center; }
8
+ canvas { display: block; height: 100vh; width: auto; } body.capture canvas { height: auto; }
9
+ #play { position: fixed; font: 900 28px Inter, sans-serif; padding: 18px 36px; border: 0; border-radius: 40px; background: #F2B23E; cursor: pointer; }
10
+ </style></head>
11
+ <body><canvas id="cv" width="1080" height="1920"></canvas><button id="play" hidden>▶ PLAY</button>
12
+ <script>if (location.search.includes('capture')) document.body.className = 'capture';</script>
13
+ <script type="module" src="src/main.js"></script></body></html>
@@ -0,0 +1,27 @@
1
+ {
2
+ "title": "What If The Power Went Out For 3 Days?",
3
+ "voice": "am_puck",
4
+ "speed": 1.0,
5
+ "lead": 0.35,
6
+ "outro": 1.0,
7
+ "gap": 0.26,
8
+ "music": "bed",
9
+ "sources": [
10
+ "American Red Cross, Power Outage Safety (fridge keeps food cold ~4 hours if unopened; a full freezer ~48 hours; use flashlights, not candles; disconnect electronics to avoid surge damage)",
11
+ "Ready.gov, Water (store at least one gallon of water per person per day)"
12
+ ],
13
+ "lines": [
14
+ { "text": "What would you do if the power went out for three whole days?", "caps": "What would *you | do if the *power | went *out?" },
15
+ { "text": "It's nine at night, and suddenly everything goes dark.", "caps": "Nine at *night | everything goes *dark." },
16
+ { "text": "Step one: don't touch the fridge.", "caps": "Step *one: | don't touch the *fridge." },
17
+ { "text": "If you keep it closed, your food stays cold for about four hours, and a full freezer lasts two days.", "caps": "Keep it *closed | food stays *cold | about four *hours | a full *freezer | lasts two *days." },
18
+ { "text": "Step two: grab a flashlight, not a candle.", "caps": "Step *two: | grab a *flashlight | not a *candle." },
19
+ { "text": "Candles and dark rooms are a real fire risk.", "caps": "*Candles? | real *fire risk." },
20
+ { "text": "Step three: fill some bottles with water,", "caps": "Step *three: | fill some *bottles | with *water," },
21
+ { "text": "about a gallon per person, every day.", "caps": "a *gallon | per *person, | every *day." },
22
+ { "text": "Step four: unplug your electronics,", "caps": "Step *four: | unplug your *electronics," },
23
+ { "text": "because when the power comes back, a surge can fry them.", "caps": "power comes *back | a *surge | can *fry them." },
24
+ { "text": "Day three: the lights flicker back on.", "caps": "Day *three: | the *lights | flicker back *on." },
25
+ { "text": "And because you were ready, you're totally fine.", "caps": "You were *ready, | so you're *fine." }
26
+ ]
27
+ }
@@ -0,0 +1,10 @@
1
+ <!doctype html>
2
+ <html><head><meta charset="utf-8"><title>Style sheet</title>
3
+ <style>
4
+ @font-face { font-family: 'Inter'; font-weight: 900; src: url('fonts/Inter-Black.otf'); }
5
+ @font-face { font-family: 'Inter'; font-weight: 800; src: url('fonts/Inter-ExtraBold.otf'); }
6
+ @font-face { font-family: 'Inter'; font-weight: 100 900; src: local('Nirmala UI Bold'), local('NirmalaUI-Bold'), local('Nirmala UI'), local('Noto Sans Malayalam Bold'), local('NotoSansMalayalam-Bold'), local('Noto Sans Malayalam'), local('Malayalam Sangam MN Bold'), local('Malayalam Sangam MN'), local('FreeSans Bold'), local('FreeSansBold'), local('FreeSans'); unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC; } /* Malayalam (AI Insight Shorts) */
7
+ html, body { margin: 0; background: #111; } canvas { display: block; max-width: 100vw; height: auto; }
8
+ </style></head>
9
+ <body><canvas id="cv" width="1920" height="1080"></canvas>
10
+ <script type="module" src="src/sheet.js"></script></body></html>
@@ -0,0 +1,62 @@
1
+ // Style-sheet board (1920x1080): the style's look on one page, drawn with the style's OWN kit, so the sheet always
2
+ // matches what renders. Used by sheet.html -> node tools/capture.mjs stylesheet ../style-sheet.png
3
+ import { setCtx } from './lib.js';
4
+
5
+ export const BW = 1920, BH = 1080;
6
+ let B = null; // the board's 2D context
7
+ const off = document.createElement('canvas'); off.width = 1080; off.height = 1920;
8
+ const offCtx = off.getContext('2d');
9
+
10
+ export function startBoard(canvas, { title, author = 'MADE BY YOUR NAME · 2026', bg = '#17181C', line = '#4A4D55', head = '#F2F2F2', accent = '#FFD43B', font = 'Inter' }) {
11
+ B = canvas.getContext('2d'); setCtx(B);
12
+ B.fillStyle = bg; B.fillRect(0, 0, BW, BH);
13
+ B.font = `900 44px ${font}`; B.fillStyle = head; B.textBaseline = 'alphabetic'; B.textAlign = 'left'; B.letterSpacing = '3px';
14
+ B.fillText(title, 24, 52);
15
+ B.font = `800 22px Inter`; B.textAlign = 'right'; B.fillStyle = '#B9BCC4'; B.letterSpacing = '2px'; B.fillText(author, BW - 24, 48);
16
+ B.letterSpacing = '0px';
17
+ board.line = line; board.head = head; board.accent = accent; board.font = font;
18
+ return B;
19
+ }
20
+ export const board = { line: '#444', head: '#fff', accent: '#ff0', font: 'Inter' };
21
+
22
+ /** a numbered panel with its heading; returns the inner content box */
23
+ export function panel(x, y, w, h, n, label) {
24
+ B.strokeStyle = board.line; B.lineWidth = 2; B.strokeRect(x + 0.5, y + 0.5, w, h);
25
+ B.font = `900 30px ${board.font}`; B.fillStyle = board.head; B.textAlign = 'left'; B.letterSpacing = '6px';
26
+ B.fillText(`${n}. ${label}`, x + 18, y + 42); B.letterSpacing = '0px';
27
+ B.strokeStyle = board.line; B.beginPath(); B.moveTo(x + 18, y + 58); B.lineTo(x + w - 18, y + 58); B.stroke();
28
+ return { x: x + 18, y: y + 72, w: w - 36, h: h - 90 };
29
+ }
30
+ /** render a 1080x1920 frame with drawFn (which uses the kit) and place it at x, y, w (height = w * 16/9) */
31
+ export function frame(x, y, w, drawFn) {
32
+ offCtx.setTransform(1, 0, 0, 1, 0, 0); offCtx.globalAlpha = 1; offCtx.clearRect(0, 0, 1080, 1920);
33
+ setCtx(offCtx); offCtx.save(); drawFn(); offCtx.restore(); setCtx(B);
34
+ const h = w * 16 / 9; B.drawImage(off, x, y, w, h);
35
+ B.strokeStyle = board.line; B.lineWidth = 2; B.strokeRect(x, y, w, h);
36
+ return h;
37
+ }
38
+ /** draw a kit component at (cx, cy) scaled by s, with a label under it */
39
+ export function cell(cx, cy, s, drawFn, label, labelY = 90, color = '#3A3640') {
40
+ B.save(); B.translate(cx, cy); B.scale(s, s); drawFn(); B.restore(); setCtx(B);
41
+ if (label) small(label, cx, cy + labelY, 'center', 15, color);
42
+ }
43
+ export function small(text, x, y, align = 'left', size = 17, color = '#D7D9DE') {
44
+ B.font = `800 ${size}px Inter`; B.fillStyle = color; B.textAlign = align; B.letterSpacing = '2px';
45
+ text.split('\n').forEach((l, i) => B.fillText(l, x, y + i * (size + 5))); B.letterSpacing = '0px';
46
+ }
47
+ export function swatches(box, list) {
48
+ const n = list.length, gap = 12, sw = Math.min(78, (box.w - gap * (n - 1)) / n), tw = n * sw + (n - 1) * gap, x0 = box.x + (box.w - tw) / 2;
49
+ list.forEach(([name, hex], i) => {
50
+ const x = x0 + i * (sw + gap); B.fillStyle = hex; B.beginPath(); B.roundRect(x, box.y + 10, sw, sw * 0.9, 8); B.fill();
51
+ B.strokeStyle = 'rgba(255,255,255,0.15)'; B.lineWidth = 1; B.stroke();
52
+ small(name + '\n' + hex.toUpperCase(), x + sw / 2, box.y + sw * 0.9 + 34, 'center', 13);
53
+ });
54
+ return box.y + sw * 0.9 + 80;
55
+ }
56
+ export function rules(box, list, y0 = box.y + 20, size = 19, step = 52) {
57
+ list.forEach((r, i) => {
58
+ B.beginPath(); B.arc(box.x + 18, y0 + i * step - 6, 17, 0, 7); B.strokeStyle = board.head; B.lineWidth = 2; B.stroke();
59
+ small(String(i + 1), box.x + 18, y0 + i * step + 1, 'center', 17, board.head);
60
+ small(r, box.x + 50, y0 + i * step, 'left', size, '#E6E7EA');
61
+ });
62
+ }
@@ -0,0 +1,47 @@
1
+ // Captions: 1-3 words, Inter Black, white with a thick ink outline, ONE yellow word, centre lower third.
2
+ // Each script line has "caps": "WHAT IF *YOU | SWALLOW *GUM?" ("|" = next caption, "*" = the yellow word).
3
+ // Without "caps", the line is chunked automatically (2-3 words, the longest word goes yellow).
4
+ // A chunk appears 0.05 s before its first word and stays until the next chunk (or shortly after the line ends).
5
+ import { ctx, C, clamp, lerp, seg, eob } from './lib.js';
6
+ import { T, lineWords } from './timing.js';
7
+ import { captionBar, CAPLOOK } from './kit.js';
8
+
9
+ export const CAP = { y: 1400, size: 150, maxW: 900 };
10
+ let caps = [];
11
+
12
+ function autoChunks(text) {
13
+ const ws = text.toUpperCase().split(/\s+/).filter(Boolean), out = [];
14
+ for (let i = 0; i < ws.length;) { const n = ws.length - i === 4 ? 2 : Math.min(3, ws.length - i); out.push(ws.slice(i, i + n)); i += n; }
15
+ return out.map((c) => { const k = c.reduce((b, w, j) => (w.replace(/[^A-Z\u0D00-\u0D7F]/g, '').length > c[b].replace(/[^A-Z\u0D00-\u0D7F]/g, '').length ? j : b), 0); return c.map((w, j) => (j === k ? '*' + w : w)).join(' '); });
16
+ }
17
+
18
+ export function buildCaptions(script) {
19
+ caps = [];
20
+ script.lines.forEach((ln, i) => {
21
+ const chunks = (ln.caps ? ln.caps.split('|') : autoChunks(ln.text)).map((s) => s.trim()).filter(Boolean);
22
+ const ws = lineWords(i); if (!ws.length) return;
23
+ const counts = chunks.map((c) => c.split(/\s+/).length), N = counts.reduce((a, b) => a + b, 0);
24
+ const nm = (w) => String(w).toLowerCase().replace(/[^a-z0-9'\u0D00-\u0D7F]+/g, '');
25
+ let acc = 0, from = 0;
26
+ chunks.forEach((c, j) => {
27
+ // find the chunk's first word in the spoken line (from where the last chunk started); else place it by word count
28
+ const first = nm(c.split(/\s+/)[0]);
29
+ let idx = j === 0 ? 0 : ws.findIndex((w, k) => k > from && first && (nm(w.w) === first || (first.length > 2 && nm(w.w).startsWith(first))));
30
+ if (idx < 0) idx = Math.max(from + (j ? 1 : 0), Math.min(ws.length - 1, Math.round(acc * ws.length / N)));
31
+ acc += counts[j]; from = idx;
32
+ caps.push({ line: i, s: ws[idx].s - 0.05, words: c.split(/\s+/).map((w) => ({ txt: w.replace('*', ''), hi: w.startsWith('*') })) });
33
+ });
34
+ });
35
+ caps.forEach((c, k) => {
36
+ const next = caps[k + 1], lineEnd = T.lines[c.line].end;
37
+ c.e = next ? (next.s - lineEnd > 0.7 && next.line !== c.line ? lineEnd + 0.35 : next.s) : T.dur;
38
+ });
39
+ return caps;
40
+ }
41
+ export const captionList = () => caps;
42
+
43
+ export function drawCaption(t) {
44
+ const c = caps.find((c) => t >= c.s && t < c.e); if (!c) return;
45
+ const lt = t - c.s, sc = lt < 0.18 ? lerp(0.7, 1, eob(seg(lt, 0, 0.18))) : 1;
46
+ captionBar(c.words, 540, CAPLOOK.y, sc);
47
+ }
@@ -0,0 +1,166 @@
1
+ // Stick Story: the COMPONENT ZOO. Black stick people with eyes that act, flat illustrated rooms, gold step cards.
2
+ import { ctx, W, H, TAU, lerp, clamp, rnd, rr, circle, ell, line } from './lib.js';
3
+
4
+ export const P = {
5
+ wall: '#EFE6D6', wallShade: '#E2D5BE', floor: '#C99F7A', floorDark: '#B48A66', base: '#F7F1E6',
6
+ ink: '#1C1C22', gold: '#F2B23E', goldDark: '#C98A1C', navy: '#22304A', red: '#E2574C', green: '#6DB36A',
7
+ sky: '#A9D3E8', white: '#FFFFFF', wood: '#9C6B48', sofa: '#5E7FA3', sofaDark: '#4C6A8C', rug: '#D9826B', plant: '#6E9E5B',
8
+ // night versions
9
+ nWall: '#2C3348', nWallShade: '#252B3D', nFloor: '#3B3446', nFloorDark: '#322C3C', nSky: '#16213A', lamp: '#FFD98A',
10
+ };
11
+ export const FLOOR = 1350; // where the wall meets the floor in every room
12
+ export const GROUND = 1560; // where people stand
13
+
14
+ // ═════════════════════════ STICK PERSON ═════════════════════════
15
+ const rad = (d) => d * Math.PI / 180;
16
+ function limb(x, y, len1, a1, len2, a2, dir, w) { // angles in degrees from straight down, + = toward facing dir
17
+ const k = [x + Math.sin(rad(a1)) * len1 * dir, y + Math.cos(rad(a1)) * len1];
18
+ const e = [k[0] + Math.sin(rad(a1 + a2)) * len2 * dir, k[1] + Math.cos(rad(a1 + a2)) * len2];
19
+ line([[x, y], k, e], P.ink, w); return e;
20
+ }
21
+ /**
22
+ * A stick person standing on (x, y). o = { h (height px, default 520), dir (1 faces right, -1 left), walk (phase, rad: animates
23
+ * legs + arms), arms: { L: [shoulder, elbow], R: [...] } (deg, 0 = down, + = forward), legs: { L: [hip, knee], R: [...] },
24
+ * look: [x, y] pupils -1..1, mood: 'calm' | 'happy' | 'worried' | 'scared' | 'determined' | 'sleepy', lean (deg),
25
+ * hold: (x, y) => draw a prop at the FRONT hand, blink: 0..1, cap: colour of a cap (optional) }
26
+ */
27
+ export function person(o) {
28
+ const h = o.h || 520, d = o.dir || 1, w = h * 0.034, wk = o.walk;
29
+ const hipY = o.y - h * 0.46, shY = o.y - h * 0.77, r = h * 0.105;
30
+ ctx.save(); if (o.glow) ctx.filter = `drop-shadow(0px 0px ${Math.round(h * 0.014)}px rgba(255,226,170,0.95))`; ctx.translate(o.x, hipY); ctx.rotate(rad((o.lean || 0) * d)); ctx.translate(-o.x, -hipY);
31
+ const sw = wk != null ? Math.sin(wk) : 0;
32
+ const legs = o.legs || { L: [wk != null ? sw * 26 : 6, wk != null ? Math.max(0, -sw) * 30 + 6 : 4], R: [wk != null ? -sw * 26 : -6, wk != null ? Math.max(0, sw) * 30 + 6 : 4] };
33
+ const arms = o.arms || { L: [wk != null ? -sw * 24 : -8, 12], R: [wk != null ? sw * 24 : 10, 16] };
34
+ // back limbs first
35
+ limb(o.x, hipY, h * 0.25, legs.L[0], h * 0.23, -legs.L[1] * 1.0, d, w);
36
+ limb(o.x, shY + h * 0.02, h * 0.17, arms.L[0], h * 0.16, arms.L[1], d, w);
37
+ line([[o.x, hipY], [o.x, shY]], P.ink, w * 1.15); // spine
38
+ const footR = limb(o.x, hipY, h * 0.25, legs.R[0], h * 0.23, -legs.R[1], d, w);
39
+ const hand = limb(o.x, shY + h * 0.02, h * 0.17, arms.R[0], h * 0.16, arms.R[1], d, w);
40
+ circle(hand[0], hand[1], w * 0.9, P.ink);
41
+ if (o.hold) o.hold(hand[0], hand[1]);
42
+ // head
43
+ const hx = o.x + d * r * 0.08, hy = shY - r * 1.12;
44
+ if (o.cap) { ctx.beginPath(); ctx.arc(hx, hy - r * 0.15, r * 1.04, Math.PI, TAU); ctx.fillStyle = o.cap; ctx.fill(); }
45
+ circle(hx, hy, r, P.ink);
46
+ if (o.cap) { ctx.beginPath(); ctx.arc(hx, hy - r * 0.1, r * 1.03, Math.PI * 1.05, Math.PI * 1.95); ctx.lineWidth = r * 0.32; ctx.strokeStyle = o.cap; ctx.stroke(); rr(hx + d * r * 0.3 - (d < 0 ? r * 0.9 : 0), hy - r * 0.62, r * 0.9, r * 0.2, r * 0.1); ctx.fillStyle = o.cap; ctx.fill(); }
47
+ ctx.filter = 'none'; face(hx + d * r * 0.22, hy, r, d, o);
48
+ ctx.restore();
49
+ }
50
+ function face(fx, fy, r, d, o) {
51
+ const m = o.mood || 'calm', lk = o.look || [d * 0.3, 0], blink = o.blink || 0;
52
+ const big = m === 'scared' ? 1.22 : 1, ex = r * 0.3, ey = -r * 0.05;
53
+ for (const s of [-1, 1]) {
54
+ const cx = fx + s * ex, cy = fy + ey;
55
+ if (m === 'happy') { ctx.beginPath(); ctx.arc(cx, cy + r * 0.06, r * 0.17, Math.PI * 1.1, Math.PI * 1.9); ctx.strokeStyle = P.white; ctx.lineWidth = r * 0.09; ctx.lineCap = 'round'; ctx.stroke(); continue; }
56
+ const ry = r * 0.3 * big * (1 - blink * 0.92) * (m === 'sleepy' ? 0.45 : 1);
57
+ ell(cx, cy, r * 0.22 * big, Math.max(1, ry), P.white);
58
+ if (blink < 0.6) circle(cx + lk[0] * r * 0.08, cy + lk[1] * r * 0.1 + (m === 'sleepy' ? r * 0.04 : 0), r * (m === 'scared' ? 0.08 : 0.12), P.ink);
59
+ }
60
+ ctx.strokeStyle = P.white; ctx.lineWidth = r * 0.08; ctx.lineCap = 'round';
61
+ if (m === 'worried' || m === 'scared') for (const s of [-1, 1]) { ctx.beginPath(); ctx.moveTo(fx + s * ex - r * 0.2, fy - r * 0.42 + (s > 0 ? -r * 0.08 : 0)); ctx.lineTo(fx + s * ex + r * 0.2, fy - r * 0.42 + (s > 0 ? 0 : -r * 0.08)); ctx.stroke(); }
62
+ if (m === 'determined') for (const s of [-1, 1]) { ctx.beginPath(); ctx.moveTo(fx + s * ex - r * 0.2 * s, fy - r * 0.5); ctx.lineTo(fx + s * ex + r * 0.2 * s, fy - r * 0.38); ctx.stroke(); }
63
+ // mouth
64
+ ctx.beginPath();
65
+ if (m === 'happy') ctx.arc(fx, fy + r * 0.38, r * 0.2, 0.15 * Math.PI, 0.85 * Math.PI);
66
+ else if (m === 'scared') { ell(fx, fy + r * 0.5, r * 0.1, r * 0.13, P.white); return; }
67
+ else if (m === 'worried') { ctx.moveTo(fx - r * 0.14, fy + r * 0.52); ctx.quadraticCurveTo(fx, fy + r * 0.42, fx + r * 0.14, fy + r * 0.52); }
68
+ else { ctx.moveTo(fx - r * 0.12, fy + r * 0.47); ctx.lineTo(fx + r * 0.12, fy + r * 0.47); }
69
+ ctx.stroke();
70
+ }
71
+ /** a big face close-up (head fills the frame): same face, huge */
72
+ export function bigHead(x, y, r, o = {}) { circle(x, y, r, P.ink); face(x + (o.dir || 1) * r * 0.1, y, r, o.dir || 1, o); }
73
+
74
+ // ═════════════════════════ ROOMS (full 1080x1920 frames) ═════════════════════════
75
+ const pal = (night) => night ? { wall: P.nWall, shade: P.nWallShade, floor: P.nFloor, floorD: P.nFloorDark, sky: P.nSky } : { wall: P.wall, shade: P.wallShade, floor: P.floor, floorD: P.floorDark, sky: P.sky };
76
+ function shell(night) {
77
+ const c = pal(night);
78
+ ctx.fillStyle = c.wall; ctx.fillRect(-300, -300, W + 600, FLOOR + 300);
79
+ ctx.fillStyle = c.shade; ctx.fillRect(-300, FLOOR - 70, W + 600, 70);
80
+ ctx.fillStyle = night ? '#4A4254' : P.base; ctx.fillRect(-300, FLOOR - 20, W + 600, 20);
81
+ ctx.fillStyle = c.floor; ctx.fillRect(-300, FLOOR, W + 600, H - FLOOR + 300);
82
+ ctx.strokeStyle = c.floorD; ctx.lineWidth = 6; for (let y = FLOOR + 90; y < H + 300; y += 110) { ctx.beginPath(); ctx.moveTo(-300, y); ctx.lineTo(W + 300, y); ctx.stroke(); }
83
+ return c;
84
+ }
85
+ export function windowPane(x, y, w, h, night) {
86
+ rr(x - 16, y - 16, w + 32, h + 32, 14); ctx.fillStyle = night ? '#4A4254' : P.white; ctx.fill();
87
+ rr(x, y, w, h, 8); ctx.fillStyle = pal(night).sky; ctx.fill();
88
+ if (night) { circle(x + w * 0.7, y + h * 0.3, 40, '#F4EBC8'); for (let i = 0; i < 8; i++) circle(x + rnd(i) * w, y + rnd(i + 4) * h * 0.7, 3, '#F4EBC8'); }
89
+ else { ell(x + w * 0.3, y + h * 0.3, 60, 24, P.white); ell(x + w * 0.38, y + h * 0.26, 40, 26, P.white); }
90
+ ctx.fillStyle = night ? '#4A4254' : P.white; ctx.fillRect(x + w / 2 - 7, y, 14, h); ctx.fillRect(x, y + h / 2 - 7, w, 14);
91
+ }
92
+ export function couch(x, y, s = 1, night) {
93
+ ctx.save(); ctx.translate(x, y); ctx.scale(s, s);
94
+ rr(-300, -230, 600, 160, 40); ctx.fillStyle = night ? '#3E5070' : P.sofaDark; ctx.fill();
95
+ rr(-330, -120, 660, 120, 30); ctx.fillStyle = night ? '#4A5E82' : P.sofa; ctx.fill();
96
+ rr(-360, -180, 90, 180, 30); ctx.fillStyle = night ? '#3E5070' : P.sofaDark; ctx.fill(); rr(270, -180, 90, 180, 30); ctx.fill();
97
+ ctx.fillStyle = P.ink; ctx.fillRect(-300, 0, 20, 30); ctx.fillRect(280, 0, 20, 30);
98
+ ctx.restore();
99
+ }
100
+ export function lamp(x, y, on = true, night) {
101
+ if (on && night) { ctx.save(); ctx.globalAlpha = 0.18; ctx.beginPath(); ctx.moveTo(x - 60, y - 400); ctx.lineTo(x + 60, y - 400); ctx.lineTo(x + 260, y); ctx.lineTo(x - 260, y); ctx.closePath(); ctx.fillStyle = P.lamp; ctx.fill(); ctx.restore(); }
102
+ line([[x, y], [x, y - 400]], P.ink, 10); ell(x, y, 60, 12, P.ink);
103
+ ctx.beginPath(); ctx.moveTo(x - 50, y - 400); ctx.lineTo(x + 50, y - 400); ctx.lineTo(x + 80, y - 500); ctx.lineTo(x - 80, y - 500); ctx.closePath(); ctx.fillStyle = on ? P.lamp : '#C9BFA9'; ctx.fill();
104
+ }
105
+ export function frameArt(x, y, w, h, night) { rr(x, y, w, h, 6); ctx.fillStyle = P.ink; ctx.fill(); rr(x + 12, y + 12, w - 24, h - 24, 3); ctx.fillStyle = night ? '#5A5470' : '#F3C97A'; ctx.fill(); ctx.beginPath(); ctx.moveTo(x + 12, y + h - 12); ctx.lineTo(x + w * 0.4, y + h * 0.45); ctx.lineTo(x + w * 0.6, y + h * 0.65); ctx.lineTo(x + w * 0.75, y + h * 0.5); ctx.lineTo(x + w - 12, y + h - 12); ctx.fillStyle = night ? '#3F3A55' : P.rug; ctx.fill(); }
106
+ export function plant(x, y) { for (const [dx, dy, r] of [[-30, -90, -0.5], [0, -120, 0], [30, -90, 0.5], [-15, -150, -0.2], [20, -155, 0.25]]) ell(x + dx, y + dy, 28, 70, P.plant, r); rr(x - 60, y - 40, 120, 130, 16); ctx.fillStyle = P.wood; ctx.fill(); }
107
+ export function door(x, y, label, open = 0, night) {
108
+ rr(x - 150, y - 560, 300, 560, [16, 16, 0, 0]); ctx.fillStyle = night ? '#1A1F2C' : '#7A5236'; ctx.fill();
109
+ ctx.save(); ctx.translate(x - 130, 0); ctx.scale(1 - open * 0.75, 1); rr(0, y - 540, 260, 540, [10, 10, 0, 0]); ctx.fillStyle = night ? '#5B4A3E' : '#A8754E'; ctx.fill();
110
+ rr(30, y - 500, 200, 200, 8); ctx.strokeStyle = night ? '#4A3C33' : '#8E6142'; ctx.lineWidth = 8; ctx.stroke(); rr(30, y - 260, 200, 200, 8); ctx.stroke();
111
+ circle(225, y - 270, 14, P.gold); ctx.restore();
112
+ if (label) { rr(x - 50, y - 640, 100, 56, 10); ctx.fillStyle = P.ink; ctx.fill(); ctx.font = '900 34px Inter'; ctx.fillStyle = P.white; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(label, x, y - 611); }
113
+ }
114
+ export function fridge(x, y) { rr(x - 140, y - 620, 280, 620, 24); ctx.fillStyle = '#E9EEF2'; ctx.fill(); ctx.fillStyle = '#C9D2DA'; ctx.fillRect(x - 140, y - 400, 280, 10); rr(x + 90, y - 560, 16, 120, 8); ctx.fillStyle = '#9AA6B2'; ctx.fill(); rr(x + 90, y - 360, 16, 160, 8); ctx.fill(); }
115
+ export function counter(x, y, w) { ctx.fillStyle = '#7E5A41'; ctx.fillRect(x, y - 300, w, 300); ctx.fillStyle = '#D9CDBA'; ctx.fillRect(x - 20, y - 330, w + 40, 34); for (let i = 0; i < Math.floor(w / 160); i++) { rr(x + 20 + i * 160, y - 270, 130, 230, 10); ctx.strokeStyle = '#6A4A34'; ctx.lineWidth = 8; ctx.stroke(); circle(x + 85 + i * 160, y - 150, 9, P.gold); } }
116
+
117
+ /** living room. o = { night, lampOn } */
118
+ export function livingRoom(o = {}) { const n = !!o.night; shell(n); windowPane(600, 360, 360, 420, n); frameArt(110, 420, 260, 190, n); lamp(140, FLOOR + 40, o.lampOn ?? true, n); couch(560, FLOOR + 120, 0.95, n); plant(960, FLOOR + 40); rr(170, FLOOR + 230, 760, 70, 35); ctx.fillStyle = n ? '#5B3F4A' : P.rug; ctx.fill(); }
119
+ export function kitchen(o = {}) { const n = !!o.night; shell(n); windowPane(470, 380, 300, 320, n); fridge(170, FLOOR + 60); counter(330, FLOOR + 60, 700); }
120
+ export function hallway(o = {}) { const n = !!o.night; shell(n); door(270, FLOOR + 40, o.a || '4A', o.openA || 0, n); door(810, FLOOR + 40, o.b || '4B', o.openB || 0, n); ell(540, 120, 120, 26, n ? '#3A3550' : '#D8CDB6'); }
121
+
122
+ // ═════════════════════════ PROPS ═════════════════════════
123
+ export function phone(x, y, s = 1, msg = null) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-60, -110, 120, 220, 22); ctx.fillStyle = P.ink; ctx.fill(); rr(-50, -96, 100, 180, 12); ctx.fillStyle = msg ? '#DDEBF7' : '#3B4A63'; ctx.fill(); if (msg) { rr(-42, -70, 84, 40, 12); ctx.fillStyle = P.white; ctx.fill(); rr(-30, -18, 72, 40, 12); ctx.fillStyle = '#4A90E2'; ctx.fill(); } ctx.restore(); }
124
+ export function bottle(x, y, s = 1) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-26, -110, 52, 120, 16); ctx.fillStyle = '#9FD3EC'; ctx.fill(); rr(-14, -132, 28, 26, 6); ctx.fillStyle = '#3F7FB5'; ctx.fill(); ctx.fillStyle = '#3F7FB5'; ctx.fillRect(-26, -70, 52, 30); ctx.restore(); }
125
+ export function can(x, y, s = 1) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-36, -90, 72, 100, 10); ctx.fillStyle = '#B8BEC6'; ctx.fill(); ctx.fillStyle = P.red; ctx.fillRect(-36, -70, 72, 56); ctx.fillStyle = P.white; ctx.fillRect(-20, -50, 40, 14); ctx.restore(); }
126
+ export function flashlight(x, y, s = 1, on = true, ang = 0) {
127
+ ctx.save(); ctx.translate(x, y); ctx.rotate(ang); ctx.scale(s, s);
128
+ if (on) { ctx.save(); ctx.globalAlpha = 0.28; ctx.beginPath(); ctx.moveTo(60, -20); ctx.lineTo(600, -160); ctx.lineTo(600, 160); ctx.lineTo(60, 20); ctx.closePath(); ctx.fillStyle = P.lamp; ctx.fill(); ctx.restore(); }
129
+ rr(-60, -18, 110, 36, 10); ctx.fillStyle = '#3B4152'; ctx.fill(); rr(40, -26, 30, 52, 6); ctx.fillStyle = '#596075'; ctx.fill(); ctx.restore();
130
+ }
131
+ export function backpack(x, y, s = 1) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); rr(-80, -180, 160, 190, 40); ctx.fillStyle = '#D9824A'; ctx.fill(); rr(-60, -80, 120, 70, 16); ctx.fillStyle = '#B9683A'; ctx.fill(); ctx.beginPath(); ctx.arc(0, -180, 40, Math.PI, TAU); ctx.lineWidth = 12; ctx.strokeStyle = '#B9683A'; ctx.stroke(); ctx.restore(); }
132
+
133
+ // ═════════════════════════ GRAPHICS ═════════════════════════
134
+ /** gold step card: number disc + label. sc = pop scale */
135
+ export function stepCard(n, label, x, y, sc = 1) {
136
+ if (sc <= 0) return; ctx.save(); ctx.translate(x, y); ctx.scale(sc, sc);
137
+ ctx.font = '900 64px Inter'; const tw = ctx.measureText(label).width, w = tw + 230;
138
+ rr(-w / 2 + 8, -82, w, 180, 34); ctx.fillStyle = 'rgba(0,0,0,0.25)'; ctx.fill();
139
+ rr(-w / 2, -90, w, 180, 34); ctx.fillStyle = P.gold; ctx.fill();
140
+ circle(-w / 2 + 95, 0, 62, P.navy); ctx.fillStyle = P.gold; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.font = '900 80px Inter'; ctx.fillText(String(n), -w / 2 + 95, 4);
141
+ ctx.fillStyle = P.navy; ctx.font = '900 64px Inter'; ctx.textAlign = 'left'; ctx.fillText(label, -w / 2 + 180, 4);
142
+ ctx.restore();
143
+ }
144
+ export function check(x, y, s = 1) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); circle(0, 0, 70, P.green); ctx.beginPath(); ctx.moveTo(-32, 2); ctx.lineTo(-8, 28); ctx.lineTo(36, -24); ctx.strokeStyle = P.white; ctx.lineWidth = 18; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.stroke(); ctx.restore(); }
145
+ export function cross(x, y, s = 1) { ctx.save(); ctx.translate(x, y); ctx.scale(s, s); circle(0, 0, 70, P.red); ctx.beginPath(); ctx.moveTo(-28, -28); ctx.lineTo(28, 28); ctx.moveTo(28, -28); ctx.lineTo(-28, 28); ctx.strokeStyle = P.white; ctx.lineWidth = 18; ctx.lineCap = 'round'; ctx.stroke(); ctx.restore(); }
146
+ export function counterPill(text, x, y, sc = 1) { if (sc <= 0) return; ctx.save(); ctx.translate(x, y); ctx.scale(sc, sc); ctx.font = '900 54px Inter'; const w = ctx.measureText(text).width + 70; rr(-w / 2, -45, w, 90, 45); ctx.fillStyle = P.navy; ctx.fill(); ctx.fillStyle = P.gold; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(text, 0, 3); ctx.restore(); }
147
+ /** thought bubble at (x, y) with an icon drawn inside by inner(x, y) */
148
+ export function thought(x, y, s, inner, tx, ty) {
149
+ ctx.save(); circle(tx, ty, 14 * s, P.white); circle(lerp(tx, x, 0.45), lerp(ty, y, 0.45) + 20 * s, 22 * s, P.white);
150
+ ctx.translate(x, y); ctx.scale(s, s); for (const [dx, dy, r] of [[-90, 10, 80], [0, -30, 100], [95, 5, 85], [0, 45, 90]]) circle(dx, dy, r, P.white);
151
+ ctx.restore(); if (inner) inner(x, y);
152
+ }
153
+ /** cinema bars for dramatic beats (a 0..1) */
154
+ export function cinemaBars(a) { if (a <= 0) return; const h = 170 * a; ctx.fillStyle = P.ink; ctx.fillRect(-300, -300, W + 600, h + 300); ctx.fillRect(-300, H - h, W + 600, h + 300); }
155
+
156
+ // ═════════════════════════ CAPTION LOOK (used by captions.js and the sheet) ═════════════════════════
157
+ export const CAPLOOK = { font: '800 92px Inter', y: 1690, maxW: 920, fg: P.white, hi: P.gold, box: 'rgba(28,28,34,0.86)' };
158
+ /** draw one caption: words [{txt, hi}] centred at (x, y) on a dark rounded bar */
159
+ export function captionBar(words, x, y, sc = 1, look = CAPLOOK) {
160
+ ctx.save(); ctx.translate(x, y); ctx.scale(sc, sc); ctx.font = look.font; ctx.textBaseline = 'middle'; ctx.textAlign = 'left';
161
+ const sp = 26, ws = words.map((w) => ctx.measureText(w.txt).width), tw = ws.reduce((a, b) => a + b, 0) + sp * (words.length - 1);
162
+ const fit = Math.min(1, (look.maxW || 960) / (tw + 80)); ctx.scale(fit, fit);
163
+ rr(-tw / 2 - 40, -72, tw + 80, 144, 30); ctx.fillStyle = look.box; ctx.fill();
164
+ let cx = -tw / 2; words.forEach((w, i) => { ctx.fillStyle = w.hi ? look.hi : look.fg; ctx.fillText(w.txt, cx, 4); cx += ws[i] + sp; });
165
+ ctx.restore();
166
+ }
@@ -0,0 +1,44 @@
1
+ // Inside Out engine: canvas, palette, math and drawing primitives.
2
+ // Every drawing function in the kit uses the shared `ctx` exported here (set once by main.js).
3
+ export const W = 1080, H = 1920, FPS = 30;
4
+ export let ctx = null;
5
+ export function setCtx(c) { ctx = c; }
6
+
7
+ // The style sheet palette. Only these (plus the derived shades) appear on screen.
8
+ export const C = {
9
+ skin: '#E8B89A', pink: '#E57A8A', red: '#D62839', cyan: '#4FD1E8', yellow: '#FFD43B', bg: '#F4F1EA',
10
+ // derived shades (darker / lighter tones of the palette, used for flat shading)
11
+ pinkLight: '#F29AA7', pinkDark: '#C9566E', skinShade: '#D49C7E', navy: '#0E1A2B', xnavy: '#0B2238',
12
+ hair: '#3B2A20', hairHi: '#5A4030', shirt: '#3A7BD5', shirtShade: '#2F67BE', pants: '#1F2A44', pantsShade: '#18213A',
13
+ ink: '#1A1A1E', mouth: '#6B2A2A', gum: '#F7F4EE', gumEdge: '#C9C2B5', white: '#FFFFFF',
14
+ stomachBg: '#B83A55', stomachBgDark: '#A3304A', stomachFold: '#D4637C', floor: '#E4DCCB', sky: '#BFE3F2',
15
+ leaf: '#5BAE6A', pot: '#C8734A', watch: '#1E2A44',
16
+ };
17
+
18
+ // ---------- math ----------
19
+ export const clamp = (v, a = 0, b = 1) => Math.max(a, Math.min(b, v));
20
+ export const lerp = (a, b, t) => a + (b - a) * t;
21
+ export const seg = (t, a, b) => clamp((t - a) / ((b - a) || 1e-6));
22
+ export const eo = (t) => 1 - Math.pow(1 - t, 3);
23
+ export const eio = (t) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2);
24
+ export const eob = (t) => { const c1 = 1.70158, c3 = c1 + 1; return 1 + c3 * Math.pow(t - 1, 3) + c1 * Math.pow(t - 1, 2); };
25
+ export const rnd = (i) => { const x = Math.sin(i * 127.1 + 311.7) * 43758.5453; return x - Math.floor(x); };
26
+ export const TAU = Math.PI * 2;
27
+
28
+ // ---------- primitives ----------
29
+ export function rr(x, y, w, h, r) { ctx.beginPath(); ctx.roundRect(x, y, w, h, r); }
30
+ export function circle(x, y, r, fill) { ctx.beginPath(); ctx.arc(x, y, r, 0, TAU); ctx.fillStyle = fill; ctx.fill(); }
31
+ export function ell(x, y, rx, ry, fill, rot = 0) { ctx.beginPath(); ctx.ellipse(x, y, rx, ry, rot, 0, TAU); ctx.fillStyle = fill; ctx.fill(); }
32
+ export function line(pts, color, w) {
33
+ ctx.beginPath(); ctx.moveTo(pts[0][0], pts[0][1]);
34
+ for (let i = 1; i < pts.length; i++) ctx.lineTo(pts[i][0], pts[i][1]);
35
+ ctx.strokeStyle = color; ctx.lineWidth = w; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.stroke();
36
+ }
37
+ export function fillAll(color) { ctx.fillStyle = color; ctx.fillRect(-300, -300, W + 600, H + 600); }
38
+ /** outlined bold text (the caption look), centred at x, y */
39
+ export function bigText(text, x, y, size, fill = C.white, rot = 0, sc = 1) {
40
+ ctx.save(); ctx.translate(x, y); ctx.rotate(rot); ctx.scale(sc, sc);
41
+ ctx.font = `900 ${size}px Inter`; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.lineJoin = 'round';
42
+ ctx.lineWidth = size * 0.2; ctx.strokeStyle = C.ink; ctx.strokeText(text, 0, 0); ctx.fillStyle = fill; ctx.fillText(text, 0, 0);
43
+ ctx.restore();
44
+ }
@@ -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,62 @@
1
+ // Boot: fonts → script + timing → captions → shots. Then draw(t) renders film time t (pure function of t).
2
+ // window.OP is the API tools/capture.mjs drives: ready, bootError, duration(), draw(t), frame(t, q), cues(), shots().
3
+ import { W, H, setCtx, ctx, clamp, eo, eio } from './core/lib.js';
4
+ import { T, loadTiming } from './core/timing.js';
5
+ import { buildCaptions, drawCaption, captionList } from './core/captions.js';
6
+ import { buildShots } from './shots.js';
7
+
8
+ const cv = document.getElementById('cv');
9
+ setCtx(cv.getContext('2d'));
10
+ const OP = (window.OP = { ready: false });
11
+
12
+ function draw(t) {
13
+ t = clamp(t, 0, T.dur - 1e-4);
14
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
15
+ ctx.fillStyle = '#000'; ctx.fillRect(0, 0, W, H);
16
+ const S = OP._shots; let i = S.length - 1; while (i > 0 && S[i].at > t) i--;
17
+ const sh = S[i], end = i < S.length - 1 ? S[i + 1].at : T.dur, d = end - sh.at, lt = t - sh.at;
18
+ // camera: punch-in on the cut + a slow push across the shot ("camera always moving")
19
+ const punch = 1 + 0.06 * (1 - eo(clamp(lt / 0.25)));
20
+ const drift = 1 + (sh.zoom ?? 0.06) * eio(clamp(lt / d));
21
+ const [cx, cy] = sh.cam || [540, 900];
22
+ ctx.save(); ctx.translate(cx, cy); ctx.scale(punch * drift, punch * drift); ctx.translate(-cx, -cy);
23
+ sh.draw(lt, d, t);
24
+ ctx.restore();
25
+ ctx.globalAlpha = 1; ctx.letterSpacing = '0px';
26
+
27
+ // fade from / to black on the first and last 0.25 s
28
+ const fade = Math.min(clamp(t / 0.25), clamp((T.dur - t) / 0.35));
29
+ if (fade < 1) { ctx.fillStyle = '#000'; ctx.globalAlpha = 1 - fade; ctx.fillRect(0, 0, W, H); ctx.globalAlpha = 1; }
30
+ drawCaption(t);
31
+ }
32
+
33
+ (async () => {
34
+ try {
35
+ await document.fonts.load('900 100px Inter'); await document.fonts.load('900 100px Inter', 'മലയാളം').catch(() => {});
36
+ const script = await (await fetch('script.json', { cache: 'no-store' })).json();
37
+ await loadTiming();
38
+ buildCaptions(script);
39
+ const { shots, cues } = buildShots();
40
+ shots.sort((a, b) => a.at - b.at);
41
+ OP._shots = shots; OP.script = script;
42
+ OP.duration = () => T.dur;
43
+ OP.draw = draw;
44
+ OP.frame = (t, q = 0.92) => { draw(t); return cv.toDataURL('image/jpeg', q); };
45
+ 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 || '' }));
46
+ 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(' ') }));
47
+ OP.cues = () => cues.slice().sort((a, b) => a.t - b.t);
48
+ OP.ready = true;
49
+ // preview mode (not capture): play in real time, ?t=12.3 to hold a frame
50
+ const q = new URLSearchParams(location.search);
51
+ if (!q.has('capture')) {
52
+ if (q.has('t')) draw(+q.get('t'));
53
+ else {
54
+ const audio = new Audio('data/mix.wav'); let t0 = null;
55
+ const btn = document.getElementById('play'); btn.hidden = false;
56
+ btn.onclick = () => { btn.hidden = true; t0 = performance.now(); audio.currentTime = 0; audio.play().catch(() => {}); };
57
+ const loop = (now) => { const t = t0 == null ? 0 : (now - t0) / 1000; draw(t0 == null ? 0 : t); if (t0 != null && t > T.dur) { t0 = null; btn.hidden = false; } requestAnimationFrame(loop); };
58
+ requestAnimationFrame(loop);
59
+ }
60
+ }
61
+ } catch (e) { OP.bootError = String(e && e.stack || e); console.error(e); }
62
+ })();