05: Update documentation for Bun 1.4 migration - #164
Conversation
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
🔦 Lighthouse Report
|
bc1ef49 to
d6ceda7
Compare
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 similar comment
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Pull request overview
Updates project documentation to reflect the Bun 1.4 migration and to document terminal/TTY behaviors and the new terminal API wrapper module in the architecture docs.
Changes:
- Add explicit runtime/token requirements to the README.
- Expand architecture documentation with SIGWINCH-based resize handling details.
- Update architecture/component and agent docs to include the
src/render/terminal.tswrapper and Bun ≥ 1.4 requirement.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Adds a “Requirements” section describing Bun version and GitHub token scope expectations. |
| docs/architecture/containers.md | Documents live terminal resize handling via SIGWINCH in the TUI flow description. |
| docs/architecture/components.md | Adds src/render/terminal.ts to the render-layer component diagram and table. |
| AGENTS.md | Updates Bun minimum version and documents render/terminal.ts as the sole Bun ANSI API call site. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ## Requirements | ||
|
|
||
| - **Bun** ≥ 1.4 (runtime and package manager) | ||
| - **GitHub Token** with `repo` and `read:org` scopes |
| 4. If dimensions have changed, the handler calls `redraw()` to re-render with the new layout. | ||
| 5. The user sees an immediate, flicker-free refresh without needing to press any key. | ||
|
|
||
| When the **TUI** exits (via Ctrl+C, `q`, `Enter`, or `Esc`), the handler is unregistered via `process.off("SIGWINCH", onResize)` to ensure clean cleanup. The **Terminal API wrapper** (`src/render/terminal.ts`) uses `Bun.stringWidth()`, `Bun.stripANSI()`, and `Bun.sliceAnsi()` to measure and truncate text accurately, accounting for emoji, CJK characters, and multi-code-point grapheme clusters. |
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Update AGENTS.md: Bun >= 1.4 requirement, add terminal.ts module description - Add architectural rule: terminal.ts is sole Bun API call site - Update README.md: Add Requirements section with Bun >= 1.4 and GitHub Token scopes - Update docs/architecture/components.md: Add Terminal API wrapper component - Update docs/architecture/containers.md: Add Terminal resizing section documenting SIGWINCH handler, live redraw, and Bun.Terminal clarification - Document Unicode handling: emoji, CJK, grapheme clusters Fixes: #145
142f124 to
0a6f035
Compare
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 similar comment
|
Coverage after merging feat/bun14-terminal/05-docs into feat/bun14-terminal/04-sigwinch will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
What does this PR do?
How did you verify your code works?