davinci-resolve-mcp 4.19.2 → 4.19.3

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,17 @@
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 v4.19.3 — Timeline pin verifies the switch; audio-only media analyzes cleanly
6
+
7
+ ### Fixed
8
+
9
+ - **A pinned timeline write can no longer land on the caller's timeline (#344).** The pin trusted the boolean `SetCurrentTimeline` returned, which can answer True and stay put. It now reads the current timeline back and returns `TIMELINE_PIN_FAILED` if the switch did not happen, restoring the caller's timeline first.
10
+ - **`media_analysis analyze_file` on audio-only media (#345).** A file with audio and no video stream no longer fails the clip because the vision layer produced no frames. Vision is reported as `not_applicable`, so the clip registers and `build_embeddings(kinds=['audio'])` has a clip to target.
11
+
12
+ ### Not changed
13
+
14
+ - Covered by mocked unit tests only: not run against a live Resolve or a real audio file. `probe_audio_backend()` still has no tool action.
15
+
5
16
  ## What's New in v4.19.2 — Media analysis says whether CLAP audio embedding actually works
6
17
 
7
18
  ### 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-4.19.2-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.19.3-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-37%20(390%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-4.19.2-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.19.3-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-37%20(390%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
- > 本翻译对应 v4.19.2 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.19.3 版 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 = "4.19.2"
40
+ VERSION = "4.19.3"
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": "4.19.2",
3
+ "version": "4.19.3",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
93
93
  handlers=[logging.StreamHandler()],
94
94
  )
95
95
 
96
- VERSION = "4.19.2"
96
+ VERSION = "4.19.3"
97
97
  logger = logging.getLogger("davinci-resolve-mcp")
98
98
  logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
99
99
  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 377-tool granular server instead
12
12
  """
13
13
 
14
- VERSION = "4.19.2"
14
+ VERSION = "4.19.3"
15
15
 
16
16
  import base64
17
17
  import os
@@ -1896,7 +1896,18 @@ class _CallScope:
1896
1896
  if current is not None and current.GetUniqueId() == target.GetUniqueId():
1897
1897
  self.pin = (proj, None, target)
1898
1898
  return None
1899
- if not proj.SetCurrentTimeline(target):
1899
+ switched = proj.SetCurrentTimeline(target)
1900
+ # Verified by readback: SetCurrentTimeline can answer True and stay
1901
+ # put, which would land a "pinned" write on the caller's timeline.
1902
+ after = proj.GetCurrentTimeline() if switched else None
1903
+ if not switched or after is None or after.GetUniqueId() != target.GetUniqueId():
1904
+ if switched and current is not None:
1905
+ # Restore state the call may have half-changed.
1906
+ try:
1907
+ if not proj.SetCurrentTimeline(current):
1908
+ logger.warning("Could not restore the current timeline after a failed pin")
1909
+ except Exception:
1910
+ logger.warning("Could not restore the current timeline after a failed pin")
1900
1911
  return _err(
1901
1912
  f"Could not make timeline {target.GetName()!r} current to act on it",
1902
1913
  code="TIMELINE_PIN_FAILED", category="resolve_api_failed",
@@ -2769,6 +2769,12 @@ def _ffprobe_summary(raw: Dict[str, Any]) -> Dict[str, Any]:
2769
2769
  }
2770
2770
 
2771
2771
 
2772
+ def _is_audio_only(technical: Dict[str, Any]) -> bool:
2773
+ """True when ffprobe found audio stream(s) and no video stream."""
2774
+ summary = (technical or {}).get("summary") or {}
2775
+ return not (summary.get("video") or []) and bool(summary.get("audio") or [])
2776
+
2777
+
2772
2778
  def _media_duration_seconds(record: Dict[str, Any], technical: Dict[str, Any]) -> Optional[float]:
2773
2779
  summary = technical.get("summary") or {}
2774
2780
  duration = ((summary.get("format") or {}).get("duration_seconds"))
@@ -5864,8 +5870,21 @@ async def execute_plan_async(
5864
5870
  transcript = _transcribe(source, artifacts, options, caps)
5865
5871
  vision = await _maybe_run_vision_analysis(record, motion, options, artifacts, caps, vision_runner)
5866
5872
  vision_pending = vision_is_pending_host_analysis(vision)
5873
+ if (
5874
+ vision_requested(options)
5875
+ and not visual_analysis_completed(vision)
5876
+ and _is_audio_only(technical)
5877
+ ):
5878
+ # No video stream means there is nothing to see: vision does not
5879
+ # apply, so its non-completion is not a clip failure.
5880
+ vision = {
5881
+ "success": True,
5882
+ "status": "not_applicable",
5883
+ "reason": "Audio-only media has no video stream.",
5884
+ }
5867
5885
  vision_failed = (
5868
5886
  vision_requested(options)
5887
+ and vision.get("status") != "not_applicable"
5869
5888
  and not vision_pending
5870
5889
  and not visual_analysis_completed(vision)
5871
5890
  )