davinci-resolve-mcp 5.2.1 → 5.2.2

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,18 @@
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 v5.2.2 — Long words in captions are no longer cut off
6
+
7
+ From #360 by @goranai.
8
+
9
+ ### Fixed
10
+
11
+ - **`edit_engine` `generate_captions` dropped the end of any word too long for one caption line.** A URL was the usual case: everything after the first `max_chars_per_line` characters was missing from the SRT and WebVTT text. The word is now cut into line-length pieces and wrapped like other text, so nothing is dropped and every line stays within the character limit. The same fix covers one transcript word with an inner no-break space that did not fit `max_lines`.
12
+
13
+ ### Changed
14
+
15
+ - A caption block that contains such a word can now have more lines than `max_lines` (an 85-character word gives three lines). The block keeps its original timing; captions never invent timings inside a word. Blocks without an over-long word are unchanged.
16
+
5
17
  ## What's New in v5.2.1 — Resolve 21.0.4 calls live-tested
6
18
 
7
19
  From #359 by @Ghoul0718. The twelve Resolve 21.0.4 scripting additions were guarded and unit-tested but had never been run live here, for want of a 21.0.4 build. This release records a live run on free 21.0.4.5 through the in-app bridge. No server behaviour changes.
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-5.2.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-5.2.2-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-5.2.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-5.2.2-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
- > 本翻译对应 v5.2.1 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v5.2.2 版 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 = "5.2.1"
40
+ VERSION = "5.2.2"
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": "5.2.1",
3
+ "version": "5.2.2",
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 = "5.2.1"
96
+ VERSION = "5.2.2"
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 = "5.2.1"
14
+ VERSION = "5.2.2"
15
15
 
16
16
  import base64
17
17
  import os
@@ -146,7 +146,15 @@ def build_blocks(
146
146
  text = " ".join(_clean(w) for w in current)
147
147
  lines = _wrap(text, max_chars_per_line, max_lines)
148
148
  if lines is None:
149
- lines = [text[:max_chars_per_line]]
149
+ # One word that will not fit: longer than the line cap (a URL,
150
+ # say) or more lines than max_lines. Split it into line-cap pieces
151
+ # rather than cutting it off.
152
+ pieces = [
153
+ token[i:i + max_chars_per_line]
154
+ for token in text.split()
155
+ for i in range(0, len(token), max_chars_per_line)
156
+ ]
157
+ lines = _wrap(" ".join(pieces), max_chars_per_line, len(pieces))
150
158
  blocks.append({
151
159
  "start_seconds": _word_time(current[0], "start_seconds", "start"),
152
160
  "end_seconds": (