singularity-forge/packages
Tom Boucher eaf0538150 fix: add JS fallbacks for wrapTextWithAnsi and visibleWidth when native addon unavailable (#1418) (#1428)
On older Linux distributions (e.g., RHEL 8 with older glibc), the native
Rust addon fails to load. The proxy throws on every function call, but
wrapTextWithAnsi and visibleWidth in pi-tui had no JS fallback — causing
an uncaught crash during TUI rendering.

Fix: Both functions now catch native throws and fall back to JS
implementations (simple word-wrap and ANSI-strip length).

Fixes #1418
2026-03-19 10:49:13 -06:00
..
native fix: graceful fallback when native addon is unavailable on unsupported platforms (#1225) 2026-03-18 13:28:01 -06:00
pi-agent-core fix: add exports fields to pi-tui and pi-agent-core packages (#991) 2026-03-17 17:05:47 -06:00
pi-ai feat: auto-generate OpenRouter model registry from API + add missing models (#1407) (#1426) 2026-03-19 10:40:34 -06:00
pi-coding-agent fix: emit agent_end after abort during tool execution (#1414) (#1417) 2026-03-19 10:24:39 -06:00
pi-tui fix: add JS fallbacks for wrapTextWithAnsi and visibleWidth when native addon unavailable (#1418) (#1428) 2026-03-19 10:49:13 -06:00