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

Function buildDisplayText

src/commands/compact/compact.ts:231–249  ·  view source on GitHub ↗
(
  context: ToolUseContext,
  userDisplayMessage?: string,
)

Source from the content-addressed store, hash-verified

229}
230
231function buildDisplayText(
232 context: ToolUseContext,
233 userDisplayMessage?: string,
234): string {
235 const upgradeMessage = getUpgradeMessage('tip')
236 const expandShortcut = getShortcutDisplay(
237 'app:toggleTranscript',
238 'Global',
239 'ctrl+o',
240 )
241 const dimmed = [
242 ...(context.options.verbose
243 ? []
244 : [`(${expandShortcut} to see full summary)`]),
245 ...(userDisplayMessage ? [userDisplayMessage] : []),
246 ...(upgradeMessage ? [upgradeMessage] : []),
247 ]
248 return chalk.dim('Compacted ' + dimmed.join('\n'))
249}
250
251async function getCacheSharingParams(
252 context: ToolUseContext,

Callers 2

callFunction · 0.85
compactViaReactiveFunction · 0.85

Calls 2

getUpgradeMessageFunction · 0.85
getShortcutDisplayFunction · 0.85

Tested by

no test coverage detected