refactor: remove pi-ref lazy barrel import, fix test mocks for Bun 1.3.11

- Remove pi-ref.ts deferred barrel import (no longer needed after circular dep fix)
- Update extension/hook/custom-tool/custom-command loaders to use direct imports
- Fix warmPythonEnvironment mock return type in python tool tests (add docs field)
This commit is contained in:
can1357
2026-04-08 12:21:17 +02:00
parent 003eccce52
commit edab058993
8 changed files with 30 additions and 76 deletions
@@ -56,7 +56,7 @@ describe("python tool settings", () => {
});
it("passes kernel mode from settings to executor", async () => {
vi.spyOn(pythonExecutor, "warmPythonEnvironment").mockResolvedValue({ ok: true });
vi.spyOn(pythonExecutor, "warmPythonEnvironment").mockResolvedValue({ ok: true, docs: [] });
const executeSpy = vi.spyOn(pythonExecutor, "executePython").mockResolvedValue({
output: "ok",
exitCode: 0,