Check if colors are currently enabled
areColorsEnabled(): booleanBuilds daily trend data with normalized token values for UI display.
buildDailyTrendData(daily: DailyData[]): object[]Builds model usage data from daily records.
buildModelUsageData(daily: DailyData[]): ModelUsage[]Builds model usage data organized by token consumption.
buildModelUsageDataByTokens(daily: DailyData[]): object[]Builds token composition data from daily records.
buildTokenCompositionData(daily: DailyData[]): object[]Builds token type usage data from totals.
buildTokenTypeData(totals: Totals): TokenTypeUsage[]Combines and merges Tailwind CSS class names with conflict resolution.
cn(inputs: ClassValue[]): stringcomputeFilledDailyRange(daily: DailyData[]): DailyData[]computeStreak(daily: DailyData[]): numberComputes totals from daily usage data.
computeTotalsFromDaily(daily: DailyData[]): TotalsProps to apply to external links for security and UX best practices.
objectFilters daily data by time range.
filterDailyByRange(daily: DailyData[], range: TimeRangeKey, options?: object): DailyData[]formatAxisLabel(isoDate: string, range: TimeRangeKey): stringFormats a number as USD currency.
formatCurrency(value: number): stringFormats streak count in compact notation.
formatStreakCompact(days: number): stringFormatter utility class providing consistent formatting functions for various data types.
Formats token count for human-readable display.
formatTokens(value: number): stringformatTooltipDate(isoDate: string): stringExtracts OS/ROM information from device data. Searches for rows with label "Android Version" or "ROM" and extracts the display value, version number, and documentation link.
getDeviceOSInfo(device: DeviceSpec | null): OSInfo | nullExtracts root method information from device data. Searches for rows with label "Root" and extracts the method name and GitHub/official link.
getDeviceRootInfo(device: DeviceSpec | null): RootInfo | nullGet themed color for health status.
getHealthColor(health: SystemHealth): stringGet human-readable health message.
getHealthMessage(health: SystemHealth): stringDetermines heatmap color based on value intensity.
getHeatmapColor(maxCost: number, value: number, palette: HeatmapPalette): stringgetModelLabel(modelName: string): stringGenerates human-readable OS text with optional link. Used for inline text generation in paragraphs.
getOSText(device: DeviceSpec | null): string | nullGenerates human-readable root method text. Used for inline text generation in paragraphs.
getRootText(device: DeviceSpec | null): string | nullGet themed status icon component.
getStatusIcon(status: ServiceStatus, size: number = 18): ElementType guard to check if a URL string is an external link (starts with http/https).
isExternalHref(href?: string): anyStandardized logger with environment-based filtering
objectLog severity levels in order of severity (least to most severe)
Export types for external use
OS/ROM information extracted from device data.
prepareHeatmapData(daily: DailyData[]): HeatmapDay | null[][]Root method information extracted from device data.
Semantic color functions for terminal output
objectThrottles a function to only execute at most once per specified delay
throttle(func: T, delay: number): objectValidator utility class providing type-safe validation functions with TypeScript type guards.