MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / writeSdkMessages

Function writeSdkMessages

source code/bridge/remoteBridgeCore.ts:815–825  ·  view source on GitHub ↗
(messages: SDKMessage[])

Source from the content-addressed store, hash-verified

813 void transport.writeBatch(events)
814 },
815 writeSdkMessages(messages: SDKMessage[]) {
816 const filtered = messages.filter(
817 m => !m.uuid || !recentPostedUUIDs.has(m.uuid),
818 )
819 if (filtered.length === 0) return
820 for (const msg of filtered) {
821 if (msg.uuid) recentPostedUUIDs.add(msg.uuid)
822 }
823 const events = filtered.map(m => ({ ...m, session_id: sessionId }))
824 void transport.writeBatch(events)
825 },
826 sendControlRequest(request: SDKControlRequest) {
827 if (authRecoveryInFlight) {
828 logForDebugging(

Callers

nothing calls this directly

Calls 3

writeBatchMethod · 0.80
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected