MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / buildDisplayText

Function buildDisplayText

source code/commands/compact/compact.ts:232–250  ·  view source on GitHub ↗
(
  context: ToolUseContext,
  userDisplayMessage?: string,
)

Source from the content-addressed store, hash-verified

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

Callers 2

callFunction · 0.85
compactViaReactiveFunction · 0.85

Calls 2

getUpgradeMessageFunction · 0.85
getShortcutDisplayFunction · 0.85

Tested by

no test coverage detected