From 61b73ad678e8939c1632f45d78aafd37968532a4 Mon Sep 17 00:00:00 2001 From: Tao Date: Sun, 1 Mar 2026 21:10:32 +1000 Subject: [PATCH] fix: center OCM-only version badge + include ocmVersion in status + discord guide i18n --- openclaw-manager.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/openclaw-manager.js b/openclaw-manager.js index 81a8c28..8e9c1c4 100644 --- a/openclaw-manager.js +++ b/openclaw-manager.js @@ -1968,7 +1968,7 @@ const MAIN_HTML_BODY = String.raw`
v--
- v-- + v-- ocm v--
@@ -2488,6 +2488,13 @@ const I18N = { 'guide.sub.s4':'在群内发一条消息,从 gateway 日志中找到 peer.id(负数)', 'guide.sub.s5':'填写下方表单创建 Sub-Agent', 'guide.sub.warn':'⚠️ 安全提示:请勿将其他人加入此群组,只有你和 Bot 应在群内。否则其他人也能与 Bot 对话并产生 API 费用。', + 'guide.agent.discord.s1':'Discord 主 Agent:创建/选择一个专用 Channel(建议私密频道)。', + 'guide.agent.discord.s2':'右键该 Channel → Copy Link,粘贴到表单里(OCM 自动解析 channelId,可选 guildId)。', + 'guide.agent.discord.s3':'建议:一个 Channel 只绑定一个主 Agent,避免上下文串台。', + 'guide.sub.discord.s1':'Discord Sub-Agent:在对应主 Channel 下新建一个 Thread(强烈推荐每个任务一个 thread)。', + 'guide.sub.discord.s2':'如果是 Private Thread:需要把 Bot/Agent 拉进该 thread(否则读不到消息)。', + 'guide.sub.discord.s3':'右键该 Thread → Copy Link,粘贴到表单里(OCM 自动解析 threadId)。', + 'guide.sub.discord.warn':'⚠️ 约定:主 Agent 绑定 Channel;Sub-Agent 绑定 Thread。不要把 Sub-Agent 绑到普通 Channel。', 'wiz.telegramId':'你的 Telegram User ID','wiz.telegramIdHint':'💡 可通过 @userinfobot 获取,填写后自动配置 allowFrom 白名单','wiz.telegramIdPh':'例如: 123456789', 'agents.empty':'暂无 Agent','agents.main':'主 Agent','agents.bound':'已绑群', 'agents.saveModel':'保存模型','agents.viewFiles':'查看文件', @@ -2610,6 +2617,13 @@ const I18N = { 'guide.sub.s4':'Send a message in the group, find peer.id (negative number) in gateway logs', 'guide.sub.s5':'Fill in the form below to create the Sub-Agent', 'guide.sub.warn':'⚠️ Security: Do NOT add other people to this group. Only you and the Bot should be in the group. Otherwise others can chat with the Bot and incur API costs.', + 'guide.agent.discord.s1':'Discord main agent: create/select a dedicated channel (private recommended).', + 'guide.agent.discord.s2':'Right-click the channel → Copy Link, paste it into the form (OCM auto-parses channelId; optional guildId).', + 'guide.agent.discord.s3':'Recommended: bind one main agent per channel to avoid context bleed.', + 'guide.sub.discord.s1':'Discord sub-agent: create a thread under the main channel (one thread per task recommended).', + 'guide.sub.discord.s2':'If it\'s a private thread, add the bot/agent to the thread (otherwise it cannot read messages).', + 'guide.sub.discord.s3':'Right-click the thread → Copy Link, paste into the form (OCM auto-parses the threadId).', + 'guide.sub.discord.warn':'Important: main agents bind to channels; sub-agents bind to threads. Do not bind sub-agents to normal channels.', 'wiz.telegramId':'Your Telegram User ID','wiz.telegramIdHint':'💡 Get it from @userinfobot — auto-configures allowFrom whitelist','wiz.telegramIdPh':'e.g. 123456789', 'agents.empty':'No Agents','agents.main':'Main Agent','agents.bound':'Bound', 'agents.saveModel':'Save Model','agents.viewFiles':'View Files', @@ -2746,7 +2760,7 @@ async function checkStatus(){ setDot('ok'); document.getElementById('statusTxt').textContent = r.dir.replace(/.*[/\\\\]/,'.../')+' · v'+r.version; const tv=document.getElementById('topVersion'); - if(tv) tv.textContent = 'OCM v'+(r.ocmVersion||'--')+' · OpenClaw v'+r.version; + if(tv) tv.textContent = 'OCM v'+(r.ocmVersion||'--'); const vb=document.getElementById('versionBadge'); if(vb) vb.textContent = 'v'+r.version; const ov=document.getElementById('ocmVersionBadge'); if(ov) ov.textContent='ocm v'+(r.ocmVersion||'--'); }catch{ setDot('err'); document.getElementById('statusTxt').textContent='无法读取配置'; }