Find code by asking what it does. A CLI for coding agents that uses Jev to discover relevant files and source context.
TypeScript ai-sdkclaude-codeclicode-searchcodexcoding-agentscontext-retrievaldeveloper-toolsjevsemantic-searchtypescriptvercel-ai-gateway
video: open on a finished jg run as the feed thumbnail
David Zhang09c453db5eb7
diff --git a/video/README.md b/video/README.mdindex 4543e66..1479e7a 100644--- a/video/README.md+++ b/video/README.md@@ -22,8 +22,9 @@ same cues to place every kick, riser, impact, and UI sound. Retime something theand both picture and sound move together. Scene code takes absolute time `t`(seconds) rather than local frames so cue values stay literal.-The video opens on a short hold of the poster (`PRE`) because social feeds-thumbnail an early frame, not strictly frame 0. `pre.wav` covers that hold and+The video opens on a short hold (`PRE`) of a finished `jg` run from the reveal+scene (`THUMB_T`), because social feeds thumbnail an early frame, not strictly+frame 0. The `Poster` composition is separate key art for the README. `pre.wav` covers that hold and`music.wav` starts at the cold open.## Reviewing changesdiff --git a/video/src/Reel.tsx b/video/src/Reel.tsxindex 4b651e5..257d86e 100644--- a/video/src/Reel.tsx+++ b/video/src/Reel.tsx@@ -1,7 +1,7 @@import React from "react";import { AbsoluteFill, Audio, Sequence, staticFile, useCurrentFrame } from "remotion";-import { DURATION, FPS, PRE, SCENE } from "./cues";-import { C, kick, ramp } from "./lib/anim";+import { DURATION, FPS, PRE, SCENE, THUMB_T } from "./cues";+import { C, EASE, kick, ramp } from "./lib/anim";import { MONO, abs } from "./lib/ui";import { Problem } from "./scenes/Problem";import { Reveal } from "./scenes/Reveal";@@ -9,7 +9,6 @@ import { Engine } from "./scenes/Engine";import { Jev } from "./scenes/Jev";import { Bench } from "./scenes/Bench";import { Outro } from "./scenes/Outro";-import { Poster } from "./scenes/Poster";const SCENES = [{ at: SCENE.problem, end: SCENE.reveal, C: Problem, dark: false },@@ -110,6 +109,22 @@ const Hud: React.FC<{ t: number; dark: boolean; idx: number }> = ({ t, dark, idx);};+const Thumb: React.FC<{ exit: number }> = ({ exit }) => (+ <div+ style={{+ ...abs,+ width: 1920,+ height: 1080,+ transformOrigin: "960px 540px",+ transform: `translateY(${exit * 60}px) scale(${1 - exit * 0.18})`,+ opacity: 1 - exit,+ filter: exit > 0.01 ? `blur(${exit * 10}px)` : undefined,+ }}+ >+ <Reveal t={THUMB_T} hold />+ </div>+);+export const Reel: React.FC = () => {const frame = useCurrentFrame();const preFrames = Math.round(PRE * FPS);@@ -125,26 +140,19 @@ export const Reel: React.FC = () => {<Sequence from={preFrames}><Audio src={staticFile("music.wav")} /></Sequence>- {/* Key art holds, then flies apart into the cold open (feeds thumbnail an early frame). */}- {t < 0 ? (- <Poster exit={ramp(t, 0.3 - PRE, 0, (x) => x)} />- ) : (- <>- <S t={t} />- <div- style={{- ...abs,- width: 1920,- height: 1080,- pointerEvents: "none",- background:- "radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.18) 100%)",- }}- />- <Grain frame={frame} />- <Hud t={t} dark={dark} idx={Math.max(0, idx)} />- </>- )}+ {/* A finished `jg` run holds first (feeds thumbnail an early frame), then drops away into the cold open. */}+ {t < 0 ? <Thumb exit={EASE.in(ramp(t, 0.3 - PRE, 0, (x) => x))} /> : <S t={t} />}+ <div+ style={{+ ...abs,+ width: 1920,+ height: 1080,+ pointerEvents: "none",+ background: "radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.18) 100%)",+ }}+ />+ <Grain frame={frame} />+ {t >= 0 && <Hud t={t} dark={dark} idx={Math.max(0, idx)} />}</AbsoluteFill>);};diff --git a/video/src/cues.ts b/video/src/cues.tsindex e6a430c..c0193dc 100644--- a/video/src/cues.ts+++ b/video/src/cues.ts@@ -9,6 +9,8 @@ export const FPS = 60;export const DURATION = 30;// Key-art hold before the cold open: feeds (X) thumbnail an early frame, so it must be the poster.export const PRE = 0.5;+// The reveal-scene moment shown during that hold: logo, tagline, and a completed `jg` run.+export const THUMB_T = 7.8;export const SCENE = { problem: 0, reveal: 4, engine: 8, jev: 14, bench: 20, outro: 26, end: 30 };diff --git a/video/src/scenes/Reveal.tsx b/video/src/scenes/Reveal.tsxindex 657f0dd..ab5e863 100644--- a/video/src/scenes/Reveal.tsx+++ b/video/src/scenes/Reveal.tsx@@ -120,14 +120,15 @@ const JDot: React.FC<{ t: number; at: number; size: number; ringAt?: number }> =);};-export const Reveal: React.FC<{ t: number }> = ({ t }) => {+/** hold: freeze without the dive into the terminal (used as the video's thumbnail frame). */+export const Reveal: React.FC<{ t: number; hold?: boolean }> = ({ t, hold }) => {const shift = sp(t, R.shift, { damping: 16, stiffness: 120, mass: 0.9 });const termIn = sp(t, R.shift + 0.05, { damping: 14, stiffness: 120, mass: 0.9 });const typed = Math.floor(R.command.length * clamp01((t - R.typeStart) / (R.typeEnd - R.typeStart)),);const enterP = pulse(t, [R.enter], 0.08);- const zoom = ramp(t, R.zoom, 8.0, EASE.in);+ const zoom = hold ? 0 : ramp(t, R.zoom, 8.0, EASE.in);const sh = shake(t,[@@ -300,7 +301,7 @@ export const Reveal: React.FC<{ t: number }> = ({ t }) => {width: 1920,height: 1080,background: C.night,- opacity: ramp(t, 7.82, 8.0, (x) => x),+ opacity: hold ? 0 : ramp(t, 7.82, 8.0, (x) => x),}}/></div>