@clipform/mcp-server 4.11.3 → 5.0.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-7PQJ5FHR.js";
9
+ } from "./chunk-ZZYBRWG3.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-TYN34MUZ.js";
4
+ } from "./chunk-RFKLWZJV.js";
5
5
  import {
6
6
  FORM_TYPES,
7
7
  WORKFLOW_TYPES,
8
8
  getDiscoveryParams
9
- } from "./chunk-7PQJ5FHR.js";
9
+ } from "./chunk-ZZYBRWG3.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-HYJJ4OG7.js.map
15234
+ //# sourceMappingURL=chunk-DEVQTVXL.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContext
4
- } from "./chunk-TYN34MUZ.js";
4
+ } from "./chunk-RFKLWZJV.js";
5
5
  import {
6
6
  ALL_VARIANTS,
7
7
  FORM_TYPES,
8
8
  FORM_TYPE_KEYS,
9
9
  callApi
10
- } from "./chunk-7PQJ5FHR.js";
10
+ } from "./chunk-ZZYBRWG3.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-D752UXMA.js.map
149
+ //# sourceMappingURL=chunk-LTLKJKNR.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CURRENT_PLAN_VERSIONS,
3
3
  PLAN_LIMITS,
4
4
  callApi
5
- } from "./chunk-7PQJ5FHR.js";
5
+ } from "./chunk-ZZYBRWG3.js";
6
6
  import {
7
7
  getMcpAuth
8
8
  } from "./chunk-ENVV65JX.js";
@@ -145,4 +145,4 @@ export {
145
145
  getSessionContextWithAuth,
146
146
  getSessionContext
147
147
  };
148
- //# sourceMappingURL=chunk-TYN34MUZ.js.map
148
+ //# sourceMappingURL=chunk-RFKLWZJV.js.map
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-HYJJ4OG7.js";
32
+ } from "./chunk-DEVQTVXL.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-D752UXMA.js";
41
+ } from "./chunk-LTLKJKNR.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-TYN34MUZ.js";
55
+ } from "./chunk-RFKLWZJV.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-7PQJ5FHR.js";
87
+ } from "./chunk-ZZYBRWG3.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;
@@ -17255,6 +17262,7 @@ function registerUpdateFormTool(server) {
17255
17262
  show_branding: external_exports.boolean().optional().describe("Show Clipform branding. Set false to remove (Pro plan)."),
17256
17263
  brand_name: external_exports.string().nullable().optional().describe("AI-PROTECTED: Custom brand name shown in footer. Only set when user explicitly provides."),
17257
17264
  cover_media_asset_id: external_exports.string().uuid().nullable().optional().describe("Cover image: the picture shown in emails, link previews and on the embed button, cropped to the form's 9:16 frame. A media_asset_id of a ready still image in this form's workspace. Set null to clear and fall back to the first step's media. Goes live on the next publish (is_live: true), which can be in the same call."),
17265
+ alias: external_exports.string().optional().describe("Readable link name for a template, so it is shared as app.clipform.io/try/NAME instead of an id. ONLY for forms in a Clipform Public workspace (others are refused). Lowercase letters, digits and single dashes, 3-50 characters (e.g. 'testimonial-howto'); reserved words and 9-character hex strings are refused. Adds a name: old names keep working, and a name is never reused by another form."),
17258
17266
  tags: external_exports.array(external_exports.string()).optional().describe("Replace all tags on this form. Pass the full desired set (e.g. ['quiz', 'trivia', 'slug:elephants']). Omit to leave tags unchanged.")
17259
17267
  }),
17260
17268
  outputSchema: external_exports.object({
@@ -17273,7 +17281,7 @@ function registerUpdateFormTool(server) {
17273
17281
  openWorldHint: true
17274
17282
  }
17275
17283
  },
17276
- async ({ form_id, title, is_live, show_step_counter, disable_back_navigation, total_steps, primary_color, background_color, font_family, description, author, logo_url, show_branding, brand_name, cover_media_asset_id, tags }) => {
17284
+ async ({ form_id, title, is_live, show_step_counter, disable_back_navigation, total_steps, primary_color, background_color, font_family, description, author, logo_url, show_branding, brand_name, cover_media_asset_id, alias, tags }) => {
17277
17285
  const body = {};
17278
17286
  if (title !== void 0) body.title = title;
17279
17287
  if (is_live !== void 0) body.is_live = is_live;
@@ -17289,6 +17297,8 @@ function registerUpdateFormTool(server) {
17289
17297
  if (show_branding !== void 0) body.show_branding = show_branding;
17290
17298
  if (brand_name !== void 0) body.brand_name = brand_name;
17291
17299
  if (cover_media_asset_id !== void 0) body.cover_media_asset_id = cover_media_asset_id;
17300
+ if (alias !== void 0) body.alias = alias;
17301
+ let storedAlias;
17292
17302
  if (Object.keys(body).length > 0) {
17293
17303
  const result = await callApi(`/forms/${form_id}`, {
17294
17304
  method: "PATCH",
@@ -17311,6 +17321,8 @@ ${others ? "The other changes in this call were saved to the draft, but the form
17311
17321
  }
17312
17322
  return errorResult(result.error);
17313
17323
  }
17324
+ const returned = result.data?.alias;
17325
+ if (typeof returned === "string" && returned) storedAlias = returned;
17314
17326
  }
17315
17327
  if (tags) {
17316
17328
  const tagResult = await callApi(`/forms/${form_id}/tags`, {
@@ -17382,6 +17394,10 @@ ${others ? "The other changes in this call were saved to the draft, but the form
17382
17394
  updates.push(`Cover image \u2192 ${cover_media_asset_id === null ? "cleared" : `set (${cover_media_asset_id})`}`);
17383
17395
  updatedFields.push("cover_media_asset_id");
17384
17396
  }
17397
+ if (alias !== void 0) {
17398
+ updates.push(`Link name \u2192 ${storedAlias ?? alias}`);
17399
+ updatedFields.push("alias");
17400
+ }
17385
17401
  if (tags) {
17386
17402
  updates.push(`Tags \u2192 [${tags.join(", ")}]`);
17387
17403
  updatedFields.push("tags");
@@ -20439,4 +20455,4 @@ export {
20439
20455
  * MIT Licensed
20440
20456
  *)
20441
20457
  */
20442
- //# sourceMappingURL=chunk-ACNV5D4O.js.map
20458
+ //# sourceMappingURL=chunk-VERNZWHH.js.map