@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,92 +1,92 @@
1
- /**************************************************************************************************
2
- * ADOBE SYSTEMS INCORPORATED
3
- * Copyright 2013 Adobe Systems Incorporated
4
- * All Rights Reserved.
5
- *
6
- * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
7
- * terms of the Adobe license agreement accompanying it. If you have received this file from a
8
- * source other than Adobe, then your use, modification, or distribution of it requires the prior
9
- * written permission of Adobe.
10
- *
11
- * CSInterface.js - v12.0.0 (minimal shim for MCP Bridge)
12
- * Download the full version from: https://github.com/nicscott9/CSInterface
13
- **************************************************************************************************/
14
-
15
- /**
16
- * CSInterface class for Adobe CEP extensions.
17
- * This is a minimal implementation. For production use, download the full
18
- * CSInterface.js from Adobe's GitHub repository.
19
- */
20
- function CSInterface() {}
21
-
22
- /**
23
- * Evaluates an ExtendScript in the host application.
24
- * @param {string} script - The ExtendScript to evaluate.
25
- * @param {function} callback - Callback with the result string.
26
- */
27
- CSInterface.prototype.evalScript = function (script, callback) {
28
- if (typeof __adobe_cep__ !== "undefined") {
29
- // CEP 9+ requires the callback to be passed directly to __adobe_cep__.evalScript.
30
- // Calling it without a callback causes the result to be silently discarded,
31
- // making every command return null/undefined.
32
- __adobe_cep__.evalScript(script, callback || function () {});
33
- } else {
34
- // Running outside CEP (for testing)
35
- console.warn("[CSInterface] Not running in CEP environment");
36
- if (callback) callback("EvalScript Error: Not in CEP environment");
37
- }
38
- };
39
-
40
- /**
41
- * Get the host environment.
42
- */
43
- CSInterface.prototype.getHostEnvironment = function () {
44
- if (typeof __adobe_cep__ !== "undefined") {
45
- try {
46
- return JSON.parse(__adobe_cep__.getHostEnvironment());
47
- } catch (e) {
48
- return null;
49
- }
50
- }
51
- return null;
52
- };
53
-
54
- /**
55
- * Get the system path.
56
- * @param {string} pathType - The path type constant.
57
- */
58
- CSInterface.prototype.getSystemPath = function (pathType) {
59
- if (typeof __adobe_cep__ !== "undefined") {
60
- return __adobe_cep__.getSystemPath(pathType);
61
- }
62
- return "";
63
- };
64
-
65
- // System path constants
66
- CSInterface.prototype.EXTENSION_ID = "extensionId";
67
-
68
- /** SystemPath constants — main.js reads these as SystemPath.EXTENSION, but
69
- * this shim never declared the global. Older CEP hosts happened to inject
70
- * a SystemPath global on their own, so cs.getSystemPath(SystemPath.EXTENSION)
71
- * worked by accident; hosts that stop doing that throw "SystemPath is not
72
- * defined" and halt init() before premiere.jsx loads or license/update code
73
- * runs. Same bug class already hit and fixed in the sibling AE MCP panel
74
- * (cep-plugin/CSInterface.js, v2.4.2). Values match Adobe's canonical
75
- * CSInterface.js — must be strings, not indexes: the native
76
- * __adobe_cep__.getSystemPath() doesn't throw on an unrecognized pathType,
77
- * it silently returns the literal string "invalidParam", which then fails
78
- * downstream in a confusing way (e.g. fs.mkdirSync() trying to create a
79
- * folder actually named "invalidParam"). */
80
- var SystemPath = {
81
- USER_DATA: "userData",
82
- COMMON_FILES: "commonFiles",
83
- MY_DOCUMENTS: "myDocuments",
84
- APPLICATION: "application",
85
- EXTENSION: "extension",
86
- EXTENSION_DATA: "extensionData",
87
- HOST_APPLICATION: "hostApplication"
88
- };
89
-
90
- // Note: This is a minimal shim. For the full CSInterface.js, download from:
91
- // https://github.com/nicscott9/CSInterface
92
- // and replace this file with the appropriate version for your CEP target.
1
+ /**************************************************************************************************
2
+ * ADOBE SYSTEMS INCORPORATED
3
+ * Copyright 2013 Adobe Systems Incorporated
4
+ * All Rights Reserved.
5
+ *
6
+ * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
7
+ * terms of the Adobe license agreement accompanying it. If you have received this file from a
8
+ * source other than Adobe, then your use, modification, or distribution of it requires the prior
9
+ * written permission of Adobe.
10
+ *
11
+ * CSInterface.js - v12.0.0 (minimal shim for MCP Bridge)
12
+ * Download the full version from: https://github.com/nicscott9/CSInterface
13
+ **************************************************************************************************/
14
+
15
+ /**
16
+ * CSInterface class for Adobe CEP extensions.
17
+ * This is a minimal implementation. For production use, download the full
18
+ * CSInterface.js from Adobe's GitHub repository.
19
+ */
20
+ function CSInterface() {}
21
+
22
+ /**
23
+ * Evaluates an ExtendScript in the host application.
24
+ * @param {string} script - The ExtendScript to evaluate.
25
+ * @param {function} callback - Callback with the result string.
26
+ */
27
+ CSInterface.prototype.evalScript = function (script, callback) {
28
+ if (typeof __adobe_cep__ !== "undefined") {
29
+ // CEP 9+ requires the callback to be passed directly to __adobe_cep__.evalScript.
30
+ // Calling it without a callback causes the result to be silently discarded,
31
+ // making every command return null/undefined.
32
+ __adobe_cep__.evalScript(script, callback || function () {});
33
+ } else {
34
+ // Running outside CEP (for testing)
35
+ console.warn("[CSInterface] Not running in CEP environment");
36
+ if (callback) callback("EvalScript Error: Not in CEP environment");
37
+ }
38
+ };
39
+
40
+ /**
41
+ * Get the host environment.
42
+ */
43
+ CSInterface.prototype.getHostEnvironment = function () {
44
+ if (typeof __adobe_cep__ !== "undefined") {
45
+ try {
46
+ return JSON.parse(__adobe_cep__.getHostEnvironment());
47
+ } catch (e) {
48
+ return null;
49
+ }
50
+ }
51
+ return null;
52
+ };
53
+
54
+ /**
55
+ * Get the system path.
56
+ * @param {string} pathType - The path type constant.
57
+ */
58
+ CSInterface.prototype.getSystemPath = function (pathType) {
59
+ if (typeof __adobe_cep__ !== "undefined") {
60
+ return __adobe_cep__.getSystemPath(pathType);
61
+ }
62
+ return "";
63
+ };
64
+
65
+ // System path constants
66
+ CSInterface.prototype.EXTENSION_ID = "extensionId";
67
+
68
+ /** SystemPath constants — main.js reads these as SystemPath.EXTENSION, but
69
+ * this shim never declared the global. Older CEP hosts happened to inject
70
+ * a SystemPath global on their own, so cs.getSystemPath(SystemPath.EXTENSION)
71
+ * worked by accident; hosts that stop doing that throw "SystemPath is not
72
+ * defined" and halt init() before premiere.jsx loads or license/update code
73
+ * runs. Same bug class already hit and fixed in the sibling AE MCP panel
74
+ * (cep-plugin/CSInterface.js, v2.4.2). Values match Adobe's canonical
75
+ * CSInterface.js — must be strings, not indexes: the native
76
+ * __adobe_cep__.getSystemPath() doesn't throw on an unrecognized pathType,
77
+ * it silently returns the literal string "invalidParam", which then fails
78
+ * downstream in a confusing way (e.g. fs.mkdirSync() trying to create a
79
+ * folder actually named "invalidParam"). */
80
+ var SystemPath = {
81
+ USER_DATA: "userData",
82
+ COMMON_FILES: "commonFiles",
83
+ MY_DOCUMENTS: "myDocuments",
84
+ APPLICATION: "application",
85
+ EXTENSION: "extension",
86
+ EXTENSION_DATA: "extensionData",
87
+ HOST_APPLICATION: "hostApplication"
88
+ };
89
+
90
+ // Note: This is a minimal shim. For the full CSInterface.js, download from:
91
+ // https://github.com/nicscott9/CSInterface
92
+ // and replace this file with the appropriate version for your CEP target.
@@ -1,7 +1,7 @@
1
- // Host-side ExtendScript (runs in Premiere Pro's ExtendScript engine)
2
- // This file can contain ExtendScript helper functions that are always available.
3
- // The main execution happens dynamically via CSInterface.evalScript() from main.js.
4
-
5
- function mcpBridgePing() {
6
- return "pong";
7
- }
1
+ // Host-side ExtendScript (runs in Premiere Pro's ExtendScript engine)
2
+ // This file can contain ExtendScript helper functions that are always available.
3
+ // The main execution happens dynamically via CSInterface.evalScript() from main.js.
4
+
5
+ function mcpBridgePing() {
6
+ return "pong";
7
+ }