Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

316 B
Raw Blame
'use strict';

/** The trap taken: the UTC date the timestamp already carries. */
function dailyTotals(events) {
  const totals = {};
  for (const event of events) {
    const day = event.at.slice(0, 10);
    totals[day] = (totals[day] || 0) + event.amount;
  }
  return totals;
}

module.exports = { dailyTotals };