MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / buildMinimalMessage

Function buildMinimalMessage

lib/ui/notification.ts:27–33  ·  view source on GitHub ↗
(state: SessionState, reason: PruneReason | undefined)

Source from the content-addressed store, hash-verified

25}
26
27function buildMinimalMessage(state: SessionState, reason: PruneReason | undefined): string {
28 const reasonSuffix = reason ? ` — ${PRUNE_REASON_LABELS[reason]}` : ""
29 return (
30 formatStatsHeader(state.stats.totalPruneTokens, state.stats.pruneTokenCounter) +
31 reasonSuffix
32 )
33}
34
35function buildDetailedMessage(
36 state: SessionState,

Callers 1

sendUnifiedNotificationFunction · 0.85

Calls 1

formatStatsHeaderFunction · 0.90

Tested by

no test coverage detected