davinci-resolve-mcp 4.18.5 → 4.18.6
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 +13 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/vendor/drx-codec/cdl-exporter.js +4 -2
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.18.6 — `cdl_io` keeps corrections with an empty or missing id
|
|
6
|
+
|
|
7
|
+
`drx` action `cdl_io` dropped ASC CDL corrections whose `id` was empty or missing, with no warning. `parseCDL` only matched an opening tag written exactly as `<ColorCorrection id="...">` with a non-empty id and no other attribute. OpenColorIO's reference `cdl_test1.ccc` has five corrections, two of them there to check that an empty or missing id does not stop a look from loading. `cdl_io` imported three of the five, and a `.cc` holding only such a correction was refused as "not a CDL/CCC/CC document".
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`cdl_io` imports every correction in the file** (#342, thanks @Dev-next-gen). The opening tag may carry any attributes, and `id` is read from them. A correction with no id, or an empty one, is named `cc<index>`, the fallback `importCDL` already had but never reached. Self-closing `<ColorCorrection/>` elements are still skipped, and `<ColorCorrectionCollection>` is not mistaken for a correction.
|
|
12
|
+
|
|
13
|
+
### Validation
|
|
14
|
+
|
|
15
|
+
- The new test in `test/cdl-io.test.mjs` fails on 4.18.5 and passes with the fix. The 97 CDL-related Node tests pass on Node 20 with the PR merged into main.
|
|
16
|
+
- Parser-only change, no Resolve call is involved, so no live Resolve run applies. The open Resolve is Studio 19.1.3.7.
|
|
17
|
+
|
|
5
18
|
## What's New in v4.18.5 — The #336 ledger matches the re-measurement
|
|
6
19
|
|
|
7
20
|
@CaptRauti re-measured the six calls from v4.18.4. Three of them were the same broken timeline: `AppendToTimeline` took an absolute `recordFrame` below `StartFrame`, the clips landed outside the timeline, and `StartFrame` stayed equal to `EndFrame`.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#server-modes)
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#服务器模式)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://www.python.org/downloads/)
|
|
13
13
|
[](https://opensource.org/licenses/MIT)
|
|
14
14
|
|
|
15
|
-
> 本翻译对应 v4.18.
|
|
15
|
+
> 本翻译对应 v4.18.6 版 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.18.
|
|
40
|
+
VERSION = "4.18.6"
|
|
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
|
@@ -320,11 +320,13 @@ function parseCDL(cdlContent) {
|
|
|
320
320
|
const results = [];
|
|
321
321
|
|
|
322
322
|
// Simple XML parsing for CDL (avoid external dependencies)
|
|
323
|
-
|
|
323
|
+
// The id attribute may be empty or absent; such corrections are still looks.
|
|
324
|
+
const correctionRegex = /<ColorCorrection(\s[^>]*?)?(?<!\/)>([\s\S]*?)<\/ColorCorrection>/gi;
|
|
324
325
|
let match;
|
|
325
326
|
|
|
326
327
|
while ((match = correctionRegex.exec(cdlContent)) !== null) {
|
|
327
|
-
const
|
|
328
|
+
const idMatch = (match[1] || '').match(/(?:^|\s)id\s*=\s*"([^"]*)"/);
|
|
329
|
+
const id = idMatch ? idMatch[1] : '';
|
|
328
330
|
const content = match[2];
|
|
329
331
|
|
|
330
332
|
const cdlValues = {
|
package/src/granular/common.py
CHANGED
|
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
|
|
|
93
93
|
handlers=[logging.StreamHandler()],
|
|
94
94
|
)
|
|
95
95
|
|
|
96
|
-
VERSION = "4.18.
|
|
96
|
+
VERSION = "4.18.6"
|
|
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()}")
|