continue-custom/core/config/profile/IProfileLoader.ts
2025-01-14 00:11:22 -08:00

12 lines
589 B
TypeScript

// ProfileHandlers manage the loading of a config, allowing us to abstract over different ways of getting to a ContinueConfig
import { ConfigResult } from "@continuedev/config-yaml";
import { ContinueConfig } from "../../index.js";
import { ProfileDescription } from "../ProfileLifecycleManager.js";
// After we have the ContinueConfig, the ConfigHandler takes care of everything else (loading models, lifecycle, etc.)
export interface IProfileLoader {
description: ProfileDescription;
doLoadConfig(): Promise<ConfigResult<ContinueConfig>>;
setIsActive(isActive: boolean): void;
}