Include pre-built terminal.js bundle in repo

Users can pip install directly from git URL without needing Bun.
Developers regenerate with: make bundle
This commit is contained in:
GitHub Copilot
2026-01-25 12:48:45 +00:00
parent 6f624b8565
commit 67831a50ee
3 changed files with 108 additions and 4 deletions
+1 -4
View File
@@ -130,9 +130,6 @@ dmypy.json
# textual-webterm specific
textual.log
# Node.js / Bun
# Node.js / Bun (for development only)
node_modules/
bun.lockb
# Built JS bundle (regenerate with: bun run build)
src/textual_webterm/static/js/terminal.js
+14
View File
@@ -2,6 +2,20 @@
This document outlines the plan for bundling xterm.js 6.0 directly, replacing the dependency on textual-serve's bundled `textual.js`.
## Status: ✅ Complete
The migration has been implemented on the `upstream-xterm` branch.
**Key changes:**
- Removed `textual-serve` dependency
- Added `@xterm/xterm` 6.0 with all addons
- Created `terminal.ts` client with full WebSocket protocol support
- Pre-built `terminal.js` bundle committed to repo (no Bun required for users)
- Scrollback history now works (default 1000 lines, configurable)
- Custom font family configured directly (no monkey-patch workarounds)
---
## Current State Analysis
### What textual-serve Provides
File diff suppressed because one or more lines are too long