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

Function buildDisplayText

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

Source from the content-addressed store, hash-verified

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

Callers 2

callFunction · 0.85
compactViaReactiveFunction · 0.85

Calls 2

getUpgradeMessageFunction · 0.85
getShortcutDisplayFunction · 0.85

Tested by

no test coverage detected