# Changelog

All notable changes to this project are documented in this file. The format
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.3] - 2026-08-27

### Added

- Extension statuses from `ctx.ui.setStatus()` (e.g. the MCP status line
  from pi-mcp-adapter) are now surfaced as an optional third footer line,
  mirroring the built-in footer: key-sorted, sanitized, truncated. The line
  only appears while at least one extension publishes a status; existing
  two-line layout is unchanged otherwise. ([#5](https://github.com/zhuxixi/pi-statusbar/issues/5))

## [0.1.2] - 2026-08-20

### Changed

- README restructured following markdown-pro conventions: real
  screenshot, badges, table of contents, requirements section,
  update/remove commands, troubleshooting, project layout, and links
  to community docs.

### Added

- `assets/screenshot.png` now ships in the npm tarball and is
  referenced by `pi.image` for the pi.dev/packages gallery preview.

## [0.1.1] - 2026-08-20

### Changed

- README installation section now documents
  `pi install npm:@zhuxixi/pi-statusbar` as the recommended install
  method, with the git-clone flow kept as an alternative.

### Added

- npm version and license badges in README.
- Community files: CHANGELOG.md, CONTRIBUTING.md, SECURITY.md.

## [0.1.0] - 2026-08-20

First public release, published to npm as `@zhuxixi/pi-statusbar`.

### Added

- Two-line footer: `user@host` + cwd + session title on line 1, git
  remote/branch + provider + model + thinking-effort + context usage on
  line 2.
- Prompt-cache stats (`R` reads / `W` writes / `CH` latest-request hit rate)
  with the same semantics as pi's built-in footer.
- Accumulated metered API cost with `usd`/`cny` display and a manual CNY
  exchange rate.
- `/statusbar config` command to set a custom `user@host` label
  (`/statusbar config currency` and `/statusbar config rate` for cost
  display settings).
- Adaptive context-usage colors that track the model's context window and
  pi's compaction trigger.
- Dependency-free unit tests run through esbuild (`./test/run-all.sh`).
- `package.json` pi manifest so the extension installs via
  `pi install npm:@zhuxixi/pi-statusbar`.
