Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
refactor(whatsapp): evict the last WhatsApp code from core
trohitgb66af8c77c2e
diff --git a/.env.template b/.env.templateindex abda29cf..2e382d2b 100644--- a/.env.template+++ b/.env.template@@ -6,6 +6,9 @@VITE_CLIENT_PORT=5679PYTHON_BACKEND_PORT=5678NODEJS_EXECUTOR_PORT=5680+# Plugin-owned (read by nodes/whatsapp/, not core Settings). Related+# optional vars: WHATSAPP_RUNTIME_ENABLED, WHATSAPP_DATA_SUBDIR,+# WHATSAPP_BINARY_PATH, WHATSAPP_BIND_HOST, WHATSAPP_RPC_URL.WHATSAPP_RPC_PORT=5681REDIS_PORT=6379diff --git a/CLAUDE.md b/CLAUDE.mdindex 01feda41..0ca28258 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -2074,32 +2074,8 @@ whatsappReceive: {}```-#### Output Schema (backend, `server/services/node_output_schemas.py`)-Runtime output shapes live on the backend and are fetched lazy by InputSection per the Wave 3 source-of-truth decision. The WhatsApp Receive schema:-```python-class WhatsAppGroupInfo(BaseModel):- group_jid: Optional[str] = None- sender_jid: Optional[str] = None- sender_phone: Optional[str] = None # Resolved phone number (Go RPC resolves LIDs before sending event)- sender_name: Optional[str] = None--class WhatsAppReceiveOutput(_OutputBase):- message_id: Optional[str] = None- sender: Optional[str] = None- sender_phone: Optional[str] = None- chat_id: Optional[str] = None- message_type: Optional[str] = None- text: Optional[str] = None- timestamp: Optional[str] = None- is_group: Optional[bool] = None- is_from_me: Optional[bool] = None- push_name: Optional[str] = None- media: Optional[dict] = None- group_info: Optional[WhatsAppGroupInfo] = None- newsletter_meta: Optional[dict] = None--NODE_OUTPUT_SCHEMAS["whatsappReceive"] = WhatsAppReceiveOutput-```+#### Output Schema (plugin-owned, `server/nodes/whatsapp/whatsapp_receive.py`)+Runtime output shapes are fetched lazily by InputSection per the Wave 3 source-of-truth decision. WhatsApp's schemas live in the plugin folder (the node's `Output` Pydantic classes — `WhatsAppGroupInfo` / `WhatsAppReceiveOutput` / `WhatsAppSendOutput` / `WhatsAppDbOutput`) and self-register from `nodes/whatsapp/__init__.py` via `register_output_schema(...)` — same pattern as telegram; `services/node_output_schemas.py` carries no whatsapp code.Served via `GET /api/schemas/nodes/whatsappReceive.json` + `get_node_output_schema` WS handler. See [docs-internal/schema_source_of_truth_rfc.md](./docs-internal/schema_source_of_truth_rfc.md).### Task Trigger Nodediff --git a/cli/commands/dev.py b/cli/commands/dev.pyindex 5b6febc3..ed5585a0 100644--- a/cli/commands/dev.py+++ b/cli/commands/dev.py@@ -118,10 +118,12 @@ def dev_command(f"Client: built SPA served by the backend at http://localhost:{cfg.backend_port}")console.print(f"Backend: http://localhost:{cfg.backend_port}")- console.print(- "Backend-spawned on demand: WhatsApp "- f"(:{cfg.whatsapp_port}), Temporal (:{cfg.temporal_port} gRPC, :{cfg.temporal_ui_port} UI, when TEMPORAL_ENABLED)"- )+ if cfg.temporal_enabled:+ console.print(+ f"Temporal: backend-managed (gRPC :{cfg.temporal_port}, UI http://localhost:{cfg.temporal_ui_port})"+ )+ # Plugin daemons (WhatsApp, ...) are backend-owned and start only on+ # demand — nothing to announce here.if force:console.print("Vite: forced dependency re-bundle (--force)")console.print()diff --git a/cli/config.py b/cli/config.pyindex 1f4c930f..4de047da 100644--- a/cli/config.py+++ b/cli/config.py@@ -77,7 +77,6 @@ class Config:client_port: intbackend_port: int- whatsapp_port: intnodejs_port: inttemporal_address: strtemporal_enabled: bool@@ -94,10 +93,14 @@ class Config:# ``temporal_ui_port`` are bound by the same ``temporal server# start-dev`` process, so killing one kills both — listing both# only matters when cleaning up stale orphans on either port.+ # Plugin-owned daemons (e.g. WhatsApp's edgymeow on+ # WHATSAPP_RPC_PORT) are NOT listed: the backend supervises them+ # (tree-kill on shutdown), and the CLI carries no plugin+ # knowledge. A crashed-backend orphan surfaces as a bind error+ # on the plugin's next start, which the plugin reports.return [self.client_port,self.backend_port,- self.whatsapp_port,self.nodejs_port,self.temporal_port,self.temporal_ui_port,@@ -163,7 +166,6 @@ def load_config(root: Path | None = None) -> Config:return Config(client_port=_int(env, "VITE_CLIENT_PORT"),backend_port=_int(env, "PYTHON_BACKEND_PORT"),- whatsapp_port=_int(env, "WHATSAPP_RPC_PORT"),nodejs_port=_int(env, "NODEJS_EXECUTOR_PORT"),temporal_address=_require(env, "TEMPORAL_SERVER_ADDRESS"),temporal_enabled=_bool(env, "TEMPORAL_ENABLED"),diff --git a/scripts/install.js b/scripts/install.jsindex a0f47902..6fa7aae9 100755--- a/scripts/install.js+++ b/scripts/install.js@@ -265,11 +265,10 @@ try {console.log(' It will be fetched automatically on first `company start`.');}- // WhatsApp RPC is now an npm dependency - binary downloaded via postinstall+ // Plugin daemons (WhatsApp's edgymeow, Stripe CLI, ...) are installed+ // lazily by their own plugin code on first use - nothing to do here.console.log('');console.log('Done!');- console.log('');- console.log('WhatsApp RPC installed as npm dependency (edgymeow)');} catch (err) {console.log('');diff --git a/scripts/postinstall.js b/scripts/postinstall.jsindex 4291aedb..cf7f3560 100755--- a/scripts/postinstall.js+++ b/scripts/postinstall.js@@ -3,7 +3,8 @@* Postinstall script for OpenCompany.** Runs install.js to check deps, install npm/Python packages, build.- * WhatsApp RPC is now an npm dependency - binary downloaded by its own postinstall.+ * Plugin daemons (WhatsApp, Stripe, ...) install lazily via their own+ * plugin code on first use.*/import { spawn, execSync } from 'child_process';import { resolve, dirname } from 'path';diff --git a/server/config/model_registry.json b/server/config/model_registry.jsonindex 30f56da7..d5d59b0b 100644--- a/server/config/model_registry.json+++ b/server/config/model_registry.json@@ -1,8 +1,42 @@{- "_generated": "2026-07-23T14:05:03.239022+00:00",+ "_generated": "2026-07-24T15:13:44.410324+00:00","_source": "openrouter",- "_model_count": 342,+ "_model_count": 343,"models": {+ "inclusionai/ling-3.0-flash:free": {+ "id": "inclusionai/ling-3.0-flash:free",+ "name": "Ling-3.0-flash (free)",+ "provider": "inclusionai",+ "local_id": "ling-3.0-flash:free",+ "context_length": 262144,+ "max_output_tokens": 32768,+ "input_price_per_mtok": 0.0,+ "output_price_per_mtok": 0.0,+ "supports_thinking": false,+ "thinking_type": "none",+ "temperature_range": [+ 0.0,+ 2.0+ ],+ "is_reasoning_model": false,+ "supported_parameters": [+ "frequency_penalty",+ "include_reasoning",+ "logprobs",+ "max_tokens",+ "presence_penalty",+ "reasoning",+ "repetition_penalty",+ "seed",+ "stop",+ "temperature",+ "tool_choice",+ "tools",+ "top_k",+ "top_logprobs",+ "top_p"+ ]+ },"poolside/laguna-s-2.1": {"id": "poolside/laguna-s-2.1","name": "Poolside: Laguna S 2.1",@@ -155,7 +189,7 @@"name": "Thinking Machines: Inkling","provider": "thinkingmachines","local_id": "inkling",- "context_length": 524288,+ "context_length": 1048576,"max_output_tokens": 0,"input_price_per_mtok": 1.0,"output_price_per_mtok": 4.05,@@ -176,6 +210,7 @@"reasoning","reasoning_effort","repetition_penalty",+ "seed","stop","temperature","tool_choice",@@ -653,9 +688,9 @@"provider": "tencent","local_id": "hy3","context_length": 262144,- "max_output_tokens": 262144,- "input_price_per_mtok": 0.14,- "output_price_per_mtok": 0.58,+ "max_output_tokens": 128000,+ "input_price_per_mtok": 0.132,+ "output_price_per_mtok": 0.528,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -945,8 +980,8 @@"local_id": "glm-5.2","context_length": 1048576,"max_output_tokens": 131072,- "input_price_per_mtok": 0.7826,- "output_price_per_mtok": 2.4596,+ "input_price_per_mtok": 0.8036,+ "output_price_per_mtok": 2.5256,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -2158,9 +2193,9 @@"provider": "qwen","local_id": "qwen3.6-27b","context_length": 262144,- "max_output_tokens": 262144,- "input_price_per_mtok": 0.6,- "output_price_per_mtok": 3.6,+ "max_output_tokens": 0,+ "input_price_per_mtok": 0.288,+ "output_price_per_mtok": 2.4,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -2770,8 +2805,8 @@"local_id": "gemma-4-31b-it","context_length": 262144,"max_output_tokens": 262144,- "input_price_per_mtok": 0.12,- "output_price_per_mtok": 0.35,+ "input_price_per_mtok": 0.14,+ "output_price_per_mtok": 0.4,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -3646,9 +3681,9 @@"provider": "qwen","local_id": "qwen3.5-27b","context_length": 262144,- "max_output_tokens": 81920,- "input_price_per_mtok": 0.26,- "output_price_per_mtok": 2.6,+ "max_output_tokens": 65536,+ "input_price_per_mtok": 0.195,+ "output_price_per_mtok": 1.56,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -5510,8 +5545,8 @@"local_id": "minimax-m2","context_length": 204800,"max_output_tokens": 131072,- "input_price_per_mtok": 0.3,- "output_price_per_mtok": 1.2,+ "input_price_per_mtok": 0.255,+ "output_price_per_mtok": 1.02,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -6907,9 +6942,9 @@"provider": "openai","local_id": "gpt-oss-20b","context_length": 131072,- "max_output_tokens": 131072,- "input_price_per_mtok": 0.03,- "output_price_per_mtok": 0.13,+ "max_output_tokens": 0,+ "input_price_per_mtok": 0.029,+ "output_price_per_mtok": 0.14,"supports_thinking": true,"thinking_type": "effort","temperature_range": [@@ -8612,9 +8647,9 @@"provider": "gemini","local_id": "gemma-3-27b-it","context_length": 262144,- "max_output_tokens": 0,- "input_price_per_mtok": 0.1,- "output_price_per_mtok": 0.3,+ "max_output_tokens": 131072,+ "input_price_per_mtok": 0.08,+ "output_price_per_mtok": 0.45,"supports_thinking": false,"thinking_type": "none","temperature_range": [diff --git a/server/core/config.py b/server/core/config.pyindex 1e43e3f5..fe429662 100644--- a/server/core/config.py+++ b/server/core/config.py@@ -47,7 +47,6 @@ class Settings(BaseSettings):# Service Ports (used by start.js, vite, and docker-compose, not hardcoded here)vite_client_port: Optional[int] = Field(default=None, env="VITE_CLIENT_PORT")python_backend_port: Optional[int] = Field(default=None, env="PYTHON_BACKEND_PORT")- whatsapp_rpc_port: Optional[int] = Field(default=None, env="WHATSAPP_RPC_PORT")redis_port: Optional[int] = Field(default=None, env="REDIS_PORT")# Server Configuration@@ -343,15 +342,8 @@ class Settings(BaseSettings):# Workspace base -- relative to data_dir unless absoluteworkspace_base_dir: str = Field(default="workspaces", env="WORKSPACE_BASE_DIR")- # WhatsApp runtime (edgymeow Go binary supervised by the backend so the- # session DB lives under data_dir, surviving pnpm install / version bumps)- whatsapp_runtime_enabled: bool = Field(default=True, env="WHATSAPP_RUNTIME_ENABLED")- whatsapp_data_subdir: str = Field(default="whatsapp", env="WHATSAPP_DATA_SUBDIR")- whatsapp_port: int = Field(default=5681, env="WHATSAPP_RPC_PORT", ge=1024, le=65535)- whatsapp_binary_path: Optional[str] = Field(default=None, env="WHATSAPP_BINARY_PATH")- # `localhost` is the only bind that Windows Firewall's loopback exception- # silently allows. Override to "0.0.0.0" for container deployments.- whatsapp_bind_host: str = Field(default="localhost", env="WHATSAPP_BIND_HOST")+ # WhatsApp runtime settings live in the plugin: nodes/whatsapp/_runtime.py+ # reads the WHATSAPP_* env vars directly (plugin-owned config).# Browser automation (agent-browser CLI). Canonical values live in# .env.template (same pattern as COMPACTION_RATIO — the code defaultdiff --git a/server/nodes/whatsapp/__init__.py b/server/nodes/whatsapp/__init__.pyindex 68adb0a4..d80836aa 100644--- a/server/nodes/whatsapp/__init__.py+++ b/server/nodes/whatsapp/__init__.py@@ -21,6 +21,7 @@ Two self-registrations happen on package import:from services._supervisor import register_supervisorfrom services.deployment.canary_registry import register_canary_trigger_typefrom services.event_waiter import register_filter_builder+from services.node_output_schemas import register_output_schemafrom services.plugin.social_provider_registry import register_social_send_handlerfrom services.status_broadcaster import register_service_refreshfrom services.ws_handler_registry import (@@ -82,6 +83,16 @@ register_canary_trigger_type("whatsappReceive", "com.opencompany.whatsapp.messag# services/plugin/social_provider_registry.py.register_social_send_handler("whatsapp", handle_whatsapp_send)+# Output schemas for the FE variable panel — self-registered so all+# whatsapp code stays in this folder (same pattern as telegram).+from .whatsapp_db import WhatsAppDbOutput+from .whatsapp_receive import WhatsAppReceiveOutput+from .whatsapp_send import WhatsAppSendOutput++register_output_schema("whatsappReceive", WhatsAppReceiveOutput)+register_output_schema("whatsappSend", WhatsAppSendOutput)+register_output_schema("whatsappDb", WhatsAppDbOutput)+__all__ = ["WhatsAppRuntime","get_whatsapp_runtime",diff --git a/server/nodes/whatsapp/_runtime.py b/server/nodes/whatsapp/_runtime.pyindex d9aa4b7e..b3e6e08a 100644--- a/server/nodes/whatsapp/_runtime.py+++ b/server/nodes/whatsapp/_runtime.py@@ -53,6 +53,9 @@ class WhatsAppRuntime(BaseProcessSupervisor):self.settings = settings# ---- public read-only properties -------------------------------------+ # Config is plugin-owned: the WHATSAPP_* env vars are read here+ # directly (pushed into os.environ from .env by the CLI) — core+ # ``Settings`` carries no whatsapp fields.@propertydef data_root(self) -> Path:@@ -62,19 +65,20 @@ class WhatsAppRuntime(BaseProcessSupervisor):# ``<repo>/server/.opencompany/...``,# which the old ad-hoc ``_PROJECT_ROOT / "server" / data_dir``# logic produced when ``DATA_DIR`` was relative).- return Path(self.settings._resolve_under_data(self.settings.whatsapp_data_subdir))+ subdir = os.environ.get("WHATSAPP_DATA_SUBDIR") or "whatsapp"+ return Path(self.settings._resolve_under_data(subdir))@propertydef port(self) -> int:- return int(getattr(self.settings, "whatsapp_port", 5681))+ return int(os.environ.get("WHATSAPP_RPC_PORT") or 5681)@propertydef bind_host(self) -> str:# `localhost` is the only bind that Windows Firewall's loopback# exception silently allows; 127.0.0.1 / 0.0.0.0 trigger Defender# prompts and TLS interception that surfaces as a misleading- # `Client outdated (405)`. See aarol.dev/posts/go-windows-firewall.- return getattr(self.settings, "whatsapp_bind_host", "localhost")+ # `Client outdated (405)`. Override to "0.0.0.0" for containers.+ return os.environ.get("WHATSAPP_BIND_HOST") or "localhost"@propertydef _package_dir(self) -> Path:@@ -88,7 +92,7 @@ class WhatsAppRuntime(BaseProcessSupervisor):# ---- BaseProcessSupervisor overrides ---------------------------------def binary_path(self) -> Path:- override = getattr(self.settings, "whatsapp_binary_path", None)+ override = os.environ.get("WHATSAPP_BINARY_PATH")if override:return Path(override).resolve()name = "edgymeow-server.exe" if sys.platform == "win32" else "edgymeow-server"@@ -104,7 +108,8 @@ class WhatsAppRuntime(BaseProcessSupervisor):return {**os.environ, "WA_SERVER_PORT": str(self.port)}async def _pre_spawn(self) -> None:- if not getattr(self.settings, "whatsapp_runtime_enabled", True):+ enabled = (os.environ.get("WHATSAPP_RUNTIME_ENABLED") or "true").lower()+ if enabled not in ("1", "true", "yes"):raise RuntimeError("WhatsApp runtime disabled via WHATSAPP_RUNTIME_ENABLED")# Run the (potentially long) ``npm install edgymeow`` off the# asyncio event loop. ``edgymeow_binary_path`` is sync anddiff --git a/server/nodes/whatsapp/_service.py b/server/nodes/whatsapp/_service.pyindex 05739bc5..eba6242c 100644--- a/server/nodes/whatsapp/_service.py+++ b/server/nodes/whatsapp/_service.py@@ -33,7 +33,9 @@ def qr_code_to_base64(code: str) -> str:logger = logging.getLogger(__name__)-WHATSAPP_RPC_URL = os.getenv("WHATSAPP_RPC_URL", "ws://localhost:5681/ws/rpc")+WHATSAPP_RPC_URL = os.getenv("WHATSAPP_RPC_URL") or (+ f"ws://localhost:{os.getenv('WHATSAPP_RPC_PORT') or 5681}/ws/rpc"+)def extract_phone_from_jid(jid: str | None) -> str | None:diff --git a/server/nodes/whatsapp/whatsapp_db.py b/server/nodes/whatsapp/whatsapp_db.pyindex 06f469e4..c8280665 100644--- a/server/nodes/whatsapp/whatsapp_db.py+++ b/server/nodes/whatsapp/whatsapp_db.py@@ -365,12 +365,32 @@ class WhatsAppDbParams(BaseModel):class WhatsAppDbOutput(BaseModel):+ """Composite — different operations surface different subsets of these+ fields. All optional so the variable panel shows the union."""+operation: Optional[str] = Nonemessages: Optional[list] = None- contacts: Optional[list] = None+ total: Optional[int] = None+ has_more: Optional[bool] = None+ count: Optional[int] = None+ chat_type: Optional[str] = Nonegroups: Optional[list] = None+ contacts: Optional[list] = None+ participants: Optional[list] = None+ jid: Optional[str] = None+ phone: Optional[str] = None+ name: Optional[str] = None+ push_name: Optional[str] = None+ business_name: Optional[str] = None+ is_business: Optional[bool] = None+ is_contact: Optional[bool] = None+ profile_pic: Optional[str] = Nonechannels: Optional[list] = None- total: Optional[int] = None+ channel_jid: Optional[str] = None+ timestamp: Optional[str] = None+ muted: Optional[bool] = None+ server_ids: Optional[str] = None+ status: Optional[str] = Nonemodel_config = ConfigDict(extra="allow")diff --git a/server/nodes/whatsapp/whatsapp_receive.py b/server/nodes/whatsapp/whatsapp_receive.pyindex 00006f08..2f23b1e9 100644--- a/server/nodes/whatsapp/whatsapp_receive.py+++ b/server/nodes/whatsapp/whatsapp_receive.py@@ -97,9 +97,19 @@ class WhatsAppReceiveParams(BaseModel):model_config = ConfigDict(extra="ignore")+class WhatsAppGroupInfo(BaseModel):+ group_jid: Optional[str] = None+ sender_jid: Optional[str] = None+ sender_phone: Optional[str] = None+ sender_name: Optional[str] = None++ model_config = ConfigDict(extra="allow")++class WhatsAppReceiveOutput(BaseModel):message_id: Optional[str] = Nonesender: Optional[str] = None+ sender_phone: Optional[str] = Nonechat_id: Optional[str] = Nonemessage_type: Optional[str] = Nonetext: Optional[str] = None@@ -108,7 +118,7 @@ class WhatsAppReceiveOutput(BaseModel):is_from_me: Optional[bool] = Nonepush_name: Optional[str] = Nonemedia: Optional[dict] = None- group_info: Optional[dict] = None+ group_info: Optional[WhatsAppGroupInfo] = Nonemodel_config = ConfigDict(extra="allow")diff --git a/server/nodes/whatsapp/whatsapp_send.py b/server/nodes/whatsapp/whatsapp_send.pyindex c7edecc4..dddd4a23 100644--- a/server/nodes/whatsapp/whatsapp_send.py+++ b/server/nodes/whatsapp/whatsapp_send.py@@ -253,8 +253,12 @@ class WhatsAppSendParams(BaseModel):class WhatsAppSendOutput(BaseModel):+ success: Optional[bool] = Nonemessage_id: Optional[str] = Nonesent: Optional[bool] = None+ chat_id: Optional[str] = None+ timestamp: Optional[str] = None+ message_type: Optional[str] = Nonemodel_config = ConfigDict(extra="allow")diff --git a/server/routers/websocket.py b/server/routers/websocket.pyindex be2f6dfe..3f5735ce 100644--- a/server/routers/websocket.py+++ b/server/routers/websocket.py@@ -1461,8 +1461,7 @@ MESSAGE_HANDLERS: Dict[str, MessageHandler] = {# The legacy ``validate_maps_key`` / ``validate_apify_key`` WS message# types are no longer needed — the frontend already uses# ``validate_api_key`` for all providers.- # WhatsApp operations- # Telegram operations live in nodes/telegram/_handlers.py and+ # WhatsApp and Telegram operations live in nodes/<plugin>/_handlers.py and# self-register via services.ws_handler_registry. Dispatch hits them# via _resolve_handler() defined above.# Workflow storage operations — extracted to services/workflow_storage/handlers.pydiff --git a/server/services/execution/models.py b/server/services/execution/models.pyindex 52139beb..82f3eb1b 100644--- a/server/services/execution/models.py+++ b/server/services/execution/models.py@@ -127,11 +127,11 @@ class RetryPolicy:)-# Default retry policies for different node types+# Default retry policies for different node types. Trigger nodes are+# handled generically in get_retry_policy (never retried) — no per-plugin+# trigger entries here.DEFAULT_RETRY_POLICIES: Dict[str, RetryPolicy] = {"httpRequest": RetryPolicy(max_attempts=3, initial_delay=2.0),- "webhookTrigger": RetryPolicy(max_attempts=1), # Don't retry triggers- "whatsappReceive": RetryPolicy(max_attempts=1), # Don't retry triggers"aiAgent": RetryPolicy(max_attempts=2, initial_delay=5.0, max_delay=30.0),"openaiChatModel": RetryPolicy(max_attempts=2, initial_delay=5.0),"anthropicChatModel": RetryPolicy(max_attempts=2, initial_delay=5.0),@@ -151,7 +151,17 @@ def get_retry_policy(node_type: str, custom_policy: Dict = None) -> RetryPolicy:"""if custom_policy:return RetryPolicy.from_dict(custom_policy)- return DEFAULT_RETRY_POLICIES.get(node_type, RetryPolicy())+ policy = DEFAULT_RETRY_POLICIES.get(node_type)+ if policy is not None:+ return policy+ # Triggers are never retried: a fired event is consumed, so a retry+ # would block as a fresh event-waiter. Generic check instead of+ # per-plugin entries in DEFAULT_RETRY_POLICIES.+ from constants import WORKFLOW_TRIGGER_TYPES++ if node_type in WORKFLOW_TRIGGER_TYPES:+ return RetryPolicy(max_attempts=1)+ return RetryPolicy()@dataclassdiff --git a/server/services/node_output_schemas.py b/server/services/node_output_schemas.pyindex 2ce9b81d..49889475 100644--- a/server/services/node_output_schemas.py+++ b/server/services/node_output_schemas.py@@ -131,42 +131,11 @@ class HttpRequestOutput(_OutputBase):# ---------------------------------------------------------------------------+# WhatsApp schemas live in nodes/whatsapp/ and self-register via+# ``register_output_schema`` (same pattern as telegram).# ----------------------------------------------------------------------------class WhatsAppGroupInfo(BaseModel):- group_jid: Optional[str] = None- sender_jid: Optional[str] = None- sender_phone: Optional[str] = None- sender_name: Optional[str] = None-- model_config = ConfigDict(extra="allow")---class WhatsAppReceiveOutput(_OutputBase):- message_id: Optional[str] = None- sender: Optional[str] = None- sender_phone: Optional[str] = None- chat_id: Optional[str] = None- message_type: Optional[str] = None- text: Optional[str] = None- timestamp: Optional[str] = None- is_group: Optional[bool] = None- is_from_me: Optional[bool] = None- push_name: Optional[str] = None- media: Optional[dict] = None- group_info: Optional[WhatsAppGroupInfo] = None---class WhatsAppSendOutput(_OutputBase):- success: Optional[bool] = None- message_id: Optional[str] = None- chat_id: Optional[str] = None- timestamp: Optional[str] = None- message_type: Optional[str] = None--# ---------------------------------------------------------------------------# Google Workspace (consolidated nodes)# ---------------------------------------------------------------------------@@ -376,41 +345,12 @@ class ContactsOutput(_OutputBase):# ----------------------------------------------------------------------------# Messaging: WhatsApp DB, Social-# (Telegram schemas moved to nodes/telegram/, registered via-# ``register_output_schema``.)+# Messaging: Social+# (Telegram and WhatsApp schemas moved to their plugin folders,+# registered via ``register_output_schema``.)# ----------------------------------------------------------------------------class WhatsAppDbOutput(_OutputBase):- """Composite — different operations surface different subsets of these- fields. We keep them all optional so the variable panel shows the union."""-- operation: Optional[str] = None- messages: Optional[list] = None- total: Optional[int] = None- has_more: Optional[bool] = None- count: Optional[int] = None- chat_type: Optional[str] = None- groups: Optional[list] = None- contacts: Optional[list] = None- participants: Optional[list] = None- jid: Optional[str] = None- phone: Optional[str] = None- name: Optional[str] = None- push_name: Optional[str] = None- business_name: Optional[str] = None- is_business: Optional[bool] = None- is_contact: Optional[bool] = None- profile_pic: Optional[str] = None- channels: Optional[list] = None- channel_jid: Optional[str] = None- timestamp: Optional[str] = None- muted: Optional[bool] = None- server_ids: Optional[str] = None- status: Optional[str] = None--class SocialReceiveOutput(_OutputBase):"""socialReceive has four output handles (message / media / contact /metadata) plus top-level fields for backwards compatibility. The@@ -766,10 +706,6 @@ NODE_OUTPUT_SCHEMAS: dict[str, type[BaseModel]] = {**{t: CodeExecutorOutput for t in _CODE_EXECUTOR_TYPES},# network"httpRequest": HttpRequestOutput,- "whatsappReceive": WhatsAppReceiveOutput,- "whatsappSend": WhatsAppSendOutput,- "whatsappDb": WhatsAppDbOutput,# telegram entries are registered by nodes/telegram/__init__.py via# register_output_schema() to keep all telegram code self-contained.diff --git a/server/services/status_broadcaster.py b/server/services/status_broadcaster.pyindex 64218ad8..d4f82824 100644--- a/server/services/status_broadcaster.py+++ b/server/services/status_broadcaster.py@@ -46,7 +46,9 @@ class StatusBroadcaster:"qr_data": None,"session_token": None,},- "whatsapp": {"connected": False, "has_session": False, "running": False, "pairing": False, "device_id": None, "qr": None},+ # No "whatsapp" seed: the plugin owns its slot outright+ # (nodes/whatsapp/_events.py writes the full dict) and the FE+ # guards on key presence — absent means disconnected."twitter": {"connected": False, "username": None, "user_id": None, "name": None, "profile_image_url": None},"google": {"connected": False,