Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
docs: central visuals.json + skill resolver + google node namespace
trohitg80c8883978b4
diff --git a/CLAUDE.md b/CLAUDE.mdindex be04c92a..5017ad48 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -506,10 +506,13 @@ The frontend uses a layered cache + slice-subscription model so cold refreshes a- Applies to `SquareNode`, `AIAgentNode`, `TriggerNode`, `GenericNode`, `ToolkitNode`, `StartNode`, `TeamMonitorNode`. Add new node components the same way.- Reference: https://reactflow.dev/learn/advanced-use/performance-### Icon convention -- `asset:<key>` strings, never inline data URIs-- Backend `NodeMetadata.icon` and SKILL.md frontmatter `icon` fields use the n8n-style prefix scheme: `asset:<key>` (filesystem SVG), `<lib>:<brand>` (e.g. `lobehub:claude`), `data:` / URL passthrough, or plain emoji.-- Frontend resolver: [client/src/assets/icons/index.ts](./client/src/assets/icons/index.ts) `resolveIcon` + `resolveLibraryIcon`. The asset registry is keyed by SVG filename (without `.svg`) and built eagerly at module load via `import.meta.glob`.-- **Do not** ship inline data URIs from the backend, do not maintain frontend override tables (the `SKILL_ICON_OVERRIDES` table was removed for this reason). Drop a new SVG into `client/src/assets/icons/<category>/<key>.svg` and reference it as `asset:<key>` from the backend plugin -- nothing else.+### Icon + color — central `visuals.json` registry, single source of truth+- Every node's icon and color live in [server/nodes/visuals.json](./server/nodes/visuals.json) — `{nodeType: {icon, color, skill?}}`. The `skill` field optionally points at the teaching skill folder (reverse map for the "teach this node" case).+- The handler at [server/nodes/_visuals.py](./server/nodes/_visuals.py) exposes `get_icon(node_type)` / `get_color(node_type)`. `BaseNode._metadata_dict` consults it at registration time. Node plugin classes do **not** declare `icon = ...` or `color = ...` themselves (a subclass MAY override by setting the class attr — explicit value wins).+- Wire format (used by the frontend resolver at [client/src/assets/icons/index.ts](./client/src/assets/icons/index.ts)): `asset:<key>` (filesystem SVG, keyed by filename without `.svg`, auto-indexed via `import.meta.glob`), `<lib>:<brand>` (NPM icon package, e.g. `lobehub:Claude`), `data:` / URL passthrough, or plain emoji.+- Frontend renders via the single `<NodeIcon icon className />` primitive in [client/src/assets/icons/NodeIcon.tsx](./client/src/assets/icons/NodeIcon.tsx). It dispatches lib-component / `<img>` / text branches and **does not apply parent color** — that would mono-tint lobehub `.Color` brand SVGs (their paths use `currentColor`). Sites that want a tinted backdrop set `style={{ color: brandColor }}` on the parent + `bg-tint-soft` / `border-tint`.+- SKILL.md icon/color is resolved by `SkillLoader._parse_skill_metadata` from the first node in `allowed-tools` via the same handler. Skills with a node target carry no inline icon/color. **Orphan skills** (personality, memory operators, autonomous patterns — no node target) keep inline `metadata.icon` and `metadata.color` since the resolver returns nothing for them.+- **Do not** ship inline data URIs from the backend, do not maintain frontend override tables, do not declare `icon`/`color` on a node class (use visuals.json), do not declare them in SKILL.md when the skill targets a node.## Key Files & Componentsdiff --git a/docs-internal/TEMPORAL_ARCHITECTURE.md b/docs-internal/TEMPORAL_ARCHITECTURE.mdindex 6c02469b..454373eb 100644--- a/docs-internal/TEMPORAL_ARCHITECTURE.md+++ b/docs-internal/TEMPORAL_ARCHITECTURE.md@@ -255,7 +255,7 @@ CONFIG_HANDLES = {"input-tools", "input-memory", "input-model", "input-skill", "TRIGGER_NODE_TYPES = frozenset(["start", "cronScheduler", "webhookTrigger", "whatsappReceive","workflowTrigger", "chatTrigger", "taskTrigger",- "twitterReceive", "gmailReceive", "telegramReceive",+ "twitterReceive", "googleGmailReceive", "telegramReceive",])# Android service types (connect to androidTool)diff --git a/docs-internal/event_waiter_system.md b/docs-internal/event_waiter_system.mdindex 616bcb35..f3754418 100644--- a/docs-internal/event_waiter_system.md+++ b/docs-internal/event_waiter_system.md@@ -50,7 +50,7 @@ TRIGGER_REGISTRY: Dict[str, TriggerConfig] = {'chatTrigger': TriggerConfig('chatTrigger', 'chat_message_received', 'Chat Message'),'taskTrigger': TriggerConfig('taskTrigger', 'task_completed', 'Task Completed'),'twitterReceive': TriggerConfig('twitterReceive', 'twitter_event_received', 'Twitter Event'),- 'gmailReceive': TriggerConfig('gmailReceive', 'gmail_email_received', 'Gmail Email'),+ 'googleGmailReceive': TriggerConfig('googleGmailReceive', 'gmail_email_received', 'Gmail Email'),'telegramReceive': TriggerConfig('telegramReceive', 'telegram_message_received','Telegram Message'),}```@@ -68,7 +68,7 @@ FILTER_BUILDERS = {'chatTrigger': build_chat_filter,'taskTrigger': build_task_completed_filter,'twitterReceive': build_twitter_filter,- 'gmailReceive': build_gmail_filter,+ 'googleGmailReceive': build_gmail_filter,'telegramReceive': build_telegram_filter,}```@@ -141,7 +141,7 @@ Some triggers do not fit the push model because the upstream service has no webh| `taskTrigger` | Event (push via delegation) | `event_waiter.py` || `telegramReceive` | Event (push via long-polling) | `event_waiter.py` + `TelegramService` || `twitterReceive` | **Polling** | `deployment/triggers.py` + `asyncio.Queue` |-| `gmailReceive` | **Polling** | `deployment/triggers.py` + `asyncio.Queue` |+| `googleGmailReceive` | **Polling** | `deployment/triggers.py` + `asyncio.Queue` || `cronScheduler` | APScheduler | `deployment/triggers.py` |Polling triggers are routed in `DeploymentManager._create_poll_coroutine()` and use `TriggerManager.setup_polling_trigger()` with a custom poll function and an `asyncio.Queue`. See [workflow-schema.md](workflow-schema.md) for the full trigger list.diff --git a/docs-internal/node-logic-flows/email/emailReceive.md b/docs-internal/node-logic-flows/email/emailReceive.mdindex f4967121..8cf00aaa 100644--- a/docs-internal/node-logic-flows/email/emailReceive.md+++ b/docs-internal/node-logic-flows/email/emailReceive.md@@ -13,7 +13,7 @@Polling-based trigger that fires when a new email lands in a watched IMAPfolder. The first poll establishes a baseline (so existing mail is notreplayed), then subsequent polls diff message IDs to detect arrivals.-Mirrors the `gmailReceive` pattern but works against any IMAP provider via+Mirrors the `googleGmailReceive` pattern but works against any IMAP provider viaHimalaya.## Inputs (handles)@@ -24,7 +24,7 @@ None. Triggers have no inputs.| Name | Type | Default | Required | displayOptions.show | Description ||------|------|---------|----------|---------------------|-------------|-| `provider` | options | `gmail` | no | - | Preset key in `email_providers.json` |+| `provider` | options | `googleGmail` | no | - | Preset key in `email_providers.json` || `folder` | string | `INBOX` | no | - | IMAP folder to watch || `poll_interval` | number | `60` | no | - | Seconds between polls. Clamped to `[min_interval, max_interval]` from config (30-3600) || `filter_query` | string | `""` | no | - | Reserved, currently not applied during polling |diff --git a/docs-internal/node-logic-flows/google_workspace/calendar.md b/docs-internal/node-logic-flows/google_workspace/googleCalendar.mdsimilarity index 92%rename from docs-internal/node-logic-flows/google_workspace/calendar.mdrename to docs-internal/node-logic-flows/google_workspace/googleCalendar.mdindex 4151b9bc..6e82bfb8 100644--- a/docs-internal/node-logic-flows/google_workspace/calendar.md+++ b/docs-internal/node-logic-flows/google_workspace/googleCalendar.md@@ -1,12 +1,12 @@-# Calendar (`calendar`)+# Calendar (`googleCalendar`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/calendar.py::handle_google_calendar`](../../../server/services/handlers/calendar.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/calendar-skill/SKILL.md`](../../../server/skills/productivity_agent/calendar-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `calendar` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-calendar-skill/SKILL.md`](../../../server/skills/productivity_agent/google-calendar-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleCalendar` |## Purpose@@ -149,6 +149,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`calendar-skill/SKILL.md`](../../../server/skills/productivity_agent/calendar-skill/SKILL.md)-- **Companion nodes**: [`gmail`](./gmail.md), [`drive`](./drive.md), [`sheets`](./sheets.md), [`tasks`](./tasks.md), [`contacts`](./contacts.md)+- **Skills using this as a tool**: [`calendar-skill/SKILL.md`](../../../server/skills/productivity_agent/google-calendar-skill/SKILL.md)+- **Companion nodes**: [`googleGmail`](./googleGmail.md), [`googleDrive`](./googleDrive.md), [`googleSheets`](./googleSheets.md), [`googleTasks`](./googleTasks.md), [`googleContacts`](./googleContacts.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes".diff --git a/docs-internal/node-logic-flows/google_workspace/contacts.md b/docs-internal/node-logic-flows/google_workspace/googleContacts.mdsimilarity index 93%rename from docs-internal/node-logic-flows/google_workspace/contacts.mdrename to docs-internal/node-logic-flows/google_workspace/googleContacts.mdindex d6d18448..f845edc8 100644--- a/docs-internal/node-logic-flows/google_workspace/contacts.md+++ b/docs-internal/node-logic-flows/google_workspace/googleContacts.md@@ -1,12 +1,12 @@-# Contacts (`contacts`)+# Contacts (`googleContacts`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/contacts.py::handle_google_contacts`](../../../server/services/handlers/contacts.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/contacts-skill/SKILL.md`](../../../server/skills/productivity_agent/contacts-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `contacts` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-contacts-skill/SKILL.md`](../../../server/skills/productivity_agent/google-contacts-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleContacts` |## Purpose@@ -187,6 +187,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`contacts-skill/SKILL.md`](../../../server/skills/productivity_agent/contacts-skill/SKILL.md)-- **Companion nodes**: [`gmail`](./gmail.md), [`calendar`](./calendar.md), [`drive`](./drive.md), [`sheets`](./sheets.md), [`tasks`](./tasks.md)+- **Skills using this as a tool**: [`contacts-skill/SKILL.md`](../../../server/skills/productivity_agent/google-contacts-skill/SKILL.md)+- **Companion nodes**: [`googleGmail`](./googleGmail.md), [`googleCalendar`](./googleCalendar.md), [`googleDrive`](./googleDrive.md), [`googleSheets`](./googleSheets.md), [`googleTasks`](./googleTasks.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes".diff --git a/docs-internal/node-logic-flows/google_workspace/drive.md b/docs-internal/node-logic-flows/google_workspace/googleDrive.mdsimilarity index 92%rename from docs-internal/node-logic-flows/google_workspace/drive.mdrename to docs-internal/node-logic-flows/google_workspace/googleDrive.mdindex 68efae18..a2a4300d 100644--- a/docs-internal/node-logic-flows/google_workspace/drive.md+++ b/docs-internal/node-logic-flows/google_workspace/googleDrive.md@@ -1,12 +1,12 @@-# Drive (`drive`)+# Drive (`googleDrive`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/drive.py::handle_google_drive`](../../../server/services/handlers/drive.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/drive-skill/SKILL.md`](../../../server/skills/productivity_agent/drive-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `drive` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-drive-skill/SKILL.md`](../../../server/skills/productivity_agent/google-drive-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleDrive` |## Purpose@@ -152,6 +152,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`drive-skill/SKILL.md`](../../../server/skills/productivity_agent/drive-skill/SKILL.md)-- **Companion nodes**: [`gmail`](./gmail.md), [`calendar`](./calendar.md), [`sheets`](./sheets.md), [`tasks`](./tasks.md), [`contacts`](./contacts.md)+- **Skills using this as a tool**: [`drive-skill/SKILL.md`](../../../server/skills/productivity_agent/google-drive-skill/SKILL.md)+- **Companion nodes**: [`googleGmail`](./googleGmail.md), [`googleCalendar`](./googleCalendar.md), [`googleSheets`](./googleSheets.md), [`googleTasks`](./googleTasks.md), [`googleContacts`](./googleContacts.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes".diff --git a/docs-internal/node-logic-flows/google_workspace/gmail.md b/docs-internal/node-logic-flows/google_workspace/googleGmail.mdsimilarity index 88%rename from docs-internal/node-logic-flows/google_workspace/gmail.mdrename to docs-internal/node-logic-flows/google_workspace/googleGmail.mdindex c10e7a9e..bb5b6e2d 100644--- a/docs-internal/node-logic-flows/google_workspace/gmail.md+++ b/docs-internal/node-logic-flows/google_workspace/googleGmail.md@@ -1,12 +1,12 @@-# Gmail (`gmail`)+# Gmail (`googleGmail`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/gmail.py::handle_google_gmail`](../../../server/services/handlers/gmail.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/gmail-skill/SKILL.md`](../../../server/skills/productivity_agent/gmail-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `gmail` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-gmail-skill/SKILL.md`](../../../server/skills/productivity_agent/google-gmail-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleGmail` |## Purpose@@ -113,9 +113,9 @@ flowchart TD## Side Effects-- **Database writes**: one row per API call in `api_usage_metrics` via `database.save_api_usage_metric` with `service='gmail'`, `operation=<action>`, `endpoint=<action>`, `resource_count`, `cost` (always 0 for Google APIs).+- **Database writes**: one row per API call in `api_usage_metrics` via `database.save_api_usage_metric` with `service='googleGmail'`, `operation=<action>`, `endpoint=<action>`, `resource_count`, `cost` (always 0 for Google APIs).- **Broadcasts**: none from the handler itself; `NodeExecutor` emits standard `node_status`.-- **External API calls**: Gmail API v1 via `googleapiclient.discovery.build("gmail", "v1", creds)` - `users().messages().send/list/get`. Proactive token refresh hits `https://oauth2.googleapis.com/token`.+- **External API calls**: Gmail API v1 via `googleapiclient.discovery.build("googleGmail", "v1", creds)` - `users().messages().send/list/get`. Proactive token refresh hits `https://oauth2.googleapis.com/token`.- **File I/O**: none.- **Subprocess**: none.@@ -136,6 +136,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`gmail-skill/SKILL.md`](../../../server/skills/productivity_agent/gmail-skill/SKILL.md)-- **Companion nodes**: [`gmailReceive`](./gmailReceive.md), [`calendar`](./calendar.md), [`drive`](./drive.md), [`sheets`](./sheets.md), [`tasks`](./tasks.md), [`contacts`](./contacts.md)+- **Skills using this as a tool**: [`gmail-skill/SKILL.md`](../../../server/skills/productivity_agent/google-gmail-skill/SKILL.md)+- **Companion nodes**: [`googleGmailReceive`](./googleGmailReceive.md), [`googleCalendar`](./googleCalendar.md), [`googleDrive`](./googleDrive.md), [`googleSheets`](./googleSheets.md), [`googleTasks`](./googleTasks.md), [`googleContacts`](./googleContacts.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes" and "Encrypted Credentials System".diff --git a/docs-internal/node-logic-flows/google_workspace/gmailReceive.md b/docs-internal/node-logic-flows/google_workspace/googleGmailReceive.mdsimilarity index 98%rename from docs-internal/node-logic-flows/google_workspace/gmailReceive.mdrename to docs-internal/node-logic-flows/google_workspace/googleGmailReceive.mdindex 7b7fbb86..000341b1 100644--- a/docs-internal/node-logic-flows/google_workspace/gmailReceive.md+++ b/docs-internal/node-logic-flows/google_workspace/googleGmailReceive.md@@ -1,4 +1,4 @@-# Gmail Receive (`gmailReceive`)+# Gmail Receive (`googleGmailReceive`)| Field | Value ||------|-------|@@ -124,5 +124,5 @@ flowchart TD## Related-- **Companion nodes**: [`gmail`](./gmail.md) (send/search/read operations)+- **Companion nodes**: [`googleGmail`](./googleGmail.md) (send/search/read operations)- **Architecture docs**: `CLAUDE.md` -> "Polling Triggers (Gmail, Twitter)" and "Event-Driven Trigger Node System".diff --git a/docs-internal/node-logic-flows/google_workspace/sheets.md b/docs-internal/node-logic-flows/google_workspace/googleSheets.mdsimilarity index 91%rename from docs-internal/node-logic-flows/google_workspace/sheets.mdrename to docs-internal/node-logic-flows/google_workspace/googleSheets.mdindex a41c0aff..419e8e0d 100644--- a/docs-internal/node-logic-flows/google_workspace/sheets.md+++ b/docs-internal/node-logic-flows/google_workspace/googleSheets.md@@ -1,12 +1,12 @@-# Sheets (`sheets`)+# Sheets (`googleSheets`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/sheets.py::handle_google_sheets`](../../../server/services/handlers/sheets.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/sheets-skill/SKILL.md`](../../../server/skills/productivity_agent/sheets-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `sheets` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-sheets-skill/SKILL.md`](../../../server/skills/productivity_agent/google-sheets-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleSheets` |## Purpose@@ -124,6 +124,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`sheets-skill/SKILL.md`](../../../server/skills/productivity_agent/sheets-skill/SKILL.md)-- **Companion nodes**: [`gmail`](./gmail.md), [`calendar`](./calendar.md), [`drive`](./drive.md), [`tasks`](./tasks.md), [`contacts`](./contacts.md)+- **Skills using this as a tool**: [`sheets-skill/SKILL.md`](../../../server/skills/productivity_agent/google-sheets-skill/SKILL.md)+- **Companion nodes**: [`googleGmail`](./googleGmail.md), [`googleCalendar`](./googleCalendar.md), [`googleDrive`](./googleDrive.md), [`googleTasks`](./googleTasks.md), [`googleContacts`](./googleContacts.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes".diff --git a/docs-internal/node-logic-flows/google_workspace/tasks.md b/docs-internal/node-logic-flows/google_workspace/googleTasks.mdsimilarity index 91%rename from docs-internal/node-logic-flows/google_workspace/tasks.mdrename to docs-internal/node-logic-flows/google_workspace/googleTasks.mdindex 64c9d6f6..08292cb5 100644--- a/docs-internal/node-logic-flows/google_workspace/tasks.md+++ b/docs-internal/node-logic-flows/google_workspace/googleTasks.md@@ -1,17 +1,17 @@-# Tasks (`tasks`)+# Tasks (`googleTasks`)| Field | Value ||------|-------|| **Category** | google_workspace / tool (dual-purpose) || **Backend handler** | [`server/services/handlers/tasks.py::handle_google_tasks`](../../../server/services/handlers/tasks.py) || **Tests** | [`server/tests/nodes/test_google_workspace.py`](../../../server/tests/nodes/test_google_workspace.py) |-| **Skill (if any)** | [`server/skills/productivity_agent/tasks-skill/SKILL.md`](../../../server/skills/productivity_agent/tasks-skill/SKILL.md) |-| **Dual-purpose tool** | yes - tool name `tasks` |+| **Skill (if any)** | [`server/skills/productivity_agent/google-tasks-skill/SKILL.md`](../../../server/skills/productivity_agent/google-tasks-skill/SKILL.md) |+| **Dual-purpose tool** | yes - tool name `googleTasks` |## PurposeConsolidated Google Tasks node for managing personal to-do items. Uses Google-Tasks API v1 (`tasklists` + `tasks` collections). One node, five operations+Tasks API v1 (`tasklists` + `googleTasks` collections). One node, five operationsswitched via the `operation` parameter.## Inputs (handles)@@ -153,6 +153,6 @@ flowchart TD## Related-- **Skills using this as a tool**: [`tasks-skill/SKILL.md`](../../../server/skills/productivity_agent/tasks-skill/SKILL.md)-- **Companion nodes**: [`gmail`](./gmail.md), [`calendar`](./calendar.md), [`drive`](./drive.md), [`sheets`](./sheets.md), [`contacts`](./contacts.md)+- **Skills using this as a tool**: [`tasks-skill/SKILL.md`](../../../server/skills/productivity_agent/google-tasks-skill/SKILL.md)+- **Companion nodes**: [`googleGmail`](./googleGmail.md), [`googleCalendar`](./googleCalendar.md), [`googleDrive`](./googleDrive.md), [`googleSheets`](./googleSheets.md), [`googleContacts`](./googleContacts.md)- **Architecture docs**: `CLAUDE.md` -> "Google Workspace Nodes".diff --git a/docs-internal/node-logic-flows/specialized_agents/productivityAgent.md b/docs-internal/node-logic-flows/specialized_agents/productivityAgent.mdindex 61cbdfbb..ba720152 100644--- a/docs-internal/node-logic-flows/specialized_agents/productivityAgent.md+++ b/docs-internal/node-logic-flows/specialized_agents/productivityAgent.md@@ -15,8 +15,8 @@ calendar, drive, sheets, tasks, contacts.## What is unique to this node-- **Intended tool set**: `gmail`, `calendar`, `drive`, `sheets`, `tasks`,- `contacts`, plus scheduling tools (`timer`, `cronScheduler`).+- **Intended tool set**: `googleGmail`, `googleCalendar`, `googleDrive`, `googleSheets`, `googleTasks`,+ `googleContacts`, plus scheduling tools (`timer`, `cronScheduler`).- **Intended skills**: `server/skills/productivity_agent/` (gmail-skill,calendar-skill, drive-skill, sheets-skill, tasks-skill, contacts-skill).- **Frontend theming**: cyan dracula accent.diff --git a/docs-internal/node-logic-flows/specialized_agents/travelAgent.md b/docs-internal/node-logic-flows/specialized_agents/travelAgent.mdindex 7921d7d9..0a21d5e3 100644--- a/docs-internal/node-logic-flows/specialized_agents/travelAgent.md+++ b/docs-internal/node-logic-flows/specialized_agents/travelAgent.md@@ -11,7 +11,7 @@## PurposeAI agent pre-configured for travel planning. Typical tool connections:-`gmaps_locations`, `gmaps_nearby_places`, `calendar`, `braveSearch`.+`gmaps_locations`, `gmaps_nearby_places`, `googleCalendar`, `braveSearch`.## What is unique to this nodediff --git a/docs-internal/plugin_system.md b/docs-internal/plugin_system.mdindex 5c96d79d..90c57530 100644--- a/docs-internal/plugin_system.md+++ b/docs-internal/plugin_system.md@@ -252,7 +252,7 @@ A multi-op node declares multiple methods, each decorated with`parameters.operation` to choose which to run.```python-@Operation("send", cost={"service": "gmail", "action": "send", "count": 1})+@Operation("send", cost={"service": "googleGmail", "action": "send", "count": 1})async def send(self, ctx: NodeContext, params: GmailParams) -> Any: ...@Operation("search")diff --git a/docs-internal/schema_source_of_truth_rfc.md b/docs-internal/schema_source_of_truth_rfc.mdindex d84cfdc7..00461d60 100644--- a/docs-internal/schema_source_of_truth_rfc.md+++ b/docs-internal/schema_source_of_truth_rfc.md@@ -206,9 +206,9 @@ register_node(type="myNode",metadata={"displayName": "My Node",- "icon": "asset:my_icon", # or "lobehub:<brand>" or emoji+ # icon + color resolved via server/nodes/visuals.json — add an+ # entry: {"myNode": {"icon": "asset:my_icon", "color": "#8be9fd"}}"group": ["tool"],- "color": "#8be9fd","componentKind": "square","handles": [...], # full topology"description": "...",@@ -221,38 +221,57 @@ register_node(Zero edits elsewhere.-### 10.B — Icon wire format + resolver+### 10.B — Icon + color: central registry + handler-Backend icons follow n8n's prefix-dispatch convention. The resolver at-[client/src/assets/icons/index.ts](../client/src/assets/icons/index.ts)-handles every source:+Every node's icon and color live in **one** file:+[server/nodes/visuals.json](../server/nodes/visuals.json) —+`{nodeType: {icon, color, skill?}}`. The handler at+[server/nodes/_visuals.py](../server/nodes/_visuals.py) exposes+`get_icon` / `get_color`; `BaseNode._metadata_dict` consults it at+registration time. Node plugin classes don't carry inline `icon = ...`+or `color = ...` declarations — a subclass MAY override by setting+the class attr (explicit value wins) but normal authoring goes+through visuals.json.++Wire format (resolver at+[client/src/assets/icons/index.ts](../client/src/assets/icons/index.ts)):| Prefix | Source | Example ||---|---|---|| `asset:<key>` | Filesystem SVG; Vite `import.meta.glob` over `client/src/assets/icons/**/*.svg`. Key is filename minus `.svg`. | `asset:gmail` |-| `<lib>:<brand>` | NPM icon package. `ICON_LIBRARIES` dispatch table with `lobehub` registered. Case-insensitive brand lookup — names come from the package's own exports. | `lobehub:claude` |+| `<lib>:<brand>` | NPM icon package. `ICON_LIBRARIES` dispatch table with `lobehub` registered. | `lobehub:Claude` || `data:` / `http(s)://` / `/…` | URL passthrough | — |-| plain text | emoji / short label | `🤖` |--Frontend consumers call `resolveLibraryIcon(icon)` first (returns a React-component) then `resolveIcon(icon)` (returns string / data URI). Consumers-use the `useNodeSpec(type)` reactive hook so icons populate the moment the-prefetch lands. **No frontend fallbacks**: a missing icon is a backend bug,-not something to mask.+| plain text | emoji | `🤖` |++Frontend renders via the single+[`<NodeIcon>`](../client/src/assets/icons/NodeIcon.tsx) primitive —+one resolver, four branches (lib component / image / text / fallback).+It does **not** apply parent color: lobehub `.Color` SVGs use+`currentColor` for parts of the brand artwork, so wrapping them in+`style={{ color: brandColor }}` would mono-tint multi-color brand+marks. Sites that need a tinted backdrop set `style={{ color: brandColor }}`+on the parent + `bg-tint-soft` / `border-tint`; NodeIcon sits inside+without contributing to the cascade.Group-palette metadata follows the same pattern via-[server/nodes/groups.py](../server/nodes/groups.py): 25 palette groups each-declaring `{label, icon, color, visibility}`. Retires the frontend's-`CATEGORY_ICONS` / `labelMap` / `colorMap` / `SIMPLE_MODE_CATEGORIES` tables.--**SKILL.md frontmatter uses the same convention.** `metadata.icon` in every-`server/skills/<folder>/<skill>/SKILL.md` follows the prefix-dispatch-contract above. Branded skills (search providers, productivity / social-integrations) use `asset:<key>` against a bundled SVG; generic skills can-stay on emoji. The frontend's previous `SKILL_ICON_OVERRIDES` table in-`MasterSkillEditor.tsx` was deleted -- never re-introduce per-skill icon-hardcoding on the frontend. To brand a skill, update its SKILL.md and-ensure a matching SVG exists under `client/src/assets/icons/`.+[server/nodes/groups.py](../server/nodes/groups.py): palette groups+declare `{label, icon, color, visibility}`. Retires the frontend's+`CATEGORY_ICONS` / `labelMap` / `colorMap` / `SIMPLE_MODE_CATEGORIES`.++**SKILL.md icon/color is auto-resolved from the target node.**+`SkillLoader._parse_skill_metadata` reads `allowed-tools`, finds the+first token that resolves to a node in visuals.json, and inherits+that node's icon and color. Skills with a node target carry no+inline `metadata.icon` / `metadata.color`. **Orphan skills**+(personality, memory operators, autonomous patterns — no node+target) keep inline values inside `metadata` since the resolver+returns nothing for them. The `allowed-tools` field is snake_case+(matching Python conventions); node `type` is camelCase (workflow+JSON contract); the lookup converts at the boundary.++`visuals.json` entries optionally carry a `skill` field pointing at+the teaching skill folder — a reverse map for the frontend to find+the skill from a node (e.g. a future "teach this node" button).### 10.G — Parameter panel fully spec-drivendiff --git a/docs-internal/workflow-schema.md b/docs-internal/workflow-schema.mdindex 46c7f996..e966a5a8 100644--- a/docs-internal/workflow-schema.md+++ b/docs-internal/workflow-schema.md@@ -126,13 +126,13 @@ Work as both workflow nodes and AI tools. Defined in `searchNodes.ts`:### Google Workspace Nodes (7 nodes)Consolidated operation-based nodes sharing one OAuth connection. See [new_service_integration.md](new_service_integration.md):-- `gmail` - send / search / read (dual-purpose)-- `gmailReceive` - Polling trigger for incoming emails-- `calendar` - create / list / update / delete-- `drive` - upload / download / list / share-- `sheets` - read / write / append-- `tasks` - create / list / complete / update / delete-- `contacts` - create / list / search / get / update / delete+- `googleGmail` - send / search / read (dual-purpose)+- `googleGmailReceive` - Polling trigger for incoming emails+- `googleCalendar` - create / list / update / delete+- `googleDrive` - upload / download / list / share+- `googleSheets` - read / write / append+- `googleTasks` - create / list / complete / update / delete+- `googleContacts` - create / list / search / get / update / delete### WhatsApp Nodes (3 nodes)- `whatsappSend` - Dual-purpose: send text/media/location/contact to contacts, groups, channelsdiff --git a/server/nodes/README.md b/server/nodes/README.mdindex 390ffe3f..a98d264e 100644--- a/server/nodes/README.md+++ b/server/nodes/README.md@@ -43,12 +43,13 @@ class AcmeOutput(BaseModel):count: int = 0-# 4. The node.+# 4. The node. (Icon + color are NOT declared here — add an entry+# {"acmeSearch": {"icon": "asset:acme", "color": "#abcdef"}} to+# server/nodes/visuals.json instead. BaseNode resolves both via+# the central handler at server/nodes/_visuals.py.)class AcmeSearchNode(ActionNode):type = "acmeSearch"display_name = "Acme Search"- icon = "asset:acme"- color = "#abcdef"group = ("search", "tool")description = "Search Acme's web index"component_kind = "square"