continue-custom/core/config/profile/IProfileLoader.ts
tomasz-io 820144aa0e improv: handle fatal and non-fatal errors
fix

fix: ui

feat: intrusive error

fix: errors

fix: error handling

fix: validation

fix: naming

fix: errors

cleanup

feat: fatal / non-fatal ui

cleanup

feat: fatal errors
2024-10-17 14:29:41 +07:00

12 lines
517 B
TypeScript

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