zilmate 1.9.9 → 1.10.2

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 (287) hide show
  1. package/.agents/skills/ad-creative/SKILL.md +362 -0
  2. package/.agents/skills/ad-creative/evals/evals.json +90 -0
  3. package/.agents/skills/ad-creative/references/generative-tools.md +637 -0
  4. package/.agents/skills/ad-creative/references/platform-specs.md +213 -0
  5. package/.agents/skills/ai-seo/SKILL.md +489 -0
  6. package/.agents/skills/ai-seo/evals/evals.json +90 -0
  7. package/.agents/skills/ai-seo/references/content-patterns.md +285 -0
  8. package/.agents/skills/ai-seo/references/content-types.md +71 -0
  9. package/.agents/skills/ai-seo/references/okf.md +104 -0
  10. package/.agents/skills/ai-seo/references/platform-ranking-factors.md +154 -0
  11. package/.agents/skills/clerk-backend-api/SKILL.md +426 -0
  12. package/.agents/skills/clerk-backend-api/evals/evals.json +87 -0
  13. package/.agents/skills/clerk-backend-api/scripts/api-specs-context.sh +30 -0
  14. package/.agents/skills/clerk-backend-api/scripts/execute-request.sh +88 -0
  15. package/.agents/skills/clerk-backend-api/scripts/extract-endpoint-detail.sh +165 -0
  16. package/.agents/skills/clerk-backend-api/scripts/extract-tag-endpoints.sh +208 -0
  17. package/.agents/skills/clerk-backend-api/scripts/extract-tags.js +14 -0
  18. package/.agents/skills/copy-editing/SKILL.md +457 -0
  19. package/.agents/skills/copy-editing/evals/evals.json +89 -0
  20. package/.agents/skills/copy-editing/references/checklist.md +66 -0
  21. package/.agents/skills/copy-editing/references/content-refresh.md +38 -0
  22. package/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
  23. package/.agents/skills/hyperframes/SKILL.md +163 -0
  24. package/.agents/skills/hyperframes-cli/SKILL.md +109 -0
  25. package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
  26. package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +51 -0
  27. package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
  28. package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
  29. package/.agents/skills/hyperframes-cli/references/preview-render.md +109 -0
  30. package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
  31. package/.agents/skills/hyperframes-media/SKILL.md +97 -0
  32. package/.agents/skills/hyperframes-media/assets/sfx/CREDITS.md +35 -0
  33. package/.agents/skills/hyperframes-media/assets/sfx/manifest.json +97 -0
  34. package/.agents/skills/hyperframes-media/references/bgm.md +72 -0
  35. package/.agents/skills/hyperframes-media/references/captions/authoring.md +159 -0
  36. package/.agents/skills/hyperframes-media/references/captions/motion.md +87 -0
  37. package/.agents/skills/hyperframes-media/references/captions/transcript-handling.md +97 -0
  38. package/.agents/skills/hyperframes-media/references/remove-background.md +143 -0
  39. package/.agents/skills/hyperframes-media/references/requirements.md +29 -0
  40. package/.agents/skills/hyperframes-media/references/sfx.md +42 -0
  41. package/.agents/skills/hyperframes-media/references/transcribe.md +52 -0
  42. package/.agents/skills/hyperframes-media/references/tts-to-captions.md +24 -0
  43. package/.agents/skills/hyperframes-media/references/tts.md +135 -0
  44. package/.agents/skills/hyperframes-media/scripts/audio.mjs +282 -0
  45. package/.agents/skills/hyperframes-media/scripts/heygen-tts.mjs +121 -0
  46. package/.agents/skills/hyperframes-media/scripts/lib/bgm.mjs +235 -0
  47. package/.agents/skills/hyperframes-media/scripts/lib/heygen.mjs +131 -0
  48. package/.agents/skills/hyperframes-media/scripts/lib/sfx.mjs +128 -0
  49. package/.agents/skills/hyperframes-media/scripts/lib/tts.mjs +220 -0
  50. package/.agents/skills/hyperframes-media/scripts/lyria-recipe.py +128 -0
  51. package/.agents/skills/hyperframes-media/scripts/wait-bgm.mjs +167 -0
  52. package/.agents/skills/hyperframes-registry/SKILL.md +101 -0
  53. package/.agents/skills/hyperframes-registry/examples/add-block.md +51 -0
  54. package/.agents/skills/hyperframes-registry/examples/add-component.md +73 -0
  55. package/.agents/skills/hyperframes-registry/references/contributing.md +166 -0
  56. package/.agents/skills/hyperframes-registry/references/demo-html-pattern.md +54 -0
  57. package/.agents/skills/hyperframes-registry/references/discovery.md +215 -0
  58. package/.agents/skills/hyperframes-registry/references/install-locations.md +45 -0
  59. package/.agents/skills/hyperframes-registry/references/templates.md +417 -0
  60. package/.agents/skills/hyperframes-registry/references/wiring-blocks.md +61 -0
  61. package/.agents/skills/hyperframes-registry/references/wiring-components.md +39 -0
  62. package/.agents/skills/marketing-psychology/SKILL.md +455 -0
  63. package/.agents/skills/marketing-psychology/evals/evals.json +88 -0
  64. package/.agents/skills/mintlify/SKILL.md +328 -0
  65. package/.agents/skills/product-launch-video/SKILL.md +206 -0
  66. package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
  67. package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
  68. package/.agents/skills/product-launch-video/references/story-design.md +373 -0
  69. package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
  70. package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
  71. package/.agents/skills/product-launch-video/scripts/audio.mjs +253 -0
  72. package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
  73. package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
  74. package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
  75. package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
  76. package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
  77. package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
  78. package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
  79. package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
  80. package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
  81. package/.agents/skills/product-launch-video/scripts/transitions.mjs +320 -0
  82. package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +74 -0
  83. package/.agents/skills/prompt-engineering-patterns/SKILL.md +144 -0
  84. package/.agents/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
  85. package/.agents/skills/prompt-engineering-patterns/assets/prompt-template-library.md +264 -0
  86. package/.agents/skills/prompt-engineering-patterns/references/chain-of-thought.md +412 -0
  87. package/.agents/skills/prompt-engineering-patterns/references/details.md +338 -0
  88. package/.agents/skills/prompt-engineering-patterns/references/few-shot-learning.md +386 -0
  89. package/.agents/skills/prompt-engineering-patterns/references/prompt-optimization.md +428 -0
  90. package/.agents/skills/prompt-engineering-patterns/references/prompt-templates.md +484 -0
  91. package/.agents/skills/prompt-engineering-patterns/references/system-prompts.md +195 -0
  92. package/.agents/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
  93. package/.agents/skills/remotion-to-hyperframes/SKILL.md +127 -0
  94. package/.agents/skills/remotion-to-hyperframes/assets/.gitkeep +0 -0
  95. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/run.sh +249 -0
  96. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/README.md +41 -0
  97. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/expected.json +26 -0
  98. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +61 -0
  99. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/package.json +14 -0
  100. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/remotion.config.ts +13 -0
  101. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/Root.tsx +13 -0
  102. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/TitleCard.tsx +34 -0
  103. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/index.ts +4 -0
  104. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/tsconfig.json +15 -0
  105. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/README.md +54 -0
  106. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/expected.json +29 -0
  107. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +118 -0
  108. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/package.json +14 -0
  109. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/remotion.config.ts +13 -0
  110. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/MultiScene.tsx +105 -0
  111. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/Root.tsx +13 -0
  112. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/index.ts +4 -0
  113. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/tsconfig.json +15 -0
  114. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/setup.sh +34 -0
  115. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/README.md +85 -0
  116. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +41 -0
  117. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +269 -0
  118. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/package.json +15 -0
  119. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/remotion.config.ts +13 -0
  120. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Root.tsx +27 -0
  121. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Stargazed.tsx +37 -0
  122. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/AnimatedNumber.tsx +23 -0
  123. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/StatCard.tsx +59 -0
  124. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/UnderlinedText.tsx +47 -0
  125. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/index.ts +4 -0
  126. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/OutroScene.tsx +18 -0
  127. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/StatsScene.tsx +34 -0
  128. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/TitleScene.tsx +55 -0
  129. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/tsconfig.json +15 -0
  130. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/README.md +51 -0
  131. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/01-use-state.tsx +29 -0
  132. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/02-use-effect-deps.tsx +29 -0
  133. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/03-async-metadata.tsx +39 -0
  134. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/04-third-party-react.tsx +30 -0
  135. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/05-lambda-config.tsx +38 -0
  136. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/06-warnings-only.tsx +36 -0
  137. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/07-custom-hook.tsx +28 -0
  138. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/08-mixed.tsx +41 -0
  139. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/expected.json +85 -0
  140. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/validate.sh +110 -0
  141. package/.agents/skills/remotion-to-hyperframes/references/api-map.md +142 -0
  142. package/.agents/skills/remotion-to-hyperframes/references/escape-hatch.md +115 -0
  143. package/.agents/skills/remotion-to-hyperframes/references/eval.md +140 -0
  144. package/.agents/skills/remotion-to-hyperframes/references/fonts.md +112 -0
  145. package/.agents/skills/remotion-to-hyperframes/references/limitations.md +136 -0
  146. package/.agents/skills/remotion-to-hyperframes/references/lottie.md +121 -0
  147. package/.agents/skills/remotion-to-hyperframes/references/media.md +149 -0
  148. package/.agents/skills/remotion-to-hyperframes/references/parameters.md +167 -0
  149. package/.agents/skills/remotion-to-hyperframes/references/sequencing.md +195 -0
  150. package/.agents/skills/remotion-to-hyperframes/references/timing.md +165 -0
  151. package/.agents/skills/remotion-to-hyperframes/references/transitions.md +114 -0
  152. package/.agents/skills/remotion-to-hyperframes/scripts/.gitkeep +0 -0
  153. package/.agents/skills/remotion-to-hyperframes/scripts/frame_strip.sh +107 -0
  154. package/.agents/skills/remotion-to-hyperframes/scripts/lint_source.py +358 -0
  155. package/.agents/skills/remotion-to-hyperframes/scripts/render_diff.sh +103 -0
  156. package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/blocker.tsx +50 -0
  157. package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/clean.tsx +46 -0
  158. package/.agents/skills/remotion-to-hyperframes/scripts/tests/smoke.sh +90 -0
  159. package/.agents/skills/seo-audit/SKILL.md +497 -0
  160. package/.agents/skills/seo-audit/evals/evals.json +136 -0
  161. package/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
  162. package/.agents/skills/seo-audit/references/international-seo.md +230 -0
  163. package/README.md +4 -2
  164. package/SDK.md +64 -1
  165. package/dist/agents/coding.agent.d.ts +558 -0
  166. package/dist/agents/coding.agent.d.ts.map +1 -1
  167. package/dist/agents/coding.agent.js +8 -0
  168. package/dist/agents/coding.agent.js.map +1 -1
  169. package/dist/agents/developer-helper.agent.d.ts +712 -0
  170. package/dist/agents/developer-helper.agent.d.ts.map +1 -1
  171. package/dist/agents/developer-helper.agent.js +6 -0
  172. package/dist/agents/developer-helper.agent.js.map +1 -1
  173. package/dist/agents/docs-research.agent.d.ts +8 -0
  174. package/dist/agents/docs-research.agent.d.ts.map +1 -1
  175. package/dist/agents/finance.agent.d.ts +8 -0
  176. package/dist/agents/finance.agent.d.ts.map +1 -1
  177. package/dist/agents/manager.d.ts +837 -2
  178. package/dist/agents/manager.d.ts.map +1 -1
  179. package/dist/agents/manager.js +28 -0
  180. package/dist/agents/manager.js.map +1 -1
  181. package/dist/agents/security.agent.d.ts +165 -3
  182. package/dist/agents/security.agent.d.ts.map +1 -1
  183. package/dist/agents/security.agent.js +3 -0
  184. package/dist/agents/security.agent.js.map +1 -1
  185. package/dist/agents/swarm/main.js +1 -1
  186. package/dist/agents/swarm/main.js.map +1 -1
  187. package/dist/agents/swarm/registry.d.ts.map +1 -1
  188. package/dist/agents/swarm/registry.js +232 -26
  189. package/dist/agents/swarm/registry.js.map +1 -1
  190. package/dist/cli/doctor.d.ts +14 -0
  191. package/dist/cli/doctor.d.ts.map +1 -1
  192. package/dist/cli/doctor.js +91 -0
  193. package/dist/cli/doctor.js.map +1 -1
  194. package/dist/cli/menu.d.ts.map +1 -1
  195. package/dist/cli/menu.js +102 -0
  196. package/dist/cli/menu.js.map +1 -1
  197. package/dist/cli/setup.d.ts +10 -0
  198. package/dist/cli/setup.d.ts.map +1 -1
  199. package/dist/cli/setup.js +178 -0
  200. package/dist/cli/setup.js.map +1 -1
  201. package/dist/cli/swarm.d.ts +1 -0
  202. package/dist/cli/swarm.d.ts.map +1 -1
  203. package/dist/cli/swarm.js +47 -8
  204. package/dist/cli/swarm.js.map +1 -1
  205. package/dist/cli/theme.d.ts +0 -24
  206. package/dist/cli/theme.d.ts.map +1 -1
  207. package/dist/cli/theme.js +6 -2
  208. package/dist/cli/theme.js.map +1 -1
  209. package/dist/config/env.d.ts +10 -0
  210. package/dist/config/env.d.ts.map +1 -1
  211. package/dist/config/env.js +38 -17
  212. package/dist/config/env.js.map +1 -1
  213. package/dist/index.js +96 -5
  214. package/dist/index.js.map +1 -1
  215. package/dist/jobs/trigger-orchestrator.d.ts +5 -1
  216. package/dist/jobs/trigger-orchestrator.d.ts.map +1 -1
  217. package/dist/jobs/trigger-orchestrator.js +29 -9
  218. package/dist/jobs/trigger-orchestrator.js.map +1 -1
  219. package/dist/jobs/trigger-router.d.ts.map +1 -1
  220. package/dist/jobs/trigger-router.js +3 -2
  221. package/dist/jobs/trigger-router.js.map +1 -1
  222. package/dist/memory/corporate-wiki.d.ts +15 -0
  223. package/dist/memory/corporate-wiki.d.ts.map +1 -0
  224. package/dist/memory/corporate-wiki.js +152 -0
  225. package/dist/memory/corporate-wiki.js.map +1 -0
  226. package/dist/memory/scratchpad.d.ts +2 -0
  227. package/dist/memory/scratchpad.d.ts.map +1 -1
  228. package/dist/memory/scratchpad.js +27 -0
  229. package/dist/memory/scratchpad.js.map +1 -1
  230. package/dist/observability/doctor.d.ts.map +1 -1
  231. package/dist/observability/doctor.js +12 -4
  232. package/dist/observability/doctor.js.map +1 -1
  233. package/dist/observability/traces.d.ts +72 -0
  234. package/dist/observability/traces.d.ts.map +1 -0
  235. package/dist/observability/traces.js +1134 -0
  236. package/dist/observability/traces.js.map +1 -0
  237. package/dist/runtime/swarm.d.ts +1 -1
  238. package/dist/runtime/swarm.d.ts.map +1 -1
  239. package/dist/runtime/swarm.js +54 -25
  240. package/dist/runtime/swarm.js.map +1 -1
  241. package/dist/safety/approvals.d.ts +2 -2
  242. package/dist/safety/approvals.d.ts.map +1 -1
  243. package/dist/safety/approvals.js +47 -1
  244. package/dist/safety/approvals.js.map +1 -1
  245. package/dist/safety/redaction.d.ts.map +1 -1
  246. package/dist/safety/redaction.js +10 -0
  247. package/dist/safety/redaction.js.map +1 -1
  248. package/dist/tools/cloud.tool.d.ts +394 -0
  249. package/dist/tools/cloud.tool.d.ts.map +1 -0
  250. package/dist/tools/cloud.tool.js +784 -0
  251. package/dist/tools/cloud.tool.js.map +1 -0
  252. package/dist/tools/computer-use.tool.d.ts +2 -2
  253. package/dist/tools/corporate-wiki.tool.d.ts +22 -0
  254. package/dist/tools/corporate-wiki.tool.d.ts.map +1 -0
  255. package/dist/tools/corporate-wiki.tool.js +43 -0
  256. package/dist/tools/corporate-wiki.tool.js.map +1 -0
  257. package/dist/tools/devops.tool.d.ts +162 -0
  258. package/dist/tools/devops.tool.d.ts.map +1 -0
  259. package/dist/tools/devops.tool.js +377 -0
  260. package/dist/tools/devops.tool.js.map +1 -0
  261. package/dist/tools/multimedia.tool.d.ts +126 -0
  262. package/dist/tools/multimedia.tool.d.ts.map +1 -0
  263. package/dist/tools/multimedia.tool.js +533 -0
  264. package/dist/tools/multimedia.tool.js.map +1 -0
  265. package/dist/tools/osint.tool.d.ts +6 -6
  266. package/dist/tools/sandbox-dev.tool.d.ts +15 -0
  267. package/dist/tools/sandbox-dev.tool.d.ts.map +1 -0
  268. package/dist/tools/sandbox-dev.tool.js +146 -0
  269. package/dist/tools/sandbox-dev.tool.js.map +1 -0
  270. package/dist/tools/scratchpad.tool.d.ts +8 -0
  271. package/dist/tools/scratchpad.tool.d.ts.map +1 -1
  272. package/dist/tools/scratchpad.tool.js +40 -1
  273. package/dist/tools/scratchpad.tool.js.map +1 -1
  274. package/dist/tools/setup-assistant.tool.d.ts +1 -1
  275. package/dist/tools/swarm-ops.tool.d.ts +14 -0
  276. package/dist/tools/swarm-ops.tool.d.ts.map +1 -1
  277. package/dist/tools/swarm-ops.tool.js +47 -0
  278. package/dist/tools/swarm-ops.tool.js.map +1 -1
  279. package/dist/tools/sysops.tool.d.ts +157 -0
  280. package/dist/tools/sysops.tool.d.ts.map +1 -0
  281. package/dist/tools/sysops.tool.js +643 -0
  282. package/dist/tools/sysops.tool.js.map +1 -0
  283. package/dist/voice/deepgram.d.ts.map +1 -1
  284. package/dist/voice/deepgram.js +30 -2
  285. package/dist/voice/deepgram.js.map +1 -1
  286. package/package.json +8 -1
  287. package/scripts/release-github.mjs +23 -16
@@ -0,0 +1,165 @@
1
+ # Timing translation: interpolate, spring, easing
2
+
3
+ The single highest-leverage reference. Easings and timings are what readers
4
+ notice; getting them wrong costs more SSIM than any other translation choice.
5
+ Empirically validated against tiers T1–T3.
6
+
7
+ ## Conversion: frames → seconds
8
+
9
+ HF's timeline is in seconds. Remotion is frame-based. Always:
10
+
11
+ ```
12
+ time_seconds = frame / fps
13
+ ```
14
+
15
+ So at fps=30:
16
+
17
+ - frame 15 → 0.5 s
18
+ - frame 30 → 1.0 s
19
+ - frame 90 → 3.0 s
20
+
21
+ Do this conversion once when translating, not at runtime.
22
+
23
+ ## interpolate — linear
24
+
25
+ ```tsx
26
+ const opacity = interpolate(frame, [0, 30], [0, 1], { extrapolateRight: "clamp" });
27
+ ```
28
+
29
+ Translates to:
30
+
31
+ ```js
32
+ gsap.to(target, { opacity: 1, duration: 1.0, ease: "none" }, 0);
33
+ // fromTo if the property starts at 0 and CSS doesn't already set it
34
+ gsap.fromTo(target, { opacity: 0 }, { opacity: 1, duration: 1.0, ease: "none" }, 0);
35
+ ```
36
+
37
+ `ease: "none"` matches Remotion's default linear interpolation. CSS sets the
38
+ `from` value if your initial state is in CSS; otherwise use `fromTo`.
39
+
40
+ `extrapolateLeft`/`extrapolateRight` defaults to `"extend"` in Remotion but
41
+ `"clamp"` is what the agent will see most often. GSAP doesn't extend — values
42
+ hold at the start and end of the tween. So for `clamp`, GSAP matches; for
43
+ `extend`, you'd need to extend the input range manually before emitting.
44
+
45
+ ## interpolate — multi-segment
46
+
47
+ ```tsx
48
+ const opacity = interpolate(frame, [0, 15, 75, 90], [0, 1, 1, 0]);
49
+ ```
50
+
51
+ Three keyframed tweens at offsets `[0]/fps`, `[1]/fps`, `[2]/fps`:
52
+
53
+ ```js
54
+ const tl = gsap.timeline({ paused: true });
55
+ tl.to(target, { opacity: 1, duration: 0.5, ease: "none" }, 0);
56
+ tl.to(target, { opacity: 1, duration: 2.0, ease: "none" }, 0.5);
57
+ tl.to(target, { opacity: 0, duration: 0.5, ease: "none" }, 2.5);
58
+ ```
59
+
60
+ Validated in T1 — mean SSIM 0.974 against Remotion baseline.
61
+
62
+ ## spring → GSAP back.out
63
+
64
+ Remotion's `spring()` is the most lossy translation. The mapping is approximate
65
+ but close enough that real-world compositions hold ≥ 0.92 SSIM (T2: 0.985, T3: 0.953).
66
+
67
+ | Remotion `spring` config | GSAP equivalent | Validated in |
68
+ | ------------------------------------------------- | ---------------------------------------------------- | -------------------------------- |
69
+ | `{damping: 12, stiffness: 100, mass: 1}` (snappy) | `back.out(1.4)` over ~0.7 s | T2, T3 (TitleScene) |
70
+ | `{damping: 14, stiffness: 90, mass: 1}` (calmer) | `back.out(1.2)` over ~0.7 s | T3 (StatCard) |
71
+ | `{damping: 8, stiffness: 200}` (very bouncy) | `back.out(2.0)` or `elastic.out(1, 0.5)` over ~0.6 s | not validated; budget ~0.05 SSIM |
72
+ | `{overshootClamping: true}` | `power3.out` over ~0.6 s (no overshoot) | not validated |
73
+
74
+ **Rule of thumb**: `back.out(N)` overshoot ratio ≈ `(stiffness / damping^2) * 1.4`. For
75
+ `damping:12, stiffness:100` that gives `1.4 * 100/144 = 0.97`, which is close to
76
+ the validated 1.4 (the formula is rough; tune by visual). Default duration is
77
+ ~0.7 s for the typical config.
78
+
79
+ When the spring's `delay`/`from`/`to` are non-default, scale the duration
80
+ proportionally.
81
+
82
+ ## interpolate with custom easing
83
+
84
+ ```tsx
85
+ import { Easing } from "remotion";
86
+ interpolate(frame, [0, 30], [0, 1], { easing: Easing.out(Easing.cubic) });
87
+ ```
88
+
89
+ | Remotion | GSAP |
90
+ | ---------------------------- | -------------------------------------------------------------------------------------- |
91
+ | `Easing.in(Easing.linear)` | `ease: "none"` |
92
+ | `Easing.out(Easing.cubic)` | `ease: "power3.out"` |
93
+ | `Easing.inOut(Easing.cubic)` | `ease: "power3.inOut"` |
94
+ | `Easing.out(Easing.poly(N))` | `ease: "power<N>.out"` (N=2 quad, 3 cubic, 4 quart, 5 quint) |
95
+ | `Easing.bezier(a,b,c,d)` | `CustomEase.create("c", "M0,0 C${a},${b} ${c},${d} 1,1")` (requires CustomEase plugin) |
96
+ | `Easing.elastic(bounciness)` | `ease: "elastic.out(${bounciness}, 0.3)"` |
97
+ | `Easing.bounce` | `ease: "bounce.out"` |
98
+ | `Easing.back(overshoot)` | `ease: "back.out(${overshoot * 1.7})"` (Remotion's overshoot scale differs) |
99
+
100
+ ## interpolate driving non-numeric properties
101
+
102
+ ```tsx
103
+ const color = interpolateColors(frame, [0, 30], ["#ff0000", "#0000ff"]);
104
+ ```
105
+
106
+ GSAP does color tweens natively:
107
+
108
+ ```js
109
+ gsap.to(target, { color: "#0000ff", duration: 1.0, ease: "none" }, 0);
110
+ ```
111
+
112
+ Same for `backgroundColor`, `borderColor`. The `from` value is read from CSS
113
+ or the inline style.
114
+
115
+ ## Custom count-up / number tweens
116
+
117
+ When Remotion uses a frame-driven number ramp (`Math.round(value * eased)`):
118
+
119
+ ```tsx
120
+ const t = interpolate(frame, [0, 45], [0, 1]);
121
+ const eased = 1 - (1 - t) ** 3; // cubic ease-out
122
+ const value = Math.round(target * eased);
123
+ return <div>{value.toLocaleString()}</div>;
124
+ ```
125
+
126
+ GSAP equivalent — tween a counter object, write `textContent` on update:
127
+
128
+ ```js
129
+ const counter = { v: 0 };
130
+ tl.to(
131
+ counter,
132
+ {
133
+ v: target,
134
+ duration: 1.5,
135
+ ease: "power3.out",
136
+ onUpdate: () => {
137
+ el.textContent = Math.round(counter.v).toLocaleString();
138
+ },
139
+ },
140
+ 0,
141
+ );
142
+ ```
143
+
144
+ `power3.out` matches `1 - (1-t)^3` exactly. Validated in T3 (mean SSIM 0.953).
145
+ Per-frame digit mismatches occur on sub-frame timing offsets but final values
146
+ converge — no SSIM impact above the noise floor.
147
+
148
+ ## Stagger via per-instance prop
149
+
150
+ When custom subcomponents take a `delayInFrames` prop:
151
+
152
+ ```tsx
153
+ <StatCard delayInFrames={i * 12} value={...} />
154
+ ```
155
+
156
+ Translate to GSAP timeline offsets:
157
+
158
+ ```js
159
+ cards.forEach((card, i) => {
160
+ const start = base + i * (12 / fps); // i * 0.4s at fps=30
161
+ tl.to(card, { ... }, start);
162
+ });
163
+ ```
164
+
165
+ Validated in T3 — three StatCards staggered at 0.0/0.4/0.8 s.
@@ -0,0 +1,114 @@
1
+ # Transitions translation: @remotion/transitions → HF crossfades / shader-transitions
2
+
3
+ The `@remotion/transitions` package is Remotion's library of pre-built
4
+ scene-to-scene transitions. HF has two paths to translate them:
5
+
6
+ 1. **Manual GSAP crossfade** — for simple opacity/transform transitions. Free, no extra package.
7
+ 2. **HF shader-transitions package** — for visually-rich transitions that match the @remotion/transitions presets.
8
+
9
+ ## Pattern: `<TransitionSeries>` is `<Series>` with overlap
10
+
11
+ ```tsx
12
+ <TransitionSeries>
13
+ <TransitionSeries.Sequence durationInFrames={60}>
14
+ <SceneA />
15
+ </TransitionSeries.Sequence>
16
+ <TransitionSeries.Transition
17
+ presentation={fade()}
18
+ timing={linearTiming({ durationInFrames: 15 })}
19
+ />
20
+ <TransitionSeries.Sequence durationInFrames={60}>
21
+ <SceneB />
22
+ </TransitionSeries.Sequence>
23
+ </TransitionSeries>
24
+ ```
25
+
26
+ Translates to scenes that overlap by the transition duration:
27
+
28
+ - SceneA: [0, 60] = `data-start="0" data-duration="2"`
29
+ - SceneB: [60-15, 60-15+60] = `data-start="1.5" data-duration="2"` (the transition window overlaps the end of A and start of B)
30
+
31
+ Then drive the transition with GSAP:
32
+
33
+ ```js
34
+ // Manual fade (presentation={fade()})
35
+ tl.to(sceneA, { opacity: 0, duration: 0.5, ease: "none" }, 1.5);
36
+ tl.fromTo(sceneB, { opacity: 0 }, { opacity: 1, duration: 0.5, ease: "none" }, 1.5);
37
+ ```
38
+
39
+ ## Presentation table
40
+
41
+ | Remotion `presentation` | HF translation |
42
+ | ---------------------------------- | ----------------------------------------------------------------------------------------- |
43
+ | `fade()` | manual `gsap.to(opacity)` crossfade |
44
+ | `slide({direction: "from-right"})` | `gsap.fromTo(translateX: "100%" → 0)` on incoming + `to(translateX: "-100%")` on outgoing |
45
+ | `wipe({direction: "from-left"})` | `gsap.fromTo(clip-path: inset(0 100% 0 0) → inset(0 0 0 0))` on incoming |
46
+ | `clockWipe()` | use HF's `sdf-iris` shader-transition (`npx hyperframes add sdf-iris`) |
47
+ | `flip()` | `gsap.to(rotateY)` 180° split between scenes |
48
+ | `cube()` | use HF's `cinematic-zoom` or build manually with `rotateY` + `transform-origin` |
49
+ | `iris()` | use HF's `sdf-iris` shader-transition |
50
+ | `none()` | no transition; hard cut at the boundary |
51
+
52
+ ## Timing translations
53
+
54
+ ```tsx
55
+ linearTiming({durationInFrames: 15}) → ease: "none"
56
+ linearTiming({durationInFrames: 15, easing: ...}) → ease per the easing table in timing.md
57
+ springTiming({config: {damping: 12}}) → ease: "back.out(1.4)" (~0.7 s)
58
+ ```
59
+
60
+ Convert `durationInFrames` to seconds (`/fps`).
61
+
62
+ ## When to use HF shader-transitions
63
+
64
+ For transitions Remotion presets that have visually-rich GLSL equivalents
65
+ (iris, ripple, zoom, glitch), use HF's [shader-transitions](https://hyperframes.heygen.com/catalog/blocks)
66
+ package. They produce richer output than manual GSAP transforms.
67
+
68
+ ```bash
69
+ npx hyperframes add sdf-iris
70
+ ```
71
+
72
+ Then in the composition:
73
+
74
+ ```html
75
+ <div id="iris-transition" class="hf-shader-transition" data-start="1.5" data-duration="0.5">
76
+ <!-- bound scenes via the shader-transition's data-from / data-to -->
77
+ </div>
78
+ ```
79
+
80
+ Each shader-transition has its own data attributes; see the catalog page
81
+ for the specific block.
82
+
83
+ ## When the source uses a custom Presentation
84
+
85
+ Remotion supports custom `presentation` implementations:
86
+
87
+ ```tsx
88
+ const customPresentation: PresentationComponent = ({
89
+ children,
90
+ presentationProgress,
91
+ presentationDirection,
92
+ }) => {
93
+ return (
94
+ <div
95
+ style={
96
+ {
97
+ /* compute transform from progress */
98
+ }
99
+ }
100
+ >
101
+ {children}
102
+ </div>
103
+ );
104
+ };
105
+ ```
106
+
107
+ Translation: extract the math from the `style={...}` block and emit
108
+ equivalent GSAP tweens. Specifically the transform formula maps directly
109
+ to a `gsap.to(target, { transform: ... })` parameterized by `progress`.
110
+
111
+ If the custom presentation uses `useCurrentFrame()` internally to
112
+ animate something _outside_ the simple progress curve, treat the source
113
+ as untranslatable and bow out to the runtime interop pattern (see
114
+ [escape-hatch.md](escape-hatch.md)).
@@ -0,0 +1,107 @@
1
+ #!/usr/bin/env bash
2
+ # frame_strip.sh — produce a side-by-side comparison strip from two videos.
3
+ #
4
+ # Used to debug failing render_diff.sh runs visually: pick a sample timestamp
5
+ # range, extract frames from both videos, lay them out as a grid for review.
6
+ #
7
+ # Usage:
8
+ # frame_strip.sh <baseline.mp4> <translated.mp4> [output-dir] [samples]
9
+ #
10
+ # Defaults: output-dir=./strip-out, samples=8 (evenly spaced across duration).
11
+ # Output:
12
+ # strip.png — single PNG with `samples` rows, each row is
13
+ # (baseline frame | translated frame) at one timestamp
14
+ # timestamps.txt — the timestamps sampled
15
+
16
+ set -euo pipefail
17
+
18
+ if [[ $# -lt 2 || $# -gt 4 ]]; then
19
+ echo "usage: $0 <baseline.mp4> <translated.mp4> [output-dir] [samples]" >&2
20
+ exit 2
21
+ fi
22
+
23
+ BASELINE="$1"
24
+ TRANSLATED="$2"
25
+ OUTDIR="${3:-./strip-out}"
26
+ SAMPLES="${4:-8}"
27
+
28
+ if ! command -v ffmpeg >/dev/null 2>&1 || ! command -v ffprobe >/dev/null 2>&1; then
29
+ echo "error: ffmpeg/ffprobe not on PATH" >&2
30
+ exit 2
31
+ fi
32
+
33
+ mkdir -p "$OUTDIR"
34
+
35
+ # Build the strip in a single ffmpeg invocation. Two inputs (baseline and
36
+ # translated) are sampled at N evenly-spaced timestamps via the `select`
37
+ # filter, then assembled with hstack (per-row pairs) + vstack (rows).
38
+ # Earlier versions spawned 3 ffmpeg calls per timestamp + a final vstack;
39
+ # this is one call regardless of N.
40
+ python3 - "$BASELINE" "$TRANSLATED" "$OUTDIR" "$SAMPLES" <<'PY'
41
+ import json
42
+ import shutil
43
+ import subprocess
44
+ import sys
45
+ from pathlib import Path
46
+
47
+ baseline, translated, outdir, samples = sys.argv[1], sys.argv[2], Path(sys.argv[3]), int(sys.argv[4])
48
+
49
+ # Read fps + duration from the baseline so we can map timestamps to frame
50
+ # indexes for the `select` filter (frame-accurate, doesn't depend on
51
+ # keyframe alignment).
52
+ probe = subprocess.run(
53
+ ["ffprobe", "-v", "error", "-select_streams", "v:0",
54
+ "-show_entries", "stream=r_frame_rate,nb_read_frames,duration",
55
+ "-show_entries", "format=duration",
56
+ "-of", "json", "-count_frames", baseline],
57
+ check=True, capture_output=True, text=True,
58
+ )
59
+ data = json.loads(probe.stdout)
60
+ stream = data["streams"][0]
61
+ num, den = stream["r_frame_rate"].split("/")
62
+ fps = float(num) / float(den)
63
+ nb_frames = int(stream.get("nb_read_frames") or 0)
64
+ if nb_frames <= 0:
65
+ duration = float(stream.get("duration") or data["format"]["duration"])
66
+ nb_frames = int(duration * fps)
67
+
68
+ # Even-spaced sample frames in the 5%-95% window (skip fade-in/out noise).
69
+ start = max(0, int(nb_frames * 0.05))
70
+ end = max(start, int(nb_frames * 0.95) - 1)
71
+ if samples == 1:
72
+ frames = [start]
73
+ else:
74
+ step = (end - start) / (samples - 1)
75
+ frames = [int(start + i * step) for i in range(samples)]
76
+
77
+ (outdir / "timestamps.txt").write_text(
78
+ "\n".join(f"{f / fps:.3f}" for f in frames) + "\n"
79
+ )
80
+
81
+ # select='eq(n,F1)+eq(n,F2)+...' picks exactly the listed frames from each
82
+ # input. We then hstack per-frame pairs and vstack the result.
83
+ select_expr = "+".join(f"eq(n,{f})" for f in frames)
84
+ n = len(frames)
85
+ filter_parts = [
86
+ f"[0:v]select='{select_expr}',setpts=N/FRAME_RATE/TB,split={n}"
87
+ + "".join(f"[b{i}]" for i in range(n)),
88
+ f"[1:v]select='{select_expr}',setpts=N/FRAME_RATE/TB,split={n}"
89
+ + "".join(f"[t{i}]" for i in range(n)),
90
+ ]
91
+ for i in range(n):
92
+ filter_parts.append(f"[b{i}][t{i}]hstack=inputs=2[row{i}]")
93
+ filter_parts.append(
94
+ "".join(f"[row{i}]" for i in range(n)) + f"vstack=inputs={n}[out]"
95
+ )
96
+ filter_graph = ";".join(filter_parts)
97
+
98
+ cmd = [
99
+ "ffmpeg", "-y", "-hide_banner", "-loglevel", "error",
100
+ "-i", baseline, "-i", translated,
101
+ "-filter_complex", filter_graph,
102
+ "-map", "[out]", "-frames:v", "1",
103
+ str(outdir / "strip.png"),
104
+ ]
105
+ subprocess.run(cmd, check=True)
106
+ print(f"wrote {outdir / 'strip.png'} ({n} samples)")
107
+ PY