src / types.ts
declare module "@lmstudioai/plugin-file-agent-plus/types" {
interface ToolsProvider {
// Define your tools here:
// applyDiff?: (...args: any[]) => Promise<any>;
}
type PreprocessContext = {
preprocess: (context: { message: string; file: string }) => Promise<PreprocessedMessage>;
};
interface PreprocessedMessage {
message: string;
meta?: Record<string, any>;
}
};