Use @mariozechner/jiti fork with virtualModules for extension loading in Bun binary

- Switch from jiti to @mariozechner/jiti fork
- Use virtualModules option for bundled packages in compiled binary
- Disable tryNative so jiti handles all nested imports
- Lazy-load pi-coding-agent to avoid circular dependency
This commit is contained in:
Mario Zechner 2026-01-13 04:55:11 +01:00
parent cedd8fe306
commit 1919fd7c9c
4 changed files with 243 additions and 29 deletions

View file

@ -39,6 +39,7 @@
},
"dependencies": {
"@mariozechner/clipboard": "^0.3.0",
"@mariozechner/jiti": "^2.6.2",
"@mariozechner/pi-agent-core": "^0.45.2",
"@mariozechner/pi-ai": "^0.45.2",
"@mariozechner/pi-tui": "^0.45.2",
@ -47,7 +48,6 @@
"diff": "^8.0.2",
"file-type": "^21.1.1",
"glob": "^11.0.3",
"jiti": "^2.6.1",
"marked": "^15.0.12",
"minimatch": "^10.1.1",
"proper-lockfile": "^4.1.2",