davinci-resolve-mcp 4.10.7 → 4.11.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 CHANGED
@@ -2,6 +2,34 @@
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.11.0 — `rename_plan` collides names a case-insensitive volume treats as one
6
+
7
+ ### Fixes
8
+
9
+ - **`media(action="rename_plan")` missed collisions that only differ in case
10
+ or Unicode form.** macOS (default APFS) and Windows volumes are
11
+ case-insensitive, and APFS also ignores Unicode normalization, so renaming
12
+ `take_A.mov` to `A.mov` overwrites an existing `a.mov`. The plan compared
13
+ names byte-for-byte and reported that rename as free (`collisions: 0`).
14
+ - Targets are now compared after NFC normalization and lowercasing, so
15
+ `A.mov` / `a.mov` and `café` spelled precomposed or with a combining
16
+ accent each count as one file.
17
+ - A case-only rename of a single file (`clip.MOV` → `clip.mov`) is still a
18
+ `rename`, not a collision.
19
+
20
+ ### New parameter
21
+
22
+ - `rename_plan` takes `caseSensitive` (default `false`). Pass `true` only for
23
+ a case-sensitive volume to restore exact comparison. The result reports the
24
+ mode used as `caseSensitive`.
25
+
26
+ ### Validation
27
+
28
+ - Offline planning only; nothing calls Resolve or touches files. New
29
+ `media-ops` test fails on the old code and passes now; `group-grade-read`
30
+ gains a case for a group name with `"`, `<` and `>`, as Studio 19.1.3.7
31
+ escapes them.
32
+
5
33
  ## What's New in v4.10.7 — `retargetDRT` moves the `<ProjectVersion>` import gate, not only the comment stamp
6
34
 
7
35
  ### Fixes
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.10.7-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.11.0-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.10.7-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.11.0-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.10.7 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.11.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 = "4.10.7"
40
+ VERSION = "4.11.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "4.10.7",
3
+ "version": "4.11.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -121,7 +121,9 @@ const CAMERA_ORIGINAL_RE = /^([A-Z]\d{3}[_ ]?[CR]\d{3,4}|[A-Z]\d{3}_\d{8}_C\d+|M
121
121
  /**
122
122
  * Dry-run rename plan (regex find/replace). REFUSES camera originals (sidecar/DB only).
123
123
  * @param {string[]} names basenames to rename
124
- * @param {{find:string, replace:string, allowCameraOriginals?:boolean, cameraOriginalRe?:RegExp}} rule
124
+ * @param {{find:string, replace:string, allowCameraOriginals?:boolean, cameraOriginalRe?:RegExp, caseSensitive?:boolean}} rule
125
+ * caseSensitive defaults to false: macOS (APFS) and Windows volumes treat names that
126
+ * differ only in case or Unicode normalization as one file, so those collide.
125
127
  */
126
128
  export function renamePlan(names, rule = {}) {
127
129
  let re;
@@ -133,27 +135,30 @@ export function renamePlan(names, rule = {}) {
133
135
  const camRe = rule.cameraOriginalRe || CAMERA_ORIGINAL_RE;
134
136
  const plan = [];
135
137
  const targets = new Map();
138
+ const caseSensitive = rule.caseSensitive === true;
139
+ const key = (n) => (caseSensitive ? n : n.normalize('NFC').toLowerCase());
136
140
  // A name the plan leaves in place still occupies it — a refused camera original
137
141
  // above all — so it counts as a target too, or a rename onto it reads as free.
138
142
  for (const name of names) {
139
143
  const isCam = camRe.test(name);
140
144
  if (isCam && !rule.allowCameraOriginals) {
141
145
  plan.push({ from: name, action: 'refuse-camera-original', note: 'camera original — rename via sidecar/DB only, never the file' });
142
- targets.set(name, (targets.get(name) || 0) + 1);
146
+ targets.set(key(name), (targets.get(key(name)) || 0) + 1);
143
147
  continue;
144
148
  }
145
149
  const to = name.replace(re, rule.replace ?? '');
146
- targets.set(to, (targets.get(to) || 0) + 1);
150
+ targets.set(key(to), (targets.get(key(to)) || 0) + 1);
147
151
  plan.push({ from: name, to, action: to === name ? 'noop' : 'rename' });
148
152
  }
149
153
  // Flag collisions (two sources → one target).
150
- for (const p of plan) if (p.action === 'rename' && targets.get(p.to) > 1) p.action = 'collision';
154
+ for (const p of plan) if (p.action === 'rename' && targets.get(key(p.to)) > 1) p.action = 'collision';
151
155
  const collisions = plan.filter((p) => p.action === 'collision');
152
156
  return {
153
157
  plan,
154
158
  renameCount: plan.filter((p) => p.action === 'rename').length,
155
159
  refused: plan.filter((p) => p.action === 'refuse-camera-original').length,
156
160
  collisions: collisions.length,
161
+ caseSensitive,
157
162
  dryRun: true,
158
163
  };
159
164
  }
@@ -47,6 +47,10 @@ const renameSchema = z.object({
47
47
  find: z.string(),
48
48
  replace: z.string().optional(),
49
49
  allowCameraOriginals: z.boolean().optional(),
50
+ caseSensitive: z
51
+ .boolean()
52
+ .optional()
53
+ .describe('Default false: names differing only in case/Unicode form collide, as on macOS and Windows volumes. Pass true only for a case-sensitive volume.'),
50
54
  });
51
55
 
52
56
  const reelSchema = z.object({ reels: z.array(z.string()), pad: z.number().optional() });
@@ -83,7 +87,7 @@ export const mediaTool = {
83
87
  }
84
88
  if (action === 'rename_plan') {
85
89
  const p = renameSchema.parse(args);
86
- return renamePlan(p.names, { find: p.find, replace: p.replace, allowCameraOriginals: p.allowCameraOriginals });
90
+ return renamePlan(p.names, { find: p.find, replace: p.replace, allowCameraOriginals: p.allowCameraOriginals, caseSensitive: p.caseSensitive });
87
91
  }
88
92
  if (action === 'reel_normalize') {
89
93
  const p = reelSchema.parse(args);
@@ -91,7 +91,7 @@ if not logging.getLogger().handlers:
91
91
  handlers=[logging.StreamHandler()],
92
92
  )
93
93
 
94
- VERSION = "4.10.7"
94
+ VERSION = "4.11.0"
95
95
  logger = logging.getLogger("davinci-resolve-mcp")
96
96
  logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
97
97
  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.10.7"
14
+ VERSION = "4.11.0"
15
15
 
16
16
  import base64
17
17
  import os