Skip to content

feat(usage): add structured usage analysis commands - #662

Draft
ImLunaHey wants to merge 3 commits into
mainfrom
luna/dep-7658-usage
Draft

ImLunaHey wants to merge 3 commits into
mainfrom
luna/dep-7658-usage

Conversation

@ImLunaHey

@ImLunaHey ImLunaHey commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds depot usage JSON reads for independent usage monitoring and attribution.

depot usage series --product depot-ci --start 2026-10-01T00:00:00Z --end 2026-10-08T00:00:00Z
depot usage breakdown --product depot-ci --group-by workflow --repo owner/repo --page-size 100
  • Daily/project series, filtered breakdowns, report rows, agent usage, and current-period totals.
  • Explicit time windows, repeatable filters, paginated JSON, and lossless int64 counts.
  • Noninteractive authentication; incompatible filters fail before network access.

Consumes the published Buf Go and Connect packages from depot/proto#63 (5e103f054acb). No copied schema, local usage clients, or special generator.

Release after https://github.com/depot/api/pull/6555 deploys. Unsupported API servers return an error without partial JSON.

Validation: full go test ./..., golangci-lint (0 issues), go mod tidy, and CLI build pass with the published packages. npm formatting/type checks passed in the initial preflight; that workspace is unchanged. Cross-platform release packaging remains CI-only.

Refs DEP-7658.

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

DEP-7658

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