@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RJEDJCRG.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_VARIANTS,
|
|
7
7
|
FORM_TYPES,
|
|
8
8
|
FORM_TYPE_KEYS,
|
|
9
9
|
callApi
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RCV5SMNI.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-
|
|
158
|
+
//# sourceMappingURL=chunk-LMOMZNIZ.js.map
|
|
@@ -96,8 +96,11 @@ var FEATURES = {
|
|
|
96
96
|
multi_select: {
|
|
97
97
|
name: "Multi-select choices",
|
|
98
98
|
description: "Pick-all-that-apply choice questions (checkbox-style selection)",
|
|
99
|
+
// Dogfood-only (#151): invisible beta - enabled:false, never 'live'/'planned' so
|
|
100
|
+
// no public surface lists it. Available to FEATURE_COMPANY_ALLOWLIST.multi_select
|
|
101
|
+
// via companyHasMultiSelect; the global flip (+ wentLiveAt) is the launch step.
|
|
99
102
|
enabled: false,
|
|
100
|
-
status: "
|
|
103
|
+
status: "beta",
|
|
101
104
|
category: "builder"
|
|
102
105
|
},
|
|
103
106
|
custom_fonts: {
|
|
@@ -870,7 +873,9 @@ var DRAW_PRESETS = [
|
|
|
870
873
|
{ id: "feet-soles", label: "Feet diagram - soles", shortLabel: "Soles", file: "feet-soles.png", group: "body" },
|
|
871
874
|
{ id: "face-profile", label: "Face diagram - profile", shortLabel: "Face", file: "face-profile.png", group: "body" },
|
|
872
875
|
{ id: "vehicle-sides", label: "Vehicle diagram - sides", shortLabel: "Sides", file: "vehicle-sides.png", group: "vehicle" },
|
|
873
|
-
{ id: "vehicle-top", label: "Vehicle diagram - top and ends", shortLabel: "Top and ends", file: "vehicle-top.png", group: "vehicle" }
|
|
876
|
+
{ id: "vehicle-top", label: "Vehicle diagram - top and ends", shortLabel: "Top and ends", file: "vehicle-top.png", group: "vehicle" },
|
|
877
|
+
{ id: "dog-sides", label: "Dog diagram - sides", shortLabel: "Dog", file: "dog-sides.png", group: "animal" },
|
|
878
|
+
{ id: "cat-sides", label: "Cat diagram - sides", shortLabel: "Cat", file: "cat-sides.png", group: "animal" }
|
|
874
879
|
];
|
|
875
880
|
var DRAW_PRESET_IDS = DRAW_PRESETS.map((p) => p.id);
|
|
876
881
|
|
|
@@ -945,6 +950,8 @@ var NODE_TYPES = {
|
|
|
945
950
|
supports_media: false,
|
|
946
951
|
is_system: true,
|
|
947
952
|
show_in_results: false,
|
|
953
|
+
pii: false,
|
|
954
|
+
respondent_media: null,
|
|
948
955
|
// Never appears in a completed submission's answers (system node, no
|
|
949
956
|
// output_schema) - false is a no-op default, set for guard-test coverage.
|
|
950
957
|
notify_inline: false,
|
|
@@ -973,6 +980,8 @@ var NODE_TYPES = {
|
|
|
973
980
|
supports_media: true,
|
|
974
981
|
is_system: false,
|
|
975
982
|
show_in_results: true,
|
|
983
|
+
pii: false,
|
|
984
|
+
respondent_media: null,
|
|
976
985
|
// Short selected-option label - safe to render inline in a notification (#4154).
|
|
977
986
|
notify_inline: true,
|
|
978
987
|
owner_scoped_config_keys: [],
|
|
@@ -1020,6 +1029,25 @@ var NODE_TYPES = {
|
|
|
1020
1029
|
default: "single",
|
|
1021
1030
|
description: 'Allow single or multiple selections. "multiple" is gated by the multi_select feature - while it is off, the API coerces it to "single" (the viewer renders single-select only).'
|
|
1022
1031
|
},
|
|
1032
|
+
// Pick limits for multiple mode. Inert on single (kept stored, never read).
|
|
1033
|
+
min_selections: {
|
|
1034
|
+
type: "number",
|
|
1035
|
+
min: 1,
|
|
1036
|
+
default: 1,
|
|
1037
|
+
feature: "multi_select",
|
|
1038
|
+
label: "Minimum picks",
|
|
1039
|
+
shortLabel: "Min",
|
|
1040
|
+
description: "Fewest options a respondent must pick before continuing (multiple selection only)"
|
|
1041
|
+
},
|
|
1042
|
+
max_selections: {
|
|
1043
|
+
type: "number",
|
|
1044
|
+
min: 1,
|
|
1045
|
+
max: 6,
|
|
1046
|
+
feature: "multi_select",
|
|
1047
|
+
label: "Picks",
|
|
1048
|
+
shortLabel: "Max",
|
|
1049
|
+
description: "Fewest and most options a respondent can pick (multiple selection only). Leave Max empty for no limit."
|
|
1050
|
+
},
|
|
1023
1051
|
allow_text_response: {
|
|
1024
1052
|
type: "boolean",
|
|
1025
1053
|
label: "Allow text response",
|
|
@@ -1053,17 +1081,28 @@ var NODE_TYPES = {
|
|
|
1053
1081
|
}
|
|
1054
1082
|
}
|
|
1055
1083
|
},
|
|
1084
|
+
// Single-select = the bare option id; multi-select = a bare array of option ids
|
|
1085
|
+
// (#151). Readers key on the data shape, never on the node's current selection_mode.
|
|
1056
1086
|
response_schema: {
|
|
1057
|
-
|
|
1058
|
-
|
|
1087
|
+
description: "Selected option ID (single-select) or an array of selected option IDs (multi-select)",
|
|
1088
|
+
oneOf: [
|
|
1089
|
+
{ type: "string" },
|
|
1090
|
+
{ type: "array", items: { type: "string" }, minItems: 1, maxItems: 6 }
|
|
1091
|
+
]
|
|
1059
1092
|
},
|
|
1060
1093
|
output_schema: {
|
|
1061
1094
|
type: "object",
|
|
1062
|
-
required: ["node_type", "label"
|
|
1095
|
+
required: ["node_type", "label"],
|
|
1096
|
+
oneOf: [
|
|
1097
|
+
{ type: "object", required: ["option_id"] },
|
|
1098
|
+
{ type: "object", required: ["labels", "option_ids"] }
|
|
1099
|
+
],
|
|
1063
1100
|
properties: {
|
|
1064
1101
|
node_type: { type: "string", const: "choice" },
|
|
1065
|
-
label: { type: "string", description:
|
|
1066
|
-
option_id: { type: "string", format: "uuid", description: "Selected option UUID" }
|
|
1102
|
+
label: { type: "string", description: 'Human-readable option label (multi-select: the picked labels joined with ", " in option order)' },
|
|
1103
|
+
option_id: { type: "string", format: "uuid", description: "Selected option UUID (single-select only)" },
|
|
1104
|
+
labels: { type: "array", items: { type: "string" }, description: "Picked option labels in option order (multi-select only)" },
|
|
1105
|
+
option_ids: { type: "array", items: { type: "string", format: "uuid" }, description: "Picked option UUIDs in option order (multi-select only)" }
|
|
1067
1106
|
}
|
|
1068
1107
|
}
|
|
1069
1108
|
},
|
|
@@ -1083,6 +1122,8 @@ var NODE_TYPES = {
|
|
|
1083
1122
|
supports_media: true,
|
|
1084
1123
|
is_system: false,
|
|
1085
1124
|
show_in_results: true,
|
|
1125
|
+
pii: false,
|
|
1126
|
+
respondent_media: "recording",
|
|
1086
1127
|
// True for the common short-text case; a channel notification (#4154)
|
|
1087
1128
|
// still swaps a recorded audio/video answer for a typed placeholder
|
|
1088
1129
|
// based on the answer's own media type, not this flag.
|
|
@@ -1235,6 +1276,8 @@ var NODE_TYPES = {
|
|
|
1235
1276
|
supports_media: true,
|
|
1236
1277
|
is_system: false,
|
|
1237
1278
|
show_in_results: true,
|
|
1279
|
+
pii: false,
|
|
1280
|
+
respondent_media: null,
|
|
1238
1281
|
// A bare numeric value - short enough to render inline (#4154).
|
|
1239
1282
|
notify_inline: true,
|
|
1240
1283
|
owner_scoped_config_keys: [],
|
|
@@ -1268,10 +1311,13 @@ var NODE_TYPES = {
|
|
|
1268
1311
|
is_terminal: false,
|
|
1269
1312
|
show_nav_bar: true,
|
|
1270
1313
|
loading: "lazy",
|
|
1271
|
-
supports_prompt:
|
|
1272
|
-
supports_media:
|
|
1314
|
+
supports_prompt: true,
|
|
1315
|
+
supports_media: true,
|
|
1273
1316
|
is_system: false,
|
|
1274
1317
|
show_in_results: true,
|
|
1318
|
+
// Invitee name/email plus cancel/reschedule URLs (BOOKING_RESULT_SCHEMA).
|
|
1319
|
+
pii: true,
|
|
1320
|
+
respondent_media: null,
|
|
1275
1321
|
// Structured provider data (calendly/google_meet), not a flat value -
|
|
1276
1322
|
// a notification renders a typed placeholder instead (#4154).
|
|
1277
1323
|
notify_inline: false,
|
|
@@ -1284,7 +1330,7 @@ var NODE_TYPES = {
|
|
|
1284
1330
|
// owner-scoped-config-keys.test.js binds the union of flat keys to the latest
|
|
1285
1331
|
// save_form migration's strip array, so dropping it would force a migration.
|
|
1286
1332
|
owner_scoped_config_keys: ["workspace_integration_id", "calendly", "calcom", "google_meet"],
|
|
1287
|
-
// The viewer iframes calendly scheduling_url (
|
|
1333
|
+
// The viewer iframes calendly scheduling_url (booking/CalendlyScheduler.tsx): an outbound embed.
|
|
1288
1334
|
// Unclaimed anonymous-MCP forms may not go live with this node (#4847).
|
|
1289
1335
|
blocked_for_anon_mcp: true,
|
|
1290
1336
|
default_config: null,
|
|
@@ -1346,6 +1392,8 @@ var NODE_TYPES = {
|
|
|
1346
1392
|
supports_media: false,
|
|
1347
1393
|
is_system: false,
|
|
1348
1394
|
show_in_results: false,
|
|
1395
|
+
pii: true,
|
|
1396
|
+
respondent_media: null,
|
|
1349
1397
|
// Excluded from the aggregate Results charts (a list of emails can't be
|
|
1350
1398
|
// charted) but DOES show in the per-response Responses table, where each
|
|
1351
1399
|
// lead's contact fields are actionable (#746).
|
|
@@ -1531,6 +1579,8 @@ var NODE_TYPES = {
|
|
|
1531
1579
|
supports_media: false,
|
|
1532
1580
|
is_system: false,
|
|
1533
1581
|
show_in_results: true,
|
|
1582
|
+
pii: false,
|
|
1583
|
+
respondent_media: "files",
|
|
1534
1584
|
// Files, not a flat value - a notification renders a typed placeholder (#4154).
|
|
1535
1585
|
notify_inline: false,
|
|
1536
1586
|
owner_scoped_config_keys: [],
|
|
@@ -1628,6 +1678,8 @@ var NODE_TYPES = {
|
|
|
1628
1678
|
supports_media: true,
|
|
1629
1679
|
is_system: false,
|
|
1630
1680
|
show_in_results: true,
|
|
1681
|
+
pii: false,
|
|
1682
|
+
respondent_media: "drawing",
|
|
1631
1683
|
// An image, not a flat value - a notification renders a typed placeholder (#4154).
|
|
1632
1684
|
notify_inline: false,
|
|
1633
1685
|
owner_scoped_config_keys: [],
|
|
@@ -1836,6 +1888,8 @@ var NODE_TYPES = {
|
|
|
1836
1888
|
supports_media: false,
|
|
1837
1889
|
is_system: false,
|
|
1838
1890
|
show_in_results: true,
|
|
1891
|
+
pii: false,
|
|
1892
|
+
respondent_media: "files",
|
|
1839
1893
|
// A captured photo/video, not a flat value - a notification renders a
|
|
1840
1894
|
// typed placeholder (#4154).
|
|
1841
1895
|
notify_inline: false,
|
|
@@ -2025,6 +2079,8 @@ var NODE_TYPES = {
|
|
|
2025
2079
|
supports_media: false,
|
|
2026
2080
|
is_system: false,
|
|
2027
2081
|
show_in_results: false,
|
|
2082
|
+
pii: false,
|
|
2083
|
+
respondent_media: null,
|
|
2028
2084
|
// Logic/routing node - no respondent answer to render in a channel
|
|
2029
2085
|
// notification, same as the other control nodes (redirect, link_list,
|
|
2030
2086
|
// end_screen). Required by the #4154 notify_inline invariant.
|
|
@@ -2056,6 +2112,8 @@ var NODE_TYPES = {
|
|
|
2056
2112
|
supports_media: false,
|
|
2057
2113
|
is_system: false,
|
|
2058
2114
|
show_in_results: true,
|
|
2115
|
+
pii: true,
|
|
2116
|
+
respondent_media: null,
|
|
2059
2117
|
// Config keys that are owner-scoped to the authoring workspace - a connected
|
|
2060
2118
|
// account (Stripe/etc via workspace_integrations), the owner's own uploaded
|
|
2061
2119
|
// files, or a calendar link - and so must NOT survive a cross-workspace copy
|
|
@@ -2213,6 +2271,8 @@ var NODE_TYPES = {
|
|
|
2213
2271
|
supports_media: true,
|
|
2214
2272
|
is_system: false,
|
|
2215
2273
|
show_in_results: true,
|
|
2274
|
+
pii: false,
|
|
2275
|
+
respondent_media: null,
|
|
2216
2276
|
// Short selected-option label - safe to render inline (#4154).
|
|
2217
2277
|
notify_inline: true,
|
|
2218
2278
|
owner_scoped_config_keys: [],
|
|
@@ -2278,6 +2338,8 @@ var NODE_TYPES = {
|
|
|
2278
2338
|
supports_media: true,
|
|
2279
2339
|
is_system: false,
|
|
2280
2340
|
show_in_results: false,
|
|
2341
|
+
pii: false,
|
|
2342
|
+
respondent_media: null,
|
|
2281
2343
|
// Short selected-option label - safe to render inline (#4154).
|
|
2282
2344
|
notify_inline: true,
|
|
2283
2345
|
owner_scoped_config_keys: [],
|
|
@@ -2319,6 +2381,8 @@ var NODE_TYPES = {
|
|
|
2319
2381
|
supports_media: false,
|
|
2320
2382
|
is_system: false,
|
|
2321
2383
|
show_in_results: false,
|
|
2384
|
+
pii: false,
|
|
2385
|
+
respondent_media: null,
|
|
2322
2386
|
// Terminal node - never appears in a completed submission's answers
|
|
2323
2387
|
// (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
|
|
2324
2388
|
notify_inline: false,
|
|
@@ -2355,6 +2419,8 @@ var NODE_TYPES = {
|
|
|
2355
2419
|
supports_media: false,
|
|
2356
2420
|
is_system: false,
|
|
2357
2421
|
show_in_results: false,
|
|
2422
|
+
pii: false,
|
|
2423
|
+
respondent_media: null,
|
|
2358
2424
|
// Terminal node - never appears in a completed submission's answers
|
|
2359
2425
|
// (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
|
|
2360
2426
|
notify_inline: false,
|
|
@@ -2406,6 +2472,8 @@ var NODE_TYPES = {
|
|
|
2406
2472
|
supports_media: false,
|
|
2407
2473
|
is_system: false,
|
|
2408
2474
|
show_in_results: true,
|
|
2475
|
+
pii: false,
|
|
2476
|
+
respondent_media: null,
|
|
2409
2477
|
// Files, not a flat value - a notification renders a typed placeholder (#4154).
|
|
2410
2478
|
notify_inline: false,
|
|
2411
2479
|
// The owner's own uploaded files (#4617) - stripped on cross-workspace
|
|
@@ -2494,6 +2562,8 @@ var NODE_TYPES = {
|
|
|
2494
2562
|
supports_media: false,
|
|
2495
2563
|
is_system: false,
|
|
2496
2564
|
show_in_results: false,
|
|
2565
|
+
pii: false,
|
|
2566
|
+
respondent_media: null,
|
|
2497
2567
|
// No response_schema - never carries a flat answer value; false is a no-op default.
|
|
2498
2568
|
notify_inline: false,
|
|
2499
2569
|
owner_scoped_config_keys: [],
|
|
@@ -2565,6 +2635,8 @@ var NODE_TYPES = {
|
|
|
2565
2635
|
supports_media: false,
|
|
2566
2636
|
is_system: false,
|
|
2567
2637
|
show_in_results: false,
|
|
2638
|
+
pii: false,
|
|
2639
|
+
respondent_media: null,
|
|
2568
2640
|
// Terminal node - never appears in a completed submission's answers
|
|
2569
2641
|
// (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
|
|
2570
2642
|
notify_inline: false,
|
|
@@ -2680,6 +2752,10 @@ var TERMINAL_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.is_terminal)
|
|
|
2680
2752
|
var NON_COUNTABLE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.is_system || v.is_terminal).map(([k]) => k);
|
|
2681
2753
|
var NON_COUNTABLE_FILTER = `(${NON_COUNTABLE_TYPES.map((t) => `"${t}"`).join(",")})`;
|
|
2682
2754
|
var RESULTS_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => !v.show_in_results).map(([k]) => k);
|
|
2755
|
+
var PII_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.pii).map(([k]) => k);
|
|
2756
|
+
var RESPONDENT_MEDIA_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.respondent_media !== null).map(([k]) => k);
|
|
2757
|
+
var FILE_ANSWER_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.respondent_media === "files").map(([k]) => k);
|
|
2758
|
+
var PUBLIC_RESULTS_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.pii || v.respondent_media === "files" || v.respondent_media === "drawing").map(([k]) => k);
|
|
2683
2759
|
var NON_STEP_TYPES = /* @__PURE__ */ new Set(["button"]);
|
|
2684
2760
|
var STEP_COUNTED_TYPES = Object.entries(NODE_TYPES).filter(([k, v]) => v.show_nav_bar && !NON_STEP_TYPES.has(k)).map(([k]) => k);
|
|
2685
2761
|
var RESPONSES_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => !(v.show_in_responses ?? v.show_in_results)).map(([k]) => k);
|
|
@@ -3002,8 +3078,12 @@ function getDiscoveryParams(formType, variant, mode = "full") {
|
|
|
3002
3078
|
// ../config/logic-types.js
|
|
3003
3079
|
function isBranchingActive(node) {
|
|
3004
3080
|
if (!node) return true;
|
|
3081
|
+
if (isMultiSelectChoice(node)) return false;
|
|
3005
3082
|
return node.type === "choice" || node.type === "binary" ? node.config?.choice?.enable_branching === true : true;
|
|
3006
3083
|
}
|
|
3084
|
+
function isMultiSelectChoice(node) {
|
|
3085
|
+
return node?.type === "choice" && node.config?.selection_mode === "multiple";
|
|
3086
|
+
}
|
|
3007
3087
|
function isOptionEdge(action) {
|
|
3008
3088
|
return !!action?.condition?.vars?.some((v) => v.type === "option");
|
|
3009
3089
|
}
|
|
@@ -3639,6 +3719,7 @@ export {
|
|
|
3639
3719
|
stripGatedConfigKeys,
|
|
3640
3720
|
ACTIVE_NODE_TYPES,
|
|
3641
3721
|
NON_COUNTABLE_TYPES,
|
|
3722
|
+
PII_NODE_TYPES,
|
|
3642
3723
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
3643
3724
|
isAnonMcpLockedNode,
|
|
3644
3725
|
FORM_TYPES,
|
|
@@ -3668,4 +3749,4 @@ export {
|
|
|
3668
3749
|
textResult,
|
|
3669
3750
|
structuredResult
|
|
3670
3751
|
};
|
|
3671
|
-
//# sourceMappingURL=chunk-
|
|
3752
|
+
//# sourceMappingURL=chunk-RCV5SMNI.js.map
|