src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const pluginConfigSchematics = createConfigSchematics()
.field("dataPath", "string", {
displayName: "Data Path",
subtitle:
"Directory where ideas and pain points are stored. " +
"Leave blank to use ~/ideas-data.",
}, "")
.field("maxSearchResults", "numeric", {
int: true, min: 3, max: 20,
displayName: "Max Search Results",
subtitle: "Maximum number of web search results to return per query.",
slider: { min: 3, max: 20, step: 1 },
}, 8)
.field("searxngUrl", "string", {
displayName: "SearXNG URL",
subtitle:
"Base URL of your self-hosted SearXNG instance (e.g. http://localhost:8080). " +
"Leave blank to use the built-in DDG/Bing scraper. " +
"SearXNG aggregates many engines and has no rate limits.",
}, "")
.field("searchRecencyWindow", "string", {
displayName: "Search Recency Window",
subtitle:
"Limit all web searches to results published within this window. " +
"Options: day, week, month, year, any (no filter). " +
"Narrower windows give fresher results but may reduce result count.",
}, "year")
.build();