Forked from vadimfedenko/analyze-images
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { globalConfigSchematics } from "./config";
import { toolsProvider } from "./toolsProvider";
export async function main(context: PluginContext) {
// Register the global (application-wide) config schematics. This is what
// makes the "Workspace Directory" / "Vision Model Key" fields appear in
// the plugin's Global Settings UI.
context.withGlobalConfigSchematics(globalConfigSchematics);
// Register the tools provider.
context.withToolsProvider(toolsProvider);
}