src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
// Per-chat configuration UI (appears in the chat sidebar when the plugin is enabled)
export const configSchematics = createConfigSchematics()
.field(
"overwrite",
"boolean",
{
displayName: "Overwrite rendered outputs",
subtitle: "Overwrite rendered outputs (.md and optional messages.json).",
},
true,
)
.field(
"includeThinking",
"boolean",
{
displayName: "Include thinking blocks",
subtitle: "Include assistant 'thinking' blocks.",
},
true,
)
.field(
"includeToolCalls",
"boolean",
{
displayName: "Include tool calls",
subtitle: "Include assistant tool calls as JSON.",
},
true,
)
.field(
"embedImages",
"boolean",
{
displayName: "Embed local images into Markdown",
subtitle:
"Inline images from the chat working directory into the .md (data: URIs). Keeps the Markdown portable when moved out of the chat folder.",
},
true,
)
.field(
"emitMessagesJson",
"boolean",
{
displayName: "Emit messages.json alongside .md",
subtitle: "Also write <chat_id>.conversation.messages.json.",
},
false,
)
.build();