src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const pluginConfigSchematics = createConfigSchematics()
.field("repoPath", "string", {
displayName: "Default Repository Path",
subtitle: "Absolute path to a git repo. Blank = use LM Studio working directory.",
}, "")
.field("maxLogEntries", "numeric", {
int: true, min: 1, max: 500,
displayName: "Max Log Entries",
subtitle: "Default number of commits returned by git_log.",
slider: { min: 5, max: 200, step: 5 },
}, 20)
.field("maxDiffLines", "numeric", {
int: true, min: 50, max: 5000,
displayName: "Max Diff Lines",
subtitle: "Truncate diffs beyond this many lines to avoid context overflow.",
slider: { min: 50, max: 2000, step: 50 },
}, 500)
.build();