@clipform/mcp-server 4.10.3 → 4.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client.js +1 -1
- package/dist/{chunk-PKBBPOXQ.js → chunk-7YMFQZB3.js} +21 -6
- package/dist/{chunk-PKBBPOXQ.js.map → chunk-7YMFQZB3.js.map} +1 -1
- package/dist/{chunk-E456QCTV.js → chunk-B537GXNT.js} +13 -10
- package/dist/chunk-B537GXNT.js.map +1 -0
- package/dist/{chunk-36WRDNVW.js → chunk-BXLWHTT4.js} +3 -3
- package/dist/{chunk-NBHDZORG.js → chunk-CB6GJKIE.js} +2 -2
- package/dist/{chunk-57ZVZROW.js → chunk-FMGNRBCL.js} +5 -5
- package/dist/{chunk-57ZVZROW.js.map → chunk-FMGNRBCL.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/prompts.js +3 -3
- package/dist/resources.js +3 -3
- package/dist/server.js +5 -5
- package/package.json +1 -1
- package/server.json +2 -2
- package/dist/chunk-E456QCTV.js.map +0 -1
- /package/dist/{chunk-36WRDNVW.js.map → chunk-BXLWHTT4.js.map} +0 -0
- /package/dist/{chunk-NBHDZORG.js.map → chunk-CB6GJKIE.js.map} +0 -0
package/dist/api-client.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
union,
|
|
30
30
|
unknown,
|
|
31
31
|
url
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FMGNRBCL.js";
|
|
33
33
|
import {
|
|
34
34
|
GUIDE_TYPES,
|
|
35
35
|
QUIZ_VARIANTS,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
getGuideUri,
|
|
39
39
|
guideFallbackText,
|
|
40
40
|
registerResources
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BXLWHTT4.js";
|
|
42
42
|
import {
|
|
43
43
|
ANON_PREVIEW_LINK_LABEL,
|
|
44
44
|
ANON_PREVIEW_NOTICE,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
isPreviewViewerUrl,
|
|
53
53
|
previewOnlyNotice,
|
|
54
54
|
withAdoptedNotice
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CB6GJKIE.js";
|
|
56
56
|
import {
|
|
57
57
|
ACTIVE_NODE_TYPES,
|
|
58
58
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
stripGatedConfigKeys,
|
|
82
82
|
structuredResult,
|
|
83
83
|
textResult
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-B537GXNT.js";
|
|
85
85
|
import {
|
|
86
86
|
getMcpAuth,
|
|
87
87
|
runWithMcpAuth,
|
|
@@ -16295,7 +16295,7 @@ function gatedConfigKeysOnEveryType() {
|
|
|
16295
16295
|
function ignoredConfigNote(keys) {
|
|
16296
16296
|
return `Ignored unsupported config key(s): ${keys.join(", ")}.`;
|
|
16297
16297
|
}
|
|
16298
|
-
function applyNodeDefaults(node) {
|
|
16298
|
+
function applyNodeDefaults(node, rng2 = Math.random) {
|
|
16299
16299
|
const def = NODE_TYPES[node.type];
|
|
16300
16300
|
if (node.type === "button" && (!node.options || node.options.length === 0)) {
|
|
16301
16301
|
const buttonDefault = def?.config_schema?.properties?.button_text?.default || "Continue";
|
|
@@ -16318,6 +16318,21 @@ function applyNodeDefaults(node) {
|
|
|
16318
16318
|
choice.record_scores = true;
|
|
16319
16319
|
if (choice.show_answer_feedback === void 0) choice.show_answer_feedback = true;
|
|
16320
16320
|
}
|
|
16321
|
+
const supportsRandomise = def?.config_schema?.properties?.randomise_options !== void 0;
|
|
16322
|
+
const hasSingleScores = node.options?.some((o) => o.score != null);
|
|
16323
|
+
const hasPersonalityScores = node.options?.some((o) => o.scores != null);
|
|
16324
|
+
const isLetters = node.config?.option_display === "letters";
|
|
16325
|
+
if (supportsRandomise && hasSingleScores && !hasPersonalityScores && !isLetters && node.options) {
|
|
16326
|
+
const config = node.config ??= {};
|
|
16327
|
+
if (config.randomise_options === void 0) config.randomise_options = true;
|
|
16328
|
+
if (config.randomise_options === true) {
|
|
16329
|
+
const opts = node.options;
|
|
16330
|
+
for (let i = opts.length - 1; i > 0; i--) {
|
|
16331
|
+
const j = Math.floor(rng2() * (i + 1));
|
|
16332
|
+
[opts[i], opts[j]] = [opts[j], opts[i]];
|
|
16333
|
+
}
|
|
16334
|
+
}
|
|
16335
|
+
}
|
|
16321
16336
|
}
|
|
16322
16337
|
|
|
16323
16338
|
// src/lib/workspace-target.ts
|
|
@@ -20412,4 +20427,4 @@ export {
|
|
|
20412
20427
|
* MIT Licensed
|
|
20413
20428
|
*)
|
|
20414
20429
|
*/
|
|
20415
|
-
//# sourceMappingURL=chunk-
|
|
20430
|
+
//# sourceMappingURL=chunk-7YMFQZB3.js.map
|