The VS Code of video editing, built for agents.
TypeScript
Update README for clarity and enhance WorldDocument component with timing properties
konstantin-paulusfba355e05272
diff --git a/README.md b/README.mdindex 9763d877..b1df1a06 100644--- a/README.md+++ b/README.md@@ -1,8 +1,8 @@# Diffusion Studio-**FFmpeg for agents:** a media compositor you drive from the command line, with a generative-AI and vision toolchain built in.+**FFmpeg for agents:** a multimedia editor you drive from the command line, with generative AI and multimodal understanding built in.-What makes Diffusion Studio different is `dapi`, its CLI: every part of the editor (projects, the scene graph, the asset library, AI generation, rendering) is scriptable over a local socket, with JSON on stdout and deterministic exit codes.+What sets Diffusion Studio apart is `dapi`: a CLI that makes every part of the editor (projects, scene graphs, assets, AI generation, and rendering) scriptable over a local socket.```shdapi open # use -b to run the editor headlessdiff --git a/apps/web/src/utils/jsx.ts b/apps/web/src/utils/jsx.tsindex 112fa029..e926765f 100644--- a/apps/web/src/utils/jsx.ts+++ b/apps/web/src/utils/jsx.ts@@ -528,7 +528,14 @@ export class WorldDocument implements ProjectDocument<HostNode> {assert(this.engine, "captioning requires an engine (author-mode mount)");const { asset, trim } = await transcribeScene(this.engine, sceneEid);setComponent(world, nodeEid, c.AssetId, asset.id);- setComponent(world, nodeEid, c.Trim, trim);++ const props = this.data(nodeEid).props;+ const hasIn = timingProp(props, "sourceIn") !== undefined;+ const hasOut = timingProp(props, "sourceOut") !== undefined || timingProp(props, "end") !== undefined;+ setComponent(world, nodeEid, c.Trim, {+ start: hasIn ? c.Trim.start[nodeEid] : trim.start,+ end: hasOut ? c.Trim.end[nodeEid] : trim.end,+ });}}diff --git a/packages/jsx/src/types.ts b/packages/jsx/src/types.tsindex 362ec1bc..6a00d838 100644--- a/packages/jsx/src/types.ts+++ b/packages/jsx/src/types.ts@@ -378,5 +378,6 @@ export type SequenceProps = Pick<PatchProps, "name"> & {export type CaptionsProps = Pick<PatchProps,- "preset" | "colors" | "verticalAlign" | "offsetX" | "offsetY" | "src" | "start" | "animations"+ | "preset" | "colors" | "verticalAlign" | "offsetX" | "offsetY" | "src"+ | "start" | "end" | "sourceIn" | "sourceOut" | "animations">;