davinci-resolve-mcp 2.188.0 → 2.190.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,54 @@
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.190.0 — E138: the changelist names its shape; pairing is closest-first globally
6
+
7
+ ### Added
8
+
9
+ - **`turnover_changelist` leads with a SHAPE verdict.** A real Premiere
10
+ auto-save of a locked reel kept 3 of its 335 cuts, byte-identical at their
11
+ record positions, and deleted the rest: a patch/selects reel of the same
12
+ cut. Per-event kinds read that as 332 `gone`. The result now names the
13
+ relationship first: `identical` | `subset` (new keeps some of old's cuts
14
+ unchanged in place and nothing else) | `superset` (the reverse) | `edit`,
15
+ with `retained`, `oldCuts`, `newCuts`, and for subset/superset `sparse`,
16
+ the `retainedWindows`, and a plain-language `note`. A transition that
17
+ vanished or appeared with the cuts it joins counts as a consequence, not an
18
+ edit. `gone`/`new` changes carry their record OUT so a dropped junction can
19
+ be attributed to them.
20
+
21
+ ### Fixed
22
+
23
+ - **Event pairing was first-come, not closest-first.** Walking new cuts in
24
+ order let the first new instance of a source consume an old instance 6,000
25
+ frames away while the old instance at its own position went unpaired, so
26
+ the same two reels compared as `subset` one way and `moved + 332 new` the
27
+ other. Every same-signature (old, new) pair now sorts by record distance
28
+ and is taken once; the diff is symmetric under swapping old and new. On
29
+ the real reels: `subset 3 of 335` forward, `superset 3 of 335` back.
30
+ Sweep across every sequence the two auto-saves share: 739 compared, 738
31
+ `identical`, 1 `subset`, 0 asymmetric in either shape or counts.
32
+
33
+ ## What's New in v2.189.0 — E136: Premiere markers belong to their sequence and read their real fields
34
+
35
+ ### Fixed
36
+
37
+ - **Every project marker landed on every sequence, at frame 0, unnamed.**
38
+ The marker walk returned every `Marker` object in the project for each
39
+ sequence and read fields the real shape does not carry: on a real Premiere
40
+ 2025 turnover that was 1,228 bogus markers per sequence. A sequence's
41
+ markers are its own — `Sequence.MarkerOwner.Markers` → a markers container
42
+ → `<Marker>` pairs → marker objects whose payload is a `DVAMarker` JSON
43
+ blob (`mStartTime.ticks`, `mName`, `mComment`, `mType`, `mEndTime`). They
44
+ now read from that blob (ticks to frames, duration from an end time),
45
+ sorted by frame; the legacy field shape still reads when a sequence owns
46
+ it; a sequence without a marker owner reports none. On the turnover: 188
47
+ markers across 66 sequences, where every sequence used to show 1,228.
48
+
49
+ ### Measured (filed in api-limitations)
50
+
51
+ - The Premiere 2025 marker ownership chain and the `DVAMarker` JSON payload.
52
+
5
53
  ## What's New in v2.188.0 — E135: Premiere tracks are lanes; nested blocks first-fit; an audio lane ceiling
6
54
 
7
55
  ### Fixed
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.188.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.190.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.188.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.190.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.188.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.190.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
@@ -322,7 +322,7 @@ equivalent, blocking full automation.
322
322
  - **Object:** `editorial.parse_interchange / list_sequences (prproj)`
323
323
  - **Signature:** `(path.prproj) -> sequences/events`
324
324
  - **Behavior:** Measured on a real 130 MB colour turnover (E132): objects are defined in TWO id spaces — numeric ObjectID referenced by ObjectRef, and uuid ObjectUID referenced by ObjectURef — and Sequence, ClipProjectItem, MasterClip, Media, VideoClipTrack and AudioClipTrack are all UID-defined. A Sequence lists its tracks through <TrackGroups><TrackGroup><Second ObjectRef> → VideoTrackGroup / AudioTrackGroup (a third DataTrackGroup is empty) → <TrackGroup><Tracks><Track ObjectURef> → Video/AudioClipTrack → <ClipTrack><ClipItems><TrackItems><TrackItem ObjectRef>. An item's record span sits under <ClipTrackItem><TrackItem> (Start/End ticks) and its source under ClipTrackItem.SubClip → SubClip.Clip → VideoClip.Clip (InPoint/OutPoint, Source) → VideoMediaSource.MediaSource.Media (ObjectURef) → Media (FilePath / ActualMediaFilePath); SubClip.Name and MasterClip.Name are the fallbacks. A ZERO is written as ABSENCE (the counting leader at record 0 has End and no Start). Names are direct <Name> children. Legacy/synthetic files instead use ObjectID/ObjectRef throughout, <VideoTracks>/<AudioTracks> track lists, Start/End/InPoint/OutPoint on the item and Node/Properties names.
325
- - **Workaround / current handling:** Index both id spaces and follow both reference attributes; walk TrackGroups when present; read timing through the *TrackItem child; treat a missing Start/InPoint beside a present End/OutPoint as 0. With that, the turnover lists all 739 sequences and its reel walks 335 events (it listed ZERO before). A NESTED SEQUENCE used as a clip has Clip.Source → VideoSequenceSource / AudioSequenceSource → SequenceSource.Sequence ObjectURef → the nested Sequence (E133: 3607 such items in the reels project); parse_interchange flattens them through the clip's InPoint window with fromCompound. TRANSITIONS sit in a SEPARATE track list, ClipTrack.TransitionItems.TrackItems (E134): a Video/AudioTransitionTrackItem carries TransitionTrackItem.TrackItem{Start,End} (the span), DisplayName / MatchName (the effect), Alignment (ticks) and HasIncomingClip / HasOutgoingClip — false marks a fade from/to black or silence.
325
+ - **Workaround / current handling:** Index both id spaces and follow both reference attributes; walk TrackGroups when present; read timing through the *TrackItem child; treat a missing Start/InPoint beside a present End/OutPoint as 0. With that, the turnover lists all 739 sequences and its reel walks 335 events (it listed ZERO before). A NESTED SEQUENCE used as a clip has Clip.Source → VideoSequenceSource / AudioSequenceSource → SequenceSource.Sequence ObjectURef → the nested Sequence (E133: 3607 such items in the reels project); parse_interchange flattens them through the clip's InPoint window with fromCompound. TRANSITIONS sit in a SEPARATE track list, ClipTrack.TransitionItems.TrackItems (E134): a Video/AudioTransitionTrackItem carries TransitionTrackItem.TrackItem{Start,End} (the span), DisplayName / MatchName (the effect), Alignment (ticks) and HasIncomingClip / HasOutgoingClip — false marks a fade from/to black or silence. MARKERS (E136): a sequence owns its markers through Sequence.MarkerOwner.Markers → a Markers container → <Markers><Marker><Second ObjectRef> → a Marker object whose payload is a DVAMarker JSON string ({mMarkerID, mStartTime.ticks, mType, mName?, mComment?, mEndTime?}); clips own theirs the same way via Clip.MarkerOwner. Marker objects exist project-wide (1228 on the turnover) — only the owner chain says whose they are.
326
326
  - **Tags:** prproj, premiere, interchange, silent-failure
327
327
 
328
328
  ### ProjectManager.CreateProject (discards an unsaved current project)
package/install.py CHANGED
@@ -37,7 +37,7 @@ from src.utils.update_check import (
37
37
 
38
38
  # ─── Version ──────────────────────────────────────────────────────────────────
39
39
 
40
- VERSION = "2.188.0"
40
+ VERSION = "2.190.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.188.0",
3
+ "version": "2.190.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -712,21 +712,39 @@ function pairEvents(oldEvents, newEvents, recTol = 1) {
712
712
  return { cuts, carriers, transitions: trs };
713
713
  };
714
714
  const o = cutsOf(oldEvents), n = cutsOf(newEvents);
715
- const pool = o.cuts.map((e) => ({ e, used: false }));
716
- const pairs = [], unmatchedNew = [];
717
- for (const ne of n.cuts) {
718
- const cands = pool.filter((p) => !p.used && sig(p.e) === sig(ne));
719
- if (!cands.length) { unmatchedNew.push(ne); continue; }
720
- cands.sort((a, b) => Math.abs((a.e.recIn ?? 0) - (ne.recIn ?? 0)) - Math.abs((b.e.recIn ?? 0) - (ne.recIn ?? 0)));
721
- cands[0].used = true;
722
- pairs.push({ oe: cands[0].e, ne });
715
+ // Pairing is closest-first GLOBALLY (E138), not first-come in new order:
716
+ // walking new cuts in order let the first new instance of a source consume
717
+ // an old instance 6,000 frames away while the old instance at its own
718
+ // position went unpaired a subset reel read back as moved + new. Every
719
+ // same-signature (old, new) pair sorts by record distance and is taken
720
+ // once; the result is symmetric under swapping old and new.
721
+ const pool = o.cuts.map((e) => ({ e, used: false, sig: sig(e) }));
722
+ const newSigs = n.cuts.map(sig);
723
+ const cands = [];
724
+ for (let ni = 0; ni < n.cuts.length; ni++) {
725
+ for (let oi = 0; oi < pool.length; oi++) {
726
+ if (pool[oi].sig !== newSigs[ni]) continue;
727
+ cands.push({ oi, ni, d: Math.abs((pool[oi].e.recIn ?? 0) - (n.cuts[ni].recIn ?? 0)) });
728
+ }
729
+ }
730
+ cands.sort((a, b) => a.d - b.d || a.ni - b.ni || a.oi - b.oi);
731
+ const usedNew = new Set();
732
+ const taken = [];
733
+ for (const c of cands) {
734
+ if (pool[c.oi].used || usedNew.has(c.ni)) continue;
735
+ pool[c.oi].used = true; usedNew.add(c.ni);
736
+ taken.push(c);
723
737
  }
738
+ taken.sort((a, b) => a.ni - b.ni);
739
+ const pairs = taken.map((c) => ({ oe: pool[c.oi].e, ne: n.cuts[c.ni] }));
740
+ const unmatchedNew = n.cuts.filter((_, i) => !usedNew.has(i));
724
741
  const unmatchedOld = pool.filter((p) => !p.used).map((p) => p.e);
725
742
  return { pairs, unmatchedOld, unmatchedNew, old: o, new: n, recTol };
726
743
  }
727
744
 
728
745
  /**
729
- * Diff two normalized event lists → per-event {kind: moved|retimed|trimmed|replaced|new|gone}
746
+ * Diff two normalized event lists → a SHAPE verdict (identical|subset|superset|edit, E138)
747
+ * plus per-event {kind: moved|retimed|trimmed|replaced|new|gone}
730
748
  * PLUS per-junction {kind: transition_added|transition_dropped|transition_changed}
731
749
  * (fade 'in'/'out' or null for a dissolve). Zero-length carrier lines and the
732
750
  * black legs that carry fades fold into the junction diff instead of reading
@@ -762,6 +780,7 @@ export function diffChangelist(oldEvents, newEvents, opts = {}) {
762
780
  }
763
781
  const P = pairEvents(oldEvents.filter((e) => !skipOld.has(e)), newEvents.filter((e) => !skipNew.has(e)), recTol);
764
782
 
783
+ const retained = [];
765
784
  for (const { oe, ne } of P.pairs) {
766
785
  const deltas = {};
767
786
  let kind = 'unchanged';
@@ -777,8 +796,9 @@ export function diffChangelist(oldEvents, newEvents, opts = {}) {
777
796
  deltas.src = { old: [oe.srcIn, oe.srcOut], new: [ne.srcIn, ne.srcOut] };
778
797
  }
779
798
  if (kind !== 'unchanged') changes.push({ kind, source: ne.source, track: ne.track, oldRecIn: oe.recIn, newRecIn: ne.recIn, deltas });
799
+ else retained.push(ne);
780
800
  }
781
- for (const ne of P.unmatchedNew) changes.push({ kind: 'new', source: ne.source, track: ne.track, newRecIn: ne.recIn });
801
+ for (const ne of P.unmatchedNew) changes.push({ kind: 'new', source: ne.source, track: ne.track, newRecIn: ne.recIn, newRecOut: ne.recOut });
782
802
  // Unconsumed old events → gone (unless a 'new' at the same rec position → replaced).
783
803
  for (const oe of P.unmatchedOld) {
784
804
  const replacement = changes.find((c) => c.kind === 'new' && c.track === oe.track && Math.abs((c.newRecIn ?? 0) - (oe.recIn ?? 0)) <= recTol);
@@ -787,7 +807,7 @@ export function diffChangelist(oldEvents, newEvents, opts = {}) {
787
807
  replacement.oldSource = oe.source;
788
808
  replacement.oldRecIn = oe.recIn;
789
809
  } else {
790
- changes.push({ kind: 'gone', source: oe.source, track: oe.track, oldRecIn: oe.recIn });
810
+ changes.push({ kind: 'gone', source: oe.source, track: oe.track, oldRecIn: oe.recIn, oldRecOut: oe.recOut });
791
811
  }
792
812
  }
793
813
 
@@ -825,10 +845,40 @@ export function diffChangelist(oldEvents, newEvents, opts = {}) {
825
845
  const counts = {};
826
846
  for (const c of changes) counts[c.kind] = (counts[c.kind] || 0) + 1;
827
847
  changes.sort((a, b) => (a.newRecIn ?? a.oldRecIn ?? 0) - (b.newRecIn ?? b.oldRecIn ?? 0));
848
+
849
+ // SHAPE (E138): a real Premiere auto-save of a locked reel kept 3 of its
850
+ // 335 cuts — byte-identical at their record positions — and deleted the
851
+ // rest (a patch/selects reel). Per-event kinds read that as 332 'gone';
852
+ // it is a sparse SUBSET of the same cut with nothing edited. The verdict
853
+ // names the relationship so a reader never mistakes a subset for a
854
+ // re-cut: identical | subset (new ⊂ old) | superset (old ⊂ new) | edit.
855
+ // A transition that vanished because both cuts it joined vanished (or
856
+ // appeared with the cuts it joins) is a consequence, not an edit.
857
+ const touches = (kind, junction, track) => changes.some((c) => c.kind === kind && c.track === track
858
+ && ((kind === 'gone' ? [c.oldRecIn, c.oldRecOut] : [c.newRecIn, c.newRecOut]).some((v) => Math.abs((v ?? -1e9) - junction) <= recTol)));
859
+ const consequential = (c) => (c.kind === 'transition_dropped' && touches('gone', c.oldRecIn, c.track))
860
+ || (c.kind === 'transition_added' && touches('new', c.newRecIn, c.track));
861
+ const edits = changes.filter((c) => c.kind !== 'gone' && c.kind !== 'new' && !consequential(c)).length;
862
+ const gone = counts.gone || 0, added = counts.new || 0;
863
+ const oldCuts = P.old.cuts.length + skipOld.size, newCuts = P.new.cuts.length + skipNew.size;
864
+ let shape = 'edit';
865
+ if (!changes.length) shape = 'identical';
866
+ else if (!edits && gone && !added && retained.length) shape = 'subset';
867
+ else if (!edits && added && !gone && retained.length) shape = 'superset';
868
+ const shapeInfo = { shape, retained: retained.length, oldCuts, newCuts };
869
+ if (shape === 'subset' || shape === 'superset') {
870
+ const of = shape === 'subset' ? oldCuts : newCuts;
871
+ shapeInfo.sparse = retained.length / Math.max(1, of) < 0.5;
872
+ shapeInfo.retainedWindows = retained.slice(0, 200).map((e) => ({ track: e.track, source: e.source, recIn: e.recIn, recOut: e.recOut }));
873
+ shapeInfo.note = shape === 'subset'
874
+ ? `new keeps ${retained.length} of ${oldCuts} cuts unchanged in place and nothing else — a patch/selects reel of the same cut, not ${gone} deletions`
875
+ : `old is ${retained.length} of the new cut's ${newCuts} cuts, unchanged in place — the rest is the new cut's additions, not ${added} edits to old`;
876
+ }
828
877
  return {
829
878
  changes, counts, changedCount: changes.length,
830
879
  transitions: { old: P.old.transitions.length, new: P.new.transitions.length },
831
880
  carriersFolded: { old: P.old.carriers.length, new: P.new.carriers.length },
881
+ ...shapeInfo,
832
882
  gate: 'review',
833
883
  };
834
884
  }
@@ -396,21 +396,54 @@ function expandNestedPlaceholders(events, byId, fps, depth) {
396
396
  return out;
397
397
  }
398
398
 
399
- /** Enumerate marker objects (project- or sequence-level) with tick→frame positions. */
400
- function collectMarkers(byId, fps) {
399
+ /**
400
+ * A sequence's OWN markers (E136). Real Premiere 2025: Sequence.MarkerOwner.
401
+ * Markers → a Markers container → <Markers><Marker><Second ObjectRef> → a
402
+ * Marker object whose payload is a DVAMarker JSON string ({mStartTime.ticks,
403
+ * mName, mComment, mType, mMarkerID}; a duration/end when present). The old
404
+ * walk returned EVERY Marker object in the project on EVERY sequence, with
405
+ * frame 0 and an empty name (1228 bogus markers per sequence on a real
406
+ * turnover). Legacy/synthetic Marker objects (Position/Name/Comment fields)
407
+ * are read the same way when a sequence owns them; without an owner chain a
408
+ * sequence reports none.
409
+ */
410
+ function markerFromObject(node, fps) {
411
+ const raw = childText(node, 'DVAMarker');
412
+ if (raw) {
413
+ try {
414
+ const m = JSON.parse(String(raw)).DVAMarker || {};
415
+ const startTicks = m.mStartTime && m.mStartTime.ticks != null ? Number(m.mStartTime.ticks) : null;
416
+ const endTicks = m.mEndTime && m.mEndTime.ticks != null ? Number(m.mEndTime.ticks) : null;
417
+ const frame = startTicks != null ? ticksToFrames(startTicks, fps) : null;
418
+ const duration = startTicks != null && endTicks != null ? Math.max(0, ticksToFrames(endTicks - startTicks, fps) || 0) : 0;
419
+ return { frame, duration, name: m.mName || '', note: m.mComment || '', type: m.mType || 'Comment', id: m.mMarkerID || null };
420
+ } catch {
421
+ return null;
422
+ }
423
+ }
424
+ return {
425
+ frame: ticksToFrames(childText(node, 'Position'), fps),
426
+ duration: ticksToFrames(childText(node, 'Duration'), fps) || 0,
427
+ name: childText(node, 'Name') || '',
428
+ note: childText(node, 'Comment') || '',
429
+ type: Number(childText(node, 'MarkerType')) || 0,
430
+ colorIndex: Number(childText(node, 'ColorIndex')) || 0,
431
+ };
432
+ }
433
+
434
+ function collectMarkers(seqEntry, byId, fps) {
435
+ const owner = asArray(seqEntry.node.MarkerOwner)[0];
436
+ const container = owner ? byId.get(ref(owner, 'Markers') || '') : null;
437
+ if (!container) return [];
438
+ const list = asArray(container.node.Markers && container.node.Markers.Marker);
401
439
  const markers = [];
402
- for (const { tag, node } of byId.values()) {
403
- if (tag !== 'Marker') continue;
404
- markers.push({
405
- frame: ticksToFrames(childText(node, 'Position'), fps),
406
- duration: ticksToFrames(childText(node, 'Duration'), fps) || 0,
407
- name: childText(node, 'Name') || '',
408
- note: childText(node, 'Comment') || '',
409
- type: Number(childText(node, 'MarkerType')) || 0,
410
- colorIndex: Number(childText(node, 'ColorIndex')) || 0,
411
- });
440
+ for (const pair of list) {
441
+ const mk = byId.get(refId(asArray(pair.Second)[0]) || '');
442
+ if (!mk || mk.tag !== 'Marker') continue;
443
+ const m = markerFromObject(mk.node, fps);
444
+ if (m && m.frame != null) markers.push(m);
412
445
  }
413
- return markers;
446
+ return markers.sort((a, b) => a.frame - b.frame);
414
447
  }
415
448
 
416
449
  function sequenceEntries(byId) {
@@ -435,7 +468,7 @@ export function parsePrprojDoc(pathOrBuffer) {
435
468
  fps,
436
469
  eventCount: events.length,
437
470
  events,
438
- markers: collectMarkers(byId, fps),
471
+ markers: collectMarkers(entry, byId, fps),
439
472
  };
440
473
  });
441
474
  const mediaPaths = [...new Set(collectMediaPaths(byId))].sort();
@@ -7,7 +7,7 @@
7
7
  * list_sequences — ONE picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}]
8
8
  * (AAF rows also carry startTimecode/startFrame — see aaf.mjs sequenceSummary)
9
9
  * convert_to_interchange— events (or a parsed source) → OTIO/EDL/DRT Resolve CAN import (the .prproj bridge)
10
- * turnover_changelist — diff old vs new events → moved/retimed/replaced/new/gone (+timing flags)
10
+ * turnover_changelist — diff old vs new events → shape verdict (identical|subset|superset|edit) + moved/retimed/replaced/new/gone (+timing flags)
11
11
  * conform_manifest — per-event assert: source resolved, handles, retime, reverse, TC-base
12
12
  * marker_roundtrip — marker/note round-trip with provenance tags
13
13
  */
@@ -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 — incl. Resolve-written OTIO generator clips (a Solid Color is a Clip with a NULL media_reference; it walks as a BL leg with generatorName, and an OTIO GeneratorReference carries its colour) and nested OTIO Stacks (compound clips — Resolve\'s writer nests them with a trim window) FLATTEN into record time with fromCompound on each cut, so Resolve\'s own OTIO exports re-conform (its FCP7 XML writer flattens a compound to ONE media-less clipitem instead — tagged `compound`, which the bridge drops with a reason in unresolvedCompounds unless the sourceMap maps the compound name to a flattened media file), Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering; a NESTED SEQUENCE used as a clip — a SourceClip referencing a named CompositionMob — flattens through its reference window with fromCompound, like OTIO Stacks) + PRPROJ via gunzip+XML (real Premiere 2025 files — uuid ObjectUID/ObjectURef graph, TrackGroups, ClipTrackItem→SubClip→VideoClip→MediaSource→Media chain, zeros written as absence — and the legacy ObjectID/VideoTracks shape both walk; measured on a 739-sequence turnover that used to list ZERO; a NESTED SEQUENCE used as a clip — Source = Video/AudioSequenceSource → Sequence — flattens through its in-point window with fromCompound, like OTIO Stacks and AAF nested compositions; 13,711 such events on one real reels project; real transitions live in the track\'s TransitionItems list — read alongside ClipItems, attached with their DisplayName as type, HasOutgoingClip/HasIncomingClip false = fade from/to black or silence; tracks number as lanes V/V2…/A/A2… and a flattened nested sequence\'s inner lanes first-fit above what the parent already stacks — laneShift records the shift) → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); 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 and nestedIn — an AAF composition another composition uses as a clip is NESTED in it; offer the parent, its cuts arrive flattened), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — 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/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track; a compound seen collapsed in one cut and flattened in the other reports compound_collapsed/compound_expanded once, never replaced+gone), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source; a compound clipitem fails source_resolved by NAME with the remedy — map it to a flattened file or turn over as OTIO), 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; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare) — pass exportedFormat: an OTIO/EDL re-export cannot carry colour (measured) and reports generatorColourNotInExport instead of failing; COMPOUND-AWARE: an XML re-export that collapsed a compound to one clipitem over cuts the input flattened from that compound reports compoundsCollapsedInExport instead of count/source drift; 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 — incl. Resolve-written OTIO generator clips (a Solid Color is a Clip with a NULL media_reference; it walks as a BL leg with generatorName, and an OTIO GeneratorReference carries its colour) and nested OTIO Stacks (compound clips — Resolve\'s writer nests them with a trim window) FLATTEN into record time with fromCompound on each cut, so Resolve\'s own OTIO exports re-conform (its FCP7 XML writer flattens a compound to ONE media-less clipitem instead — tagged `compound`, which the bridge drops with a reason in unresolvedCompounds unless the sourceMap maps the compound name to a flattened media file), Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering; a NESTED SEQUENCE used as a clip — a SourceClip referencing a named CompositionMob — flattens through its reference window with fromCompound, like OTIO Stacks) + PRPROJ via gunzip+XML (real Premiere 2025 files — uuid ObjectUID/ObjectURef graph, TrackGroups, ClipTrackItem→SubClip→VideoClip→MediaSource→Media chain, zeros written as absence — and the legacy ObjectID/VideoTracks shape both walk; measured on a 739-sequence turnover that used to list ZERO; a NESTED SEQUENCE used as a clip — Source = Video/AudioSequenceSource → Sequence — flattens through its in-point window with fromCompound, like OTIO Stacks and AAF nested compositions; 13,711 such events on one real reels project; real transitions live in the track\'s TransitionItems list — read alongside ClipItems, attached with their DisplayName as type, HasOutgoingClip/HasIncomingClip false = fade from/to black or silence; tracks number as lanes V/V2…/A/A2… and a flattened nested sequence\'s inner lanes first-fit above what the parent already stacks — laneShift records the shift; markers are the sequence\'s OWN, read from Premiere\'s DVAMarker JSON) → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); 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 and nestedIn — an AAF composition another composition uses as a clip is NESTED in it; offer the parent, its cuts arrive flattened), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — 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 → a SHAPE verdict first — identical | subset (new keeps some of old\'s cuts unchanged in place and nothing else: a patch/selects reel of the same cut, NOT N deletions; a real Premiere auto-save kept 3 of 335) | superset (the reverse) | edit — with retained/oldCuts/newCuts, `sparse` and the retainedWindows for subset/superset, a transition that vanished or appeared with the cuts it joins counting as a consequence not an edit; then moved/retimed/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track; a compound seen collapsed in one cut and flattened in the other reports compound_collapsed/compound_expanded once, never replaced+gone), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source; a compound clipitem fails source_resolved by NAME with the remedy — map it to a flattened file or turn over as OTIO), 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; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare) — pass exportedFormat: an OTIO/EDL re-export cannot carry colour (measured) and reports generatorColourNotInExport instead of failing; COMPOUND-AWARE: an XML re-export that collapsed a compound to one clipitem over cuts the input flattened from that compound reports compoundsCollapsedInExport instead of count/source drift; 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.188.0"
90
+ VERSION = "2.190.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.188.0"
14
+ VERSION = "2.190.0"
15
15
 
16
16
  import base64
17
17
  import os
@@ -2919,7 +2919,14 @@ API_TRUTH: List[Dict[str, Any]] = [
2919
2919
  "TransitionTrackItem.TrackItem{Start,End} (the span), "
2920
2920
  "DisplayName / MatchName (the effect), Alignment (ticks) "
2921
2921
  "and HasIncomingClip / HasOutgoingClip — false marks a "
2922
- "fade from/to black or silence.",
2922
+ "fade from/to black or silence. MARKERS (E136): a "
2923
+ "sequence owns its markers through Sequence.MarkerOwner."
2924
+ "Markers → a Markers container → <Markers><Marker><Second "
2925
+ "ObjectRef> → a Marker object whose payload is a DVAMarker "
2926
+ "JSON string ({mMarkerID, mStartTime.ticks, mType, mName?, "
2927
+ "mComment?, mEndTime?}); clips own theirs the same way via "
2928
+ "Clip.MarkerOwner. Marker objects exist project-wide (1228 "
2929
+ "on the turnover) — only the owner chain says whose they are.",
2923
2930
  "tags": ["prproj", "premiere", "interchange", "silent-failure"],
2924
2931
  "submit": "missing",
2925
2932
  "mitigation": ["editorial.parse_interchange prproj", "editorial.list_sequences"],