@clipform/mcp-server 4.11.2 → 4.11.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.
@@ -6,7 +6,7 @@ import {
6
6
  recoveryHint,
7
7
  structuredResult,
8
8
  textResult
9
- } from "./chunk-GDHIIUZR.js";
9
+ } from "./chunk-BUSXPGIE.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContextWithAuth
4
- } from "./chunk-NHV5MS4J.js";
4
+ } from "./chunk-VQRVB4AU.js";
5
5
  import {
6
6
  FORM_TYPES,
7
7
  WORKFLOW_TYPES,
8
8
  getDiscoveryParams
9
- } from "./chunk-GDHIIUZR.js";
9
+ } from "./chunk-BUSXPGIE.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-PZ5AY32C.js";
@@ -15231,4 +15231,4 @@ export {
15231
15231
  getWorkflowText,
15232
15232
  registerPrompts
15233
15233
  };
15234
- //# sourceMappingURL=chunk-VYKTDKCM.js.map
15234
+ //# sourceMappingURL=chunk-5CIGKMM5.js.map
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-VYKTDKCM.js";
32
+ } from "./chunk-5CIGKMM5.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-S2GEKYOU.js";
41
+ } from "./chunk-MOXS5GL2.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-NHV5MS4J.js";
55
+ } from "./chunk-VQRVB4AU.js";
56
56
  import {
57
57
  ACTIVE_NODE_TYPES,
58
58
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -71,6 +71,7 @@ import {
71
71
  authChallengeMeta,
72
72
  bfsOrder,
73
73
  callApi,
74
+ contactFieldNotes,
74
75
  defaultTarget,
75
76
  errorResult,
76
77
  exposedCompositionIds,
@@ -78,11 +79,12 @@ import {
78
79
  isAnonMcpLockedNode,
79
80
  isAnonymousAccountRequired,
80
81
  lettersCapError,
82
+ normalizeContactFields,
81
83
  resolveFormType,
82
84
  stripGatedConfigKeys,
83
85
  structuredResult,
84
86
  textResult
85
- } from "./chunk-GDHIIUZR.js";
87
+ } from "./chunk-BUSXPGIE.js";
86
88
  import {
87
89
  getMcpAuth,
88
90
  runWithMcpAuth,
@@ -16178,7 +16180,7 @@ function generateConfigSummary(configSchema, typeKey) {
16178
16180
  }
16179
16181
  }
16180
16182
  if (typeKey === "details") {
16181
- parts.push(`Available field IDs: ${CONTACT_FIELD_IDS.join(", ")}`);
16183
+ parts.push(`Available field IDs: ${CONTACT_FIELD_IDS.join(", ")}. Standard fields keep their names (no label needed); for other wording or a non-English form, add a custom field ({ id, is_custom: true, label, type })`);
16182
16184
  }
16183
16185
  return parts.length > 0 ? `Config: ${parts.join(", ")}` : "";
16184
16186
  }
@@ -16553,6 +16555,11 @@ Example: A form that asks a question, collects contact info, then finishes:
16553
16555
  applyNodeDefaults(q);
16554
16556
  const dropped = stripGatedNodeConfig(q);
16555
16557
  if (dropped.length > 0) ignoredNotes.push(`[${q.type}] ${ignoredConfigNote(dropped)}`);
16558
+ if (q.type === "details" && Array.isArray(q.config?.fields)) {
16559
+ const result = normalizeContactFields(q.config.fields);
16560
+ q.config = { ...q.config, fields: result.fields };
16561
+ for (const note of contactFieldNotes(result)) ignoredNotes.push(`[details] ${note}`);
16562
+ }
16556
16563
  }
16557
16564
  const settings = {};
16558
16565
  if (show_step_counter !== void 0) settings.show_step_counter = show_step_counter;
@@ -20416,6 +20423,9 @@ function createServer(options) {
20416
20423
 
20417
20424
  export {
20418
20425
  SUPPORTED_PROTOCOL_VERSIONS,
20426
+ ProtocolErrorCode,
20427
+ ProtocolError,
20428
+ MissingRequiredClientCapabilityError,
20419
20429
  ReadBuffer,
20420
20430
  serializeMessage,
20421
20431
  process2 as process,
@@ -20436,4 +20446,4 @@ export {
20436
20446
  * MIT Licensed
20437
20447
  *)
20438
20448
  */
20439
- //# sourceMappingURL=chunk-2CWHNTIQ.js.map
20449
+ //# sourceMappingURL=chunk-BNSHHORH.js.map