| 1 | import { ConfigHandler } from "../config/ConfigHandler"; |
| 2 | import { ControlPlaneClient } from "../control-plane/client"; |
| 3 | import Mock from "../llm/llms/Mock"; |
| 4 | import { LLMLogger } from "../llm/logger"; |
| 5 | import FileSystemIde from "../util/filesystem"; |
| 6 | |
| 7 | import { TEST_DIR } from "./testDir"; |
| 8 | |
| 9 | export const testIde = new FileSystemIde(TEST_DIR); |
| 10 | |
| 11 | export const ideSettingsPromise = testIde.getIdeSettings(); |
| 12 | |
| 13 | export const testControlPlaneClient = new ControlPlaneClient( |
| 14 | Promise.resolve(undefined), |
| 15 | testIde, |
| 16 | ); |
| 17 | |
| 18 | export const testConfigHandler = new ConfigHandler( |
| 19 | testIde, |
| 20 | new LLMLogger(), |
| 21 | Promise.resolve(undefined), |
| 22 | ); |
| 23 | |
| 24 | export const testLLM = new Mock({ |
| 25 | model: "mock-model", |
| 26 | title: "Mock LLM", |
| 27 | uniqueId: "not-unique", |
| 28 | }); |