Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
refactor(plugin): Wave 11.D.13 — sunset empty bulk files + dead dispatch
trohitgfb89a141a7a4
diff --git a/server/nodes/agents.py b/server/nodes/agents.pydeleted file mode 100644index 4c3ef9a0..00000000--- a/server/nodes/agents.py+++ /dev/null@@ -1,6 +0,0 @@-"""Agent legacy bulk file — fully migrated to nodes/agent/*.py.--Kept as a marker so anyone grepping for the old location lands on the-breadcrumb. Delete in Wave 11.D once 100% of legacy bulk files are-empty across the package.-"""diff --git a/server/nodes/services.py b/server/nodes/services.pydeleted file mode 100644index dcea4973..00000000--- a/server/nodes/services.py+++ /dev/null@@ -1,6 +0,0 @@-"""Services legacy bulk file — fully migrated to per-domain folders.--All 60 service plugins (Android, AI models, messaging, Google,-search, browser, scrapers, proxy, maps, filesystem, document, text)-now live in their own folders under nodes/. Delete in Wave 11.D.-"""diff --git a/server/nodes/tools.py b/server/nodes/tools.pydeleted file mode 100644index ed830a65..00000000--- a/server/nodes/tools.py+++ /dev/null@@ -1,12 +0,0 @@-"""Tool legacy bulk file — fully migrated.--Tool plugins now live in nodes/tool/ + nodes/skill/ + nodes/search/:- - tool/calculator_tool.py- - tool/current_time_tool.py- - tool/task_manager.py- - tool/write_todos.py- - search/duckduckgo_search.py- - skill/master_skill.py--Delete in Wave 11.D.-"""diff --git a/server/nodes/triggers.py b/server/nodes/triggers.pydeleted file mode 100644index 9f0f389f..00000000--- a/server/nodes/triggers.py+++ /dev/null@@ -1,13 +0,0 @@-"""Trigger legacy bulk file — fully migrated to per-domain folders.-- - workflow/start.py- - scheduler/cron_scheduler.py + timer.py- - trigger/webhook_trigger.py + chat_trigger.py + task_trigger.py- - whatsapp/whatsapp_receive.py- - telegram/telegram_receive.py- - twitter/twitter_receive.py- - google/gmail_receive.py- - email/email_receive.py--Delete in Wave 11.D.-"""diff --git a/server/nodes/utilities.py b/server/nodes/utilities.pydeleted file mode 100644index b0f52740..00000000--- a/server/nodes/utilities.py+++ /dev/null@@ -1,7 +0,0 @@-"""Utilities legacy bulk file — fully migrated to per-domain folders.-- - utility/{http_request,webhook_response,team_monitor,console,process_manager}.py- - code/{python,javascript,typescript}_executor.py--Delete in Wave 11.D.-"""diff --git a/server/services/handlers/ai.py b/server/services/handlers/ai.pyindex 06e87493..e0a1c9f2 100644--- a/server/services/handlers/ai.py+++ b/server/services/handlers/ai.py@@ -50,9 +50,6 @@ def _format_task_context(task_data: Dict[str, Any]) -> str:return _ew_format_task_context(task_data)-# DELETED (Wave 11.D.0): the original inline bodies of-# _collect_agent_connections / _collect_teammate_connections /-async def handle_ai_agent(node_id: str,node_type: str,diff --git a/server/services/node_executor.py b/server/services/node_executor.pyindex d623ba3d..6febb9fa 100644--- a/server/services/node_executor.py+++ b/server/services/node_executor.py@@ -22,47 +22,12 @@ from constants import (from models.nodes import validate_node_paramsfrom pydantic import ValidationErrorfrom services import event_waiter-from services.handlers import (- handle_ai_agent, handle_chat_agent, handle_ai_chat_model, handle_simple_memory,- handle_android_service,- handle_python_executor, handle_javascript_executor, handle_typescript_executor,- handle_http_request, handle_webhook_response, handle_trigger_node,- handle_create_map, handle_add_locations, handle_nearby_places,- handle_text_generator, handle_file_handler,- handle_chat_send, handle_chat_history,- handle_start, handle_cron_scheduler, handle_timer, handle_team_monitor,- # handle_console: migrated to nodes/utility/console.py (Wave 11.C).- handle_whatsapp_send, handle_whatsapp_db,- handle_social_receive, handle_social_send,- handle_http_scraper, handle_file_downloader, handle_document_parser,- handle_text_chunker, handle_embedding_generator, handle_vector_store,- handle_task_manager,- handle_twitter_send, handle_twitter_search, handle_twitter_user,- handle_serper_search,- # Wave 11 migrated: handle_brave_search, handle_perplexity_search now imported- # lazily by their plugin classes in nodes/search/.- handle_rlm_agent,-)-from services.handlers.claude_code import handle_claude_code_agent-from services.handlers.deep_agent import handle_deep_agent-# Wave 11 migrated: handle_telegram_send now imported lazily by-# nodes/telegram/telegram_send.py.-from services.handlers.apify import handle_apify_actor-from services.handlers.crawlee import handle_crawlee_scraper-from services.handlers.browser import handle_browser-from services.handlers.proxy import handle_proxy_request, handle_proxy_status, handle_proxy_config-from services.handlers.filesystem import handle_file_read, handle_file_modify, handle_shell, handle_fs_search-from services.handlers.todo import handle_write_todos-from services.handlers.process import handle_process_manager-from services.handlers.email import handle_email_send, handle_email_read, handle_email_receive-# Consolidated Google Workspace handlers (6 services with operation dispatchers)-# Wave 11 migrated: gmail handlers (send/search/read) imported lazily-# by nodes/google/gmail.py; handle_gmail_receive lazily by gmail_receive.py.-from services.handlers.calendar import handle_google_calendar-from services.handlers.drive import handle_google_drive-from services.handlers.sheets import handle_google_sheets-from services.handlers.tasks import handle_google_tasks-from services.handlers.contacts import handle_google_contacts+# Wave 11.D.13 sunset: every handler that was imported here is now+# either (a) called lazily from a plugin's execute_op / execute method,+# or (b) retired entirely. The dispatcher itself only needs the+# plugin-class registry populated via register_node side effects.+# Triggering that population is what ``import nodes`` does at server+# startup (see main.py lifespan).if TYPE_CHECKING:from core.config import Settings@@ -309,23 +274,11 @@ class NodeExecutor:if handler:return await handler(node_id, node_type, params, context)- # Legacy special handlers — invoked when no plugin is registered.- # console + socialReceive: migrated to nodes/{utility,social}/ (Wave 11.C); plugins win above.- if node_type in self._NEEDS_CONNECTED_OUTPUTS:- outputs = context['connected_outputs']- handlers = {- 'pythonExecutor': handle_python_executor,- 'javascriptExecutor': handle_javascript_executor,- 'typescriptExecutor': handle_typescript_executor,- 'webhookResponse': handle_webhook_response,- }- return await handlers[node_type](node_id, node_type, params, context, outputs)-- # Trigger nodes- if event_waiter.is_trigger_node(node_type):- return await handle_trigger_node(node_id, node_type, params, context)-- # Fallback+ # All trigger + special node types are now plugin classes+ # (Wave 11.C). Trigger nodes live in _handlers via their+ # plugin's register_node side effect and have already been+ # handled above. Anything that falls through here is a+ # workflow node type the backend genuinely doesn't know about.return {"success": True,"node_id": node_id,