Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building an AI Video Editor: Reviewable Commands, State Tokens, and Browser Export

Описание и применение

Архитектура Timeline Studio обеспечивает безопасный и согласованный процесс редактирования видео с помощью AI, используя унифицированный JSON‑контракт, семантическую проверку, токены состояния и единый механизм исполнения для браузера, CLI и MCP.

Задача

Integrating AI‑generated media and agent‑assisted operations into a browser‑based multitrack video editor while ensuring edit validity, concurrency safety, and consistent rule application across transports.

Результат

The architecture provides a robust, agent‑friendly workflow that separates source assets from timeline clips, validates edits semantically, manages concurrency with state tokens, and unifies editing rules across multiple transports, enabling safe integration of AI‑generated media.

Рабочий процесс

  • Inspect project via agent command
  • Generate JSON plan with schemaVersion, project path, baseRevision, operations, and output
  • Perform semantic dry run with project.diff to preview changes
  • Review diff and approve plan
  • Apply plan with project.run, ensuring state token matches inspected state
  • Handle concurrency by rejecting stale plans and replanning if necessary
  • Commit generation results to assets without auto‑insertion
  • Export final timeline using deterministic offline rendering

Доказательства

The local workflow is: npm run agent -- project.inspect /projects/input.timeline npm run agent -- project.diff /projects/plan.json npm run agent -- project.run /projects/plan.json

Источник

We separate transport‑shape validation from project‑aware validation. A semantic dry run uses the shared command registry and state transformations to predict the actual result without writing an archive.

Источник

The browser interface uses a state token to bind preparation to the inspected state. A reviewed edit receives a preview ID. Applying it checks that the editor still matches the reviewed snapshot; otherwise, the agent must inspect again and replan.

Источник

  • Дата записи: 2026-10-14T10:56:02.434Z