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

Method send

src/proxy/mailbox/store.js:332–353  ·  view source on GitHub ↗
({ type, payload, channel, priority, refId, expiresAt })

Source from the content-addressed store, hash-verified

330 // --- Public API: send / writeInbound ---
331
332 send({ type, payload, channel, priority, refId, expiresAt }) {
333 const id = generateUUIDv7();
334 const now = Date.now();
335 const msg = {
336 id,
337 channel: channel || DEFAULT_CHANNEL,
338 direction: 'outbound',
339 type,
340 status: 'pending',
341 payload: safeParse(payload),
342 priority: priority || 'normal',
343 ref_id: refId || null,
344 created_at: now,
345 synced_at: null,
346 expires_at: expiresAt || null,
347 retry_count: 0,
348 next_retry_at: null,
349 error: null,
350 };
351 this._appendMessage(msg);
352 return { message_id: id, status: 'pending' };
353 }
354
355 writeInbound({ id, type, payload, channel, priority, refId, expiresAt }) {
356 const msgId = id || generateUUIDv7();

Callers 7

_proxyBedrockMethod · 0.45
subscribeMethod · 0.45
unsubscribeMethod · 0.45
buildRoutesFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

_appendMessageMethod · 0.95
generateUUIDv7Function · 0.85
safeParseFunction · 0.85

Tested by

no test coverage detected