MCPcopy Create free account
hub / github.com/WJX20/claude-code / convertCompactBoundaryMessage

Function convertCompactBoundaryMessage

src/remote/sdkMessageAdapter.ts:129–141  ·  view source on GitHub ↗

* Convert an SDKCompactBoundaryMessage to a SystemMessage

(
  msg: SDKCompactBoundaryMessage,
)

Source from the content-addressed store, hash-verified

127 * Convert an SDKCompactBoundaryMessage to a SystemMessage
128 */
129function convertCompactBoundaryMessage(
130 msg: SDKCompactBoundaryMessage,
131): SystemMessage {
132 return {
133 type: 'system',
134 subtype: 'compact_boundary',
135 content: 'Conversation compacted',
136 level: 'info',
137 uuid: msg.uuid,
138 timestamp: new Date().toISOString(),
139 compactMetadata: fromSDKCompactMetadata(msg.compact_metadata),
140 }
141}
142
143/**
144 * Result of converting an SDKMessage

Callers 1

convertSDKMessageFunction · 0.85

Calls 1

fromSDKCompactMetadataFunction · 0.85

Tested by

no test coverage detected