@clipform/mcp-server 4.10.6 → 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.
@@ -6,7 +6,7 @@ import {
6
6
  recoveryHint,
7
7
  structuredResult,
8
8
  textResult
9
- } from "./chunk-GQQ3LUAC.js";
9
+ } from "./chunk-6O76ODLJ.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContext
4
- } from "./chunk-ZQNMSNWA.js";
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-GQQ3LUAC.js";
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-CVYFKBBY.js.map
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: 6,
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: 6,
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: "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"
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: 6 }
1097
+ { type: "array", items: { type: "string" }, minItems: 1, maxItems: CHOICE_MAX_OPTIONS }
1094
1098
  ]
1095
1099
  },
1096
1100
  output_schema: {
@@ -2836,6 +2840,14 @@ function isAnonMcpLockedNode(node) {
2836
2840
  );
2837
2841
  }
2838
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
+
2839
2851
  // ../config/form-types.js
2840
2852
  var FORM_TYPES = {
2841
2853
  quiz: {
@@ -3733,6 +3745,7 @@ export {
3733
3745
  PII_NODE_TYPES,
3734
3746
  ANON_MCP_BLOCKED_NODE_TYPES,
3735
3747
  isAnonMcpLockedNode,
3748
+ lettersCapError,
3736
3749
  FORM_TYPES,
3737
3750
  FORM_TYPES_LIST,
3738
3751
  FORM_TYPE_KEYS,
@@ -3760,4 +3773,4 @@ export {
3760
3773
  textResult,
3761
3774
  structuredResult
3762
3775
  };
3763
- //# sourceMappingURL=chunk-GQQ3LUAC.js.map
3776
+ //# sourceMappingURL=chunk-6O76ODLJ.js.map