mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
## Summary - Run `oxfmt .` across the entire codebase to establish formatted baseline - 299 files changed — mechanical formatting only, no logic changes - Double quotes, semicolons, 2-space indent, trailing commas, 100 print width Part 3/4 of [VA-851](https://linear.app/heygen/issue/VA-851/pre-migration-configure-eslint-prettier-and-conventional-commits) ## Test plan - [x] `pnpm format:check` — all 426 files pass - [x] `pnpm -r typecheck` — all packages pass - [x] `pnpm build` — all packages build - [x] All 348 tests pass
2.9 KiB
2.9 KiB
HyperFrame Schema Compliance Review
Executive Summary
- Total files reviewed: 4
- Critical issues: 0
- Overall compliance status: PASS
Critical Issues
None found. The compositions follow the HyperFrame schema correctly, including deterministic code, finite timelines, and proper registration.
Compliance Checklist
- All compositions have
data-widthanddata-heightattributes - All timelines are finite with duration > 0
- All compositions registered in
window.__timelines - No use of
Math.random(),Date.now(), or non-deterministic code - Primitive clips have required data attributes (
id,data-start,data-track) data-durationspecified for all<img>clips (N/A - no images used)- No manual media playback control (
video.play(),audio.pause(), etc.) - No manual clip mounting/unmounting in scripts
- Relative timing references are valid (N/A - absolute timing used)
- Clips on same track don't overlap in time
- Reusable compositions in separate HTML files
- Composition files use
<template>tags - External compositions loaded via
data-composition-src - All script-animated content wrapped in compositions
- No infinite or zero-duration timelines
File Analysis
index.html
Status: COMPLIANT
Observations:
- Correctly defines the master composition with
data-composition-id="editor-agent". - Includes
data-width,data-height, anddata-duration. - Orchestrates sub-compositions using
data-composition-src. - Registers the master timeline in
window.__timelines.
compositions/title-card.html
Status: COMPLIANT
Observations:
- Uses
<template>tag as required. - Root element has
data-composition-id,data-width,data-height, anddata-duration. - Script is deterministic and registers the timeline correctly.
- Styles are scoped using the
[data-composition-id="title-card"]selector.
compositions/captions.html
Status: COMPLIANT
Observations:
- Uses
<template>tag. - Root element has all required data attributes.
- Script uses a deterministic array of timings for caption animations.
- Correctly registers the timeline.
compositions/main-video.html
Status: COMPLIANT
Observations:
- Uses
<template>tag. - Root element has all required data attributes.
- Contains a primitive
<video>clip withid,data-start,data-duration, anddata-track. - Script handles visual animations (scaling, positioning, opacity) without interfering with video playback.
- Background animations are deterministic (fixed durations and values).
- Correctly registers the timeline.
Recommendations
- Relative Timing: While absolute timing is used correctly, consider using relative timing (e.g.,
data-start="title-card") inindex.htmlfor better maintainability if durations change. - Asset Paths: Ensure all asset paths (like
assets/abstract_shapes.svg) are correct relative to the final deployment structure.