MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getUpgradeMessage

Function getUpgradeMessage

src/utils/model/contextWindowUpgradeCheck.ts:35–47  ·  view source on GitHub ↗
(context: 'warning' | 'tip')

Source from the content-addressed store, hash-verified

33 * Get upgrade message for different contexts
34 */
35export function getUpgradeMessage(context: 'warning' | 'tip'): string | null {
36 const upgrade = getAvailableUpgrade()
37 if (!upgrade) return null
38
39 switch (context) {
40 case 'warning':
41 return `/model ${upgrade.alias}`
42 case 'tip':
43 return `Tip: You have access to ${upgrade.name} with ${upgrade.multiplier}x more context`
44 default:
45 return null
46 }
47}
48

Callers 3

TokenWarningFunction · 0.85
AssistantTextMessageFunction · 0.85
buildDisplayTextFunction · 0.85

Calls 1

getAvailableUpgradeFunction · 0.85

Tested by

no test coverage detected