@agentvault/agentvault 0.20.17 → 0.20.18
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/channel.d.ts.map +1 -1
- package/dist/cli.js +20 -2
- package/dist/cli.js.map +2 -2
- package/dist/index.js +20 -2
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67422,6 +67422,7 @@ ${messageText}`;
|
|
|
67422
67422
|
const commitHex = Buffer.from(commit).toString("hex");
|
|
67423
67423
|
const welcomeHex = Buffer.from(welcome).toString("hex");
|
|
67424
67424
|
let distributed = false;
|
|
67425
|
+
const updatedMembers = [this._deviceId, req.requesting_device_id];
|
|
67425
67426
|
try {
|
|
67426
67427
|
const distResp = await fetch(
|
|
67427
67428
|
`${this.config.apiUrl}/api/v1/mls/groups/${chState.mlsGroupId}/distribute`,
|
|
@@ -67429,11 +67430,12 @@ ${messageText}`;
|
|
|
67429
67430
|
method: "POST",
|
|
67430
67431
|
headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
|
|
67431
67432
|
body: JSON.stringify({
|
|
67433
|
+
group_id: chState.mlsGroupId,
|
|
67432
67434
|
device_id: this._deviceId,
|
|
67433
67435
|
commit: commitHex,
|
|
67434
67436
|
commit_epoch: Number(mlsGroup.epoch),
|
|
67435
67437
|
welcomes: [{ target_device_id: req.requesting_device_id, payload: welcomeHex }],
|
|
67436
|
-
member_device_ids:
|
|
67438
|
+
member_device_ids: updatedMembers
|
|
67437
67439
|
})
|
|
67438
67440
|
}
|
|
67439
67441
|
);
|
|
@@ -67460,6 +67462,22 @@ ${messageText}`;
|
|
|
67460
67462
|
payload: welcomeHex
|
|
67461
67463
|
}
|
|
67462
67464
|
}));
|
|
67465
|
+
try {
|
|
67466
|
+
await fetch(
|
|
67467
|
+
`${this.config.apiUrl}/api/v1/mls/groups/${chState.mlsGroupId}/distribute`,
|
|
67468
|
+
{
|
|
67469
|
+
method: "POST",
|
|
67470
|
+
headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
|
|
67471
|
+
body: JSON.stringify({
|
|
67472
|
+
group_id: chState.mlsGroupId,
|
|
67473
|
+
device_id: this._deviceId,
|
|
67474
|
+
commit_epoch: Number(mlsGroup.epoch),
|
|
67475
|
+
member_device_ids: updatedMembers
|
|
67476
|
+
})
|
|
67477
|
+
}
|
|
67478
|
+
);
|
|
67479
|
+
} catch {
|
|
67480
|
+
}
|
|
67463
67481
|
distributed = true;
|
|
67464
67482
|
}
|
|
67465
67483
|
if (!distributed) {
|
|
@@ -94725,7 +94743,7 @@ var init_index = __esm({
|
|
|
94725
94743
|
init_skill_invoker();
|
|
94726
94744
|
await init_skill_telemetry();
|
|
94727
94745
|
await init_policy_enforcer();
|
|
94728
|
-
VERSION = true ? "0.20.
|
|
94746
|
+
VERSION = true ? "0.20.18" : "0.0.0-dev";
|
|
94729
94747
|
}
|
|
94730
94748
|
});
|
|
94731
94749
|
await init_index();
|