@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.
- package/package.json +1 -1
- package/src/agentLoop.js +8 -0
- package/src/agentLoop.ts +7 -0
- package/src/appChannel.js +52 -74
- package/src/appChannel.ts +106 -0
- package/src/creative/apps.js +206 -11
- package/src/creative/apps.ts +198 -6
- package/src/creative/liveBridge.js +1481 -0
- package/src/creative/liveBridge.ts +1829 -0
- package/src/creative/pipeline.js +31 -3
- package/src/creative/pipeline.ts +36 -7
- package/src/decideTools.js +3 -1
- package/src/decideTools.ts +3 -1
- package/src/decisionPolicy.js +5 -2
- package/src/decisionPolicy.ts +7 -1
- package/src/mcp/mcpRegistry.js +3 -1
- package/src/mcp/mcpRegistry.ts +3 -1
- package/src/sandbox.js +5 -1
- package/src/smartToolsUse.js +2 -1
- package/src/smartToolsUse.ts +2 -1
- package/src/tool-scripts/resolve_automator.py +167 -34
- package/src/toolPacks.js +5 -3
- package/src/toolPacks.ts +5 -3
- package/src/tools/creativeApps.js +226 -7
- package/src/tools/creativeApps.ts +233 -7
- package/src/tools/memoryWrite.js +71 -89
- package/src/tools/memoryWrite.ts +108 -0
- package/src/tools/resolveAutomator.js +356 -89
- package/src/tools/resolveAutomator.ts +403 -0
- package/src/toolsList.js +1 -1
- package/src/toolsList.ts +1 -1
- package/src/tui/consoleGuard.js +85 -0
- package/src/tui/consoleGuard.ts +102 -0
- package/src/tui/messageActionPlacement.js +8 -3
- package/src/tui/messageActionPlacement.ts +8 -3
- package/src/tui/messageInteraction.js +184 -27
- package/src/tui/messageInteraction.ts +221 -45
- package/src/tui/mouseHover.js +4 -0
- package/src/tui/mouseHover.ts +5 -0
- package/src/tui/smartLinkClick.js +353 -0
- package/src/tui/smartLinkClick.ts +413 -0
package/src/creative/pipeline.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { runBlenderBatch } from './blenderBatch.js';
|
|
2
2
|
import { runStudioEdit } from './studioScripts.js';
|
|
3
|
+
import { runAdobeLiveBridge, runGameEngineBridge } from './liveBridge.js';
|
|
4
|
+
const VALID_STAGE_TYPES = ['3d_batch', 'studio_batch', 'live_bridge', 'engine_bridge'];
|
|
3
5
|
export function validatePipeline(value) {
|
|
4
6
|
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
5
7
|
throw new Error('Pipeline must be an object');
|
|
@@ -14,8 +16,8 @@ export function validatePipeline(value) {
|
|
|
14
16
|
}
|
|
15
17
|
const s = raw;
|
|
16
18
|
const id = typeof s.id === 'string' && s.id.trim() ? s.id.trim() : `stage_${index + 1}`;
|
|
17
|
-
if (
|
|
18
|
-
throw new Error(`Stage "${id}" must have type "3d_batch" or "
|
|
19
|
+
if (!VALID_STAGE_TYPES.includes(s.type)) {
|
|
20
|
+
throw new Error(`Stage "${id}" must have type "3d_batch", "studio_batch", "live_bridge", or "engine_bridge"`);
|
|
19
21
|
}
|
|
20
22
|
const type = s.type;
|
|
21
23
|
if (!s.config || typeof s.config !== 'object' || Array.isArray(s.config)) {
|
|
@@ -37,7 +39,7 @@ export async function runStudioPipeline(value, workspace = process.cwd(), signal
|
|
|
37
39
|
const res = await runBlenderBatch(stage.config, workspace, signal);
|
|
38
40
|
stageResults.push({ id: stage.id, success: true, output: res.output });
|
|
39
41
|
}
|
|
40
|
-
else {
|
|
42
|
+
else if (stage.type === 'studio_batch') {
|
|
41
43
|
const res = await runStudioEdit(stage.config, workspace, signal);
|
|
42
44
|
if (!res.success) {
|
|
43
45
|
stageResults.push({ id: stage.id, success: false, error: res.error });
|
|
@@ -45,6 +47,32 @@ export async function runStudioPipeline(value, workspace = process.cwd(), signal
|
|
|
45
47
|
}
|
|
46
48
|
stageResults.push({ id: stage.id, success: true, output: res.output });
|
|
47
49
|
}
|
|
50
|
+
else if (stage.type === 'live_bridge') {
|
|
51
|
+
const res = await runAdobeLiveBridge(stage.config, workspace, signal);
|
|
52
|
+
if (!res.success) {
|
|
53
|
+
const errStr = String(res.error ?? 'Adobe live bridge failed');
|
|
54
|
+
stageResults.push({ id: stage.id, success: false, error: errStr });
|
|
55
|
+
return { success: false, stagesCompleted: i, stageResults, error: `Stage "${stage.id}" failed: ${errStr}` };
|
|
56
|
+
}
|
|
57
|
+
stageResults.push({
|
|
58
|
+
id: stage.id,
|
|
59
|
+
success: true,
|
|
60
|
+
output: typeof res.output === 'string' ? res.output : typeof res.scriptPath === 'string' ? res.scriptPath : 'live_bridge_ok'
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const res = await runGameEngineBridge(stage.config, workspace, signal);
|
|
65
|
+
if (!res.success) {
|
|
66
|
+
const errStr = String(res.error ?? 'Game engine bridge failed');
|
|
67
|
+
stageResults.push({ id: stage.id, success: false, error: errStr });
|
|
68
|
+
return { success: false, stagesCompleted: i, stageResults, error: `Stage "${stage.id}" failed: ${errStr}` };
|
|
69
|
+
}
|
|
70
|
+
stageResults.push({
|
|
71
|
+
id: stage.id,
|
|
72
|
+
success: true,
|
|
73
|
+
output: typeof res.scriptPath === 'string' ? res.scriptPath : typeof res.editorScriptPath === 'string' ? res.editorScriptPath : 'engine_bridge_ok'
|
|
74
|
+
});
|
|
75
|
+
}
|
|
48
76
|
}
|
|
49
77
|
catch (err) {
|
|
50
78
|
const errMsg = err instanceof Error ? err.message : String(err);
|
package/src/creative/pipeline.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { runBlenderBatch
|
|
2
|
-
import { runStudioEdit
|
|
1
|
+
import { runBlenderBatch } from './blenderBatch.js';
|
|
2
|
+
import { runStudioEdit } from './studioScripts.js';
|
|
3
|
+
import { runAdobeLiveBridge, runGameEngineBridge } from './liveBridge.js';
|
|
4
|
+
|
|
5
|
+
export type PipelineStageType = '3d_batch' | 'studio_batch' | 'live_bridge' | 'engine_bridge';
|
|
3
6
|
|
|
4
7
|
export interface PipelineStage {
|
|
5
8
|
id: string;
|
|
6
|
-
type:
|
|
9
|
+
type: PipelineStageType;
|
|
7
10
|
config: Record<string, unknown>;
|
|
8
11
|
}
|
|
9
12
|
|
|
@@ -18,6 +21,8 @@ export interface PipelineResult {
|
|
|
18
21
|
error?: string | undefined;
|
|
19
22
|
}
|
|
20
23
|
|
|
24
|
+
const VALID_STAGE_TYPES: readonly PipelineStageType[] = ['3d_batch', 'studio_batch', 'live_bridge', 'engine_bridge'];
|
|
25
|
+
|
|
21
26
|
export function validatePipeline(value: unknown): StudioPipeline {
|
|
22
27
|
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
23
28
|
throw new Error('Pipeline must be an object');
|
|
@@ -33,10 +38,10 @@ export function validatePipeline(value: unknown): StudioPipeline {
|
|
|
33
38
|
}
|
|
34
39
|
const s = raw as Record<string, unknown>;
|
|
35
40
|
const id = typeof s.id === 'string' && s.id.trim() ? s.id.trim() : `stage_${index + 1}`;
|
|
36
|
-
if (
|
|
37
|
-
throw new Error(`Stage "${id}" must have type "3d_batch" or "
|
|
41
|
+
if (!VALID_STAGE_TYPES.includes(s.type as PipelineStageType)) {
|
|
42
|
+
throw new Error(`Stage "${id}" must have type "3d_batch", "studio_batch", "live_bridge", or "engine_bridge"`);
|
|
38
43
|
}
|
|
39
|
-
const type
|
|
44
|
+
const type = s.type as PipelineStageType;
|
|
40
45
|
if (!s.config || typeof s.config !== 'object' || Array.isArray(s.config)) {
|
|
41
46
|
throw new Error(`Stage "${id}" requires a configuration object`);
|
|
42
47
|
}
|
|
@@ -63,13 +68,37 @@ export async function runStudioPipeline(
|
|
|
63
68
|
if (stage.type === '3d_batch') {
|
|
64
69
|
const res = await runBlenderBatch(stage.config, workspace, signal);
|
|
65
70
|
stageResults.push({ id: stage.id, success: true, output: res.output });
|
|
66
|
-
} else {
|
|
71
|
+
} else if (stage.type === 'studio_batch') {
|
|
67
72
|
const res = await runStudioEdit(stage.config, workspace, signal);
|
|
68
73
|
if (!res.success) {
|
|
69
74
|
stageResults.push({ id: stage.id, success: false, error: res.error });
|
|
70
75
|
return { success: false, stagesCompleted: i, stageResults, error: `Stage "${stage.id}" failed: ${res.error}` };
|
|
71
76
|
}
|
|
72
77
|
stageResults.push({ id: stage.id, success: true, output: res.output });
|
|
78
|
+
} else if (stage.type === 'live_bridge') {
|
|
79
|
+
const res = await runAdobeLiveBridge(stage.config, workspace, signal);
|
|
80
|
+
if (!res.success) {
|
|
81
|
+
const errStr = String(res.error ?? 'Adobe live bridge failed');
|
|
82
|
+
stageResults.push({ id: stage.id, success: false, error: errStr });
|
|
83
|
+
return { success: false, stagesCompleted: i, stageResults, error: `Stage "${stage.id}" failed: ${errStr}` };
|
|
84
|
+
}
|
|
85
|
+
stageResults.push({
|
|
86
|
+
id: stage.id,
|
|
87
|
+
success: true,
|
|
88
|
+
output: typeof res.output === 'string' ? res.output : typeof res.scriptPath === 'string' ? res.scriptPath : 'live_bridge_ok'
|
|
89
|
+
});
|
|
90
|
+
} else {
|
|
91
|
+
const res = await runGameEngineBridge(stage.config, workspace, signal);
|
|
92
|
+
if (!res.success) {
|
|
93
|
+
const errStr = String(res.error ?? 'Game engine bridge failed');
|
|
94
|
+
stageResults.push({ id: stage.id, success: false, error: errStr });
|
|
95
|
+
return { success: false, stagesCompleted: i, stageResults, error: `Stage "${stage.id}" failed: ${errStr}` };
|
|
96
|
+
}
|
|
97
|
+
stageResults.push({
|
|
98
|
+
id: stage.id,
|
|
99
|
+
success: true,
|
|
100
|
+
output: typeof res.scriptPath === 'string' ? res.scriptPath : typeof res.editorScriptPath === 'string' ? res.editorScriptPath : 'engine_bridge_ok'
|
|
101
|
+
});
|
|
73
102
|
}
|
|
74
103
|
} catch (err) {
|
|
75
104
|
const errMsg = err instanceof Error ? err.message : String(err);
|
package/src/decideTools.js
CHANGED
|
@@ -43,7 +43,9 @@ const TRIGGERS = [
|
|
|
43
43
|
{ pattern: /\b(symbols?|definitions?|ast|outline|fold)\b/i, tools: ['code_list_symbols', 'code_search_ast', 'memory_recall'], why: 'structural code search' },
|
|
44
44
|
{ pattern: /\b(past session|previous session|episodic|remember|recall|history|earlier fix|memory_recall|memory_write)\b/i, tools: ['memory_recall', 'memory_write'], why: 'episodic memory recall' },
|
|
45
45
|
{ pattern: /\b(syntax|compile|typecheck|lint)\b/i, tools: ['code_verify_syntax'], why: 'static check' },
|
|
46
|
-
{ pattern: /\b(godot|\.tscn|gdscript)\b/i, tools: ['godot_act', 'game_scene_build'], why: 'Godot work' },
|
|
46
|
+
{ pattern: /\b(godot|\.tscn|gdscript)\b/i, tools: ['godot_act', 'game_scene_build', 'creative_apps'], why: 'Godot work' },
|
|
47
|
+
{ pattern: /\b(photoshop|premiere|after[- ]?effects|illustrator|indesign|media[- ]?encoder|uxp|unreal|ue5|unity|\.psd\b|\.prproj\b|\.aep\b|\.uproject\b)\b/i,
|
|
48
|
+
tools: ['creative_apps'], why: 'native Adobe & game engine bridge' },
|
|
47
49
|
{ pattern: /\b(clipboard)\b/i, tools: ['clipboard'], why: 'clipboard' },
|
|
48
50
|
{ pattern: /\b(gui|desktop app|accessibility|click (?:the )?button)\b/i, tools: ['ax_snapshot', 'desktop_act'], why: 'GUI control' },
|
|
49
51
|
{ pattern: /\b(commit|branch|merge|rebase)\b/i, tools: ['gitOp'], why: 'version control' },
|
package/src/decideTools.ts
CHANGED
|
@@ -90,7 +90,9 @@ const TRIGGERS: readonly Trigger[] = [
|
|
|
90
90
|
{ pattern: /\b(symbols?|definitions?|ast|outline|fold)\b/i, tools: ['code_list_symbols', 'code_search_ast', 'memory_recall'], why: 'structural code search' },
|
|
91
91
|
{ pattern: /\b(past session|previous session|episodic|remember|recall|history|earlier fix|memory_recall|memory_write)\b/i, tools: ['memory_recall', 'memory_write'], why: 'episodic memory recall' },
|
|
92
92
|
{ pattern: /\b(syntax|compile|typecheck|lint)\b/i, tools: ['code_verify_syntax'], why: 'static check' },
|
|
93
|
-
{ pattern: /\b(godot|\.tscn|gdscript)\b/i, tools: ['godot_act', 'game_scene_build'], why: 'Godot work' },
|
|
93
|
+
{ pattern: /\b(godot|\.tscn|gdscript)\b/i, tools: ['godot_act', 'game_scene_build', 'creative_apps'], why: 'Godot work' },
|
|
94
|
+
{ pattern: /\b(photoshop|premiere|after[- ]?effects|illustrator|indesign|media[- ]?encoder|uxp|unreal|ue5|unity|\.psd\b|\.prproj\b|\.aep\b|\.uproject\b)\b/i,
|
|
95
|
+
tools: ['creative_apps'], why: 'native Adobe & game engine bridge' },
|
|
94
96
|
{ pattern: /\b(clipboard)\b/i, tools: ['clipboard'], why: 'clipboard' },
|
|
95
97
|
{ pattern: /\b(gui|desktop app|accessibility|click (?:the )?button)\b/i, tools: ['ax_snapshot', 'desktop_act'], why: 'GUI control' },
|
|
96
98
|
{ pattern: /\b(commit|branch|merge|rebase)\b/i, tools: ['gitOp'], why: 'version control' },
|
package/src/decisionPolicy.js
CHANGED
|
@@ -60,8 +60,11 @@ export function requiresImplementationPlan(prompt, archetype = '', confidence =
|
|
|
60
60
|
return containsAny(text, ARCHITECTURE_TERMS) && containsAny(text, CHANGE_TERMS);
|
|
61
61
|
}
|
|
62
62
|
export function isMutatingToolCall(toolName, args = {}) {
|
|
63
|
-
if (toolName === 'creative_apps')
|
|
64
|
-
return args.action !== 'status'
|
|
63
|
+
if (toolName === 'creative_apps') {
|
|
64
|
+
return (args.action !== 'status' &&
|
|
65
|
+
args.action !== 'verify_bridge' &&
|
|
66
|
+
!(args.action === 'live_bridge' && args.liveOperation === 'inspect_active'));
|
|
67
|
+
}
|
|
65
68
|
if (toolName === 'native_engine')
|
|
66
69
|
return !['status', 'catalog', 'describe', 'inspect', 'probe'].includes(String(args.action ?? ''));
|
|
67
70
|
if (MUTATING_TOOLS.has(toolName)) {
|
package/src/decisionPolicy.ts
CHANGED
|
@@ -98,7 +98,13 @@ export function requiresImplementationPlan(prompt: string, archetype = '', confi
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export function isMutatingToolCall(toolName: string, args: Record<string, unknown> = {}): boolean {
|
|
101
|
-
if (toolName === 'creative_apps')
|
|
101
|
+
if (toolName === 'creative_apps') {
|
|
102
|
+
return (
|
|
103
|
+
args.action !== 'status' &&
|
|
104
|
+
args.action !== 'verify_bridge' &&
|
|
105
|
+
!(args.action === 'live_bridge' && args.liveOperation === 'inspect_active')
|
|
106
|
+
);
|
|
107
|
+
}
|
|
102
108
|
if (toolName === 'native_engine') return !['status', 'catalog', 'describe', 'inspect', 'probe'].includes(String(args.action ?? ''));
|
|
103
109
|
if (MUTATING_TOOLS.has(toolName)) {
|
|
104
110
|
if (['sysRun', 'sysRunBg', 'bash', 'terminal', 'execute', 'sh', 'zsh'].includes(toolName)) {
|
package/src/mcp/mcpRegistry.js
CHANGED
|
@@ -331,7 +331,9 @@ export async function discoverTools() {
|
|
|
331
331
|
}
|
|
332
332
|
catch (error) {
|
|
333
333
|
const message = error instanceof Error ? error.message : String(error);
|
|
334
|
-
|
|
334
|
+
if (process.env.CAUSYNE_DEBUG === '1') {
|
|
335
|
+
console.warn(`[MCP] ${server.name} unavailable: ${message}`);
|
|
336
|
+
}
|
|
335
337
|
return [];
|
|
336
338
|
}
|
|
337
339
|
}));
|
package/src/mcp/mcpRegistry.ts
CHANGED
|
@@ -355,7 +355,9 @@ export async function discoverTools(): Promise<DynamicToolDefinition[]> {
|
|
|
355
355
|
.concat(utilityDefinitions(server, client));
|
|
356
356
|
} catch (error) {
|
|
357
357
|
const message = error instanceof Error ? error.message : String(error);
|
|
358
|
-
|
|
358
|
+
if (process.env.CAUSYNE_DEBUG === '1') {
|
|
359
|
+
console.warn(`[MCP] ${server.name} unavailable: ${message}`);
|
|
360
|
+
}
|
|
359
361
|
return [];
|
|
360
362
|
}
|
|
361
363
|
}));
|
package/src/sandbox.js
CHANGED
|
@@ -296,7 +296,11 @@ export class Sandbox {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
if (toolName === 'creative_apps') {
|
|
299
|
-
|
|
299
|
+
const isReadOnly =
|
|
300
|
+
args.action === 'status' ||
|
|
301
|
+
args.action === 'verify_bridge' ||
|
|
302
|
+
(args.action === 'live_bridge' && args.liveOperation === 'inspect_active');
|
|
303
|
+
return { allowed: true, risk: isReadOnly ? 'safe' : 'dangerous' };
|
|
300
304
|
}
|
|
301
305
|
|
|
302
306
|
if (toolName === 'native_engine') {
|
package/src/smartToolsUse.js
CHANGED
|
@@ -125,7 +125,7 @@ const SYSTEM_ADMIN_PATTERN = /\b(kill process|kill port|check port|port \d+|lsof
|
|
|
125
125
|
// Simple file management operations (reading small notes, listing/deleting/moving files)
|
|
126
126
|
const SIMPLE_FILE_OP_PATTERN = /\b(list (the )?files|show files|count files|rename file(s)?|delete file(s)?|move file(s)?|clean (up )?folder|read (the )?(?:note|file)|summarize (?:its )?content)\b/i;
|
|
127
127
|
// Media generation intent (explicit creation of 3D, video, audio, or synthesized speech)
|
|
128
|
-
const EXPLICIT_MEDIA_GENERATION_PATTERN = /\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b|\.blend\d
|
|
128
|
+
const EXPLICIT_MEDIA_GENERATION_PATTERN = /\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|photoshop|premiere|after\s*effects|illustrator|indesign|media\s*encoder|uxp|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b|\.(blend\d*|psd|prproj|aep|ai|indd|ccx)\b/i;
|
|
129
129
|
// Explicit web engineering intent
|
|
130
130
|
const EXPLICIT_WEB_ENGINEERING_PATTERN = /\b(build|create|make|design|develop|implement|redesign|buat\w*)\b[\s\S]*\b(web|website|webpage|webapp|landing page|dashboard|ui|frontend|threejs|three\.js|thre\.?js|3js|webgl|canvas)\b/i;
|
|
131
131
|
// Explicit game development intent
|
|
@@ -283,6 +283,7 @@ export function determineToolScope(prompt, _taskShape) {
|
|
|
283
283
|
// 7. Game development and interactive simulation intent (simulators, 3D worlds, games)
|
|
284
284
|
if (EXPLICIT_GAME_DEV_PATTERN.test(text)) {
|
|
285
285
|
const tools = new Set([
|
|
286
|
+
'creative_apps',
|
|
286
287
|
'fs_write',
|
|
287
288
|
'fs_edit',
|
|
288
289
|
'fs_read',
|
package/src/smartToolsUse.ts
CHANGED
|
@@ -166,7 +166,7 @@ const SIMPLE_FILE_OP_PATTERN =
|
|
|
166
166
|
|
|
167
167
|
// Media generation intent (explicit creation of 3D, video, audio, or synthesized speech)
|
|
168
168
|
const EXPLICIT_MEDIA_GENERATION_PATTERN =
|
|
169
|
-
/\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b|\.blend\d
|
|
169
|
+
/\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|photoshop|premiere|after\s*effects|illustrator|indesign|media\s*encoder|uxp|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b|\.(blend\d*|psd|prproj|aep|ai|indd|ccx)\b/i;
|
|
170
170
|
|
|
171
171
|
// Explicit web engineering intent
|
|
172
172
|
const EXPLICIT_WEB_ENGINEERING_PATTERN =
|
|
@@ -344,6 +344,7 @@ export function determineToolScope(
|
|
|
344
344
|
// 7. Game development and interactive simulation intent (simulators, 3D worlds, games)
|
|
345
345
|
if (EXPLICIT_GAME_DEV_PATTERN.test(text)) {
|
|
346
346
|
const tools = new Set([
|
|
347
|
+
'creative_apps',
|
|
347
348
|
'fs_write',
|
|
348
349
|
'fs_edit',
|
|
349
350
|
'fs_read',
|
|
@@ -6,60 +6,97 @@ def run_bridge(args):
|
|
|
6
6
|
try:
|
|
7
7
|
import DaVinciResolveScript as dvr_script
|
|
8
8
|
except ImportError:
|
|
9
|
-
print(json.dumps({
|
|
9
|
+
print(json.dumps({
|
|
10
|
+
"success": False,
|
|
11
|
+
"error": "[ENGINE MISSING] DaVinci Resolve Studio Python API not found. Ensure 'External scripting using: Local' is enabled in Preferences -> System -> General, and DaVinci Resolve is running."
|
|
12
|
+
}))
|
|
10
13
|
return
|
|
11
14
|
|
|
12
15
|
resolve = dvr_script.scriptapp("Resolve")
|
|
13
16
|
if resolve is None:
|
|
14
|
-
print(json.dumps({
|
|
17
|
+
print(json.dumps({
|
|
18
|
+
"success": False,
|
|
19
|
+
"error": "[CONNECTION ERROR] Could not connect to DaVinci Resolve. Ensure DaVinci Resolve is open."
|
|
20
|
+
}))
|
|
15
21
|
return
|
|
16
22
|
|
|
17
23
|
projectManager = resolve.GetProjectManager()
|
|
18
24
|
project = projectManager.GetCurrentProject()
|
|
19
25
|
if not project:
|
|
20
|
-
print(json.dumps({"success": False, "error": "No open project found."}))
|
|
26
|
+
print(json.dumps({"success": False, "error": "No open project found in DaVinci Resolve."}))
|
|
21
27
|
return
|
|
22
28
|
|
|
23
29
|
mediaPool = project.GetMediaPool()
|
|
24
30
|
timeline = project.GetCurrentTimeline()
|
|
25
|
-
|
|
26
31
|
action = args.get("action")
|
|
27
|
-
|
|
32
|
+
|
|
28
33
|
if action == "checkConnection":
|
|
34
|
+
tl_name = timeline.GetName() if timeline else None
|
|
29
35
|
print(json.dumps({
|
|
30
|
-
"success": True,
|
|
36
|
+
"success": True,
|
|
37
|
+
"projectName": project.GetName(),
|
|
38
|
+
"timelineName": tl_name,
|
|
31
39
|
"message": f"Connected to DaVinci Resolve. Active Project: {project.GetName()}"
|
|
32
40
|
}))
|
|
33
41
|
return
|
|
34
42
|
|
|
43
|
+
elif action == "inspectActive":
|
|
44
|
+
tl_name = timeline.GetName() if timeline else None
|
|
45
|
+
video_tracks = timeline.GetTrackCount("video") if timeline and hasattr(timeline, "GetTrackCount") else 0
|
|
46
|
+
audio_tracks = timeline.GetTrackCount("audio") if timeline and hasattr(timeline, "GetTrackCount") else 0
|
|
47
|
+
timecode = timeline.GetCurrentTimecode() if timeline and hasattr(timeline, "GetCurrentTimecode") else "01:00:00:00"
|
|
48
|
+
fps = project.GetSetting("timelineFrameRate") if hasattr(project, "GetSetting") else "24"
|
|
49
|
+
res_x = project.GetSetting("timelineResolutionWidth") if hasattr(project, "GetSetting") else "1920"
|
|
50
|
+
res_y = project.GetSetting("timelineResolutionHeight") if hasattr(project, "GetSetting") else "1080"
|
|
51
|
+
print(json.dumps({
|
|
52
|
+
"success": True,
|
|
53
|
+
"host": "resolve",
|
|
54
|
+
"operation": "inspectActive",
|
|
55
|
+
"projectName": project.GetName(),
|
|
56
|
+
"timelineName": tl_name,
|
|
57
|
+
"videoTracks": video_tracks,
|
|
58
|
+
"audioTracks": audio_tracks,
|
|
59
|
+
"currentTimecode": timecode,
|
|
60
|
+
"fps": fps or "24",
|
|
61
|
+
"resolutionWidth": res_x or "1920",
|
|
62
|
+
"resolutionHeight": res_y or "1080"
|
|
63
|
+
}))
|
|
64
|
+
return
|
|
65
|
+
|
|
35
66
|
elif action == "setupColorManagement":
|
|
36
|
-
mode = args.get("color_space_mode", "automatic").lower()
|
|
67
|
+
mode = str(args.get("color_space_mode", "automatic")).lower()
|
|
37
68
|
try:
|
|
38
69
|
project.SetSetting("colorScienceMode", "davinciYRGBColorManaged")
|
|
39
|
-
|
|
40
70
|
if mode == "automatic":
|
|
41
71
|
project.SetSetting("automaticColorManagement", "1")
|
|
42
72
|
print(json.dumps({
|
|
43
|
-
"success": True,
|
|
44
|
-
"
|
|
73
|
+
"success": True,
|
|
74
|
+
"mode": "automatic",
|
|
75
|
+
"message": "Applied Automatic DaVinci YRGB Color Management (RCM)."
|
|
45
76
|
}))
|
|
46
77
|
else:
|
|
78
|
+
in_cs = args.get("input_color_space", "ARRI LogC3")
|
|
79
|
+
tl_cs = args.get("timeline_color_space", "DaVinci WG/Intermediate")
|
|
80
|
+
out_cs = args.get("output_color_space", "Rec.709 Gamma 2.4")
|
|
47
81
|
project.SetSetting("automaticColorManagement", "0")
|
|
48
82
|
project.SetSetting("colorSpaceManager", "Custom")
|
|
49
|
-
project.SetSetting("colorSpaceInput",
|
|
50
|
-
project.SetSetting("colorSpaceTimeline",
|
|
51
|
-
project.SetSetting("colorSpaceOutput",
|
|
52
|
-
|
|
83
|
+
project.SetSetting("colorSpaceInput", in_cs)
|
|
84
|
+
project.SetSetting("colorSpaceTimeline", tl_cs)
|
|
85
|
+
project.SetSetting("colorSpaceOutput", out_cs)
|
|
53
86
|
print(json.dumps({
|
|
54
|
-
"success": True,
|
|
55
|
-
"
|
|
87
|
+
"success": True,
|
|
88
|
+
"mode": "custom",
|
|
89
|
+
"inputColorSpace": in_cs,
|
|
90
|
+
"timelineColorSpace": tl_cs,
|
|
91
|
+
"outputColorSpace": out_cs,
|
|
92
|
+
"message": f"Applied Custom RCM: {in_cs} -> {tl_cs} -> {out_cs}."
|
|
56
93
|
}))
|
|
57
94
|
except Exception as e:
|
|
58
95
|
print(json.dumps({"success": False, "error": f"Failed to setup RCM: {str(e)}"}))
|
|
59
96
|
return
|
|
60
97
|
|
|
61
|
-
elif action
|
|
62
|
-
media_path = args.get("mediaPath")
|
|
98
|
+
elif action in ("importAndAssemble", "insertClipAtPlayhead"):
|
|
99
|
+
media_path = args.get("mediaPath") or args.get("input")
|
|
63
100
|
if not media_path or not os.path.exists(media_path):
|
|
64
101
|
print(json.dumps({"success": False, "error": f"Media path not found: {media_path}"}))
|
|
65
102
|
return
|
|
@@ -69,41 +106,137 @@ def run_bridge(args):
|
|
|
69
106
|
if not imported_clips:
|
|
70
107
|
print(json.dumps({"success": False, "error": "No media found or imported."}))
|
|
71
108
|
return
|
|
72
|
-
|
|
109
|
+
|
|
73
110
|
fps = str(args.get("fps", "auto")).lower()
|
|
74
111
|
res_x = str(args.get("resolution_x", "auto")).lower()
|
|
75
112
|
res_y = str(args.get("resolution_y", "auto")).lower()
|
|
76
|
-
|
|
113
|
+
|
|
77
114
|
if fps == "auto" or res_x == "auto" or res_y == "auto":
|
|
78
115
|
first_clip = imported_clips[0]
|
|
79
|
-
|
|
80
116
|
if fps == "auto":
|
|
81
|
-
detected_fps = first_clip.GetClipProperty("FPS")
|
|
82
|
-
fps = str(detected_fps) if detected_fps else "
|
|
83
|
-
|
|
117
|
+
detected_fps = first_clip.GetClipProperty("FPS") if hasattr(first_clip, "GetClipProperty") else None
|
|
118
|
+
fps = str(detected_fps) if detected_fps else "24"
|
|
84
119
|
if res_x == "auto" or res_y == "auto":
|
|
85
|
-
detected_res = first_clip.GetClipProperty("Resolution")
|
|
120
|
+
detected_res = first_clip.GetClipProperty("Resolution") if hasattr(first_clip, "GetClipProperty") else None
|
|
86
121
|
if detected_res and "x" in str(detected_res):
|
|
87
122
|
parts = str(detected_res).split("x")
|
|
88
123
|
res_x, res_y = parts[0], parts[1]
|
|
89
124
|
else:
|
|
90
|
-
res_x, res_y = "
|
|
125
|
+
res_x, res_y = "1920", "1080"
|
|
91
126
|
|
|
92
127
|
project.SetSetting("timelineFrameRate", fps)
|
|
93
128
|
project.SetSetting("timelineResolutionWidth", res_x)
|
|
94
129
|
project.SetSetting("timelineResolutionHeight", res_y)
|
|
95
|
-
|
|
130
|
+
|
|
96
131
|
if not timeline:
|
|
97
|
-
|
|
98
|
-
|
|
132
|
+
timeline_name = args.get("timelineName") or "Causyne_Automated_Timeline"
|
|
133
|
+
timeline = mediaPool.CreateEmptyTimeline(timeline_name)
|
|
134
|
+
|
|
135
|
+
if args.get("timecode") and hasattr(timeline, "SetCurrentTimecode"):
|
|
136
|
+
timeline.SetCurrentTimecode(str(args.get("timecode")))
|
|
137
|
+
|
|
99
138
|
mediaPool.AppendToTimeline(imported_clips)
|
|
100
|
-
|
|
139
|
+
|
|
140
|
+
if args.get("markerName") and hasattr(timeline, "AddMarker"):
|
|
141
|
+
frame_id = int(args.get("markerFrame", 0))
|
|
142
|
+
marker_color = str(args.get("markerColor", "Blue"))
|
|
143
|
+
marker_name = str(args.get("markerName"))
|
|
144
|
+
marker_note = str(args.get("markerNote", "Added by Causyne Agent"))
|
|
145
|
+
timeline.AddMarker(frame_id, marker_color, marker_name, marker_note, 1)
|
|
146
|
+
|
|
147
|
+
print(json.dumps({
|
|
148
|
+
"success": True,
|
|
149
|
+
"action": action,
|
|
150
|
+
"timelineName": timeline.GetName(),
|
|
151
|
+
"importedCount": len(imported_clips),
|
|
152
|
+
"resolution": f"{res_x}x{res_y}",
|
|
153
|
+
"fps": fps,
|
|
154
|
+
"message": f"Imported {len(imported_clips)} clip(s) into timeline '{timeline.GetName()}' ({res_x}x{res_y} @ {fps}fps)."
|
|
155
|
+
}))
|
|
156
|
+
except Exception as e:
|
|
157
|
+
print(json.dumps({"success": False, "error": f"Failed during media import/assembly: {str(e)}"}))
|
|
158
|
+
return
|
|
159
|
+
|
|
160
|
+
elif action == "addMarker":
|
|
161
|
+
if not timeline:
|
|
162
|
+
print(json.dumps({"success": False, "error": "No active timeline in DaVinci Resolve."}))
|
|
163
|
+
return
|
|
164
|
+
try:
|
|
165
|
+
frame_id = int(args.get("frameId", 0))
|
|
166
|
+
color = str(args.get("markerColor", "Blue"))
|
|
167
|
+
name = str(args.get("markerName", "Causyne Marker"))
|
|
168
|
+
note = str(args.get("markerNote", ""))
|
|
169
|
+
duration = int(args.get("duration", 1))
|
|
170
|
+
ok = timeline.AddMarker(frame_id, color, name, note, duration)
|
|
171
|
+
print(json.dumps({
|
|
172
|
+
"success": bool(ok),
|
|
173
|
+
"timelineName": timeline.GetName(),
|
|
174
|
+
"frameId": frame_id,
|
|
175
|
+
"markerName": name,
|
|
176
|
+
"markerColor": color
|
|
177
|
+
}))
|
|
178
|
+
except Exception as e:
|
|
179
|
+
print(json.dumps({"success": False, "error": f"Failed to add marker: {str(e)}"}))
|
|
180
|
+
return
|
|
181
|
+
|
|
182
|
+
elif action == "applyLutOrGrade":
|
|
183
|
+
if not timeline:
|
|
184
|
+
print(json.dumps({"success": False, "error": "No active timeline in DaVinci Resolve."}))
|
|
185
|
+
return
|
|
186
|
+
try:
|
|
187
|
+
track_idx = int(args.get("trackIndex", 1))
|
|
188
|
+
items = timeline.GetItemListInTrack("video", track_idx) if hasattr(timeline, "GetItemListInTrack") else []
|
|
189
|
+
if not items:
|
|
190
|
+
print(json.dumps({"success": False, "error": f"No video clips found on track {track_idx}."}))
|
|
191
|
+
return
|
|
192
|
+
clip = items[0]
|
|
193
|
+
lut_path = args.get("lutPath")
|
|
194
|
+
node_idx = int(args.get("nodeIndex", 1))
|
|
195
|
+
if lut_path and hasattr(clip, "SetLUT"):
|
|
196
|
+
clip.SetLUT(node_idx, str(lut_path))
|
|
197
|
+
cdl = args.get("cdl")
|
|
198
|
+
if isinstance(cdl, dict) and hasattr(clip, "SetCDL"):
|
|
199
|
+
clip.SetCDL({
|
|
200
|
+
"NodeIndex": str(node_idx),
|
|
201
|
+
"Slope": str(cdl.get("slope", "1.0 1.0 1.0")),
|
|
202
|
+
"Offset": str(cdl.get("offset", "0.0 0.0 0.0")),
|
|
203
|
+
"Power": str(cdl.get("power", "1.0 1.0 1.0")),
|
|
204
|
+
"Saturation": str(cdl.get("saturation", "1.0"))
|
|
205
|
+
})
|
|
206
|
+
print(json.dumps({
|
|
207
|
+
"success": True,
|
|
208
|
+
"timelineName": timeline.GetName(),
|
|
209
|
+
"gradedClips": len(items),
|
|
210
|
+
"nodeIndex": node_idx
|
|
211
|
+
}))
|
|
212
|
+
except Exception as e:
|
|
213
|
+
print(json.dumps({"success": False, "error": f"Failed to apply LUT/CDL grade: {str(e)}"}))
|
|
214
|
+
return
|
|
215
|
+
|
|
216
|
+
elif action == "renderTimeline":
|
|
217
|
+
try:
|
|
218
|
+
preset_name = args.get("presetName")
|
|
219
|
+
if preset_name and hasattr(project, "LoadRenderPreset"):
|
|
220
|
+
project.LoadRenderPreset(str(preset_name))
|
|
221
|
+
render_settings = {}
|
|
222
|
+
if args.get("targetDir"):
|
|
223
|
+
render_settings["TargetDir"] = str(args.get("targetDir"))
|
|
224
|
+
if args.get("customName"):
|
|
225
|
+
render_settings["CustomName"] = str(args.get("customName"))
|
|
226
|
+
if render_settings and hasattr(project, "SetRenderSettings"):
|
|
227
|
+
project.SetRenderSettings(render_settings)
|
|
228
|
+
job_id = project.AddRenderJob() if hasattr(project, "AddRenderJob") else "job_1"
|
|
229
|
+
started = False
|
|
230
|
+
if args.get("startRender", True) and hasattr(project, "StartRendering"):
|
|
231
|
+
started = bool(project.StartRendering([job_id]))
|
|
101
232
|
print(json.dumps({
|
|
102
|
-
"success": True,
|
|
103
|
-
"
|
|
233
|
+
"success": True,
|
|
234
|
+
"jobId": job_id,
|
|
235
|
+
"started": started,
|
|
236
|
+
"targetDir": render_settings.get("TargetDir")
|
|
104
237
|
}))
|
|
105
238
|
except Exception as e:
|
|
106
|
-
print(json.dumps({"success": False, "error": f"Failed
|
|
239
|
+
print(json.dumps({"success": False, "error": f"Failed to queue render job: {str(e)}"}))
|
|
107
240
|
return
|
|
108
241
|
|
|
109
242
|
else:
|
|
@@ -116,4 +249,4 @@ if __name__ == "__main__":
|
|
|
116
249
|
args = json.loads(raw_args)
|
|
117
250
|
run_bridge(args)
|
|
118
251
|
except Exception as e:
|
|
119
|
-
print(json.dumps({"success": False, "error": f"Python Bridge Error: {str(e)}"}))
|
|
252
|
+
print(json.dumps({"success": False, "error": f"Python Bridge Error: {str(e)}"}))
|
package/src/toolPacks.js
CHANGED
|
@@ -43,6 +43,7 @@ export const PACKS = {
|
|
|
43
43
|
// Stage 1 of the game cascade calls check_system_specs to verify the
|
|
44
44
|
// engine, so it must travel with this pack as well as with media.
|
|
45
45
|
'check_system_specs',
|
|
46
|
+
'creative_apps',
|
|
46
47
|
'godot_act',
|
|
47
48
|
'game_build_html5',
|
|
48
49
|
'game_asset_fetch',
|
|
@@ -319,7 +320,8 @@ download on your own initiative.
|
|
|
319
320
|
When the user asks you to build, create, test, expand, or develop a game, follow these rules:
|
|
320
321
|
|
|
321
322
|
- **Browser / Three.js / WebGL / Python Games**: If the user explicitly requests a Three.js, WebGL, Canvas, HTML5, or Python game (or mentions libraries like Three.js, 3js, NumPy, Pygame), you do NOT need Godot. Build the game directly in HTML/JS/CSS or Python using \`fs_write\` (or \`file_write\`) and run/verify using \`sysRun\` or \`game_build_html5\`.
|
|
322
|
-
- **Godot / Full Engine Games**: When building a full engine game (Godot), follow the 7-stage production methodology using \`godot_act\`, \`game_lore_forge\`, \`game_asset_harvest\`, \`game_scene_build\`, and verify with \`game_web_runtime_inspector\` and \`game_canvas_audit
|
|
323
|
+
- **Godot / Full Engine Games**: When building a full engine game (Godot), follow the 7-stage production methodology using \`godot_act\`, \`game_lore_forge\`, \`game_asset_harvest\`, \`game_scene_build\`, and verify with \`game_web_runtime_inspector\` and \`game_canvas_audit\`.
|
|
324
|
+
- **Unreal Engine 5 / Unity / Native Engine Bridge**: When working with Unreal Engine 5 (\`.uproject\`, Remote Control HTTP port 30010, Python editor scripts) or Unity (\`Assets/\`, C# Editor \`-batchmode\`), use \`creative_apps\` with \`action: "engine_bridge"\` (\`engine: "unreal" | "unity" | "godot"\`).`
|
|
323
325
|
};
|
|
324
326
|
// ---------------------------------------------------------------------------
|
|
325
327
|
// Intent routing.
|
|
@@ -327,9 +329,9 @@ When the user asks you to build, create, test, expand, or develop a game, follow
|
|
|
327
329
|
// Every matcher below is anchored on word boundaries and tested against the
|
|
328
330
|
// raw prompt only.
|
|
329
331
|
// ---------------------------------------------------------------------------
|
|
330
|
-
const GAME_INTENT = /\b(game|games|gamedev|godot|unity|unreal|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight|simulator|simulation|simulasi)\b|\.(tscn|gd)\b|[-_]3d\b|\b3d[-_]/i;
|
|
332
|
+
const GAME_INTENT = /\b(game|games|gamedev|godot|unity|unreal|ue5|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight|simulator|simulation|simulasi)\b|\.(tscn|gd|uproject|umap)\b|[-_]3d\b|\b3d[-_]/i;
|
|
331
333
|
const WEB_INTENT = /\b(web|webpage|website|frontend|front-end|landing page|homepage|dashboard|portfolio|html|css|scss|tailwind|bootstrap|react|vue|svelte|angular|next\.?js|nuxt|astro|ui|ux|user interface|web app|webapp|spa|dom|responsive|ui forge|component forge|component generation|ui component|three?\.?js|three?js|webgl|canvas|babylon)\b/i;
|
|
332
|
-
const MEDIA_INTENT = /\b(image|images|picture|photo|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b/i;
|
|
334
|
+
const MEDIA_INTENT = /\b(image|images|picture|photo|photoshop|premiere|after\s*effects|illustrator|indesign|media\s*encoder|uxp|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b|\.(psd|prproj|aep|ai|indd|ccx)\b/i;
|
|
333
335
|
const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|compress|extract|clipboard|copy to clipboard|print|printer|open in browser|launch app|computer use|vision grounding|desktop vision|gui agent|coordinate click|desktop control)\b/i;
|
|
334
336
|
const ADVANCED_INTENT = /\b(pdf|document|proposal|screenplay|shotlist|shot list|voiceover|dubbing|forge a tool|custom tool|new tool|plugin|plugins|custom plugin|subagent|sub-agent|parallel agent|swarm|ast|symbols|refactor across)\b/i;
|
|
335
337
|
const REVERSE_ENGINEERING_INTENT = /\b(rea|rea-agents|decompile|decompiling|decompilation|disassemble|disassembly|disassembling|binary|binaries|apk|aab|dex|elf|mach-o|pe|coff|reverse[\s_-]?engineer(ing)?|sourcemap|deobfuscate|asar|symbols|ghidra|rizin|radare|hopper|frida|hook script|mitigations|pie|canary|clean[- ]?room)\b|\.(apk|aab|dex|dylib|so|dll|exe|asar)\b/i;
|
package/src/toolPacks.ts
CHANGED
|
@@ -69,6 +69,7 @@ export const PACKS: Record<PackName, string[]> = {
|
|
|
69
69
|
// Stage 1 of the game cascade calls check_system_specs to verify the
|
|
70
70
|
// engine, so it must travel with this pack as well as with media.
|
|
71
71
|
'check_system_specs',
|
|
72
|
+
'creative_apps',
|
|
72
73
|
'godot_act',
|
|
73
74
|
'game_build_html5',
|
|
74
75
|
'game_asset_fetch',
|
|
@@ -357,7 +358,8 @@ download on your own initiative.
|
|
|
357
358
|
When the user asks you to build, create, test, expand, or develop a game, follow these rules:
|
|
358
359
|
|
|
359
360
|
- **Browser / Three.js / WebGL / Python Games**: If the user explicitly requests a Three.js, WebGL, Canvas, HTML5, or Python game (or mentions libraries like Three.js, 3js, NumPy, Pygame), you do NOT need Godot. Build the game directly in HTML/JS/CSS or Python using \`fs_write\` (or \`file_write\`) and run/verify using \`sysRun\` or \`game_build_html5\`.
|
|
360
|
-
- **Godot / Full Engine Games**: When building a full engine game (Godot), follow the 7-stage production methodology using \`godot_act\`, \`game_lore_forge\`, \`game_asset_harvest\`, \`game_scene_build\`, and verify with \`game_web_runtime_inspector\` and \`game_canvas_audit
|
|
361
|
+
- **Godot / Full Engine Games**: When building a full engine game (Godot), follow the 7-stage production methodology using \`godot_act\`, \`game_lore_forge\`, \`game_asset_harvest\`, \`game_scene_build\`, and verify with \`game_web_runtime_inspector\` and \`game_canvas_audit\`.
|
|
362
|
+
- **Unreal Engine 5 / Unity / Native Engine Bridge**: When working with Unreal Engine 5 (\`.uproject\`, Remote Control HTTP port 30010, Python editor scripts) or Unity (\`Assets/\`, C# Editor \`-batchmode\`), use \`creative_apps\` with \`action: "engine_bridge"\` (\`engine: "unreal" | "unity" | "godot"\`).`
|
|
361
363
|
};
|
|
362
364
|
|
|
363
365
|
// ---------------------------------------------------------------------------
|
|
@@ -367,11 +369,11 @@ When the user asks you to build, create, test, expand, or develop a game, follow
|
|
|
367
369
|
// raw prompt only.
|
|
368
370
|
// ---------------------------------------------------------------------------
|
|
369
371
|
|
|
370
|
-
const GAME_INTENT = /\b(game|games|gamedev|godot|unity|unreal|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight|simulator|simulation|simulasi)\b|\.(tscn|gd)\b|[-_]3d\b|\b3d[-_]/i;
|
|
372
|
+
const GAME_INTENT = /\b(game|games|gamedev|godot|unity|unreal|ue5|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight|simulator|simulation|simulasi)\b|\.(tscn|gd|uproject|umap)\b|[-_]3d\b|\b3d[-_]/i;
|
|
371
373
|
|
|
372
374
|
const WEB_INTENT = /\b(web|webpage|website|frontend|front-end|landing page|homepage|dashboard|portfolio|html|css|scss|tailwind|bootstrap|react|vue|svelte|angular|next\.?js|nuxt|astro|ui|ux|user interface|web app|webapp|spa|dom|responsive|ui forge|component forge|component generation|ui component|three?\.?js|three?js|webgl|canvas|babylon)\b/i;
|
|
373
375
|
|
|
374
|
-
const MEDIA_INTENT = /\b(image|images|picture|photo|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b/i;
|
|
376
|
+
const MEDIA_INTENT = /\b(image|images|picture|photo|photoshop|premiere|after\s*effects|illustrator|indesign|media\s*encoder|uxp|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b|\.(psd|prproj|aep|ai|indd|ccx)\b/i;
|
|
375
377
|
|
|
376
378
|
const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|compress|extract|clipboard|copy to clipboard|print|printer|open in browser|launch app|computer use|vision grounding|desktop vision|gui agent|coordinate click|desktop control)\b/i;
|
|
377
379
|
|