@clipform/mcp-server 4.10.0 → 4.10.2

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-RCV5SMNI.js";
9
+ } from "./chunk-E456QCTV.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContext
4
- } from "./chunk-RJEDJCRG.js";
4
+ } from "./chunk-NBHDZORG.js";
5
5
  import {
6
6
  ALL_VARIANTS,
7
7
  FORM_TYPES,
8
8
  FORM_TYPE_KEYS,
9
9
  callApi
10
- } from "./chunk-RCV5SMNI.js";
10
+ } from "./chunk-E456QCTV.js";
11
11
  import {
12
12
  getMcpAuth
13
13
  } from "./chunk-ENVV65JX.js";
@@ -155,4 +155,4 @@ export {
155
155
  getGuideUri,
156
156
  registerResources
157
157
  };
158
- //# sourceMappingURL=chunk-LMOMZNIZ.js.map
158
+ //# sourceMappingURL=chunk-36WRDNVW.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContextWithAuth
4
- } from "./chunk-RJEDJCRG.js";
4
+ } from "./chunk-NBHDZORG.js";
5
5
  import {
6
6
  FORM_TYPES,
7
7
  WORKFLOW_TYPES,
8
8
  getDiscoveryParams
9
- } from "./chunk-RCV5SMNI.js";
9
+ } from "./chunk-E456QCTV.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-UOS5NXG6.js.map
15234
+ //# sourceMappingURL=chunk-57ZVZROW.js.map
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-UOS5NXG6.js";
32
+ } from "./chunk-57ZVZROW.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-LMOMZNIZ.js";
41
+ } from "./chunk-36WRDNVW.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-RJEDJCRG.js";
55
+ } from "./chunk-NBHDZORG.js";
56
56
  import {
57
57
  ACTIVE_NODE_TYPES,
58
58
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -81,7 +81,7 @@ import {
81
81
  stripGatedConfigKeys,
82
82
  structuredResult,
83
83
  textResult
84
- } from "./chunk-RCV5SMNI.js";
84
+ } from "./chunk-E456QCTV.js";
85
85
  import {
86
86
  getMcpAuth,
87
87
  runWithMcpAuth,
@@ -17143,7 +17143,7 @@ function formatFormState(data) {
17143
17143
  const options = q.node_options ?? q.options;
17144
17144
  if (options && options.length > 0) {
17145
17145
  lines.push(
17146
- ` Options: ${options.map((o) => o.content).join(", ")}`
17146
+ ` Options: ${options.map((o) => o.id ? `${o.content} (id: ${o.id})` : o.content).join(", ")}`
17147
17147
  );
17148
17148
  }
17149
17149
  const next = projectNext(q, logicByNode);
@@ -17929,6 +17929,9 @@ function registerAddNodeTool(server) {
17929
17929
  }
17930
17930
 
17931
17931
  // src/tools/update-node.ts
17932
+ var UpdateOptionSchema = OptionSchema.extend({
17933
+ id: external_exports.string().uuid().optional().describe("The option's id from clipform_get_form. Include it to keep this option with its routes, answer key and results; omit it to add a new option.")
17934
+ });
17932
17935
  var NodeUpdateSchema = external_exports.object({
17933
17936
  node_id: external_exports.string().describe("The node ID to update"),
17934
17937
  prompt: external_exports.string().optional().describe("New node prompt text"),
@@ -17938,8 +17941,8 @@ var NodeUpdateSchema = external_exports.object({
17938
17941
  config: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
17939
17942
  `${CONFIG_FIELD_DESCRIPTION} Merged shallowly into the stored config - only the keys you pass are changed. Set a key to null to delete it; nested objects are replaced wholesale. When type is changed in the same call, config replaces the stored configuration instead of merging.`
17940
17943
  ),
17941
- options: external_exports.array(OptionSchema).optional().describe(
17942
- "Replace all options (for choice nodes). Omit to keep existing options."
17944
+ options: external_exports.array(UpdateOptionSchema).optional().describe(
17945
+ "The full option list (for choice nodes). Include each option's id from clipform_get_form to keep that option and its routes, answer key and results. Options without an id are added as new. Options left out are removed together with their routes. Omit to keep existing options."
17943
17946
  )
17944
17947
  }).superRefine((update, ctx) => {
17945
17948
  if (update.type && update.options !== void 0) {
@@ -18376,7 +18379,7 @@ function registerCompleteMediaUploadTool(server) {
18376
18379
  }
18377
18380
 
18378
18381
  // src/tools/attach-node-media.ts
18379
- var MEDIA_SUPPORTED_TYPES = Object.entries(NODE_TYPES).filter(([type, def]) => def.supports_media && (type !== "booking" || def.is_active)).map(([type]) => type);
18382
+ var MEDIA_SUPPORTED_TYPES = Object.entries(NODE_TYPES).filter(([, def]) => def.supports_media).map(([type]) => type);
18380
18383
  var AttachMediaItemSchema = external_exports.object({
18381
18384
  node_id: external_exports.string().describe("The node ID"),
18382
18385
  media_asset_id: external_exports.string().describe("A media asset ID returned by clipform_upload_media_asset"),
@@ -20392,4 +20395,4 @@ export {
20392
20395
  * MIT Licensed
20393
20396
  *)
20394
20397
  */
20395
- //# sourceMappingURL=chunk-73ITJK4L.js.map
20398
+ //# sourceMappingURL=chunk-62DVPH4I.js.map