src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const pluginConfigSchematics = createConfigSchematics()
.field("defaultTone", "string", {
displayName: "Default Tone",
subtitle:
"Tone used when humanize_text is called without an explicit tone. " +
"Options: casual, professional, academic, custom.",
}, "casual")
.field("aiScoreThreshold", "numeric", {
int: true, min: 0, max: 100,
displayName: "AI Score Threshold",
subtitle:
"Score at or above which analyze_and_humanize triggers rewriting. " +
"Range 0–100. Default: 60.",
slider: { min: 0, max: 100, step: 5 },
}, 60)
.build();