MCPcopy Index your code
hub / github.com/codeaashu/claude-code / convertInitMessage

Function convertInitMessage

src/remote/sdkMessageAdapter.ts:74–83  ·  view source on GitHub ↗

* Convert an SDKSystemMessage (init) to a SystemMessage

(msg: SDKSystemMessage)

Source from the content-addressed store, hash-verified

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

Callers 1

convertSDKMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected