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

Function convertStatusMessage

src/remote/sdkMessageAdapter.ts:88–104  ·  view source on GitHub ↗

* Convert an SDKStatusMessage to a SystemMessage

(msg: SDKStatusMessage)

Source from the content-addressed store, hash-verified

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

Callers 1

convertSDKMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected