MCPcopy
hub / github.com/claude-code-best/claude-code / convertStreamEvent

Function convertStreamEvent

src/remote/sdkMessageAdapter.ts:46–51  ·  view source on GitHub ↗

* Convert an SDKPartialAssistantMessage (streaming) to a StreamEvent

(msg: SDKPartialAssistantMessage)

Source from the content-addressed store, hash-verified

44 * Convert an SDKPartialAssistantMessage (streaming) to a StreamEvent
45 */
46function convertStreamEvent(msg: SDKPartialAssistantMessage): StreamEvent {
47 return {
48 type: 'stream_event',
49 event: msg.event,
50 }
51}
52
53/**
54 * Convert an SDKResultMessage to a SystemMessage

Callers 1

convertSDKMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected