Project Files
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics, globalConfigSchematics } from "./config.js";
import { predictionLoop } from "./predictionLoop.js";
export async function main(context: PluginContext) {
context.withGlobalConfigSchematics(globalConfigSchematics); // gear icon — shared across all chats
context.withConfigSchematics(configSchematics); // per-chat settings panel
context.withPredictionLoopHandler(predictionLoop);
}