config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pluginConfigSchematics = void 0;
const sdk_1 = require("@lmstudio/sdk");
exports.pluginConfigSchematics = (0, sdk_1.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();