The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
import { describe, expect, it } from "vitest";
import type { TimelineElement } from "../store/playerStore";
import { resolveTimelineFocusIdentity } from "./timelineFocusIdentity";
describe("timeline focus identity", () => {
const elements: TimelineElement[] = [
{ id: "clip/a", key: "stable:key", tag: "div", start: 0, duration: 1, track: 7.5 },
];
it("resolves a stable element id and fractional display row from model identity", () => {
expect(resolveTimelineFocusIdentity(elements, "stable:key")).toEqual({
elementId: "stable:key",
rowKey: 7.5,
});
});
it("does not invent focus for a missing or cleared identity", () => {
expect(resolveTimelineFocusIdentity(elements, "missing")).toBeNull();
expect(resolveTimelineFocusIdentity(elements, null)).toBeNull();
});
});