@mthines/reaper-mcp 0.78.0 → 0.78.1
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/README.md +37 -37
- package/bridge-ui/mcp_bridge.html +4 -4
- package/main.js +12 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -4420,6 +4420,10 @@ var REAPER_ASSETS = [
|
|
|
4420
4420
|
"mcp_snapshot_prev.lua",
|
|
4421
4421
|
"mcp_snapshot_quick_save.lua"
|
|
4422
4422
|
];
|
|
4423
|
+
function setupFilesPlan(reapackInstalled, inClone) {
|
|
4424
|
+
if (!reapackInstalled) return "install";
|
|
4425
|
+
return inClone ? "install-with-warning" : "leave";
|
|
4426
|
+
}
|
|
4423
4427
|
var RETIRED_ASSETS = ["mcp_snapshot_manager.lua"];
|
|
4424
4428
|
var BRIDGE_UI_FILE = "mcp_bridge.html";
|
|
4425
4429
|
var DEFAULT_WEB_PORT = 8099;
|
|
@@ -9253,8 +9257,8 @@ async function setup() {
|
|
|
9253
9257
|
const scriptsDir = getReaperScriptsPath();
|
|
9254
9258
|
mkdirSync6(scriptsDir, { recursive: true });
|
|
9255
9259
|
const reaperDir = resolveAssetDir(__dirname2, "reaper");
|
|
9256
|
-
const
|
|
9257
|
-
if (
|
|
9260
|
+
const filesPlan = setupFilesPlan(existsSync7(join12(scriptsDir, "reaper-mcp", "MCP Bridge", "mcp_bridge.lua")), findCloneRoot(__dirname2) !== null);
|
|
9261
|
+
if (filesPlan === "leave") {
|
|
9258
9262
|
console.log("The bridge is installed by ReaPack: leaving its scripts, JSFX and status page to ReaPack.");
|
|
9259
9263
|
console.log("Setup only turns on starting with REAPER and the web interface.\n");
|
|
9260
9264
|
installBridgeAutostart(scriptsDir);
|
|
@@ -9264,6 +9268,12 @@ async function setup() {
|
|
|
9264
9268
|
if (port) console.log(`The bridge opens its status window on start: http://localhost:${port}/${BRIDGE_UI_FILE}`);
|
|
9265
9269
|
return;
|
|
9266
9270
|
}
|
|
9271
|
+
if (filesPlan === "install-with-warning") {
|
|
9272
|
+
console.log("WARNING: ReaPack has installed the bridge too, and REAPER prefers its copy (Scripts/reaper-mcp/MCP Bridge/ and");
|
|
9273
|
+
console.log("Effects/reaper-mcp/Meters/) over the files this checkout installs. Your local changes will not run until you");
|
|
9274
|
+
console.log("uninstall the reaper-mcp packages in ReaPack (Manage repositories > reaper-mcp > Uninstall packages),");
|
|
9275
|
+
console.log("then run setup again: this run also overwrote the status page ReaPack installed, which uninstalling removes.\n");
|
|
9276
|
+
}
|
|
9267
9277
|
console.log("Installing Lua scripts...");
|
|
9268
9278
|
for (const asset of REAPER_ASSETS) {
|
|
9269
9279
|
if (!asset.endsWith(".lua")) continue;
|
package/package.json
CHANGED