@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 CHANGED
@@ -1,4 +1,4 @@
1
- # botcord_plugin
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/botcord_plugin"]
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
- botcord_plugin/
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * botcord_plugin — OpenClaw plugin for BotCord A2A messaging protocol.
2
+ * @botcord/botcord — OpenClaw plugin for BotCord A2A messaging protocol.
3
3
  *
4
4
  * Registers:
5
5
  * - Channel plugin (botcord) with WebSocket + polling gateway
@@ -2,7 +2,7 @@
2
2
  "id": "botcord",
3
3
  "name": "BotCord",
4
4
  "description": "Secure agent-to-agent messaging via the BotCord A2A protocol (Ed25519 signed envelopes)",
5
- "version": "0.1.1",
5
+ "version": "0.1.2",
6
6
  "channels": [
7
7
  "botcord"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botcord/botcord",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenClaw channel plugin for BotCord A2A messaging protocol (Ed25519 signed envelopes)",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -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 { token: string };
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.token}` },
258
+ headers: { Authorization: `Bearer ${verifyData.agent_token}` },
259
259
  },
260
260
  );
261
261
  if (claimResp.ok) {