Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
refactor(client): delete nodeDefinitions/ folder and aggregator — backend is SSOT
trohitgfc10fd3c0e93
diff --git a/client/src/Dashboard.tsx b/client/src/Dashboard.tsxindex 9e412338..390f5f49 100644--- a/client/src/Dashboard.tsx+++ b/client/src/Dashboard.tsx@@ -13,7 +13,7 @@ import {Edge,} from 'reactflow';import { featureFlags } from './lib/featureFlags';-import { prefetchAllNodeSpecs, getCachedNodeSpec } from './lib/nodeSpec';+import { prefetchAllNodeSpecs, listCachedNodeSpecs } from './lib/nodeSpec';import AIAgentNode from './components/AIAgentNode';import SquareNode from './components/SquareNode';import TriggerNode from './components/TriggerNode';@@ -22,7 +22,6 @@ import TeamMonitorNode from './components/TeamMonitorNode';import StartNode from './components/StartNode';import ConditionalEdge from './components/ConditionalEdge';import NodeContextMenu from './components/ui/NodeContextMenu';-import { nodeDefinitions } from './nodeDefinitions';import { getNodeTypesInGroup } from './lib/nodeSpec';import ParameterPanel from './ParameterPanel';import LocationParameterPanel from './components/LocationParameterPanel';@@ -85,16 +84,18 @@ const COMPONENT_BY_KIND: Record<string, React.ComponentType<any>> = {// fallback collapses to a single `SquareNode` default.const createNodeTypes = (): Record<string, React.ComponentType<any>> => {const types: Record<string, React.ComponentType<any>> = {};- Object.keys(nodeDefinitions).forEach(type => {- const kind = getCachedNodeSpec(type)?.componentKind;+ // Cache-driven enumeration: empty on cold boot, filled once+ // prefetchAllNodeSpecs resolves and `specsReady` triggers a rebuild.+ listCachedNodeSpecs().forEach(spec => {+ const kind = spec.componentKind;if (kind && COMPONENT_BY_KIND[kind]) {- types[type] = COMPONENT_BY_KIND[kind];- } else if (type === 'teamMonitor') {- types[type] = TeamMonitorNode;- } else if (type === 'masterSkill') {- types[type] = ToolkitNode;+ types[spec.type] = COMPONENT_BY_KIND[kind];+ } else if (spec.type === 'teamMonitor') {+ types[spec.type] = TeamMonitorNode;+ } else if (spec.type === 'masterSkill') {+ types[spec.type] = ToolkitNode;} else {- types[type] = SquareNode;+ types[spec.type] = SquareNode;}});return types;@@ -1240,7 +1241,6 @@ const DashboardContent: React.FC = () => {}}>{componentPaletteVisible && (<ComponentPalette- nodeDefinitions={nodeDefinitions}searchQuery={searchQuery}onSearchChange={setSearchQuery}collapsedSections={collapsedSections}diff --git a/client/src/adapters/__tests__/nodeSpecToDescription.test.ts b/client/src/adapters/__tests__/nodeSpecToDescription.test.tsnew file mode 100644index 00000000..d15a4669--- /dev/null+++ b/client/src/adapters/__tests__/nodeSpecToDescription.test.ts@@ -0,0 +1,255 @@+/**+ * Contract sweep over the NodeSpec → INodeTypeDescription adapter.+ *+ * Replaces the pre-Wave 11 `nodeDefinitions/__tests__/contract.test.ts`+ * which validated handwritten registry entries. After Wave 10's+ * schema-driven migration the adapter is the only seam that produces+ * an `INodeTypeDescription` for downstream consumers, so the contract+ * sweep moved here. A regression in `nodeSpecToDescription` (missing+ * required field, wrong handle shape, broken JSON Schema lift) now+ * fails loudly before any consumer sees the bad output.+ */++import { describe, expect, it } from 'vitest';+import { nodeSpecToDescription, type NodeSpec } from '../nodeSpecToDescription';+import {+ formatIssues,+ validateNodeDefinition,+} from '../../test/nodeDefinitionContract';++const expectValid = (spec: NodeSpec): void => {+ const def = nodeSpecToDescription(spec);+ const issues = validateNodeDefinition(spec.type, def);+ expect(issues, formatIssues(issues)).toEqual([]);+};++describe('nodeSpecToDescription contract', () => {+ it('produces a contract-valid description for a minimal spec', () => {+ expectValid({+ type: 'minimalNode',+ displayName: 'Minimal Node',+ icon: '🟢',+ group: ['utility'],+ version: 1,+ });+ });++ it('produces a contract-valid description with full optional fields', () => {+ expectValid({+ type: 'fullNode',+ displayName: 'Full Node',+ icon: '🔧',+ group: ['utility', 'tool'],+ version: 2,+ subtitle: 'A node with everything',+ description: 'Covers every adapter codepath.',+ credentials: ['openai', 'anthropic'],+ uiHints: { hasSkills: true, isToolPanel: false },+ color: '#bd93f9',+ componentKind: 'tool',+ hideOutputHandle: false,+ });+ });++ it('lifts JSON Schema input properties into INodeProperties[]', () => {+ const spec: NodeSpec = {+ type: 'paramNode',+ displayName: 'Param Node',+ icon: '⚙️',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: {+ mode: { type: 'string', enum: ['fast', 'slow'], default: 'fast' },+ count: { type: 'integer', minimum: 1, maximum: 10 },+ enabled: { type: 'boolean', default: true },+ notes: { type: 'string' },+ },+ required: ['mode', 'count'],+ },+ };+ expectValid(spec);++ const def = nodeSpecToDescription(spec);+ expect(def.properties).toHaveLength(4);++ const mode = def.properties!.find((p) => p.name === 'mode')!;+ expect(mode.type).toBe('options');+ expect(mode.required).toBe(true);+ expect(mode.options).toEqual([+ { name: 'fast', value: 'fast' },+ { name: 'slow', value: 'slow' },+ ]);++ const count = def.properties!.find((p) => p.name === 'count')!;+ expect(count.type).toBe('number');+ expect(count.required).toBe(true);+ expect(count.typeOptions).toEqual({ minValue: 1, maxValue: 10 });++ const enabled = def.properties!.find((p) => p.name === 'enabled')!;+ expect(enabled.type).toBe('boolean');+ expect(enabled.default).toBe(true);+ expect(enabled.required).toBeUndefined();+ });++ it('takes the non-null branch of Pydantic Optional[T] anyOf', () => {+ const spec: NodeSpec = {+ type: 'optNode',+ displayName: 'Optional Node',+ icon: '🔵',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: {+ maybe: { anyOf: [{ type: 'string' }, { type: 'null' }] },+ },+ },+ };+ expectValid(spec);+ const def = nodeSpecToDescription(spec);+ expect(def.properties![0].type).toBe('string');+ });++ it.each([+ ['code editor hint', { editor: 'code' }, 'code'],+ ['json editor hint', { editor: 'json' }, 'json'],+ ['file widget hint', { widget: 'file' }, 'file'],+ ['format binary', { format: 'binary' }, 'file'],+ ['format date-time', { format: 'date-time' }, 'dateTime'],+ ['format date', { format: 'date' }, 'dateTime'],+ ] as const)('maps editor/widget/format hints (%s)', (_label, hint, expected) => {+ const spec: NodeSpec = {+ type: 'hintNode',+ displayName: 'Hint Node',+ icon: '✨',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: { field: { type: 'string', ...hint } },+ },+ };+ expectValid(spec);+ expect(nodeSpecToDescription(spec).properties![0].type).toBe(expected);+ });++ it('lifts uiHints-nested editor hint as an alternate location', () => {+ const spec: NodeSpec = {+ type: 'nestedHintNode',+ displayName: 'Nested Hint',+ icon: '🪄',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: { script: { type: 'string', uiHints: { editor: 'code' } } },+ },+ };+ expectValid(spec);+ expect(nodeSpecToDescription(spec).properties![0].type).toBe('code');+ });++ it('lifts displayOptions, placeholder, validation, and typeOptions hints', () => {+ const spec: NodeSpec = {+ type: 'fancyNode',+ displayName: 'Fancy Node',+ icon: '✨',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: {+ host: {+ type: 'string',+ placeholder: 'api.example.com',+ displayOptions: { show: { mode: ['custom'] } },+ validation: [{ type: 'regex', properties: { regex: '^https?://' } }],+ loadOptionsMethod: 'getHosts',+ loadOptionsDependsOn: ['mode'],+ password: false,+ rows: 1,+ noDataExpression: true,+ },+ },+ },+ };+ expectValid(spec);++ const host = nodeSpecToDescription(spec).properties![0];+ expect(host.placeholder).toBe('api.example.com');+ expect(host.displayOptions).toEqual({ show: { mode: ['custom'] } });+ expect(host.validation).toEqual([+ { type: 'regex', properties: { regex: '^https?://' } },+ ]);+ expect(host.noDataExpression).toBe(true);+ expect(host.typeOptions).toMatchObject({+ loadOptionsMethod: 'getHosts',+ loadOptionsDependsOn: ['mode'],+ password: false,+ rows: 1,+ });+ });++ it('emits credentials in the required {name} object form', () => {+ const def = nodeSpecToDescription({+ type: 'credNode',+ displayName: 'Cred Node',+ icon: '🔑',+ group: ['integration'],+ version: 1,+ credentials: ['openai', 'gemini'],+ });+ expect(def.credentials).toEqual([{ name: 'openai' }, { name: 'gemini' }]);+ });++ it('uses uiHints.options (rich labels) over enum-derived bare options', () => {+ const spec: NodeSpec = {+ type: 'richOptionsNode',+ displayName: 'Rich Options',+ icon: '🎨',+ group: ['utility'],+ version: 1,+ inputs: {+ properties: {+ provider: {+ type: 'string',+ enum: ['openai', 'anthropic'],+ uiHints: {+ options: [+ { name: 'OpenAI GPT-4', value: 'openai' },+ { name: 'Anthropic Claude', value: 'anthropic' },+ ],+ },+ },+ },+ },+ };+ expectValid(spec);+ const provider = nodeSpecToDescription(spec).properties![0];+ expect(provider.options).toEqual([+ { name: 'OpenAI GPT-4', value: 'openai' },+ { name: 'Anthropic Claude', value: 'anthropic' },+ ]);+ });++ it('always emits a single main input and output handle', () => {+ const def = nodeSpecToDescription({+ type: 'handleNode',+ displayName: 'Handle Node',+ icon: '🔌',+ group: ['utility'],+ version: 1,+ });+ expect(def.inputs).toEqual(['main']);+ expect(def.outputs).toEqual(['main']);+ });++ it('preserves uiHints object as-is on the description', () => {+ const def = nodeSpecToDescription({+ type: 'hintsNode',+ displayName: 'Hints Node',+ icon: '💡',+ group: ['utility'],+ version: 1,+ uiHints: { isMasterSkillEditor: true, hasCodeEditor: false },+ });+ expect(def.uiHints).toEqual({ isMasterSkillEditor: true, hasCodeEditor: false });+ });+});diff --git a/client/src/components/GenericNode.tsx b/client/src/components/GenericNode.tsxindex bb0bc87e..2e680c14 100644--- a/client/src/components/GenericNode.tsx+++ b/client/src/components/GenericNode.tsx@@ -1,6 +1,5 @@import React, { useState, useEffect, useRef, useCallback } from 'react';import { Handle, Position, NodeProps } from 'reactflow';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription } from '../lib/nodeSpec';import { resolveIcon, resolveLibraryIcon } from '../assets/icons';import { useNodeSpec } from '../lib/nodeSpec';@@ -22,7 +21,7 @@ const GenericNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectaconst isExecuting = executionStatus === 'executing' || executionStatus === 'waiting';// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback- const definition = type ? resolveNodeDescription(type, nodeDefinitions[type] ?? null) : null;+ const definition = type ? resolveNodeDescription(type) : null;// Wave 10.B: reactive spec subscription keeps the icon fresh the// moment the prefetch lands (no waiting for parent re-render).const iconSpec = useNodeSpec(type);diff --git a/client/src/components/ModelNode.tsx b/client/src/components/ModelNode.tsxindex 58177ff7..29a5f47d 100644--- a/client/src/components/ModelNode.tsx+++ b/client/src/components/ModelNode.tsx@@ -2,7 +2,6 @@ import React, { useMemo } from 'react';import { Handle, Position, NodeProps } from 'reactflow';import { NodeData } from '../types/NodeTypes';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription } from '../lib/nodeSpec';import { useWebSocket, useNodeStatus } from '../contexts/WebSocketContext';import { useAppTheme } from '../hooks/useAppTheme';@@ -33,7 +32,7 @@ const ModelNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectablconst isExecuting = executionStatus === 'executing' || executionStatus === 'waiting';// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback- const definition = resolveNodeDescription(type || '', nodeDefinitions[type as keyof typeof nodeDefinitions]);+ const definition = resolveNodeDescription(type || '');// Determine provider from node definition or typeconst provider = useMemo(() => {diff --git a/client/src/components/OutputPanel.tsx b/client/src/components/OutputPanel.tsxindex 1d610540..590dcf2d 100644--- a/client/src/components/OutputPanel.tsx+++ b/client/src/components/OutputPanel.tsx@@ -1,11 +1,11 @@import React, { useState } from 'react';import { useAppTheme } from '../hooks/useAppTheme';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { INodeOutputDefinition, NodeConnectionType } from '../types/INodeProperties';import { useDragVariable } from '../hooks/useDragVariable';import { isNodeInBackendGroup } from '../lib/nodeSpec';+import { resolveNodeDescription } from '../lib/nodeSpec';interface OutputPanelProps {nodeId: string;}@@ -146,7 +146,7 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {}}- const definition = nodeDefinitions[nodeType];+ const definition = resolveNodeDescription(nodeType);if (!definition) return [];if (!definition.outputs) {@@ -191,7 +191,7 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {// Helper to check if a node is a config/auxiliary node (connects to config handles)const isConfigNode = (nodeType: string | undefined): boolean => {if (!nodeType) return false;- const definition = nodeDefinitions[nodeType];+ const definition = resolveNodeDescription(nodeType);if (!definition) return false;// Config nodes typically have 'memory' or 'tool' in their group, or have no main inputconst groups = definition.group || [];@@ -212,7 +212,7 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {const sourceNode = currentWorkflow.nodes.find(n => n.id === sourceNodeId);if (!sourceNode?.type) return;- const sourceDefinition = nodeDefinitions[sourceNode.type];+ const sourceDefinition = resolveNodeDescription(sourceNode.type);if (!sourceDefinition) return;addedNodeIds.add(sourceNodeId);@@ -249,7 +249,7 @@ const OutputPanel: React.FC<OutputPanelProps> = ({ nodeId }) => {const targetNode = currentWorkflow.nodes.find(n => n.id === edge.target);if (!targetNode) continue;- const targetDef = nodeDefinitions[targetNode.type || ''];+ const targetDef = resolveNodeDescription(targetNode.type || '');const targetName = targetDef?.displayName || targetNode.type;// Find nodes connected to the parent's main input (non-config handles)diff --git a/client/src/components/ParameterRenderer.tsx b/client/src/components/ParameterRenderer.tsxindex 035c12ef..cad5d034 100644--- a/client/src/components/ParameterRenderer.tsx+++ b/client/src/components/ParameterRenderer.tsx@@ -6,7 +6,6 @@ import CodeEditor from './ui/CodeEditor';import DynamicParameterService from '../services/dynamicParameterService';import { useAppStore } from '../store/useAppStore';import { isNodeInBackendGroup } from '../lib/nodeSpec';-import { nodeDefinitions } from '../nodeDefinitions';import { useAppTheme } from '../hooks/useAppTheme';import { API_CONFIG } from '../config/api';import { useWebSocket } from '../contexts/WebSocketContext';@@ -17,6 +16,7 @@ import { shouldShowParameter } from '../utils/parameterVisibility';// Map node types to provider keys for AI model nodesimport { AI_MODEL_PROVIDER_MAP } from '../lib/aiModelProviders';+import { resolveNodeDescription } from '../lib/nodeSpec';// Map node types to provider keys for AI model nodes// Uses the centralized map from aiModelNodes + legacy aliasesconst NODE_TYPE_TO_PROVIDER: Record<string, string> = {@@ -1138,7 +1138,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({try {// Get the node definition to access methodsconst nodeType = selectedNode.data?.nodeType || selectedNode.type;- const nodeDef = nodeType ? nodeDefinitions[nodeType] : null;+ const nodeDef = nodeType ? resolveNodeDescription(nodeType) : null;let rawOptions: Array<{ value: any; name?: string; label?: string }> = [];const method = parameter.typeOptions.loadOptionsMethod;@@ -1195,7 +1195,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({const nodeType = selectedNode.data?.nodeType || selectedNode.type;// Wave 10.E: backend group membership with bundled-definition fallbackconst isAndroid = isNodeInBackendGroup(nodeType, 'android')- ?? (nodeDefinitions[nodeType]?.group ?? []).includes('android');+ ?? (resolveNodeDescription(nodeType)?.group ?? []).includes('android');if (!isAndroid) return;// Merge database params with current form params (current takes precedence)diff --git a/client/src/components/SquareNode.tsx b/client/src/components/SquareNode.tsxindex 54684e54..390ee73b 100644--- a/client/src/components/SquareNode.tsx+++ b/client/src/components/SquareNode.tsx@@ -2,7 +2,6 @@ import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react'import { Handle, Position, NodeProps } from 'reactflow';import { NodeData } from '../types/NodeTypes';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { useAppTheme } from '../hooks/useAppTheme';import { useWebSocket, useWhatsAppStatus } from '../contexts/WebSocketContext';import { getCachedNodeSpec, isNodeInBackendGroup, resolveNodeDescription, useNodeSpec } from '../lib/nodeSpec';@@ -79,7 +78,7 @@ const SquareNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectab// fallback for the brief window before the cache warms. No more local// type arrays; isNodeInBackendGroup returns undefined when the cache// is cold, in which case we read the bundled definition's group list.- const groupOf = (t: string | undefined): string[] => (t ? (nodeDefinitions[t]?.group ?? []) : []);+ const groupOf = (t: string | undefined): string[] => (t ? (resolveNodeDescription(t)?.group ?? []) : []);const inGroup = (t: string | undefined, g: string): boolean =>isNodeInBackendGroup(t, g) ?? groupOf(t).includes(g);const isGoogleMapsNode = inGroup(type, 'location');@@ -92,7 +91,7 @@ const SquareNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectab// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback. Flag off or// cache cold -> returns local nodeDefinitions entry unchanged.- const definition = resolveNodeDescription(type || '', nodeDefinitions[type as keyof typeof nodeDefinitions]);+ const definition = resolveNodeDescription(type || '');// Wave 10.E: backend group membership with bundled-definition fallbackconst isAndroidNode = inGroup(type, 'android');diff --git a/client/src/components/TeamMonitorNode.tsx b/client/src/components/TeamMonitorNode.tsxindex d2f279a2..6d6c523c 100644--- a/client/src/components/TeamMonitorNode.tsx+++ b/client/src/components/TeamMonitorNode.tsx@@ -2,7 +2,6 @@ import React, { useState, useEffect, useCallback, useMemo } from 'react';import { Handle, Position, NodeProps, useEdges, useNodes } from 'reactflow';import { NodeData } from '../types/NodeTypes';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription } from '../lib/nodeSpec';import { useAppTheme } from '../hooks/useAppTheme';import { useWebSocket } from '../contexts/WebSocketContext';@@ -47,7 +46,7 @@ const TeamMonitorNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnconst [isLoading, setIsLoading] = useState(false);// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback- const definition = resolveNodeDescription(type || '', nodeDefinitions[type as keyof typeof nodeDefinitions]);+ const definition = resolveNodeDescription(type || '');const nodeColor = definition?.defaults?.color || '#8b5cf6';// Find connected AI Employee/Orchestrator node to get workflow contextdiff --git a/client/src/components/ToolkitNode.tsx b/client/src/components/ToolkitNode.tsxindex 8caa6ebc..760ee151 100644--- a/client/src/components/ToolkitNode.tsx+++ b/client/src/components/ToolkitNode.tsx@@ -14,7 +14,6 @@ import React, { useState, useEffect, useRef, useCallback } from 'react';import { Handle, Position, NodeProps } from 'reactflow';import { NodeData } from '../types/NodeTypes';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription } from '../lib/nodeSpec';import { resolveIcon, resolveLibraryIcon } from '../assets/icons';import { useNodeSpec } from '../lib/nodeSpec';@@ -39,7 +38,7 @@ const ToolkitNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectaconst executionStatus = nodeStatus?.status || 'idle';// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback- const definition = resolveNodeDescription(type || '', nodeDefinitions[type as keyof typeof nodeDefinitions]);+ const definition = resolveNodeDescription(type || '');// Check if this is a toolkit node (rectangular) vs skill node (square)const isToolkitNode = type ? TOOLKIT_NODE_TYPES.includes(type) : false;diff --git a/client/src/components/TriggerNode.tsx b/client/src/components/TriggerNode.tsxindex 0e09590b..03ddc62c 100644--- a/client/src/components/TriggerNode.tsx+++ b/client/src/components/TriggerNode.tsx@@ -10,7 +10,6 @@ import React, { useState, useEffect, useRef, useCallback } from 'react';import { Handle, Position, NodeProps } from 'reactflow';import { NodeData } from '../types/NodeTypes';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription, useNodeSpec } from '../lib/nodeSpec';import { resolveIcon, resolveLibraryIcon } from '../assets/icons';import { useAppTheme } from '../hooks/useAppTheme';@@ -43,7 +42,7 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectaconst isExecuting = executionStatus === 'executing' || executionStatus === 'waiting';// Wave 6 Phase 3e: backend NodeSpec -> legacy fallback- const definition = resolveNodeDescription(type || '', nodeDefinitions[type as keyof typeof nodeDefinitions]);+ const definition = resolveNodeDescription(type || '');// Check configuration statususeEffect(() => {diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex e72946f0..754ee61d 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -1,6 +1,5 @@import React, { useState, useEffect } from 'react';import { useAppStore } from '../../store/useAppStore';-import { nodeDefinitions } from '../../nodeDefinitions';import { useWebSocket } from '../../contexts/WebSocketContext';import { Node, Edge } from 'reactflow';import { useDragVariable } from '../../hooks/useDragVariable';@@ -9,6 +8,7 @@ import { queryClient } from '../../lib/queryClient';import { getCachedNodeSpec } from '../../lib/nodeSpec';import { resolveIcon, resolveLibraryIcon, isImageIcon } from '../../assets/icons';+import { resolveNodeDescription } from '../../lib/nodeSpec';// ---------------------------------------------------------------------------// Backend-driven node output schema lookup.//@@ -148,7 +148,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =// Helper to check if a node is a config/auxiliary node (connects to config handles)const isConfigNode = (nodeType: string | undefined): boolean => {if (!nodeType) return false;- const definition = nodeDefinitions[nodeType];+ const definition = resolveNodeDescription(nodeType);if (!definition) return false;// Config nodes typically have 'memory' or 'tool' in their groupconst groups = definition.group || [];@@ -195,7 +195,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =const targetNode = nodes.find((node: Node) => node.id === outEdge.target);if (!targetNode) continue;- const targetDef = nodeDefinitions[targetNode.type || ''];+ const targetDef = resolveNodeDescription(targetNode.type || '');const targetName = targetDef?.displayName || targetNode.type;// Find nodes connected to the parent's main input (non-config handles)@@ -213,7 +213,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =const nodeDataPromises = edgesToProcess.map(async ({ edge, label, targetHandleLabel }) => {const sourceNode = nodes.find((node: Node) => node.id === edge.source);const nodeType = sourceNode?.type || '';- const nodeDef = nodeDefinitions[nodeType];+ const nodeDef = resolveNodeDescription(nodeType);// Determine output key from sourceHandle (edge-aware for multi-output nodes)let outputKey = 'output_0';diff --git a/client/src/components/parameterPanel/MasterSkillEditor.tsx b/client/src/components/parameterPanel/MasterSkillEditor.tsxindex 9906437c..1f3c3f5c 100644--- a/client/src/components/parameterPanel/MasterSkillEditor.tsx+++ b/client/src/components/parameterPanel/MasterSkillEditor.tsx@@ -48,7 +48,6 @@ import { toast } from 'sonner';import { useQuery, useQueryClient } from '@tanstack/react-query';import { useAppTheme } from '../../hooks/useAppTheme';import { useWebSocket } from '../../contexts/WebSocketContext';-import { skillNodes, SKILL_NODE_TYPES } from '../../nodeDefinitions/skillNodes';import { DUCKDUCKGO_ICON, BRAVE_SEARCH_ICON, SERPER_ICON, PERPLEXITY_ICON } from '../../assets/icons/search';import { resolveIcon, resolveLibraryIcon, isImageIcon } from '../../assets/icons';@@ -112,22 +111,6 @@ interface MasterSkillEditorProps {nodeId?: string; // For persisting skillsConfig to database}-// Lookup icon/color from skillNodes.ts definitions by skill name-const getNodeDefaults = (skillName: string): { icon: string; color: string } => {- for (const type of SKILL_NODE_TYPES) {- const nodeDef = skillNodes[type];- if (!nodeDef) continue;- const skillNameProp = nodeDef.properties?.find(p => p.name === 'skillName');- if (skillNameProp?.default === skillName) {- return {- icon: nodeDef.icon || '',- color: (nodeDef.defaults?.color as string) || '#6366F1'- };- }- }- return { icon: '', color: '' };-};-// Wave 10.B: shared icon dispatch — library components (`lobehub:*`),// filesystem SVGs (`asset:*`), data/http URIs, then emoji/text.const renderSkillIcon = (icon: string, size: number = 16) => {@@ -195,17 +178,14 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({error?: string;}>('scan_skill_folder', { folder: skillFolder });if (!response?.success || !response.skills) return [];- return response.skills.map(s => {- const defaults = getNodeDefaults(s.name);- return {- type: s.name,- skillName: s.name,- displayName: s.name.split('-').map(w => w[0].toUpperCase() + w.slice(1)).join(' '),- icon: defaults.icon || SKILL_ICON_OVERRIDES[s.name] || s.metadata?.icon || '',- color: defaults.color || s.metadata?.color || '#6366F1',- description: s.description || '',- };- });+ return response.skills.map(s => ({+ type: s.name,+ skillName: s.name,+ displayName: s.name.split('-').map(w => w[0].toUpperCase() + w.slice(1)).join(' '),+ icon: SKILL_ICON_OVERRIDES[s.name] || s.metadata?.icon || '',+ color: s.metadata?.color || '#6366F1',+ description: s.description || '',+ }));},enabled: !!skillFolder,staleTime: 60_000,@@ -237,29 +217,11 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({const availableSkills = useMemo<AvailableSkill[]>(() => {const skills: AvailableSkill[] = [];- // Add folder skills if available+ // Add folder skills (backend-sourced). The legacy fallback to+ // built-in skill nodeDefinitions has been removed — SKILL_NODE_TYPES+ // was ['masterSkill'] and the filter always returned an empty list.if (skillFolder && folderSkills.length > 0) {skills.push(...folderSkills);- } else {- // Add built-in skills from node definitions- SKILL_NODE_TYPES- .filter(type => type !== 'customSkill' && type !== 'masterSkill')- .forEach(type => {- const nodeDef = skillNodes[type];- if (!nodeDef) return;-- const skillNameProp = nodeDef.properties?.find(p => p.name === 'skillName');- const skillName = skillNameProp?.default as string || type;-- skills.push({- type,- skillName,- displayName: nodeDef.displayName || type,- icon: nodeDef.icon || '',- color: (nodeDef.defaults?.color as string) || '#6366F1',- description: nodeDef.description || ''- });- });}// Add user-created skillsdiff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex d896afec..7616bf4c 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -35,13 +35,13 @@ import { useWebSocket, CompactionStats } from '../../contexts/WebSocketContext';import { useUserSettingsQuery } from '../../hooks/useUserSettingsQuery';import { nodeParamsQueryKey, type NodeParametersResponse } from '../../hooks/useNodeParamsQuery';import { queryKeys, STALE_TIME } from '../../lib/queryConfig';-import { nodeDefinitions } from '../../nodeDefinitions';import { INodeTypeDescription, INodeProperties } from '../../types/INodeProperties';import { resolveIcon, resolveLibraryIcon, isImageIcon } from '../../assets/icons';import { ExecutionResult } from '../../services/executionService';import { Edge } from 'reactflow';import { shouldShowParameter } from '../../utils/parameterVisibility';+import { resolveNodeDescription } from '../../lib/nodeSpec';// Wave 10.G.3: retired the three tribal arrays `SKILL_NODE_TYPES`,// `TOOL_NODE_TYPES`, and `AGENT_WITH_SKILLS_TYPES`. The parameter panel// now reads `uiHints.hasSkills` / `uiHints.isToolPanel` /@@ -315,7 +315,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({const sourceNode = nodes.find((n: any) => n.id === edge.source);const nodeType = sourceNode?.type || '';if (nodeType === 'masterSkill') continue;- const def = nodeDefinitions[nodeType];+ const def = resolveNodeDescription(nodeType);skills.push({id: edge.source,name: sourceNode?.data?.label || def?.displayName || nodeType,diff --git a/client/src/components/parameterPanel/ToolSchemaEditor.tsx b/client/src/components/parameterPanel/ToolSchemaEditor.tsxindex a2731dcd..4038386f 100644--- a/client/src/components/parameterPanel/ToolSchemaEditor.tsx+++ b/client/src/components/parameterPanel/ToolSchemaEditor.tsx@@ -17,7 +17,6 @@ import { useToolSchema, ToolSchemaConfig } from '../../hooks/useToolSchema';import { useWebSocket } from '../../contexts/WebSocketContext';import { useAppStore } from '../../store/useAppStore';import { isNodeInBackendGroup } from '../../lib/nodeSpec';-import { nodeDefinitions } from '../../nodeDefinitions';import {Form,FormControl,@@ -36,6 +35,7 @@ import {import { Button } from '@/components/ui/button';import { Checkbox } from '@/components/ui/checkbox';+import { resolveNodeDescription } from '../../lib/nodeSpec';interface ToolSchemaEditorProps {nodeId: string;toolName: string;@@ -135,7 +135,7 @@ const ToolSchemaEditor: React.FC<ToolSchemaEditorProps> = ({ nodeId }) => {// Wave 10.G.5: render only for nodes whose spec declares// `uiHints.isAndroidToolkit`. The androidTool node registers that// hint; no frontend type-string fallback.- const currentNodeDef = currentNode?.type ? nodeDefinitions[currentNode.type] : undefined;+ const currentNodeDef = currentNode?.type ? resolveNodeDescription(currentNode.type) : undefined;const isAndroidTool = (currentNodeDef?.uiHints as any)?.isAndroidToolkit === true;if (!isAndroidTool) return null;diff --git a/client/src/components/ui/ComponentPalette.tsx b/client/src/components/ui/ComponentPalette.tsxindex f471fe74..5138c46a 100644--- a/client/src/components/ui/ComponentPalette.tsx+++ b/client/src/components/ui/ComponentPalette.tsx@@ -10,14 +10,14 @@ import { Input } from '@/components/ui/input';import { Skeleton } from '@/components/ui/skeleton';import { Search } from 'lucide-react';import { resolveIcon, resolveLibraryIcon, isImageIcon } from '../../assets/icons';-import { useNodeGroups, NodeGroupEntry } from '../../lib/nodeSpec';+import { useNodeGroups, listCachedNodeSpecs, NodeGroupEntry } from '../../lib/nodeSpec';+import { nodeSpecToDescription } from '../../adapters/nodeSpecToDescription';// Wave 10.B: palette section metadata (icon / label / color / visibility)// is fetched from the backend GET /api/schemas/nodes/groups endpoint.// Frontend retains zero per-category tables.const ComponentPalette: React.FC<ComponentPaletteProps> = ({- nodeDefinitions,searchQuery,onSearchChange,collapsedSections,@@ -48,7 +48,12 @@ const ComponentPalette: React.FC<ComponentPaletteProps> = ({const categorizedComponents = React.useMemo(() => {const categories: Record<string, INodeTypeDescription[]> = {};- const filteredDefinitions = Object.values(nodeDefinitions).filter((definition) => {+ // Cached NodeSpecs adapted to the INodeTypeDescription shape.+ // Re-reads every time groupIndex changes, so the palette fills in+ // once prefetchAllNodeSpecs resolves and the WS response lands.+ const definitions = listCachedNodeSpecs().map(nodeSpecToDescription);++ const filteredDefinitions = definitions.filter((definition) => {// Filter by backend allowlist (server/config/node_allowlist.json)if (!isVisible(definition.name)) return false;@@ -92,7 +97,7 @@ const ComponentPalette: React.FC<ComponentPaletteProps> = ({});return categories;- }, [nodeDefinitions, searchQuery, proMode, groupIndex, isVisible]);+ }, [searchQuery, proMode, groupIndex, isVisible]);const totalComponents = Object.values(categorizedComponents).reduce((acc, components) => acc + components.length,diff --git a/client/src/components/ui/ConsolePanel.tsx b/client/src/components/ui/ConsolePanel.tsxindex dbe2911e..6c3d5310 100644--- a/client/src/components/ui/ConsolePanel.tsx+++ b/client/src/components/ui/ConsolePanel.tsx@@ -15,13 +15,13 @@ import remarkGfm from 'remark-gfm';import remarkBreaks from 'remark-breaks';import { z } from 'zod';import { useWebSocket, ConsoleLogEntry } from '../../contexts/WebSocketContext';-import { nodeDefinitions } from '../../nodeDefinitions';import { useAppTheme } from '../../hooks/useAppTheme';import { useTheme } from '../../contexts/ThemeContext';import { Input } from '@/components/ui/input';import Prism from 'prismjs';import 'prismjs/components/prism-json';+import { resolveNodeDescription } from '../../lib/nodeSpec';// ---------------------------------------------------------------------------// Inline reusable bits (kept colocated per the colocation principle — none of// these have a second consumer in the codebase).@@ -143,7 +143,7 @@ const ConsolePanel: React.FC<ConsolePanelProps> = ({// Filter nodes via uiHints first, legacy name list as fallback.const chatTriggerNodes = useMemo(() =>nodes.filter(n => {- const def = n.type ? nodeDefinitions[n.type] : undefined;+ const def = n.type ? resolveNodeDescription(n.type) : undefined;return def?.uiHints?.isChatTrigger?? LEGACY_CHAT_TRIGGER_TYPES.includes(n.type || '');}),@@ -151,7 +151,7 @@ const ConsolePanel: React.FC<ConsolePanelProps> = ({);const consoleNodes = useMemo(() =>nodes.filter(n => {- const def = n.type ? nodeDefinitions[n.type] : undefined;+ const def = n.type ? resolveNodeDescription(n.type) : undefined;return def?.uiHints?.isConsoleSink?? LEGACY_CONSOLE_NODE_TYPES.includes(n.type || '');}),diff --git a/client/src/hooks/useComponentPalette.ts b/client/src/hooks/useComponentPalette.tsindex 979fe322..fc01bb52 100644--- a/client/src/hooks/useComponentPalette.ts+++ b/client/src/hooks/useComponentPalette.ts@@ -1,5 +1,5 @@import { useState, useCallback, useEffect } from 'react';-import { nodeDefinitions } from '../nodeDefinitions';+import { listCachedNodeSpecs } from '../lib/nodeSpec';const STORAGE_KEY = 'component_palette_collapsed_sections';@@ -15,9 +15,10 @@ export const useComponentPalette = () => {// Ignore parsing errors}- // Default: all sections collapsed+ // Default: all sections collapsed. Categories are derived from the+ // cached NodeSpecs; empty pre-prefetch, filled in once specs arrive.const initialCollapsed: Record<string, boolean> = {};- const categories = new Set(Object.values(nodeDefinitions).flatMap(def => def.group || []));+ const categories = new Set(listCachedNodeSpecs().flatMap(s => s.group ?? []));categories.forEach(category => {initialCollapsed[category] = true;});diff --git a/client/src/hooks/useCopyPaste.ts b/client/src/hooks/useCopyPaste.tsindex c9418e98..987bbf60 100644--- a/client/src/hooks/useCopyPaste.ts+++ b/client/src/hooks/useCopyPaste.ts@@ -1,8 +1,7 @@import { useCallback, useRef } from 'react';import { Node, Edge } from 'reactflow';import { generateUniqueLabel } from './useDragAndDrop';-import { nodeDefinitions } from '../nodeDefinitions';-+import { resolveNodeDescription } from '../lib/nodeSpec';interface UseCopyPasteProps {nodes: Node[];edges: Edge[];@@ -90,7 +89,7 @@ export const useCopyPaste = ({// Always use the original display name from node definition as base// This ensures "WhatsApp Receive 2" copies become "WhatsApp Receive 3", not "WhatsApp Receive 2 1"- const baseDisplayName = nodeDefinitions[node.type!]?.displayName || node.type!;+ const baseDisplayName = resolveNodeDescription(node.type!)?.displayName || node.type!;// Generate unique label considering existing nodes AND nodes we're about to addconst allNodes = [...nodes, ...newNodes];diff --git a/client/src/hooks/useDragAndDrop.ts b/client/src/hooks/useDragAndDrop.tsindex 426bdc1f..a614cffa 100644--- a/client/src/hooks/useDragAndDrop.ts+++ b/client/src/hooks/useDragAndDrop.ts@@ -2,9 +2,9 @@ import { useCallback } from 'react';import { Node } from 'reactflow';import { snapToGrid, getDefaultNodePosition } from '../utils/workflow';import { theme } from '../styles/theme';-import { nodeDefinitions } from '../nodeDefinitions';import { getCachedNodeSpec } from '../lib/nodeSpec';+import { resolveNodeDescription } from '../lib/nodeSpec';// Wave 10.E: agent detection reads `componentKind: "agent"` from the// backend NodeSpec. Falls back to the node-definition group during the// brief window before the spec cache warms.@@ -79,7 +79,7 @@ export const useDragAndDrop = ({ nodes, setNodes, saveNodeParameters, globalMode}// Get node definition to access displayName- const nodeDef = nodeDefinitions[nodeData.type];+ const nodeDef = resolveNodeDescription(nodeData.type);const displayName = nodeDef?.displayName || nodeData.type;// Generate unique label for template variable resolution (n8n pattern)diff --git a/client/src/hooks/useDragVariable.ts b/client/src/hooks/useDragVariable.tsindex 701e957c..a08c2c02 100644--- a/client/src/hooks/useDragVariable.ts+++ b/client/src/hooks/useDragVariable.ts@@ -1,8 +1,8 @@import { useCallback } from 'react';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { Node } from 'reactflow';+import { resolveNodeDescription } from '../lib/nodeSpec';interface DragVariableHookReturn {handleVariableDragStart: (e: React.DragEvent,@@ -51,7 +51,7 @@ export const useDragVariable = (_targetNodeId: string): DragVariableHookReturn =}// Fallback to displayName from node definition- const nodeDef = nodeDefinitions[sourceNode.type || ''];+ const nodeDef = resolveNodeDescription(sourceNode.type || '');if (nodeDef?.displayName) {return nodeDef.displayName.toLowerCase().replace(/\s+/g, '');}diff --git a/client/src/hooks/useExecution.ts b/client/src/hooks/useExecution.tsindex c9e96f4d..3c1c3cdd 100644--- a/client/src/hooks/useExecution.ts+++ b/client/src/hooks/useExecution.ts@@ -8,9 +8,9 @@import { useCallback, useState } from 'react';import { Node, Edge } from 'reactflow';import { useWebSocket } from '../contexts/WebSocketContext';-import { nodeDefinitions } from '../nodeDefinitions';import { INodeExecutionData } from '../types/INodeProperties';+import { resolveNodeDescription } from '../lib/nodeSpec';// Execution result interface (compatible with ExecutionService)export interface ExecutionResult {success: boolean;@@ -129,7 +129,7 @@ export const useExecution = (): UseExecutionResult => {success: true,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,outputs: outputData,@@ -155,7 +155,7 @@ export const useExecution = (): UseExecutionResult => {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,error: result.error,@@ -182,7 +182,7 @@ export const useExecution = (): UseExecutionResult => {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: new Date().toISOString(),executionTime: Date.now() - startTime,error: errorMessage,@@ -241,7 +241,7 @@ export const useExecution = (): UseExecutionResult => {success: true,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,outputs: outputData,@@ -266,7 +266,7 @@ export const useExecution = (): UseExecutionResult => {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,error: result.error,@@ -293,7 +293,7 @@ export const useExecution = (): UseExecutionResult => {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: new Date().toISOString(),executionTime: Date.now() - startTime,error: errorMessage,diff --git a/client/src/hooks/useParameterPanel.ts b/client/src/hooks/useParameterPanel.tsindex a0710684..1457fc6d 100644--- a/client/src/hooks/useParameterPanel.ts+++ b/client/src/hooks/useParameterPanel.ts@@ -1,6 +1,5 @@import { useState, useEffect, useMemo, useCallback, useRef } from 'react';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { resolveNodeDescription } from '../lib/nodeSpec';import { useWebSocket } from '../contexts/WebSocketContext';import {@@ -14,7 +13,7 @@ import {* re-allocating per node type.*/function defaultsForNodeType(nodeType: string): Record<string, any> {- const def = nodeDefinitions[nodeType];+ const def = resolveNodeDescription(nodeType);if (!def?.properties) return {};const defaults: Record<string, any> = {};for (const param of def.properties as any[]) {@@ -115,7 +114,7 @@ export const useParameterPanel = () => {// / Input / Output sections + ParameterRenderer) renders from// server-driven metadata without any per-component change.const nodeDefinition = nodeType- ? resolveNodeDescription(nodeType, nodeDefinitions[nodeType])+ ? resolveNodeDescription(nodeType): null;return {diff --git a/client/src/hooks/useReactFlowNodes.ts b/client/src/hooks/useReactFlowNodes.tsindex d8b0bf7e..03b685cd 100644--- a/client/src/hooks/useReactFlowNodes.ts+++ b/client/src/hooks/useReactFlowNodes.ts@@ -1,9 +1,9 @@import { useCallback } from 'react';import { Node, Edge, addEdge, Connection } from 'reactflow';import { useAppStore } from '../store/useAppStore';-import { nodeDefinitions } from '../nodeDefinitions';import { INodeInputDefinition, INodeOutputDefinition, NodeConnectionType } from '../types/INodeProperties';+import { resolveNodeDescription } from '../lib/nodeSpec';interface UseReactFlowNodesProps {setNodes: (nodes: Node[] | ((nodes: Node[]) => Node[])) => void;setEdges: (edges: Edge[] | ((edges: Edge[]) => Edge[])) => void;@@ -14,7 +14,7 @@ export const useReactFlowNodes = ({ setNodes, setEdges }: UseReactFlowNodesProps// Helper function to get node inputs/outputs for both enhanced and legacy nodesconst getNodeInputs = (nodeType: string): INodeInputDefinition[] => {- const definition = nodeDefinitions[nodeType];+ const definition = resolveNodeDescription(nodeType);if (!definition?.inputs) return [];// Enhanced nodes: array of input objects@@ -32,7 +32,7 @@ export const useReactFlowNodes = ({ setNodes, setEdges }: UseReactFlowNodesProps};const getNodeOutputs = (nodeType: string): INodeOutputDefinition[] => {- const definition = nodeDefinitions[nodeType];+ const definition = resolveNodeDescription(nodeType);if (!definition?.outputs) return [];// Enhanced nodes: array of output objectsdiff --git a/client/src/lib/nodeSpec.ts b/client/src/lib/nodeSpec.tsindex 1da1159e..28a00574 100644--- a/client/src/lib/nodeSpec.ts+++ b/client/src/lib/nodeSpec.ts@@ -231,7 +231,7 @@ export function isNodeInBackendGroup(*/export function resolveNodeDescription(nodeType: string,- localFallback: INodeTypeDescription | null | undefined,+ localFallback?: INodeTypeDescription | null,): INodeTypeDescription | null {if (!featureFlags.nodeSpecBackend) {return localFallback ?? null;diff --git a/client/src/nodeDefinitions.ts b/client/src/nodeDefinitions.tsdeleted file mode 100644index 5b71cf0d..00000000--- a/client/src/nodeDefinitions.ts+++ /dev/null@@ -1,67 +0,0 @@-// Main Node Definitions - Central registry importing from modular files-import { INodeTypeDescription } from './types/INodeProperties';--// Import modular node definitions-import { aiModelNodes } from './nodeDefinitions/aiModelNodes';-import { aiAgentNodes } from './nodeDefinitions/aiAgentNodes';-import { toolNodes } from './nodeDefinitions/toolNodes';-import { specializedAgentNodes } from './nodeDefinitions/specializedAgentNodes';-import { locationNodes } from './nodeDefinitions/locationNodes';-import { whatsappNodes } from './nodeDefinitions/whatsappNodes';-import { telegramNodes } from './nodeDefinitions/telegramNodes';-import { workflowNodes } from './nodeDefinitions/workflowNodes';-import { schedulerNodes } from './nodeDefinitions/schedulerNodes';-import { androidServiceNodes } from './nodeDefinitions/androidServiceNodes';-import { chatNodes } from './nodeDefinitions/chatNodes';-import { codeNodes } from './nodeDefinitions/codeNodes';-import { utilityNodes } from './nodeDefinitions/utilityNodes';-import { skillNodes } from './nodeDefinitions/skillNodes';-import { documentNodes } from './nodeDefinitions/documentNodes';-import { socialNodes } from './nodeDefinitions/socialNodes';-import { twitterNodes } from './nodeDefinitions/twitterNodes';-import { apifyNodes } from './nodeDefinitions/apifyNodes';-import { searchNodes } from './nodeDefinitions/searchNodes';-import { googleWorkspaceNodes } from './nodeDefinitions/googleWorkspaceNodes';-import { proxyNodes } from './nodeDefinitions/proxyNodes';-import { crawleeNodes } from './nodeDefinitions/crawleeNodes';-import { browserNodes } from './nodeDefinitions/browserNodes';-import { filesystemNodes } from './nodeDefinitions/filesystemNodes';-import { processNodes } from './nodeDefinitions/processNodes';-import { emailNodes } from './nodeDefinitions/emailNodes';---// ============================================================================-// MAIN NODE REGISTRY - Combining all modular definitions-// ============================================================================--// Merge all node definitions from modular files-export const nodeDefinitions: Record<string, INodeTypeDescription> = {- ...workflowNodes,- ...schedulerNodes,- ...aiModelNodes,- ...aiAgentNodes,- ...toolNodes,- ...specializedAgentNodes,- ...locationNodes,- ...whatsappNodes,- ...telegramNodes,- ...androidServiceNodes,- ...chatNodes,- ...codeNodes,- ...utilityNodes,- ...skillNodes,- ...documentNodes,- ...socialNodes,- ...twitterNodes,- ...apifyNodes,- ...searchNodes,- ...googleWorkspaceNodes,- ...proxyNodes,- ...crawleeNodes,- ...browserNodes,- ...filesystemNodes,- ...processNodes,- ...emailNodes-};--export { createBaseChatModel } from './nodeDefinitions/aiModelNodes';diff --git a/client/src/nodeDefinitions/__tests__/contract.test.ts b/client/src/nodeDefinitions/__tests__/contract.test.tsdeleted file mode 100644index cd3debaa..00000000--- a/client/src/nodeDefinitions/__tests__/contract.test.ts+++ /dev/null@@ -1,39 +0,0 @@-/**- * Single sweep test - validates every entry in `nodeDefinitions` against the- * INodeTypeDescription contract. One assertion per node guarantees a refactor- * that breaks any definition's shape will fail loudly here.- */--import { describe, expect, it } from 'vitest';-import { nodeDefinitions } from '../../nodeDefinitions';-import {- formatIssues,- validateNodeDefinition,- validateRegistry,-} from '../../test/nodeDefinitionContract';--describe('nodeDefinitions registry', () => {- it('exports at least one node', () => {- expect(Object.keys(nodeDefinitions).length).toBeGreaterThan(0);- });-- it('every registry entry passes the INodeTypeDescription contract', () => {- const issues = validateRegistry(nodeDefinitions);- if (issues.length > 0) {- throw new Error(`Contract violations:\n${formatIssues(issues)}`);- }- });-- describe.each(Object.entries(nodeDefinitions))('%s', (key, def) => {- it('matches its registry key', () => {- expect(def.name).toBe(key);- });-- it('has a valid INodeTypeDescription shape', () => {- const issues = validateNodeDefinition(key, def);- if (issues.length > 0) {- throw new Error(formatIssues(issues));- }- });- });-});diff --git a/client/src/nodeDefinitions/aiAgentNodes.ts b/client/src/nodeDefinitions/aiAgentNodes.tsdeleted file mode 100644index e6650d65..00000000--- a/client/src/nodeDefinitions/aiAgentNodes.ts+++ /dev/null@@ -1,138 +0,0 @@-// AI Agent Node Definitions - AI agents and AI processing components-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// AI AGENT AND CHAT NODES-// ============================================================================--export const aiAgentNodes: Record<string, INodeTypeDescription> = {- // AI Agent Node - n8n official style implementation (first for top position in Agents category)- aiAgent: {- displayName: 'AI Agent',- name: 'aiAgent',- group: ['agent'],- version: 1,- subtitle: 'Tools Agent',- description: 'Advanced AI agent with tool calling capabilities, memory, and iterative reasoning',- defaults: { name: 'AI Agent', color: '#9333EA' },- inputs: [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Agent input'- },- {- name: 'skill',- displayName: 'Skill',- type: 'main' as NodeConnectionType,- description: 'Skill nodes that provide context and instructions'- },- {- name: 'memory',- displayName: 'Memory',- type: 'main' as NodeConnectionType,- description: 'Memory node for conversation history'- },- {- name: 'tools',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Tool nodes for agent capabilities'- },- {- name: 'task',- displayName: 'Task',- type: 'main' as NodeConnectionType,- description: 'Task completion events from taskTrigger'- }- ],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Agent output'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Zeenie Agent Node - Conversational AI agent with skill-based tool calling- chatAgent: {- displayName: 'Zeenie',- name: 'chatAgent',- group: ['agent'],- version: 1,- subtitle: 'Your Personal Assistant',- description: 'Zeenie - your personal assistant with skill-based tool calling for multi-turn chat interactions',- defaults: { name: 'Zeenie', color: '#3B82F6' },- inputs: [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Agent input'- },- {- name: 'skill',- displayName: 'Skill',- type: 'main' as NodeConnectionType,- description: 'Skill nodes that provide context and instructions via SKILL.md'- },- {- name: 'memory',- displayName: 'Memory',- type: 'main' as NodeConnectionType,- description: 'Memory node for conversation history'- },- {- name: 'tools',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Tool nodes (httpRequest, etc.) for LangGraph tool calling'- },- {- name: 'task',- displayName: 'Task',- type: 'main' as NodeConnectionType,- description: 'Task completion events from taskTrigger'- }- ],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'response, model, provider, timestamp'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Simple Memory Node - conversation history storage for AI agents- // Markdown-based memory visible and editable in UI- simpleMemory: {- displayName: 'Simple Memory',- name: 'simpleMemory',- group: ['tool', 'memory'], // 'tool' = appears in AI Tools category- version: 1,- description: 'Markdown-based conversation memory with optional vector DB for long-term retrieval',- defaults: { name: 'Memory', color: '#8b5cf6' },- uiHints: { isMemoryPanel: true, hasCodeEditor: true, hideRunButton: true },- inputs: [], // No input - memory node is passive- outputs: [{- name: 'memory',- displayName: 'Memory',- type: 'main' as NodeConnectionType,- description: 'session_id, messages, message_count'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--// List of AI-related node types for easy identification (chat models removed - now in aiModelNodes.ts)-export const AI_NODE_TYPES = ['aiAgent', 'chatAgent', 'simpleMemory'];diff --git a/client/src/nodeDefinitions/aiModelNodes.ts b/client/src/nodeDefinitions/aiModelNodes.tsdeleted file mode 100644index fa9926c2..00000000--- a/client/src/nodeDefinitions/aiModelNodes.ts+++ /dev/null@@ -1,83 +0,0 @@-// AI Model Node Definitions - Wave 9.2: visual metadata only.-// Schema (temperature, maxTokens, thinking, etc.) lives on backend in-// AIChatModelParams (server/models/nodes.py) per-provider via discriminator.-import { INodeTypeDescription } from '../types/INodeProperties';-import { createBaseChatModel, ChatModelConfig } from '../factories/baseChatModelFactory';-import { dracula } from '../styles/theme';--const openaiConfig: ChatModelConfig = {- providerId: 'openai',- displayName: 'OpenAI',- color: '#00A67E',- description: 'OpenAI GPT models for chat completion and generation',-};--const claudeConfig: ChatModelConfig = {- providerId: 'anthropic',- displayName: 'Claude',- color: '#FF6B35',- description: 'Anthropic Claude models for conversation and analysis',-};--const geminiConfig: ChatModelConfig = {- providerId: 'gemini',- displayName: 'Gemini',- color: '#4285F4',- description: 'Google Gemini models for multimodal AI capabilities',-};--const openrouterConfig: ChatModelConfig = {- providerId: 'openrouter',- displayName: 'OpenRouter',- color: '#6366F1',- description: 'OpenRouter unified API - access OpenAI, Claude, Gemini, Llama, and more through one API',-};--const groqConfig: ChatModelConfig = {- providerId: 'groq',- displayName: 'Groq',- color: '#F55036',- description: 'Groq - Ultra-fast LLM inference with Llama, Mixtral, and Gemma models',-};--const cerebrasConfig: ChatModelConfig = {- providerId: 'cerebras',- displayName: 'Cerebras',- color: dracula.orange,- description: 'Cerebras - Ultra-fast inference with Llama and Qwen models on custom AI hardware',-};--const deepseekConfig: ChatModelConfig = {- providerId: 'deepseek',- displayName: 'DeepSeek',- color: dracula.cyan,- description: 'DeepSeek V3 models (deepseek-chat, deepseek-reasoner with always-on CoT)',-};--const kimiConfig: ChatModelConfig = {- providerId: 'kimi',- displayName: 'Kimi',- color: dracula.purple,- description: 'Kimi K2 models by Moonshot AI with 256K context (thinking on by default)',-};--const mistralConfig: ChatModelConfig = {- providerId: 'mistral',- displayName: 'Mistral',- color: dracula.orange,- description: 'Mistral AI models for reasoning, coding, and multilingual tasks',-};--export const aiModelNodes: Record<string, INodeTypeDescription> = {- openaiChatModel: createBaseChatModel(openaiConfig),- anthropicChatModel: createBaseChatModel(claudeConfig),- geminiChatModel: createBaseChatModel(geminiConfig),- openrouterChatModel: createBaseChatModel(openrouterConfig),- groqChatModel: createBaseChatModel(groqConfig),- cerebrasChatModel: createBaseChatModel(cerebrasConfig),- deepseekChatModel: createBaseChatModel(deepseekConfig),- kimiChatModel: createBaseChatModel(kimiConfig),- mistralChatModel: createBaseChatModel(mistralConfig),-};--export { createBaseChatModel };diff --git a/client/src/nodeDefinitions/androidServiceNodes.ts b/client/src/nodeDefinitions/androidServiceNodes.tsdeleted file mode 100644index 2199a1f1..00000000--- a/client/src/nodeDefinitions/androidServiceNodes.ts+++ /dev/null@@ -1,311 +0,0 @@-// Android Service Nodes - Individual nodes for each Android system service-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';-import { API_CONFIG } from '../config/api';--// ============================================================================-// ANDROID SERVICE NODES - Individual nodes for each Android system service-// ============================================================================--// Helper function to create Android service node definition-function createAndroidServiceNode(config: {- name: string;- displayName: string;- serviceId: string;- color: string;- group: string[];- description: string;- defaultAction: string;- additionalProperties?: Array<{- displayName: string;- name: string;- type: 'string' | 'number' | 'boolean' | 'options' | 'multiOptions' | 'collection' | 'fixedCollection' | 'color' | 'dateTime' | 'json' | 'notice' | 'hidden' | 'resourceLocator' | 'code' | 'file';- default?: any;- required?: boolean;- description?: string;- placeholder?: string;- displayOptions?: {- show?: Record<string, any[]>;- };- }>;-}): INodeTypeDescription {- return {- displayName: config.displayName,- name: config.name,- group: config.group,- version: 1,- subtitle: `Android ${config.group[1]} Service`,- description: config.description,- defaults: { name: config.displayName, color: config.color },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Service trigger',- required: false- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Service execution result'- },- {- name: 'tool',- displayName: 'Tool Output',- type: 'main' as NodeConnectionType,- description: 'Connect to Android Toolkit (top handle)'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- methods: {- loadOptions: {- async getAndroidServiceActions(this: any): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const response = await fetch(`${API_CONFIG.PYTHON_BASE_URL}/api/android/services/${config.serviceId}/actions`, {- credentials: 'include'- });- const data = await response.json();-- if (data.success && data.actions) {- return data.actions.map((action: any) => ({- name: action.name,- value: action.value,- description: action.description- }));- }-- return [];- } catch (error) {- console.error(`Failed to load ${config.displayName} actions:`, error);- return [];- }- }- }- }- };-}--export const androidServiceNodes: Record<string, INodeTypeDescription> = {- // ============================================================================- // SYSTEM MONITORING SERVICES- // ============================================================================-- batteryMonitor: createAndroidServiceNode({- name: 'batteryMonitor',- displayName: 'Battery Monitor',- serviceId: 'battery',- color: '#4CAF50',- group: ['android', 'monitoring'],- description: 'Monitor battery status, level, charging state, temperature, and health',- defaultAction: 'status'- }),-- networkMonitor: createAndroidServiceNode({- name: 'networkMonitor',- displayName: 'Network Monitor',- serviceId: 'network',- color: '#2196F3',- group: ['android', 'monitoring'],- description: 'Monitor network connectivity status, type, and internet availability',- defaultAction: 'status'- }),-- systemInfo: createAndroidServiceNode({- name: 'systemInfo',- displayName: 'System Info',- serviceId: 'system_info',- color: '#9C27B0',- group: ['android', 'monitoring'],- description: 'Get device and OS information including Android version, API level, memory, and hardware details',- defaultAction: 'info'- }),-- location: createAndroidServiceNode({- name: 'location',- displayName: 'Location',- serviceId: 'location',- color: '#F44336',- group: ['android', 'monitoring'],- description: 'GPS location tracking with latitude, longitude, accuracy, and provider information',- defaultAction: 'current'- }),-- // ============================================================================- // APP MANAGEMENT SERVICES- // ============================================================================-- appLauncher: createAndroidServiceNode({- name: 'appLauncher',- displayName: 'App Launcher',- serviceId: 'app_launcher',- color: '#FF9800',- group: ['android', 'apps'],- description: 'Launch applications by package name',- defaultAction: 'launch',- additionalProperties: [- {- displayName: 'Package Name',- name: 'package_name',- type: 'string',- default: '',- required: true,- description: 'Package name of the app to launch (e.g., com.whatsapp)',- placeholder: 'com.example.app',- displayOptions: {- show: {- action: ['launch']- }- }- }- ]- }),-- appList: createAndroidServiceNode({- name: 'appList',- displayName: 'App List',- serviceId: 'app_list',- color: '#00BCD4',- group: ['android', 'apps'],- description: 'Get list of installed applications with package names, versions, and metadata',- defaultAction: 'list'- }),-- // ============================================================================- // DEVICE AUTOMATION SERVICES- // ============================================================================-- wifiAutomation: createAndroidServiceNode({- name: 'wifiAutomation',- displayName: 'WiFi Automation',- serviceId: 'wifi_automation',- color: '#3F51B5',- group: ['android', 'automation'],- description: 'WiFi control and scanning - enable, disable, get status, scan for networks',- defaultAction: 'status'- }),-- bluetoothAutomation: createAndroidServiceNode({- name: 'bluetoothAutomation',- displayName: 'Bluetooth Automation',- serviceId: 'bluetooth_automation',- color: '#2196F3',- group: ['android', 'automation'],- description: 'Bluetooth control - enable, disable, get status, and paired devices',- defaultAction: 'status'- }),-- audioAutomation: createAndroidServiceNode({- name: 'audioAutomation',- displayName: 'Audio Automation',- serviceId: 'audio_automation',- color: '#E91E63',- group: ['android', 'automation'],- description: 'Volume and audio control - get/set volume, mute, unmute',- defaultAction: 'get_volume'- }),-- deviceStateAutomation: createAndroidServiceNode({- name: 'deviceStateAutomation',- displayName: 'Device State',- serviceId: 'device_state_automation',- color: '#607D8B',- group: ['android', 'automation'],- description: 'Device state control - airplane mode, screen on/off, power save mode, brightness',- defaultAction: 'status'- }),-- screenControlAutomation: createAndroidServiceNode({- name: 'screenControlAutomation',- displayName: 'Screen Control',- serviceId: 'screen_control_automation',- color: '#FFC107',- group: ['android', 'automation'],- description: 'Screen control - brightness adjustment, wake screen, auto-brightness, screen timeout',- defaultAction: 'status'- }),-- airplaneModeControl: createAndroidServiceNode({- name: 'airplaneModeControl',- displayName: 'Airplane Mode',- serviceId: 'airplane_mode_control',- color: '#795548',- group: ['android', 'automation'],- description: 'Airplane mode status monitoring and control',- defaultAction: 'status'- }),-- // ============================================================================- // SENSOR SERVICES (Experimental)- // ============================================================================-- motionDetection: createAndroidServiceNode({- name: 'motionDetection',- displayName: 'Motion Detection',- serviceId: 'motion_detection',- color: '#FF5722',- group: ['android', 'sensors'],- description: 'Accelerometer and gyroscope data - detect motion, shake gestures, device orientation',- defaultAction: 'current_motion'- }),-- environmentalSensors: createAndroidServiceNode({- name: 'environmentalSensors',- displayName: 'Environmental Sensors',- serviceId: 'environmental_sensors',- color: '#009688',- group: ['android', 'sensors'],- description: 'Environmental sensors - temperature, humidity, pressure, light level',- defaultAction: 'ambient_conditions'- }),-- // ============================================================================- // MEDIA SERVICES (Experimental)- // ============================================================================-- cameraControl: createAndroidServiceNode({- name: 'cameraControl',- displayName: 'Camera Control',- serviceId: 'camera_control',- color: '#673AB7',- group: ['android', 'media'],- description: 'Camera control - get camera info, take photos, camera capabilities',- defaultAction: 'camera_info'- }),-- mediaControl: createAndroidServiceNode({- name: 'mediaControl',- displayName: 'Media Control',- serviceId: 'media_control',- color: '#E91E63',- group: ['android', 'media'],- description: 'Media playback control - volume control, playback control, play media files',- defaultAction: 'volume_control'- })-};--// Export node type identifiers-export const ANDROID_SERVICE_NODE_TYPES = [- // System Monitoring- 'batteryMonitor',- 'networkMonitor',- 'systemInfo',- 'location',- // App Management- 'appLauncher',- 'appList',- // Device Automation- 'wifiAutomation',- 'bluetoothAutomation',- 'audioAutomation',- 'deviceStateAutomation',- 'screenControlAutomation',- 'airplaneModeControl',- // Sensors- 'motionDetection',- 'environmentalSensors',- // Media- 'cameraControl',- 'mediaControl'-];diff --git a/client/src/nodeDefinitions/apifyNodes.ts b/client/src/nodeDefinitions/apifyNodes.tsdeleted file mode 100644index ceb2f235..00000000--- a/client/src/nodeDefinitions/apifyNodes.ts+++ /dev/null@@ -1,47 +0,0 @@-// Apify Node Definitions - Web scraping and social media data extraction-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// APIFY NODES-// ============================================================================--export const apifyNodes: Record<string, INodeTypeDescription> = {- // Apify Actor - Run any Apify actor (scraper)- apifyActor: {- displayName: 'Apify Actor',- name: 'apifyActor',- group: ['api', 'scraper', 'tool'],- version: 1,- subtitle: 'Run Web Scraper',- description: 'Run web scrapers for social media, websites, and search engines using Apify actors',- defaults: { name: 'Apify Actor', color: '#FF9012' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Actor input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Scraped data results'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--export const APIFY_NODE_TYPES = ['apifyActor'];diff --git a/client/src/nodeDefinitions/browserNodes.ts b/client/src/nodeDefinitions/browserNodes.tsdeleted file mode 100644index d3d62b42..00000000--- a/client/src/nodeDefinitions/browserNodes.ts+++ /dev/null@@ -1,43 +0,0 @@-// Browser Automation Node - Interactive browser control via agent-browser CLI-// Dual-purpose node: works as standalone workflow node AND AI Agent tool--import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';-import { dracula } from '../styles/theme';--export const browserNodes: Record<string, INodeTypeDescription> = {- browser: {- displayName: 'Browser',- name: 'browser',- group: ['browser', 'tool'],- version: 1,- subtitle: 'Agent Browser',- description: 'Interactive browser automation via agent-browser. Navigate, click, type, fill forms, take screenshots, get accessibility snapshots, and execute JavaScript.',- defaults: { name: 'Browser', color: dracula.cyan },- inputs: [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data',- },- ],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Browser operation result',- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle',- },- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-};--export const BROWSER_NODE_TYPES = ['browser'];diff --git a/client/src/nodeDefinitions/chatNodes.ts b/client/src/nodeDefinitions/chatNodes.tsdeleted file mode 100644index 521ff6ea..00000000--- a/client/src/nodeDefinitions/chatNodes.ts+++ /dev/null@@ -1,56 +0,0 @@-// Chat Node Definitions - JSON-RPC 2.0 WebSocket chat integration-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const chatNodes: Record<string, INodeTypeDescription> = {- // Chat Send Message Node- chatSend: {- displayName: 'Chat Send',- name: 'chatSend',- group: ['chat'],- version: 1,- subtitle: 'Send Chat Message',- description: 'Send a message to the chat backend via JSON-RPC 2.0 WebSocket',- defaults: { name: 'Chat Send', color: '#4A90D9' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Trigger input'- }],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'message_id, status, timestamp'- }],- // Wave 8: schema lives on backend (ChatSendParams).- properties: [],- },-- // Chat Get History Node- chatHistory: {- displayName: 'Chat History',- name: 'chatHistory',- group: ['chat'],- version: 1,- subtitle: 'Get Chat History',- description: 'Retrieve chat message history from the backend',- defaults: { name: 'Chat History', color: '#4A90D9' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Trigger input'- }],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'messages array'- }],- // Wave 8: schema lives on backend (ChatHistoryParams).- properties: [],- },-};--export const CHAT_NODE_TYPES = ['chatSend', 'chatHistory'];diff --git a/client/src/nodeDefinitions/codeNodes.ts b/client/src/nodeDefinitions/codeNodes.tsdeleted file mode 100644index aa158d77..00000000--- a/client/src/nodeDefinitions/codeNodes.ts+++ /dev/null@@ -1,79 +0,0 @@-// Code Execution Nodes-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const codeNodes: Record<string, INodeTypeDescription> = {- pythonExecutor: {- displayName: 'Python Executor',- name: 'pythonExecutor',- group: ['code', 'tool'],- version: 1,- subtitle: 'Run Python Code',- description: 'Execute Python code with input data access',- defaults: { name: 'Python Executor', color: '#3776AB' },- uiHints: { hasCodeEditor: true },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data as input_data variable' }],- outputs: [{ name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Python execution result' }],- // Wave 8: schema lives on backend (PythonExecutorParams).- // Starter code preserved via per-property merge.- properties: [- {- displayName: 'Code',- name: 'code',- type: 'string',- default: '# Python Executor - Transform and process data\n#\n# Available:\n# input_data - dict with connected node outputs\n# math, json - imported modules\n# print() - for debugging\n#\n# Set the "output" variable with your result\n\n# Example: Get data from connected node\ndata = input_data.get("start", {}) or input_data\n\n# Process data\nresult = {\n "message": "Hello from Python!",\n "input_received": data,\n "processed": True\n}\n\n# Set output (required)\noutput = result',- typeOptions: { rows: 5, editor: 'code', editorLanguage: 'python' },- placeholder: '# Write your Python code here...',- },- ],- },-- javascriptExecutor: {- displayName: 'JavaScript Executor',- name: 'javascriptExecutor',- group: ['code', 'tool'],- version: 1,- subtitle: 'Run JavaScript Code',- description: 'Execute JavaScript code with input data access',- defaults: { name: 'JavaScript Executor', color: '#F7DF1E' },- uiHints: { hasCodeEditor: true },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data as input_data variable' }],- outputs: [{ name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'JavaScript execution result' }],- // Wave 8: schema lives on backend (JavaScriptExecutorParams).- properties: [- {- displayName: 'Code',- name: 'code',- type: 'string',- default: '// JavaScript Executor - Transform and process data\n//\n// Available:\n// input_data - object with connected node outputs\n// console.log() - for debugging\n//\n// Set the "output" variable with your result\n\n// Example: Get data from connected node\nconst data = input_data?.start || input_data || {};\n\n// Process data\nconst result = {\n message: "Hello from JavaScript!",\n input_received: data,\n processed: true\n};\n\n// Set output (required)\noutput = result;',- typeOptions: { rows: 5, editor: 'code', editorLanguage: 'javascript' },- placeholder: '// Write your JavaScript code here...',- },- ],- },-- typescriptExecutor: {- displayName: 'TypeScript Executor',- name: 'typescriptExecutor',- group: ['code', 'tool'],- version: 1,- subtitle: 'Run TypeScript Code',- description: 'Execute TypeScript code with input data access and type safety',- defaults: { name: 'TypeScript Executor', color: '#3178C6' },- uiHints: { hasCodeEditor: true },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data as input_data variable' }],- outputs: [{ name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'TypeScript execution result' }],- // Wave 8: schema lives on backend (TypeScriptExecutorParams).- properties: [- {- displayName: 'Code',- name: 'code',- type: 'string',- default: '// TypeScript Executor - Transform and process data with type safety\n//\n// Available:\n// input_data - object with connected node outputs\n// console.log() - for debugging\n//\n// Set the "output" variable with your result\n\ninterface Result {\n message: string;\n input_received: unknown;\n processed: boolean;\n}\n\n// Example: Get data from connected node\nconst data = input_data?.start || input_data || {};\n\n// Process data with type safety\nconst result: Result = {\n message: "Hello from TypeScript!",\n input_received: data,\n processed: true\n};\n\n// Set output (required)\noutput = result;',- typeOptions: { rows: 5, editor: 'code', editorLanguage: 'typescript' },- placeholder: '// Write your TypeScript code here...',- },- ],- },-};--export const CODE_NODE_TYPES = ['pythonExecutor', 'javascriptExecutor', 'typescriptExecutor'];diff --git a/client/src/nodeDefinitions/crawleeNodes.ts b/client/src/nodeDefinitions/crawleeNodes.tsdeleted file mode 100644index ce5d12d4..00000000--- a/client/src/nodeDefinitions/crawleeNodes.ts+++ /dev/null@@ -1,42 +0,0 @@-// Crawlee Web Scraping Node - Static & Browser-based scraping via Crawlee-// Dual-purpose node: works as standalone workflow node AND AI Agent tool--import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const crawleeNodes: Record<string, INodeTypeDescription> = {- crawleeScraper: {- displayName: 'Web Scraper',- name: 'crawleeScraper',- group: ['api', 'tool'],- version: 1,- subtitle: 'Crawlee Scraper',- description: 'Scrape web pages using Crawlee. Supports static HTML (BeautifulSoup) and JS-rendered content (Playwright).',- defaults: { name: 'Web Scraper', color: '#00D1B2' },- inputs: [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Scraping input',- },- ],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Scraped content and metadata',- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle',- },- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-};--export const CRAWLEE_NODE_TYPES = ['crawleeScraper'];diff --git a/client/src/nodeDefinitions/documentNodes.ts b/client/src/nodeDefinitions/documentNodes.tsdeleted file mode 100644index fb9d3a81..00000000--- a/client/src/nodeDefinitions/documentNodes.ts+++ /dev/null@@ -1,121 +0,0 @@-// Document Processing Nodes - HTTP Scraper, File Downloader, Document Parser, Text Chunker, Embedding Generator, Vector Store-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const documentNodes: Record<string, INodeTypeDescription> = {- httpScraper: {- displayName: 'HTTP Scraper',- name: 'httpScraper',- group: ['document'],- version: 1,- description: 'Scrape links from web pages with date/page pagination support',- defaults: { name: 'HTTP Scraper', color: '#DC2626' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [{- name: 'main',- displayName: 'Items',- type: 'main' as NodeConnectionType,- description: 'items, item_count, errors'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- fileDownloader: {- displayName: 'File Downloader',- name: 'fileDownloader',- group: ['document'],- version: 1,- description: 'Download files from URLs in parallel',- defaults: { name: 'Downloader', color: '#2563EB' },- inputs: [{ name: 'main', displayName: 'Items', type: 'main' as NodeConnectionType, description: 'Array of items with url field' }],- outputs: [{- name: 'main',- displayName: 'Files',- type: 'main' as NodeConnectionType,- description: 'downloaded, skipped, failed, files, output_dir'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- documentParser: {- displayName: 'Document Parser',- name: 'documentParser',- group: ['document'],- version: 1,- description: 'Parse documents to text using various parsers',- defaults: { name: 'Parser', color: '#059669' },- inputs: [{ name: 'main', displayName: 'Files', type: 'main' as NodeConnectionType, description: 'Array of files with path field' }],- outputs: [{- name: 'main',- displayName: 'Documents',- type: 'main' as NodeConnectionType,- description: 'documents, parsed_count, failed'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- textChunker: {- displayName: 'Text Chunker',- name: 'textChunker',- group: ['document'],- version: 1,- description: 'Split text into overlapping chunks for embedding',- defaults: { name: 'Chunker', color: '#7C3AED' },- inputs: [{ name: 'main', displayName: 'Documents', type: 'main' as NodeConnectionType, description: 'Array of documents with content field' }],- outputs: [{- name: 'main',- displayName: 'Chunks',- type: 'main' as NodeConnectionType,- description: 'chunks, chunk_count'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- embeddingGenerator: {- displayName: 'Embedding Generator',- name: 'embeddingGenerator',- group: ['document'],- version: 1,- description: 'Generate vector embeddings from text chunks',- defaults: { name: 'Embedder', color: '#F59E0B' },- inputs: [{ name: 'main', displayName: 'Chunks', type: 'main' as NodeConnectionType, description: 'Array of chunks with content field' }],- outputs: [{- name: 'main',- displayName: 'Embeddings',- type: 'main' as NodeConnectionType,- description: 'embeddings, embedding_count, dimensions, chunks'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- vectorStore: {- displayName: 'Vector Store',- name: 'vectorStore',- group: ['document'],- version: 1,- description: 'Store and query vector embeddings',- defaults: { name: 'Vector Store', color: '#8B5CF6' },- inputs: [{ name: 'main', displayName: 'Embeddings', type: 'main' as NodeConnectionType, description: 'Array of embeddings or query embedding' }],- outputs: [{- name: 'main',- displayName: 'Result',- type: 'main' as NodeConnectionType,- description: 'stored_count/matches, collection_name, backend'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--export const DOCUMENT_NODE_TYPES = [- 'httpScraper',- 'fileDownloader',- 'documentParser',- 'textChunker',- 'embeddingGenerator',- 'vectorStore'-];diff --git a/client/src/nodeDefinitions/emailNodes.ts b/client/src/nodeDefinitions/emailNodes.tsdeleted file mode 100644index b6319bb7..00000000--- a/client/src/nodeDefinitions/emailNodes.ts+++ /dev/null@@ -1,63 +0,0 @@-// Email Node Definitions - IMAP/SMTP integration via Himalaya CLI-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';-import { solarized } from '../styles/theme';--// Wave 8: provider presets + property metadata now live on backend-// (Email{Send,Read,Receive}Params + EMAIL_PROVIDERS in server config).--// ============================================================================-// EMAIL NODES-// ============================================================================--export const emailNodes: Record<string, INodeTypeDescription> = {-- emailSend: {- displayName: 'Email Send',- name: 'emailSend',- group: ['email', 'tool'],- version: 1,- subtitle: 'Send Email via SMTP',- description: 'Send email via Himalaya SMTP. Supports Gmail, Outlook, Yahoo, iCloud, ProtonMail, Fastmail, or custom.',- defaults: { name: 'Email Send', color: solarized.blue },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Send result' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- emailRead: {- displayName: 'Email Read',- name: 'emailRead',- group: ['email', 'tool'],- version: 1,- subtitle: 'Read & Manage via IMAP',- description: 'List, search, read, move, delete, or flag emails via Himalaya IMAP.',- defaults: { name: 'Email Read', color: solarized.blue },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Send result' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- emailReceive: {- displayName: 'Email Receive',- name: 'emailReceive',- group: ['email', 'trigger'],- version: 1,- subtitle: 'On Email Received',- description: 'Trigger workflow when new email arrives. Polls IMAP via Himalaya.',- defaults: { name: 'Email Receive', color: solarized.blue },- inputs: [],- outputs: [{ name: 'main', displayName: 'Email', type: 'main' as NodeConnectionType, description: 'message_id, from, to, subject, date, body, folder' }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-};--export const EMAIL_NODE_TYPES = ['emailSend', 'emailRead', 'emailReceive'];diff --git a/client/src/nodeDefinitions/filesystemNodes.ts b/client/src/nodeDefinitions/filesystemNodes.tsdeleted file mode 100644index ce611869..00000000--- a/client/src/nodeDefinitions/filesystemNodes.ts+++ /dev/null@@ -1,74 +0,0 @@-// Filesystem & Shell Tool Nodes - Dual-purpose (workflow node + AI agent tool)-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const filesystemNodes: Record<string, INodeTypeDescription> = {- fileRead: {- displayName: 'File Read',- name: 'fileRead',- group: ['utility', 'tool'],- version: 1,- subtitle: 'Read File',- description: 'Read file contents with line numbers and pagination. Works as workflow node or AI agent tool.',- defaults: { name: 'File Read', color: '#8be9fd' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'File contents' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (FileReadParams).- properties: [],- },-- fileModify: {- displayName: 'File Modify',- name: 'fileModify',- group: ['utility', 'tool'],- version: 1,- subtitle: 'Write / Edit File',- description: 'Write a new file or edit an existing file with string replacement. Works as workflow node or AI agent tool.',- defaults: { name: 'File Modify', color: '#50fa7b' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Operation result' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (FileModifyParams).- properties: [],- },-- shell: {- displayName: 'Shell',- name: 'shell',- group: ['utility', 'tool'],- version: 1,- subtitle: 'Execute Command',- description: 'Execute shell commands and return stdout, stderr, and exit code. Works as workflow node or AI agent tool.',- defaults: { name: 'Shell', color: '#ff79c6' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Command output' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (ShellParams).- properties: [],- },-- fsSearch: {- displayName: 'FS Search',- name: 'fsSearch',- group: ['utility', 'tool'],- version: 1,- subtitle: 'List / Glob / Grep',- description: 'Search the filesystem: list directories, glob pattern match, or grep file contents. Works as workflow node or AI agent tool.',- defaults: { name: 'FS Search', color: '#f1fa8c' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' }],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Search results' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: schema lives on backend (FsSearchParams).- properties: [],- },-};--export const FILESYSTEM_NODE_TYPES = ['fileRead', 'fileModify', 'shell', 'fsSearch'];diff --git a/client/src/nodeDefinitions/googleWorkspaceNodes.ts b/client/src/nodeDefinitions/googleWorkspaceNodes.tsdeleted file mode 100644index af08b68e..00000000--- a/client/src/nodeDefinitions/googleWorkspaceNodes.ts+++ /dev/null@@ -1,272 +0,0 @@-// Google Workspace Node Definitions - Consolidated nodes for Gmail, Calendar, Drive, Sheets, Tasks, Contacts-// Each node uses an operation selector pattern with displayOptions.show for conditional parameters-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// Wave 10.B: icons resolved from asset:<key> via assets/icons/google/*.svg.--// Wave 8: ACCOUNT_MODE_PROPERTY + CUSTOMER_ID_PROPERTY moved to backend-// (each Google* Pydantic model carries account_mode + customer_id with-// the customer-mode displayOptions gate).--// ============================================================================-// GMAIL NODE (Consolidated: send, search, read)-// ============================================================================--export const gmailNode: INodeTypeDescription = {- displayName: 'Gmail',- name: 'gmail',- group: ['google', 'tool'],- version: 1,- subtitle: 'Email Operations',- description: 'Send, search, and read emails via Gmail API',- defaults: { name: 'Gmail', color: '#EA4335' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// GMAIL RECEIVE NODE (Trigger - kept separate)-// ============================================================================--export const gmailReceiveNode: INodeTypeDescription = {- displayName: 'Gmail Receive',- name: 'gmailReceive',- group: ['google', 'trigger'],- version: 1,- subtitle: 'On New Email',- description: 'Trigger workflow on new emails (polling-based)',- defaults: { name: 'Gmail Receive', color: '#EA4335' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Email',- type: 'main' as NodeConnectionType,- description: 'Received email (message_id, from, to, subject, body, date, labels, attachments)'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// CALENDAR NODE (Consolidated: create, list, update, delete)-// ============================================================================--export const calendarNode: INodeTypeDescription = {- displayName: 'Calendar',- name: 'calendar',- group: ['google', 'tool'],- version: 1,- subtitle: 'Calendar Events',- description: 'Create, list, update, and delete calendar events via Google Calendar API',- defaults: { name: 'Calendar', color: '#4285F4' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// DRIVE NODE (Consolidated: upload, download, list, share)-// ============================================================================--export const driveNode: INodeTypeDescription = {- displayName: 'Drive',- name: 'drive',- group: ['google', 'tool'],- version: 1,- subtitle: 'File Operations',- description: 'Upload, download, list, and share files via Google Drive API',- defaults: { name: 'Drive', color: '#0F9D58' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// SHEETS NODE (Consolidated: read, write, append)-// ============================================================================--export const sheetsNode: INodeTypeDescription = {- displayName: 'Sheets',- name: 'sheets',- group: ['google', 'tool'],- version: 1,- subtitle: 'Spreadsheet Operations',- description: 'Read, write, and append data to Google Sheets',- defaults: { name: 'Sheets', color: '#0F9D58' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// TASKS NODE (Consolidated: create, list, complete, update, delete)-// ============================================================================--export const tasksNode: INodeTypeDescription = {- displayName: 'Tasks',- name: 'tasks',- group: ['google', 'tool'],- version: 1,- subtitle: 'Task Management',- description: 'Create, list, update, and delete tasks via Google Tasks API',- defaults: { name: 'Tasks', color: '#4285F4' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// CONTACTS NODE (Consolidated: create, list, search, get, update, delete)-// ============================================================================--export const contactsNode: INodeTypeDescription = {- displayName: 'Contacts',- name: 'contacts',- group: ['google', 'tool'],- version: 1,- subtitle: 'Contact Management',- description: 'Create, list, search, and manage contacts via Google People API',- defaults: { name: 'Contacts', color: '#4285F4' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Input data'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Operation result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],-};--// ============================================================================-// EXPORTS-// ============================================================================--export const googleWorkspaceNodes: Record<string, INodeTypeDescription> = {- gmail: gmailNode,- gmailReceive: gmailReceiveNode,- calendar: calendarNode,- drive: driveNode,- sheets: sheetsNode,- tasks: tasksNode,- contacts: contactsNode-};--export const GOOGLE_WORKSPACE_NODE_TYPES = [- 'gmail',- 'gmailReceive',- 'calendar',- 'drive',- 'sheets',- 'tasks',- 'contacts'-];diff --git a/client/src/nodeDefinitions/locationNodes.ts b/client/src/nodeDefinitions/locationNodes.tsdeleted file mode 100644index c6e2fcc6..00000000--- a/client/src/nodeDefinitions/locationNodes.ts+++ /dev/null@@ -1,109 +0,0 @@-// Location Node Definitions - GPS, Maps, and Geolocation Services-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// LOCATION NODES - GPS, Maps, and Geolocation Services-// ============================================================================--export const locationNodes: Record<string, INodeTypeDescription> = {- // ============================================================================- // GOOGLE MAPS NODES - Map Creation and Places Integration- // ============================================================================-- // GMaps Create - Initialize Google Maps JavaScript API with coordinates- gmaps_create: {- displayName: 'GMaps Create',- name: 'gmaps_create',- group: ['location', 'service'],- version: 1,- subtitle: 'Initialize Google Map',- description: 'Creates an interactive Google Map using the Maps JavaScript API with customizable center, zoom, and map type',- defaults: { name: 'GMaps Create', color: '#1A73E8' },- uiHints: { showLocationPanel: true },- inputs: [{- name: 'main',- displayName: 'Map Configuration',- type: 'main' as NodeConnectionType,- description: 'Input configuration for map initialization',- required: false- }],- outputs: [{- name: 'main',- displayName: 'Map Output',- type: 'main' as NodeConnectionType,- description: 'Map configuration and reference'- }],- credentials: [{- name: 'googleMapsApi',- required: true,- displayName: 'Google Maps API Key'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // GMaps Locations - Google Maps Geocoding Service (Dual-purpose: workflow node + AI tool)- gmaps_locations: {- displayName: 'GMaps Locations',- name: 'gmaps_locations',- group: ['location', 'service', 'tool'], // 'tool' enables AI Agent tool calling- version: 1,- subtitle: 'Geocoding Service',- description: 'Use Google Maps Geocoding Service for address-to-coordinates conversion and reverse geocoding with detailed location information',- defaults: { name: 'GMaps Locations', color: '#34A853' },- inputs: [{- name: 'main',- displayName: 'Geocoding Input',- type: 'main' as NodeConnectionType,- description: 'Input address or coordinates for geocoding service',- required: false- }],- outputs: [{- name: 'main',- displayName: 'Geocoding Results',- type: 'main' as NodeConnectionType,- description: 'Geocoding service results with detailed location data'- }],- credentials: [{- name: 'googleMapsApi',- required: true,- displayName: 'Google Maps API Key'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // GMaps Nearby Places - Google Maps Places API nearbySearch (Dual-purpose: workflow node + AI tool)- gmaps_nearby_places: {- displayName: 'GMaps Nearby Places',- name: 'gmaps_nearby_places',- group: ['location', 'service', 'tool'], // 'tool' enables AI Agent tool calling- version: 1,- subtitle: 'Places API nearbySearch',- description: 'Search for places near a location using Google Maps Places API nearbySearch with detailed place information in JSON format',- defaults: { name: 'GMaps Nearby Places', color: '#FF6D01' },- inputs: [{- name: 'main',- displayName: 'Search Parameters',- type: 'main' as NodeConnectionType,- description: 'Input search parameters for nearby places',- required: false- }],- outputs: [{- name: 'main',- displayName: 'Places Results',- type: 'main' as NodeConnectionType,- description: 'Places API nearbySearch results with place details JSON'- }],- credentials: [{- name: 'googleMapsApi',- required: true,- displayName: 'Google Maps API Key'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// List of Google Maps node types for easy identification-export const LOCATION_NODE_TYPES = ['gmaps_create', 'gmaps_locations', 'gmaps_nearby_places'];diff --git a/client/src/nodeDefinitions/processNodes.ts b/client/src/nodeDefinitions/processNodes.tsdeleted file mode 100644index 6335fc8d..00000000--- a/client/src/nodeDefinitions/processNodes.ts+++ /dev/null@@ -1,35 +0,0 @@-// Process Manager Node -- start, stop, and manage long-running processes-// Dual-purpose: workflow node AND AI Agent tool--import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';-import { dracula } from '../styles/theme';--export const processNodes: Record<string, INodeTypeDescription> = {- processManager: {- displayName: 'Process Manager',- name: 'processManager',- group: ['utility', 'tool'],- version: 1,- subtitle: 'Manage Processes',- description: 'Start, stop, and manage long-running processes (dev servers, watchers, build tools). Streams output to Terminal tab.',- defaults: { name: 'Process Manager', color: dracula.orange },- inputs: [- { name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Input data' },- ],- outputs: [- { name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Process operation result' },- { name: 'tool', displayName: 'Tool', type: 'main' as NodeConnectionType, description: 'Connect to AI Agent tool handle' },- ],- // Wave 8: parameter schema lives on the backend (ProcessManagerParams).- // Local placeholders retained via the per-property merge in- // lib/nodeSpec.ts.- properties: [- { displayName: 'Process Name', name: 'name', type: 'string', default: '', placeholder: 'my-server' },- { displayName: 'Command', name: 'command', type: 'string', default: '', placeholder: 'python -m http.server 8080' },- { displayName: 'Working Directory', name: 'cwd', type: 'string', default: '', placeholder: 'Uses workflow workspace if empty' },- { displayName: 'Input Text', name: 'input', type: 'string', default: '', placeholder: 'Text to send to stdin' },- ],- },-};--export const PROCESS_NODE_TYPES = ['processManager'];diff --git a/client/src/nodeDefinitions/proxyNodes.ts b/client/src/nodeDefinitions/proxyNodes.tsdeleted file mode 100644index 82a54287..00000000--- a/client/src/nodeDefinitions/proxyNodes.ts+++ /dev/null@@ -1,100 +0,0 @@-// Proxy Nodes - Proxy-aware HTTP requests and provider status-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// PROXY NODES-// ============================================================================--export const proxyNodes: Record<string, INodeTypeDescription> = {- proxyRequest: {- displayName: 'Proxy Request',- name: 'proxyRequest',- group: ['proxy', 'tool'],- version: 1,- description: 'Make HTTP requests through residential proxy providers with geo-targeting and failover',- defaults: { name: 'Proxy Request', color: '#8B5CF6' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [{- name: 'main',- displayName: 'Response',- type: 'main' as NodeConnectionType,- description: 'status, data, headers, proxy_provider, proxy_country'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- proxyConfig: {- displayName: 'Proxy Config',- name: 'proxyConfig',- group: ['proxy', 'tool'],- version: 1,- description: 'Configure proxy providers and routing rules. Works as workflow node or AI Agent tool.',- defaults: { name: 'Proxy Config', color: '#8B5CF6' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [{- name: 'main',- displayName: 'Result',- type: 'main' as NodeConnectionType,- description: 'Operation result'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- proxyStatus: {- displayName: 'Proxy Status',- name: 'proxyStatus',- group: ['proxy', 'tool'],- version: 1,- description: 'View proxy provider health, scores, and usage statistics',- defaults: { name: 'Proxy Status', color: '#6366F1' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [{- name: 'main',- displayName: 'Stats',- type: 'main' as NodeConnectionType,- description: 'providers, routing_rules, stats'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// PROXY PARAMETERS (shared, for injection into other nodes)-// ============================================================================--/**- * Common proxy parameters to add to existing nodes (httpRequest, search, scraper).- * These are appended to the node's properties array.- */-export const PROXY_PARAMETERS = [- {- displayName: 'Use Proxy',- name: 'useProxy',- type: 'boolean' as const,- default: false,- description: 'Route request through a residential proxy provider'- },- {- displayName: 'Proxy Provider',- name: 'proxyProvider',- type: 'string' as const,- default: '',- placeholder: 'Auto-select',- description: 'Provider name, or leave empty for auto-selection',- displayOptions: { show: { useProxy: [true] } }- },- {- displayName: 'Proxy Country',- name: 'proxyCountry',- type: 'string' as const,- default: '',- placeholder: 'US',- description: 'ISO country code for geo-targeting',- displayOptions: { show: { useProxy: [true] } }- }-];--export const PROXY_NODE_TYPES = ['proxyRequest', 'proxyStatus', 'proxyConfig'];diff --git a/client/src/nodeDefinitions/schedulerNodes.ts b/client/src/nodeDefinitions/schedulerNodes.tsdeleted file mode 100644index f561e117..00000000--- a/client/src/nodeDefinitions/schedulerNodes.ts+++ /dev/null@@ -1,69 +0,0 @@-// Scheduler Nodes - Time-based workflow triggers-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const schedulerNodes: Record<string, INodeTypeDescription> = {- // Timer node - Simple delay/wait before proceeding- timer: {- displayName: 'Timer',- name: 'timer',- group: ['utility', 'workflow', 'tool'],- version: 1,- subtitle: '={{$parameter["duration"]}} {{$parameter["unit"]}}',- description: 'Wait for a specified duration before continuing. Can also be used as an AI Agent tool.',- defaults: { name: 'Timer', color: '#10b981' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Trigger to start timer'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'timestamp, elapsed_ms, duration, unit'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (WorkflowTriggerParams).- properties: [],- },-- // Cron Scheduler - Recurring scheduled execution- cronScheduler: {- displayName: 'Cron Scheduler',- name: 'cronScheduler',- group: ['trigger', 'workflow', 'tool'],- version: 1,- subtitle: '={{$parameter["frequency"]}}',- description: 'Trigger workflow execution on a schedule. Can also be used as an AI Agent tool.',- defaults: { name: 'Cron Scheduler', color: '#6366f1' },- inputs: [],- outputs: [- {- name: 'main',- displayName: 'Trigger',- type: 'main' as NodeConnectionType,- description: 'timestamp, iteration, scheduled_time, next_run'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (CronSchedulerParams).- // Note: backend now carries the full options arrays for frequency,- // weekday, daily_time, timezone via Field(json_schema_extra=).- properties: [],- },-};--export const SCHEDULER_NODE_TYPES = ['timer', 'cronScheduler'];diff --git a/client/src/nodeDefinitions/searchNodes.ts b/client/src/nodeDefinitions/searchNodes.tsdeleted file mode 100644index 735090f6..00000000--- a/client/src/nodeDefinitions/searchNodes.ts+++ /dev/null@@ -1,116 +0,0 @@-// Search API Node Definitions - Brave Search, Serper, Perplexity Sonar-// Dual-purpose nodes: work as standalone workflow nodes AND AI Agent tools-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// Wave 10.B: icons resolved from asset:<key> via assets/icons/search/*.svg.--// ============================================================================-// SEARCH NODES-// ============================================================================--export const searchNodes: Record<string, INodeTypeDescription> = {- // Brave Search - Web search via Brave Search API- braveSearch: {- displayName: 'Brave Search',- name: 'braveSearch',- group: ['search', 'tool'],- version: 1,- subtitle: 'Web Search',- description: 'Search the web using Brave Search API. Returns web results with titles, snippets, and URLs.',- defaults: { name: 'Brave Search', color: '#FB542B' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Search input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Search results'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Serper Search - Google-powered search via Serper API- serperSearch: {- displayName: 'Serper Search',- name: 'serperSearch',- group: ['search', 'tool'],- version: 1,- subtitle: 'Google Search',- description: 'Search the web using Google via Serper API. Returns web results with titles, snippets, and URLs.',- defaults: { name: 'Serper Search', color: '#4285F4' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Search input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Search results'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Perplexity Search - AI-powered search via Perplexity Sonar API- perplexitySearch: {- displayName: 'Perplexity Search',- name: 'perplexitySearch',- group: ['search', 'tool'],- version: 1,- subtitle: 'AI Search',- description: 'Search the web using Perplexity Sonar AI. Returns an AI-generated answer with citations.',- defaults: { name: 'Perplexity Search', color: '#20808D' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Search input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'AI-powered search results with citations'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--export const SEARCH_NODE_TYPES = ['braveSearch', 'serperSearch', 'perplexitySearch'];diff --git a/client/src/nodeDefinitions/skillNodes.ts b/client/src/nodeDefinitions/skillNodes.tsdeleted file mode 100644index 8fc65729..00000000--- a/client/src/nodeDefinitions/skillNodes.ts+++ /dev/null@@ -1,45 +0,0 @@-// Skill Node Definitions - Skill nodes for Zeenie capabilities-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// SKILL NODES - Connect to Zeenie's input-skill handle-// ============================================================================-// Master Skill node aggregates built-in skills from server/skills/ folders-// and user-created skills from database. Supports inline skill creation/editing.--export const skillNodes: Record<string, INodeTypeDescription> = {- // Master Skill - Aggregates multiple skills with enable/disable toggles- masterSkill: {- displayName: 'Master Skill',- name: 'masterSkill',- group: ['tool'], // Appears in AI Tools category- version: 1,- subtitle: 'Skill Aggregator',- description: 'Combine built-in and custom skills with enable/disable toggles',- defaults: { name: 'Master Skill', color: '#9333EA' },- uiHints: {- hideInputSection: true,- hideOutputSection: true,- hideRunButton: true,- isMasterSkillEditor: true,- hasCodeEditor: true,- },- inputs: [],- outputs: [{- name: 'skill',- displayName: 'Skills',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent skill handle'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// List of skill node types for easy identification-export const SKILL_NODE_TYPES = [- 'masterSkill'-];--// Export for nodeDefinitions.ts-export default skillNodes;diff --git a/client/src/nodeDefinitions/socialNodes.ts b/client/src/nodeDefinitions/socialNodes.tsdeleted file mode 100644index 8650302f..00000000--- a/client/src/nodeDefinitions/socialNodes.ts+++ /dev/null@@ -1,136 +0,0 @@-// Social Node Definitions - Unified social platform messaging-// Supports: WhatsApp, Telegram, Discord, Slack, Signal, SMS, Webchat, Email, Matrix, Teams-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// Wave 8: channel + message-type option lists now live in-// SocialReceiveParams / SocialSendParams Pydantic enums.-// Wave 10.B: node icons resolved from asset:<key> via assets/icons/social/.--// ============================================================================-// SOCIAL NODES-// ============================================================================--export const socialNodes: Record<string, INodeTypeDescription> = {- // Social Receive - Normalizes and filters messages from platform-specific triggers- socialReceive: {- displayName: 'Social Receive',- name: 'socialReceive',- group: ['social'],- version: 1,- subtitle: 'Normalize Message',- description: 'Connects to platform-specific triggers (WhatsApp Receive, etc.) and normalizes messages into unified format. Filters by channel, message type, and sender.',- defaults: { name: 'Social Receive', color: '#6366F1' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Connect to platform trigger (WhatsApp Receive, Telegram, etc.)'- }],- outputs: [- {- name: 'message',- displayName: 'Message',- type: 'main' as NodeConnectionType,- description: 'Text message content for LLM input'- },- {- name: 'media',- displayName: 'Media',- type: 'main' as NodeConnectionType,- description: 'Media data: url, type, mimetype, caption, size, thumbnail, filename'- },- {- name: 'contact',- displayName: 'Contact',- type: 'main' as NodeConnectionType,- description: 'Sender info: sender, sender_phone, sender_name, channel, is_group, group_info'- },- {- name: 'metadata',- displayName: 'Metadata',- type: 'main' as NodeConnectionType,- description: 'Message metadata: message_id, chat_id, timestamp, is_forwarded, is_from_me, reply_to'- }- ],- // Wave 8: schema lives on backend (SocialReceiveParams).- properties: [- { displayName: 'Contact Phone', name: 'contactPhone', type: 'string' as any, default: '', placeholder: '1234567890' },- { displayName: 'Group ID', name: 'groupId', type: 'string' as any, default: '', placeholder: '[email protected]' },- { displayName: 'Keywords', name: 'keywords', type: 'string' as any, default: '', placeholder: 'help, support, info' },- ],- },-- // Social Send - Unified outbound message (dual-purpose: workflow + AI tool)- socialSend: {- displayName: 'Social Send',- name: 'socialSend',- group: ['social', 'tool'],- version: 1,- subtitle: 'Send Message',- description: 'Send messages to any supported chat platform (WhatsApp, Telegram, Discord, Slack, Signal, SMS, Webchat, Email, Matrix, Teams). Works as workflow node or AI Agent tool.',- defaults: { name: 'Social Send', color: '#6366F1' },- inputs: [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Main message input'- },- {- name: 'message',- displayName: 'Message',- type: 'main' as NodeConnectionType,- description: 'Text message content from Social Receive'- },- {- name: 'media',- displayName: 'Media',- type: 'main' as NodeConnectionType,- description: 'Media data: url, type, mimetype, caption, size, thumbnail, filename'- },- {- name: 'contact',- displayName: 'Contact',- type: 'main' as NodeConnectionType,- description: 'Sender info: sender, sender_phone, sender_name, channel, is_group, group_info'- },- {- name: 'metadata',- displayName: 'Metadata',- type: 'main' as NodeConnectionType,- description: 'Message metadata: message_id, chat_id, timestamp, for reply functionality'- }- ],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Message output'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (SocialSendParams).- properties: [- { displayName: 'Phone Number', name: 'phone', type: 'string' as any, default: '', placeholder: '1234567890' },- { displayName: 'Group ID', name: 'groupId', type: 'string' as any, default: '', placeholder: '[email protected]' },- { displayName: 'Channel ID', name: 'channelId', type: 'string' as any, default: '', placeholder: 'C01234567' },- { displayName: 'User ID', name: 'userId', type: 'string' as any, default: '', placeholder: 'U01234567' },- { displayName: 'Chat ID', name: 'chatId', type: 'string' as any, default: '', placeholder: 'chat_123456' },- { displayName: 'Thread ID', name: 'threadId', type: 'string' as any, default: '', placeholder: 'thread_123' },- { displayName: 'Message', name: 'message', type: 'string' as any, default: '', placeholder: 'Enter your message...' },- { displayName: 'Media URL', name: 'mediaUrl', type: 'string' as any, default: '', placeholder: 'https://example.com/image.jpg' },- ],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--export const SOCIAL_NODE_TYPES = ['socialReceive', 'socialSend'];diff --git a/client/src/nodeDefinitions/specializedAgentNodes.ts b/client/src/nodeDefinitions/specializedAgentNodes.tsdeleted file mode 100644index 5cc9c7e5..00000000--- a/client/src/nodeDefinitions/specializedAgentNodes.ts+++ /dev/null@@ -1,403 +0,0 @@-// Specialized Agent Node Definitions - AI Agents with specialized capabilities-import { INodeTypeDescription, NodeConnectionType, INodeProperties } from '../types/INodeProperties';-import { dracula } from '../styles/theme';-import { AI_PROVIDER_OPTIONS } from '../lib/aiModelProviders';--// ============================================================================-// SHARED AI AGENT INPUTS - Used by Specialized Agent Nodes-// ============================================================================--// Inputs shared by AI Agent and all Specialized Agent nodes-export const AI_AGENT_INPUTS = [- {- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Agent input'- },- {- name: 'skill',- displayName: 'Skill',- type: 'main' as NodeConnectionType,- description: 'Skill nodes that provide context and instructions'- },- {- name: 'memory',- displayName: 'Memory',- type: 'main' as NodeConnectionType,- description: 'Memory node for conversation history'- },- {- name: 'tools',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Tool nodes for agent capabilities'- },- {- name: 'task',- displayName: 'Task',- type: 'main' as NodeConnectionType,- description: 'Task completion events from taskTrigger'- }-];--// Outputs shared by AI Agent and all Specialized Agent nodes-export const AI_AGENT_OUTPUTS = [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Agent output'- }-];--// ============================================================================-// SHARED AI AGENT PROPERTIES - Used by Specialized Agent Nodes-// ============================================================================--// Properties shared by AI Agent and all Specialized Agent nodes-export const AI_AGENT_PROPERTIES: INodeProperties[] = [- {- displayName: 'AI Provider',- name: 'provider',- type: 'options',- options: AI_PROVIDER_OPTIONS,- default: 'openai',- description: 'The AI provider to use (configure API keys in Credentials)'- },- {- displayName: 'Model',- name: 'model',- type: 'string',- default: '',- required: true,- placeholder: 'Select a model...',- description: 'AI model to use for the agent',- typeOptions: {- dynamicOptions: true,- dependsOn: ['provider']- }- },- {- displayName: 'Prompt',- name: 'prompt',- type: 'string',- default: '{{ $json.chatInput }}',- required: true,- typeOptions: { rows: 4 },- description: 'The prompt template for the AI agent',- placeholder: 'Enter your prompt or use template variables...'- },- {- displayName: 'System Message',- name: 'systemMessage',- type: 'string',- default: 'You are a helpful assistant',- typeOptions: { rows: 3 },- description: 'Define the behavior and personality of the AI agent'- },- {- displayName: 'Options',- name: 'options',- type: 'collection',- placeholder: 'Add Option',- default: {},- options: [- {- displayName: 'Temperature',- name: 'temperature',- type: 'number',- default: 0.7,- typeOptions: { minValue: 0, maxValue: 2, numberStepSize: 0.1 },- description: 'Controls randomness in responses'- },- {- displayName: 'Maximum Tokens',- name: 'maxTokens',- type: 'number',- default: 4096,- typeOptions: { minValue: 1, maxValue: 200000 },- description: 'Maximum number of tokens to generate'- },- {- displayName: 'Thinking/Reasoning',- name: 'thinkingEnabled',- type: 'boolean',- default: false,- description: 'Enable extended thinking for supported providers'- },- {- displayName: 'Thinking Budget',- name: 'thinkingBudget',- type: 'number',- default: 2048,- typeOptions: { minValue: 1024, maxValue: 16000 },- description: 'Token budget for thinking (Claude, Gemini, Cerebras)',- displayOptions: { show: { thinkingEnabled: [true] } }- },- {- displayName: 'Reasoning Effort',- name: 'reasoningEffort',- type: 'options',- options: [- { name: 'Low', value: 'low' },- { name: 'Medium', value: 'medium' },- { name: 'High', value: 'high' }- ],- default: 'medium',- description: 'Reasoning effort level (OpenAI o-series, Groq)',- displayOptions: { show: { thinkingEnabled: [true] } }- }- ] as any- }-];--// ============================================================================-// SPECIALIZED AGENT NODES - AI Agents with domain-specific capabilities-// ============================================================================--export const specializedAgentNodes: Record<string, INodeTypeDescription> = {- // Android Control Agent - AI Agent with Android device control capabilities- android_agent: {- displayName: 'Android Control Agent',- name: 'android_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Device Control',- description: 'AI Agent specialized for Android device control. Connect skills, memory, and tool nodes to enable Android automation capabilities.',- defaults: { name: 'Android Control Agent', color: dracula.green },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Coding Agent - AI Agent with code execution capabilities- coding_agent: {- displayName: 'Coding Agent',- name: 'coding_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Code Execution',- description: 'AI Agent specialized for code execution. Connect skills, memory, and code executor nodes to enable coding capabilities.',- defaults: { name: 'Coding Agent', color: dracula.cyan },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Web Control Agent - AI Agent with web automation capabilities- web_agent: {- displayName: 'Web Control Agent',- name: 'web_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Browser Automation',- description: 'AI Agent specialized for web automation. Connect skills, memory, and web control nodes to enable browser automation and HTTP capabilities.',- defaults: { name: 'Web Control Agent', color: dracula.pink },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Task Management Agent - AI Agent with task automation capabilities- task_agent: {- displayName: 'Task Management Agent',- name: 'task_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Task Automation',- description: 'AI Agent specialized for task management. Connect skills, memory, and task nodes to enable scheduling and reminder capabilities.',- defaults: { name: 'Task Management Agent', color: dracula.purple },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Social Media Agent - AI Agent with social messaging capabilities- social_agent: {- displayName: 'Social Media Agent',- name: 'social_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Social Messaging',- description: 'AI Agent specialized for social media. Connect skills, memory, and messaging nodes to enable WhatsApp, Telegram, and other social capabilities.',- defaults: { name: 'Social Media Agent', color: dracula.green },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Travel Agent - AI Agent with travel planning capabilities- travel_agent: {- displayName: 'Travel Agent',- name: 'travel_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Travel Planning',- description: 'AI Agent specialized for travel planning. Connect skills, memory, and tool nodes to enable itinerary building, location lookups, and travel recommendations.',- defaults: { name: 'Travel Agent', color: dracula.orange },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Tool Agent - AI Agent for orchestrating multiple tools- tool_agent: {- displayName: 'Tool Agent',- name: 'tool_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Tool Orchestration',- description: 'AI Agent specialized for tool orchestration. Connect skills, memory, and multiple tool nodes to enable multi-tool workflows and complex task execution.',- defaults: { name: 'Tool Agent', color: dracula.yellow },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Productivity Agent - AI Agent for productivity and time management- productivity_agent: {- displayName: 'Productivity Agent',- name: 'productivity_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Productivity',- description: 'AI Agent specialized for productivity. Connect skills, memory, and tool nodes to enable scheduling, reminders, note-taking, and workflow automation.',- defaults: { name: 'Productivity Agent', color: dracula.cyan },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Payments Agent - AI Agent for payment processing and financial operations- payments_agent: {- displayName: 'Payments Agent',- name: 'payments_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Payment Processing',- description: 'AI Agent specialized for payment processing. Connect skills, memory, and tool nodes to enable payment workflows, invoice generation, and financial operations.',- defaults: { name: 'Payments Agent', color: dracula.green },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Consumer Agent - AI Agent for consumer interactions and support- consumer_agent: {- displayName: 'Consumer Agent',- name: 'consumer_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Consumer Support',- description: 'AI Agent specialized for consumer interactions. Connect skills, memory, and tool nodes to enable customer support, product recommendations, and order management.',- defaults: { name: 'Consumer Agent', color: dracula.purple },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Autonomous Agent - AI Agent for autonomous operations with Code Mode patterns- autonomous_agent: {- displayName: 'Autonomous Agent',- name: 'autonomous_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Autonomous Operations',- description: 'AI Agent specialized for autonomous operations. Uses Code Mode patterns (81-98% token savings), agentic loops, progressive discovery, error recovery, and multi-tool orchestration.',- defaults: { name: 'Autonomous Agent', color: dracula.purple },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- properties: AI_AGENT_PROPERTIES- },-- // Orchestrator Agent - Coordinates multiple agents for complex workflows- orchestrator_agent: {- displayName: 'Orchestrator Agent',- name: 'orchestrator_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Agent Coordination',- description: 'AI Agent specialized for orchestrating multiple agents. Coordinates complex multi-agent workflows by delegating tasks to specialized agents and synthesizing their results.',- defaults: { name: 'Orchestrator Agent', color: dracula.cyan },- inputs: [- ...AI_AGENT_INPUTS,- { name: 'teammates', displayName: 'Team', type: 'main' as NodeConnectionType, description: 'Connect teammate agents for team mode' }- ],- outputs: AI_AGENT_OUTPUTS,- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // AI Employee - Team lead node for coordinating multiple agents- ai_employee: {- displayName: 'AI Employee',- name: 'ai_employee',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Team Orchestration',- description: 'AI Employee for coordinating multiple AI agents. Connect teammate agents to enable shared task lists, messaging, and coordinated execution.',- defaults: { name: 'AI Employee', color: dracula.purple },- inputs: [- ...AI_AGENT_INPUTS,- { name: 'teammates', displayName: 'Team', type: 'main' as NodeConnectionType, description: 'Connect teammate agents' }- ],- outputs: AI_AGENT_OUTPUTS,- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // RLM Agent - Recursive Language Model with REPL-based reasoning- rlm_agent: {- displayName: 'RLM Agent',- name: 'rlm_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Recursive Reasoning',- description: 'Recursive Language Model agent. Uses REPL code execution with recursive LM calls for complex reasoning tasks.',- defaults: { name: 'RLM Agent', color: dracula.orange },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- claude_code_agent: {- displayName: 'Claude Code Agent',- name: 'claude_code_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'Agentic Coding',- description: 'AI Agent powered by Claude Code CLI for agentic code generation, file editing, and command execution',- defaults: { name: 'Claude Code Agent', color: dracula.cyan },- inputs: AI_AGENT_INPUTS,- outputs: AI_AGENT_OUTPUTS,- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Deep Agent - LangChain DeepAgents powered agent with filesystem, sub-agents, and planning- deep_agent: {- displayName: 'Deep Agent',- name: 'deep_agent',- group: ['agent', 'ai'],- version: 1,- subtitle: 'LangChain DeepAgents',- description: 'AI Agent powered by LangChain DeepAgents with built-in filesystem tools (read, write, edit, glob, grep, execute), sub-agent delegation, auto-summarization, and todo planning.',- defaults: { name: 'Deep Agent', color: dracula.green },- inputs: [- ...AI_AGENT_INPUTS,- { name: 'teammates', displayName: 'Team', type: 'main' as NodeConnectionType, description: 'Connect agents for sub-agent delegation via task tool' }- ],- outputs: AI_AGENT_OUTPUTS,- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--// List of specialized agent node types for identification-export const SPECIALIZED_AGENT_TYPES = ['android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent', 'autonomous_agent', 'orchestrator_agent', 'ai_employee', 'rlm_agent', 'claude_code_agent', 'deep_agent'];diff --git a/client/src/nodeDefinitions/telegramNodes.ts b/client/src/nodeDefinitions/telegramNodes.tsdeleted file mode 100644index 06effd8e..00000000--- a/client/src/nodeDefinitions/telegramNodes.ts+++ /dev/null@@ -1,83 +0,0 @@-// Telegram Node Definitions - Messaging integration via python-telegram-bot-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// Wave 10.B: node icons resolved from asset:telegram via assets/icons/telegram/.-// TELEGRAM_LOGO_ICON retained as a data URI export because external consumers-// (credentials modal, skill editor) still read it directly.-export const TELEGRAM_LOGO_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230088CC'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E";--// ============================================================================-// TELEGRAM NODES-// ============================================================================--export const telegramNodes: Record<string, INodeTypeDescription> = {- // Telegram Send Message Node - Send text, media, location, contact- telegramSend: {- displayName: 'Telegram Send',- name: 'telegramSend',- group: ['social', 'tool'],- version: 1,- subtitle: 'Send Telegram Message',- description: 'Send text, photo, document, location, or contact messages via Telegram bot',- defaults: { name: 'Telegram Send', color: '#0088CC' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Message input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Message output'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (TelegramSendParams).- properties: [- { displayName: 'Chat ID', name: 'chatId', type: 'string' as any, default: '', placeholder: '123456789 or @username' },- { displayName: 'Message Text', name: 'text', type: 'string' as any, default: '', placeholder: 'Enter your message...' },- { displayName: 'Media URL', name: 'mediaUrl', type: 'string' as any, default: '', placeholder: 'https://example.com/image.jpg' },- { displayName: 'Phone Number', name: 'phone', type: 'string' as any, default: '', placeholder: '+1234567890' },- { displayName: 'First Name', name: 'firstName', type: 'string' as any, default: '', placeholder: 'John' },- { displayName: 'Last Name', name: 'lastName', type: 'string' as any, default: '', placeholder: 'Doe' },- ],- },-- // Telegram Receive Message - triggers workflow on incoming messages- telegramReceive: {- displayName: 'Telegram Receive',- name: 'telegramReceive',- group: ['social', 'trigger'],- version: 1,- subtitle: 'On Message Received',- description: 'Trigger workflow when Telegram message is received. Outputs message data including sender, content, and metadata.',- defaults: { name: 'Telegram Receive', color: '#0077B5' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Message',- type: 'main' as NodeConnectionType,- description: 'Received message data (message_id, chat_id, chat_type, from_id, from_username, text, content_type, date)'- }],- // Wave 8: schema lives on backend (TelegramReceiveParams).- properties: [- { displayName: 'Chat ID', name: 'chatId', type: 'string' as any, default: '', placeholder: '123456789' },- { displayName: 'User ID', name: 'fromUser', type: 'string' as any, default: '', placeholder: '987654321' },- { displayName: 'Keywords', name: 'keywords', type: 'string' as any, default: '', placeholder: 'help, support, info' },- ],- },-};--// ============================================================================-// EXPORTS-// ============================================================================--export const TELEGRAM_NODE_TYPES = ['telegramSend', 'telegramReceive'];diff --git a/client/src/nodeDefinitions/toolNodes.ts b/client/src/nodeDefinitions/toolNodes.tsdeleted file mode 100644index 5b525f4b..00000000--- a/client/src/nodeDefinitions/toolNodes.ts+++ /dev/null@@ -1,131 +0,0 @@-// Tool Node Definitions - Tool nodes for AI Agent tool calling-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// TOOL NODES - Connect to AI Agent's input-tools handle-// ============================================================================--export const toolNodes: Record<string, INodeTypeDescription> = {- // Calculator Tool - allows AI Agent to perform mathematical calculations- calculatorTool: {- displayName: 'Calculator Tool',- name: 'calculatorTool',- group: ['tool', 'ai'],- version: 1,- subtitle: 'Math Operations',- description: 'Allow AI Agent to perform mathematical calculations',- defaults: { name: 'Calculator', color: '#50fa7b' },- inputs: [], // No input - tool node is passive- outputs: [{- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Current Time Tool - allows AI Agent to get current date and time- currentTimeTool: {- displayName: 'Current Time Tool',- name: 'currentTimeTool',- group: ['tool', 'ai'],- version: 1,- subtitle: 'Date & Time',- description: 'Allow AI Agent to get current date and time',- defaults: { name: 'Current Time', color: '#ffb86c' },- inputs: [],- outputs: [{- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // DuckDuckGo Search Tool - allows AI Agent to search the web (free, no API key)- duckduckgoSearch: {- displayName: 'DuckDuckGo Search',- name: 'duckduckgoSearch',- group: ['tool', 'ai'],- version: 1,- subtitle: 'Free Web Search',- description: 'Allow AI Agent to search the web for free via DuckDuckGo (no API key required)',- defaults: { name: 'DuckDuckGo', color: '#DE5833' },- inputs: [],- outputs: [{- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Task Manager Tool - allows AI Agent to track and manage delegated tasks- taskManager: {- displayName: 'Task Manager',- name: 'taskManager',- group: ['tool', 'ai'],- version: 1,- subtitle: 'Track Delegated Tasks',- description: 'Manage and track delegated sub-agent tasks. Works as AI tool OR standalone workflow node.',- defaults: { name: 'Task Manager', color: '#8B5CF6' },- inputs: [],- outputs: [- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- },- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Task list output for workflow use'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // Write Todos Tool - allows AI Agent to plan and track complex multi-step tasks- writeTodos: {- displayName: 'Write Todos',- name: 'writeTodos',- group: ['tool', 'ai'],- version: 1,- subtitle: 'Task Planning',- description: 'Create and manage a structured task list for complex multi-step operations. Works as AI tool OR standalone workflow node.',- defaults: { name: 'Write Todos', color: '#bd93f9' },- inputs: [],- outputs: [- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- },- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Todo list output for workflow use'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- }-};--// ============================================================================-// EXPORTS-// ============================================================================--// List of tool node types for identification-export const TOOL_NODE_TYPES = ['calculatorTool', 'currentTimeTool', 'duckduckgoSearch', 'taskManager', 'writeTodos'];diff --git a/client/src/nodeDefinitions/twitterNodes.ts b/client/src/nodeDefinitions/twitterNodes.tsdeleted file mode 100644index d9f7e7d8..00000000--- a/client/src/nodeDefinitions/twitterNodes.ts+++ /dev/null@@ -1,157 +0,0 @@-// Twitter/X Node Definitions - X API v2 integration via OAuth 2.0-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--// ============================================================================-// TWITTER ICONS (SVG Data URIs) - X Brand black color-// ============================================================================--// Wave 10.B: node icons resolved from asset:x via assets/icons/twitter/x.svg.-// TWITTER_ICON export retained because credentials modal still imports the-// raw data URI directly (providers.tsx).-export const TWITTER_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E";--// ============================================================================-// TWITTER NODES-// ============================================================================--export const twitterNodes: Record<string, INodeTypeDescription> = {- // Twitter Send - Post tweets, reply, retweet, like- twitterSend: {- displayName: 'Twitter Send',- name: 'twitterSend',- group: ['social', 'tool'],- version: 1,- subtitle: 'Post to Twitter/X',- description: 'Post tweets, reply, retweet, like, or delete tweets on Twitter/X',- defaults: { name: 'Twitter Send', color: '#000000' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Tweet input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Tweet result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (TwitterSendParams).- properties: [- { displayName: 'Tweet Text', name: 'text', type: 'string' as any, default: '', placeholder: "What's happening?" },- { displayName: 'Tweet ID', name: 'tweetId', type: 'string' as any, default: '', placeholder: '1234567890123456789' },- { displayName: 'Media URLs', name: 'mediaUrls', type: 'string' as any, default: '', placeholder: 'https://example.com/image1.jpg, https://example.com/image2.jpg' },- { displayName: 'Poll Options', name: 'pollOptions', type: 'string' as any, default: '', placeholder: 'Option 1, Option 2, Option 3' },- ],- },-- // Twitter Receive - Trigger on mentions, searches, timeline updates- twitterReceive: {- displayName: 'Twitter Receive',- name: 'twitterReceive',- group: ['social', 'trigger'],- version: 1,- subtitle: 'On Twitter Event',- description: 'Trigger workflow on Twitter mentions, search results, or timeline updates (polling-based)',- defaults: { name: 'Twitter Receive', color: '#1DA1F2' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Tweet',- type: 'main' as NodeConnectionType,- description: 'Received tweet data (tweet_id, text, author_id, author_username, created_at, metrics)'- }],- // Wave 8: schema lives on backend (TwitterReceiveParams).- properties: [- { displayName: 'Search Query', name: 'searchQuery', type: 'string' as any, default: '', placeholder: 'from:elonmusk OR #AI' },- { displayName: 'User ID', name: 'userId', type: 'string' as any, default: '', placeholder: '12345678' },- ],- },-- // Twitter Search - Search recent tweets- twitterSearch: {- displayName: 'Twitter Search',- name: 'twitterSearch',- group: ['social', 'tool'],- version: 1,- subtitle: 'Search Tweets',- description: 'Search recent tweets on Twitter/X using the Search API',- defaults: { name: 'Twitter Search', color: '#1DA1F2' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Search input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Search results'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (TwitterSearchParams).- properties: [- { displayName: 'Search Query', name: 'query', type: 'string' as any, default: '', placeholder: '#AI lang:en -is:retweet' },- { displayName: 'Start Time', name: 'startTime', type: 'string' as any, default: '', placeholder: '2024-01-01T00:00:00Z' },- { displayName: 'End Time', name: 'endTime', type: 'string' as any, default: '', placeholder: '2024-01-31T23:59:59Z' },- ],- },-- // Twitter User - User lookup and profile operations (dual-purpose: workflow + AI tool)- twitterUser: {- displayName: 'Twitter User',- name: 'twitterUser',- group: ['social', 'tool'],- version: 1,- subtitle: 'User Operations',- description: 'Look up Twitter users, get profile info, followers, following',- defaults: { name: 'Twitter User', color: '#1DA1F2' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'User lookup input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'User data'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent input-tools handle'- }- ],- // Wave 8: schema lives on backend (TwitterUserParams).- properties: [- { displayName: 'Username', name: 'username', type: 'string' as any, default: '', placeholder: 'elonmusk' },- { displayName: 'User ID', name: 'userId', type: 'string' as any, default: '', placeholder: '44196397' },- ],- },-};--// ============================================================================-// EXPORTS-// ============================================================================--export const TWITTER_NODE_TYPES = ['twitterSend', 'twitterReceive', 'twitterSearch', 'twitterUser'];diff --git a/client/src/nodeDefinitions/utilityNodes.ts b/client/src/nodeDefinitions/utilityNodes.tsdeleted file mode 100644index 7616184d..00000000--- a/client/src/nodeDefinitions/utilityNodes.ts+++ /dev/null@@ -1,117 +0,0 @@-// Utility Nodes - HTTP Request, Webhooks-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const utilityNodes: Record<string, INodeTypeDescription> = {- httpRequest: {- displayName: 'HTTP Request',- name: 'httpRequest',- group: ['utility', 'tool'],- version: 1,- description: 'Make HTTP requests to external APIs',- defaults: { name: 'HTTP Request', color: '#6366f1' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [{- name: 'main',- displayName: 'Response',- type: 'main' as NodeConnectionType,- description: 'status, data, headers'- }],- // Wave 8: schema lives on backend (HttpRequestParams). Only UX- // placeholders and JSON starter blobs remain here.- properties: [- { displayName: 'URL', name: 'url', type: 'string' as any, default: '', placeholder: 'https://api.example.com/endpoint' },- { displayName: 'Headers', name: 'headers', type: 'string' as any, default: '{}', placeholder: '{"Authorization": "Bearer token"}' },- { displayName: 'Body', name: 'body', type: 'string' as any, default: '', placeholder: '{"key": "value"}' },- { displayName: 'Proxy Country', name: 'proxyCountry', type: 'string' as any, default: '', placeholder: 'US' },- { displayName: 'Proxy Provider', name: 'proxyProvider', type: 'string' as any, default: '', placeholder: 'Auto-select' },- ],- },-- webhookTrigger: {- displayName: 'Webhook Trigger',- name: 'webhookTrigger',- group: ['trigger'],- version: 1,- description: 'Start workflow when HTTP request is received',- defaults: { name: 'Webhook', color: '#f59e0b' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Request',- type: 'main' as NodeConnectionType,- description: 'method, path, headers, query, body, json'- }],- // Wave 8: schema lives on backend (WebhookTriggerParams).- properties: [- { displayName: 'Path', name: 'path', type: 'string' as any, default: '', placeholder: 'my-webhook' },- ],- },-- webhookResponse: {- displayName: 'Webhook Response',- name: 'webhookResponse',- group: ['utility'],- version: 1,- description: 'Send response back to webhook caller',- defaults: { name: 'Response', color: '#10b981' },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Trigger input' }],- outputs: [],- // Wave 8: schema lives on backend (WebhookResponseParams).- properties: [- { displayName: 'Response Body', name: 'responseBody', type: 'string' as any, default: '', placeholder: '{"success": true, "data": ...}' },- ],- },-- chatTrigger: {- displayName: 'Chat Trigger',- name: 'chatTrigger',- group: ['utility', 'trigger'],- version: 1,- description: 'Trigger workflow when user sends a chat message from the console input',- defaults: { name: 'Chat Trigger', color: '#10b981' },- uiHints: { isChatTrigger: true },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Message',- type: 'main' as NodeConnectionType,- description: 'message, timestamp, session_id'- }],- // Wave 8: schema lives on backend (ChatTriggerParams).- properties: [],- },-- console: {- displayName: 'Console',- name: 'console',- group: ['utility'],- version: 1,- description: 'Log data to console panel for debugging during execution',- defaults: { name: 'Console', color: '#8b5cf6' },- uiHints: { isConsoleSink: true },- inputs: [{ name: 'main', displayName: 'Input', type: 'main' as NodeConnectionType, description: 'Data to log' }],- outputs: [{ name: 'main', displayName: 'Output', type: 'main' as NodeConnectionType, description: 'Passes input through unchanged' }],- // Wave 8: schema lives on backend (ConsoleParams).- properties: [- { displayName: 'Label', name: 'label', type: 'string' as any, default: '', placeholder: 'Debug Point 1' },- { displayName: 'Field Path', name: 'fieldPath', type: 'string' as any, default: '', placeholder: 'data.items[0].name' },- { displayName: 'Expression', name: 'expression', type: 'string' as any, default: '', placeholder: '{{input.field}}' },- ],- },-- teamMonitor: {- displayName: 'Team Monitor',- name: 'teamMonitor',- group: ['utility', 'agent'],- version: 1,- description: 'Monitor agent team operations, tasks, and messages in real-time',- defaults: { name: 'Team Monitor', color: '#8b5cf6' },- uiHints: { hideInputSection: true, hideOutputSection: true, isMonitorPanel: true },- inputs: [{ name: 'team', displayName: 'Team', type: 'main' as NodeConnectionType, description: 'Connect to AI Employee or Orchestrator Agent node' }],- outputs: [{ name: 'main', displayName: 'Events', type: 'main' as NodeConnectionType, description: 'task_completed, task_failed, message_received, team_status' }],- // Wave 8: schema lives on backend (TeamMonitorParams).- properties: [],- },-};--export const UTILITY_NODE_TYPES = ['httpRequest', 'webhookTrigger', 'webhookResponse', 'chatTrigger', 'console', 'teamMonitor'];diff --git a/client/src/nodeDefinitions/whatsappNodes.ts b/client/src/nodeDefinitions/whatsappNodes.tsdeleted file mode 100644index 4769bfc1..00000000--- a/client/src/nodeDefinitions/whatsappNodes.ts+++ /dev/null@@ -1,289 +0,0 @@-// WhatsApp Node Definitions - Messaging integration via whatsmeow-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';-import { API_CONFIG } from '../config/api';--// Get WebSocket URL dynamically based on environment-const getWebSocketUrl = (): string => {- const baseUrl = API_CONFIG.PYTHON_BASE_URL;-- // Production: empty base URL means use current origin- if (!baseUrl) {- const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';- return `${wsProtocol}://${window.location.host}/ws/status`;- }-- // Development: convert http(s) to ws(s)- const wsProtocol = baseUrl.startsWith('https') ? 'wss' : 'ws';- const wsUrl = baseUrl.replace(/^https?/, wsProtocol);- return `${wsUrl}/ws/status`;-};--// Helper to make WebSocket requests-async function wsRequest(type: string, data: Record<string, unknown> = {}): Promise<unknown> {- return new Promise((resolve, reject) => {- const ws = new WebSocket(getWebSocketUrl());- const timeout = setTimeout(() => {- ws.close();- reject(new Error('WebSocket request timeout'));- }, 10000);-- ws.onopen = () => {- ws.send(JSON.stringify({ type, ...data }));- };-- ws.onmessage = (event) => {- clearTimeout(timeout);- try {- const response = JSON.parse(event.data);- ws.close();- resolve(response);- } catch (e) {- ws.close();- reject(e);- }- };-- ws.onerror = (error) => {- clearTimeout(timeout);- ws.close();- reject(error);- };- });-}--// Wave 10.B: node icons resolved from asset:whatsapp via-// assets/icons/whatsapp/whatsapp.svg. WHATSAPP_CONNECT_ICON export-// retained because the credentials modal reads the raw data URI.-export const WHATSAPP_CONNECT_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E";--// ============================================================================-// WHATSAPP NODES-// ============================================================================--export const whatsappNodes: Record<string, INodeTypeDescription> = {- // WhatsApp Send Message Node - Enhanced with full schema support- whatsappSend: {- displayName: 'WhatsApp Send',- name: 'whatsappSend',- group: ['whatsapp', 'tool'],- version: 1,- subtitle: 'Send WhatsApp Message',- description: 'Send text, media, location, or contact messages via WhatsApp',- defaults: { name: 'WhatsApp Send', color: '#25D366' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Message input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Message output'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- },-- // WhatsApp Receive Message - triggers workflow on incoming messages- whatsappReceive: {- displayName: 'WhatsApp Receive',- name: 'whatsappReceive',- group: ['whatsapp', 'trigger'],- version: 1,- subtitle: 'On Message Received',- description: 'Trigger workflow when WhatsApp message is received. Outputs message data including sender, content, and metadata.',- defaults: { name: 'WhatsApp Receive', color: '#075E54' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Message',- type: 'main' as NodeConnectionType,- description: 'Received message data (message_id, sender, sender_phone, chat_id, message_type, text, timestamp, is_group, is_from_me, group_info.sender_jid, group_info.sender_phone, group_info.sender_name)'- }],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- methods: {- loadOptions: {- async getWhatsAppGroups(): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const response = await wsRequest('whatsapp_groups') as { success: boolean; groups?: Array<{ jid: string; name: string; participant_count?: number; is_community?: boolean }> };-- if (response.success && response.groups) {- // Filter out communities - they don't have regular chat history- const regularGroups = response.groups.filter((group) => !group.is_community);- if (regularGroups.length === 0) {- return [{ name: 'No groups found', value: '', description: 'Only communities found (no chat history)' }];- }- return regularGroups.map((group) => ({- name: group.name || group.jid,- value: group.jid,- description: group.participant_count ? `${group.participant_count} members` : undefined- }));- }- return [{ name: 'No groups found', value: '', description: 'Connect WhatsApp first' }];- } catch (error) {- console.error('Error loading WhatsApp groups:', error);- return [{ name: 'Error loading groups', value: '', description: 'Check WhatsApp connection' }];- }- },-- async getGroupMembers(this: { getCurrentNodeParameter: (name: string) => string }): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const groupId = this.getCurrentNodeParameter('group_id');- if (!groupId) {- return [{ name: 'Select a group first', value: '', description: 'Choose a group above' }];- }-- const response = await wsRequest('whatsapp_group_info', { group_id: groupId }) as {- success: boolean;- participants?: Array<{ phone: string; name: string; jid: string; is_admin?: boolean }>;- name?: string;- };-- if (response.success && response.participants && response.participants.length > 0) {- // Add "All Members" option first- const options: Array<{name: string, value: string, description?: string}> = [- { name: 'All Members', value: '', description: 'Receive from anyone in group' }- ];-- // Add each participant- for (const p of response.participants) {- const displayName = p.name || p.phone;- const adminLabel = p.is_admin ? ' (Admin)' : '';- options.push({- name: `${displayName}${adminLabel}`,- value: p.phone,- description: p.phone- });- }-- return options;- }-- return [{ name: 'No members found', value: '', description: 'Could not load group members' }];- } catch (error) {- console.error('Error loading group members:', error);- return [{ name: 'Error loading members', value: '', description: 'Check WhatsApp connection' }];- }- },-- async getWhatsAppChannels(): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const response = await wsRequest('whatsapp_newsletters') as { success: boolean; channels?: Array<{ jid: string; name: string; subscriber_count?: number; role?: string }> };-- if (response.success && response.channels) {- if (response.channels.length === 0) {- return [{ name: 'No channels found', value: '', description: 'Follow some channels first' }];- }- return response.channels.map((ch) => ({- name: ch.name || ch.jid,- value: ch.jid,- description: ch.subscriber_count ? `${ch.subscriber_count} subscribers` : undefined- }));- }- return [{ name: 'No channels found', value: '', description: 'Connect WhatsApp first' }];- } catch (error) {- console.error('Error loading WhatsApp channels:', error);- return [{ name: 'Error loading channels', value: '', description: 'Check WhatsApp connection' }];- }- }- }- }- },-- // WhatsApp DB Node - Query contacts, groups, messages- // Can be used as workflow node OR as AI Agent tool (group includes 'tool')- whatsappDb: {- displayName: 'WhatsApp DB',- name: 'whatsappDb',- group: ['whatsapp', 'tool'],- version: 1,- subtitle: 'Query WhatsApp',- description: 'Query WhatsApp database - contacts, groups, messages, contact info',- defaults: { name: 'WhatsApp DB', color: '#25D366' },- inputs: [{- name: 'main',- displayName: 'Input',- type: 'main' as NodeConnectionType,- description: 'Trigger input'- }],- outputs: [- {- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Query result'- },- {- name: 'tool',- displayName: 'Tool',- type: 'main' as NodeConnectionType,- description: 'Connect to AI Agent tool handle'- }- ],- // Wave 8: schema lives on backend (see server/models/nodes.py).- properties: [],- methods: {- loadOptions: {- async getWhatsAppGroups(): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const response = await wsRequest('whatsapp_groups') as { success: boolean; groups?: Array<{ jid: string; name: string; participant_count?: number; is_community?: boolean }> };-- if (response.success && response.groups) {- const regularGroups = response.groups.filter((group) => !group.is_community);- if (regularGroups.length === 0) {- return [{ name: 'No groups found', value: '', description: 'Only communities found' }];- }- return regularGroups.map((group) => ({- name: group.name || group.jid,- value: group.jid,- description: group.participant_count ? `${group.participant_count} members` : undefined- }));- }- return [{ name: 'No groups found', value: '', description: 'Connect WhatsApp first' }];- } catch (error) {- console.error('Error loading WhatsApp groups:', error);- return [{ name: 'Error loading groups', value: '', description: 'Check WhatsApp connection' }];- }- },-- async getWhatsAppChannels(): Promise<Array<{name: string, value: string, description?: string}>> {- try {- const response = await wsRequest('whatsapp_newsletters') as { success: boolean; channels?: Array<{ jid: string; name: string; subscriber_count?: number; role?: string }> };-- if (response.success && response.channels) {- if (response.channels.length === 0) {- return [{ name: 'No channels found', value: '', description: 'Follow some channels first' }];- }- return response.channels.map((ch) => ({- name: ch.name || ch.jid,- value: ch.jid,- description: [ch.role, ch.subscriber_count ? `${ch.subscriber_count} subscribers` : ''].filter(Boolean).join(' - ') || undefined- }));- }- return [{ name: 'No channels found', value: '', description: 'Connect WhatsApp first' }];- } catch (error) {- console.error('Error loading WhatsApp channels:', error);- return [{ name: 'Error loading channels', value: '', description: 'Check WhatsApp connection' }];- }- }- }- }- }-};--// ============================================================================-// EXPORTS-// ============================================================================--export const WHATSAPP_NODE_TYPES = ['whatsappSend', 'whatsappReceive', 'whatsappDb'];diff --git a/client/src/nodeDefinitions/workflowNodes.ts b/client/src/nodeDefinitions/workflowNodes.tsdeleted file mode 100644index 0e926225..00000000--- a/client/src/nodeDefinitions/workflowNodes.ts+++ /dev/null@@ -1,58 +0,0 @@-// Workflow Control Nodes - Start, triggers, and flow control-import { INodeTypeDescription, NodeConnectionType } from '../types/INodeProperties';--export const workflowNodes: Record<string, INodeTypeDescription> = {- // Start Node - Entry point for workflows- start: {- displayName: 'Start',- name: 'start',- group: ['workflow'],- version: 1,- subtitle: 'Workflow Entry',- description: 'Starting point for workflow execution. Provides initial data to connected nodes.',- defaults: { name: 'Start', color: '#8be9fd' },- uiHints: { hideInputSection: true, hideOutputSection: true },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'Workflow start output'- }],- // Wave 8: properties retain the non-empty `default` placeholder- // blob which the merge in lib/nodeSpec.ts preserves over the- // backend's "{}" default. Everything else (type, rows,- // description) now comes from StartNodeParams.- properties: [- {- displayName: 'Initial Data',- name: 'initialData',- type: 'string',- default: '{}',- placeholder: '{\n "message": "Hello World",\n "value": 123\n}',- },- ],- },-- // Task Trigger - Event-driven trigger for child agent completion- taskTrigger: {- displayName: 'Task Completed',- name: 'taskTrigger',- group: ['trigger', 'workflow'],- version: 1,- subtitle: 'Child Agent Completed',- description: 'Triggers when a delegated child agent completes its task (success or error)',- defaults: { name: 'Task Completed', color: '#bd93f9' },- inputs: [],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'task_id, status, agent_name, result/error, parent_node_id'- }],- // Wave 8: parameter schema lives on the backend (TaskTriggerParams).- properties: [],- },-};--export const WORKFLOW_NODE_TYPES = ['start', 'taskTrigger'];diff --git a/client/src/services/executionService.ts b/client/src/services/executionService.tsindex ec5cc8c7..a3a6a236 100644--- a/client/src/services/executionService.ts+++ b/client/src/services/executionService.ts@@ -1,9 +1,9 @@-import { nodeDefinitions } from '../nodeDefinitions';import { getCachedNodeSpec } from '../lib/nodeSpec';import { Node, Edge } from 'reactflow';import { INodeExecutionData } from '../types/INodeProperties';import { API_CONFIG } from '../config/api';+import { resolveNodeDescription } from '../lib/nodeSpec';// Execution result with n8n-compatible dataexport interface ExecutionResult {success: boolean;@@ -101,7 +101,7 @@ export class ExecutionService {success: true,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,outputs: outputData,@@ -124,7 +124,7 @@ export class ExecutionService {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: result.timestamp || new Date().toISOString(),executionTime: result.execution_time || executionTime,error: result.error,@@ -148,7 +148,7 @@ export class ExecutionService {success: false,nodeId,nodeType,- nodeName: nodeDefinitions[nodeType]?.displayName || nodeType,+ nodeName: resolveNodeDescription(nodeType)?.displayName || nodeType,timestamp: new Date().toISOString(),executionTime: 0,error: error.message || 'WebSocket execution failed',@@ -186,7 +186,6 @@ export class ExecutionService {* the spec cache is still warming.*/static isNodeTypeSupported(nodeType: string): boolean {- if (getCachedNodeSpec(nodeType)) return true;- return nodeType in nodeDefinitions;+ return getCachedNodeSpec(nodeType) !== null;}}\ No newline at end of filediff --git a/client/src/types/ComponentTypes.ts b/client/src/types/ComponentTypes.tsindex e50a0833..e3e05196 100644--- a/client/src/types/ComponentTypes.ts+++ b/client/src/types/ComponentTypes.ts@@ -12,7 +12,6 @@ export interface ComponentPaletteActions {}export interface ComponentPaletteProps extends ComponentPaletteState, ComponentPaletteActions {- nodeDefinitions: Record<string, INodeTypeDescription>;proMode?: boolean; // false = simple mode (only AI categories), true = pro mode (all categories)}diff --git a/client/vitest.config.ts b/client/vitest.config.tsindex 536e48e6..432e9989 100644--- a/client/vitest.config.ts+++ b/client/vitest.config.ts@@ -18,7 +18,7 @@ export default defineConfig({provider: 'v8',reporter: ['text', 'html'],include: [- 'src/nodeDefinitions/**',+ 'src/adapters/**','src/factories/**','src/types/**','src/hooks/useApiKeys.ts',