feat: add session perf metrics command
Merged
TH
9mo ago+378+378+012345678901234567890123456789-4-4-0123456789
Summary
Add a session-level perf command (alias: metrics) that returns a JSON performance payload with startup timing.
- Capture startup samples from
opencommand round-trip timing (open-command-roundtrip) and persist them in session action history. - Expose
perfthrough session handler + command schema + capability matrix + CLI rendering. - Add tests for parser aliasing,
perfresponses, and startup sample recording fromopen. - Document platform support and sampling method in README and docs.
- Touched files: 11.
- Scope note: remained in the session command family plus required parser/capability/docs/test wiring; no cross-family behavior expansion.
- Known gap/follow-up:
fps,memory, andcpuare currently explicit unavailable placeholders in theperfpayload.
Fixes #101
Validation
pnpm typecheckpnpm test:unitpnpm test:smoke