Project Files
src / pluginTypes.ts
import type { configSchematics } from "./config";
export interface PluginController {
getPluginConfig(schematics: typeof configSchematics): {
get(key: string): unknown;
};
}
export interface PluginContext {
withConfigSchematics(schematics: typeof configSchematics): void;
withToolsProvider(
provider: (ctl: PluginController) => Promise<unknown[]>,
): void;
withPromptPreprocessor(
preprocessor: (ctl: PluginController, message: unknown) => Promise<unknown>,
): void;
}