@agentvault/agentvault 0.19.51 → 0.19.52
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 +15 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +15 -0
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -65968,6 +65968,7 @@ ${messageText}`;
|
|
|
65968
65968
|
return new Date(a2.created_at).getTime() - new Date(b2.created_at).getTime();
|
|
65969
65969
|
});
|
|
65970
65970
|
const ackedIds = [];
|
|
65971
|
+
const nackedIds = [];
|
|
65971
65972
|
for (const msg of messages) {
|
|
65972
65973
|
try {
|
|
65973
65974
|
if (msg.sender_device_id === this._deviceId) {
|
|
@@ -66026,6 +66027,20 @@ ${messageText}`;
|
|
|
66026
66027
|
ackedIds.push(msg.queue_id);
|
|
66027
66028
|
} catch (err) {
|
|
66028
66029
|
console.warn(`[SecureChannel] Delivery ${msg.message_type} processing failed:`, err);
|
|
66030
|
+
nackedIds.push(msg.queue_id);
|
|
66031
|
+
}
|
|
66032
|
+
}
|
|
66033
|
+
if (nackedIds.length > 0) {
|
|
66034
|
+
try {
|
|
66035
|
+
await fetch(`${this.config.apiUrl}/api/v1/mls/delivery/nack`, {
|
|
66036
|
+
method: "POST",
|
|
66037
|
+
headers: {
|
|
66038
|
+
Authorization: `Bearer ${this._deviceJwt}`,
|
|
66039
|
+
"Content-Type": "application/json"
|
|
66040
|
+
},
|
|
66041
|
+
body: JSON.stringify({ queue_ids: nackedIds })
|
|
66042
|
+
});
|
|
66043
|
+
} catch {
|
|
66029
66044
|
}
|
|
66030
66045
|
}
|
|
66031
66046
|
if (ackedIds.length > 0) {
|