@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/index.js
CHANGED
|
@@ -67268,8 +67268,41 @@ ${messageText}`;
|
|
|
67268
67268
|
commit = result.commit;
|
|
67269
67269
|
welcome = result.welcome;
|
|
67270
67270
|
} catch (addErr) {
|
|
67271
|
-
|
|
67272
|
-
|
|
67271
|
+
const errMsg = addErr instanceof Error ? addErr.message : String(addErr);
|
|
67272
|
+
if (errMsg.includes("already in the group")) {
|
|
67273
|
+
console.log(`[SecureChannel] A2A member already in group \u2014 removing and re-adding ${req.requesting_device_id.slice(0, 8)}`);
|
|
67274
|
+
try {
|
|
67275
|
+
const identityBytes = new TextEncoder().encode(req.requesting_device_id);
|
|
67276
|
+
await mlsGroup.removeMember(identityBytes);
|
|
67277
|
+
const kpRes2 = await fetch(
|
|
67278
|
+
`${this.config.apiUrl}/api/v1/mls/key-packages/batch?device_ids=${req.requesting_device_id}`,
|
|
67279
|
+
{ headers: { Authorization: `Bearer ${this._deviceJwt}` } }
|
|
67280
|
+
);
|
|
67281
|
+
if (kpRes2.ok) {
|
|
67282
|
+
const kpData2 = await kpRes2.json();
|
|
67283
|
+
const kpHex2 = kpData2[req.requesting_device_id];
|
|
67284
|
+
if (kpHex2) {
|
|
67285
|
+
const kpBytes2 = new Uint8Array(Buffer.from(kpHex2, "hex"));
|
|
67286
|
+
const memberKp2 = MLSGroupManager.deserializeKeyPackage(kpBytes2);
|
|
67287
|
+
const result2 = await mlsGroup.addMembers([memberKp2]);
|
|
67288
|
+
commit = result2.commit;
|
|
67289
|
+
welcome = result2.welcome;
|
|
67290
|
+
} else {
|
|
67291
|
+
console.log(`[SecureChannel] A2A re-add: no fresh KeyPackage for ${req.requesting_device_id.slice(0, 8)}`);
|
|
67292
|
+
continue;
|
|
67293
|
+
}
|
|
67294
|
+
} else {
|
|
67295
|
+
console.log(`[SecureChannel] A2A re-add: KeyPackage fetch failed (${kpRes2.status})`);
|
|
67296
|
+
continue;
|
|
67297
|
+
}
|
|
67298
|
+
} catch (readdErr) {
|
|
67299
|
+
console.log(`[SecureChannel] A2A remove+re-add FAILED: ${readdErr instanceof Error ? readdErr.message : String(readdErr)}`);
|
|
67300
|
+
continue;
|
|
67301
|
+
}
|
|
67302
|
+
} else {
|
|
67303
|
+
console.log(`[SecureChannel] A2A addMembers FAILED: ${errMsg}`);
|
|
67304
|
+
continue;
|
|
67305
|
+
}
|
|
67273
67306
|
}
|
|
67274
67307
|
if (!welcome) {
|
|
67275
67308
|
console.warn(`[SecureChannel] A2A addMembers produced no Welcome for ${req.requesting_device_id.slice(0, 8)}`);
|
|
@@ -94576,7 +94609,7 @@ var init_index = __esm({
|
|
|
94576
94609
|
init_skill_invoker();
|
|
94577
94610
|
await init_skill_telemetry();
|
|
94578
94611
|
await init_policy_enforcer();
|
|
94579
|
-
VERSION = true ? "0.20.
|
|
94612
|
+
VERSION = true ? "0.20.15" : "0.0.0-dev";
|
|
94580
94613
|
}
|
|
94581
94614
|
});
|
|
94582
94615
|
await init_index();
|