* fix(perf): share jiti module cache across extension loads (#2108) Each extension was creating a new jiti instance with moduleCache: false, causing shared dependencies to be recompiled for every extension. Use a shared singleton with moduleCache: true so shared modules are compiled once. Export resetExtensionLoaderCache() for test teardown and explicit reload. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: correct loader path in extension-load-perf test (4 → 3 levels up) The test file is at src/tests/ (2 levels deep from repo root), so fileURLToPath(import.meta.url) + 3x'..' reaches the repo root. Using 4 levels exits the repo into the GitHub Actions workspace parent, causing ERR_MODULE_NOT_FOUND for loader.js in dist/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: use process.cwd() for loader path in perf test (source/compiled portability) import.meta.url resolves to different depths in source (src/tests/) vs compiled (dist-test/src/tests/), so relative '../' navigation produces the wrong path in the build phase. process.cwd() is always the repo root in CI regardless of where the test file is compiled to. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: trek-e <trek-e@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||
| modes | ||
| resources/extensions/memory | ||
| tests | ||
| utils | ||
| cli.ts | ||
| config.ts | ||
| index.ts | ||
| main.ts | ||
| migrations.ts | ||