Forked from vadimfedenko/analyze-images
Forked from vadimfedenko/analyze-images
dist / config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.globalConfigSchematics = exports.configSchematics = void 0;
const sdk_1 = require("@lmstudio/sdk");
exports.configSchematics = (0, sdk_1.createConfigSchematics)()
.field("analysisBackend", "select", {
displayName: "Image analysis backend",
options: [
{ value: "auto", displayName: "Auto (Strata for UI helper)" },
{ value: "strata", displayName: "Strata (separate request)" },
{ value: "local", displayName: "Loaded local vision model" },
],
}, "auto")
.field("strataModel", "string", { displayName: "Strata analysis model" }, "strata")
.field("autoAttach", "boolean", {
displayName: "Automatically attach page images",
subtitle: "Fetch images from the first HTTP(S) URL before inference. Off disables URL auto-attachment; @inject-url still runs explicitly.",
}, true)
.field("carryAnalyzed", "boolean", {
displayName: "Attach analyzed images on the next turn",
subtitle: "Select recent Analyze targets from this chat only; skip images already attached.",
}, true)
.field("pageUrl", "string", {
displayName: "Default page URL",
subtitle: "Optional fallback for @inject-url messages with no URL.",
}, "")
.field("maxImages", "numeric", {
displayName: "Maximum attached images", min: 1, max: 4, int: true,
}, 2)
.field("startImage", "numeric", {
displayName: "Start image number", min: 1, max: 64, int: true,
subtitle: "1-based position in the selected page image list.",
}, 1)
.build();
exports.globalConfigSchematics = (0, sdk_1.createConfigSchematics)()
.field("strataBaseUrl", "string", { displayName: "Strata analysis Base URL", subtitle: "Use the same Strata server as the generator." }, "http://127.0.0.1:8080/v1")
.field("strataApiKey", "string", { displayName: "Strata analysis API key (optional)", isProtected: true }, "")
.build();
//# sourceMappingURL=config.js.mapdist / config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.globalConfigSchematics = exports.configSchematics = void 0;
const sdk_1 = require("@lmstudio/sdk");
exports.configSchematics = (0, sdk_1.createConfigSchematics)()
.field("analysisBackend", "select", {
displayName: "Image analysis backend",
options: [
{ value: "auto", displayName: "Auto (Strata for UI helper)" },
{ value: "strata", displayName: "Strata (separate request)" },
{ value: "local", displayName: "Loaded local vision model" },
],
}, "auto")
.field("strataModel", "string", { displayName: "Strata analysis model" }, "strata")
.field("autoAttach", "boolean", {
displayName: "Automatically attach page images",
subtitle: "Fetch images from the first HTTP(S) URL before inference. Off disables URL auto-attachment; @inject-url still runs explicitly.",
}, true)
.field("carryAnalyzed", "boolean", {
displayName: "Attach analyzed images on the next turn",
subtitle: "Select recent Analyze targets from this chat only; skip images already attached.",
}, true)
.field("pageUrl", "string", {
displayName: "Default page URL",
subtitle: "Optional fallback for @inject-url messages with no URL.",
}, "")
.field("maxImages", "numeric", {
displayName: "Maximum attached images", min: 1, max: 4, int: true,
}, 2)
.field("startImage", "numeric", {
displayName: "Start image number", min: 1, max: 64, int: true,
subtitle: "1-based position in the selected page image list.",
}, 1)
.build();
exports.globalConfigSchematics = (0, sdk_1.createConfigSchematics)()
.field("strataBaseUrl", "string", { displayName: "Strata analysis Base URL", subtitle: "Use the same Strata server as the generator." }, "http://127.0.0.1:8080/v1")
.field("strataApiKey", "string", { displayName: "Strata analysis API key (optional)", isProtected: true }, "")
.build();
//# sourceMappingURL=config.js.map