MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getHourCountsJson

Function getHourCountsJson

src/commands/insights.ts:1939–1945  ·  view source on GitHub ↗
(messageHours: number[])

Source from the content-addressed store, hash-verified

1937}
1938
1939function getHourCountsJson(messageHours: number[]): string {
1940 const hourCounts: Record<number, number> = {}
1941 for (const h of messageHours) {
1942 hourCounts[h] = (hourCounts[h] || 0) + 1
1943 }
1944 return jsonStringify(hourCounts)
1945}
1946
1947function generateHtmlReport(
1948 data: AggregatedData,

Callers 1

generateHtmlReportFunction · 0.85

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected