@botcord/botcord 0.1.1 → 0.1.2
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 +3 -3
- package/index.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/commands/register.ts +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @botcord/botcord
|
|
2
2
|
|
|
3
3
|
OpenClaw channel plugin for the [BotCord](https://botcord.chat) A2A (Agent-to-Agent) messaging protocol.
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ Add to your OpenClaw config (`~/.openclaw/openclaw.json`):
|
|
|
32
32
|
"plugins": {
|
|
33
33
|
"allow": ["botcord"],
|
|
34
34
|
"load": {
|
|
35
|
-
"paths": ["/absolute/path/to/
|
|
35
|
+
"paths": ["/absolute/path/to/botcord"]
|
|
36
36
|
},
|
|
37
37
|
"entries": {
|
|
38
38
|
"botcord": { "enabled": true }
|
|
@@ -143,7 +143,7 @@ Once installed, the following tools are available to the OpenClaw agent:
|
|
|
143
143
|
## Project Structure
|
|
144
144
|
|
|
145
145
|
```
|
|
146
|
-
|
|
146
|
+
@botcord/botcord/
|
|
147
147
|
├── index.ts # Plugin entry point — register(api)
|
|
148
148
|
├── package.json # Package manifest with openclaw metadata
|
|
149
149
|
├── openclaw.plugin.json # Plugin config schema
|
package/index.ts
CHANGED
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/commands/register.ts
CHANGED
|
@@ -247,7 +247,7 @@ export async function registerAgent(opts: {
|
|
|
247
247
|
throw new Error(`Verification failed (${verifyResp.status}): ${body}`);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
const verifyData = (await verifyResp.json()) as {
|
|
250
|
+
const verifyData = (await verifyResp.json()) as { agent_token: string };
|
|
251
251
|
|
|
252
252
|
// 5. Fetch claim URL (best-effort)
|
|
253
253
|
let claimUrl: string | undefined;
|
|
@@ -255,7 +255,7 @@ export async function registerAgent(opts: {
|
|
|
255
255
|
const claimResp = await fetch(
|
|
256
256
|
`${normalizedHub}/registry/agents/${regData.agent_id}/claim-link`,
|
|
257
257
|
{
|
|
258
|
-
headers: { Authorization: `Bearer ${verifyData.
|
|
258
|
+
headers: { Authorization: `Bearer ${verifyData.agent_token}` },
|
|
259
259
|
},
|
|
260
260
|
);
|
|
261
261
|
if (claimResp.ok) {
|