6ede33ccdb
Build and Push Docker Images / create_manifest (web, surfsense-web, , cpu) (push) Has been cancelled
Build and Push Docker Images / finalize_release (push) Has been cancelled
Obsidian Plugin Lint / lint (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, cpu, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64, , runner, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, cpu, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64, , runner, false, cpu) (push) Has been cancelled
Build and Push Docker Images / compute_version (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cpu, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, , production, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cpu, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, , production, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu126, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, -cuda126, production, true, cuda126) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu126, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, -cuda126, production, true, cuda126) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu128, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, -cuda, production, true, cuda) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu128, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, -cuda, production, true, cuda) (push) Has been cancelled
Build and Push Docker Images / verify_digests (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, , cpu) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, -cuda, cuda) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, -cuda126, cuda126) (push) Has been cancelled
76 lines
2.9 KiB
Python
76 lines
2.9 KiB
Python
"""Connector-type to subagent name; subagent name to availability tokens for build_subagents."""
|
|
|
|
from __future__ import annotations
|
|
|
|
# Connected apps (hosted MCP + interim-native Gmail/Calendar) all route to the
|
|
# single ``mcp_discovery`` subagent. File connectors stay native (they enrich
|
|
# the knowledge base). Deprecated connectors (Discord/Teams/Luma) are omitted:
|
|
# they have no agent subagent, so their rows produce no tools.
|
|
CONNECTOR_TYPE_TO_CONNECTOR_AGENT_MAPS: dict[str, str] = {
|
|
"GOOGLE_GMAIL_CONNECTOR": "mcp_discovery",
|
|
"COMPOSIO_GMAIL_CONNECTOR": "mcp_discovery",
|
|
"GOOGLE_CALENDAR_CONNECTOR": "mcp_discovery",
|
|
"COMPOSIO_GOOGLE_CALENDAR_CONNECTOR": "mcp_discovery",
|
|
"LINEAR_CONNECTOR": "mcp_discovery",
|
|
"JIRA_CONNECTOR": "mcp_discovery",
|
|
"CLICKUP_CONNECTOR": "mcp_discovery",
|
|
"SLACK_CONNECTOR": "mcp_discovery",
|
|
"AIRTABLE_CONNECTOR": "mcp_discovery",
|
|
"NOTION_CONNECTOR": "mcp_discovery",
|
|
"CONFLUENCE_CONNECTOR": "mcp_discovery",
|
|
"MCP_CONNECTOR": "mcp_discovery",
|
|
"GOOGLE_DRIVE_CONNECTOR": "google_drive",
|
|
"COMPOSIO_GOOGLE_DRIVE_CONNECTOR": "google_drive",
|
|
"DROPBOX_CONNECTOR": "dropbox",
|
|
"ONEDRIVE_CONNECTOR": "onedrive",
|
|
}
|
|
|
|
# ``mcp_discovery`` is gated any-of: present iff the workspace has at least one
|
|
# connected app. Tokens are searchable-type strings (Composio Gmail/Calendar
|
|
# map to the GOOGLE_* tokens in connector_searchable_types).
|
|
SUBAGENT_TO_REQUIRED_CONNECTOR_MAP: dict[str, frozenset[str]] = {
|
|
"deliverables": frozenset(),
|
|
"knowledge_base": frozenset(),
|
|
"web_crawler": frozenset(),
|
|
"youtube": frozenset(),
|
|
"google_maps": frozenset(),
|
|
"google_search": frozenset(),
|
|
"reddit": frozenset(),
|
|
"mcp_discovery": frozenset(
|
|
{
|
|
"SLACK_CONNECTOR",
|
|
"JIRA_CONNECTOR",
|
|
"LINEAR_CONNECTOR",
|
|
"CLICKUP_CONNECTOR",
|
|
"AIRTABLE_CONNECTOR",
|
|
"NOTION_CONNECTOR",
|
|
"CONFLUENCE_CONNECTOR",
|
|
"GOOGLE_GMAIL_CONNECTOR",
|
|
"GOOGLE_CALENDAR_CONNECTOR",
|
|
"MCP_CONNECTOR",
|
|
}
|
|
),
|
|
"dropbox": frozenset({"DROPBOX_FILE"}),
|
|
"google_drive": frozenset({"GOOGLE_DRIVE_FILE"}),
|
|
"onedrive": frozenset({"ONEDRIVE_FILE"}),
|
|
}
|
|
|
|
# Old per-connector subagent names, kept working for checkpoint resume: a
|
|
# ``task(subagent_type="gmail")`` paused before the MCP consolidation resolves
|
|
# to the consolidated ``mcp_discovery`` subagent instead of hard-failing
|
|
# "subagent does not exist". New routing never emits these names.
|
|
LEGACY_SUBAGENT_ALIASES: dict[str, str] = {
|
|
"gmail": "mcp_discovery",
|
|
"calendar": "mcp_discovery",
|
|
"linear": "mcp_discovery",
|
|
"jira": "mcp_discovery",
|
|
"clickup": "mcp_discovery",
|
|
"slack": "mcp_discovery",
|
|
"airtable": "mcp_discovery",
|
|
"notion": "mcp_discovery",
|
|
"confluence": "mcp_discovery",
|
|
"discord": "mcp_discovery",
|
|
"teams": "mcp_discovery",
|
|
"luma": "mcp_discovery",
|
|
}
|