dsh-hyperframes 0.9.1 → 0.9.3

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 (837) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.en.md +3 -1
  3. package/README.md +3 -1
  4. package/docs/USAGE.en.md +2 -2
  5. package/docs/USAGE.md +2 -2
  6. package/lib/client.js +84 -67
  7. package/lib/index.js +1 -1
  8. package/lib/media-templates.d.ts +3 -3
  9. package/lib/media-templates.js +1 -1
  10. package/package.json +4 -3
  11. package/plugin.json +5 -0
  12. package/skills/NOTICE.md +3 -0
  13. package/skills/UPSTREAM-LICENSE.txt +190 -0
  14. package/skills/UPSTREAM.json +355 -0
  15. package/skills/embedded-captions/SKILL.md +4 -277
  16. package/skills/faceless-explainer/SKILL.md +4 -231
  17. package/skills/figma/SKILL.md +34 -113
  18. package/skills/general-video/SKILL.md +4 -161
  19. package/skills/hyperframes/SKILL.md +52 -115
  20. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/biennale-yellow/caption-skin.html +7 -8
  21. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blockframe/caption-skin.html +7 -8
  22. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blue-professional/caption-skin.html +7 -8
  23. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/bold-poster/caption-skin.html +7 -8
  24. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/broadside/caption-skin.html +7 -8
  25. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/capsule/caption-skin.html +7 -8
  26. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cartesian/caption-skin.html +7 -8
  27. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cobalt-grid/caption-skin.html +7 -8
  28. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/FRAME.md +2 -2
  29. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/caption-skin.html +7 -8
  30. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/coral/caption-skin.html +7 -8
  31. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/creative-mode/caption-skin.html +7 -8
  32. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/daisy-days/caption-skin.html +7 -8
  33. package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/editorial-forest/caption-skin.html +7 -8
  34. package/skills/hyperframes/references/captions.md +46 -0
  35. package/skills/hyperframes/references/film.md +48 -0
  36. package/skills/hyperframes/references/format.md +158 -0
  37. package/skills/hyperframes/references/look.md +69 -0
  38. package/skills/hyperframes/references/motion.md +95 -0
  39. package/skills/hyperframes/references/overlays.md +39 -0
  40. package/skills/hyperframes/references/plugin-installation.md +3 -3
  41. package/skills/hyperframes/references/review.md +51 -0
  42. package/skills/hyperframes/references/runtimes.md +69 -0
  43. package/skills/hyperframes/references/skill-lifecycle.md +28 -14
  44. package/skills/hyperframes/references/sound.md +43 -0
  45. package/skills/hyperframes/references/spec.md +76 -0
  46. package/skills/hyperframes/references/story.md +103 -0
  47. package/skills/hyperframes/references/storyboard-format.md +30 -22
  48. package/skills/hyperframes/references/storyboard.md +36 -0
  49. package/skills/hyperframes/references/types/3d.md +25 -0
  50. package/skills/hyperframes/references/types/character.md +20 -0
  51. package/skills/hyperframes/references/types/data.md +19 -0
  52. package/skills/hyperframes/references/types/explainer.md +34 -0
  53. package/skills/hyperframes/references/types/launch.md +41 -0
  54. package/skills/hyperframes/references/types/music.md +24 -0
  55. package/skills/hyperframes/references/types/vertical.md +23 -0
  56. package/skills/{motion-graphics/categories/maps → hyperframes/scripts}/bake-basemap.mjs +71 -20
  57. package/skills/hyperframes/scripts/lib/main-module.mjs +13 -0
  58. package/skills/hyperframes/scripts/lib/main-module.test.mjs +46 -0
  59. package/skills/{motion-graphics/grounding → hyperframes/scripts}/locate.mjs +1 -1
  60. package/skills/hyperframes/scripts/plugin-cli.mjs +4 -3
  61. package/skills/hyperframes/scripts/plugin-cli.test.mjs +5 -1
  62. package/skills/hyperframes-animation/SKILL.md +4 -82
  63. package/skills/hyperframes-audio/SKILL.md +4 -472
  64. package/skills/hyperframes-cli/SKILL.md +76 -158
  65. package/skills/hyperframes-cli/references/beats.md +3 -7
  66. package/skills/hyperframes-cli/references/cloud.md +4 -4
  67. package/skills/hyperframes-cli/references/cloudrun.md +2 -2
  68. package/skills/hyperframes-cli/references/conventions.md +17 -0
  69. package/skills/hyperframes-cli/references/doctor-browser.md +24 -1
  70. package/skills/hyperframes-cli/references/feedback.md +14 -0
  71. package/skills/hyperframes-cli/references/init-and-scaffold.md +13 -8
  72. package/skills/hyperframes-cli/references/lambda.md +6 -2
  73. package/skills/hyperframes-cli/references/lint-validate-inspect.md +34 -11
  74. package/skills/hyperframes-cli/references/preview-render.md +13 -4
  75. package/skills/hyperframes-cli/references/upgrade-info-misc.md +8 -0
  76. package/skills/hyperframes-core/SKILL.md +4 -94
  77. package/skills/hyperframes-creative/SKILL.md +4 -67
  78. package/skills/hyperframes-keyframes/SKILL.md +4 -258
  79. package/skills/hyperframes-registry/SKILL.md +37 -128
  80. package/skills/hyperframes-registry/references/discovery.md +2 -2
  81. package/skills/hyperframes-registry/references/search.md +67 -0
  82. package/skills/hyperframes-studio/SKILL.md +4 -71
  83. package/skills/media-use/SKILL.md +50 -88
  84. package/skills/media-use/audio/references/bgm.md +4 -2
  85. package/skills/media-use/audio/references/captions/authoring.md +1 -2
  86. package/skills/media-use/audio/references/captions/motion.md +5 -5
  87. package/skills/media-use/audio/references/requirements.md +7 -7
  88. package/skills/media-use/audio/references/sfx.md +20 -14
  89. package/skills/media-use/audio/references/transcribe.md +2 -2
  90. package/skills/media-use/audio/references/tts.md +26 -12
  91. package/skills/media-use/audio/scripts/audio.mjs +25 -17
  92. package/skills/media-use/audio/scripts/audio.test.mjs +121 -4
  93. package/skills/{hyperframes-audio → media-use/audio}/scripts/carve.mjs +2 -14
  94. package/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +20 -2
  95. package/skills/media-use/audio/scripts/heygen-tts.mjs +3 -2
  96. package/skills/media-use/audio/scripts/heygen-tts.test.mjs +38 -0
  97. package/skills/media-use/audio/scripts/heygen-voice.mjs +98 -0
  98. package/skills/media-use/audio/scripts/heygen-voice.test.mjs +233 -0
  99. package/skills/media-use/audio/scripts/lib/bgm.mjs +8 -4
  100. package/skills/media-use/audio/scripts/lib/bgm.test.mjs +45 -1
  101. package/skills/media-use/audio/scripts/lib/heygen.mjs +100 -16
  102. package/skills/media-use/audio/scripts/lib/heygen.test.mjs +205 -16
  103. package/skills/media-use/audio/scripts/lib/main-module.mjs +13 -0
  104. package/skills/media-use/audio/scripts/lib/media-record.mjs +118 -0
  105. package/skills/media-use/audio/scripts/lib/media-record.test.mjs +224 -0
  106. package/skills/media-use/audio/scripts/lib/openverse.mjs +134 -0
  107. package/skills/media-use/audio/scripts/lib/python.mjs +19 -5
  108. package/skills/media-use/audio/scripts/lib/python.test.mjs +69 -1
  109. package/skills/media-use/audio/scripts/lib/sfx.mjs +141 -88
  110. package/skills/media-use/audio/scripts/lib/sfx.test.mjs +270 -8
  111. package/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +175 -0
  112. package/skills/media-use/audio/scripts/lib/tts.mjs +28 -24
  113. package/skills/media-use/audio/scripts/lib/tts.test.mjs +74 -1
  114. package/skills/media-use/audio/scripts/wait-bgm.mjs +4 -0
  115. package/skills/media-use/audio/scripts/wait-bgm.test.mjs +44 -1
  116. package/skills/media-use/references/audio.md +2 -2
  117. package/skills/media-use/references/grading.md +5 -4
  118. package/skills/media-use/references/local.md +24 -0
  119. package/skills/media-use/references/media-treatments.md +5 -1
  120. package/skills/media-use/references/memory.md +10 -5
  121. package/skills/media-use/references/meta.md +17 -17
  122. package/skills/media-use/references/mixing.md +72 -0
  123. package/skills/media-use/references/operations.md +10 -8
  124. package/skills/media-use/references/resolve.md +1 -1
  125. package/skills/media-use/references/setup-providers.md +31 -17
  126. package/skills/media-use/scripts/compatibility.test.mjs +1 -56
  127. package/skills/media-use/scripts/lib/cutlist.mjs +9 -2
  128. package/skills/media-use/scripts/lib/duck.mjs +20 -3
  129. package/skills/media-use/scripts/lib/index-gen.mjs +2 -2
  130. package/skills/media-use/scripts/lib/manifest.mjs +85 -32
  131. package/skills/media-use/scripts/lib/prefs-store.mjs +47 -29
  132. package/skills/media-use/scripts/lib/recipe-store.mjs +7 -3
  133. package/skills/media-use/scripts/lib/telemetry.mjs +4 -1
  134. package/skills/media-use/scripts/lib/telemetry.test.mjs +73 -0
  135. package/skills/media-use/scripts/lib/words.mjs +1 -1
  136. package/skills/media-use/scripts/prefs.mjs +2 -3
  137. package/skills/media-use/scripts/recipe.mjs +1 -3
  138. package/skills/media-use/scripts/transcript-cut.mjs +23 -4
  139. package/skills/media-use/scripts/transcript-cut.test.mjs +224 -0
  140. package/skills/motion-graphics/SKILL.md +4 -172
  141. package/skills/music-to-video/SKILL.md +4 -204
  142. package/skills/pr-to-video/SKILL.md +4 -267
  143. package/skills/product-launch-video/SKILL.md +4 -258
  144. package/skills/remotion-to-hyperframes/SKILL.md +32 -115
  145. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +3 -0
  146. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +3 -0
  147. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/README.md +8 -7
  148. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +3 -3
  149. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-1.html +6 -2
  150. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-2.html +3 -4
  151. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-3.html +2 -2
  152. package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +3 -0
  153. package/skills/remotion-to-hyperframes/references/api-map.md +41 -29
  154. package/skills/remotion-to-hyperframes/references/limitations.md +3 -3
  155. package/skills/remotion-to-hyperframes/references/lottie.md +21 -8
  156. package/skills/remotion-to-hyperframes/references/media.md +23 -6
  157. package/skills/remotion-to-hyperframes/references/timing.md +20 -8
  158. package/skills/remotion-to-hyperframes/scripts/tests/boxSizing.test.mjs +21 -0
  159. package/skills/slideshow/SKILL.md +42 -512
  160. package/skills/slideshow/references/standalone-harness.md +1 -1
  161. package/skills/talking-head-recut/SKILL.md +4 -1214
  162. package/skills/embedded-captions/CATALOG.md +0 -91
  163. package/skills/embedded-captions/assets/fonts/char-widths.json +0 -2211
  164. package/skills/embedded-captions/assets/strokefonts/HersheyScript1.svg +0 -242
  165. package/skills/embedded-captions/assets/strokefonts/HersheyScriptMed.svg +0 -242
  166. package/skills/embedded-captions/dna/README.md +0 -148
  167. package/skills/embedded-captions/dna/chrome.json +0 -68
  168. package/skills/embedded-captions/dna/cream.json +0 -69
  169. package/skills/embedded-captions/dna/documentary.json +0 -62
  170. package/skills/embedded-captions/dna/editorial.json +0 -70
  171. package/skills/embedded-captions/dna/glitch.json +0 -82
  172. package/skills/embedded-captions/dna/ink.json +0 -65
  173. package/skills/embedded-captions/dna/keynote.json +0 -62
  174. package/skills/embedded-captions/dna/loud.json +0 -75
  175. package/skills/embedded-captions/dna/neon.json +0 -58
  176. package/skills/embedded-captions/dna/velocity.json +0 -89
  177. package/skills/embedded-captions/modes/cinematic/README.md +0 -48
  178. package/skills/embedded-captions/modes/cinematic/_archive/champion/spec.md +0 -98
  179. package/skills/embedded-captions/modes/cinematic/_archive/champion/template.html +0 -188
  180. package/skills/embedded-captions/modes/cinematic/_archive/memory-wall/spec.md +0 -134
  181. package/skills/embedded-captions/modes/cinematic/_archive/memory-wall/template.html +0 -179
  182. package/skills/embedded-captions/modes/cinematic/_archive/portrait-header/spec.md +0 -81
  183. package/skills/embedded-captions/modes/cinematic/_archive/portrait-header/template.html +0 -170
  184. package/skills/embedded-captions/modes/cinematic/cinematic-cream/spec.md +0 -16
  185. package/skills/embedded-captions/modes/cinematic/cinematic-cream/template.html +0 -226
  186. package/skills/embedded-captions/modes/cinematic/engine.html +0 -355
  187. package/skills/embedded-captions/modes/standard/_anatomy.md +0 -233
  188. package/skills/embedded-captions/modes/standard/_motion.md +0 -192
  189. package/skills/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +0 -97
  190. package/skills/embedded-captions/modes/standard/fonts/files/anton-latin-400-normal.woff2 +0 -0
  191. package/skills/embedded-captions/modes/standard/fonts/files/audiowide-latin-400-normal.woff2 +0 -0
  192. package/skills/embedded-captions/modes/standard/fonts/files/baloo-2-latin-400-normal.woff2 +0 -0
  193. package/skills/embedded-captions/modes/standard/fonts/files/baloo-2-latin-700-normal.woff2 +0 -0
  194. package/skills/embedded-captions/modes/standard/fonts/files/bangers-latin-400-normal.woff2 +0 -0
  195. package/skills/embedded-captions/modes/standard/fonts/files/bodoni-moda-latin-400-normal.woff2 +0 -0
  196. package/skills/embedded-captions/modes/standard/fonts/files/bodoni-moda-latin-700-normal.woff2 +0 -0
  197. package/skills/embedded-captions/modes/standard/fonts/files/caveat-latin-400-normal.woff2 +0 -0
  198. package/skills/embedded-captions/modes/standard/fonts/files/caveat-latin-700-normal.woff2 +0 -0
  199. package/skills/embedded-captions/modes/standard/fonts/files/chakra-petch-latin-500-normal.woff2 +0 -0
  200. package/skills/embedded-captions/modes/standard/fonts/files/chakra-petch-latin-700-normal.woff2 +0 -0
  201. package/skills/embedded-captions/modes/standard/fonts/files/cinzel-latin-400-normal.woff2 +0 -0
  202. package/skills/embedded-captions/modes/standard/fonts/files/cinzel-latin-700-normal.woff2 +0 -0
  203. package/skills/embedded-captions/modes/standard/fonts/files/cormorant-garamond-latin-400-normal.woff2 +0 -0
  204. package/skills/embedded-captions/modes/standard/fonts/files/cormorant-garamond-latin-700-normal.woff2 +0 -0
  205. package/skills/embedded-captions/modes/standard/fonts/files/creepster-latin-400-normal.woff2 +0 -0
  206. package/skills/embedded-captions/modes/standard/fonts/files/fredoka-latin-400-normal.woff2 +0 -0
  207. package/skills/embedded-captions/modes/standard/fonts/files/fredoka-latin-700-normal.woff2 +0 -0
  208. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-400-normal.woff2 +0 -0
  209. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-500-italic.woff2 +0 -0
  210. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-500-normal.woff2 +0 -0
  211. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-600-italic.woff2 +0 -0
  212. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-600-normal.woff2 +0 -0
  213. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-700-normal.woff2 +0 -0
  214. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-800-normal.woff2 +0 -0
  215. package/skills/embedded-captions/modes/standard/fonts/files/inter-latin-900-normal.woff2 +0 -0
  216. package/skills/embedded-captions/modes/standard/fonts/files/monoton-latin-400-normal.woff2 +0 -0
  217. package/skills/embedded-captions/modes/standard/fonts/files/orbitron-latin-400-normal.woff2 +0 -0
  218. package/skills/embedded-captions/modes/standard/fonts/files/orbitron-latin-700-normal.woff2 +0 -0
  219. package/skills/embedded-captions/modes/standard/fonts/files/permanent-marker-latin-400-normal.woff2 +0 -0
  220. package/skills/embedded-captions/modes/standard/fonts/files/press-start-2p-latin-400-normal.woff2 +0 -0
  221. package/skills/embedded-captions/modes/standard/fonts/files/rajdhani-latin-500-normal.woff2 +0 -0
  222. package/skills/embedded-captions/modes/standard/fonts/files/rajdhani-latin-700-normal.woff2 +0 -0
  223. package/skills/embedded-captions/modes/standard/fonts/files/saira-stencil-one-latin-400-normal.woff2 +0 -0
  224. package/skills/embedded-captions/modes/standard/fonts/files/shippori-mincho-latin-400-normal.woff2 +0 -0
  225. package/skills/embedded-captions/modes/standard/fonts/files/shippori-mincho-latin-700-normal.woff2 +0 -0
  226. package/skills/embedded-captions/modes/standard/fonts/files/sora-latin-400-normal.woff2 +0 -0
  227. package/skills/embedded-captions/modes/standard/fonts/files/sora-latin-700-normal.woff2 +0 -0
  228. package/skills/embedded-captions/modes/standard/fonts/files/space-grotesk-latin-400-normal.woff2 +0 -0
  229. package/skills/embedded-captions/modes/standard/fonts/files/space-grotesk-latin-700-normal.woff2 +0 -0
  230. package/skills/embedded-captions/modes/standard/fonts/files/special-elite-latin-400-normal.woff2 +0 -0
  231. package/skills/embedded-captions/modes/standard/fonts/files/teko-latin-400-normal.woff2 +0 -0
  232. package/skills/embedded-captions/modes/standard/fonts/files/teko-latin-700-normal.woff2 +0 -0
  233. package/skills/embedded-captions/modes/standard/fonts/files/vt323-latin-400-normal.woff2 +0 -0
  234. package/skills/embedded-captions/modes/standard/fonts/fonts.css +0 -401
  235. package/skills/embedded-captions/references/aesthetic-principles.md +0 -167
  236. package/skills/embedded-captions/references/anti-patterns.md +0 -188
  237. package/skills/embedded-captions/references/bespoke-vs-presets.md +0 -178
  238. package/skills/embedded-captions/references/caption-grouping.md +0 -130
  239. package/skills/embedded-captions/references/composition-craft.md +0 -522
  240. package/skills/embedded-captions/references/direction-catalog.md +0 -138
  241. package/skills/embedded-captions/references/example-renders/champion.html +0 -371
  242. package/skills/embedded-captions/references/example-renders/memory-wall.html +0 -334
  243. package/skills/embedded-captions/references/failure-modes.md +0 -145
  244. package/skills/embedded-captions/references/layout-heuristics.md +0 -238
  245. package/skills/embedded-captions/references/motion-vocabulary.md +0 -148
  246. package/skills/embedded-captions/references/rail.md +0 -68
  247. package/skills/embedded-captions/references/reference-bar.md +0 -47
  248. package/skills/embedded-captions/references/scene-types.md +0 -94
  249. package/skills/embedded-captions/references/typographic-moves.md +0 -266
  250. package/skills/embedded-captions/references/typography-presets.md +0 -63
  251. package/skills/embedded-captions/scripts/audio-envelope.cjs +0 -95
  252. package/skills/embedded-captions/scripts/check-occlusion.cjs +0 -253
  253. package/skills/embedded-captions/scripts/check-overflow.cjs +0 -195
  254. package/skills/embedded-captions/scripts/check-rail-climax.cjs +0 -237
  255. package/skills/embedded-captions/scripts/check-timing.cjs +0 -173
  256. package/skills/embedded-captions/scripts/fill-timings.cjs +0 -124
  257. package/skills/embedded-captions/scripts/fit-fonts.cjs +0 -158
  258. package/skills/embedded-captions/scripts/fixtures/heroless/theme.json +0 -11
  259. package/skills/embedded-captions/scripts/gen-stroke-path.py +0 -57
  260. package/skills/embedded-captions/scripts/hf-cli.cjs +0 -33
  261. package/skills/embedded-captions/scripts/inject-fonts.cjs +0 -169
  262. package/skills/embedded-captions/scripts/lib-dna.cjs +0 -201
  263. package/skills/embedded-captions/scripts/make-cinematic.cjs +0 -1206
  264. package/skills/embedded-captions/scripts/make-composition.cjs +0 -405
  265. package/skills/embedded-captions/scripts/make-theme.cjs +0 -8623
  266. package/skills/embedded-captions/scripts/make-theme.test.mjs +0 -131
  267. package/skills/embedded-captions/scripts/matte.cjs +0 -268
  268. package/skills/embedded-captions/scripts/measure-layout.cjs +0 -294
  269. package/skills/embedded-captions/scripts/prepare.sh +0 -39
  270. package/skills/embedded-captions/scripts/preview-frames.cjs +0 -296
  271. package/skills/embedded-captions/scripts/preview-frames.test.mjs +0 -24
  272. package/skills/embedded-captions/scripts/render-and-composite.sh +0 -425
  273. package/skills/embedded-captions/scripts/render-theme.sh +0 -34
  274. package/skills/embedded-captions/scripts/safe-zones.cjs +0 -816
  275. package/skills/embedded-captions/scripts/transcribe.cjs +0 -323
  276. package/skills/embedded-captions/scripts/transcribe.test.mjs +0 -41
  277. package/skills/embedded-captions/themes/README.md +0 -243
  278. package/skills/embedded-captions/themes/anchor.json +0 -27
  279. package/skills/embedded-captions/themes/arcade.json +0 -51
  280. package/skills/embedded-captions/themes/aurora.json +0 -41
  281. package/skills/embedded-captions/themes/biolume.json +0 -35
  282. package/skills/embedded-captions/themes/brush.json +0 -74
  283. package/skills/embedded-captions/themes/chalkboard.json +0 -52
  284. package/skills/embedded-captions/themes/dossier.json +0 -56
  285. package/skills/embedded-captions/themes/graffiti.json +0 -62
  286. package/skills/embedded-captions/themes/hologram.json +0 -41
  287. package/skills/embedded-captions/themes/inkwater.json +0 -43
  288. package/skills/embedded-captions/themes/laser.json +0 -46
  289. package/skills/embedded-captions/themes/lastpage.json +0 -33
  290. package/skills/embedded-captions/themes/neonsign.json +0 -53
  291. package/skills/embedded-captions/themes/ordnance.json +0 -54
  292. package/skills/embedded-captions/themes/papercut.json +0 -37
  293. package/skills/embedded-captions/themes/popup.json +0 -46
  294. package/skills/embedded-captions/themes/ransom.json +0 -62
  295. package/skills/embedded-captions/themes/scoreboard.json +0 -54
  296. package/skills/embedded-captions/themes/spectrum.json +0 -46
  297. package/skills/embedded-captions/themes/stardust.json +0 -29
  298. package/skills/embedded-captions/themes/stomp.json +0 -43
  299. package/skills/embedded-captions/themes/terminal.json +0 -49
  300. package/skills/embedded-captions/themes/thunder.json +0 -44
  301. package/skills/embedded-captions/themes/transit.json +0 -44
  302. package/skills/embedded-captions/themes/vhs.json +0 -47
  303. package/skills/faceless-explainer/references/cut-catalog.md +0 -215
  304. package/skills/faceless-explainer/references/motion-language.md +0 -156
  305. package/skills/faceless-explainer/references/story-design.md +0 -255
  306. package/skills/faceless-explainer/references/visual-design.md +0 -146
  307. package/skills/faceless-explainer/scripts/assemble-index.mjs +0 -625
  308. package/skills/faceless-explainer/scripts/assemble-index.test.mjs +0 -127
  309. package/skills/faceless-explainer/scripts/audio.mjs +0 -293
  310. package/skills/faceless-explainer/scripts/audio.test.mjs +0 -176
  311. package/skills/faceless-explainer/scripts/build-frame.mjs +0 -554
  312. package/skills/faceless-explainer/scripts/captions.mjs +0 -524
  313. package/skills/faceless-explainer/scripts/captions.test.mjs +0 -219
  314. package/skills/faceless-explainer/scripts/frame-packets.mjs +0 -27
  315. package/skills/faceless-explainer/scripts/frame-packets.test.mjs +0 -66
  316. package/skills/faceless-explainer/scripts/lib/assets.mjs +0 -56
  317. package/skills/faceless-explainer/scripts/lib/bgm-volume.mjs +0 -4
  318. package/skills/faceless-explainer/scripts/lib/captured-fonts.mjs +0 -58
  319. package/skills/faceless-explainer/scripts/lib/dimensions.mjs +0 -45
  320. package/skills/faceless-explainer/scripts/lib/frame-packets-core.mjs +0 -194
  321. package/skills/faceless-explainer/scripts/lib/pad-frame-duration.mjs +0 -36
  322. package/skills/faceless-explainer/scripts/lib/storyboard.mjs +0 -249
  323. package/skills/faceless-explainer/scripts/lib/tokens.mjs +0 -211
  324. package/skills/faceless-explainer/scripts/lib/transition-registry.mjs +0 -38
  325. package/skills/faceless-explainer/scripts/lib/transitions.json +0 -71
  326. package/skills/faceless-explainer/scripts/transitions.mjs +0 -384
  327. package/skills/faceless-explainer/scripts/transitions.test.mjs +0 -70
  328. package/skills/faceless-explainer/sub-agents/frame-worker.md +0 -12
  329. package/skills/general-video/scripts/frame-packets.mjs +0 -38
  330. package/skills/general-video/scripts/frame-packets.test.mjs +0 -80
  331. package/skills/general-video/scripts/lib/frame-packets-core.mjs +0 -194
  332. package/skills/general-video/sub-agents/frame-worker.md +0 -34
  333. package/skills/hyperframes/references/brief-contract.md +0 -108
  334. package/skills/hyperframes/references/brief-format.md +0 -72
  335. package/skills/hyperframes/references/capability-menu.md +0 -47
  336. package/skills/hyperframes/references/frame-worker-core.md +0 -80
  337. package/skills/hyperframes/references/intent-interview.md +0 -71
  338. package/skills/hyperframes/references/pitch-round.md +0 -40
  339. package/skills/hyperframes/references/production-loop.md +0 -26
  340. package/skills/hyperframes/references/review-loop.md +0 -37
  341. package/skills/hyperframes/references/route-briefs.md +0 -11
  342. package/skills/hyperframes/references/routes/embedded-captions.md +0 -11
  343. package/skills/hyperframes/references/routes/faceless-explainer.md +0 -12
  344. package/skills/hyperframes/references/routes/general-video.md +0 -12
  345. package/skills/hyperframes/references/routes/motion-graphics.md +0 -11
  346. package/skills/hyperframes/references/routes/music-to-video.md +0 -12
  347. package/skills/hyperframes/references/routes/pr-to-video.md +0 -28
  348. package/skills/hyperframes/references/routes/product-launch-video.md +0 -13
  349. package/skills/hyperframes/references/routes/remotion-to-hyperframes.md +0 -9
  350. package/skills/hyperframes/references/routes/slideshow.md +0 -11
  351. package/skills/hyperframes/references/routes/talking-head-recut.md +0 -11
  352. package/skills/hyperframes/references/script-format.md +0 -52
  353. package/skills/hyperframes/references/subagent-dispatch.md +0 -35
  354. package/skills/hyperframes/references/workflow-catalog.md +0 -10
  355. package/skills/hyperframes/scripts/lib/frame-packets-core.mjs +0 -194
  356. package/skills/hyperframes-animation/adapters/animate-text.md +0 -64
  357. package/skills/hyperframes-animation/adapters/animejs.md +0 -130
  358. package/skills/hyperframes-animation/adapters/css-animations.md +0 -143
  359. package/skills/hyperframes-animation/adapters/gsap-easing-and-stagger.md +0 -199
  360. package/skills/hyperframes-animation/adapters/gsap-timeline-and-labels.md +0 -96
  361. package/skills/hyperframes-animation/adapters/gsap-transforms-and-perf.md +0 -129
  362. package/skills/hyperframes-animation/adapters/gsap.md +0 -105
  363. package/skills/hyperframes-animation/adapters/html-in-canvas-patterns.md +0 -507
  364. package/skills/hyperframes-animation/adapters/lottie.md +0 -130
  365. package/skills/hyperframes-animation/adapters/three.md +0 -145
  366. package/skills/hyperframes-animation/adapters/typegpu.md +0 -182
  367. package/skills/hyperframes-animation/adapters/waapi.md +0 -101
  368. package/skills/hyperframes-animation/blueprints/agent-progress-theater.md +0 -76
  369. package/skills/hyperframes-animation/blueprints/camera-journey.md +0 -61
  370. package/skills/hyperframes-animation/blueprints/comparison-split.md +0 -27
  371. package/skills/hyperframes-animation/blueprints/constellation-hub.md +0 -63
  372. package/skills/hyperframes-animation/blueprints/cta-morph-press.md +0 -63
  373. package/skills/hyperframes-animation/blueprints/cursor-ui-demo.md +0 -89
  374. package/skills/hyperframes-animation/blueprints/dataviz-countup.md +0 -59
  375. package/skills/hyperframes-animation/blueprints/device-surface-showcase.md +0 -68
  376. package/skills/hyperframes-animation/blueprints/fixed-anchor-cycle.md +0 -46
  377. package/skills/hyperframes-animation/blueprints/grid-card-assemble.md +0 -81
  378. package/skills/hyperframes-animation/blueprints/kinetic-type-beats.md +0 -133
  379. package/skills/hyperframes-animation/blueprints/logo-assemble-lockup.md +0 -121
  380. package/skills/hyperframes-animation/blueprints/overwhelm-surround.md +0 -58
  381. package/skills/hyperframes-animation/blueprints/panel-edit-live-sync.md +0 -73
  382. package/skills/hyperframes-animation/blueprints/prompt-type-submit-generate.md +0 -85
  383. package/skills/hyperframes-animation/blueprints/spatial-pan-stations.md +0 -37
  384. package/skills/hyperframes-animation/blueprints/ticker-takeover.md +0 -29
  385. package/skills/hyperframes-animation/blueprints/titlecard-reveal.md +0 -80
  386. package/skills/hyperframes-animation/blueprints/transcript-scroll-artifact-reveal.md +0 -45
  387. package/skills/hyperframes-animation/blueprints/typewriter-reveal.md +0 -51
  388. package/skills/hyperframes-animation/blueprints/video-text-pivot.md +0 -30
  389. package/skills/hyperframes-animation/blueprints/zoom-out-workspace-reveal.md +0 -68
  390. package/skills/hyperframes-animation/blueprints-index.md +0 -202
  391. package/skills/hyperframes-animation/examples/brand-reveal-assemble-zoom.html +0 -382
  392. package/skills/hyperframes-animation/examples/comparison-split-cards.html +0 -649
  393. package/skills/hyperframes-animation/examples/concept-demo-decode-pan.html +0 -520
  394. package/skills/hyperframes-animation/examples/cta-morph-press.html +0 -468
  395. package/skills/hyperframes-animation/examples/cta-orbit-collapse.html +0 -1298
  396. package/skills/hyperframes-animation/examples/demo-page-scroll-spotlight.html +0 -759
  397. package/skills/hyperframes-animation/examples/hook-counter-burst.html +0 -729
  398. package/skills/hyperframes-animation/examples/messaging-multi-phrase.html +0 -352
  399. package/skills/hyperframes-animation/examples/metric-video-text-pivot.html +0 -779
  400. package/skills/hyperframes-animation/examples/problem-mockup-overwhelm.html +0 -1374
  401. package/skills/hyperframes-animation/examples/proof-logo-chain.html +0 -861
  402. package/skills/hyperframes-animation/examples/takeover-ticker-displace.html +0 -347
  403. package/skills/hyperframes-animation/examples/workflow-approve-press.html +0 -606
  404. package/skills/hyperframes-animation/references/motion-blur.md +0 -133
  405. package/skills/hyperframes-animation/rules/3d-camera-flight.md +0 -180
  406. package/skills/hyperframes-animation/rules/3d-page-scroll.md +0 -135
  407. package/skills/hyperframes-animation/rules/3d-text-depth-layers.md +0 -128
  408. package/skills/hyperframes-animation/rules/ai-tracking-box.md +0 -139
  409. package/skills/hyperframes-animation/rules/ambient-glow-bloom.md +0 -133
  410. package/skills/hyperframes-animation/rules/anchored-layout-expand.md +0 -148
  411. package/skills/hyperframes-animation/rules/asr-keyword-glow.md +0 -128
  412. package/skills/hyperframes-animation/rules/avatar-cloud-network.md +0 -145
  413. package/skills/hyperframes-animation/rules/camera-cursor-tracking.md +0 -133
  414. package/skills/hyperframes-animation/rules/card-morph-anchor.md +0 -134
  415. package/skills/hyperframes-animation/rules/center-outward-expansion.md +0 -88
  416. package/skills/hyperframes-animation/rules/chart-scrub-readout.md +0 -151
  417. package/skills/hyperframes-animation/rules/chromatic-glitch.md +0 -150
  418. package/skills/hyperframes-animation/rules/context-sensitive-cursor.md +0 -140
  419. package/skills/hyperframes-animation/rules/control-target-sync.md +0 -131
  420. package/skills/hyperframes-animation/rules/coordinate-target-zoom.md +0 -138
  421. package/skills/hyperframes-animation/rules/counting-dynamic-scale.md +0 -115
  422. package/skills/hyperframes-animation/rules/css-marker-patterns.md +0 -208
  423. package/skills/hyperframes-animation/rules/cursor-click-ripple.md +0 -104
  424. package/skills/hyperframes-animation/rules/cursor-drag.md +0 -141
  425. package/skills/hyperframes-animation/rules/depth-of-field-blur.md +0 -112
  426. package/skills/hyperframes-animation/rules/depth-scatter-assemble.md +0 -139
  427. package/skills/hyperframes-animation/rules/discrete-text-sequence.md +0 -146
  428. package/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +0 -149
  429. package/skills/hyperframes-animation/rules/gradient-text-sweep.md +0 -136
  430. package/skills/hyperframes-animation/rules/gsap-effects.md +0 -196
  431. package/skills/hyperframes-animation/rules/hacker-flip-3d.md +0 -123
  432. package/skills/hyperframes-animation/rules/kinetic-beat-slam.md +0 -137
  433. package/skills/hyperframes-animation/rules/motion-blur-streak.md +0 -130
  434. package/skills/hyperframes-animation/rules/multi-cursor-choreography.md +0 -133
  435. package/skills/hyperframes-animation/rules/multi-phase-camera.md +0 -129
  436. package/skills/hyperframes-animation/rules/nudge-curve.md +0 -47
  437. package/skills/hyperframes-animation/rules/orbit-3d-entry.md +0 -148
  438. package/skills/hyperframes-animation/rules/particle-burst.md +0 -149
  439. package/skills/hyperframes-animation/rules/physics-press-reaction.md +0 -101
  440. package/skills/hyperframes-animation/rules/press-release-spring.md +0 -108
  441. package/skills/hyperframes-animation/rules/reactive-displacement.md +0 -92
  442. package/skills/hyperframes-animation/rules/scale-swap-transition.md +0 -88
  443. package/skills/hyperframes-animation/rules/sine-wave-loop.md +0 -85
  444. package/skills/hyperframes-animation/rules/split-tilt-cards.md +0 -123
  445. package/skills/hyperframes-animation/rules/spring-pop-entrance.md +0 -107
  446. package/skills/hyperframes-animation/rules/stat-bars-and-fills.md +0 -145
  447. package/skills/hyperframes-animation/rules/svg-icon-enrichment.md +0 -141
  448. package/skills/hyperframes-animation/rules/svg-path-draw.md +0 -122
  449. package/skills/hyperframes-animation/rules/theme-crossfade-morph.md +0 -126
  450. package/skills/hyperframes-animation/rules/vertical-spring-ticker.md +0 -104
  451. package/skills/hyperframes-animation/rules/viewport-change.md +0 -148
  452. package/skills/hyperframes-animation/rules/waterfall-entry.md +0 -81
  453. package/skills/hyperframes-animation/rules-index.md +0 -113
  454. package/skills/hyperframes-animation/scripts/animation-map-sampling.mjs +0 -40
  455. package/skills/hyperframes-animation/scripts/animation-map-sampling.test.mjs +0 -48
  456. package/skills/hyperframes-animation/scripts/animation-map.mjs +0 -659
  457. package/skills/hyperframes-animation/scripts/animation-map.test.mjs +0 -444
  458. package/skills/hyperframes-animation/scripts/package-loader.mjs +0 -415
  459. package/skills/hyperframes-animation/scripts/package-loader.test.mjs +0 -114
  460. package/skills/hyperframes-animation/techniques.md +0 -507
  461. package/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +0 -168
  462. package/skills/hyperframes-animation/transitions/catalog.md +0 -127
  463. package/skills/hyperframes-animation/transitions/css-3d.md +0 -12
  464. package/skills/hyperframes-animation/transitions/css-blur.md +0 -51
  465. package/skills/hyperframes-animation/transitions/css-cover.md +0 -43
  466. package/skills/hyperframes-animation/transitions/css-destruction.md +0 -95
  467. package/skills/hyperframes-animation/transitions/css-dissolve.md +0 -66
  468. package/skills/hyperframes-animation/transitions/css-distortion.md +0 -45
  469. package/skills/hyperframes-animation/transitions/css-grid.md +0 -10
  470. package/skills/hyperframes-animation/transitions/css-light.md +0 -49
  471. package/skills/hyperframes-animation/transitions/css-mechanical.md +0 -30
  472. package/skills/hyperframes-animation/transitions/css-other.md +0 -25
  473. package/skills/hyperframes-animation/transitions/css-push.md +0 -41
  474. package/skills/hyperframes-animation/transitions/css-radial.md +0 -37
  475. package/skills/hyperframes-animation/transitions/css-scale.md +0 -24
  476. package/skills/hyperframes-animation/transitions/overview.md +0 -153
  477. package/skills/hyperframes-audio/references/attributes.md +0 -138
  478. package/skills/hyperframes-audio/references/diagnosis.md +0 -276
  479. package/skills/hyperframes-audio/references/fx-registry.md +0 -84
  480. package/skills/hyperframes-audio/references/presets.md +0 -216
  481. package/skills/hyperframes-core/references/composition-patterns.md +0 -224
  482. package/skills/hyperframes-core/references/creator-editing-recipes.md +0 -491
  483. package/skills/hyperframes-core/references/data-attributes.md +0 -78
  484. package/skills/hyperframes-core/references/determinism-rules.md +0 -53
  485. package/skills/hyperframes-core/references/full-screen-motion.md +0 -67
  486. package/skills/hyperframes-core/references/minimal-composition.md +0 -69
  487. package/skills/hyperframes-core/references/sub-compositions.md +0 -176
  488. package/skills/hyperframes-core/references/tailwind.md +0 -104
  489. package/skills/hyperframes-core/references/tracks-and-clips.md +0 -87
  490. package/skills/hyperframes-core/references/variables-and-media.md +0 -107
  491. package/skills/hyperframes-creative/palettes/bold-energetic.md +0 -14
  492. package/skills/hyperframes-creative/palettes/clean-corporate.md +0 -14
  493. package/skills/hyperframes-creative/palettes/dark-premium.md +0 -14
  494. package/skills/hyperframes-creative/palettes/jewel-rich.md +0 -14
  495. package/skills/hyperframes-creative/palettes/monochrome.md +0 -14
  496. package/skills/hyperframes-creative/palettes/nature-earth.md +0 -14
  497. package/skills/hyperframes-creative/palettes/neon-electric.md +0 -14
  498. package/skills/hyperframes-creative/palettes/pastel-soft.md +0 -14
  499. package/skills/hyperframes-creative/palettes/warm-editorial.md +0 -14
  500. package/skills/hyperframes-creative/references/audio-reactive.md +0 -76
  501. package/skills/hyperframes-creative/references/beat-direction.md +0 -164
  502. package/skills/hyperframes-creative/references/composition-patterns.md +0 -199
  503. package/skills/hyperframes-creative/references/data-in-motion.md +0 -19
  504. package/skills/hyperframes-creative/references/design-adherence.md +0 -19
  505. package/skills/hyperframes-creative/references/design-picker.md +0 -123
  506. package/skills/hyperframes-creative/references/design-spec.md +0 -55
  507. package/skills/hyperframes-creative/references/house-style.md +0 -73
  508. package/skills/hyperframes-creative/references/motion-principles.md +0 -151
  509. package/skills/hyperframes-creative/references/narration.md +0 -92
  510. package/skills/hyperframes-creative/references/prompt-expansion.md +0 -68
  511. package/skills/hyperframes-creative/references/story-spine.md +0 -45
  512. package/skills/hyperframes-creative/references/storyboard-recipe.md +0 -57
  513. package/skills/hyperframes-creative/references/typography.md +0 -218
  514. package/skills/hyperframes-creative/references/video-composition.md +0 -63
  515. package/skills/hyperframes-creative/references/visual-styles.md +0 -457
  516. package/skills/hyperframes-creative/scripts/contrast-report.mjs +0 -538
  517. package/skills/hyperframes-creative/scripts/package-loader.mjs +0 -415
  518. package/skills/hyperframes-creative/scripts/package-loader.test.mjs +0 -114
  519. package/skills/hyperframes-creative/templates/design-picker.html +0 -1432
  520. package/skills/hyperframes-keyframes/agents/openai.yaml +0 -4
  521. package/skills/hyperframes-keyframes/references/keyframe-patterns.md +0 -108
  522. package/skills/motion-graphics/agents/builder.md +0 -41
  523. package/skills/motion-graphics/agents/director.md +0 -54
  524. package/skills/motion-graphics/agents/finalize.md +0 -17
  525. package/skills/motion-graphics/catalog-map.md +0 -52
  526. package/skills/motion-graphics/categories/asset-fusion/module.md +0 -37
  527. package/skills/motion-graphics/categories/charts/module.md +0 -22
  528. package/skills/motion-graphics/categories/kinetic-type/module.md +0 -19
  529. package/skills/motion-graphics/categories/logo-reveal/module.md +0 -17
  530. package/skills/motion-graphics/categories/lower-thirds/module.md +0 -20
  531. package/skills/motion-graphics/categories/maps/module.md +0 -61
  532. package/skills/motion-graphics/categories/news/module.md +0 -56
  533. package/skills/motion-graphics/categories/stat/module.md +0 -21
  534. package/skills/motion-graphics/categories/tweet/module.md +0 -16
  535. package/skills/motion-graphics/categories/webpage/module.md +0 -30
  536. package/skills/motion-graphics/grounding/PROTOCOL.md +0 -64
  537. package/skills/motion-graphics/phases/source/guide.md +0 -21
  538. package/skills/motion-graphics/references/builder-contract.md +0 -38
  539. package/skills/motion-graphics/references/motion-vocabulary.md +0 -47
  540. package/skills/motion-graphics/references/shot-plan-ir.md +0 -54
  541. package/skills/motion-graphics/samples/asset-fusion/_ref-circle-highlight.html +0 -306
  542. package/skills/music-to-video/references/frame-skeleton.md +0 -100
  543. package/skills/music-to-video/references/montage.md +0 -55
  544. package/skills/music-to-video/references/motion-primitive-catalog.md +0 -75
  545. package/skills/music-to-video/references/motion-primitives/3d-card-flip/index.html +0 -53
  546. package/skills/music-to-video/references/motion-primitives/3d-card-flip/scene.html +0 -119
  547. package/skills/music-to-video/references/motion-primitives/assets/gsap.min.js +0 -11
  548. package/skills/music-to-video/references/motion-primitives/bg-flow-field/index.html +0 -53
  549. package/skills/music-to-video/references/motion-primitives/bg-flow-field/scene.html +0 -294
  550. package/skills/music-to-video/references/motion-primitives/binary-decrypt/index.html +0 -54
  551. package/skills/music-to-video/references/motion-primitives/binary-decrypt/scene.html +0 -85
  552. package/skills/music-to-video/references/motion-primitives/blur-resolve/index.html +0 -53
  553. package/skills/music-to-video/references/motion-primitives/blur-resolve/scene.html +0 -60
  554. package/skills/music-to-video/references/motion-primitives/braam-punch/index.html +0 -53
  555. package/skills/music-to-video/references/motion-primitives/braam-punch/scene.html +0 -100
  556. package/skills/music-to-video/references/motion-primitives/chromatic-split/index.html +0 -53
  557. package/skills/music-to-video/references/motion-primitives/chromatic-split/scene.html +0 -111
  558. package/skills/music-to-video/references/motion-primitives/chrome-sweep/index.html +0 -53
  559. package/skills/music-to-video/references/motion-primitives/chrome-sweep/scene.html +0 -68
  560. package/skills/music-to-video/references/motion-primitives/counting-punch/index.html +0 -54
  561. package/skills/music-to-video/references/motion-primitives/counting-punch/scene.html +0 -119
  562. package/skills/music-to-video/references/motion-primitives/crash-zoom-in/index.html +0 -53
  563. package/skills/music-to-video/references/motion-primitives/crash-zoom-in/scene.html +0 -120
  564. package/skills/music-to-video/references/motion-primitives/datamosh-smear/index.html +0 -55
  565. package/skills/music-to-video/references/motion-primitives/datamosh-smear/scene.html +0 -131
  566. package/skills/music-to-video/references/motion-primitives/directional-fill/index.html +0 -53
  567. package/skills/music-to-video/references/motion-primitives/directional-fill/scene.html +0 -103
  568. package/skills/music-to-video/references/motion-primitives/dolly-zoom/index.html +0 -53
  569. package/skills/music-to-video/references/motion-primitives/dolly-zoom/scene.html +0 -102
  570. package/skills/music-to-video/references/motion-primitives/electric-arc/index.html +0 -54
  571. package/skills/music-to-video/references/motion-primitives/electric-arc/scene.html +0 -105
  572. package/skills/music-to-video/references/motion-primitives/flash-cut/index.html +0 -53
  573. package/skills/music-to-video/references/motion-primitives/flash-cut/scene.html +0 -97
  574. package/skills/music-to-video/references/motion-primitives/gooey-metaball/index.html +0 -54
  575. package/skills/music-to-video/references/motion-primitives/gooey-metaball/scene.html +0 -206
  576. package/skills/music-to-video/references/motion-primitives/hard-cut/index.html +0 -53
  577. package/skills/music-to-video/references/motion-primitives/hard-cut/scene.html +0 -82
  578. package/skills/music-to-video/references/motion-primitives/hypercut-whip/index.html +0 -53
  579. package/skills/music-to-video/references/motion-primitives/hypercut-whip/scene.html +0 -44
  580. package/skills/music-to-video/references/motion-primitives/iris-open/index.html +0 -53
  581. package/skills/music-to-video/references/motion-primitives/iris-open/scene.html +0 -69
  582. package/skills/music-to-video/references/motion-primitives/kinetic-letter-in/index.html +0 -53
  583. package/skills/music-to-video/references/motion-primitives/kinetic-letter-in/scene.html +0 -64
  584. package/skills/music-to-video/references/motion-primitives/liquid-morph/index.html +0 -53
  585. package/skills/music-to-video/references/motion-primitives/liquid-morph/scene.html +0 -96
  586. package/skills/music-to-video/references/motion-primitives/mask-reveal/index.html +0 -53
  587. package/skills/music-to-video/references/motion-primitives/mask-reveal/scene.html +0 -74
  588. package/skills/music-to-video/references/motion-primitives/mosaic-pack/index.html +0 -53
  589. package/skills/music-to-video/references/motion-primitives/mosaic-pack/scene.html +0 -89
  590. package/skills/music-to-video/references/motion-primitives/neon-flicker/index.html +0 -53
  591. package/skills/music-to-video/references/motion-primitives/neon-flicker/scene.html +0 -73
  592. package/skills/music-to-video/references/motion-primitives/outline-to-fill/index.html +0 -53
  593. package/skills/music-to-video/references/motion-primitives/outline-to-fill/scene.html +0 -82
  594. package/skills/music-to-video/references/motion-primitives/palette-flip/index.html +0 -53
  595. package/skills/music-to-video/references/motion-primitives/palette-flip/scene.html +0 -97
  596. package/skills/music-to-video/references/motion-primitives/particle-burst/index.html +0 -53
  597. package/skills/music-to-video/references/motion-primitives/particle-burst/scene.html +0 -106
  598. package/skills/music-to-video/references/motion-primitives/pixel-dissolve/index.html +0 -53
  599. package/skills/music-to-video/references/motion-primitives/pixel-dissolve/scene.html +0 -86
  600. package/skills/music-to-video/references/motion-primitives/radial-burst-lines/index.html +0 -53
  601. package/skills/music-to-video/references/motion-primitives/radial-burst-lines/scene.html +0 -130
  602. package/skills/music-to-video/references/motion-primitives/screen-shake/index.html +0 -53
  603. package/skills/music-to-video/references/motion-primitives/screen-shake/scene.html +0 -78
  604. package/skills/music-to-video/references/motion-primitives/slot-machine-reveal/index.html +0 -53
  605. package/skills/music-to-video/references/motion-primitives/slot-machine-reveal/scene.html +0 -100
  606. package/skills/music-to-video/references/motion-primitives/spotlight-sweep/index.html +0 -53
  607. package/skills/music-to-video/references/motion-primitives/spotlight-sweep/scene.html +0 -102
  608. package/skills/music-to-video/references/motion-primitives/staggered-exit/index.html +0 -53
  609. package/skills/music-to-video/references/motion-primitives/staggered-exit/scene.html +0 -82
  610. package/skills/music-to-video/references/motion-primitives/text-spectral-rays/USAGE.md +0 -42
  611. package/skills/music-to-video/references/motion-primitives/text-spectral-rays/index.html +0 -53
  612. package/skills/music-to-video/references/motion-primitives/text-spectral-rays/scene.html +0 -280
  613. package/skills/music-to-video/references/motion-primitives/text-wave-distort/index.html +0 -54
  614. package/skills/music-to-video/references/motion-primitives/text-wave-distort/scene.html +0 -106
  615. package/skills/music-to-video/references/motion-primitives/tile-mosaic/index.html +0 -53
  616. package/skills/music-to-video/references/motion-primitives/tile-mosaic/scene.html +0 -109
  617. package/skills/music-to-video/references/motion-primitives/typewriter-reveal/index.html +0 -53
  618. package/skills/music-to-video/references/motion-primitives/typewriter-reveal/scene.html +0 -91
  619. package/skills/music-to-video/references/motion-primitives/word-grid-burst/index.html +0 -53
  620. package/skills/music-to-video/references/motion-primitives/word-grid-burst/scene.html +0 -96
  621. package/skills/music-to-video/references/planning.md +0 -104
  622. package/skills/music-to-video/references/storyboard-format.md +0 -94
  623. package/skills/music-to-video/references/template-catalog.md +0 -106
  624. package/skills/music-to-video/references/templates/card-flyby/index.html +0 -527
  625. package/skills/music-to-video/references/templates/card-flyby/program.json +0 -13
  626. package/skills/music-to-video/references/templates/held-message-living-field/index.html +0 -485
  627. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/asphalt-031.png +0 -0
  628. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/bark-014.png +0 -0
  629. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/brick.png +0 -0
  630. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/bricks-075-a.png +0 -0
  631. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/bricks-101.png +0 -0
  632. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/bricks-102.png +0 -0
  633. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/bricks-104.png +0 -0
  634. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/carpet.png +0 -0
  635. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/concrete-034.png +0 -0
  636. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/concrete-042-a.png +0 -0
  637. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/concrete-046.png +0 -0
  638. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/concrete-047-a.png +0 -0
  639. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/concrete.png +0 -0
  640. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/diamond-plate-009.png +0 -0
  641. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/fabric-080.png +0 -0
  642. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/fabric-083.png +0 -0
  643. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/grass-001.png +0 -0
  644. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/grass-004.png +0 -0
  645. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/grass-005.png +0 -0
  646. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-037.png +0 -0
  647. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-054.png +0 -0
  648. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-068.png +0 -0
  649. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-080.png +0 -0
  650. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-103.png +0 -0
  651. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/ground-104.png +0 -0
  652. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/lava.png +0 -0
  653. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/leather-037.png +0 -0
  654. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/marble-012.png +0 -0
  655. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/marble-016.png +0 -0
  656. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-032.png +0 -0
  657. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-038.png +0 -0
  658. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-041-a.png +0 -0
  659. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-046-b.png +0 -0
  660. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-048-a.png +0 -0
  661. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-049-a.png +0 -0
  662. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-055-a.png +0 -0
  663. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal-061-b.png +0 -0
  664. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/metal.png +0 -0
  665. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/onyx.png +0 -0
  666. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/painted-plaster-017.png +0 -0
  667. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/paving-stones-138.png +0 -0
  668. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/paving-stones-150.png +0 -0
  669. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/plaster-001.png +0 -0
  670. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-007.png +0 -0
  671. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-008-a.png +0 -0
  672. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-009-c.png +0 -0
  673. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-012-a.png +0 -0
  674. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-012-b.png +0 -0
  675. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/road-013-a.png +0 -0
  676. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/rock-058.png +0 -0
  677. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/rock-063.png +0 -0
  678. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/rock.png +0 -0
  679. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/snow-015.png +0 -0
  680. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/snow.png +0 -0
  681. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/tiles-138.png +0 -0
  682. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/travertine-009.png +0 -0
  683. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-049.png +0 -0
  684. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-051.png +0 -0
  685. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-058.png +0 -0
  686. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-066.png +0 -0
  687. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-092.png +0 -0
  688. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-094.png +0 -0
  689. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-floor-051.png +0 -0
  690. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-floor-064.png +0 -0
  691. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood-floor-070.png +0 -0
  692. package/skills/music-to-video/references/templates/held-text-strobe-burst/assets/texture-mask-text/masks/wood.png +0 -0
  693. package/skills/music-to-video/references/templates/held-text-strobe-burst/index.html +0 -302
  694. package/skills/music-to-video/references/templates/intro-kinetic-cascade/index.html +0 -610
  695. package/skills/music-to-video/references/templates/intro-kinetic-cascade/program.json +0 -41
  696. package/skills/music-to-video/references/templates/logo-split-lockup-pulse/assets/fredoka-700.woff2 +0 -0
  697. package/skills/music-to-video/references/templates/logo-split-lockup-pulse/index.html +0 -596
  698. package/skills/music-to-video/references/templates/poster-tile-mosaic/index.html +0 -589
  699. package/skills/music-to-video/references/templates/poster-tile-mosaic/program.json +0 -25
  700. package/skills/music-to-video/references/templates/roll-flipbook-word-cycle/index.html +0 -267
  701. package/skills/music-to-video/references/templates/split-anchor-word-slot/index.html +0 -594
  702. package/skills/music-to-video/references/templates/split-anchor-word-slot/program.json +0 -39
  703. package/skills/music-to-video/references/templates/typewriter-phrase-keyword-shuffle/index.html +0 -238
  704. package/skills/music-to-video/scripts/analyze-beatgrid.py +0 -542
  705. package/skills/music-to-video/scripts/assemble-index.mjs +0 -220
  706. package/skills/music-to-video/scripts/lib/storyboard.mjs +0 -249
  707. package/skills/music-to-video/scripts/stage-assets.mjs +0 -58
  708. package/skills/music-to-video/scripts/validate-plan.mjs +0 -161
  709. package/skills/music-to-video/sub-agents/frame-worker.md +0 -49
  710. package/skills/pr-to-video/references/code-vocabulary.md +0 -113
  711. package/skills/pr-to-video/references/cut-catalog.md +0 -215
  712. package/skills/pr-to-video/references/motion-language.md +0 -156
  713. package/skills/pr-to-video/references/story-design.md +0 -230
  714. package/skills/pr-to-video/references/visual-design.md +0 -164
  715. package/skills/pr-to-video/scripts/assemble-index.mjs +0 -631
  716. package/skills/pr-to-video/scripts/assemble-index.test.mjs +0 -130
  717. package/skills/pr-to-video/scripts/audio.mjs +0 -293
  718. package/skills/pr-to-video/scripts/build-frame.mjs +0 -589
  719. package/skills/pr-to-video/scripts/captions.mjs +0 -524
  720. package/skills/pr-to-video/scripts/captions.test.mjs +0 -260
  721. package/skills/pr-to-video/scripts/fetch-people-avatars.mjs +0 -157
  722. package/skills/pr-to-video/scripts/fetch-pr.mjs +0 -234
  723. package/skills/pr-to-video/scripts/frame-contract.test.mjs +0 -209
  724. package/skills/pr-to-video/scripts/frame-packets.mjs +0 -62
  725. package/skills/pr-to-video/scripts/ingest.mjs +0 -561
  726. package/skills/pr-to-video/scripts/lib/assets.mjs +0 -56
  727. package/skills/pr-to-video/scripts/lib/bgm-volume.mjs +0 -4
  728. package/skills/pr-to-video/scripts/lib/captured-fonts.mjs +0 -58
  729. package/skills/pr-to-video/scripts/lib/dimensions.mjs +0 -45
  730. package/skills/pr-to-video/scripts/lib/frame-contract.mjs +0 -54
  731. package/skills/pr-to-video/scripts/lib/frame-packets-core.mjs +0 -194
  732. package/skills/pr-to-video/scripts/lib/pad-frame-duration.mjs +0 -36
  733. package/skills/pr-to-video/scripts/lib/storyboard.mjs +0 -249
  734. package/skills/pr-to-video/scripts/lib/tokens.mjs +0 -211
  735. package/skills/pr-to-video/scripts/lib/transition-registry.mjs +0 -38
  736. package/skills/pr-to-video/scripts/lib/transitions.json +0 -71
  737. package/skills/pr-to-video/scripts/preflight.mjs +0 -51
  738. package/skills/pr-to-video/scripts/project-dir.mjs +0 -92
  739. package/skills/pr-to-video/scripts/transitions.mjs +0 -383
  740. package/skills/pr-to-video/scripts/workflow-guardrails.test.mjs +0 -198
  741. package/skills/pr-to-video/sub-agents/frame-worker.md +0 -38
  742. package/skills/product-launch-video/references/cut-catalog.md +0 -220
  743. package/skills/product-launch-video/references/motion-language.md +0 -156
  744. package/skills/product-launch-video/references/story-design.md +0 -508
  745. package/skills/product-launch-video/references/visual-design.md +0 -126
  746. package/skills/product-launch-video/scripts/assemble-index.mjs +0 -773
  747. package/skills/product-launch-video/scripts/assemble-index.test.mjs +0 -127
  748. package/skills/product-launch-video/scripts/audio.mjs +0 -293
  749. package/skills/product-launch-video/scripts/audio.test.mjs +0 -234
  750. package/skills/product-launch-video/scripts/build-frame-subsets.test.mjs +0 -152
  751. package/skills/product-launch-video/scripts/build-frame.mjs +0 -552
  752. package/skills/product-launch-video/scripts/captions.mjs +0 -524
  753. package/skills/product-launch-video/scripts/captions.test.mjs +0 -219
  754. package/skills/product-launch-video/scripts/capture-skill-guardrails.test.mjs +0 -39
  755. package/skills/product-launch-video/scripts/frame-packets.mjs +0 -27
  756. package/skills/product-launch-video/scripts/frame-packets.test.mjs +0 -144
  757. package/skills/product-launch-video/scripts/lib/assets.mjs +0 -56
  758. package/skills/product-launch-video/scripts/lib/bgm-volume.mjs +0 -4
  759. package/skills/product-launch-video/scripts/lib/captured-fonts.mjs +0 -58
  760. package/skills/product-launch-video/scripts/lib/dimensions.mjs +0 -45
  761. package/skills/product-launch-video/scripts/lib/frame-packets-core.mjs +0 -194
  762. package/skills/product-launch-video/scripts/lib/pad-frame-duration.mjs +0 -36
  763. package/skills/product-launch-video/scripts/lib/pad-frame-duration.test.mjs +0 -76
  764. package/skills/product-launch-video/scripts/lib/storyboard.mjs +0 -249
  765. package/skills/product-launch-video/scripts/lib/tokens.mjs +0 -218
  766. package/skills/product-launch-video/scripts/lib/tokens.test.mjs +0 -57
  767. package/skills/product-launch-video/scripts/lib/transition-registry.mjs +0 -38
  768. package/skills/product-launch-video/scripts/lib/transitions.json +0 -71
  769. package/skills/product-launch-video/scripts/media-contract.test.mjs +0 -200
  770. package/skills/product-launch-video/scripts/stage-assets.mjs +0 -39
  771. package/skills/product-launch-video/scripts/stage-assets.test.mjs +0 -52
  772. package/skills/product-launch-video/scripts/transitions.mjs +0 -383
  773. package/skills/product-launch-video/scripts/transitions.test.mjs +0 -68
  774. package/skills/product-launch-video/sub-agents/frame-worker.md +0 -21
  775. package/skills/talking-head-recut/NOTICE.md +0 -39
  776. package/skills/talking-head-recut/assets/fonts/Caveat-400-latin.woff2 +0 -0
  777. package/skills/talking-head-recut/assets/fonts/Caveat-700-latin.woff2 +0 -0
  778. package/skills/talking-head-recut/assets/fonts/Inter-400-latin.woff2 +0 -0
  779. package/skills/talking-head-recut/assets/fonts/Inter-700-latin.woff2 +0 -0
  780. package/skills/talking-head-recut/assets/fonts/LXGWWenKaiTC-400-latin.woff2 +0 -0
  781. package/skills/talking-head-recut/assets/fonts/Virgil.woff2 +0 -0
  782. package/skills/talking-head-recut/assets/vendor/gsap.min.js +0 -10
  783. package/skills/talking-head-recut/media-contract.test.mjs +0 -35
  784. package/skills/talking-head-recut/references/DESIGN_INDEX.md +0 -145
  785. package/skills/talking-head-recut/references/frames/clean.html +0 -92
  786. package/skills/talking-head-recut/references/frames/hairline.html +0 -171
  787. package/skills/talking-head-recut/references/frames/polaroid.html +0 -131
  788. package/skills/talking-head-recut/references/layouts/overlay.html +0 -164
  789. package/skills/talking-head-recut/references/layouts/pip.html +0 -143
  790. package/skills/talking-head-recut/references/layouts/split.html +0 -121
  791. package/skills/talking-head-recut/references/layouts/stack.html +0 -109
  792. package/skills/talking-head-recut/references/styles/academic.html +0 -172
  793. package/skills/talking-head-recut/references/styles/audit.html +0 -170
  794. package/skills/talking-head-recut/references/styles/editorial.html +0 -189
  795. package/skills/talking-head-recut/references/styles/geom.html +0 -181
  796. package/skills/talking-head-recut/references/styles/minimal.html +0 -130
  797. package/skills/talking-head-recut/references/styles/spotlight.html +0 -142
  798. package/skills/talking-head-recut/references/styles/swiss.html +0 -188
  799. package/skills/talking-head-recut/references/styles/terminal.html +0 -196
  800. package/skills/talking-head-recut/references/styles/whiteboard.html +0 -170
  801. package/skills/talking-head-recut/references/styles/xhs.html +0 -206
  802. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/biennale-yellow/FRAME.md +0 -0
  803. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/biennale-yellow/frame-showcase.html +0 -0
  804. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blockframe/FRAME.md +0 -0
  805. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blockframe/frame-showcase.html +0 -0
  806. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blue-professional/FRAME.md +0 -0
  807. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/blue-professional/frame-showcase.html +0 -0
  808. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/bold-poster/FRAME.md +0 -0
  809. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/bold-poster/frame-showcase.html +0 -0
  810. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/broadside/FRAME.md +0 -0
  811. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/broadside/frame-showcase.html +0 -0
  812. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/capsule/FRAME.md +0 -0
  813. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/capsule/frame-showcase.html +0 -0
  814. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cartesian/FRAME.md +0 -0
  815. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cartesian/frame-showcase.html +0 -0
  816. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cobalt-grid/FRAME.md +0 -0
  817. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/cobalt-grid/frame-showcase.html +0 -0
  818. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/EBGaramond-400.woff2 +0 -0
  819. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/EBGaramond-700.woff2 +0 -0
  820. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/Inter-400.woff2 +0 -0
  821. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/Inter-700.woff2 +0 -0
  822. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2 +0 -0
  823. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2 +0 -0
  824. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/OFL-eb-garamond.txt +0 -0
  825. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/OFL-inter.txt +0 -0
  826. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/fonts/OFL-jetbrains-mono.txt +0 -0
  827. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/code-editorial/frame-showcase.html +0 -0
  828. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/coral/FRAME.md +0 -0
  829. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/coral/frame-showcase.html +0 -0
  830. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/creative-mode/FRAME.md +0 -0
  831. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/creative-mode/frame-showcase.html +0 -0
  832. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/daisy-days/FRAME.md +0 -0
  833. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/daisy-days/frame-showcase.html +0 -0
  834. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/editorial-forest/FRAME.md +0 -0
  835. /package/skills/{hyperframes-creative → hyperframes/assets}/frame-presets/editorial-forest/frame-showcase.html +0 -0
  836. /package/skills/{hyperframes-audio → media-use/audio}/scripts/carve.test.mjs +0 -0
  837. /package/skills/{hyperframes-creative → media-use/audio}/scripts/extract-audio-data.py +0 -0
@@ -1,1206 +0,0 @@
1
- #!/usr/bin/env node
2
- /*
3
- * make-cinematic.cjs — compile cinematic.json → plan.json (then make-composition.cjs).
4
- * CINEMATIC MODE, raised to BLOCK level. The agent authors thought-BLOCKS — lines of
5
- * words, which plane each block stacks in, at most one promoted HERO word — and the
6
- * compiler lowers that into the classic plan.json with everything deterministic
7
- * generated, so the Cinematic failure modes seen in the wild become impossible:
8
- * - READING ORDER by construction: lines stack in declaration order inside a flex
9
- * plane (spoken order = visual order; a hero can never sit below later words)
10
- * - timings from the transcript BY SEQUENCE (no hand-copied times; duplicates by position)
11
- * - accumulate-within-block / page-flip-between-blocks rhythm generated:
12
- * lines of a block share the block's out (they accumulate, then clear together
13
- * when the next block's first word lands); the NEXT block enters fresh
14
- * - hero hand-off: the promoted word is lifted OUT of its line, enters as the hero
15
- * (its own plane, BIG) when spoken, holds to the END of its block, exits cleanly
16
- * - fg fallback: safe-zones verdict "fg" → caption_layer:"fg" automatically
17
- *
18
- * node make-cinematic.cjs <project-dir>
19
- *
20
- * cinematic.json schema:
21
- * {
22
- * "template": "cinematic-cream",
23
- * "width": 1920, "height": 1080, "fps": 30,
24
- * "planes": { // layout REGIONS — place them using safe-zones.json
25
- * "narr": "top: 14%; left: 4%; width: 26%;", // string or {css}
26
- * "hero": null // null/absent → auto from safe-zones heroAnchor
27
- * },
28
- * "blocks": [
29
- * { "plane": "narr", "lines": [
30
- * { "words": ["You","need","to"], "css": "font-size: calc(0.05*var(--h)); font-weight:600;" },
31
- * { "words": ["judge","us","by","the"], "css": "font-size: calc(0.062*var(--h)); font-weight:700;" },
32
- * { "words": ["actions"], "hero": true,
33
- * "text": "ACTIONS", "css": "font-size: calc(0.24*var(--h)); font-weight:900; text-transform:uppercase;" },
34
- * { "words": ["that","we","take."], "css": "font-size: calc(0.05*var(--h));" },
35
- * // per-line escape hatch: "layer":"fg" lifts a line ABOVE the subject matte
36
- * // (use when the occlusion gate reports a context line eaten by the subject)
37
- * { "words": ["over","the","subject"], "layer": "fg" }
38
- * ] },
39
- * { "plane": "narr", "lines": [ ... next thought ... ] }
40
- * ],
41
- * "tones": { "default": "soft", "hero": "present" } // optional
42
- * }
43
- * Rules: words must match the transcript verbatim in spoken order across all blocks.
44
- * Mark at most ONE line "hero": true per clip (scarcity); its words form the hero
45
- * (usually a single word; "text" overrides the display form).
46
- */
47
- const path = require("path");
48
- const fs = require("fs");
49
-
50
- const norm = (s) =>
51
- String(s == null ? "" : s)
52
- .toLowerCase()
53
- .replace(/[^a-z0-9']/g, "");
54
- const LOOKAHEAD = 40;
55
-
56
- // Authored css WITHOUT a font-size renders at browser-default ~16px (an
57
- // invisible ribbon) and every gate still passes — observed in the cold-start
58
- // E2E. Guarantee the default is present whenever the author omitted it.
59
- function ensureFontSize(css, defaultDecl) {
60
- if (!css) return defaultDecl;
61
- return /font-size\s*:/.test(css) ? css : defaultDecl + " " + css;
62
- }
63
-
64
- function die(m) {
65
- console.error(`[make-cinematic] ${m}`);
66
- process.exit(1);
67
- }
68
-
69
- function main() {
70
- const project = path.resolve(process.argv[2] || "");
71
- if (!process.argv[2]) die("usage: make-cinematic.cjs <project-dir>");
72
- const cj = path.join(project, "cinematic.json");
73
- const tj = path.join(project, "transcript.json");
74
- if (!fs.existsSync(cj)) die(`missing ${cj} — author it first (schema in this header)`);
75
- if (!fs.existsSync(tj)) die(`missing ${tj} — run prepare.sh first`);
76
- const C = JSON.parse(fs.readFileSync(cj, "utf8"));
77
- const tr = (JSON.parse(fs.readFileSync(tj, "utf8")).words || []).filter(
78
- (w) => w && "start" in w && "end" in w,
79
- );
80
- if (!tr.length) die("transcript has no word timings");
81
-
82
- // safe-zones: fg verdict + heroAnchor default
83
- let sz = null;
84
- try {
85
- sz = JSON.parse(fs.readFileSync(path.join(project, "safe-zones.json"), "utf8"));
86
- } catch {}
87
- // author override first (borderline scenes: coverage near the line, agitated subject),
88
- // else the safe-zones verdict.
89
- // narration legibility follows the verdict; the HERO is judged separately — it WANTS
90
- // occlusion (~30–55% is the product). fg for the hero is the LAST resort: only when no
91
- // height band achieves ≤62% predicted occlusion (safe-zones heroBands). An explicit
92
- // author caption_layer:"fg" still forces everything front.
93
- const authorFg = C.caption_layer === "fg";
94
- const narrFg = authorFg || (sz && sz.recommendation === "fg");
95
- const hb = sz && sz.heroBands;
96
- const heroFeasible = authorFg ? false : hb ? hb.feasible : !narrFg;
97
- const globalFg = narrFg; // narration layer (name kept for the lowering below)
98
-
99
- const W = C.width || 1920,
100
- H = C.height || 1080,
101
- FPS = C.fps || 24;
102
- const blocks = C.blocks || [];
103
- if (!blocks.length) die("blocks is empty");
104
-
105
- // ── sequence-match every word across blocks/lines ──────────────────────────
106
- let p = 0;
107
- const missing = [];
108
- for (const b of blocks)
109
- for (const ln of b.lines || []) {
110
- ln._w = (ln.words || []).map((text) => {
111
- const t = norm(text);
112
- let f = -1;
113
- for (let j = p; j < Math.min(tr.length, p + LOOKAHEAD); j++)
114
- if (norm(tr[j].text) === t) {
115
- f = j;
116
- break;
117
- }
118
- if (f < 0) {
119
- missing.push(text);
120
- return { text, start: null, end: null };
121
- }
122
- p = f + 1;
123
- return { text, start: tr[f].start, end: tr[f].end, ti: f };
124
- });
125
- }
126
- if (missing.length)
127
- die(
128
- `words not in transcript (in order): ${missing.join(" ")} — lines must match the transcript verbatim`,
129
- );
130
-
131
- // COMPLETENESS GATE — verbatim is a hard rule, so enforce it at compile time: the
132
- // sequence matcher's lookahead can silently SKIP transcript words the author forgot
133
- // (a real case shipped missing "in our newly released model."). Every transcript word
134
- // must be consumed; the only legitimate drops are filler (um/uh/stutters), declared in
135
- // cinematic.json "drops": ["um", ...].
136
- {
137
- const consumed = new Set();
138
- for (const b of blocks)
139
- for (const ln of b.lines || []) for (const w of ln._w) if (w.ti != null) consumed.add(w.ti);
140
- const dropOk = new Set((C.drops || []).map(norm));
141
- const FILLER = new Set(["um", "uh", "er", "ah", "hmm", "mm"]);
142
- const skipped = tr
143
- .map((w, i) => ({ w, i }))
144
- .filter(
145
- ({ w, i }) => !consumed.has(i) && !dropOk.has(norm(w.text)) && !FILLER.has(norm(w.text)),
146
- );
147
- if (skipped.length)
148
- die(
149
- `VERBATIM VIOLATION — ${skipped.length} transcript word(s) never authored (the matcher skipped them): ` +
150
- `${skipped.map(({ w }) => `"${w.text}"`).join(" ")} — add them to a line, or declare true filler in "drops": []`,
151
- );
152
- }
153
-
154
- // text override + multiple words double-renders (override replaces word 1, words
155
- // 2..n still draw) — caught cold by a clean-room agent; illegal for ANY hero line.
156
- for (const b of blocks)
157
- for (const ln of b.lines || []) {
158
- if (ln.hero && ln.text && (ln.words || []).length > 1)
159
- die(
160
- `hero line ["${(ln.words || []).join('" "')}"] has BOTH multiple words and a "text" override — drop "text" (words render verbatim; DNA case applies) or promote a single word.`,
161
- );
162
- }
163
-
164
- // ── block windows: in = first word −lead; out = page-flip = next block's first word −0.28 (or +1.2 hold) ──
165
- const LEAD = 0.18;
166
- const bw = blocks.map((b) => {
167
- const ws = (b.lines || []).flatMap((l) => l._w);
168
- return { first: Math.min(...ws.map((w) => w.start)), last: Math.max(...ws.map((w) => w.end)) };
169
- });
170
- let srcDur = null;
171
- try {
172
- const cp = require("child_process");
173
- for (const f of ["source.mp4"].concat(
174
- fs.readdirSync(project).filter((x) => /\.(mp4|mov|webm)$/i.test(x)),
175
- )) {
176
- const fp = path.join(project, f);
177
- if (!fs.existsSync(fp)) continue;
178
- const d = parseFloat(
179
- cp.execFileSync(
180
- "ffprobe",
181
- [
182
- "-v",
183
- "error",
184
- "-show_entries",
185
- "format=duration",
186
- "-of",
187
- "default=nokey=1:noprint_wrappers=1",
188
- "--",
189
- fp,
190
- ],
191
- { encoding: "utf8" },
192
- ),
193
- );
194
- if (d > 0) {
195
- srcDur = d;
196
- break;
197
- }
198
- }
199
- } catch {}
200
- const DUR = +(srcDur || bw[bw.length - 1].last + 0.6).toFixed(3);
201
- // ── SLOT layout + paging. Lines get FIXED absolute positions (no flex reflow — the
202
- // "lower line jumps up when the upper one clears" bug is impossible by construction).
203
- // Lines accumulate down the plane like a poem; the plane PAGE-FLIPS (all visible lines
204
- // clear together, the next line restarts at the top) only when (a) the plane is full,
205
- // (b) a block sets "flip": true, or (c) a block boundary coincides with a real speech
206
- // pause (≥0.6s). Block windows (bw) are kept only for the hero's hold.
207
- for (let i = 0; i < bw.length; i++) {
208
- bw[i].in = Math.max(0, bw[i].first - LEAD);
209
- bw[i].out = Math.min(DUR - 0.05, Math.min(bw[i].last, DUR - 0.05) + 0.9);
210
- // a block's hold (incl. a LOCKUP's) yields to the NEXT block's entrance — the same
211
- // page-flip semantics columns already have; floor: its own words must finish
212
- if (i + 1 < bw.length)
213
- bw[i].out = Math.max(
214
- Math.min(bw[i].last, DUR - 0.05) + 0.15,
215
- Math.min(bw[i].out, bw[i + 1].first - 0.28),
216
- );
217
- }
218
- const fracOfLine = (css) => {
219
- const m = (css || "").match(/font-size\s*:\s*calc\(\s*([\d.]+)\s*\*\s*var\(--h\)/);
220
- return m ? +m[1] : 0.05;
221
- };
222
- const planeBudgetPx = (pk) => {
223
- const css =
224
- (C.planes &&
225
- C.planes[pk] &&
226
- (typeof C.planes[pk] === "string" ? C.planes[pk] : C.planes[pk].css)) ||
227
- "";
228
- const m = css.match(/height\s*:\s*([\d.]+)%/);
229
- return (m ? +m[1] / 100 : 0.3) * H;
230
- };
231
-
232
- // ── planes: agent's + auto LOCKUP planes (one per hero block) ───────────────
233
- // The LOCKUP is the layout answer to "the sentence reads broken around the hero":
234
- // a hero block's lines do NOT scatter into the narration column — kicker, HERO and
235
- // tail compose as ONE bonded ORBIT (context anchored at the hero's edges, diagonal
236
- // read). DEPTH: context EMBEDS (bg) with the hero — one shared depth; per-line
237
- // `layer:"fg"` is the escape hatch when the matte eats a context line (gate tells you).
238
- const planes = {};
239
- for (const [k, v] of Object.entries(C.planes || {})) {
240
- if (v == null) continue;
241
- let css = typeof v === "string" ? v : v.css || "";
242
- if (!/text-align\s*:/.test(css)) css += " text-align:center;"; // slot children are absolute; only alignment carries
243
- planes[k] = { css };
244
- }
245
- // multiple heroes allowed — scarcity is per BLOCK (≤1 per thought), not per clip.
246
- // The LARGEST authored hero is the APEX: it gets the full lockup embed (centered on
247
- // the subject, matte showcase). Smaller heroes are MINOR peaks: they stay IN their
248
- // column's flow as oversized emphasis lines (fg, hero motion at reduced amplitude) —
249
- // not every beat needs the matte showcase; that's what keeps the apex an event.
250
- const allHeroBlocks = [];
251
- blocks.forEach((b, bi) => {
252
- const hs = (b.lines || []).filter((l) => l.hero === true);
253
- if (hs.length > 1)
254
- die(
255
- `block ${bi} has ${hs.length} hero lines — at most ONE hero per block (scarcity = per beat)`,
256
- );
257
- if (hs.length === 1)
258
- allHeroBlocks.push({ b, bi, ln: hs[0], frac: fracOfLine(hs[0].css) || 0.24 });
259
- });
260
- const apexFracAll = Math.max(...allHeroBlocks.map((h) => h.frac), 0);
261
- // placement: "column" keeps even an APEX in its column's flow (the hero bursts the
262
- // column instead of crossing the subject) — the sanctioned alternative to the
263
- // subject-anchored lockup. Author it per hero line: { "hero": true, "placement": "column" }.
264
- const heroBlocks = allHeroBlocks.filter(
265
- (h) => h.frac >= apexFracAll - 1e-6 && (h.ln.placement || "subject") !== "column",
266
- );
267
- const minorHeroBis = new Set(
268
- allHeroBlocks
269
- .filter((h) => h.frac < apexFracAll - 1e-6 || (h.ln.placement || "subject") === "column")
270
- .map((h) => h.bi),
271
- );
272
- const columnApexBis = new Set(
273
- allHeroBlocks
274
- .filter((h) => h.frac >= apexFracAll - 1e-6 && (h.ln.placement || "subject") === "column")
275
- .map((h) => h.bi),
276
- );
277
- if (minorHeroBis.size)
278
- console.log(
279
- `[make-cinematic] ${minorHeroBis.size} minor hero(es) stay in the column flow (apex gets the lockup embed)`,
280
- );
281
- const lockupName = (bi) => `lockup-b${bi}`;
282
- const lockupTemplate =
283
- C.planes && C.planes.lockup
284
- ? typeof C.planes.lockup === "string"
285
- ? C.planes.lockup
286
- : C.planes.lockup.css
287
- : null;
288
- delete planes.lockup; // template only — not a real plane
289
- for (const hRef of heroBlocks) {
290
- const a = sz && sz.heroAnchor && sz.heroAnchor.plane;
291
- // band pick: target ~40% occlusion AND a band the DNA's text can survive on
292
- // (skip bright bands when luma data exists) — heroAnchor.yPct is the fallback
293
- let heroTop = a ? a.yPct : 30;
294
- if (hb && hb.profile && hb.profile.length) {
295
- const ok = hb.profile.filter(
296
- (b2) => b2.occPct >= 12 && b2.occPct <= 62 && (b2.bgLuma == null || b2.bgLuma <= 165),
297
- );
298
- const pool = ok.length ? ok : hb.profile;
299
- const best = pool.reduce((x, y) =>
300
- Math.abs(y.occPct - 40) < Math.abs(x.occPct - 40) ? y : x,
301
- );
302
- heroTop = +(best.topPct + 6.5).toFixed(1);
303
- }
304
- const heroFrac = (hRef.ln.css || "").match(/calc\(\s*([\d.]+)\s*\*\s*var\(--h\)/);
305
- // the lockup is taller than the hero alone (context above+below) — anchor so the
306
- // HERO band (not the plane top) lands on the target, then clamp so the WHOLE
307
- // lockup (pre + hero + post) stays on frame
308
- const heroIdx2 = (hRef.b.lines || []).indexOf(hRef.ln);
309
- const preH = (hRef.b.lines || [])
310
- .filter((l, i) => l !== hRef.ln && i < heroIdx2)
311
- .reduce(
312
- (s, l) =>
313
- s + (fracOfLine(l.css) * 100 * 1.32 + Math.max(1.6, fracOfLine(l.css) * 100 * 0.38)),
314
- 0,
315
- );
316
- const postH = (hRef.b.lines || [])
317
- .filter((l, i) => l !== hRef.ln && i > heroIdx2)
318
- .reduce(
319
- (s, l) =>
320
- s + (fracOfLine(l.css) * 100 * 1.32 + Math.max(1.6, fracOfLine(l.css) * 100 * 0.38)),
321
- 0,
322
- );
323
- const heroHpct = (heroFrac ? +heroFrac[1] : 0.24) * 100 * 1.12;
324
- const totalH = preH + heroHpct + postH;
325
- let top = +Math.max(2, Math.min(96 - totalH, heroTop - heroHpct / 2 - preH)).toFixed(1);
326
- const css = lockupTemplate
327
- ? lockupTemplate.replace(/top:\s*[\d.]+%/, `top: ${top}%`)
328
- : a
329
- ? `top: ${top}%; left: ${a.xPct}%; width: ${a.wPct}%; text-align: center;`
330
- : `top: ${top}%; left: 6%; width: 88%; text-align: center;`;
331
- planes[lockupName(hRef.bi)] = { css };
332
- hRef.plane = lockupName(hRef.bi);
333
- }
334
- // legacy alias: an author-defined "hero" plane positions the FIRST lockup
335
- if (planes.hero) {
336
- if (heroBlocks.length) {
337
- planes[lockupName(heroBlocks[0].bi)] = planes.hero;
338
- }
339
- delete planes.hero;
340
- }
341
-
342
- // ── PER-PLANE LEGIBILITY COMPENSATION ────────────────────────────────────
343
- // The DNA fixes hue + blend; the SCENE decides whether that survives. Match each
344
- // plane to its best-overlapping measured zone and ladder the treatment:
345
- // luma > 150 → opaque (blend:normal) + strong tight scrim — screen/blend washes out
346
- // luma 95–150 → keep the DNA blend, strengthen the glyph scrim
347
- const planeComp = {};
348
- if (sz && sz.zones) {
349
- const zlist = Object.entries(sz.zones).filter(([, z]) => z && z.meanLuma != null);
350
- for (const [pk, pv] of Object.entries(C.planes || {})) {
351
- const css0 = typeof pv === "string" ? pv : (pv || {}).css || "";
352
- const lm = css0.match(/left:\s*([\d.]+)%/),
353
- wm = css0.match(/width:\s*([\d.]+)%/);
354
- if (!lm || !wm) continue;
355
- const a0 = +lm[1],
356
- a1 = a0 + +wm[1];
357
- let best = null,
358
- bestOv = 0;
359
- for (const [, z] of zlist) {
360
- const ov = Math.min(a1, z.xPct + z.wPct) - Math.max(a0, z.xPct);
361
- if (ov > bestOv) {
362
- bestOv = ov;
363
- best = z;
364
- }
365
- }
366
- if (!best) continue;
367
- // gate on the time PEAK too — a dark wall swept by a bright moving object
368
- // (handheld drift, screens) averages "clean" but peaks hot, and text there
369
- // washes out exactly when the bright thing passes (real cold-start case)
370
- const pkL = best.peakLuma != null ? best.peakLuma : best.meanLuma;
371
- if (best.meanLuma > 150 || pkL > 175)
372
- planeComp[pk] =
373
- " mix-blend-mode: normal; text-shadow: 0 1px 6px rgba(0,0,0,.65), 0 2px 16px rgba(0,0,0,.4);";
374
- else if (best.meanLuma > 95 || pkL > 135)
375
- planeComp[pk] = " text-shadow: 0 1px 5px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.35);";
376
- if (planeComp[pk])
377
- console.log(
378
- `[make-cinematic] plane "${pk}" zone luma ${best.meanLuma} (peak ${pkL}) → legibility compensation (${best.meanLuma > 150 || pkL > 175 ? "opaque+scrim" : "scrim"})`,
379
- );
380
- }
381
- }
382
- // lockup context shares the hero band's luma
383
- const bandLuma = sz && sz.heroAnchor && sz.heroAnchor.bandLuma;
384
- const lockupComp =
385
- bandLuma != null && bandLuma > 150
386
- ? " mix-blend-mode: normal; text-shadow: 0 1px 6px rgba(0,0,0,.65), 0 2px 16px rgba(0,0,0,.4);"
387
- : bandLuma != null && bandLuma > 95
388
- ? " text-shadow: 0 1px 5px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.35);"
389
- : "";
390
-
391
- // ── lower to classic plan.json groups (slot layout + per-plane paging) ─────
392
- const tones = C.tones || {};
393
- let dnaBodyLayer = null;
394
- try {
395
- const dnaLib0 = require("./lib-dna.cjs");
396
- const dn0 = C.dna || (C.template ? dnaLib0.LEGACY[C.template] : "cream");
397
- if (dn0) {
398
- const d0 = dnaLib0.load(dn0);
399
- dnaBodyLayer = d0.bodyLayer || null;
400
- // category lock (symmetric): column is every classic DNA's home today,
401
- // so this only fires if a future DNA declares a different home.
402
- if (d0.deliveries && d0.deliveries.home && d0.deliveries.home !== "column")
403
- console.warn(
404
- `[make-cinematic] WARN: DNA "${dn0}" declares home="${d0.deliveries.home}" — cinematic use is cross-category and unvalidated.`,
405
- );
406
- }
407
- } catch (e) {
408
- if (e.message && e.message.includes("does not support")) throw e;
409
- }
410
- const groups = [];
411
- const heroRefs = heroBlocks; // [{b, bi, ln, plane}]
412
- const isHeroBlock = new Set(heroBlocks.map((h) => h.bi));
413
- const flat = [];
414
- blocks.forEach((b, bi) => {
415
- const heroIdx = isHeroBlock.has(bi) ? (b.lines || []).findIndex((l) => l.hero === true) : -1;
416
- (b.lines || []).forEach((ln, li) => {
417
- if (ln.hero === true && isHeroBlock.has(bi)) return; // APEX heroes slot into their lockup below
418
- flat.push({
419
- b,
420
- bi,
421
- ln,
422
- plane: heroIdx >= 0 ? lockupName(bi) : b.plane,
423
- lockupPos: heroIdx >= 0 ? (li < heroIdx ? "pre" : "post") : null,
424
- isMinorHero: ln.hero === true && minorHeroBis.has(bi), // minor peak rides its column
425
- first: Math.min(...ln._w.map((w) => w.start)),
426
- lastEnd: Math.min(Math.max(...ln._w.map((w) => w.end)), DUR - 0.05),
427
- frac: fracOfLine(ln.css),
428
- });
429
- });
430
- });
431
- // size sanity: narration below 0.05·h is whisper-tier (36px at 720p) — warn loudly
432
- {
433
- const tiny = flat.filter((l) => !l.isMinorHero && l.frac > 0 && l.frac < 0.05);
434
- if (tiny.length)
435
- console.log(
436
- `[make-cinematic] ⚠ ${tiny.length} narration line(s) authored below 0.05·h (whisper tier) — body narration wants 0.055–0.07·h: ${tiny
437
- .slice(0, 3)
438
- .map((l) => `"${l.ln.words.slice(0, 3).join(" ")}…"`)
439
- .join(" ")}`,
440
- );
441
- }
442
- // RATIO LOCK — poster lockup typography: context is sized FROM the hero, the way a
443
- // title system locks its eyebrow/tagline (kicker & tail ≈ 0.26× the hero height,
444
- // clamped to [0.05, 0.085]·h). Hero dominance is structural (~4× height + weight
445
- // contrast), so the old mass-rule downscale is gone — whisper-small context was the
446
- // disease, not the cure. Too MUCH context is a line-count problem, never a size one.
447
- for (const hRef of heroRefs) {
448
- const ctx = flat.filter((l) => l.bi === hRef.bi);
449
- if (!ctx.length) continue;
450
- const heroFracV = fracOfLine(hRef.ln.css || "") || 0.24;
451
- const ratioFrac = +Math.min(0.085, Math.max(0.05, heroFracV * 0.26)).toFixed(4);
452
- if (ctx.length > 3)
453
- console.log(
454
- `[make-cinematic] ⚠ lockup-b${hRef.bi} has ${ctx.length} context lines — a lockup wants kicker + hero + tail; move narration to the column (a leading clause can be its own block)`,
455
- );
456
- const moved = ctx.filter((l) => Math.abs(l.frac - ratioFrac) > 0.002).length;
457
- ctx.forEach((l) => {
458
- l.ln.css = (l.ln.css || "").replace(
459
- /font-size\s*:\s*[^;]+/,
460
- `font-size: calc(${ratioFrac} * var(--h))`,
461
- );
462
- l.frac = ratioFrac;
463
- });
464
- if (moved)
465
- console.log(
466
- `[make-cinematic] lockup-b${hRef.bi}: context RATIO-LOCKED to 0.26×hero → ${ratioFrac}·h (${moved} line(s) re-sized)`,
467
- );
468
- }
469
- const byPlane = {};
470
- flat.forEach((l) => {
471
- (byPlane[l.plane] = byPlane[l.plane] || []).push(l);
472
- });
473
- // make sure a lockup whose block has NO context lines still exists in the loop
474
- for (const hRef of heroRefs) if (!byPlane[hRef.plane]) byPlane[hRef.plane] = [];
475
- for (const [pk, ls] of Object.entries(byPlane)) {
476
- const isLockup = /^lockup-b/.test(pk);
477
- const budget = isLockup ? H : planeBudgetPx(pk); // a lockup is ONE composition — never paginate inside it
478
- const hRef = isLockup ? heroRefs.find((h) => h.plane === pk) : null;
479
- const heroH = hRef ? (fracOfLine(hRef.ln.css || "") || 0.24) * H * 1.12 + 12 : 0;
480
- // ORBIT estimate: where do the hero's left/right edges land inside the (frame-wide,
481
- // centered) lockup plane — kicker hangs off the left edge, tail off the right
482
- let orbit = null;
483
- if (hRef) {
484
- const disp = String(hRef.ln.text || (hRef.ln.words || []).join(" "));
485
- const fpx = (fracOfLine(hRef.ln.css || "") || 0.24) * H;
486
- const estW = Math.min(
487
- W * 0.94,
488
- Math.max(fpx * 1.2, disp.replace(/\s/g, "").length * fpx * 0.6),
489
- );
490
- const planeCss0 = (planes[pk] && planes[pk].css) || "";
491
- const _pl = ((planeCss0.match(/left:\s*([\d.]+)%/) || [0, 0])[1] * W) / 100;
492
- const pw = ((planeCss0.match(/width:\s*([\d.]+)%/) || [0, 100])[1] * W) / 100;
493
- const heroLeft = Math.max(0, (pw - estW) / 2);
494
- // side-aware: anchor context to the CLEANER side of THIS hero's window — the
495
- // kicker/tail must land on scene, not on a large/moving subject
496
- let side = (sz && sz.subject && sz.subject.clearerSide) || "left";
497
- try {
498
- const hin = Math.min(...hRef.ln._w.map((w) => w.start));
499
- const win = (sz.windows || []).find((w2) => hin >= w2.in - 0.3 && hin <= w2.out + 0.3);
500
- if (win && win.clearerSide) side = win.clearerSide;
501
- } catch {}
502
- orbit = {
503
- left: Math.round(heroLeft),
504
- right: Math.round(Math.max(0, pw - heroLeft - estW)),
505
- maxW: Math.round(Math.min(estW * 0.75, pw * 0.55)),
506
- side,
507
- };
508
- }
509
- const pages = [];
510
- let page = [],
511
- slot = 0;
512
- for (const l of ls) {
513
- // the HERO occupies its slot between pre- and post-context, in spoken order
514
- if (hRef && hRef.slotPx == null && l.lockupPos === "post") {
515
- hRef.slotPx = Math.round(slot);
516
- slot += heroH;
517
- }
518
- const lineH = l.frac * H * 1.32 + Math.max(12, Math.round(l.frac * H * 0.38)); // ink overflows the 1.0 line-box (+shadows) — breathe in proportion to the type
519
- const prev = page[page.length - 1];
520
- const pauseGap = prev ? l.first - prev.lastEnd : 0;
521
- const boundary = prev && l.bi !== prev.bi;
522
- // a block carrying a COLUMN-PLACED apex is one composition — never split it on
523
- // budget (the oversized hero legitimately exceeds the column's page height)
524
- const unbreakable = columnApexBis.has(l.bi) && prev && prev.bi === l.bi;
525
- if (
526
- page.length &&
527
- !unbreakable &&
528
- (slot + lineH > budget || (boundary && l.b.flip === true) || (boundary && pauseGap >= 0.6))
529
- ) {
530
- pages.push(page);
531
- page = [];
532
- slot = 0;
533
- }
534
- l.slotPx = Math.round(slot);
535
- if (isLockup) l._orbit = orbit;
536
- slot += lineH;
537
- page.push(l);
538
- }
539
- if (hRef && hRef.slotPx == null) {
540
- hRef.slotPx = Math.round(slot);
541
- } // hero is the block's last line
542
- if (page.length) pages.push(page);
543
- pages.forEach((pg, pi) => {
544
- const nextFirst = pi + 1 < pages.length ? pages[pi + 1][0].first : null;
545
- const maxEnd = Math.max(...pg.map((l) => l.lastEnd));
546
- let out =
547
- nextFirst != null
548
- ? Math.max(maxEnd + 0.01, Math.min(DUR - 0.05, nextFirst - 0.28))
549
- : Math.min(DUR - 0.05, maxEnd + 1.2);
550
- // THE LOCKUP OWNS THE FRAME: a sidebar page must not linger into an apex
551
- // lockup's window (its kicker/tail can land in the same zone → text-on-text)
552
- if (!isLockup)
553
- for (const hRef2 of heroRefs) {
554
- const lkIn = bw[hRef2.bi].first - 0.18;
555
- if (lkIn > maxEnd - 0.2 && lkIn < out)
556
- out = Math.max(maxEnd + 0.01, Math.min(out, lkIn - 0.28));
557
- }
558
- pg.forEach((l, li) => {
559
- l.pageIdx = pi;
560
- if (!isLockup)
561
- for (const hRef2 of heroRefs) {
562
- const lkOut = bw[hRef2.bi].out;
563
- const lkIn2 = bw[hRef2.bi].first - 0.18;
564
- const enter0 = Math.max(0, l.first - LEAD);
565
- if (enter0 > lkIn2 && enter0 < lkOut)
566
- l._delayIn = +Math.min(l.first, Math.max(enter0, lkOut - 0.2)).toFixed(3);
567
- }
568
- // a LOCKUP fades as ONE unit: context lines exit with the hero (block window),
569
- // never linger on page timing after the hero has left
570
- l.out = l.lockupPos ? +Math.min(out, bw[l.bi].out).toFixed(3) : +out.toFixed(3);
571
- l.in = l._delayIn != null ? l._delayIn : +Math.max(0, l.first - LEAD).toFixed(3);
572
- // first line of a NEW page: don't enter before the old page has begun clearing
573
- if (li === 0 && pi > 0)
574
- l.in = +Math.min(l.first, Math.max(l.first - LEAD, pages[pi - 1][0].out - 0.02)).toFixed(
575
- 3,
576
- );
577
- });
578
- });
579
- }
580
- let gid = 0;
581
- for (const l of flat) {
582
- l.gid = l.isMinorHero ? `h-${l.bi}` : `b${l.bi}-l${gid++}`;
583
- // depth model: lockup CONTEXT embeds (bg) WITH the hero — the orbit anchors it
584
- // beside the head/shoulder so it reads on the scene, one shared depth; narration
585
- // columns embed too unless the DNA declares bodyLayer:"fg" (loud's announce-style).
586
- // Minor heroes ride their column in FRONT. Per-line layer overrides any default.
587
- // ORBIT depth: lockup context lands BESIDE the subject (kicker/tail at the hero's
588
- // edges) — so it EMBEDS (bg) like the hero; the whole composition shares one depth.
589
- // fg remains for: minor heroes (column emphasis), a DNA's bodyLayer (loud announces),
590
- // scene verdict FG (globalFg), and explicit per-line "layer" overrides.
591
- const defLayer = l.isMinorHero ? "fg" : dnaBodyLayer || "bg";
592
- groups.push({
593
- id: l.gid,
594
- plane: l.plane,
595
- layer: globalFg ? "fg" : l.ln.layer || l.b.layer || defLayer,
596
- ...(l.isMinorHero ? { hero: true, ...(columnApexBis.has(l.bi) ? {} : { minor: true }) } : {}),
597
- tone: l.isMinorHero ? tones.hero || "present" : l.ln.tone || tones.default || "soft",
598
- allow_overlap: true,
599
- // a MINOR hero holds only to the end of ITS thought (+a breath) — lingering with
600
- // the page through a long pause leaves it co-visible with the next apex
601
- in: l.in,
602
- out: l.isMinorHero ? +Math.min(l.out, bw[l.bi].out + 0.3).toFixed(3) : l.out,
603
- // carry the PLANE's text-align onto each slotted line (absolute children don't
604
- // reliably inherit through the template's .cap centering — authored "right edge
605
- // hugs the silhouette" was silently centered)
606
- css:
607
- (l.lockupPos && l._orbit
608
- ? (l.ln.anchor || (l.lockupPos === "pre" ? l._orbit.side : l._orbit.side)) === "left"
609
- ? `position:absolute;top:${l.slotPx}px;left:${l._orbit.left}px;right:auto;max-width:${l._orbit.maxW}px;text-align:left; `
610
- : `position:absolute;top:${l.slotPx}px;right:${l._orbit.right}px;left:auto;max-width:${l._orbit.maxW}px;text-align:right; `
611
- : `position:absolute;left:0;right:0;top:${l.slotPx}px; ` +
612
- (() => {
613
- const pc =
614
- (C.planes &&
615
- C.planes[l.plane] &&
616
- (typeof C.planes[l.plane] === "string"
617
- ? C.planes[l.plane]
618
- : C.planes[l.plane].css)) ||
619
- "";
620
- const ta = pc.match(/text-align\s*:\s*(left|right|center)/);
621
- return ta ? `text-align:${ta[1]}; ` : "";
622
- })()) +
623
- ensureFontSize(l.ln.css, "font-size: calc(0.05 * var(--h)); font-weight: 600;") +
624
- (l.lockupPos ? lockupComp : planeComp[l.plane] || ""),
625
- words: l.ln._w.map((w, wi2) => ({
626
- // minor/column heroes honor the display-form override too (single-word lines)
627
- text: l.isMinorHero && l.ln.text && wi2 === 0 && l.ln._w.length === 1 ? l.ln.text : w.text,
628
- start: w.start,
629
- end: Math.min(w.end, DUR - 0.05),
630
- ti: w.ti,
631
- })),
632
- });
633
- }
634
- for (const hRef of heroRefs) {
635
- const { bi, ln } = hRef;
636
- const w0 = ln._w[0];
637
- groups.push({
638
- id: `h-${bi}`,
639
- hero: true,
640
- plane: hRef.plane,
641
- layer: ln.layer || (heroFeasible ? "bg" : "fg"),
642
- tone: tones.hero || "present",
643
- allow_overlap: true,
644
- in: +Math.max(0, w0.start - 0.02).toFixed(3),
645
- out: +bw[bi].out.toFixed(3),
646
- css:
647
- `position:absolute;left:0;right:0;top:${hRef.slotPx || 0}px; text-align:center; ` +
648
- ensureFontSize(
649
- ln.css,
650
- "font-size: calc(0.24 * var(--h)); font-weight: 900; white-space: nowrap;",
651
- ), // case/tracking come from the DNA's hero treatment
652
- words: ln._w.map((w, i) => ({
653
- text: i === 0 && ln.text ? ln.text : w.text,
654
- start: w.start,
655
- end: Math.min(w.end, DUR - 0.05),
656
- ti: w.ti,
657
- })),
658
- });
659
- if (!heroFeasible)
660
- console.log(
661
- "[make-cinematic] no hero band ≤62% predicted occlusion → hero rendered in FRONT (last resort)",
662
- );
663
- }
664
- // scarcity spacing: heroes must breathe apart (≥ a beat between windows)
665
- const heroGs = groups.filter((g) => g.hero === true).sort((a, b) => a.in - b.in);
666
- for (let i = 1; i < heroGs.length; i++) {
667
- const gap = heroGs[i].in - heroGs[i - 1].out;
668
- if (gap < 0.6)
669
- console.log(
670
- `[make-cinematic] ⚠ heroes "${heroGs[i - 1].words[0].text}" and "${heroGs[i].words[0].text}" are only ${gap.toFixed(2)}s apart — peaks need a beat of air between them (consider demoting one to an emphasis line)`,
671
- );
672
- }
673
- // proximity: narration planes should HUG the silhouette (the embed reads as in-scene
674
- // only when typography interacts with the subject) — warn on far-parked planes.
675
- if (sz && sz.subject) {
676
- for (const [pk2, pv] of Object.entries(C.planes || {})) {
677
- if (/^lockup/.test(pk2) || pk2 === "hero" || pv == null) continue;
678
- const css2 = typeof pv === "string" ? pv : pv.css || "";
679
- const lm = css2.match(/left\s*:\s*([\d.]+)%/),
680
- wm = css2.match(/width\s*:\s*([\d.]+)%/);
681
- if (!lm || !wm) continue;
682
- const pl = +lm[1],
683
- pr = +lm[1] + +wm[1];
684
- const gap =
685
- pr <= sz.subject.colMinPct
686
- ? sz.subject.colMinPct - pr
687
- : pl >= sz.subject.colMaxPct
688
- ? pl - sz.subject.colMaxPct
689
- : 0;
690
- if (gap > 12)
691
- console.log(
692
- `[make-cinematic] ⚠ plane "${pk2}" sits ${gap.toFixed(0)}% away from the silhouette — embeds read in-scene when text HUGS the subject (use safe-zones zones.hugLeft/hugRight, gap 2–6%)`,
693
- );
694
- }
695
- }
696
- const plan = {
697
- mode: "template",
698
- dna: C.dna || (C.template ? undefined : "cream"), // canonical: name a DNA; default cream
699
- template: C.template || "cinematic-cream",
700
- compiled_by: "make-cinematic.cjs",
701
- width: W,
702
- height: H,
703
- fps: FPS,
704
- duration: DUR,
705
- ...(globalFg && (!heroRefs.length || !heroFeasible) ? { caption_layer: "fg" } : {}), // mixed narration-fg + hero-bg → per-group layers (hybrid render)
706
- planes: Object.fromEntries(Object.entries(planes).map(([k, v]) => [k, { css: v.css }])),
707
- groups,
708
- };
709
- fs.writeFileSync(path.join(project, "plan.json"), JSON.stringify(plan, null, 2));
710
- console.log(
711
- `[make-cinematic] ${blocks.length} block(s) → ${groups.length} group(s)` +
712
- `${heroRefs.length ? `, ${heroRefs.length} hero(es): ${heroRefs.map((h) => `"${h.ln.text || h.ln.words[0]}"`).join(" · ")} (each holds to its block end, lockup-composed)` : ""}` +
713
- `${globalFg ? ", caption_layer=fg (safe-zones verdict)" : ""}, canvas ${DUR}s`,
714
- );
715
- // straight into the existing template compiler
716
- const cp2 = require("child_process");
717
- let r = cp2.spawnSync("node", [path.join(__dirname, "make-composition.cjs"), project], {
718
- stdio: "inherit",
719
- });
720
- if ((r.status || 0) !== 0) process.exit(r.status);
721
-
722
- // ── RE-SLOT pass (real measurement). Compile-time slots assume each line renders as
723
- // ONE visual line; a narrow plane WRAPS long lines and the next slot overlaps the
724
- // wrapped tail. Measure every page's REAL text heights in Chromium and re-stack.
725
- {
726
- const textBoxH = (c) => {
727
- const ws = (c.words || []).filter((w) => (w.opacity ?? 1) > 0.05 && w.w > 0);
728
- if (!ws.length) return c.cap_bbox ? c.cap_bbox.h : 0;
729
- return Math.max(...ws.map((w) => w.y + w.h)) - Math.min(...ws.map((w) => w.y));
730
- };
731
- const pagesByKey = {};
732
- for (const l of flat) {
733
- const key = l.plane + "|" + (l.pageIdx || 0);
734
- (pagesByKey[key] = pagesByKey[key] || { t: +(l.out - 0.1).toFixed(2), lines: [] }).lines.push(
735
- l,
736
- );
737
- }
738
- // the HERO is a real member of its lockup's stack — re-slot must move it (and the
739
- // post-context below it) from MEASURED heights, or a wrapped pre-line / raised hero
740
- // font reopens the very overlap this pass exists to prevent
741
- for (const hRef of heroRefs) {
742
- const key = hRef.plane + "|0";
743
- const hg2 = groups.find((g2) => g2.id === `h-${hRef.bi}`);
744
- if (!hg2) continue;
745
- (pagesByKey[key] = pagesByKey[key] || {
746
- t: +(hg2.out - 0.1).toFixed(2),
747
- lines: [],
748
- }).lines.push({
749
- gid: hg2.id,
750
- slotPx: hRef.slotPx || 0,
751
- frac: fracOfLine(hg2.css) || 0.24,
752
- _hero: true,
753
- });
754
- }
755
- const times = [...new Set(Object.values(pagesByKey).map((pg) => pg.t))];
756
- if (times.length) {
757
- cp2.spawnSync(
758
- "node",
759
- [path.join(__dirname, "measure-layout.cjs"), project, ...times.map(String)],
760
- { stdio: "ignore", timeout: 120000 },
761
- );
762
- let lay = null;
763
- try {
764
- lay = JSON.parse(fs.readFileSync(path.join(project, "_layout.json"), "utf8"));
765
- } catch {}
766
- if (lay && lay.samples) {
767
- let changes = 0;
768
- for (const pg of Object.values(pagesByKey)) {
769
- const sample = lay.samples.reduce((a, b) =>
770
- Math.abs(b.t - pg.t) < Math.abs(a.t - pg.t) ? b : a,
771
- );
772
- if (!sample || Math.abs(sample.t - pg.t) > 0.3) continue;
773
- const ordered = [...pg.lines].sort((a, b) => a.slotPx - b.slotPx);
774
- let top = 0;
775
- for (const l of ordered) {
776
- const cap = (sample.caps || []).find((c) => c.id === l.gid);
777
- const realH = cap
778
- ? (cap.cap_bbox && cap.cap_bbox.h) || textBoxH(cap)
779
- : l.frac * H * 1.25;
780
- if (Math.abs(top - l.slotPx) > 3) {
781
- const g = groups.find((g2) => g2.id === l.gid);
782
- g.css = g.css.replace(/top:\s*-?[\d.]+px/, "top:" + Math.round(top) + "px");
783
- if (l._hero) {
784
- const hr = heroRefs.find((h) => `h-${h.bi}` === l.gid);
785
- if (hr) hr.slotPx = Math.round(top);
786
- }
787
- l.slotPx = Math.round(top);
788
- changes++;
789
- }
790
- top +=
791
- (realH || l.frac * H * 1.25) + Math.max(12, Math.round((l.frac || 0.05) * H * 0.38)); // box is lh1.12 — contains its own ink
792
- }
793
- }
794
- if (changes) {
795
- console.log(
796
- `[make-cinematic] re-slot: ${changes} line(s) re-stacked from MEASURED heights (wrapped lines accounted)`,
797
- );
798
- fs.writeFileSync(path.join(project, "plan.json"), JSON.stringify(plan, null, 2));
799
- cp2.spawnSync("node", [path.join(__dirname, "make-composition.cjs"), project], {
800
- stdio: "ignore",
801
- });
802
- try {
803
- fs.unlinkSync(path.join(project, "_layout.json"));
804
- } catch {}
805
- }
806
- }
807
- }
808
- }
809
-
810
- // ── HERO post-pass (real measurement, up to 2 re-emits) — runs PER HERO ─────
811
- // (a) SIZE: a timid hero is the #1 quality kill. If the authored font leaves >25%
812
- // of the usable width unused, raise it to the width-fit maximum (DNA sizeRange cap).
813
- // (b) CLEARANCE vs OTHER planes: the hero band must not overlap caps outside its own
814
- // lockup (its own context is composed around it by the slot layout). On a hit,
815
- // shift the whole LOCKUP plane vertically.
816
- // (c) LOCKUP RE-STACK: a size change moves the hero's height — restack the lockup's
817
- // slots from measured heights so post-context stays bonded BELOW the hero.
818
- // HERO words never wrap — a mid-word break ("Watermelo|n") is wrong in every case,
819
- // and author css REPLACES the default (which silently lost white-space:nowrap).
820
- // Forced here so no authoring path can drop it; centered nowrap text overflows a
821
- // narrow plane SYMMETRICALLY, which also keeps width-fit honest (it measures the
822
- // true single-line width instead of a wrapped row).
823
- // narration lines whipped away by a mid-sentence page-flip are the same disease
824
- // in mild form — warn (a deliberate quick beat is legal, so no die)
825
- for (const g of groups)
826
- if (!g.hero && g.words && g.words.length && g.out - g.in < 0.6) {
827
- console.log(
828
- `[make-cinematic] ⚠ line "${g.words
829
- .map((w) => w.text)
830
- .join(" ")
831
- .slice(
832
- 0,
833
- 28,
834
- )}" visible only ${(g.out - g.in).toFixed(2)}s (page-flip) — merge micro-lines or give the plane more height so the page holds`,
835
- );
836
- }
837
- // MIN DWELL — a peak on screen <0.5s is unreadable ("stars" shipped at 0.47s and
838
- // the user couldn't read it). Merge the block with the next (one thought), promote
839
- // a word with room, or demote to an emphasized line. <0.8s gets a loud warning.
840
- for (const g of groups)
841
- if (g.hero) {
842
- const dwell = g.out - g.in;
843
- if (dwell < 0.5)
844
- die(
845
- `hero "${(g.words[0] || {}).text}" is on screen only ${dwell.toFixed(2)}s (<0.5s readability floor) — merge its block with the next, promote a word with more room, or demote it to an emphasized (non-hero) line.`,
846
- );
847
- if (dwell < 0.8)
848
- console.log(
849
- `[make-cinematic] ⚠ hero "${(g.words[0] || {}).text}" dwell ${dwell.toFixed(2)}s is tight (<0.8s) — consider merging blocks so the peak can breathe`,
850
- );
851
- }
852
- {
853
- let nwChanged = false;
854
- for (const g of groups)
855
- if (g.hero && !/white-space\s*:\s*nowrap/.test(g.css || "")) {
856
- g.css = (g.css || "") + " white-space: nowrap;";
857
- nwChanged = true;
858
- }
859
- if (nwChanged) {
860
- fs.writeFileSync(path.join(project, "plan.json"), JSON.stringify(plan, null, 2));
861
- require("child_process").spawnSync(
862
- "node",
863
- [path.join(__dirname, "make-composition.cjs"), project],
864
- { stdio: "ignore" },
865
- );
866
- }
867
- }
868
- const fracOf = (css) => {
869
- const m = (css || "").match(/font-size\s*:\s*calc\(\s*([\d.]+)\s*\*\s*var\(--h\)/);
870
- return m ? +m[1] : null;
871
- };
872
- const setFrac = (css, f) =>
873
- (css || "").replace(
874
- /font-size\s*:\s*[^;]+/,
875
- "font-size: calc(" + f.toFixed(3) + " * var(--h))",
876
- );
877
- const textBox = (c) => {
878
- const ws = (c.words || []).filter((w) => (w.opacity ?? 1) > 0.05 && w.w > 0);
879
- if (!ws.length) return c.cap_bbox;
880
- const x0 = Math.min(...ws.map((w) => w.x)),
881
- x1 = Math.max(...ws.map((w) => w.x + w.w));
882
- const y0 = Math.min(...ws.map((w) => w.y)),
883
- y1 = Math.max(...ws.map((w) => w.y + w.h));
884
- return { x: x0, y: y0, w: x1 - x0, h: y1 - y0 };
885
- };
886
- let dnaSizeCap = 0.34,
887
- dnaHeroCase = "none";
888
- try {
889
- const dnaLib2 = require("./lib-dna.cjs");
890
- const dn = plan.dna || dnaLib2.LEGACY[plan.template];
891
- if (dn) {
892
- const dj = dnaLib2.load(dn);
893
- if (dj.hero && dj.hero.sizeRange) dnaSizeCap = dj.hero.sizeRange[1];
894
- if (dj.hero) dnaHeroCase = dj.hero.case || "none";
895
- }
896
- } catch {}
897
- // the APEX (largest authored hero) gets the width-fit raise; minor heroes keep their
898
- // authored size — inter-hero hierarchy is a deliberate choice, not timidity
899
- const apexFrac = Math.max(
900
- ...heroRefs.map((h) => fracOf((groups.find((g) => g.id === `h-${h.bi}`) || {}).css) || 0),
901
- 0,
902
- );
903
- for (const hRef of heroRefs) {
904
- const heroG = groups.find((g) => g.id === `h-${hRef.bi}`);
905
- if (!heroG) continue;
906
- const isApex = (fracOf(heroG.css) || 0) >= apexFrac - 1e-6;
907
- const lockupMates = groups.filter((g) => g.plane === hRef.plane && g.id !== heroG.id);
908
- // hero size changed → context follows the 0.26 poster ratio, and its orbit
909
- // max-width scales WITH the font (a stale max-width wraps re-locked context
910
- // into multi-row towers that blow the stack past the frame)
911
- const relockMates = (hf) => {
912
- const rf = +Math.min(0.085, Math.max(0.05, hf * 0.26)).toFixed(4);
913
- for (const m of lockupMates) {
914
- const mf = fracOf(m.css);
915
- if (!mf || Math.abs(mf - rf) <= 0.002) continue;
916
- const scale = rf / mf;
917
- m.css = setFrac(m.css, rf).replace(
918
- /max-width:\s*([\d.]+)px/,
919
- (s2, px) => "max-width:" + Math.round(+px * scale) + "px",
920
- );
921
- }
922
- };
923
- const measure = () => {
924
- const midT = ((heroG.in + Math.min(heroG.out, heroG.in + 1.0)) / 2).toFixed(2);
925
- const endT = Math.max(+midT + 0.05, heroG.out - 0.12).toFixed(2);
926
- cp2.spawnSync(
927
- "node",
928
- [path.join(__dirname, "measure-layout.cjs"), project, String(midT), String(endT)],
929
- { stdio: "ignore", timeout: 90000 },
930
- );
931
- try {
932
- const ss = JSON.parse(fs.readFileSync(path.join(project, "_layout.json"), "utf8")).samples;
933
- const near = (t) =>
934
- ss.reduce((a, b) => (Math.abs(b.t - t) < Math.abs((a ? a.t : 1e9) - t) ? b : a), null);
935
- return { caps: (near(+midT) || {}).caps || [], capsEnd: (near(+endT) || {}).caps || [] };
936
- } catch {
937
- return null;
938
- }
939
- };
940
- let didRaise = false;
941
- for (let pass = 0; pass < 5; pass++) {
942
- const m0 = measure();
943
- if (!m0) break;
944
- const caps = m0.caps,
945
- capsEnd = m0.capsEnd && m0.capsEnd.length ? m0.capsEnd : m0.caps;
946
- const hc0 = caps.find((c) => c.id === heroG.id);
947
- if (!hc0 || !hc0.cap_bbox) break;
948
- const hc = { ...hc0, cap_bbox: textBox(hc0) };
949
- const mateIds = new Set(lockupMates.map((m) => m.id));
950
- const others = caps
951
- .filter(
952
- (c) =>
953
- c.id !== heroG.id &&
954
- !mateIds.has(c.id) &&
955
- !/-glow$/.test(c.id || "") &&
956
- c.cap_bbox &&
957
- c.opacity > 0.05,
958
- )
959
- .map((c) => ({ ...c, cap_bbox: textBox(c) }));
960
- const maxW = W * 0.94;
961
- const f0 = fracOf(heroG.css);
962
- let changed = false;
963
- if (f0 && hc.cap_bbox.w > 0) {
964
- if (hc.cap_bbox.w > maxW) {
965
- const nf = Math.max(0.06, (f0 * maxW) / hc.cap_bbox.w);
966
- console.log(
967
- `[make-cinematic] hero "${heroG.words[0].text}" too WIDE ${Math.round(hc.cap_bbox.w)}px → ${f0}h→${nf.toFixed(3)}h`,
968
- );
969
- heroG.css = setFrac(heroG.css, nf);
970
- changed = true;
971
- } else if (hc.cap_bbox.w >= maxW * 0.88) {
972
- if (pass === 0)
973
- console.log(
974
- `[make-cinematic] hero "${heroG.words[0].text}" at width CEILING (${Math.round(hc.cap_bbox.w)}/${Math.round(maxW)}px) — cannot enlarge.`,
975
- );
976
- } else if (!didRaise && hc.cap_bbox.w < maxW * 0.88 && isApex) {
977
- // NO DEAD ZONE: anything under 88% of usable width is raised toward a 93%
978
- // fill (the old <75% trigger let 75–88%-wide heroes stay merely "decent")
979
- const fit = (f0 * (maxW * 0.93)) / hc.cap_bbox.w;
980
- const nf = Math.min(dnaSizeCap, fit);
981
- if (nf > f0 * 1.05 || fit > dnaSizeCap * 1.02) {
982
- if (nf > f0 * 1.001)
983
- console.log(
984
- `[make-cinematic] hero "${heroG.words[0].text}" TIMID (${Math.round(hc.cap_bbox.w)}px of ${Math.round(maxW)}px usable) → ${f0}h→${nf.toFixed(3)}h (width-fit max)`,
985
- );
986
- // SHORT-WORD FILL: height cap bound before the width target → fill with
987
- // TRACKING (film-title craft — HER, DUNE), ≤0.32em so it stays a word.
988
- const wAtCap = (hc.cap_bbox.w * nf) / f0;
989
- const dispT = String(heroG.text || (heroG.words || []).map((w) => w.text).join(" "));
990
- // never letterspace lowercase (tracked lowercase falls apart — caps only)
991
- const capsy = dnaHeroCase === "uppercase" || dispT === dispT.toUpperCase();
992
- if (fit > dnaSizeCap && wAtCap < maxW * 0.85 && capsy) {
993
- const disp = dispT;
994
- // letter-spacing adds a gap after EVERY char (N gaps) and the centering
995
- // text-indent adds one more — budget N+1 gaps or the word leaves the frame
996
- const gaps = disp.length + 1;
997
- const tr = +Math.min(0.32, (maxW * 0.88 - wAtCap) / (gaps * nf * H)).toFixed(3);
998
- if (tr >= 0.04) {
999
- heroG.css =
1000
- heroG.css
1001
- .replace(/letter-spacing\s*:[^;]+;?\s*/g, "")
1002
- .replace(/text-indent\s*:[^;]+;?\s*/g, "") +
1003
- (heroG.css.trim().endsWith(";") || !heroG.css.trim() ? "" : ";") +
1004
- ` letter-spacing:${tr}em; text-indent:${tr}em;`;
1005
- console.log(
1006
- `[make-cinematic] hero "${disp}" short word at height cap (${Math.round(wAtCap)}px of ${Math.round(maxW)}px) → tracked +${tr}em to fill`,
1007
- );
1008
- }
1009
- }
1010
- heroG.css = setFrac(heroG.css, nf);
1011
- changed = true;
1012
- didRaise = true;
1013
- relockMates(nf);
1014
- }
1015
- }
1016
- }
1017
- const hbx = hc.cap_bbox;
1018
- // colliders OUTSIDE the lockup only — the lockup composes around the hero by design
1019
- const hits = others.filter((o) => {
1020
- const b = o.cap_bbox;
1021
- const ix = Math.min(hbx.x + hbx.w, b.x + b.w) - Math.max(hbx.x, b.x);
1022
- const iy = Math.min(hbx.y + hbx.h, b.y + b.h) - Math.max(hbx.y, b.y);
1023
- return ix > 8 && iy > 8;
1024
- });
1025
- if (hits.length) {
1026
- const maxBottom = Math.max(...hits.map((o) => o.cap_bbox.y + o.cap_bbox.h));
1027
- const minTop = Math.min(...hits.map((o) => o.cap_bbox.y));
1028
- const downTo = ((maxBottom + 14) / H) * 100;
1029
- const upTo = Math.max(2, ((minTop - hbx.h - 14) / H) * 100);
1030
- const planeCss = plan.planes[hRef.plane].css;
1031
- const curTop = +(planeCss.match(/top:\s*([\d.]+)%/) || [0, 30])[1];
1032
- const newTop = downTo + (hbx.h / H) * 100 < 96 ? downTo : upTo;
1033
- plan.planes[hRef.plane].css = planeCss.replace(
1034
- /top:\s*[\d.]+%/,
1035
- "top: " + newTop.toFixed(1) + "%",
1036
- );
1037
- console.log(
1038
- `[make-cinematic] hero "${heroG.words[0].text}" OVERLAPS ${hits.map((o) => o.id).join(",")} — lockup top ${curTop}% → ${newTop.toFixed(1)}%`,
1039
- );
1040
- changed = true;
1041
- }
1042
- // ORBIT REFINE: anchor kicker/tail to the MEASURED hero edges (estimate → real)
1043
- if (lockupMates.length && hc.cap_bbox && hc.cap_bbox.w > 0) {
1044
- const planeCss2 = (plan.planes[hRef.plane] && plan.planes[hRef.plane].css) || "";
1045
- const pl2 = ((planeCss2.match(/left:\s*([\d.]+)%/) || [0, 0])[1] * W) / 100;
1046
- const relL = Math.max(0, Math.round(hc.cap_bbox.x - pl2));
1047
- const pw2 = ((planeCss2.match(/width:\s*([\d.]+)%/) || [0, 100])[1] * W) / 100;
1048
- const relR = Math.max(0, Math.round(pw2 - (hc.cap_bbox.x - pl2) - hc.cap_bbox.w));
1049
- for (const m of lockupMates) {
1050
- if (/left:\s*\d+px;right:auto/.test(m.css)) {
1051
- const nc = m.css.replace(/left:\s*\d+px/, "left:" + relL + "px");
1052
- if (nc !== m.css) {
1053
- m.css = nc;
1054
- changed = true;
1055
- }
1056
- } else if (/right:\s*\d+px;left:auto/.test(m.css)) {
1057
- const nc = m.css.replace(/right:\s*\d+px/, "right:" + relR + "px");
1058
- if (nc !== m.css) {
1059
- m.css = nc;
1060
- changed = true;
1061
- }
1062
- }
1063
- }
1064
- }
1065
- // LOCKUP RE-STACK from measured heights — runs EVERY pass for lockups (orbit
1066
- // max-widths wrap context lines, so the re-slot's estimates can leave the tail
1067
- // displaced or the whole composition off frame)
1068
- if (lockupMates.length) {
1069
- const caps2 = capsEnd; // lockup-END sample: every context line is revealed there
1070
- // TOWER CHECK — a context line wrapped to 3+ rows means its orbit max-width is
1071
- // too narrow for the (re-locked) font; widen toward the plane before stacking,
1072
- // or the tower blows the stack past the frame and the walk-back eats the hero
1073
- for (const m of lockupMates) {
1074
- const cm = caps2.find((x) => x.id === m.id);
1075
- const frm = fracOf(m.css) || 0.05;
1076
- const mwM = m.css.match(/max-width:\s*([\d.]+)px/);
1077
- if (!cm || !cm.cap_bbox || !mwM) continue;
1078
- const rows = Math.round(cm.cap_bbox.h / (frm * H * 1.12));
1079
- if (rows >= 3) {
1080
- const planeCssW2 = (plan.planes[hRef.plane] && plan.planes[hRef.plane].css) || "";
1081
- const pwX = W * (+(planeCssW2.match(/width:\s*([\d.]+)%/) || [0, 92])[1] / 100);
1082
- const nw = Math.round(pwX * 0.62);
1083
- if (nw > +mwM[1] + 10) {
1084
- m.css = m.css.replace(/max-width:\s*[\d.]+px/, "max-width:" + nw + "px");
1085
- console.log(
1086
- `[make-cinematic] context "${((m.words || [])[0] || {}).text}…" wrapped to ${rows} rows — orbit max-width ${Math.round(+mwM[1])}→${nw}px (towers break the stack)`,
1087
- );
1088
- changed = true;
1089
- }
1090
- }
1091
- }
1092
- const entries = [heroG, ...lockupMates]
1093
- .map((g) => {
1094
- const c = caps2.find((x) => x.id === g.id);
1095
- const curTop = +(g.css.match(/top:\s*(-?[\d.]+)px/) || [0, 0])[1];
1096
- const fr = fracOf(g.css) || 0.05;
1097
- // SLOT HEIGHT = the LAYOUT box (cap_bbox), not the glyph box: words reveal
1098
- // over time, so at the hero-mid sample a context line's later words are
1099
- // still opacity-0 — glyph-box measured a wrapped line one row short and the
1100
- // next line slotted INTO its wrap band (real text-on-text shipped).
1101
- const measuredH = c && c.cap_bbox ? c.cap_bbox.h : null;
1102
- const h2 = g.id === heroG.id && didRaise ? fr * H * 1.12 : measuredH || fr * H * 1.25;
1103
- return { g, curTop, h: h2 };
1104
- })
1105
- .sort((a, b) => a.curTop - b.curTop);
1106
- let top = 0;
1107
- for (const e of entries) {
1108
- if (Math.abs(top - e.curTop) > 3) {
1109
- e.g.css = e.g.css.replace(/top:\s*-?[\d.]+px/, "top:" + Math.round(top) + "px");
1110
- changed = true;
1111
- }
1112
- top += e.h + Math.max(12, Math.round((fracOf(e.g.css) || 0.05) * H * 0.38)); // box is lh1.12 — contains its own ink
1113
- }
1114
- // RE-CLAMP the plane after MEASURED growth — keep the whole composition on frame
1115
- const planeCss3 = plan.planes[hRef.plane].css;
1116
- const curTopPct = +(planeCss3.match(/top:\s*([\d.]+)%/) || [0, 30])[1];
1117
- const maxTopPct = Math.max(2, ((H * 0.97 - top) / H) * 100);
1118
- if (curTopPct > maxTopPct + 0.3) {
1119
- plan.planes[hRef.plane].css = planeCss3.replace(
1120
- /top:\s*[\d.]+%/,
1121
- "top: " + maxTopPct.toFixed(1) + "%",
1122
- );
1123
- console.log(
1124
- `[make-cinematic] lockup measured ${Math.round(top)}px tall — plane top ${curTopPct}% → ${maxTopPct.toFixed(1)}% (kept on frame)`,
1125
- );
1126
- changed = true;
1127
- }
1128
- // even at the 2% ceiling the stack can exceed the frame (TIMID raise + ratio
1129
- // context on a tall lockup) — walk the hero back 8% and re-lock until it fits
1130
- if (top > H * 0.95 && maxTopPct <= 2.01) {
1131
- const f0c = fracOf(heroG.css);
1132
- if (f0c && f0c > 0.14) {
1133
- // decisive step: stack height scales ~linearly with the hero (context is
1134
- // ratio-locked to it), so aim straight at a 93% fill instead of nibbling
1135
- const nf2 = +Math.max(0.14, Math.min(f0c * 0.92, (f0c * (H * 0.93)) / top)).toFixed(3);
1136
- console.log(
1137
- `[make-cinematic] lockup stack ${Math.round(top)}px exceeds the frame even at top 2% — hero ${f0c}h → ${nf2}h (fit)`,
1138
- );
1139
- heroG.css = setFrac(heroG.css, nf2);
1140
- relockMates(nf2);
1141
- didRaise = true;
1142
- changed = true;
1143
- }
1144
- }
1145
- }
1146
- if (!changed) break;
1147
- fs.writeFileSync(path.join(project, "plan.json"), JSON.stringify(plan, null, 2));
1148
- r = cp2.spawnSync("node", [path.join(__dirname, "make-composition.cjs"), project], {
1149
- stdio: "ignore",
1150
- });
1151
- try {
1152
- fs.unlinkSync(path.join(project, "_layout.json"));
1153
- } catch {}
1154
- }
1155
- }
1156
- // MINOR HERO measure pass — minors keep their authored size (hierarchy is a choice)
1157
- // but never ship broken: wider than the frame's usable width shrinks to fit, and a
1158
- // column overflow gets a loud note (centered spill is legal on a clear side only).
1159
- {
1160
- const minors = groups.filter((g) => g.hero && !heroRefs.some((h) => `h-${h.bi}` === g.id));
1161
- let minorChanged = false;
1162
- for (const mg of minors) {
1163
- const midT = ((mg.in + Math.min(mg.out, mg.in + 1.0)) / 2).toFixed(2);
1164
- cp2.spawnSync("node", [path.join(__dirname, "measure-layout.cjs"), project, String(midT)], {
1165
- stdio: "ignore",
1166
- timeout: 60000,
1167
- });
1168
- let mc = null;
1169
- try {
1170
- mc = (
1171
- JSON.parse(fs.readFileSync(path.join(project, "_layout.json"), "utf8")).samples[0].caps ||
1172
- []
1173
- ).find((c) => c.id === mg.id);
1174
- } catch {}
1175
- if (!mc || !mc.cap_bbox) continue;
1176
- const bb = textBox(mc),
1177
- f0 = fracOf(mg.css);
1178
- if (f0 && bb.w > W * 0.94) {
1179
- const nf = Math.max(0.06, +((f0 * (W * 0.94)) / bb.w).toFixed(3));
1180
- console.log(
1181
- `[make-cinematic] minor hero "${(mg.words[0] || {}).text}" too WIDE ${Math.round(bb.w)}px → ${f0}h→${nf.toFixed(3)}h (shrink-to-fit)`,
1182
- );
1183
- mg.css = setFrac(mg.css, nf);
1184
- minorChanged = true;
1185
- } else {
1186
- const planeCssM = (plan.planes[mg.plane] && plan.planes[mg.plane].css) || "";
1187
- const pwPx = W * (+(planeCssM.match(/width:\s*([\d.]+)%/) || [0, 100])[1] / 100);
1188
- if (bb.w > pwPx * 1.05)
1189
- console.log(
1190
- `[make-cinematic] note: minor hero "${(mg.words[0] || {}).text}" (${Math.round(bb.w)}px) spills its ${Math.round(pwPx)}px column — fine on a clear side; reduce size if it crosses the subject`,
1191
- );
1192
- }
1193
- try {
1194
- fs.unlinkSync(path.join(project, "_layout.json"));
1195
- } catch {}
1196
- }
1197
- if (minorChanged) {
1198
- fs.writeFileSync(path.join(project, "plan.json"), JSON.stringify(plan, null, 2));
1199
- cp2.spawnSync("node", [path.join(__dirname, "make-composition.cjs"), project], {
1200
- stdio: "ignore",
1201
- });
1202
- }
1203
- }
1204
- process.exit(0);
1205
- }
1206
- main();