@clipform/mcp-server 4.9.0 → 4.10.1

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-B2ZAUNEV.js";
9
+ } from "./chunk-72MALJLK.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -2,7 +2,7 @@ import {
2
2
  CURRENT_PLAN_VERSIONS,
3
3
  PLAN_LIMITS,
4
4
  callApi
5
- } from "./chunk-B2ZAUNEV.js";
5
+ } from "./chunk-72MALJLK.js";
6
6
  import {
7
7
  getMcpAuth
8
8
  } from "./chunk-ENVV65JX.js";
@@ -145,4 +145,4 @@ export {
145
145
  getSessionContextWithAuth,
146
146
  getSessionContext
147
147
  };
148
- //# sourceMappingURL=chunk-MON5YGPS.js.map
148
+ //# sourceMappingURL=chunk-2LQ5LNZ2.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: "planned",
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",
@@ -1094,6 +1122,8 @@ var NODE_TYPES = {
1094
1122
  supports_media: true,
1095
1123
  is_system: false,
1096
1124
  show_in_results: true,
1125
+ pii: false,
1126
+ respondent_media: "recording",
1097
1127
  // True for the common short-text case; a channel notification (#4154)
1098
1128
  // still swaps a recorded audio/video answer for a typed placeholder
1099
1129
  // based on the answer's own media type, not this flag.
@@ -1246,6 +1276,8 @@ var NODE_TYPES = {
1246
1276
  supports_media: true,
1247
1277
  is_system: false,
1248
1278
  show_in_results: true,
1279
+ pii: false,
1280
+ respondent_media: null,
1249
1281
  // A bare numeric value - short enough to render inline (#4154).
1250
1282
  notify_inline: true,
1251
1283
  owner_scoped_config_keys: [],
@@ -1279,10 +1311,15 @@ var NODE_TYPES = {
1279
1311
  is_terminal: false,
1280
1312
  show_nav_bar: true,
1281
1313
  loading: "lazy",
1282
- supports_prompt: false,
1314
+ supports_prompt: true,
1283
1315
  supports_media: false,
1316
+ // The interaction takes the stage height under the prompt (an inline embed).
1317
+ interaction_fills_stage: true,
1284
1318
  is_system: false,
1285
1319
  show_in_results: true,
1320
+ // Invitee name/email plus cancel/reschedule URLs (BOOKING_RESULT_SCHEMA).
1321
+ pii: true,
1322
+ respondent_media: null,
1286
1323
  // Structured provider data (calendly/google_meet), not a flat value -
1287
1324
  // a notification renders a typed placeholder instead (#4154).
1288
1325
  notify_inline: false,
@@ -1295,7 +1332,7 @@ var NODE_TYPES = {
1295
1332
  // owner-scoped-config-keys.test.js binds the union of flat keys to the latest
1296
1333
  // save_form migration's strip array, so dropping it would force a migration.
1297
1334
  owner_scoped_config_keys: ["workspace_integration_id", "calendly", "calcom", "google_meet"],
1298
- // The viewer iframes calendly scheduling_url (Booking.tsx): an outbound embed.
1335
+ // The viewer iframes calendly scheduling_url (booking/CalendlyScheduler.tsx): an outbound embed.
1299
1336
  // Unclaimed anonymous-MCP forms may not go live with this node (#4847).
1300
1337
  blocked_for_anon_mcp: true,
1301
1338
  default_config: null,
@@ -1357,6 +1394,8 @@ var NODE_TYPES = {
1357
1394
  supports_media: false,
1358
1395
  is_system: false,
1359
1396
  show_in_results: false,
1397
+ pii: true,
1398
+ respondent_media: null,
1360
1399
  // Excluded from the aggregate Results charts (a list of emails can't be
1361
1400
  // charted) but DOES show in the per-response Responses table, where each
1362
1401
  // lead's contact fields are actionable (#746).
@@ -1542,6 +1581,8 @@ var NODE_TYPES = {
1542
1581
  supports_media: false,
1543
1582
  is_system: false,
1544
1583
  show_in_results: true,
1584
+ pii: false,
1585
+ respondent_media: "files",
1545
1586
  // Files, not a flat value - a notification renders a typed placeholder (#4154).
1546
1587
  notify_inline: false,
1547
1588
  owner_scoped_config_keys: [],
@@ -1639,6 +1680,8 @@ var NODE_TYPES = {
1639
1680
  supports_media: true,
1640
1681
  is_system: false,
1641
1682
  show_in_results: true,
1683
+ pii: false,
1684
+ respondent_media: "drawing",
1642
1685
  // An image, not a flat value - a notification renders a typed placeholder (#4154).
1643
1686
  notify_inline: false,
1644
1687
  owner_scoped_config_keys: [],
@@ -1847,6 +1890,8 @@ var NODE_TYPES = {
1847
1890
  supports_media: false,
1848
1891
  is_system: false,
1849
1892
  show_in_results: true,
1893
+ pii: false,
1894
+ respondent_media: "files",
1850
1895
  // A captured photo/video, not a flat value - a notification renders a
1851
1896
  // typed placeholder (#4154).
1852
1897
  notify_inline: false,
@@ -2036,6 +2081,8 @@ var NODE_TYPES = {
2036
2081
  supports_media: false,
2037
2082
  is_system: false,
2038
2083
  show_in_results: false,
2084
+ pii: false,
2085
+ respondent_media: null,
2039
2086
  // Logic/routing node - no respondent answer to render in a channel
2040
2087
  // notification, same as the other control nodes (redirect, link_list,
2041
2088
  // end_screen). Required by the #4154 notify_inline invariant.
@@ -2067,6 +2114,8 @@ var NODE_TYPES = {
2067
2114
  supports_media: false,
2068
2115
  is_system: false,
2069
2116
  show_in_results: true,
2117
+ pii: true,
2118
+ respondent_media: null,
2070
2119
  // Config keys that are owner-scoped to the authoring workspace - a connected
2071
2120
  // account (Stripe/etc via workspace_integrations), the owner's own uploaded
2072
2121
  // files, or a calendar link - and so must NOT survive a cross-workspace copy
@@ -2224,6 +2273,8 @@ var NODE_TYPES = {
2224
2273
  supports_media: true,
2225
2274
  is_system: false,
2226
2275
  show_in_results: true,
2276
+ pii: false,
2277
+ respondent_media: null,
2227
2278
  // Short selected-option label - safe to render inline (#4154).
2228
2279
  notify_inline: true,
2229
2280
  owner_scoped_config_keys: [],
@@ -2289,6 +2340,8 @@ var NODE_TYPES = {
2289
2340
  supports_media: true,
2290
2341
  is_system: false,
2291
2342
  show_in_results: false,
2343
+ pii: false,
2344
+ respondent_media: null,
2292
2345
  // Short selected-option label - safe to render inline (#4154).
2293
2346
  notify_inline: true,
2294
2347
  owner_scoped_config_keys: [],
@@ -2330,6 +2383,8 @@ var NODE_TYPES = {
2330
2383
  supports_media: false,
2331
2384
  is_system: false,
2332
2385
  show_in_results: false,
2386
+ pii: false,
2387
+ respondent_media: null,
2333
2388
  // Terminal node - never appears in a completed submission's answers
2334
2389
  // (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
2335
2390
  notify_inline: false,
@@ -2366,6 +2421,8 @@ var NODE_TYPES = {
2366
2421
  supports_media: false,
2367
2422
  is_system: false,
2368
2423
  show_in_results: false,
2424
+ pii: false,
2425
+ respondent_media: null,
2369
2426
  // Terminal node - never appears in a completed submission's answers
2370
2427
  // (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
2371
2428
  notify_inline: false,
@@ -2417,6 +2474,8 @@ var NODE_TYPES = {
2417
2474
  supports_media: false,
2418
2475
  is_system: false,
2419
2476
  show_in_results: true,
2477
+ pii: false,
2478
+ respondent_media: null,
2420
2479
  // Files, not a flat value - a notification renders a typed placeholder (#4154).
2421
2480
  notify_inline: false,
2422
2481
  // The owner's own uploaded files (#4617) - stripped on cross-workspace
@@ -2505,6 +2564,8 @@ var NODE_TYPES = {
2505
2564
  supports_media: false,
2506
2565
  is_system: false,
2507
2566
  show_in_results: false,
2567
+ pii: false,
2568
+ respondent_media: null,
2508
2569
  // No response_schema - never carries a flat answer value; false is a no-op default.
2509
2570
  notify_inline: false,
2510
2571
  owner_scoped_config_keys: [],
@@ -2576,6 +2637,8 @@ var NODE_TYPES = {
2576
2637
  supports_media: false,
2577
2638
  is_system: false,
2578
2639
  show_in_results: false,
2640
+ pii: false,
2641
+ respondent_media: null,
2579
2642
  // Terminal node - never appears in a completed submission's answers
2580
2643
  // (filtered by NON_COUNTABLE_FILTER); false is a no-op default.
2581
2644
  notify_inline: false,
@@ -2684,13 +2747,18 @@ var NODE_TYPE_METADATA = Object.fromEntries(
2684
2747
  is_terminal: v.is_terminal,
2685
2748
  show_nav_bar: v.show_nav_bar,
2686
2749
  category: v.category,
2687
- loading: v.loading
2750
+ loading: v.loading,
2751
+ interaction_fills_stage: v.interaction_fills_stage === true
2688
2752
  }])
2689
2753
  );
2690
2754
  var TERMINAL_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.is_terminal).map(([k]) => k);
2691
2755
  var NON_COUNTABLE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.is_system || v.is_terminal).map(([k]) => k);
2692
2756
  var NON_COUNTABLE_FILTER = `(${NON_COUNTABLE_TYPES.map((t) => `"${t}"`).join(",")})`;
2693
2757
  var RESULTS_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => !v.show_in_results).map(([k]) => k);
2758
+ var PII_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.pii).map(([k]) => k);
2759
+ var RESPONDENT_MEDIA_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.respondent_media !== null).map(([k]) => k);
2760
+ var FILE_ANSWER_NODE_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.respondent_media === "files").map(([k]) => k);
2761
+ var PUBLIC_RESULTS_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => v.pii || v.respondent_media === "files" || v.respondent_media === "drawing").map(([k]) => k);
2694
2762
  var NON_STEP_TYPES = /* @__PURE__ */ new Set(["button"]);
2695
2763
  var STEP_COUNTED_TYPES = Object.entries(NODE_TYPES).filter(([k, v]) => v.show_nav_bar && !NON_STEP_TYPES.has(k)).map(([k]) => k);
2696
2764
  var RESPONSES_EXCLUDED_TYPES = Object.entries(NODE_TYPES).filter(([, v]) => !(v.show_in_responses ?? v.show_in_results)).map(([k]) => k);
@@ -3013,8 +3081,12 @@ function getDiscoveryParams(formType, variant, mode = "full") {
3013
3081
  // ../config/logic-types.js
3014
3082
  function isBranchingActive(node) {
3015
3083
  if (!node) return true;
3084
+ if (isMultiSelectChoice(node)) return false;
3016
3085
  return node.type === "choice" || node.type === "binary" ? node.config?.choice?.enable_branching === true : true;
3017
3086
  }
3087
+ function isMultiSelectChoice(node) {
3088
+ return node?.type === "choice" && node.config?.selection_mode === "multiple";
3089
+ }
3018
3090
  function isOptionEdge(action) {
3019
3091
  return !!action?.condition?.vars?.some((v) => v.type === "option");
3020
3092
  }
@@ -3650,6 +3722,7 @@ export {
3650
3722
  stripGatedConfigKeys,
3651
3723
  ACTIVE_NODE_TYPES,
3652
3724
  NON_COUNTABLE_TYPES,
3725
+ PII_NODE_TYPES,
3653
3726
  ANON_MCP_BLOCKED_NODE_TYPES,
3654
3727
  isAnonMcpLockedNode,
3655
3728
  FORM_TYPES,
@@ -3679,4 +3752,4 @@ export {
3679
3752
  textResult,
3680
3753
  structuredResult
3681
3754
  };
3682
- //# sourceMappingURL=chunk-B2ZAUNEV.js.map
3755
+ //# sourceMappingURL=chunk-72MALJLK.js.map