@synthetic-ai/premiere-mcp 2.1.0 → 2.3.0-dev.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +135 -123
  2. package/LICENSE +21 -21
  3. package/README.md +242 -242
  4. package/cep-plugin/.debug +8 -8
  5. package/cep-plugin/CSInterface.js +92 -92
  6. package/cep-plugin/host.jsx +7 -7
  7. package/cep-plugin/index.html +472 -472
  8. package/cep-plugin/main.js +6 -0
  9. package/cep-plugin/premiere.jsx +24947 -24947
  10. package/dist/bridge/script-builder.js +378 -378
  11. package/dist/index.js +103 -4
  12. package/dist/license.js +38 -0
  13. package/dist/server.js +60 -60
  14. package/dist/tools/advanced.js +357 -357
  15. package/dist/tools/audio-advanced.js +1049 -1049
  16. package/dist/tools/audio.js +42 -42
  17. package/dist/tools/captions.js +27 -27
  18. package/dist/tools/clipboard.js +214 -214
  19. package/dist/tools/color-advanced.js +253 -253
  20. package/dist/tools/discovery.js +291 -291
  21. package/dist/tools/effects.js +285 -285
  22. package/dist/tools/export-presets.js +206 -206
  23. package/dist/tools/export.js +255 -255
  24. package/dist/tools/health.js +10 -10
  25. package/dist/tools/inspection.js +885 -885
  26. package/dist/tools/keyframes.js +369 -369
  27. package/dist/tools/markers.js +89 -89
  28. package/dist/tools/media.js +178 -178
  29. package/dist/tools/metadata.js +94 -94
  30. package/dist/tools/multicam.js +50 -50
  31. package/dist/tools/playback.js +15 -15
  32. package/dist/tools/playhead.js +95 -95
  33. package/dist/tools/project-manager.js +21 -21
  34. package/dist/tools/project.js +149 -149
  35. package/dist/tools/scripting.js +319 -319
  36. package/dist/tools/selection.js +202 -202
  37. package/dist/tools/sequence-advanced.js +379 -379
  38. package/dist/tools/sequence-settings.js +564 -564
  39. package/dist/tools/sequence.js +167 -167
  40. package/dist/tools/source-monitor.js +68 -68
  41. package/dist/tools/text.js +58 -58
  42. package/dist/tools/timeline.js +312 -312
  43. package/dist/tools/track-management.js +446 -446
  44. package/dist/tools/track-targeting.js +635 -635
  45. package/dist/tools/tracks.js +87 -87
  46. package/dist/tools/transitions-motion.js +174 -174
  47. package/dist/tools/transitions.js +111 -111
  48. package/dist/tools/utility.js +606 -606
  49. package/dist/tools/workspace.js +29 -29
  50. package/package.json +66 -66
  51. package/scripts/build-chat-dmg.sh +210 -210
  52. package/scripts/build-chat-zip.sh +291 -291
  53. package/scripts/install-cep-windows.ps1 +99 -99
  54. package/scripts/install-cep.sh +66 -66
  55. package/scripts/install-chat-plugin.bat +67 -67
  56. package/scripts/install-chat-plugin.sh +85 -85
  57. package/scripts/install-windows.bat +95 -95
  58. package/scripts/package.mjs +254 -254
@@ -1,99 +1,99 @@
1
- # Install the MCP Bridge CEP plugin for Premiere Pro on Windows.
2
- # Run this script as the current user (does NOT require Administrator for user-space registry and %APPDATA%).
3
- # However, creating a symbolic link requires Developer Mode OR Administrator privileges.
4
- # Use the -Copy switch to copy the plugin folder instead of symlinking (no admin required).
5
- #
6
- # Usage:
7
- # .\install-cep-windows.ps1 # symlink (requires Developer Mode or Admin)
8
- # .\install-cep-windows.ps1 -Copy # copy files (no admin required)
9
-
10
- param(
11
- [switch]$Copy
12
- )
13
-
14
- $ErrorActionPreference = "Stop"
15
-
16
- $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
17
- $ProjectDir = Split-Path -Parent $ScriptDir
18
- $PluginSrc = Join-Path $ProjectDir "cep-plugin"
19
- $PluginName = "MCPBridgeCEP"
20
- $CepDir = Join-Path $env:APPDATA "Adobe\CEP\extensions"
21
- $PluginDest = Join-Path $CepDir $PluginName
22
-
23
- Write-Host ""
24
- Write-Host "=== MCP Bridge CEP Plugin Installer (Windows) ===" -ForegroundColor Cyan
25
- Write-Host ""
26
- Write-Host "Source: $PluginSrc"
27
- Write-Host "Destination: $PluginDest"
28
- Write-Host ""
29
-
30
- # ---- 1. Create CEP extensions directory if needed ----
31
- if (!(Test-Path $CepDir)) {
32
- Write-Host "Creating CEP extensions directory: $CepDir"
33
- New-Item -ItemType Directory -Path $CepDir -Force | Out-Null
34
- }
35
-
36
- # ---- 2. Remove existing installation ----
37
- if (Test-Path $PluginDest) {
38
- Write-Host "Removing existing installation at $PluginDest ..."
39
- Remove-Item -Recurse -Force $PluginDest
40
- }
41
-
42
- # ---- 3. Install the plugin ----
43
- if ($Copy) {
44
- Write-Host "Copying plugin files (no admin required)..."
45
- Copy-Item -Recurse -Path $PluginSrc -Destination $PluginDest
46
- Write-Host "Copied successfully." -ForegroundColor Green
47
- } else {
48
- Write-Host "Creating symbolic link (requires Developer Mode or Administrator)..."
49
- try {
50
- New-Item -ItemType SymbolicLink -Path $PluginDest -Target $PluginSrc | Out-Null
51
- Write-Host "Symlink created successfully." -ForegroundColor Green
52
- } catch {
53
- Write-Warning "Symlink failed: $_"
54
- Write-Warning "Falling back to copy. Re-run with -Copy flag to skip this step next time."
55
- Copy-Item -Recurse -Path $PluginSrc -Destination $PluginDest
56
- Write-Host "Copied successfully." -ForegroundColor Green
57
- }
58
- }
59
-
60
- # ---- 4. Set PlayerDebugMode in the registry (allows unsigned CEP extensions) ----
61
- Write-Host ""
62
- Write-Host "Setting PlayerDebugMode in registry for CSXS 9.0 - 12.0 ..."
63
-
64
- $versions = @("9.0", "10.0", "11.0", "12.0")
65
- foreach ($v in $versions) {
66
- $key = "HKCU:\Software\Adobe\CSXS.$v"
67
- if (!(Test-Path $key)) {
68
- New-Item -Path $key -Force | Out-Null
69
- }
70
- Set-ItemProperty -Path $key -Name "PlayerDebugMode" -Value "1" -Type String
71
- Write-Host " Set $key\PlayerDebugMode = 1" -ForegroundColor DarkGray
72
- }
73
-
74
- Write-Host "Registry keys set." -ForegroundColor Green
75
-
76
- # ---- 5. Print next steps ----
77
- Write-Host ""
78
- Write-Host "Installation complete!" -ForegroundColor Green
79
- Write-Host ""
80
- Write-Host "Next steps:"
81
- Write-Host " 1. Restart Premiere Pro (completely - not just reopen a project)"
82
- Write-Host " 2. Go to Window > Extensions > Synthetic Premiere MCP"
83
- Write-Host " 3. Set the Temp Directory field to match PREMIERE_TEMP_DIR in your MCP config"
84
- Write-Host " Default: $env:LOCALAPPDATA\Temp\premiere-mcp-bridge"
85
- Write-Host " 4. Click Start Bridge - you should see a green Running status"
86
- Write-Host " 5. Configure your MCP client (e.g., Claude Desktop) with:"
87
- Write-Host ""
88
- Write-Host ' {' -ForegroundColor Yellow
89
- Write-Host ' "mcpServers": {' -ForegroundColor Yellow
90
- Write-Host ' "premiere-pro": {' -ForegroundColor Yellow
91
- Write-Host " `"command`": `"node`"," -ForegroundColor Yellow
92
- Write-Host " `"args`": [`"$ProjectDir\dist\index.js`"]," -ForegroundColor Yellow
93
- Write-Host ' "env": {' -ForegroundColor Yellow
94
- Write-Host " `"PREMIERE_TEMP_DIR`": `"$env:LOCALAPPDATA\Temp\premiere-mcp-bridge`"" -ForegroundColor Yellow
95
- Write-Host ' }' -ForegroundColor Yellow
96
- Write-Host ' }' -ForegroundColor Yellow
97
- Write-Host ' }' -ForegroundColor Yellow
98
- Write-Host ' }' -ForegroundColor Yellow
99
- Write-Host ""
1
+ # Install the MCP Bridge CEP plugin for Premiere Pro on Windows.
2
+ # Run this script as the current user (does NOT require Administrator for user-space registry and %APPDATA%).
3
+ # However, creating a symbolic link requires Developer Mode OR Administrator privileges.
4
+ # Use the -Copy switch to copy the plugin folder instead of symlinking (no admin required).
5
+ #
6
+ # Usage:
7
+ # .\install-cep-windows.ps1 # symlink (requires Developer Mode or Admin)
8
+ # .\install-cep-windows.ps1 -Copy # copy files (no admin required)
9
+
10
+ param(
11
+ [switch]$Copy
12
+ )
13
+
14
+ $ErrorActionPreference = "Stop"
15
+
16
+ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
17
+ $ProjectDir = Split-Path -Parent $ScriptDir
18
+ $PluginSrc = Join-Path $ProjectDir "cep-plugin"
19
+ $PluginName = "MCPBridgeCEP"
20
+ $CepDir = Join-Path $env:APPDATA "Adobe\CEP\extensions"
21
+ $PluginDest = Join-Path $CepDir $PluginName
22
+
23
+ Write-Host ""
24
+ Write-Host "=== MCP Bridge CEP Plugin Installer (Windows) ===" -ForegroundColor Cyan
25
+ Write-Host ""
26
+ Write-Host "Source: $PluginSrc"
27
+ Write-Host "Destination: $PluginDest"
28
+ Write-Host ""
29
+
30
+ # ---- 1. Create CEP extensions directory if needed ----
31
+ if (!(Test-Path $CepDir)) {
32
+ Write-Host "Creating CEP extensions directory: $CepDir"
33
+ New-Item -ItemType Directory -Path $CepDir -Force | Out-Null
34
+ }
35
+
36
+ # ---- 2. Remove existing installation ----
37
+ if (Test-Path $PluginDest) {
38
+ Write-Host "Removing existing installation at $PluginDest ..."
39
+ Remove-Item -Recurse -Force $PluginDest
40
+ }
41
+
42
+ # ---- 3. Install the plugin ----
43
+ if ($Copy) {
44
+ Write-Host "Copying plugin files (no admin required)..."
45
+ Copy-Item -Recurse -Path $PluginSrc -Destination $PluginDest
46
+ Write-Host "Copied successfully." -ForegroundColor Green
47
+ } else {
48
+ Write-Host "Creating symbolic link (requires Developer Mode or Administrator)..."
49
+ try {
50
+ New-Item -ItemType SymbolicLink -Path $PluginDest -Target $PluginSrc | Out-Null
51
+ Write-Host "Symlink created successfully." -ForegroundColor Green
52
+ } catch {
53
+ Write-Warning "Symlink failed: $_"
54
+ Write-Warning "Falling back to copy. Re-run with -Copy flag to skip this step next time."
55
+ Copy-Item -Recurse -Path $PluginSrc -Destination $PluginDest
56
+ Write-Host "Copied successfully." -ForegroundColor Green
57
+ }
58
+ }
59
+
60
+ # ---- 4. Set PlayerDebugMode in the registry (allows unsigned CEP extensions) ----
61
+ Write-Host ""
62
+ Write-Host "Setting PlayerDebugMode in registry for CSXS 9.0 - 12.0 ..."
63
+
64
+ $versions = @("9.0", "10.0", "11.0", "12.0")
65
+ foreach ($v in $versions) {
66
+ $key = "HKCU:\Software\Adobe\CSXS.$v"
67
+ if (!(Test-Path $key)) {
68
+ New-Item -Path $key -Force | Out-Null
69
+ }
70
+ Set-ItemProperty -Path $key -Name "PlayerDebugMode" -Value "1" -Type String
71
+ Write-Host " Set $key\PlayerDebugMode = 1" -ForegroundColor DarkGray
72
+ }
73
+
74
+ Write-Host "Registry keys set." -ForegroundColor Green
75
+
76
+ # ---- 5. Print next steps ----
77
+ Write-Host ""
78
+ Write-Host "Installation complete!" -ForegroundColor Green
79
+ Write-Host ""
80
+ Write-Host "Next steps:"
81
+ Write-Host " 1. Restart Premiere Pro (completely - not just reopen a project)"
82
+ Write-Host " 2. Go to Window > Extensions > Synthetic Premiere MCP"
83
+ Write-Host " 3. Set the Temp Directory field to match PREMIERE_TEMP_DIR in your MCP config"
84
+ Write-Host " Default: $env:LOCALAPPDATA\Temp\premiere-mcp-bridge"
85
+ Write-Host " 4. Click Start Bridge - you should see a green Running status"
86
+ Write-Host " 5. Configure your MCP client (e.g., Claude Desktop) with:"
87
+ Write-Host ""
88
+ Write-Host ' {' -ForegroundColor Yellow
89
+ Write-Host ' "mcpServers": {' -ForegroundColor Yellow
90
+ Write-Host ' "premiere-pro": {' -ForegroundColor Yellow
91
+ Write-Host " `"command`": `"node`"," -ForegroundColor Yellow
92
+ Write-Host " `"args`": [`"$ProjectDir\dist\index.js`"]," -ForegroundColor Yellow
93
+ Write-Host ' "env": {' -ForegroundColor Yellow
94
+ Write-Host " `"PREMIERE_TEMP_DIR`": `"$env:LOCALAPPDATA\Temp\premiere-mcp-bridge`"" -ForegroundColor Yellow
95
+ Write-Host ' }' -ForegroundColor Yellow
96
+ Write-Host ' }' -ForegroundColor Yellow
97
+ Write-Host ' }' -ForegroundColor Yellow
98
+ Write-Host ' }' -ForegroundColor Yellow
99
+ Write-Host ""
@@ -1,66 +1,66 @@
1
- #!/bin/bash
2
- # Install the MCP Bridge CEP plugin for Premiere Pro
3
- # This script creates a symlink from the CEP extensions directory to this project's cep-plugin folder.
4
-
5
- set -e
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
9
- PLUGIN_SRC="$PROJECT_DIR/cep-plugin"
10
- PLUGIN_NAME="MCPBridgeCEP"
11
-
12
- # Detect OS
13
- if [[ "$OSTYPE" == "darwin"* ]]; then
14
- CEP_DIR="$HOME/Library/Application Support/Adobe/CEP/extensions"
15
- elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
16
- CEP_DIR="$APPDATA/Adobe/CEP/extensions"
17
- else
18
- echo "Unsupported OS: $OSTYPE"
19
- exit 1
20
- fi
21
-
22
- echo "=== MCP Bridge CEP Plugin Installer ==="
23
- echo ""
24
- echo "Source: $PLUGIN_SRC"
25
- echo "Destination: $CEP_DIR/$PLUGIN_NAME"
26
- echo ""
27
-
28
- # Create CEP extensions directory if needed
29
- mkdir -p "$CEP_DIR"
30
-
31
- # Remove existing installation
32
- if [ -e "$CEP_DIR/$PLUGIN_NAME" ] || [ -L "$CEP_DIR/$PLUGIN_NAME" ]; then
33
- echo "Removing existing installation..."
34
- rm -rf "$CEP_DIR/$PLUGIN_NAME"
35
- fi
36
-
37
- # Create symlink (for development) or copy (for production)
38
- if [ "$1" == "--copy" ]; then
39
- echo "Copying plugin files..."
40
- cp -r "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
41
- else
42
- echo "Creating symlink (development mode)..."
43
- ln -s "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
44
- fi
45
-
46
- echo ""
47
-
48
- # Enable CEP debug mode (allows unsigned extensions)
49
- if [[ "$OSTYPE" == "darwin"* ]]; then
50
- echo "Enabling CEP debug mode..."
51
- for version in 8 9 10 11 12 13 14; do
52
- defaults write com.adobe.CSXS.$version PlayerDebugMode 1 2>/dev/null || true
53
- done
54
- echo "CEP debug mode enabled for CSXS 8-14"
55
- fi
56
-
57
- echo ""
58
- echo "✓ Installation complete!"
59
- echo ""
60
- echo "Next steps:"
61
- echo " 1. Restart Premiere Pro"
62
- echo " 2. Go to Window > Extensions > Synthetic Premiere MCP"
63
- echo " 3. Set the temp directory and click 'Start Bridge'"
64
- echo " 4. Configure your MCP client (e.g., Claude Desktop) to use:"
65
- echo " node $PROJECT_DIR/dist/index.js"
66
- echo ""
1
+ #!/bin/bash
2
+ # Install the MCP Bridge CEP plugin for Premiere Pro
3
+ # This script creates a symlink from the CEP extensions directory to this project's cep-plugin folder.
4
+
5
+ set -e
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
9
+ PLUGIN_SRC="$PROJECT_DIR/cep-plugin"
10
+ PLUGIN_NAME="MCPBridgeCEP"
11
+
12
+ # Detect OS
13
+ if [[ "$OSTYPE" == "darwin"* ]]; then
14
+ CEP_DIR="$HOME/Library/Application Support/Adobe/CEP/extensions"
15
+ elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
16
+ CEP_DIR="$APPDATA/Adobe/CEP/extensions"
17
+ else
18
+ echo "Unsupported OS: $OSTYPE"
19
+ exit 1
20
+ fi
21
+
22
+ echo "=== MCP Bridge CEP Plugin Installer ==="
23
+ echo ""
24
+ echo "Source: $PLUGIN_SRC"
25
+ echo "Destination: $CEP_DIR/$PLUGIN_NAME"
26
+ echo ""
27
+
28
+ # Create CEP extensions directory if needed
29
+ mkdir -p "$CEP_DIR"
30
+
31
+ # Remove existing installation
32
+ if [ -e "$CEP_DIR/$PLUGIN_NAME" ] || [ -L "$CEP_DIR/$PLUGIN_NAME" ]; then
33
+ echo "Removing existing installation..."
34
+ rm -rf "$CEP_DIR/$PLUGIN_NAME"
35
+ fi
36
+
37
+ # Create symlink (for development) or copy (for production)
38
+ if [ "$1" == "--copy" ]; then
39
+ echo "Copying plugin files..."
40
+ cp -r "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
41
+ else
42
+ echo "Creating symlink (development mode)..."
43
+ ln -s "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
44
+ fi
45
+
46
+ echo ""
47
+
48
+ # Enable CEP debug mode (allows unsigned extensions)
49
+ if [[ "$OSTYPE" == "darwin"* ]]; then
50
+ echo "Enabling CEP debug mode..."
51
+ for version in 8 9 10 11 12 13 14; do
52
+ defaults write com.adobe.CSXS.$version PlayerDebugMode 1 2>/dev/null || true
53
+ done
54
+ echo "CEP debug mode enabled for CSXS 8-14"
55
+ fi
56
+
57
+ echo ""
58
+ echo "✓ Installation complete!"
59
+ echo ""
60
+ echo "Next steps:"
61
+ echo " 1. Restart Premiere Pro"
62
+ echo " 2. Go to Window > Extensions > Synthetic Premiere MCP"
63
+ echo " 3. Set the temp directory and click 'Start Bridge'"
64
+ echo " 4. Configure your MCP client (e.g., Claude Desktop) to use:"
65
+ echo " node $PROJECT_DIR/dist/index.js"
66
+ echo ""
@@ -1,67 +1,67 @@
1
- @echo off
2
- REM Premiere Pro AI Chat — Windows Installer
3
- REM Copies the plugin to the Adobe CEP extensions folder
4
- REM and enables unsigned extensions via registry.
5
-
6
- setlocal enabledelayedexpansion
7
-
8
- echo ========================================
9
- echo Premiere Pro AI Chat — Plugin Installer
10
- echo ========================================
11
- echo.
12
-
13
- REM Resolve paths
14
- set "SCRIPT_DIR=%~dp0"
15
- set "PROJECT_ROOT=%SCRIPT_DIR%.."
16
- set "PLUGIN_SRC=%PROJECT_ROOT%\chat-plugin"
17
- set "PLUGIN_NAME=com.ppro.ai.chat"
18
- set "CEP_DIR=%APPDATA%\Adobe\CEP\extensions"
19
-
20
- echo Plugin source: %PLUGIN_SRC%
21
- echo CEP target: %CEP_DIR%\%PLUGIN_NAME%
22
- echo.
23
-
24
- REM Verify source exists
25
- if not exist "%PLUGIN_SRC%" (
26
- echo [ERROR] Plugin source not found at %PLUGIN_SRC%
27
- pause
28
- exit /b 1
29
- )
30
-
31
- REM Create CEP extensions directory if needed
32
- if not exist "%CEP_DIR%" (
33
- echo Creating CEP extensions directory...
34
- mkdir "%CEP_DIR%"
35
- )
36
-
37
- REM Remove existing installation
38
- if exist "%CEP_DIR%\%PLUGIN_NAME%" (
39
- echo Removing existing installation...
40
- rmdir /s /q "%CEP_DIR%\%PLUGIN_NAME%"
41
- )
42
-
43
- REM Copy plugin
44
- echo Installing plugin...
45
- xcopy /s /e /i /q "%PLUGIN_SRC%" "%CEP_DIR%\%PLUGIN_NAME%"
46
- echo [OK] Plugin installed
47
-
48
- REM Enable unsigned extensions (CSXS 9-12)
49
- echo.
50
- echo Enabling unsigned CEP extensions...
51
- for %%v in (9 10 11 12) do (
52
- reg add "HKCU\SOFTWARE\Adobe\CSXS.%%v" /v PlayerDebugMode /t REG_SZ /d 1 /f >nul 2>&1
53
- )
54
- echo [OK] Debug mode enabled (CSXS 9-12)
55
-
56
- echo.
57
- echo ========================================
58
- echo [OK] Installation complete!
59
- echo ========================================
60
- echo.
61
- echo Next steps:
62
- echo 1. Restart Premiere Pro (if running)
63
- echo 2. Open: Window ^> Extensions ^> AI Chat
64
- echo 3. Enter your Claude or Gemini API key
65
- echo 4. Start chatting to control Premiere Pro!
66
- echo.
67
- pause
1
+ @echo off
2
+ REM Premiere Pro AI Chat — Windows Installer
3
+ REM Copies the plugin to the Adobe CEP extensions folder
4
+ REM and enables unsigned extensions via registry.
5
+
6
+ setlocal enabledelayedexpansion
7
+
8
+ echo ========================================
9
+ echo Premiere Pro AI Chat — Plugin Installer
10
+ echo ========================================
11
+ echo.
12
+
13
+ REM Resolve paths
14
+ set "SCRIPT_DIR=%~dp0"
15
+ set "PROJECT_ROOT=%SCRIPT_DIR%.."
16
+ set "PLUGIN_SRC=%PROJECT_ROOT%\chat-plugin"
17
+ set "PLUGIN_NAME=com.ppro.ai.chat"
18
+ set "CEP_DIR=%APPDATA%\Adobe\CEP\extensions"
19
+
20
+ echo Plugin source: %PLUGIN_SRC%
21
+ echo CEP target: %CEP_DIR%\%PLUGIN_NAME%
22
+ echo.
23
+
24
+ REM Verify source exists
25
+ if not exist "%PLUGIN_SRC%" (
26
+ echo [ERROR] Plugin source not found at %PLUGIN_SRC%
27
+ pause
28
+ exit /b 1
29
+ )
30
+
31
+ REM Create CEP extensions directory if needed
32
+ if not exist "%CEP_DIR%" (
33
+ echo Creating CEP extensions directory...
34
+ mkdir "%CEP_DIR%"
35
+ )
36
+
37
+ REM Remove existing installation
38
+ if exist "%CEP_DIR%\%PLUGIN_NAME%" (
39
+ echo Removing existing installation...
40
+ rmdir /s /q "%CEP_DIR%\%PLUGIN_NAME%"
41
+ )
42
+
43
+ REM Copy plugin
44
+ echo Installing plugin...
45
+ xcopy /s /e /i /q "%PLUGIN_SRC%" "%CEP_DIR%\%PLUGIN_NAME%"
46
+ echo [OK] Plugin installed
47
+
48
+ REM Enable unsigned extensions (CSXS 9-12)
49
+ echo.
50
+ echo Enabling unsigned CEP extensions...
51
+ for %%v in (9 10 11 12) do (
52
+ reg add "HKCU\SOFTWARE\Adobe\CSXS.%%v" /v PlayerDebugMode /t REG_SZ /d 1 /f >nul 2>&1
53
+ )
54
+ echo [OK] Debug mode enabled (CSXS 9-12)
55
+
56
+ echo.
57
+ echo ========================================
58
+ echo [OK] Installation complete!
59
+ echo ========================================
60
+ echo.
61
+ echo Next steps:
62
+ echo 1. Restart Premiere Pro (if running)
63
+ echo 2. Open: Window ^> Extensions ^> AI Chat
64
+ echo 3. Enter your Claude or Gemini API key
65
+ echo 4. Start chatting to control Premiere Pro!
66
+ echo.
67
+ pause
@@ -1,85 +1,85 @@
1
- #!/usr/bin/env bash
2
- # Install the Premiere Pro AI Chat CEP plugin
3
- # Creates a symlink (or copies) from the chat-plugin/ directory
4
- # into the Adobe CEP extensions folder.
5
-
6
- set -e
7
-
8
- PLUGIN_NAME="com.ppro.ai.chat"
9
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
10
- PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
11
- PLUGIN_SRC="$PROJECT_ROOT/chat-plugin"
12
-
13
- echo "========================================"
14
- echo " Premiere Pro AI Chat — Plugin Installer"
15
- echo "========================================"
16
- echo ""
17
-
18
- # Detect OS
19
- if [[ "$OSTYPE" == "darwin"* ]]; then
20
- CEP_DIR="$HOME/Library/Application Support/Adobe/CEP/extensions"
21
- elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
22
- CEP_DIR="$HOME/.config/Adobe/CEP/extensions"
23
- else
24
- echo "⚠ Windows detected. Please manually copy:"
25
- echo " From: $PLUGIN_SRC"
26
- echo " To: %APPDATA%\\Adobe\\CEP\\extensions\\$PLUGIN_NAME"
27
- echo ""
28
- echo "Then set registry key to enable unsigned extensions:"
29
- echo ' HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.11'
30
- echo ' PlayerDebugMode = "1" (String)'
31
- exit 0
32
- fi
33
-
34
- echo "Plugin source: $PLUGIN_SRC"
35
- echo "CEP target: $CEP_DIR/$PLUGIN_NAME"
36
- echo ""
37
-
38
- # Verify source exists
39
- if [ ! -d "$PLUGIN_SRC" ]; then
40
- echo "✗ Error: Plugin source not found at $PLUGIN_SRC"
41
- exit 1
42
- fi
43
-
44
- # Create CEP extensions directory if needed
45
- if [ ! -d "$CEP_DIR" ]; then
46
- echo "Creating CEP extensions directory..."
47
- mkdir -p "$CEP_DIR"
48
- fi
49
-
50
- # Remove existing installation
51
- if [ -L "$CEP_DIR/$PLUGIN_NAME" ] || [ -d "$CEP_DIR/$PLUGIN_NAME" ]; then
52
- echo "Removing existing installation..."
53
- rm -rf "$CEP_DIR/$PLUGIN_NAME"
54
- fi
55
-
56
- # Create symlink
57
- echo "Creating symlink..."
58
- ln -s "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
59
- echo "✓ Symlink created"
60
-
61
- # Enable unsigned extensions (macOS)
62
- if [[ "$OSTYPE" == "darwin"* ]]; then
63
- echo ""
64
- echo "Enabling unsigned CEP extensions..."
65
- # Support CSXS versions 9-12 for various Premiere Pro versions
66
- for ver in 9 10 11 12; do
67
- defaults write com.adobe.CSXS.$ver PlayerDebugMode 1 2>/dev/null || true
68
- done
69
- echo "✓ Debug mode enabled (CSXS 9-12)"
70
- fi
71
-
72
- echo ""
73
- echo "========================================"
74
- echo " ✓ Installation complete!"
75
- echo "========================================"
76
- echo ""
77
- echo "Next steps:"
78
- echo " 1. Restart Premiere Pro (if running)"
79
- echo " 2. Open: Window → Extensions → AI Chat"
80
- echo " 3. Enter your Claude or Gemini API key"
81
- echo " 4. Start chatting to control Premiere Pro!"
82
- echo ""
83
- echo "Note: The AI Chat panel and MCP Bridge panel"
84
- echo "can run side by side if you have both installed."
85
- echo ""
1
+ #!/usr/bin/env bash
2
+ # Install the Premiere Pro AI Chat CEP plugin
3
+ # Creates a symlink (or copies) from the chat-plugin/ directory
4
+ # into the Adobe CEP extensions folder.
5
+
6
+ set -e
7
+
8
+ PLUGIN_NAME="com.ppro.ai.chat"
9
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
10
+ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
11
+ PLUGIN_SRC="$PROJECT_ROOT/chat-plugin"
12
+
13
+ echo "========================================"
14
+ echo " Premiere Pro AI Chat — Plugin Installer"
15
+ echo "========================================"
16
+ echo ""
17
+
18
+ # Detect OS
19
+ if [[ "$OSTYPE" == "darwin"* ]]; then
20
+ CEP_DIR="$HOME/Library/Application Support/Adobe/CEP/extensions"
21
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
22
+ CEP_DIR="$HOME/.config/Adobe/CEP/extensions"
23
+ else
24
+ echo "⚠ Windows detected. Please manually copy:"
25
+ echo " From: $PLUGIN_SRC"
26
+ echo " To: %APPDATA%\\Adobe\\CEP\\extensions\\$PLUGIN_NAME"
27
+ echo ""
28
+ echo "Then set registry key to enable unsigned extensions:"
29
+ echo ' HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.11'
30
+ echo ' PlayerDebugMode = "1" (String)'
31
+ exit 0
32
+ fi
33
+
34
+ echo "Plugin source: $PLUGIN_SRC"
35
+ echo "CEP target: $CEP_DIR/$PLUGIN_NAME"
36
+ echo ""
37
+
38
+ # Verify source exists
39
+ if [ ! -d "$PLUGIN_SRC" ]; then
40
+ echo "✗ Error: Plugin source not found at $PLUGIN_SRC"
41
+ exit 1
42
+ fi
43
+
44
+ # Create CEP extensions directory if needed
45
+ if [ ! -d "$CEP_DIR" ]; then
46
+ echo "Creating CEP extensions directory..."
47
+ mkdir -p "$CEP_DIR"
48
+ fi
49
+
50
+ # Remove existing installation
51
+ if [ -L "$CEP_DIR/$PLUGIN_NAME" ] || [ -d "$CEP_DIR/$PLUGIN_NAME" ]; then
52
+ echo "Removing existing installation..."
53
+ rm -rf "$CEP_DIR/$PLUGIN_NAME"
54
+ fi
55
+
56
+ # Create symlink
57
+ echo "Creating symlink..."
58
+ ln -s "$PLUGIN_SRC" "$CEP_DIR/$PLUGIN_NAME"
59
+ echo "✓ Symlink created"
60
+
61
+ # Enable unsigned extensions (macOS)
62
+ if [[ "$OSTYPE" == "darwin"* ]]; then
63
+ echo ""
64
+ echo "Enabling unsigned CEP extensions..."
65
+ # Support CSXS versions 9-12 for various Premiere Pro versions
66
+ for ver in 9 10 11 12; do
67
+ defaults write com.adobe.CSXS.$ver PlayerDebugMode 1 2>/dev/null || true
68
+ done
69
+ echo "✓ Debug mode enabled (CSXS 9-12)"
70
+ fi
71
+
72
+ echo ""
73
+ echo "========================================"
74
+ echo " ✓ Installation complete!"
75
+ echo "========================================"
76
+ echo ""
77
+ echo "Next steps:"
78
+ echo " 1. Restart Premiere Pro (if running)"
79
+ echo " 2. Open: Window → Extensions → AI Chat"
80
+ echo " 3. Enter your Claude or Gemini API key"
81
+ echo " 4. Start chatting to control Premiere Pro!"
82
+ echo ""
83
+ echo "Note: The AI Chat panel and MCP Bridge panel"
84
+ echo "can run side by side if you have both installed."
85
+ echo ""