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);
  context.withGlobalConfigSchematics(globalConfigSchematics);
  context.withPromptPreprocessor(preprocess);
  context.withToolsProvider(toolsProvider);
}