MCPcopy Create free account
hub / github.com/EvoMap/evolver / ack

Method ack

src/proxy/mailbox/store.js:440–452  ·  view source on GitHub ↗
(messageIds)

Source from the content-addressed store, hash-verified

438 // --- Public API: status updates ---
439
440 ack(messageIds) {
441 const ids = Array.isArray(messageIds) ? messageIds : [messageIds];
442 let count = 0;
443 for (const id of ids) {
444 const msg = this._messages.get(id);
445 if (msg && msg.direction === 'inbound') {
446 this._appendUpdate(id, { status: 'delivered' });
447 this._evictFromIndex(id);
448 count++;
449 }
450 }
451 return count;
452 }
453
454 updateStatus(id, status, { error, syncedAt } = {}) {
455 const TERMINAL = new Set(['synced', 'delivered', 'failed', 'rejected']);

Callers 3

extensions.test.jsFile · 0.45
buildRoutesFunction · 0.45

Calls 2

_appendUpdateMethod · 0.95
_evictFromIndexMethod · 0.95

Tested by

no test coverage detected