Commit 20c9d29
authored
chore: rm stale files (#18)
* Cleanup: Rebuild AGENTS.md and remove legacy docs
- Rebuilt AGENTS.md from scratch (390 lines, AI agent-focused)
- Added practical code patterns and workflows
- Removed outdated historical content
- Updated architecture diagram and metrics
- Removed unused SgrParser class from lib/ghostty.ts (-175 lines)
- Kept KeyEncoder (actively used by InputHandler)
- Cleaned up unused type imports and exports
- Deleted outdated documentation files
- docs/API.md (1,046 lines)
- roadmap.md (921 lines)
- run-demo.sh (83 lines)
- Updated references in README.md and lib/index.ts
Net reduction: 2,402 lines (~89% cleanup)
All 88 tests passing ✅
* Remove unused SgrParser class
- Removed SgrParser class from lib/ghostty.ts (163 lines)
- Removed createSgrParser() method from Ghostty class
- Cleaned up unused imports (SgrAttribute, SgrAttributeTag, RGBColor)
- Updated lib/index.ts exports to remove SgrParser
- lib/ghostty.ts: 708 → 545 lines (-163 lines, -23%)
All tests passing ✅
* docs: update AGENTS.md with pre-commit checks
- Added "Before Committing" section with all CI checks
- Updated test count from ~129 to 95 (current count)
- Emphasized importance of running fmt, lint, typecheck, test, build
* fix: apply prettier formatting to all files
Auto-formatted with 'bun run fmt:fix' to pass CI checks1 parent 1c61ebb commit 20c9d29
7 files changed
Lines changed: 311 additions & 2783 deletions
0 commit comments