Enhancements
- Proxy detection: Automatically detects
HTTPS_PROXY/HTTP_PROXY/ALL_PROXYenvironment variables and configures undici ProxyAgent for all network calls (including giget template downloads) - Download timeout with countdown: Template index fetch has a 5s timeout with live
Loading... 2s/5scountdown; template downloads have a 30s timeout viaPromise.race - Source URL display: Shows the GitHub URL being fetched during
trellis inittemplate selection - Retry hint: On download failure, suggests
trellis init --template <name>for manual retry - Eliminate double-fetch: Pre-fetched
SpecTemplateis passed todownloadTemplateByIdto avoid fetching the index twice - Update skips spec directory:
trellis updateno longer touches.trellis/spec/— user-customized spec content is fully protected - Update proxy support:
trellis updatesets up proxy before npm version check
Bug Fixes
- Windows stdin UTF-8: Centralized stdio encoding in
common/__init__.py— addssys.stdinto_configure_stream()to fix garbled Chinese text when piping content via stdin on Windows PowerShell - Remove inline encoding: Removed duplicated encoding code from
add_session.pyandgit_context.py— all streams now handled bycommon/__init__.py - Record-session template cleanup: Removed auto-commit implementation details from all 8 platform record-session templates to prevent AI agents from misusing the
--no-commitflag
Dependencies
- Added
undici ^6.21.0for ProxyAgent support - Bumped
engines.nodefrom>=18.0.0to>=18.17.0(required by undici v6)
Migration
No migration required. Runtrellis update to sync updated scripts and templates. Node.js >=18.17.0 is now required.