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

Function convertStatusMessage

src/remote/sdkMessageAdapter.ts:89–105  ·  view source on GitHub ↗

* Convert an SDKStatusMessage to a SystemMessage

(msg: SDKStatusMessage)

Source from the content-addressed store, hash-verified

87 * Convert an SDKStatusMessage to a SystemMessage
88 */
89function convertStatusMessage(msg: SDKStatusMessage): SystemMessage | null {
90 if (!msg.status) {
91 return null
92 }
93
94 return {
95 type: 'system',
96 subtype: 'informational',
97 content:
98 msg.status === 'compacting'
99 ? 'Compacting conversation…'
100 : `Status: ${msg.status}`,
101 level: 'info',
102 uuid: msg.uuid!,
103 timestamp: new Date().toISOString(),
104 }
105}
106
107/**
108 * Convert an SDKToolProgressMessage to a SystemMessage.

Callers 1

convertSDKMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected