MCPcopy Create free account
hub / github.com/Noumena-Network/code / writeSdkMessages

Function writeSdkMessages

src/bridge/remoteBridgeCore.ts:799–809  ·  view source on GitHub ↗
(messages: SDKMessage[])

Source from the content-addressed store, hash-verified

797 void transport.writeBatch(events)
798 },
799 writeSdkMessages(messages: SDKMessage[]) {
800 const filtered = messages.filter(
801 m => !m.uuid || !recentPostedUUIDs.has(m.uuid),
802 )
803 if (filtered.length === 0) return
804 for (const msg of filtered) {
805 if (msg.uuid) recentPostedUUIDs.add(msg.uuid)
806 }
807 const events = filtered.map(m => ({ ...m, session_id: sessionId }))
808 void transport.writeBatch(events)
809 },
810 sendControlRequest(request: SDKControlRequest) {
811 if (authRecoveryInFlight) {
812 logForDebugging(

Callers

nothing calls this directly

Calls 3

writeBatchMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected