MCPcopy
hub / github.com/claude-code-best/claude-code / getEmptyStats

Function getEmptyStats

src/utils/stats.ts:1038–1061  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1036}
1037
1038function getEmptyStats(): ClaudeCodeStats {
1039 return {
1040 totalSessions: 0,
1041 totalMessages: 0,
1042 totalDays: 0,
1043 activeDays: 0,
1044 streaks: {
1045 currentStreak: 0,
1046 longestStreak: 0,
1047 currentStreakStart: null,
1048 longestStreakStart: null,
1049 longestStreakEnd: null,
1050 },
1051 dailyActivity: [],
1052 dailyModelTokens: [],
1053 longestSession: null,
1054 modelUsage: {},
1055 firstSessionDate: null,
1056 lastSessionDate: null,
1057 peakActivityDay: null,
1058 peakActivityHour: null,
1059 totalSpeculationTimeSavedMs: 0,
1060 }
1061}

Callers 2

aggregateClaudeCodeStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected