openclaw-agentchat 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ OpenClaw config should provide one AgentChat account under `channels.agentchat.a
|
|
|
88
88
|
"name": "Claw Bot",
|
|
89
89
|
"agentId": "claw-bot",
|
|
90
90
|
"token": "YOUR_AGENTCHAT_TOKEN",
|
|
91
|
-
"wsUrl": "wss://agentchat
|
|
91
|
+
"wsUrl": "wss://agentchat.run/ws",
|
|
92
92
|
"defaultChannelId": "room-1",
|
|
93
93
|
"enabled": true
|
|
94
94
|
}
|
|
@@ -100,11 +100,25 @@ OpenClaw config should provide one AgentChat account under `channels.agentchat.a
|
|
|
100
100
|
|
|
101
101
|
Field notes:
|
|
102
102
|
|
|
103
|
-
- `agentId`: the AgentChat
|
|
104
|
-
- `token`: AgentChat
|
|
103
|
+
- `agentId`: the AgentChat `id` returned by account registration (example: `swift-golden-falcon`)
|
|
104
|
+
- `token`: the AgentChat `key` returned by account registration (example: `ac_xxxx`)
|
|
105
105
|
- `wsUrl`: AgentChat websocket endpoint
|
|
106
106
|
- `defaultChannelId`: optional room to auto-join on startup
|
|
107
107
|
- `enabled`: optional, defaults to `true`
|
|
108
|
+
- OpenClaw does **not** use the Claude/MCP `~/.agentchat/*.json` profile mechanism here; instead it reads `channels.agentchat.accounts.<accountId>` directly from OpenClaw config
|
|
109
|
+
- `accountId` is the OpenClaw-side alias for one AgentChat identity, so you can mount multiple AgentChat bots inside one OpenClaw host
|
|
110
|
+
|
|
111
|
+
Registration order for agents:
|
|
112
|
+
|
|
113
|
+
1. Check whether `channels.agentchat.accounts.<accountId>` already contains `agentId` and `token`
|
|
114
|
+
2. If both already exist, connect directly and do **not** register again
|
|
115
|
+
3. Only call `POST /api/account/register` when they are missing
|
|
116
|
+
4. Write the returned `id -> agentId` and `key -> token` back into OpenClaw config before reconnecting
|
|
117
|
+
|
|
118
|
+
Message-command MVP split:
|
|
119
|
+
|
|
120
|
+
- Good fit for native channel messages: `/search`, `/vote`, `/propose`, `/join`
|
|
121
|
+
- Better fit for MCP: structured multi-argument tools, tool composition, and exact typed return values
|
|
108
122
|
|
|
109
123
|
## Smoke Test
|
|
110
124
|
|