@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/index.js
CHANGED
|
@@ -66023,6 +66023,7 @@ ${messageText}`;
|
|
|
66023
66023
|
return new Date(a2.created_at).getTime() - new Date(b2.created_at).getTime();
|
|
66024
66024
|
});
|
|
66025
66025
|
const ackedIds = [];
|
|
66026
|
+
const nackedIds = [];
|
|
66026
66027
|
for (const msg of messages) {
|
|
66027
66028
|
try {
|
|
66028
66029
|
if (msg.sender_device_id === this._deviceId) {
|
|
@@ -66081,6 +66082,20 @@ ${messageText}`;
|
|
|
66081
66082
|
ackedIds.push(msg.queue_id);
|
|
66082
66083
|
} catch (err) {
|
|
66083
66084
|
console.warn(`[SecureChannel] Delivery ${msg.message_type} processing failed:`, err);
|
|
66085
|
+
nackedIds.push(msg.queue_id);
|
|
66086
|
+
}
|
|
66087
|
+
}
|
|
66088
|
+
if (nackedIds.length > 0) {
|
|
66089
|
+
try {
|
|
66090
|
+
await fetch(`${this.config.apiUrl}/api/v1/mls/delivery/nack`, {
|
|
66091
|
+
method: "POST",
|
|
66092
|
+
headers: {
|
|
66093
|
+
Authorization: `Bearer ${this._deviceJwt}`,
|
|
66094
|
+
"Content-Type": "application/json"
|
|
66095
|
+
},
|
|
66096
|
+
body: JSON.stringify({ queue_ids: nackedIds })
|
|
66097
|
+
});
|
|
66098
|
+
} catch {
|
|
66084
66099
|
}
|
|
66085
66100
|
}
|
|
66086
66101
|
if (ackedIds.length > 0) {
|