src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const pluginConfigSchematics = createConfigSchematics()
.field("workspacePath", "string", {
displayName: "Workspace Path",
subtitle: "Root directory for file lookups. Leave blank to allow absolute paths only.",
}, "")
.field("maxFileSizeMb", "numeric", {
int: true, min: 1, max: 200,
displayName: "Max File Size (MB)",
subtitle: "Files larger than this are rejected to prevent memory spikes.",
slider: { min: 1, max: 200, step: 1 },
}, 50)
.build();