feat: add --all and --crawl-dir modes to stats subcommand#2811
Open
taciturnaxolotl wants to merge 4 commits intomainfrom
Open
feat: add --all and --crawl-dir modes to stats subcommand#2811taciturnaxolotl wants to merge 4 commits intomainfrom
taciturnaxolotl wants to merge 4 commits intomainfrom
Conversation
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>
1962bb8 to
60cb997
Compare
💘 Generated with Crush Assisted-by: GLM-5.1 via Crush <crush@charm.land>
60cb997 to
8548ed7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also made some improvements to the money display card (rounding) and made all of the graphs render in local time rather than UTC.
--alluses the project json file to get all projects and--crawl-dirmanually crawls the directories for older projects that aren't tracked