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

Function convertInitMessage

src/remote/sdkMessageAdapter.ts:75–84  ·  view source on GitHub ↗

* Convert an SDKSystemMessage (init) to a SystemMessage

(msg: SDKSystemMessage)

Source from the content-addressed store, hash-verified

73 * Convert an SDKSystemMessage (init) to a SystemMessage
74 */
75function convertInitMessage(msg: SDKSystemMessage): SystemMessage {
76 return {
77 type: 'system',
78 subtype: 'informational',
79 content: `Remote session initialized (model: ${msg.model})`,
80 level: 'info',
81 uuid: msg.uuid!,
82 timestamp: new Date().toISOString(),
83 }
84}
85
86/**
87 * Convert an SDKStatusMessage to a SystemMessage

Callers 1

convertSDKMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected