build: vendor xterm@5 for the Terminal sidebar tab

Adds xterm@5 + xterm-addon-fit as devDependencies and a `vendor:xterm`
build step that copies the assets into `extension/lib/` at build time.
The vendored files are .gitignored so the npm version stays the source
of truth. xterm@5 is eval-free, so no MV3 CSP changes needed.

No runtime callers yet — this just stages the assets.
This commit is contained in:
Garry Tan
2026-04-25 12:33:21 -07:00
parent 6209163900
commit a748e88aad
3 changed files with 15 additions and 2 deletions

4
.gitignore vendored
View File

@@ -20,6 +20,10 @@ bin/gstack-global-discover
.gbrain/
.context/
extension/.auth.json
# xterm assets are vendored from npm at build time; not source-of-truth.
extension/lib/xterm.js
extension/lib/xterm.css
extension/lib/xterm-addon-fit.js
.gstack-worktrees/
/tmp/
*.log