@agentvault/agentvault 0.20.14 → 0.20.15
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/dist/cli.js +36 -3
- package/dist/cli.js.map +2 -2
- package/dist/index.js +36 -3
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -67269,8 +67269,41 @@ ${messageText}`;
|
|
|
67269
67269
|
commit = result.commit;
|
|
67270
67270
|
welcome = result.welcome;
|
|
67271
67271
|
} catch (addErr) {
|
|
67272
|
-
|
|
67273
|
-
|
|
67272
|
+
const errMsg = addErr instanceof Error ? addErr.message : String(addErr);
|
|
67273
|
+
if (errMsg.includes("already in the group")) {
|
|
67274
|
+
console.log(`[SecureChannel] A2A member already in group \u2014 removing and re-adding ${req.requesting_device_id.slice(0, 8)}`);
|
|
67275
|
+
try {
|
|
67276
|
+
const identityBytes = new TextEncoder().encode(req.requesting_device_id);
|
|
67277
|
+
await mlsGroup.removeMember(identityBytes);
|
|
67278
|
+
const kpRes2 = await fetch(
|
|
67279
|
+
`${this.config.apiUrl}/api/v1/mls/key-packages/batch?device_ids=${req.requesting_device_id}`,
|
|
67280
|
+
{ headers: { Authorization: `Bearer ${this._deviceJwt}` } }
|
|
67281
|
+
);
|
|
67282
|
+
if (kpRes2.ok) {
|
|
67283
|
+
const kpData2 = await kpRes2.json();
|
|
67284
|
+
const kpHex2 = kpData2[req.requesting_device_id];
|
|
67285
|
+
if (kpHex2) {
|
|
67286
|
+
const kpBytes2 = new Uint8Array(Buffer.from(kpHex2, "hex"));
|
|
67287
|
+
const memberKp2 = MLSGroupManager.deserializeKeyPackage(kpBytes2);
|
|
67288
|
+
const result2 = await mlsGroup.addMembers([memberKp2]);
|
|
67289
|
+
commit = result2.commit;
|
|
67290
|
+
welcome = result2.welcome;
|
|
67291
|
+
} else {
|
|
67292
|
+
console.log(`[SecureChannel] A2A re-add: no fresh KeyPackage for ${req.requesting_device_id.slice(0, 8)}`);
|
|
67293
|
+
continue;
|
|
67294
|
+
}
|
|
67295
|
+
} else {
|
|
67296
|
+
console.log(`[SecureChannel] A2A re-add: KeyPackage fetch failed (${kpRes2.status})`);
|
|
67297
|
+
continue;
|
|
67298
|
+
}
|
|
67299
|
+
} catch (readdErr) {
|
|
67300
|
+
console.log(`[SecureChannel] A2A remove+re-add FAILED: ${readdErr instanceof Error ? readdErr.message : String(readdErr)}`);
|
|
67301
|
+
continue;
|
|
67302
|
+
}
|
|
67303
|
+
} else {
|
|
67304
|
+
console.log(`[SecureChannel] A2A addMembers FAILED: ${errMsg}`);
|
|
67305
|
+
continue;
|
|
67306
|
+
}
|
|
67274
67307
|
}
|
|
67275
67308
|
if (!welcome) {
|
|
67276
67309
|
console.warn(`[SecureChannel] A2A addMembers produced no Welcome for ${req.requesting_device_id.slice(0, 8)}`);
|
|
@@ -88684,7 +88717,7 @@ var init_index = __esm({
|
|
|
88684
88717
|
init_skill_invoker();
|
|
88685
88718
|
await init_skill_telemetry();
|
|
88686
88719
|
await init_policy_enforcer();
|
|
88687
|
-
VERSION = true ? "0.20.
|
|
88720
|
+
VERSION = true ? "0.20.15" : "0.0.0-dev";
|
|
88688
88721
|
}
|
|
88689
88722
|
});
|
|
88690
88723
|
|