diff --git a/docs/packages/cli.mdx b/docs/packages/cli.mdx index 3f72ed9947..18af9f3ea6 100644 --- a/docs/packages/cli.mdx +++ b/docs/packages/cli.mdx @@ -2088,6 +2088,9 @@ files, the browser download and models are never touched. duration, element counts by type, track count, and total size. `npx hyperframes compositions` lists every composition in the project with its ID, duration, resolution, and element count. Both take `--json`. +`npx hyperframes info --media --json` adds `heard`: every clip the render mixes, scenes included, on the film's clock, +each with `src`, `start`, `end` (where it stops, or where its media runs out if sooner; `0` runs to the media's end), +`mediaStart`, `playbackRate`, `volume` and `type`. ### `update` diff --git a/packages/cli/src/commands/info.test.ts b/packages/cli/src/commands/info.test.ts index dca6a2c1cf..8c34eb593c 100644 --- a/packages/cli/src/commands/info.test.ts +++ b/packages/cli/src/commands/info.test.ts @@ -69,7 +69,7 @@ describe("info", () => { const log = vi.spyOn(console, "log").mockImplementation(() => {}); try { writeFileSync(join(dir, "index.html"), html); - await info.run?.({ args: { _: [], dir, json: true }, rawArgs: [], cmd: info }); + await info.run?.({ args: { _: [], dir, json: true, media: false }, rawArgs: [], cmd: info }); expect(JSON.parse(String(log.mock.calls[0]?.[0]))).toMatchObject({ resolution: "portrait", @@ -93,7 +93,7 @@ describe("info", () => {