davinci-resolve-mcp 4.7.10 → 4.7.11

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,26 @@
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.7.11 — `allow_partial_item_delete="false"` no longer lets a range delete take whole clips
6
+
7
+ ### Fixed
8
+
9
+ - **The flag that decides whether a range delete may take clips the range only
10
+ partially covers was read with bare truthiness.** ([#249](https://github.com/samuelgursky/davinci-resolve-mcp/pull/249), @Dev-next-gen)
11
+ `_timeline_lift_range_impl` collects every item the range touches and blocks the
12
+ partially covered ones unless the caller opted in — but `bool("false")` is `True`,
13
+ so a caller who sent `allow_partial_item_delete="false"` to protect exactly that
14
+ case had a clip spanning frames 0–48 deleted whole by `lift_range(0, 24)`, with a
15
+ `{"success": true, "deleted": 1}` response and no `blocked` list. `timeline
16
+ apply_cuts` read the same flag the same way and passed it to every cut. Both reads
17
+ now go through `coerce_bool`, the helper the `ripple`, `overwrite` and
18
+ `allow_non_mcp_name` fixes used; `apply_cuts` keeps its `True` default as the
19
+ helper's default argument, and `lift_range` still reads the `allowPartialItemDelete`
20
+ alias. Real booleans and the true spellings are unchanged. Guard test:
21
+ `tests/test_lift_range_allow_partial_string.py` — 5 of 7 fail on the previous code.
22
+ Left alone on purpose, as a design call: `apply_cuts` does not accept the camelCase
23
+ alias that `lift_range` does, and neither alias is documented.
24
+
5
25
  ## What's New in v4.7.10 — drop-frame sync events are reported at the timecode they happen
6
26
 
7
27
  ### 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-4.7.10-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.7.11-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(389%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.7.10-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.7.11-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(389%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.7.10 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.7.11 版 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.7.10"
40
+ VERSION = "4.7.11"
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.7.10",
3
+ "version": "4.7.11",
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.7.10"
96
+ VERSION = "4.7.11"
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.7.10"
14
+ VERSION = "4.7.11"
15
15
 
16
16
  import base64
17
17
  import os
@@ -5590,7 +5590,7 @@ def _timeline_lift_range_impl(tl, p: Dict[str, Any], *, resolve=None):
5590
5590
  start, end, items, err = _collect_timeline_items_in_range(tl, p)
5591
5591
  if err:
5592
5592
  return err
5593
- allow_partial = bool(p.get("allow_partial_item_delete", p.get("allowPartialItemDelete", False)))
5593
+ allow_partial = _coerce_bool(p.get("allow_partial_item_delete", p.get("allowPartialItemDelete")))
5594
5594
  delete_items = []
5595
5595
  blocked = []
5596
5596
  for _, _, item, overlap_start, overlap_end in items:
@@ -25856,7 +25856,7 @@ def timeline(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str,
25856
25856
  if blocked:
25857
25857
  return blocked
25858
25858
 
25859
- allow_partial = bool(p.get("allow_partial_item_delete", True))
25859
+ allow_partial = _coerce_bool(p.get("allow_partial_item_delete"), True)
25860
25860
  results = []
25861
25861
  resolve_obj = get_resolve()
25862
25862
  # Hold the Edit page once for the whole run. The per-delete guard nests