@clipform/mcp-server 4.8.1 → 4.10.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-6DSCZEF7.js";
9
+ } from "./chunk-RCV5SMNI.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-CANFXI4D.js";
32
+ } from "./chunk-UOS5NXG6.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-BZPLNFYU.js";
41
+ } from "./chunk-LMOMZNIZ.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-Z43YF3UB.js";
55
+ } from "./chunk-RJEDJCRG.js";
56
56
  import {
57
57
  ACTIVE_NODE_TYPES,
58
58
  ANON_MCP_BLOCKED_NODE_TYPES,
@@ -67,6 +67,7 @@ import {
67
67
  MCP_TOOL_TOOLSETS,
68
68
  NODE_TYPES,
69
69
  NON_COUNTABLE_TYPES,
70
+ PII_NODE_TYPES,
70
71
  authChallengeMeta,
71
72
  bfsOrder,
72
73
  callApi,
@@ -80,7 +81,7 @@ import {
80
81
  stripGatedConfigKeys,
81
82
  structuredResult,
82
83
  textResult
83
- } from "./chunk-6DSCZEF7.js";
84
+ } from "./chunk-RCV5SMNI.js";
84
85
  import {
85
86
  getMcpAuth,
86
87
  runWithMcpAuth,
@@ -17499,6 +17500,10 @@ function projectNode(node) {
17499
17500
  total_responses: node.total_responses,
17500
17501
  total_views: node.total_views
17501
17502
  };
17503
+ const meta = NODE_TYPES[node.node_type];
17504
+ if (meta && (meta.pii || meta.respondent_media === "files" || meta.respondent_media === "drawing")) {
17505
+ return base;
17506
+ }
17502
17507
  if (node.node_type === "choice") {
17503
17508
  const answers = node.answers;
17504
17509
  return {
@@ -17554,6 +17559,13 @@ function registerGetResultsTool(server) {
17554
17559
  prompt: external_exports.string(),
17555
17560
  total_responses: external_exports.number(),
17556
17561
  total_views: external_exports.number(),
17562
+ // #4845 expand/contract, step (a): the ChatGPT-approved schema is
17563
+ // additionalProperties:false, so this optional field is DECLARED but NOT emitted
17564
+ // until a Rescan approves it (then (c): emit selection_mode from projectNode).
17565
+ // See SUBMISSION.md.
17566
+ selection_mode: external_exports.enum(["single", "multiple"]).optional().describe(
17567
+ "Choice questions only. `multiple` = people could pick several options, so option counts add up past total_responses and the option percentages can sum past 100."
17568
+ ),
17557
17569
  options: external_exports.array(
17558
17570
  external_exports.object({
17559
17571
  label: external_exports.string(),
@@ -17615,15 +17627,14 @@ function registerGetResultsTool(server) {
17615
17627
  var MAX_ANSWER_LENGTH = 300;
17616
17628
  var DEFAULT_LIMIT = 20;
17617
17629
  var MAX_LIMIT = 50;
17618
- var REDACTED_TYPES = {
17619
- details: "[contact details - view in dashboard]",
17620
- contact: "[contact details - view in dashboard]",
17621
- file_upload: "[file upload - view in dashboard]",
17622
- // payment is handled by paymentSummary() before this map - it surfaces a
17623
- // non-PII amount/status line rather than a flat placeholder.
17624
- open: ""
17625
- // open is redacted ONLY when the answer is a recording (handled below)
17626
- };
17630
+ var REDACTED_TYPES = Object.fromEntries([
17631
+ // PII except payment: payment is handled by paymentSummary() before this map
17632
+ // and surfaces a non-PII amount/status line rather than a flat placeholder.
17633
+ ...PII_NODE_TYPES.filter((t) => t !== "payment").map((t) => [t, t === "booking" ? "[booking details - view in dashboard]" : "[contact details - view in dashboard]"]),
17634
+ // Stored files and drawings: always media. `recording` (open) is NOT here -
17635
+ // open is redacted ONLY when the answer is a recording (handled below).
17636
+ ...Object.entries(NODE_TYPES).filter(([, v]) => v.respondent_media === "files" || v.respondent_media === "drawing").map(([t, v]) => [t, `[${v.label.toLowerCase()} - view in dashboard]`])
17637
+ ]);
17627
17638
  function truncate(s, n = MAX_ANSWER_LENGTH) {
17628
17639
  return s.length > n ? `${s.slice(0, n - 1)}\u2026` : s;
17629
17640
  }
@@ -18365,7 +18376,7 @@ function registerCompleteMediaUploadTool(server) {
18365
18376
  }
18366
18377
 
18367
18378
  // src/tools/attach-node-media.ts
18368
- var MEDIA_SUPPORTED_TYPES = Object.entries(NODE_TYPES).filter(([, def]) => def.supports_media).map(([type]) => type);
18379
+ var MEDIA_SUPPORTED_TYPES = Object.entries(NODE_TYPES).filter(([type, def]) => def.supports_media && (type !== "booking" || def.is_active)).map(([type]) => type);
18369
18380
  var AttachMediaItemSchema = external_exports.object({
18370
18381
  node_id: external_exports.string().describe("The node ID"),
18371
18382
  media_asset_id: external_exports.string().describe("A media asset ID returned by clipform_upload_media_asset"),
@@ -20381,4 +20392,4 @@ export {
20381
20392
  * MIT Licensed
20382
20393
  *)
20383
20394
  */
20384
- //# sourceMappingURL=chunk-RXXA4TT3.js.map
20395
+ //# sourceMappingURL=chunk-73ITJK4L.js.map