src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics } from "./config";
import { toolsProvider } from "./tools";
// alexiel-rag: grounded, folder-scoped retrieval. Deliberately tool-based rather than a
// promptPreprocessor — RAG grounding should be visible when it's invoked, not silently
// blended into context the way memory auto-injection is. See README for the reasoning.
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics).withToolsProvider(toolsProvider);
}