mirror of
https://github.com/dtzp555-max/ocm.git
synced 2026-07-21 21:15:08 +00:00
v0.9.0: Discord support in Agents wizard + UI/guide updates (#3)
* feat: Agents wizard for Telegram/Discord + OCM header version * fix: main-html-script syntax (tree toggle) * ui: centered version badge + update Telegram/Discord setup guides * ui: center prominent version badge + update Telegram/Discord setup guides * fix: center OCM-only version badge + include ocmVersion in status + discord guide i18n * fix: escape discord guide apostrophe in MAIN_HTML_SCRIPT * release: v0.9.0 * fix: include ocmVersion in /api/status * fix: add missing wiz.* i18n keys for Agents wizard * fix: add wiz.* i18n keys to MAIN_HTML_SCRIPT * docs: add Discord workflow section + new redacted screenshots (draft) * docs: replace discord screenshots with English/redacted versions * docs: replace discord add-subagent screenshot (English + redacted) --------- Co-authored-by: Tao <dtzp555@gmail.com>
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
This is a user-facing summary derived from `DEVLOG.md`.
|
||||
|
||||
## v0.9.0
|
||||
- Agents: Telegram + Discord support in Add Agent / Add Sub-Agent wizard (main agent binds channel; sub-agent binds thread).
|
||||
- UI: top-center OCM version badge; improved Telegram/Discord setup guides.
|
||||
|
||||
## v0.8.2
|
||||
- Docs: reorganize README screenshots into a collapsible gallery to reduce scroll.
|
||||
- Docs: add Backups / Rollback screenshot and README feature blurb.
|
||||
|
||||
@@ -172,6 +172,36 @@ If you use `channels.telegram.allowFrom`, OCM can take “Your Telegram User ID
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 5) Discord workflow (main agent + sub-agent)
|
||||
|
||||
OCM also supports Discord:
|
||||
|
||||
- **Main agent**: bind to a dedicated **Channel** (channelId)
|
||||
- **Sub-agent**: bind to a dedicated **Thread** under that channel (threadId)
|
||||
|
||||
### 5.1 Add a Discord main agent
|
||||
|
||||
Go to **Agents** → `+ Add Agent` → set **Channel = Discord**:
|
||||
|
||||

|
||||
|
||||
Steps:
|
||||
1) Create/select a dedicated Discord **channel** (private recommended)
|
||||
2) Right-click channel → **Copy Link** → paste into the form (auto-parses channelId)
|
||||
|
||||
### 5.2 Add a Discord sub-agent (thread-first)
|
||||
|
||||
Go to **Agents** → `+ Add Sub-Agent` → set **Channel = Discord (thread only)**:
|
||||
|
||||

|
||||
|
||||
Steps:
|
||||
1) Create a **thread** under the main channel (one thread per task)
|
||||
2) If it is a private thread, add the bot to the thread
|
||||
3) Right-click thread → **Copy Link** → paste into the form (auto-parses threadId)
|
||||
|
||||
## 6) Verify bindings (Channels)
|
||||
|
||||
Go to **Channels**:
|
||||
|
||||
@@ -155,6 +155,36 @@ OCM 的表单里可以填 “Your Telegram User ID”,让它自动把你的 us
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 5) Discord 工作流(主 Agent + Sub-Agent)
|
||||
|
||||
OCM 也支持 Discord:
|
||||
|
||||
- **主 Agent**:绑定到一个专用 **Channel**(channelId)
|
||||
- **Sub-Agent**:绑定到该 Channel 下的专用 **Thread**(threadId,thread-first)
|
||||
|
||||
### 5.1 添加 Discord 主 Agent
|
||||
|
||||
进入 **Agents** → `+ Add Agent` → 选择 **渠道 = Discord**:
|
||||
|
||||

|
||||
|
||||
步骤:
|
||||
1) 创建/选择一个专用 Discord Channel(建议私密)
|
||||
2) 右键 Channel → **Copy Link** → 粘贴到表单(自动解析 channelId)
|
||||
|
||||
### 5.2 添加 Discord Sub-Agent(Thread 优先)
|
||||
|
||||
进入 **Agents** → `+ Add Sub-Agent` → 选择 **渠道 = Discord (thread only)**:
|
||||
|
||||

|
||||
|
||||
步骤:
|
||||
1) 在主 Channel 下新建 Thread(建议“一个任务一个 thread”)
|
||||
2) 如果是 private thread,需要把 bot 拉进 thread
|
||||
3) 右键 Thread → **Copy Link** → 粘贴到表单(自动解析 threadId)
|
||||
|
||||
## 5) 绑定检查(Channels 页)
|
||||
|
||||
进入 **Channels**:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
Reference in New Issue
Block a user