@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,554 @@
1
+ <meta charset="utf-8">
2
+ <title>Clean Tech</title>
3
+ <meta name="claude:viewport-fit-sides" content="cover">
4
+ <link rel="preconnect" href="https://fonts.googleapis.com">
5
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Anton&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;600;700;800&display=block">
7
+ <style>
8
+ /* Layout: an editing-suite player. One dark look by choice: the stage, then the transport bar under it. */
9
+ :root {
10
+ color-scheme: dark;
11
+ --bg: #0b0b0d;
12
+ --panel: #141417;
13
+ --ink: #f2f0ea;
14
+ --dim: #8d8c93;
15
+ --line: #26262c;
16
+ --accent: #ffd60a;
17
+ --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
18
+ --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
19
+ --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
20
+ }
21
+ html, body { height: 100%; }
22
+ body {
23
+ background: var(--bg); color: var(--ink); font-family: var(--body);
24
+ padding-left: max(16px, env(safe-area-inset-left, 0px));
25
+ padding-right: max(16px, env(safe-area-inset-right, 0px));
26
+ padding-block: 20px 28px;
27
+ }
28
+ .wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
29
+ .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
30
+ .name { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.02em; text-transform: uppercase; margin: 0; line-height: 1; }
31
+ .name em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--accent); letter-spacing: 0; font-size: 1.12em; }
32
+ .meta { color: var(--dim); font-size: 14px; margin: 0; }
33
+ .stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
34
+ .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
35
+ .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
36
+ .bar button, .bar label.btn {
37
+ font: 600 14px var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line);
38
+ border-radius: 7px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
39
+ }
40
+ .bar button:hover, .bar label.btn:hover { border-color: var(--dim); }
41
+ .bar button:focus-visible, .bar label.btn:focus-within, #scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
42
+ .bar button[aria-pressed="true"] { background: var(--accent); color: #0b0b0d; border-color: var(--accent); }
43
+ #play { min-width: 82px; justify-content: center; background: var(--ink); color: #0b0b0d; border-color: var(--ink); }
44
+ #scrub { flex: 1 1 220px; min-width: 0; accent-color: var(--accent); }
45
+ #time { font: 600 14px var(--body); font-variant-numeric: tabular-nums; color: var(--dim); min-width: 92px; text-align: right; }
46
+ #vofile { position: absolute; width: 1px; height: 1px; opacity: 0; }
47
+ .note { color: var(--dim); font-size: 13px; margin: 0; max-width: 70ch; }
48
+ </style>
49
+
50
+ <div class="wrap">
51
+ <div class="top">
52
+ <h1 class="name">Clean <em>Tech</em></h1>
53
+ <p class="meta">Reference animation · 20.0 s · drawn in code, sound synthesized</p>
54
+ </div>
55
+ <div class="stage"><canvas id="stage" width="1280" height="720" aria-label="Clean Tech reference animation"></canvas></div>
56
+ <div class="bar">
57
+ <button id="play" type="button">Play</button>
58
+ <input id="scrub" type="range" min="0" max="20" step="0.01" value="0" aria-label="Scrub timeline">
59
+ <span id="time">0.00 / 20.00</span>
60
+ <button id="sound" type="button" aria-pressed="true">Sound on</button>
61
+ <button id="loop" type="button" aria-pressed="true">Loop</button>
62
+ <label class="btn" for="vofile">Load voiceover<input id="vofile" type="file" accept="audio/*"></label>
63
+ </div>
64
+ <p class="note" id="vonote">Load a voiceover to play it in sync. The effects switch to a lighter mix under narration.</p>
65
+ </div>
66
+
67
+ <script>
68
+ // =====================================================================================================
69
+ // CREATOR MOTION GRAPHICS · core helpers (CM), sound kit (SFX), style, player
70
+ // Every frame is a pure function of t. All randomness is seeded. Times are seconds.
71
+ // =====================================================================================================
72
+ const CM = (() => {
73
+ const clamp = (v, a = 0, b = 1) => (v < a ? a : v > b ? b : v);
74
+ const lerp = (a, b, u) => a + (b - a) * u;
75
+ const span = (t, a, b) => clamp((t - a) / (b - a));
76
+ const rotl = (x, k) => (x << k) | (x >>> (32 - k));
77
+ const hash = (s) => { s = String(s); let h = 0x9e3779b1; for (let i = 0; i < s.length; i++) { h = Math.imul(h ^ s.charCodeAt(i), 0x85ebca6b); h ^= h >>> 13; } return h >>> 0; };
78
+ // xoshiro128** style generator, seeded from a number or string
79
+ const rng = (seed) => {
80
+ const s = typeof seed === 'number' ? seed >>> 0 : hash(seed);
81
+ let a = (s ^ 0xa5a5a5a5) >>> 0, b = (Math.imul(s, 0x27d4eb2d) >>> 0) || 1, c = (0x165667b1 ^ s) >>> 0, d = (rotl(s, 7) >>> 0) || 7;
82
+ const r = () => { const res = Math.imul(rotl(Math.imul(b, 5), 7), 9) >>> 0; const t = b << 9; c ^= a; d ^= b; b ^= c; a ^= d; c ^= t; d = rotl(d, 11); return res / 4294967296; };
83
+ for (let i = 0; i < 8; i++) r();
84
+ r.in = (lo, hi) => lo + r() * (hi - lo);
85
+ r.pick = (arr) => arr[(r() * arr.length) | 0];
86
+ return r;
87
+ };
88
+ // smooth 1D value noise, roughly -1..1
89
+ const noise1 = (seed) => { const r = rng(seed), v = Float32Array.from({ length: 256 }, () => r() * 2 - 1); return (x) => { const i = Math.floor(x), f = x - i, u = f * f * (3 - 2 * f); return lerp(v[i & 255], v[(i + 1) & 255], u); }; };
90
+ const ez = {
91
+ out3: (u) => 1 - Math.pow(1 - u, 3),
92
+ in3: (u) => u * u * u,
93
+ inout3: (u) => (u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2),
94
+ outExpo: (u) => (u >= 1 ? 1 : 1 - Math.pow(2, -10 * u)),
95
+ back: (u, s = 1.7) => (u <= 0 ? 0 : u >= 1 ? 1 : 1 + (s + 1) * Math.pow(u - 1, 3) + s * Math.pow(u - 1, 2)),
96
+ spring: (u) => (u <= 0 ? 0 : u >= 1 ? 1 : 1 - Math.exp(-6 * u) * Math.cos(13 * u)),
97
+ };
98
+ const layer = (w, h) => { const c = document.createElement('canvas'); c.width = w; c.height = h; return c; };
99
+ return { clamp, lerp, span, hash, rng, noise1, ez, layer };
100
+ })();
101
+
102
+ // =====================================================================================================
103
+ // SFX: synthesized creator-edit sound kit. Plain Web Audio, no files.
104
+ // voiceover mode keeps the music low under narration and plays sounds marked `soft` at 55%.
105
+ // =====================================================================================================
106
+ const SFX = (() => {
107
+ const SEMI = { C: -9, D: -7, E: -5, F: -4, G: -2, A: 0, B: 2 };
108
+ const hz = (n) => { if (typeof n === 'number') return n; const m = /^([A-G])(#|b)?(-?\d)$/.exec(n); return 440 * Math.pow(2, (SEMI[m[1]] + (m[2] === '#' ? 1 : m[2] === 'b' ? -1 : 0) + (+m[3] - 4) * 12) / 12); };
109
+
110
+ function kit(ac, o = {}) {
111
+ const VO = !!o.voiceover, SR = ac.sampleRate, T0 = o.from || 0, base = ac.currentTime + (o.lead || 0);
112
+ // snap every start a little past the sample grid (avoids level spikes on some browsers)
113
+ const at = (t) => (Math.round((base + (t - T0)) * SR) + 0.3) / SR;
114
+ const skip = (t, dur) => at(t) + dur < ac.currentTime || (t < T0 - 0.005 && dur < 1.2);
115
+
116
+ const comp = ac.createDynamicsCompressor();
117
+ comp.threshold.value = -14; comp.knee.value = 6; comp.ratio.value = 4; comp.attack.value = 0.003; comp.release.value = 0.15;
118
+ const master = ac.createGain(); master.gain.value = o.master == null ? 0.85 : o.master;
119
+ comp.connect(master); master.connect(o.dest || ac.destination);
120
+ const mk = (g) => { const n = ac.createGain(); n.gain.value = g; n.connect(comp); return n; };
121
+ const bus = { fx: mk(VO ? 0.78 : 0.95), music: mk(VO ? 0.3 : 0.62), amb: mk(0.45) };
122
+ const duckIn = ac.createGain(); duckIn.connect(bus.music);
123
+ const DUCKS = [];
124
+
125
+ // generated plate-style reverb
126
+ const verb = ac.createConvolver();
127
+ { const n = Math.floor(1.5 * SR), ir = ac.createBuffer(2, n, SR);
128
+ for (let ch = 0; ch < 2; ch++) { const r = CM.rng('plate' + ch), d = ir.getChannelData(ch); let lp = 0; for (let i = 0; i < n; i++) { const u = i / n; lp += (0.7 - 0.5 * u) * ((r() * 2 - 1) - lp); d[i] = lp * Math.pow(1 - u, 2.6) * 0.9; } }
129
+ verb.buffer = ir; }
130
+ const verbIn = ac.createGain(); verbIn.gain.value = 0.8; verbIn.connect(verb); verb.connect(comp);
131
+
132
+ // seeded noise buffers
133
+ const NB = {};
134
+ { const n = Math.floor(2 * SR);
135
+ for (const kind of ['white', 'pink', 'brown']) {
136
+ const b = ac.createBuffer(1, n, SR), d = b.getChannelData(0), r = CM.rng('nz' + kind); let b0 = 0, b1 = 0, b2 = 0, br = 0;
137
+ for (let i = 0; i < n; i++) { const w = r() * 2 - 1;
138
+ if (kind === 'white') d[i] = w;
139
+ else if (kind === 'pink') { b0 = 0.99765 * b0 + w * 0.099; b1 = 0.963 * b1 + w * 0.2965; b2 = 0.57 * b2 + w * 1.0527; d[i] = (b0 + b1 + b2 + w * 0.1848) * 0.18; }
140
+ else { br = (br + 0.02 * w) / 1.02; d[i] = br * 3.4; } }
141
+ NB[kind] = b; } }
142
+
143
+ const ramp = (param, v, t) => { if (!Array.isArray(v)) { param.setValueAtTime(v, t); return; } param.setValueAtTime(v[0][1], t + v[0][0]); for (let i = 1; i < v.length; i++) param.exponentialRampToValueAtTime(Math.max(1e-3, v[i][1]), t + v[i][0]); };
144
+ const env = (g, t, peak, dur, a = 0.004, hold = 0) => {
145
+ a = Math.min(a, dur * 0.9); hold = Math.min(hold, dur - a);
146
+ g.gain.setValueAtTime(0, t); g.gain.linearRampToValueAtTime(peak, t + a);
147
+ if (hold > 0) g.gain.setValueAtTime(peak, t + a + hold);
148
+ g.gain.exponentialRampToValueAtTime(1e-4, t + dur); g.gain.setValueAtTime(0, t + dur + 0.002);
149
+ };
150
+ const level = (p, d) => (p.gain == null ? d : p.gain) * (VO && p.soft ? 0.55 : 1);
151
+ const route = (node, p, t) => {
152
+ const pan = ac.createStereoPanner();
153
+ if (Array.isArray(p.pan)) { pan.pan.setValueAtTime(p.pan[0], t); pan.pan.linearRampToValueAtTime(p.pan[1], t + (p.dur || 0.2)); } else pan.pan.value = CM.clamp(p.pan || 0, -1, 1);
154
+ node.connect(pan); pan.connect(p.bus === 'music' ? duckIn : bus[p.bus || 'fx']);
155
+ if (p.verb) { const s = ac.createGain(); s.gain.value = p.verb; pan.connect(s); s.connect(verbIn); }
156
+ };
157
+ const filt = (p, t) => { if (!p.filter) return null; const f = ac.createBiquadFilter(); f.type = p.filter; f.Q.value = p.q == null ? 0.9 : p.q; ramp(f.frequency, p.ff == null ? 1200 : p.ff, t); return f; };
158
+
159
+ // primitive: oscillator voice. f may be a value or [[dt, hz], ...]
160
+ function voice(time, p) {
161
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
162
+ const osc = ac.createOscillator(); osc.type = p.type || 'sine';
163
+ ramp(osc.frequency, Array.isArray(p.f) ? p.f.map(([d, v]) => [d, hz(v)]) : hz(p.f || 440), t);
164
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
165
+ const f = filt(p, t); if (f) { osc.connect(f); f.connect(g); } else osc.connect(g);
166
+ route(g, p, t); osc.start(t); osc.stop(t + dur + 0.03);
167
+ }
168
+ // primitive: noise voice
169
+ function hiss(time, p) {
170
+ const dur = p.dur || 0.2; if (skip(time, dur)) return; const t = at(time);
171
+ const src = ac.createBufferSource(); src.buffer = NB[p.color || 'white']; src.loop = true; if (p.rate) src.playbackRate.value = p.rate;
172
+ const g = ac.createGain(); env(g, t, level(p, 0.3), dur, p.a, p.hold);
173
+ const f = filt(p, t); if (f) { src.connect(f); f.connect(g); } else src.connect(g);
174
+ route(g, p, t); src.start(t, CM.rng('off' + time)() * 1.5); src.stop(t + dur + 0.03);
175
+ }
176
+ function duck(t, depth = 0.5, hold = 0.25) { DUCKS.push({ t, depth, hold }); }
177
+
178
+ // ---------------- named sounds (creator-edit palette) ----------------
179
+ const S = {
180
+ // text slam: a tight low thump with a short papery crack
181
+ slam: (t, o) => { voice(t, { f: [[0, 150], [0.12, 52]], dur: 0.2, gain: 0.42 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.07, filter: 'lowpass', ff: 2600, gain: 0.22 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.012, filter: 'highpass', ff: 5000, gain: 0.12 * o.g, pan: o.pan, soft: o.soft }); },
182
+ // big drop: sub boom with a dark tail
183
+ boom: (t, o) => { voice(t, { f: [[0, 90], [0.08, 52], [1.6, 34]], dur: 1.7, gain: 0.7 * o.g, a: 0.006, hold: 0.12 }); hiss(t, { color: 'brown', dur: 0.6, filter: 'lowpass', ff: [[0, 600], [0.5, 90]], gain: 0.35 * o.g, verb: 0.3 }); duck(t, 0.7, 0.35); },
184
+ pop: (t, o) => { const f = o.f || 760; voice(t, { f: [[0, f * 1.7], [0.05, f]], dur: 0.08, gain: 0.22 * o.g, pan: o.pan, soft: o.soft }); hiss(t, { dur: 0.01, filter: 'highpass', ff: 4500, gain: 0.08 * o.g, pan: o.pan, soft: o.soft }); },
185
+ tick: (t, o) => hiss(t, { dur: 0.016, filter: 'bandpass', ff: o.f || 3800, q: 3, gain: 0.32 * o.g, pan: o.pan, soft: o.soft }),
186
+ click: (t, o) => { hiss(t, { dur: 0.012, filter: 'bandpass', ff: 3200, q: 2, gain: 0.35 * o.g, pan: o.pan }); hiss(t + 0.045, { dur: 0.01, filter: 'bandpass', ff: 2400, q: 2, gain: 0.22 * o.g, pan: o.pan }); },
187
+ whoosh: (t, o) => { const d = o.dur || 0.35, dir = o.dir || 1; hiss(t, { color: 'pink', dur: d, filter: 'bandpass', ff: [[0, 260], [d * 0.55, o.top || 3200], [d, 520]], q: 0.75, gain: 0.5 * o.g, a: d * 0.55, pan: [-0.7 * dir, 0.7 * dir], verb: 0.12, soft: o.soft }); hiss(t + d * 0.2, { dur: d * 0.6, filter: 'highpass', ff: [[0, 3000], [d * 0.6, 7000]], gain: 0.08 * o.g, a: d * 0.3, pan: [-0.4 * dir, 0.5 * dir], soft: o.soft }); },
188
+ riser: (t, o) => { const d = o.dur || 0.8; hiss(t, { color: 'pink', dur: d, filter: 'bandpass', ff: [[0, 300], [d, 5200]], q: 1.1, gain: 0.32 * o.g, a: d * 0.96, verb: 0.2, soft: o.soft }); voice(t, { type: 'sawtooth', f: [[0, 110], [d, 440]], dur: d, gain: 0.06 * o.g, a: d * 0.95, filter: 'lowpass', ff: [[0, 400], [d, 2400]], soft: o.soft }); },
189
+ glitch: (t, o) => { const r = CM.rng('gl' + t); for (let i = 0; i < 9; i++) voice(t + i * 0.021, { type: 'square', f: 180 + r() * 2200, dur: 0.018, gain: 0.07 * o.g, a: 0.001, hold: 0.012, pan: r() * 1.4 - 0.7 }); hiss(t, { dur: 0.2, filter: 'bandpass', ff: [[0, 4000], [0.2, 900]], q: 0.7, gain: 0.18 * o.g }); hiss(t + 0.1, { dur: 0.05, color: 'brown', gain: 0.25 * o.g }); },
190
+ ping: (t, o) => { voice(t, { f: 'E6', dur: 0.5, gain: 0.16 * o.g, a: 0.003, verb: 0.3, pan: o.pan }); voice(t + 0.11, { f: 'B6', dur: 0.7, gain: 0.14 * o.g, a: 0.003, verb: 0.35, pan: o.pan }); },
191
+ send: (t, o) => { voice(t, { f: [[0, 520], [0.11, 1500]], dur: 0.13, gain: 0.14 * o.g, pan: o.pan }); hiss(t, { dur: 0.1, filter: 'highpass', ff: [[0, 2000], [0.1, 6000]], gain: 0.07 * o.g, pan: o.pan }); },
192
+ keys: (t, o) => { const r = CM.rng('k' + t), end = t + (o.dur || 0.4); for (let x = t; x < end; x += 0.055 + r() * 0.035) { hiss(x, { dur: 0.014, filter: 'bandpass', ff: 3200 + r() * 900, q: 3, gain: 0.2 * o.g, pan: o.pan, soft: true }); voice(x, { f: 1900 + r() * 300, dur: 0.012, gain: 0.025 * o.g, pan: o.pan, soft: true }); } },
193
+ // highlighter / marker swipe: grainy felt drag
194
+ marker: (t, o) => { const d = o.dur || 0.25, r = CM.rng('m' + t); for (let x = 0; x < d; x += 0.022 + r() * 0.012) hiss(t + x, { dur: 0.03, filter: 'bandpass', ff: 1700 + r() * 900, q: 1.4, gain: 0.16 * o.g * (0.6 + r() * 0.5), pan: o.pan, soft: o.soft }); },
195
+ strike: (t, o) => { hiss(t, { dur: 0.15, filter: 'bandpass', ff: [[0, 1200], [0.15, 3200]], q: 1.2, gain: 0.3 * o.g, a: 0.02, pan: o.pan }); },
196
+ tapeStop: (t, o) => { voice(t, { type: 'sawtooth', f: [[0, 196], [0.62, 18]], dur: 0.66, gain: 0.22 * o.g, a: 0.004, hold: 0.3, filter: 'lowpass', ff: [[0, 1800], [0.6, 160]] }); voice(t, { f: [[0, 98], [0.62, 12]], dur: 0.66, gain: 0.3 * o.g, a: 0.004, hold: 0.3 }); hiss(t, { color: 'brown', dur: 0.5, filter: 'lowpass', ff: [[0, 900], [0.5, 120]], gain: 0.18 * o.g }); },
197
+ stamp: (t, o) => { voice(t, { f: [[0, 160], [0.18, 48]], dur: 0.28, gain: 0.6 * o.g }); hiss(t, { dur: 0.06, filter: 'bandpass', ff: 1300, q: 1.1, gain: 0.4 * o.g }); hiss(t + 0.004, { dur: 0.014, filter: 'highpass', ff: 4200, gain: 0.25 * o.g }); },
198
+ shimmer: (t, o) => { ['C6', 'E6', 'G6', 'B6', 'D7', 'E7'].forEach((n, i) => voice(t + i * 0.035, { f: n, dur: 0.75, gain: 0.045 * o.g, a: 0.003, verb: 0.45, pan: (i % 2 ? 0.35 : -0.35) })); },
199
+ sparkle: (t, o) => { const r = CM.rng('sp' + t); for (let i = 0; i < 5; i++) voice(t + i * 0.05, { f: 2400 + r() * 2400, dur: 0.25, gain: 0.03 * o.g, a: 0.002, verb: 0.4, pan: r() * 1.2 - 0.6 }); },
200
+ };
201
+ function play(name, t, opts = {}) { const fn = S[name]; if (!fn) throw new Error('unknown sound ' + name); fn(t, Object.assign({}, opts, { g: opts.gain == null ? 1 : opts.gain })); }
202
+
203
+ // ---------------- music: half-time beat with bass and soft pad ----------------
204
+ function music(t0, t1, p = {}) {
205
+ const bpm = p.bpm || 98, step = 60 / bpm / 4, bar = step * 16, g = p.gain == null ? 1 : p.gain;
206
+ const roots = p.roots || ['A1', 'F1', 'C2', 'G1'];
207
+ const pads = p.pads || [['A3', 'C4', 'E4'], ['F3', 'A3', 'C4'], ['C4', 'E4', 'G4'], ['G3', 'B3', 'D4']];
208
+ let bi = 0;
209
+ for (let tb = t0; tb < t1 - 0.05; tb += bar, bi++) {
210
+ const root = roots[bi % roots.length], pad = pads[bi % pads.length], blen = Math.min(bar, t1 - tb);
211
+ pad.forEach((n, k) => voice(tb, { type: 'triangle', f: n, dur: blen + 0.2, gain: 0.03 * g, a: 0.3, hold: blen - 0.5, filter: 'lowpass', ff: 1100, pan: (k - 1) * 0.35, verb: 0.3, bus: 'music' }));
212
+ for (let s = 0; s < 16; s++) {
213
+ const ts = tb + s * step; if (ts >= t1 - 0.02) break;
214
+ if (s === 0 || s === 10) { voice(ts, { f: [[0, 150], [0.09, 46]], dur: 0.32, gain: 0.5 * g, bus: 'music' }); hiss(ts, { dur: 0.012, filter: 'highpass', ff: 3000, gain: 0.05 * g, bus: 'music' }); }
215
+ if (s === 4 || s === 12) { hiss(ts, { dur: 0.16, filter: 'bandpass', ff: 1700, q: 0.8, gain: 0.26 * g, verb: 0.25, bus: 'music' }); hiss(ts + 0.008, { dur: 0.05, filter: 'highpass', ff: 4500, gain: 0.1 * g, bus: 'music' }); }
216
+ if (s % 2 === 0) hiss(ts, { dur: s % 4 === 2 ? 0.05 : 0.028, filter: 'highpass', ff: 7500, gain: (s % 4 === 2 ? 0.06 : 0.035) * g, bus: 'music' });
217
+ if ([0, 3, 6, 10, 14].includes(s)) voice(ts, { type: 'triangle', f: root, dur: step * 2.6, gain: 0.2 * g, a: 0.006, hold: step, filter: 'lowpass', ff: 380, bus: 'music' });
218
+ }
219
+ }
220
+ }
221
+ function drone(t0, t1, p = {}) { const d = t1 - t0, g = p.gain == null ? 1 : p.gain; voice(t0, { f: p.note || 'A1', dur: d, gain: 0.12 * g, a: d * 0.4, hold: d * 0.4, bus: 'music' }); hiss(t0, { color: 'pink', dur: d, filter: 'bandpass', ff: 900, q: 0.5, gain: 0.03 * g, a: d * 0.5, hold: d * 0.3, bus: 'amb' }); }
222
+ function finish() {
223
+ DUCKS.sort((a, b) => a.t - b.t);
224
+ for (const e of DUCKS) { const s = at(e.t); if (s + e.hold < ac.currentTime) continue; duckIn.gain.setTargetAtTime(1 - e.depth, Math.max(s, ac.currentTime), 0.008); duckIn.gain.setTargetAtTime(1, s + e.hold, 0.14); }
225
+ }
226
+ return { play, voice, hiss, music, drone, duck, finish, hz, vo: VO };
227
+ }
228
+ function live(score, from, opts = {}) {
229
+ const ac = new (window.AudioContext || window.webkitAudioContext)();
230
+ const k = kit(ac, Object.assign({}, opts, { from: from || 0, lead: 0.04 })); score(k); k.finish();
231
+ return () => { try { ac.close(); } catch (e) {} };
232
+ }
233
+ async function render(score, dur, sr = 48000, opts = {}) {
234
+ const len = Math.ceil(dur * sr), ac = new OfflineAudioContext(2, len, sr);
235
+ const k = kit(ac, Object.assign({}, opts, { from: 0 })); score(k); k.finish();
236
+ const buf = await ac.startRendering(), L = buf.getChannelData(0), R = buf.getChannelData(1), inter = new Float32Array(len * 2);
237
+ let peak = 0; for (let i = 0; i < len; i++) { inter[2 * i] = L[i]; inter[2 * i + 1] = R[i]; peak = Math.max(peak, Math.abs(L[i]), Math.abs(R[i])); }
238
+ return { inter, peak, sr, frames: len };
239
+ }
240
+ return { kit, live, render, hz };
241
+ })();
242
+
243
+ // ---------- shared UI-style helpers (Clean Tech, Software Walkthrough, Data Story) ----------
244
+ const W = 1280, HH = 720;
245
+ const { clamp, lerp, span, rng, noise1, ez } = CM;
246
+ const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
247
+ // keyframe track: K = [[t, v1, v2, ...], ...], eased in-out between keys
248
+ function track(K, t) {
249
+ if (t <= K[0][0]) return K[0].slice(1);
250
+ for (let i = 0; i < K.length - 1; i++) { const a = K[i], b = K[i + 1]; if (t <= b[0]) { const e = ez.inout3((t - a[0]) / Math.max(1e-6, b[0] - a[0])); return a.slice(1).map((v, j) => lerp(v, b[j + 1], e)); } }
251
+ return K[K.length - 1].slice(1);
252
+ }
253
+ const textW = (c, s, font) => { c.save(); c.font = font; const w = c.measureText(s).width; c.restore(); return w; };
254
+ const pxOf = (font) => parseFloat(/(\d+)px/.exec(font)[1]);
255
+ // a word rises from behind a mask line into place; returns its width
256
+ function rise(c, s, x, y, font, color, t0, t, o = {}) {
257
+ const w = textW(c, s, font); if (t < t0) return w;
258
+ const px = pxOf(font), X = o.align === 'center' ? x - w / 2 : o.align === 'right' ? x - w : x, e = ez.outExpo(span(t, t0, t0 + (o.dur || 0.5)));
259
+ c.save(); c.beginPath(); c.rect(X - 12, y - px * 1.0, w + 24, px * 1.32); c.clip();
260
+ c.globalAlpha *= Math.min(1, e * 1.6) * (o.alpha == null ? 1 : o.alpha); c.font = font; c.fillStyle = color; c.textBaseline = 'alphabetic'; c.textAlign = 'left';
261
+ c.fillText(s, X, y + (1 - e) * px * 0.9); c.restore(); return w;
262
+ }
263
+ // a line of words, each rising on its own time. words: [[text, t0, color?]]
264
+ function riseLine(c, words, x, y, font, color, t, o = {}) {
265
+ const sp = textW(c, ' ', font), ws = words.map(([s]) => textW(c, s, font)), tot = ws.reduce((a, b) => a + b, 0) + sp * (words.length - 1);
266
+ let cx = o.align === 'center' ? x - tot / 2 : x; const boxes = [];
267
+ words.forEach(([s, t0, col], i) => { boxes.push({ x: cx, w: ws[i], y }); rise(c, s, cx, y, font, col || color, t0, t, { alpha: o.alpha }); cx += ws[i] + sp; });
268
+ return boxes;
269
+ }
270
+ // pill highlight behind a word box, growing from the left
271
+ function pillBehind(c, box, font, p, color, pad = 16) {
272
+ if (p <= 0) return; const px = pxOf(font); c.save(); c.fillStyle = color; rr(c, box.x - pad, box.y - px * 0.88, (box.w + pad * 2) * ez.outExpo(p), px * 1.12, px * 0.26); c.fill(); c.restore();
273
+ }
274
+ const typed = (full, t, a, b) => full.slice(0, Math.floor(full.length * span(t, a, b)));
275
+ function softCard(c, x, y, w, h, r, o = {}) {
276
+ c.save(); c.shadowColor = o.shadow || 'rgba(13,15,40,0.13)'; c.shadowBlur = o.blur == null ? 44 : o.blur; c.shadowOffsetY = o.offY == null ? 16 : o.offY;
277
+ c.fillStyle = o.fill || '#ffffff'; rr(c, x, y, w, h, r); c.fill(); c.restore();
278
+ if (o.border !== false) { c.save(); c.strokeStyle = o.border || 'rgba(13,15,20,0.08)'; c.lineWidth = 1.5; rr(c, x, y, w, h, r); c.stroke(); c.restore(); }
279
+ }
280
+ function cursorArrow(c, x, y, s = 1.3) {
281
+ c.save(); c.translate(x, y); c.scale(s, s); c.shadowColor = 'rgba(0,0,0,0.3)'; c.shadowBlur = 6; c.shadowOffsetY = 2;
282
+ c.fillStyle = '#111'; c.strokeStyle = '#fff'; c.lineWidth = 1.6; c.beginPath(); c.moveTo(0, 0); c.lineTo(0, 22); c.lineTo(5.5, 17); c.lineTo(9.5, 26); c.lineTo(13, 24.5); c.lineTo(9, 15.5); c.lineTo(16, 15.5); c.closePath(); c.fill(); c.shadowColor = 'transparent'; c.stroke(); c.restore();
283
+ }
284
+ function checkMark(c, x, y, r, p, fill = '#18b46b') {
285
+ if (p <= 0) return; const s = ez.back(clamp(p), 2.2); c.save(); c.translate(x, y); c.scale(s, s); c.fillStyle = fill; c.beginPath(); c.arc(0, 0, r, 0, 7); c.fill();
286
+ c.strokeStyle = '#fff'; c.lineWidth = r * 0.24; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(-r * 0.42, 0.02 * r); c.lineTo(-r * 0.1, r * 0.32); c.lineTo(r * 0.45, -r * 0.3); c.stroke(); c.restore();
287
+ }
288
+ // scenes on transparent layers, with cuts between them
289
+ const LA = CM.layer(W, HH), LB = CM.layer(W, HH);
290
+ function sceneLayer(L, draw, t) { const x = L.getContext('2d'); x.setTransform(1, 0, 0, 1, 0, 0); x.globalAlpha = 1; x.globalCompositeOperation = 'source-over'; x.filter = 'none'; x.clearRect(0, 0, W, HH); draw(x, t); return L; }
291
+ function composite(ctx, t, SCENES, CUTS, background) {
292
+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over'; ctx.filter = 'none';
293
+ background(ctx, t);
294
+ let idx = 0; for (const c of CUTS) if (t >= c.t) idx++;
295
+ const cut = CUTS.find((c) => t >= c.t && t < c.t + c.d);
296
+ if (!cut) { ctx.drawImage(sceneLayer(LA, SCENES[idx], t), 0, 0); return; }
297
+ const u = (t - cut.t) / cut.d, e = ez.inout3(u), A = sceneLayer(LA, SCENES[idx - 1], t), B = sceneLayer(LB, SCENES[idx], t);
298
+ if (cut.type === 'push') {
299
+ const dir = cut.dir || 1, s = 1 - 0.05 * Math.sin(Math.PI * u);
300
+ for (const [L, off] of [[A, -e * W * dir], [B, (1 - e) * W * dir]]) { ctx.save(); ctx.translate(640 + off, 360); ctx.scale(s, s); ctx.drawImage(L, -640, -360); ctx.restore(); }
301
+ } else if (cut.type === 'zoom') {
302
+ const z = lerp(1, 3.2, ez.in3(clamp(u / 0.65))); ctx.save(); ctx.globalAlpha = 1 - span(u, 0.38, 0.65); ctx.translate(cut.x, cut.y); ctx.scale(z, z); ctx.drawImage(A, -cut.x, -cut.y); ctx.restore();
303
+ const zb = lerp(1.1, 1, ez.out3(span(u, 0.35, 1))); ctx.save(); ctx.globalAlpha = span(u, 0.35, 0.72); ctx.translate(640, 360); ctx.scale(zb, zb); ctx.drawImage(B, -640, -360); ctx.restore();
304
+ } else if (cut.type === 'up') {
305
+ ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, -60 * e); ctx.restore(); ctx.save(); ctx.globalAlpha = e; ctx.drawImage(B, 0, 70 * (1 - e)); ctx.restore();
306
+ } else { ctx.save(); ctx.globalAlpha = 1 - e; ctx.drawImage(A, 0, 0); ctx.globalAlpha = e; ctx.drawImage(B, 0, 0); ctx.restore(); }
307
+ }
308
+ // a soft synth pad and light percussion on the music bus (for scores)
309
+ function padBed(k, t0, t1, o = {}) {
310
+ const bpm = o.bpm || 90, beat = 60 / bpm, bar = beat * 4, chords = o.chords, g = o.gain == null ? 1 : o.gain;
311
+ let i = 0;
312
+ for (let tb = t0; tb < t1 - 0.1; tb += bar, i++) {
313
+ const ch = chords[i % chords.length], len = Math.min(bar, t1 - tb);
314
+ ch.forEach((n, j) => { k.voice(tb, { type: 'triangle', f: n, dur: len + 0.4, gain: 0.026 * g, a: 0.5, hold: Math.max(0, len - 0.9), filter: 'lowpass', ff: o.cut || 1300, pan: (j - (ch.length - 1) / 2) * 0.3, verb: 0.3, bus: 'music' }); });
315
+ k.voice(tb, { f: k.hz(ch[0]) / 2, dur: len + 0.2, gain: 0.05 * g, a: 0.3, hold: Math.max(0, len - 0.6), bus: 'music' });
316
+ for (let b = 0; b < 8; b++) {
317
+ const ts = tb + b * beat / 2; if (ts >= t1 - 0.05) break;
318
+ if (o.hats && ts >= o.hats[0] && ts < o.hats[1]) k.hiss(ts, { dur: b % 2 ? 0.03 : 0.045, filter: 'highpass', ff: 8000, gain: (b % 2 ? 0.014 : 0.022) * g, bus: 'music' });
319
+ if (o.kick && ts >= o.kick[0] && ts < o.kick[1] && (b === 0 || b === 4)) k.voice(ts, { f: [[0, 120], [0.09, 46]], dur: 0.26, gain: 0.16 * g, bus: 'music' });
320
+ }
321
+ }
322
+ }
323
+ // =====================================================================================================
324
+ // STYLE: Clean Tech
325
+ // Bright, calm product-explainer look: cool off-white with a dot grid, crisp Inter Tight that rises into place,
326
+ // white UI cards with soft shadows, one electric blue accent, mono labels, smooth push and zoom-through cuts.
327
+ // Demo topic: "How AI agents get work done".
328
+ // =====================================================================================================
329
+ const C = { bg: '#f5f6f8', ink: '#0d0f14', mute: '#6b7280', faint: '#9aa1ad', line: '#e3e6ec', blue: '#2f5bff', blueSoft: '#e8edff', green: '#18b46b' };
330
+ const HEAD = (px) => `800 ${px}px "Inter Tight", system-ui, sans-serif`, BODY = (px, w = 500) => `${w} ${px}px "Inter Tight", system-ui, sans-serif`, MONO = (px) => `700 ${px}px "JetBrains Mono", ui-monospace, monospace`;
331
+
332
+ // ---------- the timeline: picture and sound both read these ----------
333
+ const TL = {
334
+ D: 20,
335
+ hook: { tag: 0.1, w1: [0.2, 0.38], w2: [0.85, 1.05], pill: 1.3 },
336
+ agent: { head: 3.15, card: [3.2, 3.8], type: [3.85, 5.0], send: 5.05, move: [5.3, 5.95], nodes: [6.0, 6.2, 6.4], arcs: [6.5, 7.0], loop: [7.0, 10.6], period: 1.2, rows: [7.1, 7.25, 7.4], checks: [7.8, 9.0, 10.2] },
337
+ result: { w: [11.7, 11.9], pill: 12.35, doc: [11.75, 12.35], rows: 12.5, cnt: [12.45, 13.6], badge: 13.9 },
338
+ take: { w1: [16.2, 16.38], w2: [16.8, 17.0], pill: 17.25, note: 18.0 },
339
+ };
340
+ const CUTS = [{ t: 2.6, d: 0.5, type: 'push', dir: 1 }, { t: 11.0, d: 0.6, type: 'zoom', x: 330, y: 560 }, { t: 15.6, d: 0.5, type: 'push', dir: 1 }];
341
+ const BUMPS = [1.3, 12.35, 17.25];
342
+ const stepCount = (t) => Math.round(14 * ez.out3(span(t, TL.result.cnt[0], TL.result.cnt[1])));
343
+
344
+ // ---------- background ----------
345
+ function background(c, t) {
346
+ c.fillStyle = C.bg; c.fillRect(0, 0, W, HH);
347
+ const g = c.createRadialGradient(1080 + Math.sin(t * 0.3) * 60, 80, 0, 1080, 80, 720); g.addColorStop(0, 'rgba(47,91,255,0.10)'); g.addColorStop(1, 'rgba(47,91,255,0)'); c.fillStyle = g; c.fillRect(0, 0, W, HH);
348
+ const g2 = c.createRadialGradient(160, 680, 0, 160, 680, 600); g2.addColorStop(0, 'rgba(24,180,107,0.05)'); g2.addColorStop(1, 'rgba(24,180,107,0)'); c.fillStyle = g2; c.fillRect(0, 0, W, HH);
349
+ c.fillStyle = 'rgba(13,15,20,0.085)'; const off = (t * 6) % 32;
350
+ for (let y = 16; y < HH; y += 32) for (let x = 16 - off; x < W; x += 32) { c.beginPath(); c.arc(x, y, 1.4, 0, 7); c.fill(); }
351
+ }
352
+ // gentle push-in over each scene, and a small bump when a pill lands
353
+ function cam(c, t, a, b) { let z = 1 + 0.025 * ez.inout3(span(t, a, b)); for (const tb of BUMPS) { const d = t - tb; if (d > 0 && d < 1.2) z += 0.014 * Math.sin(Math.min(1, d / 0.25) * Math.PI / 2) * Math.exp(-d * 2.5); } c.translate(640, 360); c.scale(z, z); c.translate(-640, -360); }
354
+
355
+ // ---------- scene 0: hook ----------
356
+ function sceneHook(c, t) {
357
+ const H = TL.hook; cam(c, t, 0, 2.6);
358
+ c.save(); c.font = MONO(26); c.fillStyle = C.blue; c.letterSpacing = '4px'; c.textAlign = 'center'; c.globalAlpha = span(t, H.tag, H.tag + 0.3); c.fillText('THE SHIFT', 640, 236); c.restore();
359
+ const F = HEAD(110);
360
+ riseLine(c, [['Chatbots', H.w1[0]], ['answer.', H.w1[1]]], 640, 360, F, C.ink, t, { align: 'center' });
361
+ const p = span(t, H.pill, H.pill + 0.35), b2 = riseLine(c, [['Agents', H.w2[0]], ['act.', H.w2[1], p > 0.6 ? '#fff' : C.ink]], 640, 494, F, C.ink, t, { align: 'center' });
362
+ if (p > 0) { pillBehind(c, b2[1], F, p, C.blue); rise(c, 'act.', b2[1].x, 494, F, '#fff', H.w2[1], t); }
363
+ }
364
+ // ---------- scene 1: the agent loop ----------
365
+ const LOOP = { P: [890, 190], A: [1095, 400], K: [890, 610] };
366
+ const quadPts = (a, q, b, n = 40) => Array.from({ length: n + 1 }, (_, i) => { const u = i / n, v = 1 - u; return [v * v * a[0] + 2 * v * u * q[0] + u * u * b[0], v * v * a[1] + 2 * v * u * q[1] + u * u * b[1]]; });
367
+ const ARCS = [quadPts(LOOP.P, [1070, 230], LOOP.A), quadPts(LOOP.A, [1070, 590], LOOP.K), quadPts(LOOP.K, [720, 400], LOOP.P)];
368
+ const LOOP_PATH = [...ARCS[0], ...ARCS[1].slice(1), ...ARCS[2].slice(1)];
369
+ function promptCard(c, cx, cy, s, t, alpha) {
370
+ const A = TL.agent, w = 820, h = 150;
371
+ c.save(); c.globalAlpha = alpha; c.translate(cx, cy); c.scale(s, s); c.translate(-w / 2, -h / 2);
372
+ softCard(c, 0, 0, w, h, 26);
373
+ c.font = MONO(22); c.fillStyle = C.mute; c.letterSpacing = '3px'; c.fillText('YOU', 40, 48); c.letterSpacing = '0px';
374
+ const full = 'Research 5 competitors and write a summary.', s1 = typed(full, t, A.type[0], A.type[1]);
375
+ c.font = BODY(30); c.fillStyle = C.ink; c.fillText(s1, 40, 102);
376
+ if (t > A.type[0] - 0.3 && t < A.send && Math.floor(t * 2.4) % 2 === 0) { const cw = c.measureText(s1).width; c.fillStyle = C.blue; c.fillRect(44 + cw, 76, 3, 32); }
377
+ const k = t > A.send ? 1 - 0.12 * Math.sin(Math.PI * span(t, A.send, A.send + 0.2)) : 1;
378
+ c.save(); c.translate(w - 70, h / 2); c.scale(k, k); c.fillStyle = C.blue; c.beginPath(); c.arc(0, 0, 30, 0, 7); c.fill();
379
+ c.strokeStyle = '#fff'; c.lineWidth = 4; c.lineCap = 'round'; c.lineJoin = 'round'; c.beginPath(); c.moveTo(0, 12); c.lineTo(0, -11); c.moveTo(-9, -2); c.lineTo(0, -11); c.lineTo(9, -2); c.stroke(); c.restore();
380
+ if (t > A.send) { const r = span(t, A.send, A.send + 0.6); if (r < 1) { c.strokeStyle = `rgba(47,91,255,${1 - r})`; c.lineWidth = 3; c.beginPath(); c.arc(w - 70, h / 2, 30 + 44 * r, 0, 7); c.stroke(); } }
381
+ c.restore();
382
+ }
383
+ function node(c, [x, y], label, sub, t0, t, glow) {
384
+ const s = ez.back(span(t, t0, t0 + 0.4), 2); if (s <= 0) return;
385
+ c.save(); c.translate(x, y); c.scale(s, s);
386
+ if (glow > 0) { c.shadowColor = `rgba(47,91,255,${0.5 * glow})`; c.shadowBlur = 40; }
387
+ softCard(c, -105, -40, 210, 80, 20, { border: glow > 0.3 ? 'rgba(47,91,255,0.7)' : undefined });
388
+ c.fillStyle = C.blueSoft; c.beginPath(); c.arc(-62, 0, 20, 0, 7); c.fill(); c.fillStyle = C.blue; c.beginPath(); c.arc(-62, 0, 7 + 3 * glow, 0, 7); c.fill();
389
+ c.font = MONO(18); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText(sub, -30, -6); c.letterSpacing = '0px';
390
+ c.font = BODY(30, 700); c.fillStyle = C.ink; c.fillText(label, -30, 26); c.restore();
391
+ }
392
+ function sceneAgent(c, t) {
393
+ const A = TL.agent; cam(c, t, 3.1, 11.0);
394
+ // headline above the card, gone once the card moves aside
395
+ c.save(); c.globalAlpha = 1 - span(t, A.move[0] - 0.1, A.move[0] + 0.2); rise(c, 'You ask once.', 640, 230, HEAD(84), C.ink, A.head, t, { align: 'center' }); c.restore();
396
+ const enter = ez.outExpo(span(t, A.card[0], A.card[1])), [cx, cy, s] = track([[A.move[0], 640, 380, 1], [A.move[1], 350, 240, 0.7]], t);
397
+ if (enter > 0) promptCard(c, cx, cy + (1 - enter) * 300, s, t, Math.min(1, enter * 1.5));
398
+ // the loop: arcs with flowing dashes, then a dot travelling round it
399
+ const ap = span(t, A.arcs[0], A.arcs[1]);
400
+ if (ap > 0) {
401
+ c.save(); c.strokeStyle = 'rgba(47,91,255,0.55)'; c.lineWidth = 3; c.lineCap = 'round'; c.setLineDash([2, 11]); c.lineDashOffset = -t * 40;
402
+ ARCS.forEach((P) => { const m = Math.max(2, Math.ceil(P.length * ap)); c.beginPath(); P.slice(0, m).forEach(([x, y], i) => (i ? c.lineTo(x, y) : c.moveTo(x, y))); c.stroke(); }); c.restore();
403
+ c.save(); c.font = MONO(22); c.fillStyle = C.blue; c.globalAlpha = 0.7 * ap; c.letterSpacing = '3px'; c.textAlign = 'center'; c.fillText('AGENT LOOP', 868, 408); c.restore();
404
+ }
405
+ let near = [0, 0, 0];
406
+ if (t > A.loop[0] && t < A.loop[1]) {
407
+ const u = ((t - A.loop[0]) / A.period) % 1, q = LOOP_PATH[Math.min(LOOP_PATH.length - 1, Math.floor(u * (LOOP_PATH.length - 1)))];
408
+ near = [Math.max(0, 1 - Math.min(u, 1 - u) * 8), Math.max(0, 1 - Math.abs(u - 1 / 3) * 8), Math.max(0, 1 - Math.abs(u - 2 / 3) * 8)];
409
+ const g = c.createRadialGradient(q[0], q[1], 0, q[0], q[1], 34); g.addColorStop(0, 'rgba(47,91,255,0.45)'); g.addColorStop(1, 'rgba(47,91,255,0)'); c.fillStyle = g; c.beginPath(); c.arc(q[0], q[1], 34, 0, 7); c.fill();
410
+ c.fillStyle = C.blue; c.beginPath(); c.arc(q[0], q[1], 9, 0, 7); c.fill(); c.fillStyle = '#fff'; c.beginPath(); c.arc(q[0], q[1], 3.5, 0, 7); c.fill();
411
+ }
412
+ node(c, LOOP.P, 'Plan', 'STEP 1', A.nodes[0], t, near[0]); node(c, LOOP.A, 'Act', 'STEP 2', A.nodes[1], t, near[1]); node(c, LOOP.K, 'Check', 'STEP 3', A.nodes[2], t, near[2]);
413
+ // the task list fills in as each loop finishes
414
+ if (t > A.rows[0] - 0.1) {
415
+ const e = ez.outExpo(span(t, A.rows[0] - 0.1, A.rows[0] + 0.4)); c.save(); c.globalAlpha = e; c.translate(0, (1 - e) * 30);
416
+ softCard(c, 90, 390, 500, 250, 24); c.font = MONO(22); c.fillStyle = C.mute; c.letterSpacing = '3px'; c.fillText('TASKS', 124, 434); c.letterSpacing = '0px';
417
+ ['Search the web', 'Read 5 company sites', 'Draft the summary'].forEach((s, i) => {
418
+ const y = 492 + i * 56, a = span(t, A.rows[i], A.rows[i] + 0.25), done = t > A.checks[i]; if (a <= 0) return; c.save(); c.globalAlpha *= a;
419
+ c.strokeStyle = C.line; c.lineWidth = 2.5; c.beginPath(); c.arc(140, y - 9, 14, 0, 7); c.stroke();
420
+ checkMark(c, 140, y - 9, 15, span(t, A.checks[i], A.checks[i] + 0.3), C.green);
421
+ c.font = BODY(28, 600); c.fillStyle = done ? C.mute : C.ink; c.fillText(s, 172, y); c.restore();
422
+ });
423
+ c.restore();
424
+ }
425
+ }
426
+ // ---------- scene 2: the result ----------
427
+ function sceneResult(c, t) {
428
+ const R = TL.result; cam(c, t, 11.6, 15.6);
429
+ const F = HEAD(78), p = span(t, R.pill, R.pill + 0.35);
430
+ const b1 = riseLine(c, [['It', R.w[0]], ['checks', R.w[0] + 0.1, p > 0.6 ? '#fff' : C.ink]], 80, 236, F, C.ink, t);
431
+ if (p > 0) { pillBehind(c, b1[1], F, p, C.blue, 14); rise(c, 'checks', b1[1].x, 236, F, '#fff', R.w[0] + 0.1, t); }
432
+ riseLine(c, [['its', R.w[1]], ['own', R.w[1] + 0.08], ['work.', R.w[1] + 0.16]], 80, 330, F, C.ink, t);
433
+ if (t > R.cnt[0] - 0.2) {
434
+ c.save(); c.globalAlpha = span(t, R.cnt[0] - 0.2, R.cnt[0]); c.font = MONO(24); c.fillStyle = C.mute; c.letterSpacing = '3px'; c.fillText('STEPS TAKEN', 84, 448); c.letterSpacing = '0px';
435
+ const done = t > R.cnt[1], pop = done ? 1 + 0.1 * Math.sin(Math.PI * span(t, R.cnt[1], R.cnt[1] + 0.3)) : 1;
436
+ c.translate(84, 580); c.scale(pop, pop); c.font = HEAD(150); c.fillStyle = C.blue; c.fillText(String(stepCount(t)), 0, 0);
437
+ c.font = BODY(30, 600); c.fillStyle = C.mute; c.fillText(done ? 'from one prompt' : '', 4, 46); c.restore();
438
+ }
439
+ // the document it wrote
440
+ const e = ez.outExpo(span(t, R.doc[0], R.doc[1])); if (e <= 0) return;
441
+ c.save(); c.globalAlpha = Math.min(1, e * 1.4); c.translate((1 - e) * 360, 0);
442
+ const x = 560, y = 110, w = 640, h = 520; softCard(c, x, y, w, h, 26);
443
+ c.font = HEAD(36); c.fillStyle = C.ink; c.fillText('Competitor summary', x + 40, y + 70);
444
+ const fin = t > R.badge, tag = fin ? 'FINAL' : 'DRAFT'; c.font = MONO(18); const tw = c.measureText(tag).width + 28;
445
+ c.fillStyle = fin ? '#e3f6ec' : C.blueSoft; rr(c, x + w - 40 - tw, y + 44, tw, 34, 17); c.fill(); c.fillStyle = fin ? C.green : C.blue; c.letterSpacing = '2px'; c.fillText(tag, x + w - 26 - tw, y + 67); c.letterSpacing = '0px';
446
+ c.fillStyle = C.line; c.fillRect(x + 40, y + 100, w - 80, 1.5);
447
+ c.font = MONO(20); c.fillStyle = C.faint; c.letterSpacing = '2px'; c.fillText('COMPANY', x + 40, y + 140); c.fillText('PRICE', x + 290, y + 140); c.fillText('STRENGTH', x + 410, y + 140); c.letterSpacing = '0px';
448
+ const rows = [['Orbit', '$$', 0.82], ['Lumen', '$$$', 0.64], ['Kite', '$', 0.55], ['Northstar', '$$', 0.9], ['Pella', '$', 0.38]];
449
+ rows.forEach(([n, pr, v], i) => {
450
+ const t0 = R.rows + i * 0.18, a = span(t, t0, t0 + 0.25); if (a <= 0) return; const yy = y + 196 + i * 60;
451
+ c.save(); c.globalAlpha *= a; c.font = BODY(28, 600); c.fillStyle = C.ink; c.fillText(n, x + 40, yy); c.font = BODY(28, 500); c.fillStyle = C.mute; c.fillText(pr, x + 290, yy);
452
+ c.fillStyle = '#eef0f4'; rr(c, x + 410, yy - 20, 190, 14, 7); c.fill(); c.fillStyle = C.blue; rr(c, x + 410, yy - 20, 190 * v * ez.out3(span(t, t0 + 0.1, t0 + 0.6)), 14, 7); c.fill(); c.restore();
453
+ });
454
+ if (fin) { const s = ez.back(span(t, R.badge, R.badge + 0.35), 2.2); c.save(); c.translate(x + w - 30, y + h - 30); c.scale(s, s); c.fillStyle = C.green; rr(c, -190, -30, 190, 52, 26); c.fill(); checkMark(c, -160, -4, 14, 1, '#ffffff22'); c.font = BODY(26, 700); c.fillStyle = '#fff'; c.fillText('Checked', -138, 5); c.restore(); }
455
+ c.restore();
456
+ }
457
+ // ---------- scene 3: takeaway ----------
458
+ function sceneTake(c, t) {
459
+ const K = TL.take; cam(c, t, 16.1, 20);
460
+ const F = HEAD(104);
461
+ riseLine(c, [['Stop', K.w1[0]], ['prompting.', K.w1[1]]], 640, 316, F, C.faint, t, { align: 'center' });
462
+ const p = span(t, K.pill, K.pill + 0.35), b = riseLine(c, [['Start', K.w2[0]], ['delegating.', K.w2[1], p > 0.6 ? '#fff' : C.ink]], 640, 446, F, C.ink, t, { align: 'center' });
463
+ if (p > 0) { pillBehind(c, b[1], F, p, C.blue); rise(c, 'delegating.', b[1].x, 446, F, '#fff', K.w2[1], t); }
464
+ if (t > K.note) { c.save(); const e = ez.outExpo(span(t, K.note, K.note + 0.5)); c.globalAlpha = e; c.font = MONO(28); c.fillStyle = C.blue; c.textAlign = 'center'; c.letterSpacing = '2px'; c.fillText('agent = goal + tools + loop', 640, 560 + (1 - e) * 16); c.restore(); }
465
+ }
466
+ const SCENES = [sceneHook, sceneAgent, sceneResult, sceneTake];
467
+ function explainer(ctx, t) {
468
+ composite(ctx, t, SCENES, CUTS, background);
469
+ const v = ctx.createRadialGradient(640, 360, 380, 640, 360, 820); v.addColorStop(0, 'rgba(0,0,0,0)'); v.addColorStop(1, 'rgba(20,24,40,0.07)'); ctx.fillStyle = v; ctx.fillRect(0, 0, W, HH);
470
+ }
471
+
472
+ // =================================== SOUND SCORE ===================================
473
+ // Airy and precise: a soft pad with light hats, small glassy ticks as words rise, clean swipes for the blue pills,
474
+ // soft keyboard and a send blip, pops for cards, a quiet chime per finished task, and smooth pushes between scenes.
475
+ function scoreSound(k) {
476
+ { const k0 = k, G = 2.1; k = Object.assign({}, k0, { voice: (t, p) => k0.voice(t, Object.assign({}, p, { gain: (p.gain == null ? 0.3 : p.gain) * G })), hiss: (t, p) => k0.hiss(t, Object.assign({}, p, { gain: (p.gain == null ? 0.3 : p.gain) * G })), play: (n, t, o = {}) => k0.play(n, t, Object.assign({}, o, { gain: (o.gain == null ? 1 : o.gain) * G })) }); } // overall level
477
+ const H = TL.hook, A = TL.agent, R = TL.result, K = TL.take;
478
+ const rise1 = (t, pan = 0, g = 1) => { k.voice(t, { f: [[0, 760], [0.05, 1150]], dur: 0.07, gain: 0.07 * g, pan, soft: true }); k.hiss(t, { dur: 0.012, filter: 'highpass', ff: 6000, gain: 0.05 * g, pan, soft: true }); };
479
+ const swipe = (t, pan = 0) => { k.hiss(t, { dur: 0.24, filter: 'bandpass', ff: [[0, 2400], [0.22, 6200]], q: 1.2, gain: 0.14, a: 0.08, pan }); k.voice(t + 0.12, { f: 'E6', dur: 0.5, gain: 0.05, verb: 0.35, pan }); };
480
+ const chime = (t, pan = 0) => { k.voice(t, { f: 'C6', dur: 0.5, gain: 0.08, a: 0.003, verb: 0.3, pan }); k.voice(t + 0.07, { f: 'G6', dur: 0.6, gain: 0.07, a: 0.003, verb: 0.3, pan }); };
481
+ padBed(k, 0.1, TL.D - 0.2, { bpm: 92, gain: 1, cut: 1400, chords: [['F3', 'A3', 'C4', 'E4'], ['D3', 'F3', 'A3', 'C4'], ['Bb2', 'D3', 'F3', 'A3'], ['C3', 'E3', 'G3', 'B3']], hats: [2.6, 15.6], kick: [3.1, 15.6] });
482
+ // hook
483
+ H.w1.concat(H.w2).forEach((t, i) => rise1(t, (i % 2 ? 0.2 : -0.2)));
484
+ swipe(H.pill, 0.15);
485
+ // scene pushes
486
+ k.play('whoosh', CUTS[0].t, { dur: 0.5, gain: 0.55, dir: 1, top: 2400 }); k.play('whoosh', CUTS[2].t, { dur: 0.5, gain: 0.55, dir: 1, top: 2400 });
487
+ // the agent
488
+ rise1(A.head); k.play('whoosh', A.card[0], { dur: 0.5, gain: 0.25, dir: 1, top: 1500, soft: true });
489
+ k.play('keys', A.type[0], { dur: A.type[1] - A.type[0], gain: 0.8, pan: 0 }); k.play('send', A.send, { gain: 1 });
490
+ k.hiss(A.move[0], { color: 'pink', dur: 0.6, filter: 'bandpass', ff: [[0, 500], [0.3, 1600], [0.6, 600]], q: 0.8, gain: 0.08, a: 0.25, pan: [0.2, -0.4] });
491
+ A.nodes.forEach((t, i) => k.play('pop', t + 0.06, { f: 700 + i * 140, gain: 0.55, pan: [0.4, 0.7, 0.4][i] }));
492
+ k.hiss(A.arcs[0], { dur: A.arcs[1] - A.arcs[0], filter: 'bandpass', ff: [[0, 1500], [0.5, 3500]], q: 1.4, gain: 0.05, a: 0.2, pan: 0.5, soft: true });
493
+ for (let t = A.loop[0]; t < A.loop[1] - 0.05; t += A.period / 3) k.play('tick', t, { f: 5200, gain: 0.3, pan: 0.5, soft: true });
494
+ A.rows.forEach((t) => k.play('tick', t, { f: 3600, gain: 0.35, pan: -0.4, soft: true }));
495
+ A.checks.forEach((t) => chime(t, -0.35));
496
+ // zoom through into the result
497
+ k.play('riser', CUTS[1].t - 0.5, { dur: 0.55, gain: 0.45 }); k.play('whoosh', CUTS[1].t + 0.1, { dur: 0.45, gain: 0.45, dir: -1, top: 3000 });
498
+ rise1(R.w[0], -0.4); rise1(R.w[0] + 0.1, -0.4); [0, 0.08, 0.16].forEach((d) => rise1(R.w[1] + d, -0.4, 0.8));
499
+ swipe(R.pill, -0.35);
500
+ k.play('whoosh', R.doc[0], { dur: 0.5, gain: 0.3, dir: -1, top: 1800, soft: true });
501
+ for (let i = 0; i < 5; i++) k.play('tick', R.rows + i * 0.18, { f: 4200, gain: 0.3, pan: 0.4, soft: true });
502
+ { let last = -1; for (let t = R.cnt[0]; t <= R.cnt[1]; t += 1 / 120) { const v = stepCount(t); if (v !== last && v > 0) { k.play('tick', t, { f: 2600 + v * 90, gain: 0.45, pan: -0.5, soft: true }); last = v; } } }
503
+ k.play('pop', R.cnt[1], { f: 980, gain: 0.5, pan: -0.5 });
504
+ chime(R.badge, 0.45); k.voice(R.badge + 0.14, { f: 'C7', dur: 0.7, gain: 0.05, a: 0.003, verb: 0.35, pan: 0.45 });
505
+ // takeaway
506
+ K.w1.concat(K.w2).forEach((t, i) => rise1(t, 0, i < 2 ? 0.7 : 1));
507
+ swipe(K.pill, 0.1);
508
+ ['F4', 'A4', 'C5', 'E5'].forEach((n, i) => k.voice(K.pill + 0.15 + i * 0.06, { f: n, dur: 1.6, gain: 0.05, a: 0.01, verb: 0.4, pan: (i - 1.5) * 0.25 }));
509
+ rise1(K.note, 0, 0.6);
510
+ }
511
+
512
+ // =================================== PLAYER ===================================
513
+ const cvs = document.getElementById('stage'), ctx = cvs.getContext('2d');
514
+ const DURATION = TL.D;
515
+ window.seek = (t) => explainer(ctx, clamp(t, 0, DURATION));
516
+ window.DURATION = DURATION;
517
+ window.scoreSound = scoreSound;
518
+ window.SFX = SFX;
519
+
520
+ const ui = { play: document.getElementById('play'), scrub: document.getElementById('scrub'), time: document.getElementById('time'), sound: document.getElementById('sound'), loop: document.getElementById('loop'), vo: document.getElementById('vofile'), note: document.getElementById('vonote') };
521
+ let T = 0, playing = false, last = 0, soundOn = true, loopOn = true, stopSound = null, voAudio = null;
522
+ const fmt = (t) => t.toFixed(2) + ' / ' + DURATION.toFixed(2);
523
+ function draw() { window.seek(T); ui.scrub.value = T; ui.time.textContent = fmt(T); }
524
+ function startAudio() {
525
+ stopAudio(); if (!playing) return;
526
+ if (soundOn) stopSound = SFX.live(scoreSound, T, { voiceover: !!voAudio });
527
+ if (voAudio) { try { voAudio.currentTime = T; voAudio.play().catch(() => {}); } catch (e) {} }
528
+ }
529
+ function stopAudio() { if (stopSound) { stopSound(); stopSound = null; } if (voAudio) voAudio.pause(); }
530
+ function setPlaying(p) { playing = p; ui.play.textContent = p ? 'Pause' : 'Play'; last = performance.now(); if (p) startAudio(); else stopAudio(); }
531
+ function tick(now) {
532
+ if (playing) {
533
+ T += (now - last) / 1000; last = now;
534
+ if (T >= DURATION) { if (loopOn) { T = 0; startAudio(); } else { T = DURATION; setPlaying(false); } }
535
+ draw();
536
+ }
537
+ requestAnimationFrame(tick);
538
+ }
539
+ ui.play.addEventListener('click', () => { if (!playing && T >= DURATION) T = 0; setPlaying(!playing); });
540
+ ui.scrub.addEventListener('input', () => { T = parseFloat(ui.scrub.value); draw(); if (playing) startAudio(); });
541
+ ui.sound.addEventListener('click', () => { soundOn = !soundOn; ui.sound.setAttribute('aria-pressed', soundOn); ui.sound.textContent = soundOn ? 'Sound on' : 'Sound off'; if (playing) startAudio(); });
542
+ ui.loop.addEventListener('click', () => { loopOn = !loopOn; ui.loop.setAttribute('aria-pressed', loopOn); });
543
+ ui.vo.addEventListener('change', () => {
544
+ const f = ui.vo.files && ui.vo.files[0]; if (!f) return;
545
+ if (voAudio) { voAudio.pause(); URL.revokeObjectURL(voAudio.src); }
546
+ voAudio = new Audio(URL.createObjectURL(f)); ui.note.textContent = 'Voiceover loaded: ' + f.name + '. Effects use the lighter mix.';
547
+ if (playing) startAudio();
548
+ });
549
+ (async () => {
550
+ try { await Promise.all(['800 60px "Inter Tight"', '500 30px "Inter Tight"', '600 30px "Inter Tight"', '700 30px "Inter Tight"', '700 20px "JetBrains Mono"'].map((f) => document.fonts.load(f, 'AaZz09'))); await document.fonts.ready; } catch (e) {}
551
+ T = 8.6; draw(); window.__ready = true;
552
+ requestAnimationFrame((n) => { last = n; tick(n); });
553
+ })();
554
+ </script>