src / index.ts
// The LM Studio plugin's entry point. LM Studio runs main() once when the plugin starts.
import type { PluginContext } from "@lmstudio/sdk";
import { globalConfigSchematics, preprocess, toolsProvider } from "./plugin";
export async function main(context: PluginContext): Promise<void> {
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withPromptPreprocessor(preprocess);
context.withToolsProvider(toolsProvider);
}
src / index.ts
// The LM Studio plugin's entry point. LM Studio runs main() once when the plugin starts.
import type { PluginContext } from "@lmstudio/sdk";
import { globalConfigSchematics, preprocess, toolsProvider } from "./plugin";
export async function main(context: PluginContext): Promise<void> {
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withPromptPreprocessor(preprocess);
context.withToolsProvider(toolsProvider);
}