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.
- package/.agents/skills/ad-creative/SKILL.md +362 -0
- package/.agents/skills/ad-creative/evals/evals.json +90 -0
- package/.agents/skills/ad-creative/references/generative-tools.md +637 -0
- package/.agents/skills/ad-creative/references/platform-specs.md +213 -0
- package/.agents/skills/ai-seo/SKILL.md +489 -0
- package/.agents/skills/ai-seo/evals/evals.json +90 -0
- package/.agents/skills/ai-seo/references/content-patterns.md +285 -0
- package/.agents/skills/ai-seo/references/content-types.md +71 -0
- package/.agents/skills/ai-seo/references/okf.md +104 -0
- package/.agents/skills/ai-seo/references/platform-ranking-factors.md +154 -0
- package/.agents/skills/clerk-backend-api/SKILL.md +426 -0
- package/.agents/skills/clerk-backend-api/evals/evals.json +87 -0
- package/.agents/skills/clerk-backend-api/scripts/api-specs-context.sh +30 -0
- package/.agents/skills/clerk-backend-api/scripts/execute-request.sh +88 -0
- package/.agents/skills/clerk-backend-api/scripts/extract-endpoint-detail.sh +165 -0
- package/.agents/skills/clerk-backend-api/scripts/extract-tag-endpoints.sh +208 -0
- package/.agents/skills/clerk-backend-api/scripts/extract-tags.js +14 -0
- package/.agents/skills/copy-editing/SKILL.md +457 -0
- package/.agents/skills/copy-editing/evals/evals.json +89 -0
- package/.agents/skills/copy-editing/references/checklist.md +66 -0
- package/.agents/skills/copy-editing/references/content-refresh.md +38 -0
- package/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
- package/.agents/skills/hyperframes/SKILL.md +163 -0
- package/.agents/skills/hyperframes-cli/SKILL.md +109 -0
- package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
- package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +51 -0
- package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
- package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
- package/.agents/skills/hyperframes-cli/references/preview-render.md +109 -0
- package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
- package/.agents/skills/hyperframes-media/SKILL.md +97 -0
- package/.agents/skills/hyperframes-media/assets/sfx/CREDITS.md +35 -0
- package/.agents/skills/hyperframes-media/assets/sfx/manifest.json +97 -0
- package/.agents/skills/hyperframes-media/references/bgm.md +72 -0
- package/.agents/skills/hyperframes-media/references/captions/authoring.md +159 -0
- package/.agents/skills/hyperframes-media/references/captions/motion.md +87 -0
- package/.agents/skills/hyperframes-media/references/captions/transcript-handling.md +97 -0
- package/.agents/skills/hyperframes-media/references/remove-background.md +143 -0
- package/.agents/skills/hyperframes-media/references/requirements.md +29 -0
- package/.agents/skills/hyperframes-media/references/sfx.md +42 -0
- package/.agents/skills/hyperframes-media/references/transcribe.md +52 -0
- package/.agents/skills/hyperframes-media/references/tts-to-captions.md +24 -0
- package/.agents/skills/hyperframes-media/references/tts.md +135 -0
- package/.agents/skills/hyperframes-media/scripts/audio.mjs +282 -0
- package/.agents/skills/hyperframes-media/scripts/heygen-tts.mjs +121 -0
- package/.agents/skills/hyperframes-media/scripts/lib/bgm.mjs +235 -0
- package/.agents/skills/hyperframes-media/scripts/lib/heygen.mjs +131 -0
- package/.agents/skills/hyperframes-media/scripts/lib/sfx.mjs +128 -0
- package/.agents/skills/hyperframes-media/scripts/lib/tts.mjs +220 -0
- package/.agents/skills/hyperframes-media/scripts/lyria-recipe.py +128 -0
- package/.agents/skills/hyperframes-media/scripts/wait-bgm.mjs +167 -0
- package/.agents/skills/hyperframes-registry/SKILL.md +101 -0
- package/.agents/skills/hyperframes-registry/examples/add-block.md +51 -0
- package/.agents/skills/hyperframes-registry/examples/add-component.md +73 -0
- package/.agents/skills/hyperframes-registry/references/contributing.md +166 -0
- package/.agents/skills/hyperframes-registry/references/demo-html-pattern.md +54 -0
- package/.agents/skills/hyperframes-registry/references/discovery.md +215 -0
- package/.agents/skills/hyperframes-registry/references/install-locations.md +45 -0
- package/.agents/skills/hyperframes-registry/references/templates.md +417 -0
- package/.agents/skills/hyperframes-registry/references/wiring-blocks.md +61 -0
- package/.agents/skills/hyperframes-registry/references/wiring-components.md +39 -0
- package/.agents/skills/marketing-psychology/SKILL.md +455 -0
- package/.agents/skills/marketing-psychology/evals/evals.json +88 -0
- package/.agents/skills/mintlify/SKILL.md +328 -0
- package/.agents/skills/product-launch-video/SKILL.md +206 -0
- package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
- package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
- package/.agents/skills/product-launch-video/references/story-design.md +373 -0
- package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
- package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
- package/.agents/skills/product-launch-video/scripts/audio.mjs +253 -0
- package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
- package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
- package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
- package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
- package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
- package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
- package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
- package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
- package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
- package/.agents/skills/product-launch-video/scripts/transitions.mjs +320 -0
- package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +74 -0
- package/.agents/skills/prompt-engineering-patterns/SKILL.md +144 -0
- package/.agents/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/.agents/skills/prompt-engineering-patterns/assets/prompt-template-library.md +264 -0
- package/.agents/skills/prompt-engineering-patterns/references/chain-of-thought.md +412 -0
- package/.agents/skills/prompt-engineering-patterns/references/details.md +338 -0
- package/.agents/skills/prompt-engineering-patterns/references/few-shot-learning.md +386 -0
- package/.agents/skills/prompt-engineering-patterns/references/prompt-optimization.md +428 -0
- package/.agents/skills/prompt-engineering-patterns/references/prompt-templates.md +484 -0
- package/.agents/skills/prompt-engineering-patterns/references/system-prompts.md +195 -0
- package/.agents/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/.agents/skills/remotion-to-hyperframes/SKILL.md +127 -0
- package/.agents/skills/remotion-to-hyperframes/assets/.gitkeep +0 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/run.sh +249 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/README.md +41 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/expected.json +26 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +61 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/package.json +14 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/remotion.config.ts +13 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/Root.tsx +13 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/TitleCard.tsx +34 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/index.ts +4 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/tsconfig.json +15 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/README.md +54 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/expected.json +29 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +118 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/package.json +14 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/remotion.config.ts +13 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/MultiScene.tsx +105 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/Root.tsx +13 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/index.ts +4 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/tsconfig.json +15 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/setup.sh +34 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/README.md +85 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +41 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +269 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/package.json +15 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/remotion.config.ts +13 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Root.tsx +27 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Stargazed.tsx +37 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/AnimatedNumber.tsx +23 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/StatCard.tsx +59 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/UnderlinedText.tsx +47 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/index.ts +4 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/OutroScene.tsx +18 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/StatsScene.tsx +34 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/TitleScene.tsx +55 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/tsconfig.json +15 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/README.md +51 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/01-use-state.tsx +29 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/02-use-effect-deps.tsx +29 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/03-async-metadata.tsx +39 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/04-third-party-react.tsx +30 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/05-lambda-config.tsx +38 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/06-warnings-only.tsx +36 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/07-custom-hook.tsx +28 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/08-mixed.tsx +41 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/expected.json +85 -0
- package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/validate.sh +110 -0
- package/.agents/skills/remotion-to-hyperframes/references/api-map.md +142 -0
- package/.agents/skills/remotion-to-hyperframes/references/escape-hatch.md +115 -0
- package/.agents/skills/remotion-to-hyperframes/references/eval.md +140 -0
- package/.agents/skills/remotion-to-hyperframes/references/fonts.md +112 -0
- package/.agents/skills/remotion-to-hyperframes/references/limitations.md +136 -0
- package/.agents/skills/remotion-to-hyperframes/references/lottie.md +121 -0
- package/.agents/skills/remotion-to-hyperframes/references/media.md +149 -0
- package/.agents/skills/remotion-to-hyperframes/references/parameters.md +167 -0
- package/.agents/skills/remotion-to-hyperframes/references/sequencing.md +195 -0
- package/.agents/skills/remotion-to-hyperframes/references/timing.md +165 -0
- package/.agents/skills/remotion-to-hyperframes/references/transitions.md +114 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/.gitkeep +0 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/frame_strip.sh +107 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/lint_source.py +358 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/render_diff.sh +103 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/blocker.tsx +50 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/clean.tsx +46 -0
- package/.agents/skills/remotion-to-hyperframes/scripts/tests/smoke.sh +90 -0
- package/.agents/skills/seo-audit/SKILL.md +497 -0
- package/.agents/skills/seo-audit/evals/evals.json +136 -0
- package/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/.agents/skills/seo-audit/references/international-seo.md +230 -0
- package/README.md +4 -2
- package/SDK.md +64 -1
- package/dist/agents/coding.agent.d.ts +558 -0
- package/dist/agents/coding.agent.d.ts.map +1 -1
- package/dist/agents/coding.agent.js +8 -0
- package/dist/agents/coding.agent.js.map +1 -1
- package/dist/agents/developer-helper.agent.d.ts +712 -0
- package/dist/agents/developer-helper.agent.d.ts.map +1 -1
- package/dist/agents/developer-helper.agent.js +6 -0
- package/dist/agents/developer-helper.agent.js.map +1 -1
- package/dist/agents/docs-research.agent.d.ts +8 -0
- package/dist/agents/docs-research.agent.d.ts.map +1 -1
- package/dist/agents/finance.agent.d.ts +8 -0
- package/dist/agents/finance.agent.d.ts.map +1 -1
- package/dist/agents/manager.d.ts +837 -2
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/manager.js +28 -0
- package/dist/agents/manager.js.map +1 -1
- package/dist/agents/security.agent.d.ts +165 -3
- package/dist/agents/security.agent.d.ts.map +1 -1
- package/dist/agents/security.agent.js +3 -0
- package/dist/agents/security.agent.js.map +1 -1
- package/dist/agents/swarm/main.js +1 -1
- package/dist/agents/swarm/main.js.map +1 -1
- package/dist/agents/swarm/registry.d.ts.map +1 -1
- package/dist/agents/swarm/registry.js +232 -26
- package/dist/agents/swarm/registry.js.map +1 -1
- package/dist/cli/doctor.d.ts +14 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +91 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/menu.d.ts.map +1 -1
- package/dist/cli/menu.js +102 -0
- package/dist/cli/menu.js.map +1 -1
- package/dist/cli/setup.d.ts +10 -0
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +178 -0
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/swarm.d.ts +1 -0
- package/dist/cli/swarm.d.ts.map +1 -1
- package/dist/cli/swarm.js +47 -8
- package/dist/cli/swarm.js.map +1 -1
- package/dist/cli/theme.d.ts +0 -24
- package/dist/cli/theme.d.ts.map +1 -1
- package/dist/cli/theme.js +6 -2
- package/dist/cli/theme.js.map +1 -1
- package/dist/config/env.d.ts +10 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +38 -17
- package/dist/config/env.js.map +1 -1
- package/dist/index.js +96 -5
- package/dist/index.js.map +1 -1
- package/dist/jobs/trigger-orchestrator.d.ts +5 -1
- package/dist/jobs/trigger-orchestrator.d.ts.map +1 -1
- package/dist/jobs/trigger-orchestrator.js +29 -9
- package/dist/jobs/trigger-orchestrator.js.map +1 -1
- package/dist/jobs/trigger-router.d.ts.map +1 -1
- package/dist/jobs/trigger-router.js +3 -2
- package/dist/jobs/trigger-router.js.map +1 -1
- package/dist/memory/corporate-wiki.d.ts +15 -0
- package/dist/memory/corporate-wiki.d.ts.map +1 -0
- package/dist/memory/corporate-wiki.js +152 -0
- package/dist/memory/corporate-wiki.js.map +1 -0
- package/dist/memory/scratchpad.d.ts +2 -0
- package/dist/memory/scratchpad.d.ts.map +1 -1
- package/dist/memory/scratchpad.js +27 -0
- package/dist/memory/scratchpad.js.map +1 -1
- package/dist/observability/doctor.d.ts.map +1 -1
- package/dist/observability/doctor.js +12 -4
- package/dist/observability/doctor.js.map +1 -1
- package/dist/observability/traces.d.ts +72 -0
- package/dist/observability/traces.d.ts.map +1 -0
- package/dist/observability/traces.js +1134 -0
- package/dist/observability/traces.js.map +1 -0
- package/dist/runtime/swarm.d.ts +1 -1
- package/dist/runtime/swarm.d.ts.map +1 -1
- package/dist/runtime/swarm.js +54 -25
- package/dist/runtime/swarm.js.map +1 -1
- package/dist/safety/approvals.d.ts +2 -2
- package/dist/safety/approvals.d.ts.map +1 -1
- package/dist/safety/approvals.js +47 -1
- package/dist/safety/approvals.js.map +1 -1
- package/dist/safety/redaction.d.ts.map +1 -1
- package/dist/safety/redaction.js +10 -0
- package/dist/safety/redaction.js.map +1 -1
- package/dist/tools/cloud.tool.d.ts +394 -0
- package/dist/tools/cloud.tool.d.ts.map +1 -0
- package/dist/tools/cloud.tool.js +784 -0
- package/dist/tools/cloud.tool.js.map +1 -0
- package/dist/tools/computer-use.tool.d.ts +2 -2
- package/dist/tools/corporate-wiki.tool.d.ts +22 -0
- package/dist/tools/corporate-wiki.tool.d.ts.map +1 -0
- package/dist/tools/corporate-wiki.tool.js +43 -0
- package/dist/tools/corporate-wiki.tool.js.map +1 -0
- package/dist/tools/devops.tool.d.ts +162 -0
- package/dist/tools/devops.tool.d.ts.map +1 -0
- package/dist/tools/devops.tool.js +377 -0
- package/dist/tools/devops.tool.js.map +1 -0
- package/dist/tools/multimedia.tool.d.ts +126 -0
- package/dist/tools/multimedia.tool.d.ts.map +1 -0
- package/dist/tools/multimedia.tool.js +533 -0
- package/dist/tools/multimedia.tool.js.map +1 -0
- package/dist/tools/osint.tool.d.ts +6 -6
- package/dist/tools/sandbox-dev.tool.d.ts +15 -0
- package/dist/tools/sandbox-dev.tool.d.ts.map +1 -0
- package/dist/tools/sandbox-dev.tool.js +146 -0
- package/dist/tools/sandbox-dev.tool.js.map +1 -0
- package/dist/tools/scratchpad.tool.d.ts +8 -0
- package/dist/tools/scratchpad.tool.d.ts.map +1 -1
- package/dist/tools/scratchpad.tool.js +40 -1
- package/dist/tools/scratchpad.tool.js.map +1 -1
- package/dist/tools/setup-assistant.tool.d.ts +1 -1
- package/dist/tools/swarm-ops.tool.d.ts +14 -0
- package/dist/tools/swarm-ops.tool.d.ts.map +1 -1
- package/dist/tools/swarm-ops.tool.js +47 -0
- package/dist/tools/swarm-ops.tool.js.map +1 -1
- package/dist/tools/sysops.tool.d.ts +157 -0
- package/dist/tools/sysops.tool.d.ts.map +1 -0
- package/dist/tools/sysops.tool.js +643 -0
- package/dist/tools/sysops.tool.js.map +1 -0
- package/dist/voice/deepgram.d.ts.map +1 -1
- package/dist/voice/deepgram.js +30 -2
- package/dist/voice/deepgram.js.map +1 -1
- package/package.json +8 -1
- 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)).
|
|
File without changes
|
|
@@ -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
|