Add usage command - #6
Merged
Merged
Conversation
Closed
lancetarn
approved these changes
Mar 17, 2026
36 tasks
quinnmil
added a commit
that referenced
this pull request
Sep 10, 2026
- renderUsageBar shows one block whenever usage is nonzero. Below 2.5% the bar rounded to zero blocks and was indistinguishable from no usage at all. - Cap table cells at 60 display columns with an ellipsis, so one long URI no longer stretches a table past a normal terminal. Structured output is uncapped, so scripts still get full values. - Truncate by grapheme rather than by byte in the span tree, the table and the API client's body snippet, so a multibyte character can't be split mid-rune. cmd/errors.go's own byte-slicing message cap is now redundant and removed. - Chart titles show a decoded endpoint name and the app's name instead of a raw Base64 id and "App #6". - 'apps show' fills last_reported_at from the list payload, which carries the field the single-app payload omits. - Drop a response body from an API error when it only repeats the HTTP status text ("Not Found: Not Found"). - 'scout setup' matches framework names case-insensitively and its error points at 'scout setup' with no arguments for the valid list. - 'metrics get' and 'endpoints metrics' validate --type client-side with the valid list, matching 'jobs metrics', instead of round-tripping for a 422. - Promote github.com/charmbracelet/x/ansi from an indirect to a direct dependency; it is already in the build graph via lipgloss and provides the ANSI-aware truncation the table needs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BK3fzED9ksTWsvoPfsEwpS
3 tasks
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.
Summary
scout usagecommand to show transaction usage across all apps for a given timeframe--by-day,--by-app, and--allflags for daily and per-app breakdowns🤖 Generated with Claude Code