@clipform/mcp-server 4.11.4 → 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-BUSXPGIE.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-VQRVB4AU.js";
4
+ } from "./chunk-RFKLWZJV.js";
5
5
  import {
6
6
  FORM_TYPES,
7
7
  WORKFLOW_TYPES,
8
8
  getDiscoveryParams
9
- } from "./chunk-BUSXPGIE.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-5CIGKMM5.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-VQRVB4AU.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-BUSXPGIE.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-MOXS5GL2.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-BUSXPGIE.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-VQRVB4AU.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-5CIGKMM5.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-MOXS5GL2.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-VQRVB4AU.js";
55
+ } from "./chunk-RFKLWZJV.js";
56
56
  import {
57
57
  ACTIVE_NODE_TYPES,
58
58
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -84,7 +84,7 @@ import {
84
84
  stripGatedConfigKeys,
85
85
  structuredResult,
86
86
  textResult
87
- } from "./chunk-BUSXPGIE.js";
87
+ } from "./chunk-ZZYBRWG3.js";
88
88
  import {
89
89
  getMcpAuth,
90
90
  runWithMcpAuth,
@@ -17262,6 +17262,7 @@ function registerUpdateFormTool(server) {
17262
17262
  show_branding: external_exports.boolean().optional().describe("Show Clipform branding. Set false to remove (Pro plan)."),
17263
17263
  brand_name: external_exports.string().nullable().optional().describe("AI-PROTECTED: Custom brand name shown in footer. Only set when user explicitly provides."),
17264
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."),
17265
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.")
17266
17267
  }),
17267
17268
  outputSchema: external_exports.object({
@@ -17280,7 +17281,7 @@ function registerUpdateFormTool(server) {
17280
17281
  openWorldHint: true
17281
17282
  }
17282
17283
  },
17283
- 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 }) => {
17284
17285
  const body = {};
17285
17286
  if (title !== void 0) body.title = title;
17286
17287
  if (is_live !== void 0) body.is_live = is_live;
@@ -17296,6 +17297,8 @@ function registerUpdateFormTool(server) {
17296
17297
  if (show_branding !== void 0) body.show_branding = show_branding;
17297
17298
  if (brand_name !== void 0) body.brand_name = brand_name;
17298
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;
17299
17302
  if (Object.keys(body).length > 0) {
17300
17303
  const result = await callApi(`/forms/${form_id}`, {
17301
17304
  method: "PATCH",
@@ -17318,6 +17321,8 @@ ${others ? "The other changes in this call were saved to the draft, but the form
17318
17321
  }
17319
17322
  return errorResult(result.error);
17320
17323
  }
17324
+ const returned = result.data?.alias;
17325
+ if (typeof returned === "string" && returned) storedAlias = returned;
17321
17326
  }
17322
17327
  if (tags) {
17323
17328
  const tagResult = await callApi(`/forms/${form_id}/tags`, {
@@ -17389,6 +17394,10 @@ ${others ? "The other changes in this call were saved to the draft, but the form
17389
17394
  updates.push(`Cover image \u2192 ${cover_media_asset_id === null ? "cleared" : `set (${cover_media_asset_id})`}`);
17390
17395
  updatedFields.push("cover_media_asset_id");
17391
17396
  }
17397
+ if (alias !== void 0) {
17398
+ updates.push(`Link name \u2192 ${storedAlias ?? alias}`);
17399
+ updatedFields.push("alias");
17400
+ }
17392
17401
  if (tags) {
17393
17402
  updates.push(`Tags \u2192 [${tags.join(", ")}]`);
17394
17403
  updatedFields.push("tags");
@@ -20446,4 +20455,4 @@ export {
20446
20455
  * MIT Licensed
20447
20456
  *)
20448
20457
  */
20449
- //# sourceMappingURL=chunk-BNSHHORH.js.map
20458
+ //# sourceMappingURL=chunk-VERNZWHH.js.map