davinci-resolve-mcp 2.196.0 → 2.197.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 +20 -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/server/author-interchange.mjs +22 -0
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
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 v2.197.0 — E145: a named generator is a black leg or a named hole
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **A named generator no longer refuses the whole reel.** Once E141 named
|
|
10
|
+
Premiere's synthetic items by their title, a Universal Counting Leader
|
|
11
|
+
arrived at the bridge as an event with no file and no source-map entry,
|
|
12
|
+
and `eventsToAssembleSpec` refused the entire 228-cut reel as an "unmapped
|
|
13
|
+
source reel". Now a black generator (Black Video, black, slug) authors as
|
|
14
|
+
the BL leg it is — a Solid Color that renders black — and any other named
|
|
15
|
+
generator with no Resolve equivalent is dropped with a reason in
|
|
16
|
+
`report.unresolvedGenerators` (name, track, record window), a hole the
|
|
17
|
+
ledger names, the way unresolved compounds already are. A source map that
|
|
18
|
+
maps the generator's name to a rendered file places it like media. An
|
|
19
|
+
unmapped real reel still refuses.
|
|
20
|
+
|
|
21
|
+
On the real turnover: reels 02, 03 and 04 now conform offline through the
|
|
22
|
+
bridge — 226 / 147 / 257 video cuts, every dissolve and retime authored,
|
|
23
|
+
two leaders per reel reported as holes, black authored as black.
|
|
24
|
+
|
|
5
25
|
## What's New in v2.196.0 — E144: Resolve's own retimes decode; a flat map is a freeze
|
|
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
|
-
[](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
|
-
> 本翻译对应 v2.
|
|
15
|
+
> 本翻译对应 v2.197.0 版 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 = "2.
|
|
40
|
+
VERSION = "2.197.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
|
@@ -296,6 +296,27 @@ export function eventsToAssembleSpec(events, opts = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
+
// NAMED GENERATORS (E145): a Premiere Universal Counting Leader / Black
|
|
300
|
+
// Video (E141 names them by their Media <Title>) or a DRT generator clip
|
|
301
|
+
// arrives as an event with generatorName and no file. Black authors as the
|
|
302
|
+
// BL leg it is (a Solid Color that renders black); anything else has no
|
|
303
|
+
// Resolve equivalent the bridge can place, so it is DROPPED with a reason
|
|
304
|
+
// in unresolvedGenerators — a hole the ledger names — instead of refusing
|
|
305
|
+
// the whole reel as an unmapped source (a real 228-cut reel refused over
|
|
306
|
+
// its counting leader).
|
|
307
|
+
const unresolvedGenerators = [];
|
|
308
|
+
const isBlackGenerator = (name) => /^(black|black video|black matte|slug)$/i.test(String(name || '').trim());
|
|
309
|
+
for (const list of [vids, auds]) {
|
|
310
|
+
for (let i = list.length - 1; i >= 0; i -= 1) {
|
|
311
|
+
const e = list[i];
|
|
312
|
+
if (sourceMap[e.source] || isBL(e.source)) continue;
|
|
313
|
+
const gen = e.generatorName || (isBlackGenerator(e.source) ? e.source : null);
|
|
314
|
+
if (!gen) continue;
|
|
315
|
+
if (isBlackGenerator(gen)) { list[i] = { ...e, source: 'BL', generatorName: gen }; continue; }
|
|
316
|
+
unresolvedGenerators.push({ name: gen, track: e.track, recIn: e.recIn, recOut: e.recOut, reason: 'a named generator with no media and no Resolve equivalent the bridge can author — map its name to a rendered file in sourceMap, or accept the hole' });
|
|
317
|
+
list.splice(i, 1);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
299
320
|
const unmapped = [...new Set([...vids, ...auds].map((e) => e.source).filter((srcName) => !isBL(srcName) && !sourceMap[srcName]))];
|
|
300
321
|
if (unmapped.length) {
|
|
301
322
|
throw new Error(
|
|
@@ -737,6 +758,7 @@ export function eventsToAssembleSpec(events, opts = {}) {
|
|
|
737
758
|
flattenedCompounds: [...new Set(events.filter((e) => e.fromCompound).map((e) => e.fromCompound))],
|
|
738
759
|
flattenedCompoundEvents: events.filter((e) => e.fromCompound).length,
|
|
739
760
|
unresolvedCompounds,
|
|
761
|
+
unresolvedGenerators,
|
|
740
762
|
authoredAudioEvents: audioPlacements.length,
|
|
741
763
|
audioRetimesSkipped,
|
|
742
764
|
audioLanesBeyondCeiling,
|
package/src/granular/common.py
CHANGED
|
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
|
|
|
87
87
|
handlers=[logging.StreamHandler()],
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
VERSION = "2.
|
|
90
|
+
VERSION = "2.197.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()}")
|