Repository navigation
iris usage storage: what a client stores, by workspace (#193867) - #625
Open
mayoalexander wants to merge 2 commits into
Open
mayoalexander wants to merge 2 commits into
mayoalexander wants to merge 2 commits into
Conversation
`iris usage storage` shows the caller's own storage (now, by workspace, last 30 days, month-to-date GB-months) from GET /api/v1/usage/storage; `--all` lists every client for platform admins; `--json`. No user id is sent — the server derives the account from the token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj
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.
Ticket #193867 (related #193864). Server side: FREELABEL/fl-api#316 (
GET /api/v1/usage/storage). Merge that first — until it is deployed this command answers "This API does not have storage usage yet".What
Extends the existing
iris usage(platform-usage.ts) with a subcommand rather than a new top-level verb:iris usage storage— your storage now, by workspace, the last 30 days recorded, and month-to-date GB-months. Plain wording ("You are storing 3.00 GB across 12 files."), decimal units to match the billing figure.iris usage storage --all— every client ranked by bytes (platform admins; the server enforces it withUser::isPlatformAdmin, the CLI just says so on 403).--jsonfor both.Also:
usagemapped to the Finance help group in command-groups.ts (it was unmapped and fell into Core), and capabilities.json regenerated (bun run capabilities;capabilities:checkpasses).Tests
src/cli/cmd/platform-usage-storage.test.ts— 7 pass / 0 fail, run once on iris-hive-001 with bun 1.3.11 (matches main's pin). The repo'stestworkflow runs on PRs but is known to carry pre-existing failures;typecheckis the gate.Not in scope
Pricing. This shows usage only; a price per GB-month is the owner's decision.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj