@clipform/mcp-server 5.19.0 → 5.21.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.
@@ -31,7 +31,7 @@ import {
31
31
  union,
32
32
  unknown,
33
33
  url
34
- } from "./chunk-NWKND52B.js";
34
+ } from "./chunk-OKT4X4OW.js";
35
35
  import {
36
36
  GUIDE_TYPES,
37
37
  QUIZ_VARIANTS,
@@ -40,7 +40,7 @@ import {
40
40
  getGuideUri,
41
41
  guideFallbackText,
42
42
  registerResources
43
- } from "./chunk-UCGO7VI7.js";
43
+ } from "./chunk-W3DTFENN.js";
44
44
  import {
45
45
  ANON_PREVIEW_LINK_LABEL,
46
46
  ANON_PREVIEW_NOTICE,
@@ -54,7 +54,7 @@ import {
54
54
  isPreviewViewerUrl,
55
55
  previewOnlyNotice,
56
56
  withAdoptedNotice
57
- } from "./chunk-SOYW4CQX.js";
57
+ } from "./chunk-3XYVOC62.js";
58
58
  import {
59
59
  ACTIVE_NODE_TYPES,
60
60
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -69,6 +69,8 @@ import {
69
69
  FORM_TYPE_ALIASES,
70
70
  GUIDE_CONFIG_KEY,
71
71
  GUIDE_LIMITS,
72
+ GUIDE_NODE_SECTIONS,
73
+ GUIDE_SECTIONS,
72
74
  GUIDE_TOUR_ANCHORS,
73
75
  LINK_VARIABLE_PRESETS,
74
76
  LOGIC_TARGET_TYPES,
@@ -118,7 +120,7 @@ import {
118
120
  textResult,
119
121
  validateVariableKey,
120
122
  viewerUrl
121
- } from "./chunk-267KDJVO.js";
123
+ } from "./chunk-44RMJB7K.js";
122
124
  import {
123
125
  getMcpAuth,
124
126
  runWithMcpAuth,
@@ -19204,29 +19206,48 @@ function registerSetLinkVariablesTool(server) {
19204
19206
 
19205
19207
  // src/tools/set-node-guide.ts
19206
19208
  var NOT_AVAILABLE2 = "Walkthrough notes are not available on this workspace.";
19209
+ var SECTION_LABELS = {
19210
+ media: "the video or image area",
19211
+ prompt: "the question text",
19212
+ body: "the answer area",
19213
+ formats: "the answer-type tiles",
19214
+ options: "the option list"
19215
+ };
19216
+ var TOUR_ANCHORS = [...GUIDE_TOUR_ANCHORS, ...GUIDE_SECTIONS];
19217
+ var SECTION_DOC = GUIDE_SECTIONS.map((name) => {
19218
+ const types = Object.entries(GUIDE_NODE_SECTIONS).filter(([, extra]) => extra.includes(name)).map(([type]) => type);
19219
+ return `"${name}" (${SECTION_LABELS[name]}${types.length ? `, ${types.join("/")} steps only` : ""})`;
19220
+ }).join(", ");
19221
+ function anchorText(anchor) {
19222
+ if (anchor === "share") return "points at Share";
19223
+ const label = SECTION_LABELS[anchor];
19224
+ return label ? `points at ${label}` : "points at the node";
19225
+ }
19207
19226
  var TourSchema = external_exports.object({
19208
19227
  title: external_exports.string().min(1).max(GUIDE_LIMITS.titleMax).describe(`Short heading, up to ${GUIDE_LIMITS.titleMax} characters`),
19209
19228
  body: external_exports.string().min(1).max(GUIDE_LIMITS.bodyMax).describe(`The note, up to ${GUIDE_LIMITS.bodyMax} characters of plain text`),
19210
- anchor: external_exports.enum(GUIDE_TOUR_ANCHORS).optional().describe('Where the note points: "node" (default) or "share" for the closing note on the Share button')
19229
+ anchor: external_exports.enum(TOUR_ANCHORS).optional().describe(
19230
+ `Where the note points: "node" (default, the whole step), "share" for the closing note on the Share button, or one part of the step: ${SECTION_DOC}. A part the step's type does not have is refused with the valid ones. Example: anchor "media" on "This is where you add your video".`
19231
+ )
19211
19232
  });
19212
19233
  var ChecklistItemSchema = external_exports.object({
19213
19234
  kind: external_exports.enum(COMPANY_CHECKLIST_KINDS).describe(
19214
19235
  "What ticks the item: record_video (the owner records or uploads their own video on THIS step, so put it on a step that carries a video), preview (they answer a step in the preview), connect (they connect `integration`), go_live (they publish), claim_account (an anonymous visitor creates an account; hidden once signed in)"
19215
19236
  ),
19216
- label: external_exports.string().min(1).max(GUIDE_LIMITS.checklistLabelMax).describe(`The item, up to ${GUIDE_LIMITS.checklistLabelMax} characters, e.g. "Record your intro"`),
19217
- description: external_exports.string().max(GUIDE_LIMITS.checklistDescriptionMax).optional().describe(`A short sentence under it, up to ${GUIDE_LIMITS.checklistDescriptionMax} characters (the card is narrow: keep it to about two lines)`),
19237
+ label: external_exports.string().min(1).max(GUIDE_LIMITS.checklistLabelMax).describe(`The whole step on its own (the list shows labels only), up to ${GUIDE_LIMITS.checklistLabelMax} characters, e.g. "Record your intro video"`),
19238
+ description: external_exports.string().max(GUIDE_LIMITS.checklistDescriptionMax).optional().describe(`Not shown to the owner: the checklist shows labels only, so omit it. Still accepted (up to ${GUIDE_LIMITS.checklistDescriptionMax} characters) so existing guides keep working`),
19218
19239
  integration: external_exports.string().optional().describe('connect only: the integration slug, e.g. "stripe" or "calendly" (live integrations only)')
19219
19240
  });
19220
19241
  var IntroSchema = external_exports.object({
19221
19242
  title: external_exports.string().min(1).max(GUIDE_LIMITS.titleMax).describe(`Who it was built for, up to ${GUIDE_LIMITS.titleMax} characters`),
19222
- body: external_exports.string().min(1).max(GUIDE_LIMITS.bodyMax).describe("What the form does for them, in one or two plain sentences")
19243
+ body: external_exports.string().min(1).max(GUIDE_LIMITS.bodyMax).describe(`What the form does for them: one or two plain sentences, four short lines at most (up to ${GUIDE_LIMITS.bodyMax} characters)`)
19223
19244
  });
19224
19245
  function registerSetNodeGuideTool(server) {
19225
19246
  server.registerTool(
19226
19247
  "clipform_set_node_guide",
19227
19248
  {
19228
19249
  title: "Set a walkthrough intro, note or checklist",
19229
- description: `Set or remove the builder walkthrough intro, note and getting-started checklist on one node of an outbound template. When someone copies the template and opens it in the builder, an intro card says what was built for them (title: who it is for, body: what the form does, four short lines at most), then the walkthrough pans to each noted node in form order and shows its note, then the checklist opens with the items of every node (form order, then list order), replacing the generic list on that copy; each item ticks itself from what the owner really does. Write public facts about the company only, never a person's name. Put the intro on the first noted node; each note covers only its own node, and the closing note goes on the last step with anchor "share". Put a record_video item on the step whose video the owner should replace, and the workspace-wide items (connect, go_live, claim_account) on the End screen. At most ${GUIDE_LIMITS.maxTourSteps} notes and ${GUIDE_LIMITS.maxChecklistItems} checklist items show per form. Send any of tour, intro and checklist; null removes that one and leaves the others.`,
19250
+ description: `Set or remove the builder walkthrough intro, note and getting-started checklist on one node of an outbound template. When someone copies the template and opens it in the builder, an intro card says what was built for them (title: who it is for, body: what the form does, four short lines at most), then the walkthrough pans to each noted node in form order and shows its note, then the checklist opens with the items of every node (form order, then list order), replacing the generic list on that copy; each item ticks itself from what the owner really does. The owner's list always opens with a ticked "Create your form" row, so don't add one. Write public facts about the company only, never a person's name. Put the intro on the first noted node; each note covers only its own node, and the closing note goes on the last step with anchor "share". Put a record_video item on the step whose video the owner should replace, and the workspace-wide items (connect, go_live, claim_account) on the End screen. At most ${GUIDE_LIMITS.maxTourSteps} notes and ${GUIDE_LIMITS.maxChecklistItems} checklist items show per form. Send any of tour, intro and checklist; null removes that one and leaves the others.`,
19230
19251
  inputSchema: external_exports.object({
19231
19252
  form_id: external_exports.string().uuid().describe("The form UUID (returned by clipform_create_form, not the short share_id from the URL)"),
19232
19253
  node_id: external_exports.string().uuid().describe("The node to put the note or items on (ids from clipform_get_form). Not the Start node."),
@@ -19267,7 +19288,7 @@ function registerSetNodeGuideTool(server) {
19267
19288
  const parts = [];
19268
19289
  if (tour !== void 0) {
19269
19290
  parts.push(
19270
- storedTour ? `Walkthrough note set on node ${node_id}: "${storedTour.title}" (${storedTour.anchor === "share" ? "points at Share" : "points at the node"}).` : `Walkthrough note removed from node ${node_id}.`
19291
+ storedTour ? `Walkthrough note set on node ${node_id}: "${storedTour.title}" (${anchorText(storedTour.anchor)}).` : `Walkthrough note removed from node ${node_id}.`
19271
19292
  );
19272
19293
  }
19273
19294
  if (intro !== void 0) {
@@ -21085,4 +21106,4 @@ export {
21085
21106
  * MIT Licensed
21086
21107
  *)
21087
21108
  */
21088
- //# sourceMappingURL=chunk-KAZSNRNF.js.map
21109
+ //# sourceMappingURL=chunk-46JO5PXU.js.map