a2acalling 0.1.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a2acalling",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Agent-to-agent calling for OpenClaw - federated agent communication",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -32,13 +32,8 @@
32
32
  "engines": {
33
33
  "node": ">=18.0.0"
34
34
  },
35
- "peerDependencies": {
36
- "express": "^4.18.0"
37
- },
38
- "optionalDependencies": {
39
- "better-sqlite3": "^11.10.0"
40
- },
41
- "devDependencies": {
42
- "express": "^5.2.1"
35
+ "dependencies": {
36
+ "better-sqlite3": "^11.10.0",
37
+ "express": "^4.21.0"
43
38
  }
44
39
  }
package/src/lib/tokens.js CHANGED
@@ -257,9 +257,9 @@ class TokenStore {
257
257
  options = { name: options };
258
258
  }
259
259
 
260
- const match = inviteUrl.match(/^oclaw:\/\/([^/]+)\/(.+)$/);
260
+ const match = inviteUrl.match(/^(?:a2a|oclaw):\/\/([^/]+)\/(.+)$/);
261
261
  if (!match) {
262
- throw new Error(`Invalid invite URL: ${inviteUrl}`);
262
+ throw new Error(`Invalid invite URL: ${inviteUrl}. Expected format: a2a://host/token`);
263
263
  }
264
264
 
265
265
  const [, host, token] = match;