src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const pluginConfigSchematics = createConfigSchematics()
.field("projectRoot", "string", {
displayName: "Project Root",
subtitle: "Default project directory. Leave blank to set per-session via scan_repository.",
}, "")
.field("testCommand", "string", {
displayName: "Test Command",
subtitle: "Command to run tests, e.g. 'npm test' or 'pytest'. Used by run_verification_loop.",
}, "npm test")
.field("buildCommand", "string", {
displayName: "Build Command",
subtitle: "Command to build the project, e.g. 'npm run build' or 'make'. Used by run_verification_loop.",
}, "npm run build")
.field("lintCommand", "string", {
displayName: "Lint Command",
subtitle: "Command to lint the project, e.g. 'npm run lint' or 'ruff check .'. Leave blank to skip.",
}, "")
.field("maxFileReadLines", "numeric", {
int: true, min: 50, max: 2000,
displayName: "Max File Read Lines",
subtitle: "Maximum lines to read per file in scan_repository and read operations.",
slider: { min: 50, max: 2000, step: 50 },
}, 500)
.field("dataPath", "string", {
displayName: "Memory Data Path",
subtitle: "Directory for project memory SQLite databases. Defaults to ~/codebase-memory/.",
}, "")
.build();