Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(schema): Wave 6 - masterSkill Pydantic + metadata (100% coverage)
trohitg0b2aef353630
diff --git a/server/models/node_metadata.py b/server/models/node_metadata.pyindex 04520a9a..dd5293c3 100644--- a/server/models/node_metadata.py+++ b/server/models/node_metadata.py@@ -232,6 +232,21 @@ NODE_METADATA: dict[str, NodeMetadata] = {"version": 1,"uiHints": {"isMemoryPanel": True, "hasCodeEditor": True, "hideRunButton": True},},+ "masterSkill": {+ "displayName": "Master Skill",+ "icon": "🎯",+ "group": ["tool"],+ "subtitle": "Skill Aggregator",+ "description": "Combine built-in and custom skills with enable/disable toggles",+ "version": 1,+ "uiHints": {+ "hideInputSection": True,+ "hideOutputSection": True,+ "hideRunButton": True,+ "isMasterSkillEditor": True,+ "hasCodeEditor": True,+ },+ },# Specialized agents (16) -- shared SpecializedAgentParams Pydantic model"android_agent": {"displayName": "Android Control Agent",diff --git a/server/models/nodes.py b/server/models/nodes.pyindex 5166bf2c..f292c66b 100644--- a/server/models/nodes.py+++ b/server/models/nodes.py@@ -419,6 +419,16 @@ class ChatTriggerParams(BaseNodeParams):type: Literal["chatTrigger"]+class MasterSkillParams(BaseNodeParams):+ """Parameters for Master Skill aggregator node. The skillsConfig+ object is opaque to the backend - each enabled skill carries its+ own instructions string. Shape:+ ``{skill_name: {enabled: bool, instructions: str, isCustomized: bool}}``."""+ type: Literal["masterSkill"]+ skill_folder: str = Field(default="assistant", alias="skillFolder")+ skills_config: Dict[str, Any] = Field(default_factory=dict, alias="skillsConfig")++class TelegramReceiveParams(BaseNodeParams):"""Parameters for Telegram receive trigger node."""type: Literal["telegramReceive"]@@ -999,6 +1009,8 @@ KnownNodeParams = Annotated[StartNodeParams, CronSchedulerParams, WorkflowTriggerParams,# TriggersTaskTriggerParams, ChatTriggerParams, TelegramReceiveParams, TwitterReceiveParams, GmailReceiveParams,+ # Skills+ MasterSkillParams,# Messaging actions (Wave 6 Phase 3b)TelegramSendParams, TwitterSendParams, TwitterSearchParams, TwitterUserParams,SocialReceiveParams, SocialSendParams,diff --git a/server/services/node_input_schemas.py b/server/services/node_input_schemas.pyindex 3a9bbf48..ddf5b513 100644--- a/server/services/node_input_schemas.py+++ b/server/services/node_input_schemas.py@@ -25,7 +25,7 @@ from models.nodes import (FileHandlerParams, FileModifyParams, FileReadParams, FsSearchParams,GmailParams, GmailReceiveParams, GmapsLocationsParams,GmapsNearbyPlacesParams, HttpRequestParams, HttpScraperParams,- JavaScriptExecutorParams, PerplexitySearchParams, ProcessManagerParams,+ JavaScriptExecutorParams, MasterSkillParams, PerplexitySearchParams, ProcessManagerParams,ProxyConfigParams, ProxyRequestParams, ProxyStatusParams,PythonExecutorParams, SerperSearchParams, ShellParams,SheetsParams, SimpleMemoryParams, SocialReceiveParams,@@ -107,6 +107,8 @@ _DIRECT_MODELS: dict[str, type[BaseModel]] = {# Chat"chatSend": ChatSendParams,"chatHistory": ChatHistoryParams,+ # Skills+ "masterSkill": MasterSkillParams,# Search (Wave 6 Phase 3d.ii)"braveSearch": BraveSearchParams,"serperSearch": SerperSearchParams,diff --git a/server/tests/test_node_spec.py b/server/tests/test_node_spec.pyindex 115b1330..9cfdc5cb 100644--- a/server/tests/test_node_spec.py+++ b/server/tests/test_node_spec.py@@ -575,11 +575,13 @@ class TestUIHintsInNodeSpec:assert hints.get("hideInputSection") is Trueassert hints.get("hideOutputSection") is True- def test_master_skill_not_seeded_yet(self):- # Sanity: masterSkill metadata not yet seeded - fallback path runs.- # If/when seeded later, update this guard.- from models.node_metadata import get_node_metadata- assert get_node_metadata("masterSkill") is None+ def test_master_skill_seeded(self):+ spec = get_node_spec("masterSkill")+ assert spec is not None+ assert spec["displayName"] == "Master Skill"+ hints = spec.get("uiHints", {})+ assert hints.get("isMasterSkillEditor") is True+ assert hints.get("hideRunButton") is Truedef test_simple_memory_carries_memory_panel(self):spec = get_node_spec("simpleMemory")