Skip to content

v0.6.0 - Project Stats Command

Choose a tag to compare

@SpiGAndromeda SpiGAndromeda released this 29 Jun 07:37
· 32 commits to main since this release
98da2c2

Summary

Adds cc-port stats, a read-only command that reports per-surface path-reference counts and disk footprint for one project or all projects. Also replaces error-string matching with exported sentinels across lock, move, and manifest.

Changes

Features

  • Add cc-port stats <project-path> to show per-surface path-reference counts, per-category disk usage, and history/session-file counts for a project. Run cc-port stats with no argument to rank all projects by disk footprint. Pass --json to either mode for machine-readable output. (#51)

Refactors

  • Replace err.Error() substring checks in lock, move, and manifest with exported sentinels and typed errors (LiveSessionsError, ErrEncodedDirAmbiguous, ErrManifestFileTooLarge, and others), so callers can branch on error identity rather than message wording. (#50)

CI

  • Bump actions/checkout to v7 and actions/setup-go to v6.5.0. (#47, #49)

Dependencies

  • Update charmbracelet/x/exp/teatest/v2 to a newer pre-release commit. (#48)

Upgrade Notes

No breaking changes.