github Arindam200/cc-lens v0.2.2

latest releases: v0.4.0, v0.3.3, v0.2.8...
3 months ago

Bug Fixes

Runtime crash fixes

  • Fixed Cannot read properties of undefined (reading 'totalInputTokens') on the overview page when stats-cache is missing
  • Fixed formatCost(undefined) crash on session detail page
  • Fixed Object.values(undefined) crash on tools page (feature_adoption)
  • Fixed Object.keys(d.costs) crash in cost-over-time chart when costs field is absent
  • Added ?? 0 guards on token fields in model breakdown donut
  • Added null guards on tool_counts, languages, hourCounts across API routes and components

API error handling

  • All SWR fetchers now throw on non-OK HTTP responses, so API errors surface in the error UI instead of crashing with missing fields

Lint (0 errors)

  • Fixed setState-in-useEffect in ThemeProvider, TopBar, and OverviewClient — state now initialized lazily
  • Moved SortHeader out of SessionTable render function
  • Fixed unescaped quote entities in CompactionCard
  • Fixed prefer-const in activity API route
  • Fixed empty interface in session detail page
  • Added eslint-disable for Date.now() purity warnings (valid use case)
  • Disabled no-require-imports for bin/cli.js (CommonJS CLI file)

Don't miss a new cc-lens release

NewReleases is sending notifications on new releases.