MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getContextTone

Function getContextTone

apps/extension/src/shared/context-usage.ts:20–30  ·  view source on GitHub ↗
(ratio: number)

Source from the content-addressed store, hash-verified

18};
19
20export const getContextTone = (ratio: number): 'danger' | 'safe' | 'warn' => {
21 if (ratio >= 0.9) {
22 return 'danger';
23 }
24
25 if (ratio >= 0.7) {
26 return 'warn';
27 }
28
29 return 'safe';
30};
31
32const formatCount = (value: number): string => value.toLocaleString('en-US');
33

Callers 2

ContextDonutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected