@causyne/agent 1.20.30 → 1.20.32

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 (41) hide show
  1. package/package.json +1 -1
  2. package/src/agentLoop.js +8 -0
  3. package/src/agentLoop.ts +7 -0
  4. package/src/appChannel.js +52 -74
  5. package/src/appChannel.ts +106 -0
  6. package/src/creative/apps.js +206 -11
  7. package/src/creative/apps.ts +198 -6
  8. package/src/creative/liveBridge.js +1481 -0
  9. package/src/creative/liveBridge.ts +1829 -0
  10. package/src/creative/pipeline.js +31 -3
  11. package/src/creative/pipeline.ts +36 -7
  12. package/src/decideTools.js +3 -1
  13. package/src/decideTools.ts +3 -1
  14. package/src/decisionPolicy.js +5 -2
  15. package/src/decisionPolicy.ts +7 -1
  16. package/src/mcp/mcpRegistry.js +3 -1
  17. package/src/mcp/mcpRegistry.ts +3 -1
  18. package/src/sandbox.js +5 -1
  19. package/src/smartToolsUse.js +2 -1
  20. package/src/smartToolsUse.ts +2 -1
  21. package/src/tool-scripts/resolve_automator.py +167 -34
  22. package/src/toolPacks.js +5 -3
  23. package/src/toolPacks.ts +5 -3
  24. package/src/tools/creativeApps.js +226 -7
  25. package/src/tools/creativeApps.ts +233 -7
  26. package/src/tools/memoryWrite.js +71 -89
  27. package/src/tools/memoryWrite.ts +108 -0
  28. package/src/tools/resolveAutomator.js +356 -89
  29. package/src/tools/resolveAutomator.ts +403 -0
  30. package/src/toolsList.js +1 -1
  31. package/src/toolsList.ts +1 -1
  32. package/src/tui/consoleGuard.js +85 -0
  33. package/src/tui/consoleGuard.ts +102 -0
  34. package/src/tui/messageActionPlacement.js +8 -3
  35. package/src/tui/messageActionPlacement.ts +8 -3
  36. package/src/tui/messageInteraction.js +184 -27
  37. package/src/tui/messageInteraction.ts +221 -45
  38. package/src/tui/mouseHover.js +4 -0
  39. package/src/tui/mouseHover.ts +5 -0
  40. package/src/tui/smartLinkClick.js +353 -0
  41. package/src/tui/smartLinkClick.ts +413 -0
@@ -2,30 +2,236 @@ import { runStudioEdit } from '../creative/studioScripts.js';
2
2
  import { creativeAppStatus } from '../creative/apps.js';
3
3
  import { runBlenderBatch } from '../creative/blenderBatch.js';
4
4
  import { runStudioPipeline } from '../creative/pipeline.js';
5
+ import { runAdobeLiveBridge, runGameEngineBridge, scaffoldCausyneUxpPlugin, verifyAllCreativeAndGameBridges } from '../creative/liveBridge.js';
5
6
  export const creativeApps = {
6
7
  schema: {
7
8
  name: 'creative_apps',
8
- description: 'Inspect installed creative applications, run bounded creative batches, or orchestrate multi-stage creative pipelines. Blender batch creates and edits 3D scenes (primitives, materials, lights, cameras, render) and saves a new .blend. studio_edit uses native scripting: Photo Studio (resize/rotate/layers/flatten -> PSD/PNG/JPG/WEBP), Video Studio (sequences/imports/timeline cuts/markers -> PRPROJ), Motion Studio (compositions/imports/text -> AEP). studio_pipeline executes sequential coordinated multi-host stages. Requires workspace scoping.',
9
+ description: 'Universal native machine-API bridge for Adobe Creative Suite ' +
10
+ '(Photoshop, Premiere Pro, After Effects, Illustrator, InDesign, Media Encoder), ' +
11
+ 'Cinema Studio (DaVinci Resolve), 3D Studio (Blender), and Game Engines ' +
12
+ '(Unreal Engine 5, Unity, Godot) with zero MCP token bloat. Supports: ' +
13
+ '(1) status: inspect installed hosts; ' +
14
+ '(2) live_bridge: interactive active-session Adobe & DaVinci Resolve operations ' +
15
+ '(inspect_active, export_canvas_preview bounded 64..1024px PNG + selection bounds, ' +
16
+ 'place_in_active_canvas with selection/mask fitting, insert_in_active_timeline at playhead); ' +
17
+ '(3) engine_bridge: direct Unreal Remote Control HTTP API (port 30010), ' +
18
+ 'Unreal Python asset/actor automation, Unity C# Editor batchmode/AssetDatabase import, ' +
19
+ 'and Godot headless bridge; ' +
20
+ '(4) scaffold_uxp: generate native Adobe UXP v5 companion plugin; ' +
21
+ '(5) verify_bridge: run full cross-platform (macOS/Windows/Linux) & DOM/Python ' +
22
+ 'simulator self-test without requiring host apps to be installed; ' +
23
+ '(6) blender_batch, studio_edit, and studio_pipeline.',
9
24
  parameters: {
10
25
  type: 'object',
11
26
  properties: {
12
- action: { type: 'string', enum: ['status', 'blender_batch', 'studio_edit', 'studio_pipeline'] },
13
- host: { type: 'string', enum: ['photoshop', 'premiere', 'after-effects', 'photo-studio', 'video-studio', 'motion-studio'] },
14
- input: { type: 'string', description: 'Existing .blend, image/document, or project file inside the workspace.' },
15
- output: { type: 'string', description: 'New .blend, PSD/PNG, PRPROJ, or AEP file inside the workspace; never overwrites.' },
27
+ action: {
28
+ type: 'string',
29
+ enum: [
30
+ 'status',
31
+ 'blender_batch',
32
+ 'studio_edit',
33
+ 'studio_pipeline',
34
+ 'live_bridge',
35
+ 'engine_bridge',
36
+ 'scaffold_uxp',
37
+ 'verify_bridge'
38
+ ]
39
+ },
40
+ host: {
41
+ type: 'string',
42
+ enum: [
43
+ 'photoshop',
44
+ 'premiere',
45
+ 'after-effects',
46
+ 'illustrator',
47
+ 'indesign',
48
+ 'media-encoder',
49
+ 'resolve',
50
+ 'davinci-resolve',
51
+ 'photo-studio',
52
+ 'video-studio',
53
+ 'motion-studio',
54
+ 'vector-studio',
55
+ 'layout-studio',
56
+ 'encoder-studio',
57
+ 'cinema-studio'
58
+ ]
59
+ },
60
+ liveOperation: {
61
+ type: 'string',
62
+ enum: [
63
+ 'inspect_active',
64
+ 'export_canvas_preview',
65
+ 'place_in_active_canvas',
66
+ 'insert_in_active_timeline'
67
+ ],
68
+ description: 'Interactive live operation for action="live_bridge" against the currently open Adobe document or sequence.'
69
+ },
70
+ fitMode: {
71
+ type: 'string',
72
+ enum: ['selection', 'bounds', 'document_height', 'original'],
73
+ description: 'How place_in_active_canvas fits the placed asset onto the active canvas.'
74
+ },
75
+ bounds: {
76
+ type: 'object',
77
+ description: 'Target placement rectangle { left, top, width, height } in pixels for fitMode="bounds".',
78
+ properties: {
79
+ left: { type: 'number' },
80
+ top: { type: 'number' },
81
+ width: { type: 'number' },
82
+ height: { type: 'number' }
83
+ }
84
+ },
85
+ maxDimension: {
86
+ type: 'integer',
87
+ description: 'Maximum pixel dimension (64..1024) for export_canvas_preview.'
88
+ },
89
+ layerOnly: {
90
+ type: 'boolean',
91
+ description: 'When true in export_canvas_preview, trims preview to the active layer bounds.'
92
+ },
93
+ applySelectionMask: {
94
+ type: 'boolean',
95
+ description: 'When true in place_in_active_canvas, applies the active selection as a non-destructive reveal layer mask.'
96
+ },
97
+ layerName: {
98
+ type: 'string',
99
+ description: 'Name for the placed layer in place_in_active_canvas.'
100
+ },
101
+ atPlayhead: {
102
+ type: 'boolean',
103
+ description: 'When true in insert_in_active_timeline, inserts clip at current playhead position.'
104
+ },
105
+ start: {
106
+ type: 'number',
107
+ description: 'Timeline start time in seconds.'
108
+ },
109
+ track: {
110
+ type: 'integer',
111
+ description: 'Zero-based video/audio track index for timeline insertion.'
112
+ },
113
+ audioTrack: {
114
+ type: 'boolean',
115
+ description: 'When true, inserts clip into audioTracks instead of videoTracks.'
116
+ },
117
+ stageOnly: {
118
+ type: 'boolean',
119
+ description: 'When true in live_bridge, writes the generated ExtendScript (.jsx) into the workspace without invoking osascript/COM.'
120
+ },
121
+ simulateHost: {
122
+ type: 'boolean',
123
+ description: 'When true, executes the generated ExtendScript/Python bridge against the built-in Adobe DOM / DaVinci Resolve simulator for verification without host installation.'
124
+ },
125
+ engine: {
126
+ type: 'string',
127
+ enum: ['unreal', 'unreal-engine', 'unity', 'unity-editor', 'godot'],
128
+ description: 'Target game engine for action="engine_bridge".'
129
+ },
130
+ engineOperation: {
131
+ type: 'string',
132
+ enum: ['remote_control', 'import_assets', 'spawn_actor'],
133
+ description: 'Operation for action="engine_bridge".'
134
+ },
135
+ projectPath: {
136
+ type: 'string',
137
+ description: 'Workspace path to the Unreal, Unity, or Godot project directory.'
138
+ },
139
+ assets: {
140
+ type: 'array',
141
+ items: { type: 'string' },
142
+ description: 'Workspace asset file paths (textures, FBX/GLB meshes, audio) to import into the game engine.'
143
+ },
144
+ destinationFolder: {
145
+ type: 'string',
146
+ description: 'Target content folder inside the engine (e.g. "/Game/CausyneAssets" or "Assets/CausyneAssets").'
147
+ },
148
+ objectPath: {
149
+ type: 'string',
150
+ description: 'Unreal UObject path for remote_control HTTP bridge.'
151
+ },
152
+ functionName: {
153
+ type: 'string',
154
+ description: 'Unreal UFunction name for remote_control HTTP call.'
155
+ },
156
+ propertyName: {
157
+ type: 'string',
158
+ description: 'Unreal UProperty name for remote_control property read/write.'
159
+ },
160
+ propertyValue: {
161
+ description: 'Value to write for Unreal remote_control property access.'
162
+ },
163
+ parameters: {
164
+ type: 'object',
165
+ description: 'Function parameters payload for Unreal remote_control call.'
166
+ },
167
+ remotePort: {
168
+ type: 'integer',
169
+ description: 'Local loopback port for Unreal Remote Control HTTP API (default 30010).'
170
+ },
171
+ actorName: {
172
+ type: 'string',
173
+ description: 'Label/name for spawned actor, prefab instance, or scene node.'
174
+ },
175
+ actorClass: {
176
+ type: 'string',
177
+ description: 'Unreal actor class (e.g. StaticMeshActor, PointLight, CineCameraActor).'
178
+ },
179
+ assetPath: {
180
+ type: 'string',
181
+ description: 'Engine content path to mesh/prefab for spawn_actor.'
182
+ },
183
+ location: {
184
+ type: 'array',
185
+ items: { type: 'number' },
186
+ minItems: 3,
187
+ maxItems: 3
188
+ },
189
+ rotation: {
190
+ type: 'array',
191
+ items: { type: 'number' },
192
+ minItems: 3,
193
+ maxItems: 3
194
+ },
195
+ scale: {
196
+ type: 'array',
197
+ items: { type: 'number' },
198
+ minItems: 3,
199
+ maxItems: 3
200
+ },
201
+ executeHeadless: {
202
+ type: 'boolean',
203
+ description: 'Whether to execute the local Unreal/Unity/Godot CLI binary immediately if installed (default true).'
204
+ },
205
+ outputDir: {
206
+ type: 'string',
207
+ description: 'Workspace output directory for action="scaffold_uxp".'
208
+ },
209
+ websocketPort: {
210
+ type: 'integer',
211
+ description: 'Local WebSocket port for the UXP companion bridge (default 8080).'
212
+ },
213
+ input: { type: 'string', description: 'Existing .blend, image/document, media asset, or project file inside the workspace.' },
214
+ output: { type: 'string', description: 'New .blend, PSD/PNG, PRPROJ, or AEP file inside the workspace.' },
16
215
  stages: {
17
216
  type: 'array',
18
- description: 'Stages for studio_pipeline: array of { id, type: "3d_batch"|"studio_batch", config }',
217
+ description: 'Stages for studio_pipeline: array of { id, type: "3d_batch"|"studio_batch"|"live_bridge"|"engine_bridge", config }',
19
218
  items: {
20
219
  type: 'object',
21
220
  properties: {
22
221
  id: { type: 'string', description: 'Stage identifier' },
23
- type: { type: 'string', enum: ['3d_batch', 'studio_batch'], description: 'Stage batch execution type' },
222
+ type: {
223
+ type: 'string',
224
+ enum: ['3d_batch', 'studio_batch', 'live_bridge', 'engine_bridge'],
225
+ description: 'Stage batch execution type'
226
+ },
24
227
  config: {
25
228
  type: 'object',
26
229
  description: 'Stage payload configuration',
27
230
  properties: {
28
231
  host: { type: 'string' },
232
+ engine: { type: 'string' },
233
+ liveOperation: { type: 'string' },
234
+ engineOperation: { type: 'string' },
29
235
  input: { type: 'string' },
30
236
  output: { type: 'string' },
31
237
  actions: {
@@ -97,6 +303,19 @@ export const creativeApps = {
97
303
  return await runBlenderBatch(args, process.cwd(), context.signal);
98
304
  if (args.action === 'studio_pipeline')
99
305
  return await runStudioPipeline(args, process.cwd(), context.signal);
306
+ if (args.action === 'live_bridge')
307
+ return await runAdobeLiveBridge(args, process.cwd(), context.signal);
308
+ if (args.action === 'engine_bridge')
309
+ return await runGameEngineBridge(args, process.cwd(), context.signal);
310
+ if (args.action === 'verify_bridge')
311
+ return await verifyAllCreativeAndGameBridges(process.cwd());
312
+ if (args.action === 'scaffold_uxp') {
313
+ return await scaffoldCausyneUxpPlugin(typeof args.outputDir === 'string' && args.outputDir.trim()
314
+ ? args.outputDir.trim()
315
+ : typeof args.output === 'string' && args.output.trim()
316
+ ? args.output.trim()
317
+ : 'causyne-uxp-bridge', process.cwd(), { websocketPort: typeof args.websocketPort === 'number' ? args.websocketPort : undefined });
318
+ }
100
319
  throw new Error('Unknown creative app action');
101
320
  }
102
321
  catch (error) {
@@ -2,31 +2,243 @@ import { runStudioEdit } from '../creative/studioScripts.js';
2
2
  import { creativeAppStatus } from '../creative/apps.js';
3
3
  import { runBlenderBatch } from '../creative/blenderBatch.js';
4
4
  import { runStudioPipeline } from '../creative/pipeline.js';
5
+ import {
6
+ runAdobeLiveBridge,
7
+ runGameEngineBridge,
8
+ scaffoldCausyneUxpPlugin,
9
+ verifyAllCreativeAndGameBridges
10
+ } from '../creative/liveBridge.js';
5
11
 
6
12
  export const creativeApps = {
7
13
  schema: {
8
14
  name: 'creative_apps',
9
- description: 'Inspect installed creative applications, run bounded creative batches, or orchestrate multi-stage creative pipelines. Blender batch creates and edits 3D scenes (primitives, materials, lights, cameras, render) and saves a new .blend. studio_edit uses native scripting: Photo Studio (resize/rotate/layers/flatten -> PSD/PNG/JPG/WEBP), Video Studio (sequences/imports/timeline cuts/markers -> PRPROJ), Motion Studio (compositions/imports/text -> AEP). studio_pipeline executes sequential coordinated multi-host stages. Requires workspace scoping.',
15
+ description:
16
+ 'Universal native machine-API bridge for Adobe Creative Suite ' +
17
+ '(Photoshop, Premiere Pro, After Effects, Illustrator, InDesign, Media Encoder), ' +
18
+ 'Cinema Studio (DaVinci Resolve), 3D Studio (Blender), and Game Engines ' +
19
+ '(Unreal Engine 5, Unity, Godot) with zero MCP token bloat. Supports: ' +
20
+ '(1) status: inspect installed hosts; ' +
21
+ '(2) live_bridge: interactive active-session Adobe & DaVinci Resolve operations ' +
22
+ '(inspect_active, export_canvas_preview bounded 64..1024px PNG + selection bounds, ' +
23
+ 'place_in_active_canvas with selection/mask fitting, insert_in_active_timeline at playhead); ' +
24
+ '(3) engine_bridge: direct Unreal Remote Control HTTP API (port 30010), ' +
25
+ 'Unreal Python asset/actor automation, Unity C# Editor batchmode/AssetDatabase import, ' +
26
+ 'and Godot headless bridge; ' +
27
+ '(4) scaffold_uxp: generate native Adobe UXP v5 companion plugin; ' +
28
+ '(5) verify_bridge: run full cross-platform (macOS/Windows/Linux) & DOM/Python ' +
29
+ 'simulator self-test without requiring host apps to be installed; ' +
30
+ '(6) blender_batch, studio_edit, and studio_pipeline.',
10
31
  parameters: {
11
32
  type: 'object',
12
33
  properties: {
13
- action: { type: 'string', enum: ['status', 'blender_batch', 'studio_edit', 'studio_pipeline'] },
14
- host: { type: 'string', enum: ['photoshop', 'premiere', 'after-effects', 'photo-studio', 'video-studio', 'motion-studio'] },
15
- input: { type: 'string', description: 'Existing .blend, image/document, or project file inside the workspace.' },
16
- output: { type: 'string', description: 'New .blend, PSD/PNG, PRPROJ, or AEP file inside the workspace; never overwrites.' },
34
+ action: {
35
+ type: 'string',
36
+ enum: [
37
+ 'status',
38
+ 'blender_batch',
39
+ 'studio_edit',
40
+ 'studio_pipeline',
41
+ 'live_bridge',
42
+ 'engine_bridge',
43
+ 'scaffold_uxp',
44
+ 'verify_bridge'
45
+ ]
46
+ },
47
+ host: {
48
+ type: 'string',
49
+ enum: [
50
+ 'photoshop',
51
+ 'premiere',
52
+ 'after-effects',
53
+ 'illustrator',
54
+ 'indesign',
55
+ 'media-encoder',
56
+ 'resolve',
57
+ 'davinci-resolve',
58
+ 'photo-studio',
59
+ 'video-studio',
60
+ 'motion-studio',
61
+ 'vector-studio',
62
+ 'layout-studio',
63
+ 'encoder-studio',
64
+ 'cinema-studio'
65
+ ]
66
+ },
67
+ liveOperation: {
68
+ type: 'string',
69
+ enum: [
70
+ 'inspect_active',
71
+ 'export_canvas_preview',
72
+ 'place_in_active_canvas',
73
+ 'insert_in_active_timeline'
74
+ ],
75
+ description: 'Interactive live operation for action="live_bridge" against the currently open Adobe document or sequence.'
76
+ },
77
+ fitMode: {
78
+ type: 'string',
79
+ enum: ['selection', 'bounds', 'document_height', 'original'],
80
+ description: 'How place_in_active_canvas fits the placed asset onto the active canvas.'
81
+ },
82
+ bounds: {
83
+ type: 'object',
84
+ description: 'Target placement rectangle { left, top, width, height } in pixels for fitMode="bounds".',
85
+ properties: {
86
+ left: { type: 'number' },
87
+ top: { type: 'number' },
88
+ width: { type: 'number' },
89
+ height: { type: 'number' }
90
+ }
91
+ },
92
+ maxDimension: {
93
+ type: 'integer',
94
+ description: 'Maximum pixel dimension (64..1024) for export_canvas_preview.'
95
+ },
96
+ layerOnly: {
97
+ type: 'boolean',
98
+ description: 'When true in export_canvas_preview, trims preview to the active layer bounds.'
99
+ },
100
+ applySelectionMask: {
101
+ type: 'boolean',
102
+ description: 'When true in place_in_active_canvas, applies the active selection as a non-destructive reveal layer mask.'
103
+ },
104
+ layerName: {
105
+ type: 'string',
106
+ description: 'Name for the placed layer in place_in_active_canvas.'
107
+ },
108
+ atPlayhead: {
109
+ type: 'boolean',
110
+ description: 'When true in insert_in_active_timeline, inserts clip at current playhead position.'
111
+ },
112
+ start: {
113
+ type: 'number',
114
+ description: 'Timeline start time in seconds.'
115
+ },
116
+ track: {
117
+ type: 'integer',
118
+ description: 'Zero-based video/audio track index for timeline insertion.'
119
+ },
120
+ audioTrack: {
121
+ type: 'boolean',
122
+ description: 'When true, inserts clip into audioTracks instead of videoTracks.'
123
+ },
124
+ stageOnly: {
125
+ type: 'boolean',
126
+ description: 'When true in live_bridge, writes the generated ExtendScript (.jsx) into the workspace without invoking osascript/COM.'
127
+ },
128
+ simulateHost: {
129
+ type: 'boolean',
130
+ description: 'When true, executes the generated ExtendScript/Python bridge against the built-in Adobe DOM / DaVinci Resolve simulator for verification without host installation.'
131
+ },
132
+ engine: {
133
+ type: 'string',
134
+ enum: ['unreal', 'unreal-engine', 'unity', 'unity-editor', 'godot'],
135
+ description: 'Target game engine for action="engine_bridge".'
136
+ },
137
+ engineOperation: {
138
+ type: 'string',
139
+ enum: ['remote_control', 'import_assets', 'spawn_actor'],
140
+ description: 'Operation for action="engine_bridge".'
141
+ },
142
+ projectPath: {
143
+ type: 'string',
144
+ description: 'Workspace path to the Unreal, Unity, or Godot project directory.'
145
+ },
146
+ assets: {
147
+ type: 'array',
148
+ items: { type: 'string' },
149
+ description: 'Workspace asset file paths (textures, FBX/GLB meshes, audio) to import into the game engine.'
150
+ },
151
+ destinationFolder: {
152
+ type: 'string',
153
+ description: 'Target content folder inside the engine (e.g. "/Game/CausyneAssets" or "Assets/CausyneAssets").'
154
+ },
155
+ objectPath: {
156
+ type: 'string',
157
+ description: 'Unreal UObject path for remote_control HTTP bridge.'
158
+ },
159
+ functionName: {
160
+ type: 'string',
161
+ description: 'Unreal UFunction name for remote_control HTTP call.'
162
+ },
163
+ propertyName: {
164
+ type: 'string',
165
+ description: 'Unreal UProperty name for remote_control property read/write.'
166
+ },
167
+ propertyValue: {
168
+ description: 'Value to write for Unreal remote_control property access.'
169
+ },
170
+ parameters: {
171
+ type: 'object',
172
+ description: 'Function parameters payload for Unreal remote_control call.'
173
+ },
174
+ remotePort: {
175
+ type: 'integer',
176
+ description: 'Local loopback port for Unreal Remote Control HTTP API (default 30010).'
177
+ },
178
+ actorName: {
179
+ type: 'string',
180
+ description: 'Label/name for spawned actor, prefab instance, or scene node.'
181
+ },
182
+ actorClass: {
183
+ type: 'string',
184
+ description: 'Unreal actor class (e.g. StaticMeshActor, PointLight, CineCameraActor).'
185
+ },
186
+ assetPath: {
187
+ type: 'string',
188
+ description: 'Engine content path to mesh/prefab for spawn_actor.'
189
+ },
190
+ location: {
191
+ type: 'array',
192
+ items: { type: 'number' },
193
+ minItems: 3,
194
+ maxItems: 3
195
+ },
196
+ rotation: {
197
+ type: 'array',
198
+ items: { type: 'number' },
199
+ minItems: 3,
200
+ maxItems: 3
201
+ },
202
+ scale: {
203
+ type: 'array',
204
+ items: { type: 'number' },
205
+ minItems: 3,
206
+ maxItems: 3
207
+ },
208
+ executeHeadless: {
209
+ type: 'boolean',
210
+ description: 'Whether to execute the local Unreal/Unity/Godot CLI binary immediately if installed (default true).'
211
+ },
212
+ outputDir: {
213
+ type: 'string',
214
+ description: 'Workspace output directory for action="scaffold_uxp".'
215
+ },
216
+ websocketPort: {
217
+ type: 'integer',
218
+ description: 'Local WebSocket port for the UXP companion bridge (default 8080).'
219
+ },
220
+ input: { type: 'string', description: 'Existing .blend, image/document, media asset, or project file inside the workspace.' },
221
+ output: { type: 'string', description: 'New .blend, PSD/PNG, PRPROJ, or AEP file inside the workspace.' },
17
222
  stages: {
18
223
  type: 'array',
19
- description: 'Stages for studio_pipeline: array of { id, type: "3d_batch"|"studio_batch", config }',
224
+ description: 'Stages for studio_pipeline: array of { id, type: "3d_batch"|"studio_batch"|"live_bridge"|"engine_bridge", config }',
20
225
  items: {
21
226
  type: 'object',
22
227
  properties: {
23
228
  id: { type: 'string', description: 'Stage identifier' },
24
- type: { type: 'string', enum: ['3d_batch', 'studio_batch'], description: 'Stage batch execution type' },
229
+ type: {
230
+ type: 'string',
231
+ enum: ['3d_batch', 'studio_batch', 'live_bridge', 'engine_bridge'],
232
+ description: 'Stage batch execution type'
233
+ },
25
234
  config: {
26
235
  type: 'object',
27
236
  description: 'Stage payload configuration',
28
237
  properties: {
29
238
  host: { type: 'string' },
239
+ engine: { type: 'string' },
240
+ liveOperation: { type: 'string' },
241
+ engineOperation: { type: 'string' },
30
242
  input: { type: 'string' },
31
243
  output: { type: 'string' },
32
244
  actions: {
@@ -93,6 +305,20 @@ export const creativeApps = {
93
305
  if (args.action === 'studio_edit') return await runStudioEdit(args, process.cwd(), context.signal);
94
306
  if (args.action === 'blender_batch') return await runBlenderBatch(args, process.cwd(), context.signal);
95
307
  if (args.action === 'studio_pipeline') return await runStudioPipeline(args, process.cwd(), context.signal);
308
+ if (args.action === 'live_bridge') return await runAdobeLiveBridge(args, process.cwd(), context.signal);
309
+ if (args.action === 'engine_bridge') return await runGameEngineBridge(args, process.cwd(), context.signal);
310
+ if (args.action === 'verify_bridge') return await verifyAllCreativeAndGameBridges(process.cwd());
311
+ if (args.action === 'scaffold_uxp') {
312
+ return await scaffoldCausyneUxpPlugin(
313
+ typeof args.outputDir === 'string' && args.outputDir.trim()
314
+ ? args.outputDir.trim()
315
+ : typeof args.output === 'string' && args.output.trim()
316
+ ? args.output.trim()
317
+ : 'causyne-uxp-bridge',
318
+ process.cwd(),
319
+ { websocketPort: typeof args.websocketPort === 'number' ? args.websocketPort : undefined }
320
+ );
321
+ }
96
322
  throw new Error('Unknown creative app action');
97
323
  } catch (error) { return { success: false, error: error instanceof Error ? error.message : String(error) }; }
98
324
  }