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

@ -6,7 +6,7 @@
### Fixed
- Extensions now load correctly in compiled Bun binary by using jiti for module resolution with proper alias handling
- Extensions now load correctly in compiled Bun binary using `@mariozechner/jiti` fork with `virtualModules` support. Bundled packages (`@sinclair/typebox`, `@mariozechner/pi-tui`, `@mariozechner/pi-ai`, `@mariozechner/pi-coding-agent`) are accessible to extensions without filesystem node_modules.
## [0.45.1] - 2026-01-13