Make koffi optional dependency for cross-platform support (#1603)

Koffi is only used on Windows for VT input support and fails to build
on Termux/Android and Linux systems without build tools. Moving it to
optionalDependencies allows installation to succeed on all platforms
while maintaining Windows functionality.
This commit is contained in:
Vaclav Synacek 2026-03-03 09:21:47 +01:00 committed by GitHub
parent c04708a71e
commit 693187a3fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -45,8 +45,7 @@
"dependencies": {
"@mariozechner/jiti": "^2.6.5",
"@mariozechner/pi-coding-agent": "^0.30.2",
"get-east-asian-width": "^1.4.0",
"koffi": "^2.15.1"
"get-east-asian-width": "^1.4.0"
},
"overrides": {
"rimraf": "6.1.2",

View file

@ -39,10 +39,12 @@
"@types/mime-types": "^2.1.4",
"chalk": "^5.5.0",
"get-east-asian-width": "^1.3.0",
"koffi": "^2.9.0",
"marked": "^15.0.12",
"mime-types": "^3.0.1"
},
"optionalDependencies": {
"koffi": "^2.9.0"
},
"devDependencies": {
"@xterm/headless": "^5.5.0",
"@xterm/xterm": "^5.5.0"