takomi 2.1.41 → 2.1.43

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 (601) hide show
  1. package/.pi/extensions/oauth-router/README.md +3 -4
  2. package/.pi/extensions/oauth-router/config.ts +33 -36
  3. package/.pi/extensions/oauth-router/scripts/vibe-verify.py +1 -1
  4. package/README.md +7 -4
  5. package/assets/.agent/skills/embedded-captions/CATALOG.md +93 -0
  6. package/assets/.agent/skills/embedded-captions/SKILL.md +286 -0
  7. package/assets/.agent/skills/embedded-captions/assets/brand/CDPR-fankit-terms.txt +35 -0
  8. package/assets/.agent/skills/embedded-captions/assets/brand/cyberpunk-widths.json +115 -0
  9. package/assets/.agent/skills/embedded-captions/assets/fonts/char-widths.json +2211 -0
  10. package/assets/.agent/skills/embedded-captions/assets/strokefonts/HersheyScript1.svg +242 -0
  11. package/assets/.agent/skills/embedded-captions/assets/strokefonts/HersheyScriptMed.svg +242 -0
  12. package/assets/.agent/skills/embedded-captions/dna/README.md +148 -0
  13. package/assets/.agent/skills/embedded-captions/dna/chrome.json +68 -0
  14. package/assets/.agent/skills/embedded-captions/dna/cream.json +69 -0
  15. package/assets/.agent/skills/embedded-captions/dna/documentary.json +62 -0
  16. package/assets/.agent/skills/embedded-captions/dna/editorial.json +70 -0
  17. package/assets/.agent/skills/embedded-captions/dna/glitch.json +82 -0
  18. package/assets/.agent/skills/embedded-captions/dna/ink.json +65 -0
  19. package/assets/.agent/skills/embedded-captions/dna/keynote.json +62 -0
  20. package/assets/.agent/skills/embedded-captions/dna/loud.json +75 -0
  21. package/assets/.agent/skills/embedded-captions/dna/neon.json +58 -0
  22. package/assets/.agent/skills/embedded-captions/dna/velocity.json +89 -0
  23. package/assets/.agent/skills/embedded-captions/modes/cinematic/README.md +48 -0
  24. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/champion/spec.md +98 -0
  25. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/champion/template.html +188 -0
  26. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/memory-wall/spec.md +134 -0
  27. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/memory-wall/template.html +179 -0
  28. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/portrait-header/spec.md +81 -0
  29. package/assets/.agent/skills/embedded-captions/modes/cinematic/_archive/portrait-header/template.html +170 -0
  30. package/assets/.agent/skills/embedded-captions/modes/cinematic/cinematic-cream/spec.md +16 -0
  31. package/assets/.agent/skills/embedded-captions/modes/cinematic/cinematic-cream/template.html +226 -0
  32. package/assets/.agent/skills/embedded-captions/modes/cinematic/engine.html +355 -0
  33. package/assets/.agent/skills/embedded-captions/modes/standard/_anatomy.md +233 -0
  34. package/assets/.agent/skills/embedded-captions/modes/standard/_motion.md +192 -0
  35. package/assets/.agent/skills/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +97 -0
  36. package/assets/.agent/skills/embedded-captions/references/aesthetic-principles.md +168 -0
  37. package/assets/.agent/skills/embedded-captions/references/anti-patterns.md +188 -0
  38. package/assets/.agent/skills/embedded-captions/references/bespoke-vs-presets.md +178 -0
  39. package/assets/.agent/skills/embedded-captions/references/caption-grouping.md +130 -0
  40. package/assets/.agent/skills/embedded-captions/references/composition-craft.md +522 -0
  41. package/assets/.agent/skills/embedded-captions/references/direction-catalog.md +138 -0
  42. package/assets/.agent/skills/embedded-captions/references/example-renders/champion.html +371 -0
  43. package/assets/.agent/skills/embedded-captions/references/example-renders/memory-wall.html +334 -0
  44. package/assets/.agent/skills/embedded-captions/references/failure-modes.md +145 -0
  45. package/assets/.agent/skills/embedded-captions/references/layout-heuristics.md +238 -0
  46. package/assets/.agent/skills/embedded-captions/references/motion-vocabulary.md +148 -0
  47. package/assets/.agent/skills/embedded-captions/references/rail.md +68 -0
  48. package/assets/.agent/skills/embedded-captions/references/reference-bar.md +47 -0
  49. package/assets/.agent/skills/embedded-captions/references/scene-types.md +94 -0
  50. package/assets/.agent/skills/embedded-captions/references/test-set.md +66 -0
  51. package/assets/.agent/skills/embedded-captions/references/typographic-moves.md +266 -0
  52. package/assets/.agent/skills/embedded-captions/references/typography-presets.md +63 -0
  53. package/assets/.agent/skills/embedded-captions/scripts/audio-envelope.cjs +95 -0
  54. package/assets/.agent/skills/embedded-captions/scripts/check-occlusion.cjs +250 -0
  55. package/assets/.agent/skills/embedded-captions/scripts/check-overflow.cjs +194 -0
  56. package/assets/.agent/skills/embedded-captions/scripts/check-rail-climax.cjs +233 -0
  57. package/assets/.agent/skills/embedded-captions/scripts/check-timing.cjs +173 -0
  58. package/assets/.agent/skills/embedded-captions/scripts/fill-timings.cjs +124 -0
  59. package/assets/.agent/skills/embedded-captions/scripts/fit-fonts.cjs +158 -0
  60. package/assets/.agent/skills/embedded-captions/scripts/gen-stroke-path.py +46 -0
  61. package/assets/.agent/skills/embedded-captions/scripts/inject-fonts.cjs +169 -0
  62. package/assets/.agent/skills/embedded-captions/scripts/lib-dna.cjs +201 -0
  63. package/assets/.agent/skills/embedded-captions/scripts/make-cinematic.cjs +1205 -0
  64. package/assets/.agent/skills/embedded-captions/scripts/make-composition.cjs +404 -0
  65. package/assets/.agent/skills/embedded-captions/scripts/make-theme.cjs +8781 -0
  66. package/assets/.agent/skills/embedded-captions/scripts/matte.cjs +279 -0
  67. package/assets/.agent/skills/embedded-captions/scripts/measure-layout.cjs +293 -0
  68. package/assets/.agent/skills/embedded-captions/scripts/prepare.sh +39 -0
  69. package/assets/.agent/skills/embedded-captions/scripts/preview-frames.cjs +268 -0
  70. package/assets/.agent/skills/embedded-captions/scripts/render-and-composite.sh +469 -0
  71. package/assets/.agent/skills/embedded-captions/scripts/render-theme.sh +34 -0
  72. package/assets/.agent/skills/embedded-captions/scripts/safe-zones.cjs +813 -0
  73. package/assets/.agent/skills/embedded-captions/scripts/transcribe.cjs +332 -0
  74. package/assets/.agent/skills/embedded-captions/themes/PORTING.md +49 -0
  75. package/assets/.agent/skills/embedded-captions/themes/README.md +244 -0
  76. package/assets/.agent/skills/embedded-captions/themes/anchor.json +27 -0
  77. package/assets/.agent/skills/embedded-captions/themes/arcade.json +51 -0
  78. package/assets/.agent/skills/embedded-captions/themes/aurora.json +41 -0
  79. package/assets/.agent/skills/embedded-captions/themes/biolume.json +35 -0
  80. package/assets/.agent/skills/embedded-captions/themes/brush.json +74 -0
  81. package/assets/.agent/skills/embedded-captions/themes/chalkboard.json +52 -0
  82. package/assets/.agent/skills/embedded-captions/themes/dossier.json +56 -0
  83. package/assets/.agent/skills/embedded-captions/themes/graffiti.json +62 -0
  84. package/assets/.agent/skills/embedded-captions/themes/hologram.json +41 -0
  85. package/assets/.agent/skills/embedded-captions/themes/inkwater.json +43 -0
  86. package/assets/.agent/skills/embedded-captions/themes/laser.json +46 -0
  87. package/assets/.agent/skills/embedded-captions/themes/lastpage.json +33 -0
  88. package/assets/.agent/skills/embedded-captions/themes/neonsign.json +53 -0
  89. package/assets/.agent/skills/embedded-captions/themes/nightcity.json +56 -0
  90. package/assets/.agent/skills/embedded-captions/themes/ordnance.json +54 -0
  91. package/assets/.agent/skills/embedded-captions/themes/papercut.json +37 -0
  92. package/assets/.agent/skills/embedded-captions/themes/popup.json +46 -0
  93. package/assets/.agent/skills/embedded-captions/themes/ransom.json +62 -0
  94. package/assets/.agent/skills/embedded-captions/themes/scoreboard.json +54 -0
  95. package/assets/.agent/skills/embedded-captions/themes/spectrum.json +46 -0
  96. package/assets/.agent/skills/embedded-captions/themes/stardust.json +29 -0
  97. package/assets/.agent/skills/embedded-captions/themes/stomp.json +43 -0
  98. package/assets/.agent/skills/embedded-captions/themes/terminal.json +49 -0
  99. package/assets/.agent/skills/embedded-captions/themes/thunder.json +44 -0
  100. package/assets/.agent/skills/embedded-captions/themes/transit.json +44 -0
  101. package/assets/.agent/skills/embedded-captions/themes/vhs.json +47 -0
  102. package/assets/.agent/skills/faceless-explainer/SKILL.md +209 -0
  103. package/assets/.agent/skills/faceless-explainer/references/cut-catalog.md +215 -0
  104. package/assets/.agent/skills/faceless-explainer/references/motion-language.md +156 -0
  105. package/assets/.agent/skills/faceless-explainer/references/story-design.md +248 -0
  106. package/assets/.agent/skills/faceless-explainer/references/visual-design.md +146 -0
  107. package/assets/.agent/skills/faceless-explainer/scripts/assemble-index.mjs +570 -0
  108. package/assets/.agent/skills/faceless-explainer/scripts/audio.mjs +253 -0
  109. package/assets/.agent/skills/faceless-explainer/scripts/build-frame.mjs +536 -0
  110. package/assets/.agent/skills/faceless-explainer/scripts/captions.mjs +508 -0
  111. package/assets/.agent/skills/faceless-explainer/scripts/lib/assets.mjs +55 -0
  112. package/assets/.agent/skills/faceless-explainer/scripts/lib/dimensions.mjs +45 -0
  113. package/assets/.agent/skills/faceless-explainer/scripts/lib/storyboard.mjs +249 -0
  114. package/assets/.agent/skills/faceless-explainer/scripts/lib/tokens.mjs +204 -0
  115. package/assets/.agent/skills/faceless-explainer/scripts/lib/transition-registry.mjs +38 -0
  116. package/assets/.agent/skills/faceless-explainer/scripts/lib/transitions.json +71 -0
  117. package/assets/.agent/skills/faceless-explainer/scripts/transitions.mjs +320 -0
  118. package/assets/.agent/skills/faceless-explainer/sub-agents/frame-worker.md +75 -0
  119. package/assets/.agent/skills/figma/SKILL.md +121 -0
  120. package/assets/.agent/skills/general-video/SKILL.md +143 -0
  121. package/assets/.agent/skills/hyperframes/SKILL.md +164 -0
  122. package/assets/.agent/skills/hyperframes-animation/SKILL.md +84 -0
  123. package/assets/.agent/skills/hyperframes-animation/adapters/animate-text.md +64 -0
  124. package/assets/.agent/skills/hyperframes-animation/adapters/animejs.md +114 -0
  125. package/assets/.agent/skills/hyperframes-animation/adapters/css-animations.md +143 -0
  126. package/assets/.agent/skills/hyperframes-animation/adapters/gsap-easing-and-stagger.md +118 -0
  127. package/assets/.agent/skills/hyperframes-animation/adapters/gsap-timeline-and-labels.md +96 -0
  128. package/assets/.agent/skills/hyperframes-animation/adapters/gsap-transforms-and-perf.md +96 -0
  129. package/assets/.agent/skills/hyperframes-animation/adapters/gsap.md +105 -0
  130. package/assets/.agent/skills/hyperframes-animation/adapters/html-in-canvas-patterns.md +507 -0
  131. package/assets/.agent/skills/hyperframes-animation/adapters/lottie.md +117 -0
  132. package/assets/.agent/skills/hyperframes-animation/adapters/three.md +131 -0
  133. package/assets/.agent/skills/hyperframes-animation/adapters/typegpu.md +178 -0
  134. package/assets/.agent/skills/hyperframes-animation/adapters/waapi.md +101 -0
  135. package/assets/.agent/skills/hyperframes-animation/blueprints/comparison-split.md +27 -0
  136. package/assets/.agent/skills/hyperframes-animation/blueprints/constellation-hub.md +44 -0
  137. package/assets/.agent/skills/hyperframes-animation/blueprints/cta-morph-press.md +28 -0
  138. package/assets/.agent/skills/hyperframes-animation/blueprints/cursor-ui-demo.md +57 -0
  139. package/assets/.agent/skills/hyperframes-animation/blueprints/dataviz-countup.md +46 -0
  140. package/assets/.agent/skills/hyperframes-animation/blueprints/device-surface-showcase.md +53 -0
  141. package/assets/.agent/skills/hyperframes-animation/blueprints/grid-card-assemble.md +66 -0
  142. package/assets/.agent/skills/hyperframes-animation/blueprints/kinetic-type-beats.md +78 -0
  143. package/assets/.agent/skills/hyperframes-animation/blueprints/logo-assemble-lockup.md +69 -0
  144. package/assets/.agent/skills/hyperframes-animation/blueprints/overwhelm-surround.md +28 -0
  145. package/assets/.agent/skills/hyperframes-animation/blueprints/spatial-pan-stations.md +37 -0
  146. package/assets/.agent/skills/hyperframes-animation/blueprints/ticker-takeover.md +29 -0
  147. package/assets/.agent/skills/hyperframes-animation/blueprints/titlecard-reveal.md +42 -0
  148. package/assets/.agent/skills/hyperframes-animation/blueprints/typewriter-reveal.md +51 -0
  149. package/assets/.agent/skills/hyperframes-animation/blueprints/video-text-pivot.md +30 -0
  150. package/assets/.agent/skills/hyperframes-animation/blueprints-index.md +146 -0
  151. package/assets/.agent/skills/hyperframes-animation/examples/assets/avatars/02.avif +0 -0
  152. package/assets/.agent/skills/hyperframes-animation/examples/assets/brands/github.avif +0 -0
  153. package/assets/.agent/skills/hyperframes-animation/examples/assets/brands/nvidia.avif +0 -0
  154. package/assets/.agent/skills/hyperframes-animation/examples/assets/brands/visa.avif +0 -0
  155. package/assets/.agent/skills/hyperframes-animation/examples/assets/brands/zoominfo.avif +0 -0
  156. package/assets/.agent/skills/hyperframes-animation/examples/brand-reveal-assemble-zoom.html +382 -0
  157. package/assets/.agent/skills/hyperframes-animation/examples/comparison-split-cards.html +649 -0
  158. package/assets/.agent/skills/hyperframes-animation/examples/concept-demo-decode-pan.html +520 -0
  159. package/assets/.agent/skills/hyperframes-animation/examples/cta-morph-press.html +468 -0
  160. package/assets/.agent/skills/hyperframes-animation/examples/cta-orbit-collapse.html +1298 -0
  161. package/assets/.agent/skills/hyperframes-animation/examples/demo-page-scroll-spotlight.html +759 -0
  162. package/assets/.agent/skills/hyperframes-animation/examples/hook-counter-burst.html +729 -0
  163. package/assets/.agent/skills/hyperframes-animation/examples/messaging-multi-phrase.html +352 -0
  164. package/assets/.agent/skills/hyperframes-animation/examples/metric-video-text-pivot.html +779 -0
  165. package/assets/.agent/skills/hyperframes-animation/examples/problem-mockup-overwhelm.html +1374 -0
  166. package/assets/.agent/skills/hyperframes-animation/examples/proof-logo-chain.html +861 -0
  167. package/assets/.agent/skills/hyperframes-animation/examples/takeover-ticker-displace.html +347 -0
  168. package/assets/.agent/skills/hyperframes-animation/examples/workflow-approve-press.html +606 -0
  169. package/assets/.agent/skills/hyperframes-animation/rules/3d-page-scroll.md +227 -0
  170. package/assets/.agent/skills/hyperframes-animation/rules/3d-text-depth-layers.md +297 -0
  171. package/assets/.agent/skills/hyperframes-animation/rules/ai-tracking-box.md +382 -0
  172. package/assets/.agent/skills/hyperframes-animation/rules/ambient-glow-bloom.md +305 -0
  173. package/assets/.agent/skills/hyperframes-animation/rules/asr-keyword-glow.md +286 -0
  174. package/assets/.agent/skills/hyperframes-animation/rules/avatar-cloud-network.md +371 -0
  175. package/assets/.agent/skills/hyperframes-animation/rules/camera-cursor-tracking.md +246 -0
  176. package/assets/.agent/skills/hyperframes-animation/rules/card-morph-anchor.md +267 -0
  177. package/assets/.agent/skills/hyperframes-animation/rules/center-outward-expansion.md +227 -0
  178. package/assets/.agent/skills/hyperframes-animation/rules/context-sensitive-cursor.md +257 -0
  179. package/assets/.agent/skills/hyperframes-animation/rules/coordinate-target-zoom.md +332 -0
  180. package/assets/.agent/skills/hyperframes-animation/rules/counting-dynamic-scale.md +283 -0
  181. package/assets/.agent/skills/hyperframes-animation/rules/css-marker-patterns.md +373 -0
  182. package/assets/.agent/skills/hyperframes-animation/rules/cursor-click-ripple.md +262 -0
  183. package/assets/.agent/skills/hyperframes-animation/rules/depth-of-field-blur.md +313 -0
  184. package/assets/.agent/skills/hyperframes-animation/rules/depth-scatter-assemble.md +303 -0
  185. package/assets/.agent/skills/hyperframes-animation/rules/discrete-text-sequence.md +273 -0
  186. package/assets/.agent/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +307 -0
  187. package/assets/.agent/skills/hyperframes-animation/rules/gsap-effects.md +299 -0
  188. package/assets/.agent/skills/hyperframes-animation/rules/hacker-flip-3d.md +223 -0
  189. package/assets/.agent/skills/hyperframes-animation/rules/kinetic-beat-slam.md +183 -0
  190. package/assets/.agent/skills/hyperframes-animation/rules/motion-blur-streak.md +328 -0
  191. package/assets/.agent/skills/hyperframes-animation/rules/multi-phase-camera.md +273 -0
  192. package/assets/.agent/skills/hyperframes-animation/rules/orbit-3d-entry.md +301 -0
  193. package/assets/.agent/skills/hyperframes-animation/rules/physics-press-reaction.md +350 -0
  194. package/assets/.agent/skills/hyperframes-animation/rules/press-release-spring.md +296 -0
  195. package/assets/.agent/skills/hyperframes-animation/rules/reactive-displacement.md +277 -0
  196. package/assets/.agent/skills/hyperframes-animation/rules/scale-swap-transition.md +298 -0
  197. package/assets/.agent/skills/hyperframes-animation/rules/sine-wave-loop.md +278 -0
  198. package/assets/.agent/skills/hyperframes-animation/rules/split-tilt-cards.md +277 -0
  199. package/assets/.agent/skills/hyperframes-animation/rules/spring-pop-entrance.md +273 -0
  200. package/assets/.agent/skills/hyperframes-animation/rules/stat-bars-and-fills.md +156 -0
  201. package/assets/.agent/skills/hyperframes-animation/rules/svg-icon-enrichment.md +329 -0
  202. package/assets/.agent/skills/hyperframes-animation/rules/svg-path-draw.md +274 -0
  203. package/assets/.agent/skills/hyperframes-animation/rules/vertical-spring-ticker.md +239 -0
  204. package/assets/.agent/skills/hyperframes-animation/rules/viewport-change.md +349 -0
  205. package/assets/.agent/skills/hyperframes-animation/rules-index.md +86 -0
  206. package/assets/.agent/skills/hyperframes-animation/scripts/animation-map.mjs +606 -0
  207. package/assets/.agent/skills/hyperframes-animation/scripts/package-loader.mjs +288 -0
  208. package/assets/.agent/skills/hyperframes-animation/scripts/package-loader.test.mjs +62 -0
  209. package/assets/.agent/skills/hyperframes-animation/techniques.md +507 -0
  210. package/assets/.agent/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +167 -0
  211. package/assets/.agent/skills/hyperframes-animation/transitions/catalog.md +127 -0
  212. package/assets/.agent/skills/hyperframes-animation/transitions/css-3d.md +12 -0
  213. package/assets/.agent/skills/hyperframes-animation/transitions/css-blur.md +51 -0
  214. package/assets/.agent/skills/hyperframes-animation/transitions/css-cover.md +43 -0
  215. package/assets/.agent/skills/hyperframes-animation/transitions/css-destruction.md +95 -0
  216. package/assets/.agent/skills/hyperframes-animation/transitions/css-dissolve.md +66 -0
  217. package/assets/.agent/skills/hyperframes-animation/transitions/css-distortion.md +45 -0
  218. package/assets/.agent/skills/hyperframes-animation/transitions/css-grid.md +10 -0
  219. package/assets/.agent/skills/hyperframes-animation/transitions/css-light.md +49 -0
  220. package/assets/.agent/skills/hyperframes-animation/transitions/css-mechanical.md +30 -0
  221. package/assets/.agent/skills/hyperframes-animation/transitions/css-other.md +25 -0
  222. package/assets/.agent/skills/hyperframes-animation/transitions/css-push.md +41 -0
  223. package/assets/.agent/skills/hyperframes-animation/transitions/css-radial.md +37 -0
  224. package/assets/.agent/skills/hyperframes-animation/transitions/css-scale.md +24 -0
  225. package/assets/.agent/skills/hyperframes-animation/transitions/overview.md +153 -0
  226. package/assets/.agent/skills/hyperframes-cli/SKILL.md +113 -0
  227. package/assets/.agent/skills/hyperframes-cli/references/doctor-browser.md +45 -0
  228. package/assets/.agent/skills/hyperframes-cli/references/init-and-scaffold.md +51 -0
  229. package/assets/.agent/skills/hyperframes-cli/references/lambda.md +132 -0
  230. package/assets/.agent/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
  231. package/assets/.agent/skills/hyperframes-cli/references/preview-render.md +164 -0
  232. package/assets/.agent/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
  233. package/assets/.agent/skills/hyperframes-core/SKILL.md +78 -0
  234. package/assets/.agent/skills/hyperframes-core/references/composition-patterns.md +263 -0
  235. package/assets/.agent/skills/hyperframes-core/references/data-attributes.md +70 -0
  236. package/assets/.agent/skills/hyperframes-core/references/determinism-rules.md +68 -0
  237. package/assets/.agent/skills/hyperframes-core/references/full-screen-motion.md +62 -0
  238. package/assets/.agent/skills/hyperframes-core/references/minimal-composition.md +66 -0
  239. package/assets/.agent/skills/hyperframes-core/references/script-format.md +49 -0
  240. package/assets/.agent/skills/hyperframes-core/references/storyboard-format.md +95 -0
  241. package/assets/.agent/skills/hyperframes-core/references/sub-compositions.md +237 -0
  242. package/assets/.agent/skills/hyperframes-core/references/subagent-dispatch.md +41 -0
  243. package/assets/.agent/skills/hyperframes-core/references/tailwind.md +125 -0
  244. package/assets/.agent/skills/hyperframes-core/references/tracks-and-clips.md +76 -0
  245. package/assets/.agent/skills/hyperframes-core/references/variables-and-media.md +90 -0
  246. package/assets/.agent/skills/hyperframes-creative/SKILL.md +70 -0
  247. package/assets/.agent/skills/hyperframes-creative/frame-presets/biennale-yellow/FRAME.md +289 -0
  248. package/assets/.agent/skills/hyperframes-creative/frame-presets/biennale-yellow/caption-skin.html +221 -0
  249. package/assets/.agent/skills/hyperframes-creative/frame-presets/biennale-yellow/frame-showcase.html +1214 -0
  250. package/assets/.agent/skills/hyperframes-creative/frame-presets/blockframe/FRAME.md +275 -0
  251. package/assets/.agent/skills/hyperframes-creative/frame-presets/blockframe/caption-skin.html +224 -0
  252. package/assets/.agent/skills/hyperframes-creative/frame-presets/blockframe/frame-showcase.html +1347 -0
  253. package/assets/.agent/skills/hyperframes-creative/frame-presets/blue-professional/FRAME.md +307 -0
  254. package/assets/.agent/skills/hyperframes-creative/frame-presets/blue-professional/caption-skin.html +223 -0
  255. package/assets/.agent/skills/hyperframes-creative/frame-presets/blue-professional/frame-showcase.html +1372 -0
  256. package/assets/.agent/skills/hyperframes-creative/frame-presets/bold-poster/FRAME.md +275 -0
  257. package/assets/.agent/skills/hyperframes-creative/frame-presets/bold-poster/caption-skin.html +230 -0
  258. package/assets/.agent/skills/hyperframes-creative/frame-presets/bold-poster/frame-showcase.html +1140 -0
  259. package/assets/.agent/skills/hyperframes-creative/frame-presets/broadside/FRAME.md +284 -0
  260. package/assets/.agent/skills/hyperframes-creative/frame-presets/broadside/caption-skin.html +225 -0
  261. package/assets/.agent/skills/hyperframes-creative/frame-presets/broadside/frame-showcase.html +1166 -0
  262. package/assets/.agent/skills/hyperframes-creative/frame-presets/capsule/FRAME.md +284 -0
  263. package/assets/.agent/skills/hyperframes-creative/frame-presets/capsule/caption-skin.html +224 -0
  264. package/assets/.agent/skills/hyperframes-creative/frame-presets/capsule/frame-showcase.html +1465 -0
  265. package/assets/.agent/skills/hyperframes-creative/frame-presets/cartesian/FRAME.md +278 -0
  266. package/assets/.agent/skills/hyperframes-creative/frame-presets/cartesian/caption-skin.html +222 -0
  267. package/assets/.agent/skills/hyperframes-creative/frame-presets/cartesian/frame-showcase.html +1263 -0
  268. package/assets/.agent/skills/hyperframes-creative/frame-presets/claude/FRAME.md +277 -0
  269. package/assets/.agent/skills/hyperframes-creative/frame-presets/claude/caption-skin.html +224 -0
  270. package/assets/.agent/skills/hyperframes-creative/frame-presets/claude/frame-showcase.html +1439 -0
  271. package/assets/.agent/skills/hyperframes-creative/frame-presets/cobalt-grid/FRAME.md +265 -0
  272. package/assets/.agent/skills/hyperframes-creative/frame-presets/cobalt-grid/caption-skin.html +238 -0
  273. package/assets/.agent/skills/hyperframes-creative/frame-presets/cobalt-grid/frame-showcase.html +1468 -0
  274. package/assets/.agent/skills/hyperframes-creative/frame-presets/coral/FRAME.md +314 -0
  275. package/assets/.agent/skills/hyperframes-creative/frame-presets/coral/caption-skin.html +226 -0
  276. package/assets/.agent/skills/hyperframes-creative/frame-presets/coral/frame-showcase.html +1268 -0
  277. package/assets/.agent/skills/hyperframes-creative/frame-presets/creative-mode/FRAME.md +333 -0
  278. package/assets/.agent/skills/hyperframes-creative/frame-presets/creative-mode/caption-skin.html +227 -0
  279. package/assets/.agent/skills/hyperframes-creative/frame-presets/creative-mode/frame-showcase.html +1330 -0
  280. package/assets/.agent/skills/hyperframes-creative/frame-presets/daisy-days/FRAME.md +274 -0
  281. package/assets/.agent/skills/hyperframes-creative/frame-presets/daisy-days/caption-skin.html +230 -0
  282. package/assets/.agent/skills/hyperframes-creative/frame-presets/daisy-days/frame-showcase.html +1444 -0
  283. package/assets/.agent/skills/hyperframes-creative/frame-presets/editorial-forest/FRAME.md +265 -0
  284. package/assets/.agent/skills/hyperframes-creative/frame-presets/editorial-forest/caption-skin.html +223 -0
  285. package/assets/.agent/skills/hyperframes-creative/frame-presets/editorial-forest/frame-showcase.html +1273 -0
  286. package/assets/.agent/skills/hyperframes-creative/palettes/bold-energetic.md +14 -0
  287. package/assets/.agent/skills/hyperframes-creative/palettes/clean-corporate.md +14 -0
  288. package/assets/.agent/skills/hyperframes-creative/palettes/dark-premium.md +14 -0
  289. package/assets/.agent/skills/hyperframes-creative/palettes/jewel-rich.md +14 -0
  290. package/assets/.agent/skills/hyperframes-creative/palettes/monochrome.md +14 -0
  291. package/assets/.agent/skills/hyperframes-creative/palettes/nature-earth.md +14 -0
  292. package/assets/.agent/skills/hyperframes-creative/palettes/neon-electric.md +14 -0
  293. package/assets/.agent/skills/hyperframes-creative/palettes/pastel-soft.md +14 -0
  294. package/assets/.agent/skills/hyperframes-creative/palettes/warm-editorial.md +14 -0
  295. package/assets/.agent/skills/hyperframes-creative/references/audio-reactive.md +76 -0
  296. package/assets/.agent/skills/hyperframes-creative/references/beat-direction.md +164 -0
  297. package/assets/.agent/skills/hyperframes-creative/references/composition-patterns.md +199 -0
  298. package/assets/.agent/skills/hyperframes-creative/references/data-in-motion.md +19 -0
  299. package/assets/.agent/skills/hyperframes-creative/references/design-adherence.md +19 -0
  300. package/assets/.agent/skills/hyperframes-creative/references/design-picker.md +123 -0
  301. package/assets/.agent/skills/hyperframes-creative/references/design-spec.md +55 -0
  302. package/assets/.agent/skills/hyperframes-creative/references/house-style.md +73 -0
  303. package/assets/.agent/skills/hyperframes-creative/references/motion-principles.md +150 -0
  304. package/assets/.agent/skills/hyperframes-creative/references/narration.md +92 -0
  305. package/assets/.agent/skills/hyperframes-creative/references/prompt-expansion.md +68 -0
  306. package/assets/.agent/skills/hyperframes-creative/references/typography.md +218 -0
  307. package/assets/.agent/skills/hyperframes-creative/references/video-composition.md +63 -0
  308. package/assets/.agent/skills/hyperframes-creative/references/visual-styles.md +457 -0
  309. package/assets/.agent/skills/hyperframes-creative/scripts/contrast-report.mjs +353 -0
  310. package/assets/.agent/skills/hyperframes-creative/scripts/extract-audio-data.py +188 -0
  311. package/assets/.agent/skills/hyperframes-creative/scripts/package-loader.mjs +288 -0
  312. package/assets/.agent/skills/hyperframes-creative/scripts/package-loader.test.mjs +62 -0
  313. package/assets/.agent/skills/hyperframes-creative/templates/design-picker.html +1432 -0
  314. package/assets/.agent/skills/hyperframes-keyframes/SKILL.md +237 -0
  315. package/assets/.agent/skills/hyperframes-keyframes/agents/openai.yaml +4 -0
  316. package/assets/.agent/skills/hyperframes-keyframes/references/keyframe-patterns.md +106 -0
  317. package/assets/.agent/skills/hyperframes-media/SKILL.md +97 -0
  318. package/assets/.agent/skills/hyperframes-media/assets/sfx/CREDITS.md +35 -0
  319. package/assets/.agent/skills/hyperframes-media/assets/sfx/manifest.json +97 -0
  320. package/assets/.agent/skills/hyperframes-media/references/bgm.md +72 -0
  321. package/assets/.agent/skills/hyperframes-media/references/captions/authoring.md +159 -0
  322. package/assets/.agent/skills/hyperframes-media/references/captions/motion.md +87 -0
  323. package/assets/.agent/skills/hyperframes-media/references/captions/transcript-handling.md +97 -0
  324. package/assets/.agent/skills/hyperframes-media/references/remove-background.md +143 -0
  325. package/assets/.agent/skills/hyperframes-media/references/requirements.md +29 -0
  326. package/assets/.agent/skills/hyperframes-media/references/sfx.md +42 -0
  327. package/assets/.agent/skills/hyperframes-media/references/transcribe.md +52 -0
  328. package/assets/.agent/skills/hyperframes-media/references/tts-to-captions.md +24 -0
  329. package/assets/.agent/skills/hyperframes-media/references/tts.md +135 -0
  330. package/assets/.agent/skills/hyperframes-media/scripts/audio.mjs +293 -0
  331. package/assets/.agent/skills/hyperframes-media/scripts/heygen-tts.mjs +121 -0
  332. package/assets/.agent/skills/hyperframes-media/scripts/lib/bgm.mjs +235 -0
  333. package/assets/.agent/skills/hyperframes-media/scripts/lib/concurrency.mjs +14 -0
  334. package/assets/.agent/skills/hyperframes-media/scripts/lib/concurrency.test.mjs +41 -0
  335. package/assets/.agent/skills/hyperframes-media/scripts/lib/heygen.mjs +131 -0
  336. package/assets/.agent/skills/hyperframes-media/scripts/lib/sfx.mjs +128 -0
  337. package/assets/.agent/skills/hyperframes-media/scripts/lib/tts.mjs +298 -0
  338. package/assets/.agent/skills/hyperframes-media/scripts/lib/tts.spawn.test.mjs +97 -0
  339. package/assets/.agent/skills/hyperframes-media/scripts/lib/tts.test.mjs +66 -0
  340. package/assets/.agent/skills/hyperframes-media/scripts/lyria-recipe.py +128 -0
  341. package/assets/.agent/skills/hyperframes-media/scripts/wait-bgm.mjs +167 -0
  342. package/assets/.agent/skills/hyperframes-registry/SKILL.md +101 -0
  343. package/assets/.agent/skills/hyperframes-registry/examples/add-block.md +51 -0
  344. package/assets/.agent/skills/hyperframes-registry/examples/add-component.md +73 -0
  345. package/assets/.agent/skills/hyperframes-registry/references/contributing.md +166 -0
  346. package/assets/.agent/skills/hyperframes-registry/references/demo-html-pattern.md +54 -0
  347. package/assets/.agent/skills/hyperframes-registry/references/discovery.md +215 -0
  348. package/assets/.agent/skills/hyperframes-registry/references/install-locations.md +45 -0
  349. package/assets/.agent/skills/hyperframes-registry/references/templates.md +417 -0
  350. package/assets/.agent/skills/hyperframes-registry/references/wiring-blocks.md +61 -0
  351. package/assets/.agent/skills/hyperframes-registry/references/wiring-components.md +39 -0
  352. package/assets/.agent/skills/media-use/SKILL.md +124 -0
  353. package/assets/.agent/skills/media-use/scripts/eval.mjs +369 -0
  354. package/assets/.agent/skills/media-use/scripts/lib/adopt.mjs +112 -0
  355. package/assets/.agent/skills/media-use/scripts/lib/bgm-provider.mjs +20 -0
  356. package/assets/.agent/skills/media-use/scripts/lib/brand-provider.mjs +59 -0
  357. package/assets/.agent/skills/media-use/scripts/lib/cache.mjs +114 -0
  358. package/assets/.agent/skills/media-use/scripts/lib/freeze.mjs +26 -0
  359. package/assets/.agent/skills/media-use/scripts/lib/heygen-search.mjs +51 -0
  360. package/assets/.agent/skills/media-use/scripts/lib/image-provider.mjs +44 -0
  361. package/assets/.agent/skills/media-use/scripts/lib/index-gen.mjs +63 -0
  362. package/assets/.agent/skills/media-use/scripts/lib/manifest.mjs +91 -0
  363. package/assets/.agent/skills/media-use/scripts/lib/manifest.test.mjs +293 -0
  364. package/assets/.agent/skills/media-use/scripts/lib/probe.mjs +39 -0
  365. package/assets/.agent/skills/media-use/scripts/lib/probe.test.mjs +31 -0
  366. package/assets/.agent/skills/media-use/scripts/lib/providers.mjs +29 -0
  367. package/assets/.agent/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  368. package/assets/.agent/skills/media-use/scripts/resolve.mjs +247 -0
  369. package/assets/.agent/skills/media-use/scripts/resolve.test.mjs +247 -0
  370. package/assets/.agent/skills/motion-graphics/SKILL.md +172 -0
  371. package/assets/.agent/skills/motion-graphics/agents/builder.md +40 -0
  372. package/assets/.agent/skills/motion-graphics/agents/director.md +53 -0
  373. package/assets/.agent/skills/motion-graphics/agents/finalize.md +17 -0
  374. package/assets/.agent/skills/motion-graphics/catalog-map.md +40 -0
  375. package/assets/.agent/skills/motion-graphics/categories/asset-fusion/module.md +37 -0
  376. package/assets/.agent/skills/motion-graphics/categories/charts/module.md +21 -0
  377. package/assets/.agent/skills/motion-graphics/categories/kinetic-type/module.md +19 -0
  378. package/assets/.agent/skills/motion-graphics/categories/logo-reveal/module.md +17 -0
  379. package/assets/.agent/skills/motion-graphics/categories/lower-thirds/module.md +16 -0
  380. package/assets/.agent/skills/motion-graphics/categories/maps/bake-basemap.mjs +273 -0
  381. package/assets/.agent/skills/motion-graphics/categories/maps/module.md +61 -0
  382. package/assets/.agent/skills/motion-graphics/categories/news/module.md +56 -0
  383. package/assets/.agent/skills/motion-graphics/categories/stat/module.md +21 -0
  384. package/assets/.agent/skills/motion-graphics/categories/tweet/module.md +16 -0
  385. package/assets/.agent/skills/motion-graphics/categories/webpage/module.md +21 -0
  386. package/assets/.agent/skills/motion-graphics/grounding/PROTOCOL.md +64 -0
  387. package/assets/.agent/skills/motion-graphics/grounding/locate.mjs +227 -0
  388. package/assets/.agent/skills/motion-graphics/phases/source/guide.md +21 -0
  389. package/assets/.agent/skills/motion-graphics/references/builder-contract.md +38 -0
  390. package/assets/.agent/skills/motion-graphics/references/motion-vocabulary.md +43 -0
  391. package/assets/.agent/skills/motion-graphics/references/shot-plan-ir.md +54 -0
  392. package/assets/.agent/skills/motion-graphics/samples/asset-fusion/_ref-circle-highlight.html +306 -0
  393. package/assets/.agent/skills/music-to-video/SKILL.md +197 -0
  394. package/assets/.agent/skills/music-to-video/references/frame-skeleton.md +100 -0
  395. package/assets/.agent/skills/music-to-video/references/montage.md +58 -0
  396. package/assets/.agent/skills/music-to-video/references/motion-primitive-catalog.md +75 -0
  397. package/assets/.agent/skills/music-to-video/references/motion-primitives/3d-card-flip/index.html +154 -0
  398. package/assets/.agent/skills/music-to-video/references/motion-primitives/assets/gsap.min.js +11 -0
  399. package/assets/.agent/skills/music-to-video/references/motion-primitives/bg-flow-field/index.html +326 -0
  400. package/assets/.agent/skills/music-to-video/references/motion-primitives/binary-decrypt/index.html +120 -0
  401. package/assets/.agent/skills/music-to-video/references/motion-primitives/blur-resolve/index.html +95 -0
  402. package/assets/.agent/skills/music-to-video/references/motion-primitives/braam-punch/index.html +135 -0
  403. package/assets/.agent/skills/music-to-video/references/motion-primitives/chromatic-split/index.html +146 -0
  404. package/assets/.agent/skills/music-to-video/references/motion-primitives/chrome-sweep/index.html +103 -0
  405. package/assets/.agent/skills/music-to-video/references/motion-primitives/counting-punch/index.html +154 -0
  406. package/assets/.agent/skills/music-to-video/references/motion-primitives/crash-zoom-in/index.html +155 -0
  407. package/assets/.agent/skills/music-to-video/references/motion-primitives/datamosh-smear/index.html +166 -0
  408. package/assets/.agent/skills/music-to-video/references/motion-primitives/directional-fill/index.html +133 -0
  409. package/assets/.agent/skills/music-to-video/references/motion-primitives/dolly-zoom/index.html +137 -0
  410. package/assets/.agent/skills/music-to-video/references/motion-primitives/electric-arc/index.html +144 -0
  411. package/assets/.agent/skills/music-to-video/references/motion-primitives/flash-cut/index.html +132 -0
  412. package/assets/.agent/skills/music-to-video/references/motion-primitives/gooey-metaball/index.html +241 -0
  413. package/assets/.agent/skills/music-to-video/references/motion-primitives/hard-cut/index.html +117 -0
  414. package/assets/.agent/skills/music-to-video/references/motion-primitives/hypercut-whip/index.html +79 -0
  415. package/assets/.agent/skills/music-to-video/references/motion-primitives/iris-open/index.html +104 -0
  416. package/assets/.agent/skills/music-to-video/references/motion-primitives/kinetic-letter-in/index.html +92 -0
  417. package/assets/.agent/skills/music-to-video/references/motion-primitives/liquid-morph/index.html +131 -0
  418. package/assets/.agent/skills/music-to-video/references/motion-primitives/mask-reveal/index.html +109 -0
  419. package/assets/.agent/skills/music-to-video/references/motion-primitives/mosaic-pack/index.html +124 -0
  420. package/assets/.agent/skills/music-to-video/references/motion-primitives/neon-flicker/index.html +108 -0
  421. package/assets/.agent/skills/music-to-video/references/motion-primitives/outline-to-fill/index.html +117 -0
  422. package/assets/.agent/skills/music-to-video/references/motion-primitives/palette-flip/index.html +132 -0
  423. package/assets/.agent/skills/music-to-video/references/motion-primitives/particle-burst/index.html +141 -0
  424. package/assets/.agent/skills/music-to-video/references/motion-primitives/pixel-dissolve/index.html +121 -0
  425. package/assets/.agent/skills/music-to-video/references/motion-primitives/radial-burst-lines/index.html +160 -0
  426. package/assets/.agent/skills/music-to-video/references/motion-primitives/screen-shake/index.html +113 -0
  427. package/assets/.agent/skills/music-to-video/references/motion-primitives/slot-machine-reveal/index.html +130 -0
  428. package/assets/.agent/skills/music-to-video/references/motion-primitives/spotlight-sweep/index.html +137 -0
  429. package/assets/.agent/skills/music-to-video/references/motion-primitives/staggered-exit/index.html +117 -0
  430. package/assets/.agent/skills/music-to-video/references/motion-primitives/text-spectral-rays/USAGE.md +42 -0
  431. package/assets/.agent/skills/music-to-video/references/motion-primitives/text-spectral-rays/index.html +313 -0
  432. package/assets/.agent/skills/music-to-video/references/motion-primitives/text-wave-distort/index.html +136 -0
  433. package/assets/.agent/skills/music-to-video/references/motion-primitives/tile-mosaic/index.html +144 -0
  434. package/assets/.agent/skills/music-to-video/references/motion-primitives/typewriter-reveal/index.html +122 -0
  435. package/assets/.agent/skills/music-to-video/references/motion-primitives/word-grid-burst/index.html +126 -0
  436. package/assets/.agent/skills/music-to-video/references/planning.md +104 -0
  437. package/assets/.agent/skills/music-to-video/references/storyboard-format.md +94 -0
  438. package/assets/.agent/skills/music-to-video/references/template-catalog.md +106 -0
  439. package/assets/.agent/skills/music-to-video/references/templates/card-flyby/index.html +527 -0
  440. package/assets/.agent/skills/music-to-video/references/templates/card-flyby/program.json +13 -0
  441. package/assets/.agent/skills/music-to-video/references/templates/held-message-living-field/index.html +485 -0
  442. package/assets/.agent/skills/music-to-video/references/templates/held-text-strobe-burst/index.html +302 -0
  443. package/assets/.agent/skills/music-to-video/references/templates/intro-kinetic-cascade/index.html +610 -0
  444. package/assets/.agent/skills/music-to-video/references/templates/intro-kinetic-cascade/program.json +41 -0
  445. package/assets/.agent/skills/music-to-video/references/templates/logo-split-lockup-pulse/index.html +596 -0
  446. package/assets/.agent/skills/music-to-video/references/templates/poster-tile-mosaic/index.html +589 -0
  447. package/assets/.agent/skills/music-to-video/references/templates/poster-tile-mosaic/program.json +25 -0
  448. package/assets/.agent/skills/music-to-video/references/templates/roll-flipbook-word-cycle/index.html +267 -0
  449. package/assets/.agent/skills/music-to-video/references/templates/split-anchor-word-slot/index.html +594 -0
  450. package/assets/.agent/skills/music-to-video/references/templates/split-anchor-word-slot/program.json +39 -0
  451. package/assets/.agent/skills/music-to-video/references/templates/typewriter-phrase-keyword-shuffle/index.html +238 -0
  452. package/assets/.agent/skills/music-to-video/scripts/analyze-beatgrid.py +531 -0
  453. package/assets/.agent/skills/music-to-video/scripts/assemble-index.mjs +218 -0
  454. package/assets/.agent/skills/music-to-video/scripts/lib/storyboard.mjs +249 -0
  455. package/assets/.agent/skills/music-to-video/scripts/stage-assets.mjs +58 -0
  456. package/assets/.agent/skills/music-to-video/scripts/validate-plan.mjs +161 -0
  457. package/assets/.agent/skills/music-to-video/sub-agents/frame-worker.md +75 -0
  458. package/assets/.agent/skills/pr-to-video/SKILL.md +240 -0
  459. package/assets/.agent/skills/pr-to-video/references/code-vocabulary.md +111 -0
  460. package/assets/.agent/skills/pr-to-video/references/cut-catalog.md +215 -0
  461. package/assets/.agent/skills/pr-to-video/references/motion-language.md +156 -0
  462. package/assets/.agent/skills/pr-to-video/references/story-design.md +211 -0
  463. package/assets/.agent/skills/pr-to-video/references/visual-design.md +164 -0
  464. package/assets/.agent/skills/pr-to-video/scripts/assemble-index.mjs +570 -0
  465. package/assets/.agent/skills/pr-to-video/scripts/audio.mjs +253 -0
  466. package/assets/.agent/skills/pr-to-video/scripts/build-frame.mjs +536 -0
  467. package/assets/.agent/skills/pr-to-video/scripts/captions.mjs +508 -0
  468. package/assets/.agent/skills/pr-to-video/scripts/fetch-people-avatars.mjs +157 -0
  469. package/assets/.agent/skills/pr-to-video/scripts/fetch-pr.mjs +164 -0
  470. package/assets/.agent/skills/pr-to-video/scripts/ingest.mjs +539 -0
  471. package/assets/.agent/skills/pr-to-video/scripts/lib/assets.mjs +55 -0
  472. package/assets/.agent/skills/pr-to-video/scripts/lib/dimensions.mjs +45 -0
  473. package/assets/.agent/skills/pr-to-video/scripts/lib/storyboard.mjs +249 -0
  474. package/assets/.agent/skills/pr-to-video/scripts/lib/tokens.mjs +204 -0
  475. package/assets/.agent/skills/pr-to-video/scripts/lib/transition-registry.mjs +38 -0
  476. package/assets/.agent/skills/pr-to-video/scripts/lib/transitions.json +71 -0
  477. package/assets/.agent/skills/pr-to-video/scripts/transitions.mjs +320 -0
  478. package/assets/.agent/skills/pr-to-video/sub-agents/frame-worker.md +95 -0
  479. package/assets/.agent/skills/product-launch-video/SKILL.md +208 -0
  480. package/assets/.agent/skills/product-launch-video/references/cut-catalog.md +220 -0
  481. package/assets/.agent/skills/product-launch-video/references/motion-language.md +156 -0
  482. package/assets/.agent/skills/product-launch-video/references/story-design.md +373 -0
  483. package/assets/.agent/skills/product-launch-video/references/visual-design.md +126 -0
  484. package/assets/.agent/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
  485. package/assets/.agent/skills/product-launch-video/scripts/audio.mjs +253 -0
  486. package/assets/.agent/skills/product-launch-video/scripts/build-frame.mjs +536 -0
  487. package/assets/.agent/skills/product-launch-video/scripts/captions.mjs +508 -0
  488. package/assets/.agent/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
  489. package/assets/.agent/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
  490. package/assets/.agent/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
  491. package/assets/.agent/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
  492. package/assets/.agent/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
  493. package/assets/.agent/skills/product-launch-video/scripts/lib/transitions.json +71 -0
  494. package/assets/.agent/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
  495. package/assets/.agent/skills/product-launch-video/scripts/transitions.mjs +320 -0
  496. package/assets/.agent/skills/product-launch-video/sub-agents/frame-worker.md +75 -0
  497. package/assets/.agent/skills/remotion-to-hyperframes/SKILL.md +127 -0
  498. package/assets/.agent/skills/remotion-to-hyperframes/assets/.gitkeep +0 -0
  499. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/run.sh +249 -0
  500. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/README.md +41 -0
  501. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/expected.json +26 -0
  502. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +61 -0
  503. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/package.json +14 -0
  504. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/remotion.config.ts +13 -0
  505. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/Root.tsx +13 -0
  506. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/TitleCard.tsx +34 -0
  507. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/index.ts +4 -0
  508. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/tsconfig.json +15 -0
  509. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/README.md +54 -0
  510. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/expected.json +29 -0
  511. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +118 -0
  512. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/package.json +14 -0
  513. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/remotion.config.ts +13 -0
  514. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/MultiScene.tsx +105 -0
  515. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/Root.tsx +13 -0
  516. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/index.ts +4 -0
  517. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/tsconfig.json +15 -0
  518. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/setup.sh +34 -0
  519. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/README.md +85 -0
  520. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +41 -0
  521. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +269 -0
  522. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/package.json +15 -0
  523. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/remotion.config.ts +13 -0
  524. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Root.tsx +27 -0
  525. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Stargazed.tsx +37 -0
  526. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/AnimatedNumber.tsx +23 -0
  527. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/StatCard.tsx +59 -0
  528. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/UnderlinedText.tsx +47 -0
  529. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/index.ts +4 -0
  530. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/OutroScene.tsx +18 -0
  531. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/StatsScene.tsx +34 -0
  532. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/TitleScene.tsx +55 -0
  533. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/tsconfig.json +15 -0
  534. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/README.md +51 -0
  535. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/01-use-state.tsx +29 -0
  536. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/02-use-effect-deps.tsx +29 -0
  537. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/03-async-metadata.tsx +39 -0
  538. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/04-third-party-react.tsx +30 -0
  539. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/05-lambda-config.tsx +38 -0
  540. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/06-warnings-only.tsx +36 -0
  541. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/07-custom-hook.tsx +28 -0
  542. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/08-mixed.tsx +41 -0
  543. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/expected.json +85 -0
  544. package/assets/.agent/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/validate.sh +110 -0
  545. package/assets/.agent/skills/remotion-to-hyperframes/references/api-map.md +142 -0
  546. package/assets/.agent/skills/remotion-to-hyperframes/references/escape-hatch.md +115 -0
  547. package/assets/.agent/skills/remotion-to-hyperframes/references/eval.md +140 -0
  548. package/assets/.agent/skills/remotion-to-hyperframes/references/fonts.md +112 -0
  549. package/assets/.agent/skills/remotion-to-hyperframes/references/limitations.md +136 -0
  550. package/assets/.agent/skills/remotion-to-hyperframes/references/lottie.md +121 -0
  551. package/assets/.agent/skills/remotion-to-hyperframes/references/media.md +149 -0
  552. package/assets/.agent/skills/remotion-to-hyperframes/references/parameters.md +167 -0
  553. package/assets/.agent/skills/remotion-to-hyperframes/references/sequencing.md +195 -0
  554. package/assets/.agent/skills/remotion-to-hyperframes/references/timing.md +165 -0
  555. package/assets/.agent/skills/remotion-to-hyperframes/references/transitions.md +114 -0
  556. package/assets/.agent/skills/remotion-to-hyperframes/scripts/.gitkeep +0 -0
  557. package/assets/.agent/skills/remotion-to-hyperframes/scripts/frame_strip.sh +107 -0
  558. package/assets/.agent/skills/remotion-to-hyperframes/scripts/lint_source.py +358 -0
  559. package/assets/.agent/skills/remotion-to-hyperframes/scripts/render_diff.sh +103 -0
  560. package/assets/.agent/skills/remotion-to-hyperframes/scripts/tests/fixtures/blocker.tsx +50 -0
  561. package/assets/.agent/skills/remotion-to-hyperframes/scripts/tests/fixtures/clean.tsx +46 -0
  562. package/assets/.agent/skills/remotion-to-hyperframes/scripts/tests/smoke.sh +90 -0
  563. package/assets/.agent/skills/slideshow/SKILL.md +550 -0
  564. package/assets/.agent/skills/slideshow/references/standalone-harness.md +1020 -0
  565. package/assets/.agent/skills/talking-head-recut/NOTICE.md +39 -0
  566. package/assets/.agent/skills/talking-head-recut/SKILL.md +1191 -0
  567. package/assets/.agent/skills/talking-head-recut/assets/vendor/gsap.min.js +10 -0
  568. package/assets/.agent/skills/talking-head-recut/references/DESIGN_INDEX.md +145 -0
  569. package/assets/.agent/skills/talking-head-recut/references/frames/clean.html +92 -0
  570. package/assets/.agent/skills/talking-head-recut/references/frames/hairline.html +171 -0
  571. package/assets/.agent/skills/talking-head-recut/references/frames/polaroid.html +131 -0
  572. package/assets/.agent/skills/talking-head-recut/references/layouts/overlay.html +164 -0
  573. package/assets/.agent/skills/talking-head-recut/references/layouts/pip.html +143 -0
  574. package/assets/.agent/skills/talking-head-recut/references/layouts/split.html +121 -0
  575. package/assets/.agent/skills/talking-head-recut/references/layouts/stack.html +109 -0
  576. package/assets/.agent/skills/talking-head-recut/references/styles/academic.html +172 -0
  577. package/assets/.agent/skills/talking-head-recut/references/styles/audit.html +170 -0
  578. package/assets/.agent/skills/talking-head-recut/references/styles/editorial.html +189 -0
  579. package/assets/.agent/skills/talking-head-recut/references/styles/geom.html +181 -0
  580. package/assets/.agent/skills/talking-head-recut/references/styles/minimal.html +130 -0
  581. package/assets/.agent/skills/talking-head-recut/references/styles/spotlight.html +142 -0
  582. package/assets/.agent/skills/talking-head-recut/references/styles/swiss.html +188 -0
  583. package/assets/.agent/skills/talking-head-recut/references/styles/terminal.html +196 -0
  584. package/assets/.agent/skills/talking-head-recut/references/styles/whiteboard.html +170 -0
  585. package/assets/.agent/skills/talking-head-recut/references/styles/xhs.html +206 -0
  586. package/assets/.agent/skills/website-to-video/SKILL.md +145 -0
  587. package/assets/.agent/skills/website-to-video/assets/sfx/CREDITS.md +35 -0
  588. package/assets/.agent/skills/website-to-video/assets/sfx/manifest.json +97 -0
  589. package/assets/.agent/skills/website-to-video/references/beat-builder-guide.md +263 -0
  590. package/assets/.agent/skills/website-to-video/references/capabilities.md +713 -0
  591. package/assets/.agent/skills/website-to-video/references/step-0-capture.md +55 -0
  592. package/assets/.agent/skills/website-to-video/references/step-1-design.md +333 -0
  593. package/assets/.agent/skills/website-to-video/references/step-2-brief.md +178 -0
  594. package/assets/.agent/skills/website-to-video/references/step-3-storyboard.md +572 -0
  595. package/assets/.agent/skills/website-to-video/references/step-4-vo.md +230 -0
  596. package/assets/.agent/skills/website-to-video/references/step-5-build.md +483 -0
  597. package/assets/.agent/skills/website-to-video/references/step-6-validate.md +341 -0
  598. package/assets/.agent/skills/website-to-video/scripts/w2h-verify.mjs +759 -0
  599. package/package.json +1 -1
  600. package/src/skills-catalog.js +32 -0
  601. package/src/takomi-stats.js +3 -0
@@ -0,0 +1,320 @@
1
+ #!/usr/bin/env node
2
+ // transitions.mjs — inter-frame transition injector + verifier for product-launch.
3
+ //
4
+ // inject — read STORYBOARD frame order + each frame's transition_in, overlap
5
+ // the frame clip wrappers in index.html, and stamp the GSAP template.
6
+ // verify — deterministic gate over the injector's output.
7
+ //
8
+ // transition_in (written by story-design on the INCOMING frame) names a registry
9
+ // type directly: crossfade | blur-crossfade | push-slide | zoom-through | squeeze,
10
+ // optionally "<type> <DIR>" / "<type> <N>s" (e.g. "push-slide LEFT", "crossfade
11
+ // 0.4s"). `cut` / `none` / empty ⇒ hard cut (no overlap, no stamp).
12
+ //
13
+ // Mechanics — EXTEND-OUTGOING-ONLY (keeps voice/SFX/captions synced; their timing
14
+ // is keyed to the original frame start). At boundary i→i+1 (type = the incoming
15
+ // frame's transition_in): extend ONLY the outgoing wrapper's data-duration by
16
+ // `dur` so it holds its final frame across the window; do NOT move any data-start;
17
+ // the incoming — already present from the cut on a higher track — fades/pushes in
18
+ // over it. Then 0/1-ping-pong ALL frame clips' data-track-index (adjacent
19
+ // overlapping wrappers never share a track — lint timeline_track_too_dense) and
20
+ // stamp the token-substituted GSAP template into __timelines["main"] at T =
21
+ // incoming start. captions(2)/voice(10)/bgm(11)/sfx(20+) are never touched.
22
+ //
23
+ // node transitions.mjs inject --storyboard ./STORYBOARD.md --hyperframes .
24
+ // node transitions.mjs verify --storyboard ./STORYBOARD.md --index ./index.html
25
+
26
+ import { existsSync, readFileSync, writeFileSync } from "node:fs";
27
+ import { join, resolve } from "node:path";
28
+ import { parseStoryboard } from "./lib/storyboard.mjs";
29
+ import { parseFormat } from "./lib/dimensions.mjs";
30
+ import { loadTransitionRegistry, transitionsByName } from "./lib/transition-registry.mjs";
31
+
32
+ const flag = (argv, name, def) => {
33
+ const i = argv.indexOf(`--${name}`);
34
+ return i >= 0 && i + 1 < argv.length ? argv[i + 1] : def;
35
+ };
36
+ const NO_TRANSITION = new Set(["cut", "none", ""]);
37
+ const r3 = (x) => Number(x.toFixed(3));
38
+
39
+ // transition_in → { type, direction?, dur? } | null (hard cut).
40
+ function parseTransitionIn(raw) {
41
+ const s = (raw ?? "").trim();
42
+ if (NO_TRANSITION.has(s.toLowerCase())) return null;
43
+ const parts = s.split(/\s+/);
44
+ const spec = { type: parts[0].toLowerCase() };
45
+ for (const p of parts.slice(1)) {
46
+ const m = p.match(/^(\d+(?:\.\d+)?)s?$/);
47
+ if (m) spec.dur = Number(m[1]);
48
+ else spec.direction = p.toUpperCase();
49
+ }
50
+ return spec;
51
+ }
52
+
53
+ // Mounted STORYBOARD frames present in index.html, in document order: { id, frame }.
54
+ function mountedFramesInOrder(manifest, html) {
55
+ const out = [];
56
+ for (const f of manifest.frames) {
57
+ if (!f.src) continue;
58
+ const id = f.src
59
+ .split("/")
60
+ .pop()
61
+ .replace(/\.html?$/i, "");
62
+ if (html.includes(`id="el-${id}"`)) out.push({ id, frame: f });
63
+ }
64
+ return out;
65
+ }
66
+
67
+ // Frame clip wrappers parsed out of index.html (ids carry hyphens; excludes
68
+ // el-captions and audio by keying off the known frame-id set). The id is matched
69
+ // from anywhere in the tag's attribute list — never assume it is the first attribute
70
+ // (the index assembler emits data-hf-id before id, so an id-first regex finds nothing
71
+ // and inject crashes on the empty clip map).
72
+ function parseFrameClips(html, frameIds) {
73
+ const clipRe = /<div\b([^>]*)><\/div>/g;
74
+ const clips = new Map();
75
+ let m;
76
+ while ((m = clipRe.exec(html)) !== null) {
77
+ const attrs = m[1];
78
+ const idm = attrs.match(/\bid="el-([A-Za-z0-9_-]+)"/);
79
+ if (!idm || !frameIds.has(idm[1])) continue;
80
+ const num = (re) => {
81
+ const x = attrs.match(re);
82
+ return x ? Number(x[1]) : null;
83
+ };
84
+ clips.set(idm[1], {
85
+ id: idm[1],
86
+ block: m[0],
87
+ start: num(/data-start="([\d.]+)"/),
88
+ duration: num(/data-duration="([\d.]+)"/),
89
+ track: num(/data-track-index="(\d+)"/) ?? 0,
90
+ });
91
+ }
92
+ return clips;
93
+ }
94
+
95
+ // Resolve a transition_in spec to a registry record (calm default on unknown).
96
+ function resolveRecord(spec, byName, reg, warn) {
97
+ let rec = byName.get(spec.type);
98
+ if (!rec) {
99
+ rec = byName.get(reg.default_calm);
100
+ warn(`transition_in "${spec.type}" not in registry — using ${reg.default_calm}`);
101
+ }
102
+ return rec;
103
+ }
104
+ function resolveDur(spec, rec, reg) {
105
+ let dur = spec.dur ?? rec.default_duration_s ?? 0.5;
106
+ return Math.min(dur, reg.max_duration_s ?? 2.0);
107
+ }
108
+
109
+ // GSAP lines for one transition record (token substitution).
110
+ function buildGsap(rec, fromId, toId, dur, T, direction, canvasW, canvasH, die) {
111
+ const subs = {
112
+ __OLD__: `"#el-${fromId}"`,
113
+ __NEW__: `"#el-${toId}"`,
114
+ __T__: String(T),
115
+ __DUR__: String(dur),
116
+ };
117
+ let template;
118
+ if (rec.directions && rec.directions.length > 0) {
119
+ const dir = (direction || rec.default_direction || rec.directions[0]).toUpperCase();
120
+ const vertical = dir === "UP" || dir === "DOWN";
121
+ template = vertical ? rec.gsap_template_vertical : rec.gsap_template_horizontal;
122
+ if (!template)
123
+ die(`transition ${rec.name}: missing ${vertical ? "vertical" : "horizontal"} template`);
124
+ if (vertical) {
125
+ const dy = dir === "UP" ? -canvasH : canvasH;
126
+ subs.__DY__ = String(dy);
127
+ subs.__DYIN__ = String(-dy);
128
+ } else {
129
+ const dx = dir === "LEFT" ? -canvasW : canvasW;
130
+ subs.__DX__ = String(dx);
131
+ subs.__DXIN__ = String(-dx);
132
+ }
133
+ } else {
134
+ template = rec.gsap_template;
135
+ if (!template) die(`transition ${rec.name}: missing gsap_template`);
136
+ }
137
+ return template.map((line) => {
138
+ let out = line;
139
+ for (const [k, v] of Object.entries(subs)) out = out.split(k).join(v);
140
+ return out;
141
+ });
142
+ }
143
+
144
+ function runInject(argv) {
145
+ const hyperframesDir = resolve(flag(argv, "hyperframes", "."));
146
+ const storyboardPath = resolve(flag(argv, "storyboard", join(hyperframesDir, "STORYBOARD.md")));
147
+ const indexPath = join(hyperframesDir, "index.html");
148
+ const die = (msg) => {
149
+ console.error(`✗ transitions inject: ${msg}`);
150
+ process.exit(1);
151
+ };
152
+
153
+ if (!existsSync(storyboardPath)) die(`STORYBOARD.md not found at ${storyboardPath}`);
154
+
155
+ const manifest = parseStoryboard(readFileSync(storyboardPath, "utf8"));
156
+ const { width: CW, height: CH } = parseFormat(manifest.globals.format);
157
+ const reg = loadTransitionRegistry();
158
+ const byName = transitionsByName();
159
+
160
+ // Read directly and handle ENOENT here, rather than an existsSync precheck —
161
+ // the check→write pair (write-back below) is a TOCTOU race CodeQL flags.
162
+ let html = "";
163
+ try {
164
+ html = readFileSync(indexPath, "utf8");
165
+ } catch {
166
+ die(`index.html not found at ${indexPath} — run assemble-index.mjs first`);
167
+ }
168
+ const order = mountedFramesInOrder(manifest, html);
169
+ if (order.length === 0) die("no frame clips found in index.html");
170
+ const frameIds = new Set(order.map((x) => x.id));
171
+ const clips = parseFrameClips(html, frameIds);
172
+
173
+ const gsapLines = [];
174
+ const applied = [];
175
+ for (let i = 1; i < order.length; i++) {
176
+ const spec = parseTransitionIn(order[i].frame.transitionIn);
177
+ if (!spec) continue; // hard cut
178
+ const incoming = clips.get(order[i].id);
179
+ const outgoing = clips.get(order[i - 1].id);
180
+ const rec = resolveRecord(spec, byName, reg, (m) =>
181
+ console.error(` ! frame ${order[i].id}: ${m}`),
182
+ );
183
+ const dur = resolveDur(spec, rec, reg);
184
+ const T = r3(incoming.start); // cut = incoming start (frames tile)
185
+ outgoing.duration = r3(outgoing.duration + dur); // extend outgoing only
186
+ gsapLines.push(
187
+ ...buildGsap(rec, outgoing.id, incoming.id, dur, T, spec.direction, CW, CH, die),
188
+ );
189
+ applied.push({ from: outgoing.id, to: incoming.id, type: rec.name, dur, T });
190
+ }
191
+
192
+ if (applied.length === 0) {
193
+ console.log(`✓ transitions inject: 0 transitions (all cuts) — index.html unchanged`);
194
+ return;
195
+ }
196
+
197
+ // 0/1 ping-pong all frame clips in play order.
198
+ const ordered = [...clips.values()].sort((a, b) => a.start - b.start || a.id.localeCompare(b.id));
199
+ ordered.forEach((c, i) => {
200
+ c.track = i % 2;
201
+ });
202
+
203
+ // rewrite each clip block: start unchanged; duration possibly extended; track ping-ponged.
204
+ for (const c of clips.values()) {
205
+ const nb = c.block
206
+ .replace(/data-duration="[\d.]+"/, `data-duration="${c.duration}"`)
207
+ .replace(/data-track-index="\d+"/, `data-track-index="${c.track}"`);
208
+ html = html.replace(c.block, nb);
209
+ }
210
+
211
+ // stamp the GSAP after the master timeline anchor.
212
+ const anchor = 'window.__timelines["main"] = gsap.timeline({ paused: true });';
213
+ if (!html.includes(anchor)) die("master timeline anchor not found in index.html");
214
+ // The transition tweens alone leave window.__timelines["main"] spanning only the
215
+ // last transition (e.g. 24.7s), shorter than the real composition. The Studio
216
+ // reads main.duration() as its master duration and parses clips against it, so a
217
+ // short master collapses its timeline (clips dropped, duration wrong, blank stage)
218
+ // — the render engine is unaffected (it trusts the root data-duration attr). Stamp
219
+ // a full-span anchor so main.duration() == composition total. Mirrors the
220
+ // `tl.to({}, { duration })` anchor captions.html already uses.
221
+ const rootDurMatch = html.match(/data-composition-id="main"[^>]*?data-duration="([\d.]+)"/);
222
+ const totalDur = rootDurMatch ? Number(rootDurMatch[1]) : null;
223
+ const block = [
224
+ anchor,
225
+ " // ── frame transitions (injected by transitions.mjs) ──",
226
+ ' (function () { var tl = window.__timelines["main"];',
227
+ ...gsapLines.map((l) => " " + l),
228
+ ...(totalDur
229
+ ? [
230
+ ` tl.to({}, { duration: ${totalDur} }, 0); // full-span anchor — main.duration() == composition total (Studio master duration)`,
231
+ ]
232
+ : []),
233
+ " })();",
234
+ ].join("\n");
235
+ html = html.replace(anchor, block);
236
+
237
+ writeFileSync(indexPath, html);
238
+ console.log(`✓ transitions inject: ${applied.length} transition(s) stamped into index.html`);
239
+ for (const a of applied) console.log(` ${a.from}→${a.to}: ${a.type} ${a.dur}s @ T=${a.T}s`);
240
+ const tracks = ordered
241
+ .map((c) => `${c.id}[t${c.track} ${c.start}→${r3(c.start + c.duration)}]`)
242
+ .join(" ");
243
+ console.log(` tracks: ${tracks}`);
244
+ }
245
+
246
+ function runVerify(argv) {
247
+ const hyperframesDir = resolve(flag(argv, "hyperframes", "."));
248
+ const storyboardPath = resolve(flag(argv, "storyboard", join(hyperframesDir, "STORYBOARD.md")));
249
+ const indexPath = resolve(flag(argv, "index", join(hyperframesDir, "index.html")));
250
+ const bail = (msg) => {
251
+ console.error(`✗ transitions verify: ${msg}`);
252
+ process.exit(1);
253
+ };
254
+
255
+ if (!existsSync(storyboardPath)) bail("STORYBOARD.md not found");
256
+ if (!existsSync(indexPath)) bail("index.html not found");
257
+
258
+ const manifest = parseStoryboard(readFileSync(storyboardPath, "utf8"));
259
+ const html = readFileSync(indexPath, "utf8");
260
+ const order = mountedFramesInOrder(manifest, html);
261
+ const frameIds = new Set(order.map((x) => x.id));
262
+ const clips = parseFrameClips(html, frameIds);
263
+
264
+ const EPS = 0.011;
265
+ const overlaps = (a, b) =>
266
+ a.start < b.start + b.duration - EPS && b.start < a.start + a.duration - EPS;
267
+ const fail = [];
268
+
269
+ // (4) global no same-track overlap (the lint invariant).
270
+ const all = [...clips.values()];
271
+ for (let i = 0; i < all.length; i++)
272
+ for (let j = i + 1; j < all.length; j++) {
273
+ const a = all[i];
274
+ const b = all[j];
275
+ if (a.track === b.track && overlaps(a, b))
276
+ fail.push(`same-track overlap: ${a.id}[t${a.track}] & ${b.id}[t${b.track}]`);
277
+ }
278
+
279
+ const bm = html.match(/frame transitions \(injected[\s\S]*?\}\)\(\);/);
280
+ const txBlock = bm ? bm[0] : "";
281
+
282
+ let expected = 0;
283
+ for (let i = 1; i < order.length; i++) {
284
+ const spec = parseTransitionIn(order[i].frame.transitionIn);
285
+ if (!spec) continue;
286
+ expected++;
287
+ const to = clips.get(order[i].id);
288
+ const from = clips.get(order[i - 1].id);
289
+ if (!to || !from) {
290
+ fail.push(`boundary ${order[i - 1].id}→${order[i].id}: wrapper missing`);
291
+ continue;
292
+ }
293
+ if (!txBlock.includes(`"#el-${from.id}"`) || !txBlock.includes(`"#el-${to.id}"`))
294
+ fail.push(`boundary ${from.id}→${to.id}: injected block does not reference both ids`);
295
+ const overlapAmt = r3(from.start + from.duration - to.start);
296
+ if (overlapAmt <= 0) fail.push(`boundary ${from.id}→${to.id}: no overlap (${overlapAmt}s)`);
297
+ if (from.track === to.track)
298
+ fail.push(`boundary ${from.id}→${to.id}: both on track ${from.track}`);
299
+ }
300
+ if (expected > 0 && !txBlock)
301
+ fail.push(`${expected} transition(s) expected but no injected block found`);
302
+
303
+ if (fail.length) {
304
+ console.error(`✗ transitions verify: ${fail.length} failure(s):`);
305
+ for (const f of fail) console.error(` - ${f}`);
306
+ process.exit(1);
307
+ }
308
+ console.log(
309
+ `✓ transitions verify: ${expected} transition(s) verified (cross-track, overlap>0, both ids referenced, no same-track overlap)`,
310
+ );
311
+ }
312
+
313
+ const sub = process.argv[2];
314
+ const rest = process.argv.slice(3);
315
+ if (sub === "inject") runInject(rest);
316
+ else if (sub === "verify") runVerify(rest);
317
+ else {
318
+ console.error("usage: node transitions.mjs <inject|verify> [args...]");
319
+ process.exit(2);
320
+ }
@@ -0,0 +1,75 @@
1
+ # Frame worker — product-launch per-frame composition author
2
+
3
+ > You build **one** frame's composition HTML and nothing else. You run N-up, one frame each — siblings build the others. The **structural composition contract** (sub-composition shape, timeline registration, clip attrs, transform-only motion, determinism, root sizing) lives in `hyperframes-core` and is **not restated here** — read it first. This file carries only what's specific to a product-launch frame. Tempted to add a generic GSAP / timeline rule here? Wrong home — it belongs in `hyperframes-core`.
4
+
5
+ **INPUT** — your dispatch context provides:
6
+
7
+ - `PROJECT_DIR` — the project root; all paths are relative to it.
8
+ - `frame_id` — e.g. `03-feature`. Use it **verbatim** as the composition id, the `window.__timelines` key, and the file name (`compositions/frames/03-feature.html`) — that path **is** the frame's `src` in `STORYBOARD.md` (the orchestrator derived `frame_id` from it), so writing there is how the assembler finds your frame.
9
+ - Your **`## Frame N` block** in `STORYBOARD.md` (read it; never write to that file — see below):
10
+ - `scene` — a one-line contact-sheet caption. **Design intent, never visible DOM text.**
11
+ - `voiceover` — the narration line. **Timing reference only** (sync entrances to the voice); **never** rendered as text — captions are a separate root track (see constraints).
12
+ - `duration` — your render length in seconds. **Fixed upstream; never change it or tween to fill a different length.**
13
+ - `transition_in` — informational. The injector stamps it at the root; **you do not author transitions.**
14
+ - the **time-coded shot sequence** — your build spec. A sequence of Scene lines (`Scene 1 (0.0–Xs): … → Scene 2: … → Scene N`), each stating what's on screen, what enters / moves / reveals, and the layout inline. Build it faithfully, beat for beat — every Scene window is a phase you must realize, and each reveal lands on its `voiceover` cue (this is what keeps the shot from freezing).
15
+ - `blueprint:` — an id (or the literal `compose`). The id points to `../hyperframes-animation/blueprints/<id>.md`: the **product-agnostic shot template** this frame instantiates — the overall shape + its signature move. Read it for the shape; `compose` means there's no template, sequence the shot from the Scene lines directly.
16
+ - `focal:` — which candidate is the hero.
17
+ - `roles:` — each candidate's role: `cutout` foreground / `background` full-bleed / supporting — plus the real media available (each `public/<basename> — description`; a **`[video]`** tag marks a `.mp4` motion clip).
18
+ - `sfx:` — the orchestrator's; you mount no audio.
19
+ - `frame.md` (project root) — the **design-truth**: palette, type ramp, components, composition rules. The LOOK. Pull every visual token from here.
20
+ - `RULES_DIR` — absolute path to this skill's local `../hyperframes-animation/rules/`. The **named motion verbs in the Scene lines** (and the moves the blueprint cites) resolve to rule recipes here: `RULES_DIR/<id>.md` is the mechanics for a motion. (A few rules link an optional runnable demo in the shared `../hyperframes-animation/examples/<id>.html` — open it only when a recipe is unclear.)
21
+ - `../references/cut-catalog.md` — the **cut catalog** (zoom-through / inverse / cut-the-curve / waterfall). When a Scene seam is a within-scene swap, a scene-to-scene cut, or a text-to-text line change, build it INSIDE your composition per this catalog (Z-scale + blur + opacity, or per-word x-staggers). You never author the between-frame transition — story's `transition_in` + the injector own that.
22
+ - Canvas `<width>×<height>` and `Captions: <enabled | disabled>` (+ the keep-out cutoff when enabled).
23
+
24
+ **Retry** — if your context carries lint / validate feedback from a prior pass, read it first and re-author so none of those findings recur; treat each as a hard constraint.
25
+
26
+ **OUTPUT** — `compositions/frames/<frame_id>.html`, one self-contained sub-composition. Writing it (past the self-check below) is your **terminal action** — you do not edit `STORYBOARD.md`, mint audio, assemble the index, run the CLI, or report back. The orchestrator picks up the file and marks the frame's `status`.
27
+
28
+ ## You do NOT decide
29
+
30
+ These belong to other steps — touching them collides with a sibling or breaks an upstream contract:
31
+
32
+ - **What is SAID** — narration is locked in `SCRIPT.md` / the `voiceover` line. You only show; you never write or restate narration text.
33
+ - **Duration** — fixed from real voice timing. Build your entrance to land within it; don't stretch or trim it.
34
+ - **Transitions between frames** — the injector stamps them onto the root timeline. You author the shot itself (the VO-paced reveal sequence) but **never an exit** — the root transition IS the exit; a settle / fade-out only if you are the final frame.
35
+ - **Audio** (narration / BGM / SFX) — assembled at the root by the orchestrator. **No `<audio>` element in your composition.**
36
+ - **Design tokens** — palette / fonts / components come from `frame.md`. Don't invent them, and **never lift a word, label, or wordmark out of `frame.md` as your copy** — it is a style spec, not the product's content. Brand text comes from your frame's `scene` / narrative.
37
+ - **Which motions / assets exist** — named upstream in your block (the shot sequence's motion verbs + `blueprint:`, the candidate media in `roles:` / `focal:`). Implement them; don't fetch or invent new ones (you have no asset-fetch tool — never fabricate an image URL).
38
+ - **The shared `STORYBOARD.md`** — read your block, never write it. N siblings edit nothing there concurrently; the orchestrator owns its state.
39
+
40
+ ## Frame constraints
41
+
42
+ Generic seek-safety + structure live in `hyperframes-core` (read it; not restated). These are the **product-launch deltas**, each load-bearing:
43
+
44
+ - **Caption keep-out — all content in the top ~83%.** A karaoke caption pill owns the bottom ~17% of the canvas. Keep every element (headline, cards, CTA, stats, brand mark) above `y ≈ 0.83 × height` — compute the pixel cutoff from your canvas (e.g. `≤ 900` on a 1080-tall frame, `≤ 1600` on a 1920-tall portrait). Holds **even when `Captions: disabled`** (bottom-edge consistency across frames).
45
+ - **Fill the content area — especially portrait.** Compose the whole top-83% region; don't float one small cluster mid-frame. Anchor the hero high (~0.2–0.35 × height), flow supporting elements down with rhythm, scale hero type toward full-bleed. (Landscape's region is short, so vertical centering near 0.42 × height is fine.)
46
+ - **Visible text is short motion-graphics copy** — headline / stat / one-word emphasis (`"$83K"`, `"INSTANT"`), never a sentence from the narration. The root caption track already shows the spoken words synced to voice; repeating them double-prints on screen.
47
+ - **Build the whole shot — reveal across the full `duration`, never front-load.** Dumping the whole canvas in the first ~25% then holding it is exactly what reads as a PowerPoint slide. Instead reveal each piece — a line, a card, a stat, an icon — **as the `voiceover` reaches it**, sequencing reveals across the shot and especially the back ~50%, with the macro camera move running underneath. **Only EXITS are banned** — a non-final frame unmounts mid-frame, so an exit tween truncates and reads as a glitch (the root transition IS the exit); mid-shot reveals are free and seek-safe. The lone exception is a note marked as a deliberate hold / stillness frame: there, an entrance + a quiet settle is right (a held read beats bad motion).
48
+ - **Implement the shot sequence faithfully — every Scene is a timeline phase.** The Scene lines ARE the build: map each Scene onto a phase of the one timeline, each piece revealing as the `voiceover` reaches it. For each **named motion** in a Scene, open its rule recipe under `RULES_DIR/<id>.md` and reproduce its mechanics — **never name-guess** (a guess loses the signature move). The **`blueprint:` template** (`../hyperframes-animation/blueprints/<id>.md`) gives the overall shape; read it and keep its **signature move** recognizable, then instantiate it with this frame's content / assets / timing. `compose` → no template; sequence the shot straight from the Scene lines. Whichever, never front-load the whole sequence at `t=0` — pace the reveals to the voiceover.
49
+ - **Place each candidate by its `roles`** (the `focal` is the hero): a `cutout` is a foreground subject — respect the 83% keep-out, lay text around it, not over its face; a `background` is full-bleed and dimmed ~30–50% so foreground content stays legible. **A `[video]` candidate (`.mp4`) is a real motion clip — usually the strongest hero for a motion/demo product.** Render it as a **muted** `<video class="clip">` (`data-start` / `data-duration` / `data-track-index` per the core clip contract), a **direct child of the frame root** — never nested in another timed element, or the renderer freezes it. Keep it muted (the root owns all audio); a `[video-still]` or untagged image → `<img>`.
50
+
51
+ ## Workflow
52
+
53
+ 1. **Read** — `hyperframes-core`'s composition contract (the structural law), then `frame.md` (the look) and your `## Frame N` block (the shot sequence + `blueprint:` / `focal:` / `roles:` / assets). **Then read the blueprint template** `../hyperframes-animation/blueprints/<id>.md` (skip if `compose`) for the shot's shape and signature move, and **open the rule recipe `RULES_DIR/<id>.md` for every named motion** in the Scene lines (plus the shared `../hyperframes-animation/examples/<id>.html` when the recipe is unclear): you reproduce these mechanics, not improvise them. Internalize the self-check codes below before you write — most lethal is **template transport**: every `<style>` + `<script>` (including the gsap load) must live INSIDE `<template>`, because the runtime only clones template contents and `lint` / `validate` / `inspect` can miss the resulting blank sub-composition.
54
+ 2. **Design** — turn the time-coded shot sequence into a timeline using `frame.md`'s components and type ramp: each Scene window becomes a phase revealed on its `voiceover` cue, each named motion built from the recipe you just read, the blueprint's signature move kept recognizable. Place the named assets, and find a visual idea that reinforces the beat, not a literal restyle of the words.
55
+ 3. **Author** — write the full sub-composition to `compositions/frames/<frame_id>.html` (rewrite to iterate; last write wins). `<template>`-wrapped root carrying `data-composition-id="<frame_id>"` and styled via `#root` (not a class on that element — see the self-check below), exactly one `gsap.timeline({ paused: true })` registered at `window.__timelines["<frame_id>"]`, built synchronously — per the core contract.
56
+ 4. **Self-check, then finish** — re-read your file against the checklist below and fix in place. Writing the file is your terminal action; you do **not** run the CLI.
57
+
58
+ ## Self-check before finishing (you do NOT run the CLI)
59
+
60
+ You **can't** meaningfully run `hyperframes lint` / `validate` / `inspect` here: they operate on the **assembled project** (the `index.html` graph / bundle), and your frame isn't wired in yet — so they report on _other_ files, not yours (a false green). The **orchestrator** runs them at **Step 6, after assembly** (the correct unit), and **re-dispatches you with the finding** if your frame fails (see **Retry** above). So get it right on write: re-read your file against this checklist before finishing — the codes in parens are `hyperframes lint`'s and what the orchestrator may cite back (the rules behind them live in `hyperframes-core`):
61
+
62
+ - `missing_template_wrapper` / `missing_composition_id` — root is `<template>`-wrapped and carries `data-composition-id="<frame_id>"`.
63
+ - **Template transport** — every `<style>` and `<script>` block, including the GSAP load, lives inside `<template>`.
64
+ - `subcomposition_root_styled_by_class` — **style the frame root via `#root`, never a class on the `data-composition-id` element**: at render a class on the root gets scoped to a descendant selector that can't match it, so the **whole scene renders unstyled** (Studio preview still looks right — trust this rule, not the preview). Descendants use plain selectors.
65
+ - **Full-bleed background on a `class="clip"` layer, never `#root`** — author a frame's full-bleed ground (color field / gradient / grid) as a dedicated full-duration `class="clip"` background element on the lowest content track, **not** as a `background` on the `#root` / `data-composition-id` element. At assembly the frame root is clip-gated to its scene window, so a background painted on the root is not a dependable full-frame ground — dark content can end up over the host `body` (black) and render invisible. The video's base ground is painted separately by the assembler from `frame.md`'s `canvas` color onto the index `#root`; your full-bleed clip rides on top of it.
66
+ - `clip_missing_data_attrs` — every `class="clip"` element has `data-start` / `data-duration` / `data-track-index`.
67
+ - `timeline_not_paused` / `timeline_not_registered` — one paused timeline, registered at `window.__timelines["<frame_id>"]`.
68
+ - `css_transition_used` + repeat / yoyo / non-deterministic logic — none present (the renderer seeks frame-by-frame).
69
+ - `gsap_css_transform_conflict` — never put a CSS `transform` (e.g. `translateY(-50%)` centering) on an element you then GSAP-animate a transform prop on (`x` / `y` / `scale` / `rotation`): GSAP overwrites the whole `transform` and silently drops the CSS centering (the element jumps). Center with `margin` / `inset` (or `top`/`left` + offset), fold the offset into the tween via `xPercent` / `yPercent`, or use `fromTo` (the rule exempts it).
70
+ - **Hero visibility** — the main subject is visible by `t <= 0.5s`; entrance tweens use `fromTo` instead of CSS-hidden starting states.
71
+ - `exit_animation_on_non_final_scene` — no exit tween unless you are the final frame.
72
+ - **No front-loading (not a slide)** — the shot's pieces reveal on their `voiceover` cues across the duration, not all fired at `t=0`; a non-still frame keeps content arriving rather than holding a full canvas from ~25%.
73
+ - **Shot-sequence fidelity** — every Scene in the time-coded sequence is realized as a phase, the blueprint's signature move (unless `compose`) is present and recognizable, and the shot reveals to the voiceover (never front-loaded at `t=0`).
74
+ - `font_family_without_font_face` — every font you name has a matching `@font-face` (or `@import`) **inside this file**. **Only use fonts that ship as files** with the project: the families declared in `frame.md` (their `.woff2` live in `assets/fonts/` or `capture/assets/fonts/` — point the `@font-face` `src` at the real file you find there). **Never name a font that has no file**, including system CJK / Japanese / Devanagari families (`Hiragino Sans`, `Yu Gothic`, `Noto Sans CJK`, `Noto Sans Devanagari`, …): the render machine is a clean headless Chrome with none of them installed, so the text silently falls back to a generic font and the typography is wrong in the MP4. For non-Latin or multilingual visible text, either use a shipped font that covers the script, or romanize / transliterate it (e.g. `日本語` → `Japanese`); if neither is possible it is out of scope for this frame — do not invent a font name.
75
+ - **Keep-out + no-narration-text** (eyeball, no code) — nothing sits below the 83% cutoff; no narration sentence is rendered as visible text.
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: remotion-to-hyperframes
3
+ description: 'Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.'
4
+ ---
5
+
6
+ # Remotion to HyperFrames
7
+
8
+ > **Confirm the route before you build.** Use this **only** to port an existing **Remotion** (React) composition's source into HyperFrames. Authoring a **new** composition (even one inspired by a Remotion video) → the creation workflows / `/general-video`. **Out of scope** (one-way, Remotion-only): no reverse export (HyperFrames → Remotion or any framework), and a **non-Remotion** source (After Effects, Framer Motion, plain React / CSS) has no Remotion source to translate → re-create via `/general-video`. Unsure, or only a passing Remotion mention? **Read `/hyperframes` first.**
9
+
10
+ ## Overview
11
+
12
+ Translate Remotion (React-based) video compositions into HyperFrames (HTML + GSAP) compositions. Most Remotion idioms have direct HyperFrames equivalents — the translation is mechanical for ~80% of typical compositions. This skill encodes the mapping and guards against the lossy 20% by refusing to translate patterns that don't fit HF's seek-driven model and recommending the runtime interop pattern from [PR #214](https://github.com/heygen-com/hyperframes/pull/214) instead.
13
+
14
+ The skill ships with a **tiered test corpus** (T1–T4, 4 fixtures total) that grades translations against measured SSIM thresholds. Don't translate without running the eval — a translation that "looks right" but renders 0.05 SSIM lower than the validated baseline is silently wrong.
15
+
16
+ ## When to use
17
+
18
+ **Use this skill ONLY when the user explicitly asks to migrate from Remotion.** Example trigger phrases:
19
+
20
+ - "port my Remotion project to HyperFrames"
21
+ - "convert this Remotion code to HyperFrames"
22
+ - "migrate from Remotion"
23
+ - "translate this Remotion comp"
24
+ - "rewrite this as HyperFrames HTML"
25
+
26
+ **Do NOT use this skill when:**
27
+
28
+ - (a) The user is authoring a **new** HyperFrames composition, even if they have or are A/B-testing a similar Remotion video.
29
+ - (b) The user mentions Remotion in passing without asking for migration.
30
+ - (c) The user shares Remotion code as reference material rather than asking for a translation.
31
+ - (d) The user asks for "the same video as my Remotion one" without explicitly asking to migrate the source — treat that as a fresh HyperFrames build.
32
+
33
+ **NOT SUPPORTED (decline — this is not what this skill does):**
34
+
35
+ - **The reverse direction.** Exporting a HyperFrames composition back out _to_ Remotion (or to any other framework) is not a workflow — the translation is Remotion → HyperFrames only. Say so plainly.
36
+ - **Non-Remotion sources.** An After Effects project (`.aep`), a Framer Motion / plain-React / CSS animation, or any other tool's source is not a Remotion composition — there is no Remotion source to translate. Re-create it natively via `/general-video`, or decline if HyperFrames can't represent it.
37
+
38
+ When in doubt, default to authoring a native HyperFrames composition with `/general-video` (the general HyperFrames authoring flow) instead.
39
+
40
+ ## Workflow
41
+
42
+ ### Step 1: Lint the source
43
+
44
+ Run [`scripts/lint_source.py`](scripts/lint_source.py) over the Remotion source directory. The lint detects patterns that can't translate cleanly:
45
+
46
+ - **Blockers** (refuse + recommend interop): `useState`, `useReducer`, `useEffect`/`useLayoutEffect` with non-empty deps, async `calculateMetadata`, third-party React UI libraries (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
47
+ - **Warnings** (translate after dropping the construct): `@remotion/lambda` config, `delayRender`, `useCallback`, `useMemo`, custom hooks.
48
+ - **Info** (translate with note): `staticFile`, `interpolateColors`.
49
+
50
+ If any blocker fires, **stop**. Read [`references/escape-hatch.md`](references/escape-hatch.md) and surface the recommendation message. Warnings don't stop translation — drop the offending construct in step 3 and note the gap in `TRANSLATION_NOTES.md`. `@remotion/lambda` config is the canonical warning case: the skill drops the import + `renderMediaOnLambda(...)` calls but translates the rest of the composition.
51
+
52
+ ### Step 2: Plan the translation
53
+
54
+ Read [`references/api-map.md`](references/api-map.md) — the index of every Remotion API and its HF equivalent or per-topic reference. Identify which topic references you'll need based on what the source uses:
55
+
56
+ | Source contains | Load reference |
57
+ | ------------------------------------------------------------------------- | --------------------------------------------- |
58
+ | `Composition`, `defaultProps`, `schema`, `calculateMetadata` | [`parameters.md`](references/parameters.md) |
59
+ | `Sequence`, `Series`, `Loop`, `AbsoluteFill`, `Freeze` | [`sequencing.md`](references/sequencing.md) |
60
+ | `useCurrentFrame`, `interpolate`, `spring`, `Easing`, `interpolateColors` | [`timing.md`](references/timing.md) |
61
+ | `Audio`, `Video`, `Img`, `IFrame`, `staticFile`, `delayRender` | [`media.md`](references/media.md) |
62
+ | `TransitionSeries`, `@remotion/transitions` | [`transitions.md`](references/transitions.md) |
63
+ | `@remotion/lottie` | [`lottie.md`](references/lottie.md) |
64
+ | `@remotion/google-fonts/<Family>`, `Font.loadFont`, `@font-face` | [`fonts.md`](references/fonts.md) |
65
+
66
+ Don't load all of them — load only what the specific source needs.
67
+
68
+ ### Step 3: Generate the HF composition
69
+
70
+ Emit `index.html` with:
71
+
72
+ - Root `<div id="stage">` carrying the composition's `data-composition-id`, `data-start="0"`, `data-duration` (in seconds), `data-fps`, `data-width`, `data-height`, plus one `data-*` per scalar prop.
73
+ - A flat list of scene divs with `data-start` / `data-duration` / `data-track-index`.
74
+ - Inline `<style>` for layout; CSS sets the `from` state of every animated property.
75
+ - A single `<script>` tag at the bottom containing one paused `gsap.timeline({paused: true})`. Every Remotion `useCurrentFrame()` derivation becomes a tween on this timeline at the right offset.
76
+ - `window.__timelines["<composition-id>"] = tl;` registers the timeline with HF's runtime.
77
+
78
+ Custom React subcomponents inline as repeated HTML using the prop interface as the template (see [`parameters.md`](references/parameters.md) for the per-instance `data-*` pattern).
79
+
80
+ ### Step 4: Validate
81
+
82
+ Run the eval harness — [`references/eval.md`](references/eval.md) for the full guide. Quick path:
83
+
84
+ ```bash
85
+ # Render Remotion baseline (after npm install in the fixture)
86
+ cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4
87
+
88
+ # Render HF translation
89
+ cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4
90
+
91
+ # SSIM diff
92
+ ../../scripts/render_diff.sh ./remotion-src/out/baseline.mp4 ./hf.mp4 ./diff
93
+ ```
94
+
95
+ Threshold: ~0.02 below `p05` of the source's complexity tier (see `eval.md`'s validated thresholds table). If the diff fails, run [`scripts/frame_strip.sh`](scripts/frame_strip.sh) to see _which_ frames diverged, then re-read the relevant timing/sequencing/media reference.
96
+
97
+ **Critical**: both renders must use matching pixel format. Set `Config.setVideoImageFormat("png")` + `Config.setColorSpace("bt709")` in the Remotion source's `remotion.config.ts` — otherwise the diff measures encoder differences (~0.05 SSIM hit), not translation fidelity.
98
+
99
+ ### Step 5: Document gaps
100
+
101
+ Anything that didn't translate cleanly (volume ramps dropped, custom presentations approximated, fonts substituted) gets a `TRANSLATION_NOTES.md` written next to the HF output. See [`references/limitations.md`](references/limitations.md) for the format.
102
+
103
+ ## What this skill explicitly does NOT do
104
+
105
+ - **Translate React state machines.** Compositions that drive animation via `useState` + `useEffect` are not deterministic frame-capture targets in HyperFrames' seek-driven model. Recommend the runtime interop pattern.
106
+ - **Run Remotion's render pipeline alongside HyperFrames.** That's the runtime interop pattern from [PR #214](https://github.com/heygen-com/hyperframes/pull/214) — a separate solution for compositions that fail this skill's lint.
107
+
108
+ (`@remotion/lambda` is _not_ a blocker — Lambda config is deployment, not animation. The skill drops it as a warning and translates the rest. See [`references/escape-hatch.md`](references/escape-hatch.md).)
109
+
110
+ ## How to grade your own translation
111
+
112
+ Run the test corpus orchestrator:
113
+
114
+ ```bash
115
+ ./assets/test-corpus/run.sh
116
+ ```
117
+
118
+ It runs T1, T2, T3 (render + diff) and T4 (lint validation), prints a per-tier pass/fail table, and emits an aggregate JSON report. Use this to verify the skill is working end-to-end on a clean checkout — and as a regression check after editing any reference.
119
+
120
+ Validated baseline (as of 2026-04-27):
121
+
122
+ | Tier | Composition shape | Mean SSIM | Threshold |
123
+ | ---- | ------------------------------------------- | --------- | --------- |
124
+ | T1 | single-element fade-in | 0.974 | 0.95 |
125
+ | T2 | multi-scene + spring + audio + image | 0.985 | 0.95 |
126
+ | T3 | data-driven, custom subcomponents, count-up | 0.953 | 0.90 |
127
+ | T4 | escape-hatch (8 lint cases) | 8/8 pass | n/a |