src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics, globalConfigSchematics } from "./config";
import { generate } from "./generator";
// Entry point of the repetition-guard plugin. Registers the guarded generator
// and its configuration schematics.
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withGenerator(generate);
}
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { configSchematics, globalConfigSchematics } from "./config";
import { generate } from "./generator";
// Entry point of the repetition-guard plugin. Registers the guarded generator
// and its configuration schematics.
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
context.withGlobalConfigSchematics(globalConfigSchematics);
context.withGenerator(generate);
}