src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
/**
* Global config — these settings show up in LM Studio's plugin settings
* and apply to ALL chats (not per-chat).
*/
export const globalConfigSchematics = createConfigSchematics()
.field(
"exportFolder",
"string",
{
displayName: "Export Folder",
hint: "Full path to the folder where .md files will be saved (e.g. D:\\My Chat Exports)",
},
"", // No default — user picks their own folder
)
.field(
"messageThreshold",
"numeric",
{
displayName: "Message Threshold",
hint: "Export the chat every time this many total messages are reached (user + assistant both count).",
slider: { min: 2, max: 100, step: 1 },
},
10, // Default: export every 10 messages
)
.build();