davinci-resolve-mcp 2.153.0 → 2.155.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,43 @@
2
2
 
3
3
  Release history for the DaVinci Resolve MCP Server. The latest release is summarized in the root README; older entries live here to keep the README focused.
4
4
 
5
+ ## What's New in v2.155.0 — Premiere transitions land properly: centered spans and fades
6
+
7
+ ### Fixed
8
+
9
+ - **Every centered Premiere transition was silently dropped**: the .prproj
10
+ reader attached transitions only to clips starting exactly at the span
11
+ start — the CMX start-at-cut shape — so a transition centered on its cut
12
+ (Premiere's default) matched nothing and vanished. The incoming clip is
13
+ now found anywhere inside the span, and `recStart` carries Premiere's
14
+ explicit record span to the bridge so the editor's actual alignment is
15
+ reproduced.
16
+
17
+ ### Added
18
+
19
+ - **.prproj fades**: an edge span with a missing neighbor synthesizes BL
20
+ legs through the same black machinery as EDL/OTIO/XMEML/AAF — all five
21
+ ingest formats now author fades. Audio transition candidates honor
22
+ `recStart` too. The emitted spec shapes are the render-verified classes
23
+ from v2.150–152.
24
+
25
+ ## What's New in v2.154.0 — the QC loop learns retimes
26
+
27
+ ### Added
28
+
29
+ - **`editorial.verify_roundtrip` is retime-aware.** A conform that lost its
30
+ retime is a wrong timeline that record/source geometry alone cannot catch
31
+ — the record extent is unchanged, only the playback rate. Speed and
32
+ reverse now compare pairwise (`kind: 'retime'` on drift).
33
+
34
+ ### Measured (good news, for once)
35
+
36
+ - **`EXPORT_OTIO` carries an authored `Sm2TimeMap` back as
37
+ `LinearTimeWarp`**: a 50% M2 retime conformed offline reads back out of
38
+ Resolve's OTIO export as `time_scalar: 0.5`. The retime loop closes
39
+ losslessly through OTIO — live loop verified both ways (pass on the true
40
+ export, `retime` drift on a speed-stripped one).
41
+
5
42
  ## What's New in v2.153.0 — the QC loop learns fades
6
43
 
7
44
  ### Added
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  English | [简体中文](README.zh-CN.md)
4
4
 
5
- [![Version](https://img.shields.io/badge/version-2.153.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.155.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-36%20(353%20full)-blue.svg)](#server-modes)
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 简体中文
4
4
 
5
- [![Version](https://img.shields.io/badge/version-2.153.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.155.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-36%20(353%20full)-blue.svg)](#服务器模式)
@@ -12,7 +12,7 @@
12
12
  [![Python](https://img.shields.io/badge/python-3.10+-green.svg)](https://www.python.org/downloads/)
13
13
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
14
14
 
15
- > 本翻译对应 v2.153.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.155.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
package/install.py CHANGED
@@ -37,7 +37,7 @@ from src.utils.update_check import (
37
37
 
38
38
  # ─── Version ──────────────────────────────────────────────────────────────────
39
39
 
40
- VERSION = "2.153.0"
40
+ VERSION = "2.155.0"
41
41
  # Only hard floor: mcp[cli] requires Python 3.10+. There is no upper bound —
42
42
  # Resolve's scripting bridge loads into newer interpreters on recent builds
43
43
  # (Python 3.14 verified against Resolve Studio 20.3.2). Older Resolve builds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "2.153.0",
3
+ "version": "2.155.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -432,9 +432,13 @@ export function eventsToAssembleSpec(events, opts = {}) {
432
432
  let pre = Math.floor(d / 2);
433
433
  if (e.transition.alignment === 'start') pre = 0;
434
434
  else if (e.transition.inOffset != null) pre = Math.min(d, Math.max(0, toTl(e.transition.inOffset, e.fps)));
435
+ else if (e.transition.recStart != null) {
436
+ const spanStartAbs = ORIGIN + (toTl(e.transition.recStart, e.fps) - minRec);
437
+ pre = Math.min(d, Math.max(0, recIn - spanStartAbs));
438
+ }
435
439
  audioTransCandidates.push({
436
440
  atFrame: recIn, durationFrames: d, track, pre,
437
- explicitSpan: e.transition.alignment != null || e.transition.inOffset != null,
441
+ explicitSpan: e.transition.alignment != null || e.transition.inOffset != null || e.transition.recStart != null,
438
442
  index: e.index, type: e.transition.type, rawDuration: e.transition.duration,
439
443
  source: e.source, srcIn: cut.srcIn, incomingCutRef: cut, cutPoint: e.transition.cutPoint,
440
444
  });
@@ -839,7 +843,7 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
839
843
  if (!v.length) return [];
840
844
  const off = Math.min(...v.map((e) => e.recIn));
841
845
  return v
842
- .map((e) => ({ track: canonTrack(e.track), source: mapSource(canonSource(e.source)), recIn: e.recIn - off, recOut: e.recOut - off, srcIn: e.srcIn ?? 0 }))
846
+ .map((e) => ({ track: canonTrack(e.track), source: mapSource(canonSource(e.source)), recIn: e.recIn - off, recOut: e.recOut - off, srcIn: e.srcIn ?? 0, speed: e.speed ?? 100, reverse: Boolean(e.reverse) }))
843
847
  .sort((a, b) => a.track.localeCompare(b.track) || a.recIn - b.recIn);
844
848
  };
845
849
  const a0 = norm(inputEvents);
@@ -885,6 +889,19 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
885
889
  continue;
886
890
  }
887
891
  }
892
+ // RETIMES (E95): a conform that lost its retime is a wrong timeline that
893
+ // record/source geometry alone cannot catch (the record extent is
894
+ // unchanged; only the playback rate is). Resolve's EXPORT_OTIO carries
895
+ // an authored Sm2TimeMap back as LinearTimeWarp (measured live: 50%
896
+ // in → time_scalar 0.5 out), so a speed/reverse mismatch is real drift.
897
+ if (Math.abs((x.speed ?? 100) - (y.speed ?? 100)) > 0.5 || x.reverse !== y.reverse) {
898
+ mismatches.push({
899
+ kind: 'retime', at: i, source: x.source,
900
+ input: { speed: x.speed, reverse: x.reverse },
901
+ exported: { speed: y.speed, reverse: y.reverse },
902
+ });
903
+ continue;
904
+ }
888
905
  // A fade-reshaped head trims record AND source together (source stays
889
906
  // record-aligned), so the per-source constant offset is fitted net of
890
907
  // the record shift — otherwise a source cut both plain and faded would
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Time is in TICKS (254,016,000,000 per second — factors by every standard frame/sample rate).
10
10
  * We derive from tick geometry alone: cuts, source in/out, timeline position, SPEED/retime
11
- * (srcDur/recDur), REVERSE (in>out), transitions (VideoTransitionTrackItem span), and markers.
11
+ * (srcDur/recDur), REVERSE (in>out), transitions (VideoTransitionTrackItem span, recStart-explicit; edge spans synthesize BL fade legs), and markers.
12
12
  *
13
13
  * HONEST limits (skip-not-fake): the schema is proprietary and version-drifting (Project Version
14
14
  * 25→42+); editorial timing/structure decodes with high fidelity, but per-clip EFFECTS / Lumetri
@@ -179,10 +179,29 @@ function walkSequence(seqEntry, byId) {
179
179
  transitions.push({ recIn: ticksToFrames(childText(cEntry.node, 'Start'), fps), duration: dur || 0 });
180
180
  }
181
181
  }
182
- // Attach each transition to the clip that begins at its record position (best-effort).
182
+ // Attach each transition to the INCOMING clip whose record-in falls
183
+ // inside its span — Premiere stores the explicit record span, so
184
+ // recStart carries it and the bridge reproduces the editor's actual
185
+ // alignment (the old exact-start match silently dropped every
186
+ // centered transition). A span with no outgoing clip is a fade-IN,
187
+ // one with no incoming a fade-OUT — both synthesize BL legs for the
188
+ // bridge's black machinery (E91-E96).
183
189
  for (const tr of transitions) {
184
- const hit = clipEvents.find((e) => e.recIn === tr.recIn);
185
- if (hit) hit.transition = { type: 'dissolve', duration: tr.duration };
190
+ const end = tr.recIn + tr.duration;
191
+ const trans = { type: 'dissolve', duration: tr.duration, recStart: tr.recIn };
192
+ const incoming = clipEvents.find((e) => e.recIn > tr.recIn - 1 && e.recIn <= end);
193
+ if (incoming) {
194
+ incoming.transition = trans;
195
+ const outgoing = clipEvents.find((e) => e !== incoming && e.recOut > tr.recIn - 1 && e.recOut <= end);
196
+ if (!outgoing) {
197
+ clipEvents.push({ index: idx++, track: trackKind, source: 'BL', srcIn: 0, srcOut: 0, recIn: incoming.recIn, recOut: incoming.recIn, speed: 100, reverse: false, transition: null, fps });
198
+ }
199
+ } else {
200
+ const outgoing = clipEvents.find((e) => e.recOut > tr.recIn - 1 && e.recOut <= end);
201
+ if (outgoing) {
202
+ clipEvents.push({ index: idx++, track: trackKind, source: 'BL', srcIn: 0, srcOut: 0, recIn: outgoing.recOut, recOut: outgoing.recOut, speed: 100, reverse: false, transition: trans, fps });
203
+ }
204
+ }
186
205
  }
187
206
  events.push(...clipEvents);
188
207
  }
@@ -86,7 +86,7 @@ const markerSchema = z.object({
86
86
  export const editorialTool = {
87
87
  name: 'editorial',
88
88
  description:
89
- 'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events; for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/replaced/new/gone + timing flags), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets + marker compare w/ markersNotInExport honesty flag; FADE-AWARE: BL/Solid-Color legs merge out as blackSegments and fade-window boundary reshapes are excused into fadeReshapedBoundaries instead of failing; the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
89
+ 'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events incl. span-explicit transitions and BL fade legs; for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/replaced/new/gone + timing flags), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets + marker compare w/ markersNotInExport honesty flag; FADE-AWARE: BL/Solid-Color legs merge out as blackSegments and fade-window boundary reshapes are excused into fadeReshapedBoundaries instead of failing; RETIME-AWARE: speed/reverse compare pairwise — EXPORT_OTIO carries an authored Sm2TimeMap back as LinearTimeWarp (measured), so a flattened/lost retime fails as drift geometry alone cannot catch; the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
90
90
  async handler({ action, args }) {
91
91
  if (action === 'parse_interchange') {
92
92
  const p = parseSchema.parse(args);
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
87
87
  handlers=[logging.StreamHandler()],
88
88
  )
89
89
 
90
- VERSION = "2.153.0"
90
+ VERSION = "2.155.0"
91
91
  logger = logging.getLogger("davinci-resolve-mcp")
92
92
  logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
93
93
  logger.info(f"Detected platform: {get_platform()}")
package/src/server.py CHANGED
@@ -11,7 +11,7 @@ Usage:
11
11
  python src/server.py --full # Start the 353-tool granular server instead
12
12
  """
13
13
 
14
- VERSION = "2.153.0"
14
+ VERSION = "2.155.0"
15
15
 
16
16
  import base64
17
17
  import os