@clawcrony/claw-crony 1.2.2 → 1.2.4
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 +84 -82
- package/dist/index.js +202 -49
- package/dist/src/ephemeral-token.d.ts +5 -0
- package/dist/src/ephemeral-token.js +12 -0
- package/dist/src/handshake-crypto.d.ts +3 -0
- package/dist/src/handshake-crypto.js +58 -0
- package/dist/src/hub-match.d.ts +35 -46
- package/dist/src/hub-match.js +38 -53
- package/dist/src/hub-registration.d.ts +3 -10
- package/dist/src/hub-registration.js +33 -132
- package/dist/src/identity-store.d.ts +4 -0
- package/dist/src/identity-store.js +55 -0
- package/dist/src/types.d.ts +40 -2
- package/openclaw.plugin.json +7 -7
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -92,18 +92,56 @@ export interface RegistrationConfig {
|
|
|
92
92
|
email?: string;
|
|
93
93
|
password?: string;
|
|
94
94
|
skills?: string[];
|
|
95
|
+
clientId?: string;
|
|
95
96
|
}
|
|
96
97
|
export interface HubRegistrationData {
|
|
97
98
|
version: number;
|
|
98
99
|
hubUrl: string;
|
|
99
100
|
agentId: number;
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
clientId: string;
|
|
102
|
+
publicKey: string;
|
|
103
|
+
keyVersion: number;
|
|
102
104
|
registeredAt: string;
|
|
103
105
|
name: string;
|
|
104
106
|
description: string;
|
|
105
107
|
skills: string[];
|
|
106
108
|
}
|
|
109
|
+
export interface IdentityData {
|
|
110
|
+
version: number;
|
|
111
|
+
clientId: string;
|
|
112
|
+
publicKey: string;
|
|
113
|
+
privateKey: string;
|
|
114
|
+
keyVersion: number;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
}
|
|
117
|
+
export interface EphemeralTokenRecord {
|
|
118
|
+
token: string;
|
|
119
|
+
matchId: number;
|
|
120
|
+
peerAgentId: number;
|
|
121
|
+
expiresAt: number;
|
|
122
|
+
}
|
|
123
|
+
export interface HandshakePayload {
|
|
124
|
+
version: number;
|
|
125
|
+
matchId: number;
|
|
126
|
+
sessionId: string;
|
|
127
|
+
fromAgentId: number;
|
|
128
|
+
toAgentId: number;
|
|
129
|
+
address: string;
|
|
130
|
+
agentCardPath: string;
|
|
131
|
+
token: string;
|
|
132
|
+
tokenExpiresAt: string;
|
|
133
|
+
protocols: string[];
|
|
134
|
+
createdAt: string;
|
|
135
|
+
nonce: string;
|
|
136
|
+
}
|
|
137
|
+
export interface EncryptedHandshakeMessage {
|
|
138
|
+
version: number;
|
|
139
|
+
algorithm: "x25519-aes-256-gcm";
|
|
140
|
+
senderPublicKey: string;
|
|
141
|
+
iv: string;
|
|
142
|
+
ciphertext: string;
|
|
143
|
+
authTag: string;
|
|
144
|
+
}
|
|
107
145
|
export interface HealthCheckConfig {
|
|
108
146
|
enabled: boolean;
|
|
109
147
|
intervalMs: number;
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"id": "claw-crony",
|
|
3
3
|
"name": "Claw Crony",
|
|
4
4
|
"description": "OpenClaw A2A v0.3.0 gateway with Agent Card, JSON-RPC, REST, routing rules, transport fallback, and Hub matchmaking",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.2.3",
|
|
6
6
|
"defaultConfig": {
|
|
7
7
|
"agentCard": {
|
|
8
8
|
"name": "OpenClaw A2A Gateway",
|
|
9
9
|
"description": "A2A bridge for OpenClaw agents",
|
|
10
10
|
"skills": [{ "id": "chat", "name": "chat", "description": "Chat bridge" }]
|
|
11
|
-
},
|
|
12
|
-
"hub": {
|
|
13
|
-
"url": "https://www.
|
|
14
|
-
"enabled": true,
|
|
15
|
-
"registrationEnabled": true
|
|
16
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"hub": {
|
|
13
|
+
"url": "https://www.clawcrony.com",
|
|
14
|
+
"enabled": true,
|
|
15
|
+
"registrationEnabled": true
|
|
16
|
+
}
|
|
17
17
|
},
|
|
18
18
|
"configSchema": {
|
|
19
19
|
"type": "object",
|