@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.
- package/dist/api-client.js +1 -1
- package/dist/{chunk-RXXA4TT3.js → chunk-73ITJK4L.js} +26 -15
- package/dist/{chunk-RXXA4TT3.js.map → chunk-73ITJK4L.js.map} +1 -1
- package/dist/{chunk-BZPLNFYU.js → chunk-LMOMZNIZ.js} +3 -3
- package/dist/{chunk-6DSCZEF7.js → chunk-RCV5SMNI.js} +92 -11
- package/dist/chunk-RCV5SMNI.js.map +1 -0
- package/dist/{chunk-Z43YF3UB.js → chunk-RJEDJCRG.js} +2 -2
- package/dist/{chunk-CANFXI4D.js → chunk-UOS5NXG6.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/prompts.js +3 -3
- package/dist/resources.js +3 -3
- package/dist/server.js +5 -5
- package/package.json +2 -2
- package/server.json +2 -2
- package/dist/chunk-6DSCZEF7.js.map +0 -1
- /package/dist/{chunk-BZPLNFYU.js.map → chunk-LMOMZNIZ.js.map} +0 -0
- /package/dist/{chunk-Z43YF3UB.js.map → chunk-RJEDJCRG.js.map} +0 -0
- /package/dist/{chunk-CANFXI4D.js.map → chunk-UOS5NXG6.js.map} +0 -0
package/dist/api-client.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
union,
|
|
30
30
|
unknown,
|
|
31
31
|
url
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
//
|
|
17623
|
-
//
|
|
17624
|
-
|
|
17625
|
-
|
|
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-
|
|
20395
|
+
//# sourceMappingURL=chunk-73ITJK4L.js.map
|