@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.
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-AAULLE63.js";
32
+ } from "./chunk-MAEAQQL2.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-CVYFKBBY.js";
41
+ } from "./chunk-3YT6KZJV.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-ZQNMSNWA.js";
55
+ } from "./chunk-MLVMT6P3.js";
56
56
  import {
57
57
  ACTIVE_NODE_TYPES,
58
58
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -77,11 +77,12 @@ import {
77
77
  gatedConfigKeys,
78
78
  isAnonMcpLockedNode,
79
79
  isAnonymousAccountRequired,
80
+ lettersCapError,
80
81
  resolveFormType,
81
82
  stripGatedConfigKeys,
82
83
  structuredResult,
83
84
  textResult
84
- } from "./chunk-GQQ3LUAC.js";
85
+ } from "./chunk-6O76ODLJ.js";
85
86
  import {
86
87
  getMcpAuth,
87
88
  runWithMcpAuth,
@@ -16240,12 +16241,13 @@ var OPTIONS_DESCRIPTION = (() => {
16240
16241
  const parts = [`${type}: required`];
16241
16242
  if (def.min_options !== void 0) parts.push(`min ${def.min_options}`);
16242
16243
  if (def.max_options !== void 0) parts.push(`max ${def.max_options}`);
16244
+ if (def.max_letters_options !== void 0) parts.push(`max ${def.max_letters_options} when option_display is "letters"`);
16243
16245
  if (def.max_option_length !== void 0) parts.push(`content max ${def.max_option_length} chars`);
16244
16246
  hints.push(parts.join(", "));
16245
16247
  }
16246
16248
  return hints.join(" ");
16247
16249
  })();
16248
- function refineNodeOptions(ctx, type, options, basePath) {
16250
+ function refineNodeOptions(ctx, type, options, basePath, config) {
16249
16251
  const def = NODE_TYPES[type];
16250
16252
  if (!def?.has_options || !options) return;
16251
16253
  if (def.max_option_length !== void 0) {
@@ -16268,6 +16270,10 @@ function refineNodeOptions(ctx, type, options, basePath) {
16268
16270
  message: `${type} has ${options.length} options; max is ${def.max_options}. Remove extras.`
16269
16271
  });
16270
16272
  }
16273
+ const lettersError = lettersCapError(type, config, options.length);
16274
+ if (lettersError) {
16275
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [...basePath, "options"], message: lettersError });
16276
+ }
16271
16277
  }
16272
16278
  var NodeSchema = external_exports.object({
16273
16279
  type: external_exports.enum(ACTIVE_NODE_TYPES2),
@@ -16276,7 +16282,7 @@ var NodeSchema = external_exports.object({
16276
16282
  required: external_exports.boolean().optional().default(true),
16277
16283
  config: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(CONFIG_FIELD_DESCRIPTION),
16278
16284
  options: external_exports.array(OptionSchema).optional().describe(OPTIONS_DESCRIPTION)
16279
- }).superRefine((node, ctx) => refineNodeOptions(ctx, node.type, node.options, []));
16285
+ }).superRefine((node, ctx) => refineNodeOptions(ctx, node.type, node.options, [], node.config));
16280
16286
  function stripGatedNodeConfig(node) {
16281
16287
  const { config, dropped } = stripGatedConfigKeys(node.type, node.config);
16282
16288
  if (dropped.length > 0) node.config = config;
@@ -17978,7 +17984,7 @@ var NodeUpdateSchema = external_exports.object({
17978
17984
  )
17979
17985
  }).superRefine((update, ctx) => {
17980
17986
  if (update.type && update.options !== void 0) {
17981
- refineNodeOptions(ctx, update.type, update.options, []);
17987
+ refineNodeOptions(ctx, update.type, update.options, [], update.config);
17982
17988
  }
17983
17989
  });
17984
17990
  function registerUpdateNodeTool(server) {
@@ -20427,4 +20433,4 @@ export {
20427
20433
  * MIT Licensed
20428
20434
  *)
20429
20435
  */
20430
- //# sourceMappingURL=chunk-GQA6MFO7.js.map
20436
+ //# sourceMappingURL=chunk-IUFOD3HA.js.map