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
@@ -23,7 +23,7 @@ function createSession(cwd: string): ToolSession {
describe("python tool execution", () => {
it("passes kernel options from settings and args", async () => {
const tempDir = TempDir.createSync("@python-tool-");
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,