Files
pi/packages/coding-agent/src/core
T
Sviatoslav Abakumov 1ce870db1b fix(coding-agent): use ESM resolution for extension alias fallback (#1821)
The previous fix (83b57924) replaced require.resolve() with bare
specifier fallbacks to avoid ERR_PACKAGE_PATH_NOT_EXPORTED for ESM-only
packages like pi-ai. However, bare specifiers are not valid jiti alias
targets, breaking extension loading in global npm installs.

Use import.meta.resolve() as the fallback instead. It respects the
"import" exports condition and returns a real file path.
1ce870db1b ยท 2026-03-05 07:08:30 +01:00
History
..
2026-01-23 15:05:08 +01:00
2026-01-11 23:12:31 +01:00
2025-12-22 19:28:26 +01:00