Skip to content

feat: add --all and --crawl-dir modes to stats subcommand#2811

Open
taciturnaxolotl wants to merge 4 commits intomainfrom
full-stats
Open

feat: add --all and --crawl-dir modes to stats subcommand#2811
taciturnaxolotl wants to merge 4 commits intomainfrom
full-stats

Conversation

@taciturnaxolotl
Copy link
Copy Markdown
Member

Also made some improvements to the money display card (rounding) and made all of the graphs render in local time rather than UTC. --all uses the project json file to get all projects and --crawl-dir manually crawls the directories for older projects that aren't tracked

image

Add ConnectReadOnly() that opens SQLite databases in read-only mode
without running migrations or setting write-requiring pragmas. This
enables safely reading stats from other project databases.

💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
…ation

--all reads from projects.json and --crawl-dir recursively walks a
directory for .crush/crush.db files. Stats are gathered in parallel
and merged with deduplication across models, tools, and daily entries.

💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
When multiple projects are aggregated, show a breakdown table sorted
by cost with project basename as primary text and directory path
muted underneath. CSS handles truncation responsively.

💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant