🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ chore(channel): register iMessage platform with coming-soon UI gate (#15276)
Arvin Xu3e4b81d2cc1e
diff --git a/locales/en-US/agent.json b/locales/en-US/agent.jsonindex 3650daca8d6..7be31a4e1c8 100644--- a/locales/en-US/agent.json+++ b/locales/en-US/agent.json@@ -100,6 +100,35 @@"channel.groupPolicyOpenHint": "Respond in any group, channel, or thread","channel.historyLimit": "History Message Limit","channel.historyLimitHint": "Default number of messages to fetch when reading channel history",+ "channel.imessage.applicationIdHint": "A stable identifier shared by the cloud channel and the Desktop bridge.",+ "channel.imessage.applicationIdPlaceholder": "e.g. home-mac-mini",+ "channel.imessage.blueBubblesPassword": "BlueBubbles Password",+ "channel.imessage.blueBubblesPasswordHint": "Stored locally in LobeHub Desktop and used only to call the local BlueBubbles server.",+ "channel.imessage.blueBubblesServerUrl": "BlueBubbles Server URL",+ "channel.imessage.blueBubblesServerUrlHint": "The local BlueBubbles server URL reachable from this Desktop app.",+ "channel.imessage.bridgeEnabled": "Enable Bridge",+ "channel.imessage.bridgeEnabledHint": "When enabled, LobeHub Desktop receives local BlueBubbles webhooks and forwards them to LobeHub.",+ "channel.imessage.bridgeMissingApplicationId": "Enter the Application ID first.",+ "channel.imessage.bridgeMissingPassword": "Enter the BlueBubbles password first.",+ "channel.imessage.bridgeMissingServerUrl": "Enter the BlueBubbles Server URL first.",+ "channel.imessage.bridgeMissingWebhookSecret": "Enter the Webhook Secret first.",+ "channel.imessage.bridgePasswordSavedPlaceholder": "Leave blank to keep the saved password",+ "channel.imessage.bridgeRefresh": "Refresh",+ "channel.imessage.bridgeRefreshFailed": "Failed to refresh iMessage Desktop bridge",+ "channel.imessage.bridgeRunning": "Running",+ "channel.imessage.bridgeSave": "Save Bridge",+ "channel.imessage.bridgeSaveFailed": "Failed to save iMessage Desktop bridge",+ "channel.imessage.bridgeSaved": "iMessage Desktop bridge saved",+ "channel.imessage.bridgeStopped": "Stopped",+ "channel.imessage.bridgeTest": "Test BlueBubbles",+ "channel.imessage.bridgeTestFailed": "BlueBubbles test failed",+ "channel.imessage.bridgeTestSuccess": "BlueBubbles connection passed",+ "channel.imessage.description": "Connect this assistant to iMessage through the local LobeHub Desktop BlueBubbles bridge.",+ "channel.imessage.desktopBridge": "Desktop Bridge",+ "channel.imessage.desktopDeviceId": "Desktop Device ID",+ "channel.imessage.desktopDeviceIdHint": "The LobeHub Desktop device that runs the local BlueBubbles bridge. Find it in Desktop Gateway settings.",+ "channel.imessage.webhookSecret": "Webhook Secret",+ "channel.imessage.webhookSecretHint": "A shared secret used between LobeHub Desktop and the cloud webhook. Use the same value in the Desktop bridge config.","channel.importConfig": "Import Configuration","channel.importFailed": "Failed to import configuration","channel.importInvalidFormat": "Invalid configuration file format",@@ -176,6 +205,7 @@"channel.userIdHint": "Lets AI tools reach you proactively (e.g. reminders); auto-trusted by the global allowlist","channel.userIdHint.discord": "Enable Developer Mode (Settings → Advanced), then right-click your avatar → Copy User ID.","channel.userIdHint.feishu": "Open your app on the Feishu / Lark Open Platform → Permissions, then look up your Open ID.",+ "channel.userIdHint.imessage": "Use your iMessage handle as seen in BlueBubbles, usually an email address or E.164 phone number.","channel.userIdHint.line": "Open the LINE Developers Console → your channel → Basic settings tab, and copy \"Your user ID\" (starts with U, 33 chars).","channel.userIdHint.qq": "Your QQ number, shown on your QQ profile page.","channel.userIdHint.slack": "Open your Slack profile → ⋮ More → Copy member ID (starts with U).",diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.jsonindex 0d185a0fe2e..044e730e639 100644--- a/locales/zh-CN/agent.json+++ b/locales/zh-CN/agent.json@@ -100,6 +100,35 @@"channel.groupPolicyOpenHint": "在所有群组、频道、子话题中响应","channel.historyLimit": "历史消息条数","channel.historyLimitHint": "读取频道历史消息时默认获取的消息数量",+ "channel.imessage.applicationIdHint": "云端渠道和桌面端桥接共同使用的稳定标识。",+ "channel.imessage.applicationIdPlaceholder": "例如 home-mac-mini",+ "channel.imessage.blueBubblesPassword": "BlueBubbles 密码",+ "channel.imessage.blueBubblesPasswordHint": "仅保存在 LobeHub Desktop 本地,用于访问本机 BlueBubbles Server。",+ "channel.imessage.blueBubblesServerUrl": "BlueBubbles Server URL",+ "channel.imessage.blueBubblesServerUrlHint": "当前桌面端可以访问到的本机 BlueBubbles Server 地址。",+ "channel.imessage.bridgeEnabled": "启用桥接",+ "channel.imessage.bridgeEnabledHint": "启用后,LobeHub Desktop 会接收本机 BlueBubbles webhook 并转发给 LobeHub。",+ "channel.imessage.bridgeMissingApplicationId": "请先填写 Application ID。",+ "channel.imessage.bridgeMissingPassword": "请先填写 BlueBubbles 密码。",+ "channel.imessage.bridgeMissingServerUrl": "请先填写 BlueBubbles Server URL。",+ "channel.imessage.bridgeMissingWebhookSecret": "请先填写 Webhook Secret。",+ "channel.imessage.bridgePasswordSavedPlaceholder": "留空则沿用已保存的密码",+ "channel.imessage.bridgeRefresh": "刷新",+ "channel.imessage.bridgeRefreshFailed": "刷新 iMessage Desktop 桥接失败",+ "channel.imessage.bridgeRunning": "运行中",+ "channel.imessage.bridgeSave": "保存桥接",+ "channel.imessage.bridgeSaveFailed": "保存 iMessage Desktop 桥接失败",+ "channel.imessage.bridgeSaved": "iMessage Desktop 桥接已保存",+ "channel.imessage.bridgeStopped": "已停止",+ "channel.imessage.bridgeTest": "测试 BlueBubbles",+ "channel.imessage.bridgeTestFailed": "BlueBubbles 测试失败",+ "channel.imessage.bridgeTestSuccess": "BlueBubbles 连接测试通过",+ "channel.imessage.description": "通过 LobeHub Desktop 本地 BlueBubbles 桥接将助手连接到 iMessage。",+ "channel.imessage.desktopBridge": "桌面端桥接",+ "channel.imessage.desktopDeviceId": "桌面端设备 ID",+ "channel.imessage.desktopDeviceIdHint": "运行本地 BlueBubbles 桥接的 LobeHub Desktop 设备,可在桌面端 Gateway 设置中找到。",+ "channel.imessage.webhookSecret": "Webhook Secret",+ "channel.imessage.webhookSecretHint": "LobeHub Desktop 与云端 webhook 之间使用的共享密钥,需要和桌面端桥接配置保持一致。","channel.importConfig": "导入平台配置","channel.importFailed": "配置导入失败","channel.importInvalidFormat": "配置文件格式无效",@@ -176,6 +205,7 @@"channel.userIdHint": "供 AI 工具主动联系你(如提醒、通知),并自动加入全局白名单","channel.userIdHint.discord": "在 Discord 设置 → 高级中开启开发者模式,然后右键你的头像 → 复制用户 ID。","channel.userIdHint.feishu": "在飞书 / Lark 开放平台打开你的应用 → 权限管理,查看你的 Open ID。",+ "channel.userIdHint.imessage": "使用 BlueBubbles 中显示的 iMessage handle,通常是邮箱或 E.164 手机号。","channel.userIdHint.line": "打开 LINE Developers Console → 你的 channel → Basic settings 选项卡,复制 \"Your user ID\"(以 U 开头共 33 位)。","channel.userIdHint.qq": "你的 QQ 号,在 QQ 资料页可见。","channel.userIdHint.slack": "打开 Slack 个人资料 → ⋮ 更多 → 复制 Member ID(以 U 开头)。",diff --git a/src/routes/(main)/agent/channel/index.tsx b/src/routes/(main)/agent/channel/index.tsxindex fcdba5f2b6f..598da17b7f0 100644--- a/src/routes/(main)/agent/channel/index.tsx+++ b/src/routes/(main)/agent/channel/index.tsx@@ -48,10 +48,14 @@ const ChannelPage = memo(() => {const isLoading = platformsLoading || providersLoading;// Merge server-side platforms with frontend-only coming-soon entries.- const allPlatforms = useMemo<ChannelPlatformDefinition[]>(- () => [...(platforms ?? []), ...COMING_SOON_PLATFORMS],- [platforms],- );+ // Coming-soon wins over a server-registered platform with the same id: this+ // lets the server roll out a platform safely (registering it on the server+ // first) while the frontend keeps the placeholder until it's ready to ship —+ // dropping the entry from COMING_SOON_PLATFORMS reveals the real platform.+ const allPlatforms = useMemo<ChannelPlatformDefinition[]>(() => {+ const comingSoonIds = new Set(COMING_SOON_PLATFORMS.map((p) => p.id));+ return [...(platforms ?? []).filter((p) => !comingSoonIds.has(p.id)), ...COMING_SOON_PLATFORMS];+ }, [platforms]);// Default to first platform once loadedconst effectiveActiveId = activeProviderId || allPlatforms[0]?.id || '';diff --git a/src/server/services/bot/platforms/index.ts b/src/server/services/bot/platforms/index.tsindex 9ec9e580d58..9f1881e9933 100644--- a/src/server/services/bot/platforms/index.ts+++ b/src/server/services/bot/platforms/index.ts@@ -3,6 +3,7 @@import { discord } from './discord/definition';import { feishu } from './feishu/definitions/feishu';import { lark } from './feishu/definitions/lark';+import { imessage } from './imessage/definition';import { line } from './line/definition';import { qq } from './qq/definition';import { PlatformRegistry } from './registry';@@ -82,6 +83,7 @@ export {export { discord } from './discord/definition';export { feishu } from './feishu/definitions/feishu';export { lark } from './feishu/definitions/lark';+export { imessage } from './imessage/definition';export { line } from './line/definition';export { qq } from './qq/definition';export { slack } from './slack/definition';@@ -94,6 +96,7 @@ platformRegistry.register(discord);platformRegistry.register(telegram);platformRegistry.register(slack);platformRegistry.register(feishu);+platformRegistry.register(imessage);platformRegistry.register(lark);platformRegistry.register(qq);platformRegistry.register(wechat);