@clipform/mcp-server 4.10.5 → 4.11.0
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-JVDLDNF6.js → chunk-3YT6KZJV.js} +3 -3
- package/dist/{chunk-B537GXNT.js → chunk-6O76ODLJ.js} +24 -7
- package/dist/chunk-6O76ODLJ.js.map +1 -0
- package/dist/{chunk-XN4QTG5H.js → chunk-IUFOD3HA.js} +14 -8
- package/dist/{chunk-XN4QTG5H.js.map → chunk-IUFOD3HA.js.map} +1 -1
- package/dist/{chunk-FMGNRBCL.js → chunk-MAEAQQL2.js} +4 -4
- package/dist/{chunk-FMGNRBCL.js.map → chunk-MAEAQQL2.js.map} +1 -1
- package/dist/{chunk-CB6GJKIE.js → chunk-MLVMT6P3.js} +2 -2
- 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 +2 -2
- package/server.json +2 -2
- package/dist/chunk-B537GXNT.js.map +0 -1
- /package/dist/{chunk-JVDLDNF6.js.map → chunk-3YT6KZJV.js.map} +0 -0
- /package/dist/{chunk-CB6GJKIE.js.map → chunk-MLVMT6P3.js.map} +0 -0
package/dist/api-client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MLVMT6P3.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_VARIANTS,
|
|
7
7
|
FORM_TYPES,
|
|
8
8
|
FORM_TYPE_KEYS,
|
|
9
9
|
callApi
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6O76ODLJ.js";
|
|
11
11
|
import {
|
|
12
12
|
getMcpAuth
|
|
13
13
|
} from "./chunk-ENVV65JX.js";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
getGuideUri,
|
|
147
147
|
registerResources
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-3YT6KZJV.js.map
|
|
@@ -882,6 +882,8 @@ var DRAW_PRESET_IDS = DRAW_PRESETS.map((p) => p.id);
|
|
|
882
882
|
// ../config/node-types.js
|
|
883
883
|
var RESPONSE_FORMATS = ["text", "audio", "video"];
|
|
884
884
|
var CONSENT_TYPES = ["consent", "opt_in"];
|
|
885
|
+
var CHOICE_MAX_OPTIONS = 12;
|
|
886
|
+
var CHOICE_MAX_LETTERS_OPTIONS = 6;
|
|
885
887
|
var CONTACT_FIELD_TYPES = ["text", "textarea", "email", "tel", "url", "date", "number"];
|
|
886
888
|
var DRAW_GAME_DEFAULT_TIERS = [
|
|
887
889
|
{ min_score: 0, label: "Scribble" },
|
|
@@ -971,7 +973,9 @@ var NODE_TYPES = {
|
|
|
971
973
|
sort_order: 1,
|
|
972
974
|
has_options: true,
|
|
973
975
|
min_options: 1,
|
|
974
|
-
max_options:
|
|
976
|
+
max_options: CHOICE_MAX_OPTIONS,
|
|
977
|
+
// Letters display (A/B/C chips on one row) stops here; List takes the full max_options.
|
|
978
|
+
max_letters_options: CHOICE_MAX_LETTERS_OPTIONS,
|
|
975
979
|
max_option_length: 36,
|
|
976
980
|
is_terminal: false,
|
|
977
981
|
show_nav_bar: true,
|
|
@@ -1042,7 +1046,7 @@ var NODE_TYPES = {
|
|
|
1042
1046
|
max_selections: {
|
|
1043
1047
|
type: "number",
|
|
1044
1048
|
min: 1,
|
|
1045
|
-
max:
|
|
1049
|
+
max: CHOICE_MAX_OPTIONS,
|
|
1046
1050
|
feature: "multi_select",
|
|
1047
1051
|
label: "Limit",
|
|
1048
1052
|
shortLabel: "To",
|
|
@@ -1074,7 +1078,7 @@ var NODE_TYPES = {
|
|
|
1074
1078
|
type: "string",
|
|
1075
1079
|
label: "Option display",
|
|
1076
1080
|
default: "list",
|
|
1077
|
-
description:
|
|
1081
|
+
description: `How options render: full text rows (list), or compact A/B/C/D chips (letters) when the media already shows the labelled options - e.g. a Grid background. Letters allows up to ${CHOICE_MAX_LETTERS_OPTIONS} options; list allows up to ${CHOICE_MAX_OPTIONS}.`
|
|
1078
1082
|
},
|
|
1079
1083
|
content_media_type: {
|
|
1080
1084
|
enum: ["upload", "recorded"],
|
|
@@ -1090,7 +1094,7 @@ var NODE_TYPES = {
|
|
|
1090
1094
|
description: "Selected option ID (single-select) or an array of selected option IDs (multi-select)",
|
|
1091
1095
|
oneOf: [
|
|
1092
1096
|
{ type: "string" },
|
|
1093
|
-
{ type: "array", items: { type: "string" }, minItems: 1, maxItems:
|
|
1097
|
+
{ type: "array", items: { type: "string" }, minItems: 1, maxItems: CHOICE_MAX_OPTIONS }
|
|
1094
1098
|
]
|
|
1095
1099
|
},
|
|
1096
1100
|
output_schema: {
|
|
@@ -1314,9 +1318,11 @@ var NODE_TYPES = {
|
|
|
1314
1318
|
is_terminal: false,
|
|
1315
1319
|
show_nav_bar: true,
|
|
1316
1320
|
loading: "lazy",
|
|
1317
|
-
|
|
1321
|
+
// Like Payment: no generic prompt; the heading + description are config title/description
|
|
1322
|
+
// (NodeHeadingFields in the builder, shown above the scheduler in the viewer).
|
|
1323
|
+
supports_prompt: false,
|
|
1318
1324
|
supports_media: false,
|
|
1319
|
-
// The interaction takes the stage height under the
|
|
1325
|
+
// The interaction takes the stage height under the heading + description (an inline embed).
|
|
1320
1326
|
interaction_fills_stage: true,
|
|
1321
1327
|
is_system: false,
|
|
1322
1328
|
show_in_results: true,
|
|
@@ -1344,6 +1350,8 @@ var NODE_TYPES = {
|
|
|
1344
1350
|
properties: {
|
|
1345
1351
|
provider: { type: "string", enum: BOOKING_PROVIDERS, label: "Provider", description: "Scheduling provider (one per node)" },
|
|
1346
1352
|
workspace_integration_id: { type: "string", description: "Connected workspace integration (calendar account) this booking uses" },
|
|
1353
|
+
title: { type: "string", label: "Heading", maxLength: 80, description: "Heading shown above the scheduler", anon_locked_keep: true },
|
|
1354
|
+
description: { type: "string", label: "Description", maxLength: 140, description: "Body text shown below the heading", anon_locked_keep: true },
|
|
1347
1355
|
allow_skip: { type: "boolean", feature: "optional_questions", default: false, label: "Optional", description: "Let respondents continue without booking" },
|
|
1348
1356
|
calendly: {
|
|
1349
1357
|
type: "object",
|
|
@@ -2832,6 +2840,14 @@ function isAnonMcpLockedNode(node) {
|
|
|
2832
2840
|
);
|
|
2833
2841
|
}
|
|
2834
2842
|
|
|
2843
|
+
// ../config/validate.js
|
|
2844
|
+
function lettersCapError(nodeType, config, count) {
|
|
2845
|
+
const typeDef = NODE_TYPES[nodeType];
|
|
2846
|
+
const cap = typeDef?.max_letters_options;
|
|
2847
|
+
if (cap === void 0 || config?.option_display !== "letters" || count <= cap) return null;
|
|
2848
|
+
return `Letters display works with up to ${cap} options, got ${count}. Use option_display "list" for up to ${typeDef.max_options}, or remove options.`;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2835
2851
|
// ../config/form-types.js
|
|
2836
2852
|
var FORM_TYPES = {
|
|
2837
2853
|
quiz: {
|
|
@@ -3729,6 +3745,7 @@ export {
|
|
|
3729
3745
|
PII_NODE_TYPES,
|
|
3730
3746
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
3731
3747
|
isAnonMcpLockedNode,
|
|
3748
|
+
lettersCapError,
|
|
3732
3749
|
FORM_TYPES,
|
|
3733
3750
|
FORM_TYPES_LIST,
|
|
3734
3751
|
FORM_TYPE_KEYS,
|
|
@@ -3756,4 +3773,4 @@ export {
|
|
|
3756
3773
|
textResult,
|
|
3757
3774
|
structuredResult
|
|
3758
3775
|
};
|
|
3759
|
-
//# sourceMappingURL=chunk-
|
|
3776
|
+
//# sourceMappingURL=chunk-6O76ODLJ.js.map
|