# PatchPilot v0.3.0

## Highlights

- Adds the first agentic session layer: typed work states, append-only session logs, `/sessions`, `/resume`, and matching CLI commands.
- Introduces structured tool metadata and new workspace tools for line-range reads, file info, Git diffs, changed files, patch application, scripts, and tests.
- Adds approval prompts for risky write, script, test, and shell actions when global permissions are not enabled.
- Reworks the TUI toward a calmer agent surface with a compact header, control-center sidebar, and typed transcript blocks.
- Updates the showcase image to reflect the v0.3 terminal UI.

## Fixed

- Prevents stale `dist/` files from leaking into npm packages by cleaning before builds.
- Keeps `.patchpilot/` session logs out of Git and normal workspace search results.
- Aligns public docs with the actual approval and safe-patch workflow.

## Improved

- Release automation now publishes the npm package during tagged releases, using `NPM_TOKEN` when configured and npm trusted publishing/OIDC otherwise.
- `npm pack --dry-run` verifies a clean package artifact without obsolete build output.
- Session summaries are indexed globally for faster workspace resume flows.

## Pull Requests

- #7 Provider hardening, onboarding safety, and public docs.
- #8 v0.3 agent session and approval slice.
