src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { preprocess } from "./promptPreprocessor";
import { toolsProvider } from "./toolsProvider";
import { configSchematics, globalConfigSchematics } from "./config";
export async function main(context: PluginContext) {
context
.withConfigSchematics(configSchematics)
.withGlobalConfigSchematics(globalConfigSchematics)
.withPromptPreprocessor(preprocess)
.withToolsProvider(toolsProvider);
}