Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(nodes): Wave 10.G.3 — MiddleSection + InputSection schema-driven
trohitgadbf53fcd53b
diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex 0fb7bf0f..66f881fa 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -6,7 +6,7 @@ import { Node, Edge } from 'reactflow';import { useDragVariable } from '../../hooks/useDragVariable';import { useAppTheme } from '../../hooks/useAppTheme';import { queryClient } from '../../lib/queryClient';-import { isNodeInBackendGroup } from '../../lib/nodeSpec';+import { getCachedNodeSpec } from '../../lib/nodeSpec';// ---------------------------------------------------------------------------// Backend-driven node output schema lookup.@@ -154,15 +154,11 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =const currentNode = nodes.find((node: Node) => node.id === nodeId);const currentNodeType = currentNode?.type;- // Agent node types that support skills (have input-skill handle).- // Wave 6 Phase 5.b: backend 'agent' group -> legacy fallback array.- const AGENT_WITH_SKILLS_TYPES = [- 'aiAgent', 'chatAgent', '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'- ];- const isAgentWithSkills = isNodeInBackendGroup(currentNodeType, 'agent') ?? AGENT_WITH_SKILLS_TYPES.includes(currentNodeType || '');+ // Wave 10.G.3: read `uiHints.hasSkills` declared by the node's+ // own plugin module (server/nodes/agents.py via _STD_AGENT_HINTS).+ // Retired the hardcoded AGENT_WITH_SKILLS_TYPES list.+ const agentSpec = currentNodeType ? getCachedNodeSpec(currentNodeType) : null;+ const isAgentWithSkills = (agentSpec?.uiHints as any)?.hasSkills === true;// Collect all edges to process (direct + inherited from parent for config nodes)interface EdgeWithLabel { edge: Edge; label?: string; targetHandleLabel?: string }diff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex fddcb339..94dfdb39 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -29,7 +29,6 @@ import { Badge } from '@/components/ui/badge';import ParameterRenderer from '../ParameterRenderer';import ToolSchemaEditor from './ToolSchemaEditor';import MasterSkillEditor from './MasterSkillEditor';-import { isNodeInBackendGroup } from '../../lib/nodeSpec';import { useAppTheme } from '../../hooks/useAppTheme';import { useAppStore } from '../../store/useAppStore';import { useWebSocket, CompactionStats } from '../../contexts/WebSocketContext';@@ -38,11 +37,13 @@ import { nodeDefinitions } from '../../nodeDefinitions';import { INodeTypeDescription, INodeProperties } from '../../types/INodeProperties';import { ExecutionResult } from '../../services/executionService';import { Edge } from 'reactflow';-import { SKILL_NODE_TYPES, skillNodes } from '../../nodeDefinitions/skillNodes';import { shouldShowParameter } from '../../utils/parameterVisibility';-// Tool node types that support schema editing-const TOOL_NODE_TYPES = ['androidTool', 'calculatorTool', 'currentTimeTool', 'duckduckgoSearch'];+// 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` /+// `uiHints.isMasterSkillEditor` / `uiHints.isMemoryPanel` directly from+// the NodeSpec each plugin module declares.const Stat: React.FC<{ title: React.ReactNode; value: React.ReactNode }> = ({ title, value }) => (<div className="flex flex-col">@@ -51,28 +52,6 @@ const Stat: React.FC<{ title: React.ReactNode; value: React.ReactNode }> = ({ ti</div>);-// Agent node types that support skills (have input-skill handle)-const AGENT_WITH_SKILLS_TYPES = [- 'aiAgent',- 'chatAgent',- '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'-];-interface ConnectedSkill {id: string;name: string;@@ -177,28 +156,22 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({const visibleParams = (nodeDefinition.properties || []).filter((param: INodeProperties) => shouldShowParameter(param, parameters));- // Schema-driven layout flags. Read from nodeDefinition.uiHints first;- // fall back to legacy name checks for nodes not yet annotated. The two- // legacy arrays (TOOL_NODE_TYPES, AGENT_WITH_SKILLS_TYPES) are also- // legacy fallbacks until every agent / tool node sets uiHints.hasSkills- // / uiHints.isToolPanel respectively.+ // Wave 10.G.3: pure schema-driven dispatch. Each flag is a declared+ // uiHint on the backend plugin registration — no `??` fallback+ // chains, no tribal arrays. Every widget decision reads the hint the+ // node's own module emits.const hints = nodeDefinition.uiHints ?? {};- const isMasterSkillNode = hints.isMasterSkillEditor ?? (nodeDefinition.name === 'masterSkill');- const isMemoryNode = hints.isMemoryPanel ?? (nodeDefinition.name === 'simpleMemory');- // hasCodeEditor covers code executors, seedable skill nodes, and memory.- const isLegacyCodeExecutor = nodeDefinition.name === 'pythonExecutor' || nodeDefinition.name === 'javascriptExecutor';- const isLegacySkillWithEditor = SKILL_NODE_TYPES.includes(nodeDefinition.name)- && nodeDefinition.name !== 'customSkill'- && nodeDefinition.name !== 'masterSkill';- const needsCodeEditorLayout = hints.hasCodeEditor ?? (isLegacyCodeExecutor || isLegacySkillWithEditor || isMemoryNode);- // Kept as separate flags for downstream JSX that still references them.- const isCodeExecutorNode = needsCodeEditorLayout && (hints.hasCodeEditor ?? isLegacyCodeExecutor);- const isSkillNode = needsCodeEditorLayout && isLegacySkillWithEditor;- // Wave 6 Phase 5.b: dispatch chain is uiHints (declarative) -> backend- // group membership (live NodeSpec) -> legacy *_NODE_TYPES array.- // Behaviour identical when flag off + cache cold.- const isToolNode = hints.isToolPanel ?? isNodeInBackendGroup(nodeDefinition.name, 'tool') ?? TOOL_NODE_TYPES.includes(nodeDefinition.name);- const isAgentWithSkills = hints.hasSkills ?? isNodeInBackendGroup(nodeDefinition.name, 'agent') ?? AGENT_WITH_SKILLS_TYPES.includes(nodeDefinition.name);+ const isMasterSkillNode = hints.isMasterSkillEditor === true;+ const isMemoryNode = hints.isMemoryPanel === true;+ const needsCodeEditorLayout = hints.hasCodeEditor === true;+ const isCodeExecutorNode = needsCodeEditorLayout && !isMemoryNode && !isMasterSkillNode;+ // No seedable skills today besides masterSkill (handled via its own+ // editor). The reset-skill branch used to fire for SKILL_NODE_TYPES+ // members other than masterSkill; that set was empty after Wave 10, so+ // it's now permanently dead.+ const isSkillNode = false;+ const isToolNode = hints.isToolPanel === true;+ const isAgentWithSkills = hints.hasSkills === true;const { data: userSettings } = useUserSettingsQuery();@@ -375,26 +348,21 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({const params = masterSkillParams[edge.source];const skillsConfig = params?.skillsConfig || {};- // Add each enabled skill from Master Skill+ // Wave 10.G.3: the previous `SKILL_NODE_TYPES.find(...)` loop+ // was dead code. After Wave 10 `skillNodes.ts` exports only+ // `masterSkill` itself, so the per-skill lookup always missed.+ // Master Skill children are instruction blobs seeded from+ // skill folders on the backend, not separate frontend node+ // defs — render them with the masterSkill fallback inline.for (const [skillName, config] of Object.entries(skillsConfig as Record<string, any>)) {if (!config?.enabled) continue;-- // Find the skill node definition by skillName- const skillNodeType = SKILL_NODE_TYPES.find(type => {- const def = skillNodes[type];- const skillNameProp = def?.properties?.find((p: any) => p.name === 'skillName');- return skillNameProp?.default === skillName;- });-- const nodeDef = skillNodeType ? skillNodes[skillNodeType] : null;-skills.push({id: `${edge.source}_${skillName}`,- name: nodeDef?.displayName || skillName,- type: skillNodeType || 'masterSkill',- icon: nodeDef?.icon || '🎯',- description: nodeDef?.description || `Skill from Master Skill node`,- color: (nodeDef?.defaults?.color as string) || '#9333EA',+ name: skillName,+ type: 'masterSkill',+ icon: '🎯',+ description: 'Skill from Master Skill node',+ color: '#9333EA',});}}diff --git a/server/nodes/agents.py b/server/nodes/agents.pyindex 2e4a1400..87fa141d 100644--- a/server/nodes/agents.py+++ b/server/nodes/agents.py@@ -24,6 +24,12 @@ from services.node_registry import register_node_STD_SIZE = {"width": 300, "height": 200}_SOCIAL_SIZE = {"width": 260, "height": 160}+# Wave 10.G.3: every LangGraph-style agent accepts a Skill input handle+# and exposes the "Connected Skills" accordion in the parameter panel.+# The frontend MiddleSection reads `uiHints.hasSkills` directly — no+# tribal AGENT_WITH_SKILLS_TYPES array anymore.+_STD_AGENT_HINTS = {**_STD_SIZE, "hasSkills": True}+def _std_handles(extra_bottom: list[dict] | None = None) -> list[dict]:"""Skill + Tool + Memory + Task + top Output — the handle set shared@@ -70,7 +76,7 @@ register_node("handles": _std_handles(),"description": "LangGraph agent with tool calling, memory, and iterative reasoning","version": 1,- "uiHints": _STD_SIZE,+ "uiHints": _STD_AGENT_HINTS,},)@@ -86,26 +92,26 @@ register_node("handles": _std_handles(),"description": "Conversational AI agent with skills and memory","version": 1,- "uiHints": _STD_SIZE,+ "uiHints": _STD_AGENT_HINTS,},)# -- Specialized agents (share the LangGraph Skill/Tool/Memory/Task topology) --register_node(type="android_agent", metadata={"displayName": "Android Agent", "subtitle": "Device Control", "icon": "📱", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for Android device control", "version": 1, "uiHints": _STD_SIZE})-register_node(type="coding_agent", metadata={"displayName": "Coding Agent", "subtitle": "Code Execution", "icon": "💻", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for code execution", "version": 1, "uiHints": _STD_SIZE})-register_node(type="web_agent", metadata={"displayName": "Web Agent", "subtitle": "Browser Automation", "icon": "🌐", "color": "#ff79c6", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for web automation", "version": 1, "uiHints": _STD_SIZE})-register_node(type="task_agent", metadata={"displayName": "Task Agent", "subtitle": "Task Automation", "icon": "📋", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for task automation", "version": 1, "uiHints": _STD_SIZE})-register_node(type="social_agent", metadata={"displayName": "Social Agent", "subtitle": "Social Messaging", "icon": "📱", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for social messaging", "version": 1, "uiHints": _STD_SIZE})-register_node(type="travel_agent", metadata={"displayName": "Travel Agent", "subtitle": "Travel Planning", "icon": "✈️", "color": "#ffb86c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for travel planning", "version": 1, "uiHints": _STD_SIZE})-register_node(type="tool_agent", metadata={"displayName": "Tool Agent", "subtitle": "Tool Orchestration", "icon": "🔧", "color": "#f1fa8c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for tool orchestration", "version": 1, "uiHints": _STD_SIZE})-register_node(type="productivity_agent", metadata={"displayName": "Productivity Agent", "subtitle": "Workflows", "icon": "⏰", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for productivity workflows","version": 1, "uiHints": _STD_SIZE})-register_node(type="payments_agent", metadata={"displayName": "Payments Agent", "subtitle": "Payment Processing", "icon": "💳", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for payment processing", "version": 1, "uiHints": _STD_SIZE})-register_node(type="consumer_agent", metadata={"displayName": "Consumer Agent", "subtitle": "Consumer Support", "icon": "🛒", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for consumer interactions", "version": 1, "uiHints": _STD_SIZE})-register_node(type="autonomous_agent", metadata={"displayName": "Autonomous Agent", "subtitle": "Autonomous Ops", "icon": "🎯", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Autonomous agent using Code Mode patterns", "version": 1, "uiHints": _STD_SIZE})-register_node(type="rlm_agent", metadata={"displayName": "RLM Agent", "subtitle": "Recursive Reasoning", "icon": "🧠", "color": "#ffb86c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Recursive Language Model agent (REPL-based)", "version": 1, "uiHints": _STD_SIZE})-register_node(type="claude_code_agent", metadata={"displayName": "Claude Code", "subtitle": "Agentic Coding", "icon": "asset:claude", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Claude Code CLI as a specialized agent", "version": 1, "uiHints": _STD_SIZE})+register_node(type="android_agent", metadata={"displayName": "Android Agent", "subtitle": "Device Control", "icon": "📱", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for Android device control", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="coding_agent", metadata={"displayName": "Coding Agent", "subtitle": "Code Execution", "icon": "💻", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for code execution", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="web_agent", metadata={"displayName": "Web Agent", "subtitle": "Browser Automation", "icon": "🌐", "color": "#ff79c6", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for web automation", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="task_agent", metadata={"displayName": "Task Agent", "subtitle": "Task Automation", "icon": "📋", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for task automation", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="social_agent", metadata={"displayName": "Social Agent", "subtitle": "Social Messaging", "icon": "📱", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for social messaging", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="travel_agent", metadata={"displayName": "Travel Agent", "subtitle": "Travel Planning", "icon": "✈️", "color": "#ffb86c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for travel planning", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="tool_agent", metadata={"displayName": "Tool Agent", "subtitle": "Tool Orchestration", "icon": "🔧", "color": "#f1fa8c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for tool orchestration", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="productivity_agent", metadata={"displayName": "Productivity Agent", "subtitle": "Workflows", "icon": "⏰", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for productivity workflows","version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="payments_agent", metadata={"displayName": "Payments Agent", "subtitle": "Payment Processing", "icon": "💳", "color": "#50fa7b", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for payment processing", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="consumer_agent", metadata={"displayName": "Consumer Agent", "subtitle": "Consumer Support", "icon": "🛒", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "AI agent for consumer interactions", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="autonomous_agent", metadata={"displayName": "Autonomous Agent", "subtitle": "Autonomous Ops", "icon": "🎯", "color": "#bd93f9", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Autonomous agent using Code Mode patterns", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="rlm_agent", metadata={"displayName": "RLM Agent", "subtitle": "Recursive Reasoning", "icon": "🧠", "color": "#ffb86c", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Recursive Language Model agent (REPL-based)", "version": 1, "uiHints": _STD_AGENT_HINTS})+register_node(type="claude_code_agent", metadata={"displayName": "Claude Code", "subtitle": "Agentic Coding", "icon": "asset:claude", "color": "#8be9fd", "group": ["agent"], "componentKind": "agent", "handles": _std_handles(), "description": "Claude Code CLI as a specialized agent", "version": 1, "uiHints": _STD_AGENT_HINTS})# -- Team leads (Skill / Tool / Teammates bottom handles) --------------------@@ -122,7 +128,7 @@ register_node("handles": _std_handles(extra_bottom=_TEAM_BOTTOM_HANDLES),"description": "Team lead that delegates to connected specialized agents","version": 1,- "uiHints": _STD_SIZE,+ "uiHints": _STD_AGENT_HINTS,},)@@ -138,7 +144,7 @@ register_node("handles": _std_handles(extra_bottom=_TEAM_BOTTOM_HANDLES),"description": "Team lead for multi-agent coordination","version": 1,- "uiHints": _STD_SIZE,+ "uiHints": _STD_AGENT_HINTS,},)@@ -154,7 +160,7 @@ register_node("handles": _std_handles(extra_bottom=_DEEP_BOTTOM_HANDLES),"description": "LangChain DeepAgents with filesystem tools and sub-agent delegation","version": 1,- "uiHints": _STD_SIZE,+ "uiHints": _STD_AGENT_HINTS,},)diff --git a/server/nodes/services.py b/server/nodes/services.pyindex 605a4217..7bd85678 100644--- a/server/nodes/services.py+++ b/server/nodes/services.py@@ -93,7 +93,7 @@ register_node("handles": [{"name": "output-skill", "kind": "output", "position": "top", "label": "Skill", "role": "skill"}],"description": "Aggregate multiple skills with enable/disable toggles","version": 1,- "uiHints": {"isToolPanel": True, "isMasterSkill": True, "isMasterSkillEditor": True, "hideRunButton": True},+ "uiHints": {"isToolPanel": True, "isMasterSkillEditor": True, "hideRunButton": True},},)diff --git a/server/nodes/tools.py b/server/nodes/tools.pynew file mode 100644index 00000000..ea3e5ab1--- /dev/null+++ b/server/nodes/tools.py@@ -0,0 +1,103 @@+"""Dedicated tool node plugins (Wave 10.G.3).++Five nodes that connect to an AI Agent's ``input-tools`` handle as+passive capabilities: calculator, current-time, duckduckgo-search,+task-manager, write-todos. Each emits ``componentKind: "tool"``,+``isToolPanel: True`` so MiddleSection renders the Tool Schema Editor+without consulting a hardcoded ``TOOL_NODE_TYPES`` array.++Handle shape: input-main (trigger) on the left, a top ``output-tool``+handle (so the agent can draw an arc upward). No right-side output —+these are passive tool nodes, not general-purpose squares.+"""++from __future__ import annotations++from services.node_registry import register_node+++_TOOL_HANDLES: list[dict] = [+ {"name": "input-main", "kind": "input", "position": "left", "label": "Input", "role": "main"},+ {"name": "output-tool", "kind": "output", "position": "top", "label": "Tool", "role": "tools"},+]+++register_node(+ type="calculatorTool",+ metadata={+ "displayName": "Calculator",+ "subtitle": "Math Operations",+ "icon": "🔢",+ "color": "#f1fa8c",+ "group": ["tool", "ai"],+ "componentKind": "tool",+ "handles": _TOOL_HANDLES,+ "description": "Add, subtract, multiply, divide, power, sqrt, mod, abs",+ "version": 1,+ "uiHints": {"isToolPanel": True},+ },+)++register_node(+ type="currentTimeTool",+ metadata={+ "displayName": "Current Time",+ "subtitle": "Date / Time",+ "icon": "🕒",+ "color": "#f1fa8c",+ "group": ["tool", "ai"],+ "componentKind": "tool",+ "handles": _TOOL_HANDLES,+ "description": "Get current date/time with timezone support",+ "version": 1,+ "uiHints": {"isToolPanel": True},+ },+)++register_node(+ type="duckduckgoSearch",+ metadata={+ "displayName": "DuckDuckGo Search",+ "subtitle": "Free Web Search",+ "icon": "🦆",+ "color": "#f1fa8c",+ "group": ["tool", "ai", "search"],+ "componentKind": "tool",+ "handles": _TOOL_HANDLES,+ "description": "DuckDuckGo web search (free, no API key required)",+ "version": 1,+ "uiHints": {"isToolPanel": True},+ },+)++register_node(+ type="taskManager",+ metadata={+ "displayName": "Task Manager",+ "subtitle": "AI Task Tracking",+ "icon": "📋",+ "color": "#f1fa8c",+ "group": ["tool", "ai"],+ "componentKind": "tool",+ "handles": _TOOL_HANDLES,+ "description": "Task management tool for AI agents to create, track, and manage tasks",+ "version": 1,+ "uiHints": {"isToolPanel": True},+ },+)++register_node(+ type="writeTodos",+ metadata={+ "displayName": "Write Todos",+ "subtitle": "Plan-Work-Update Loop",+ "icon": "✅",+ "color": "#bd93f9",+ "group": ["tool", "ai"],+ "componentKind": "tool",+ "handles": _TOOL_HANDLES,+ "description": "Structured task list planning for complex multi-step operations",+ "version": 1,+ "uiHints": {"isToolPanel": True},+ },+)diff --git a/server/services/node_spec.py b/server/services/node_spec.pyindex cae54c01..c51d2e9f 100644--- a/server/services/node_spec.py+++ b/server/services/node_spec.py@@ -42,18 +42,26 @@ _spec_cache: dict[str, dict[str, Any]] = {}def get_node_spec(node_type: str) -> Optional[dict[str, Any]]:"""Return the full NodeSpec for a node type, or None if neither an- input model nor an output schema is registered (i.e. unknown type).- Cached per-process; bust by restarting the server."""+ input model, an output schema, nor plugin metadata is registered+ (i.e. unknown type). Cached per-process; bust by restarting the+ server.++ Wave 10.G.3: metadata-only plugin nodes (e.g. calculatorTool and+ the other schema-less tool nodes) emit a spec even without input+ schema — their NodeSpec carries componentKind + handles + color,+ which is everything the editor needs to render and connect them.+ """if node_type in _spec_cache:return _spec_cache[node_type]inputs = get_node_input_schema(node_type)outputs = get_node_output_schema(node_type)- if inputs is None and outputs is None:+ meta = get_node_metadata(node_type)+ if inputs is None and outputs is None and meta is None:return None-- meta = get_node_metadata(node_type) or fallback_metadata(node_type)+ if meta is None:+ meta = fallback_metadata(node_type)spec: dict[str, Any] = {"type": node_type,"displayName": meta.get("displayName") or node_type,diff --git a/server/tests/test_node_spec.py b/server/tests/test_node_spec.pyindex be52c12b..881a4cd7 100644--- a/server/tests/test_node_spec.py+++ b/server/tests/test_node_spec.py@@ -738,7 +738,7 @@ class TestNodeSpecContractInvariants:from models.node_metadata import NODE_METADATAknown = {"hideInputSection", "hideOutputSection", "hideRunButton",- "hasCodeEditor", "isMasterSkillEditor", "isMasterSkill",+ "hasCodeEditor", "isMasterSkillEditor","isMemoryPanel", "isToolPanel", "isMonitorPanel","showLocationPanel", "isAndroidToolkit", "isChatTrigger","isConsoleSink", "hasSkills",