@clipform/mcp-server 5.5.0 → 5.5.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-QT2M5FQQ.js";
9
+ } from "./chunk-MDTLZRW2.js";
10
10
  import "./chunk-ENVV65JX.js";
11
11
  import "./chunk-PBQ5BQWD.js";
12
12
  import "./chunk-PZ5AY32C.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FULL_CAPS,
3
3
  getSessionContextWithAuth
4
- } from "./chunk-G7FS2BAC.js";
4
+ } from "./chunk-SOK5Z76R.js";
5
5
  import {
6
6
  FORM_TYPES,
7
7
  MAX_CLIP_SECONDS,
@@ -10,7 +10,7 @@ import {
10
10
  WORKFLOW_TYPES,
11
11
  exposedCompositionIds,
12
12
  getDiscoveryParams
13
- } from "./chunk-QT2M5FQQ.js";
13
+ } from "./chunk-MDTLZRW2.js";
14
14
  import {
15
15
  __export
16
16
  } from "./chunk-PZ5AY32C.js";
@@ -15259,4 +15259,4 @@ export {
15259
15259
  getWorkflowText,
15260
15260
  registerPrompts
15261
15261
  };
15262
- //# sourceMappingURL=chunk-5EQGV5VF.js.map
15262
+ //# sourceMappingURL=chunk-GT7V45HP.js.map
@@ -42,7 +42,11 @@ var FEATURES = {
42
42
  enabled: true,
43
43
  status: "live",
44
44
  category: "builder",
45
- wentLiveAt: "2026-10-02"
45
+ wentLiveAt: "2026-10-02",
46
+ announce: {
47
+ headline: "Attach a PDF agreement to consent",
48
+ benefit: "Respondents read it inline and scroll to accept before they continue."
49
+ }
46
50
  },
47
51
  node_logic: {
48
52
  name: "Node routing logic",
@@ -262,7 +266,11 @@ var FEATURES = {
262
266
  enabled: true,
263
267
  status: "live",
264
268
  wentLiveAt: "2026-11-08",
265
- category: "node-types"
269
+ category: "node-types",
270
+ announce: {
271
+ headline: "Let people book a call right in your form",
272
+ benefit: "Add a Booking step and respondents pick a Calendly time slot without leaving the form."
273
+ }
266
274
  },
267
275
  node_draw: {
268
276
  name: "Drawing",
@@ -274,7 +282,11 @@ var FEATURES = {
274
282
  enabled: true,
275
283
  status: "live",
276
284
  wentLiveAt: "2026-10-26",
277
- category: "node-types"
285
+ category: "node-types",
286
+ announce: {
287
+ headline: "Let respondents draw their answer",
288
+ benefit: "Add a Drawing step and each sketch is saved as an image you can view in Responses."
289
+ }
278
290
  },
279
291
  node_camera: {
280
292
  name: "Camera",
@@ -287,7 +299,11 @@ var FEATURES = {
287
299
  enabled: true,
288
300
  status: "live",
289
301
  wentLiveAt: "2026-10-26",
290
- category: "node-types"
302
+ category: "node-types",
303
+ announce: {
304
+ headline: "Ask for a photo or video from the camera",
305
+ benefit: "Respondents capture it on their device and it lands with their answers."
306
+ }
291
307
  },
292
308
  node_conditional: {
293
309
  name: "If / then",
@@ -419,7 +435,11 @@ var FEATURES = {
419
435
  enabled: true,
420
436
  status: "live",
421
437
  wentLiveAt: "2026-11-05",
422
- category: "analytics"
438
+ category: "analytics",
439
+ announce: {
440
+ headline: "Download responses as an Excel file",
441
+ benefit: "Get the same columns as the CSV export, ready to open in Excel."
442
+ }
423
443
  },
424
444
  // Backfilled (#4338): the Responses table's search box (DataSpreadsheet's
425
445
  // globalFilter, TanStack default `includesString` across every visible
@@ -772,7 +792,11 @@ var FEATURES = {
772
792
  enabled: true,
773
793
  status: "live",
774
794
  category: "responses",
775
- wentLiveAt: "2026-10-15"
795
+ wentLiveAt: "2026-10-15",
796
+ announce: {
797
+ headline: "Copy a transcript in one click",
798
+ benefit: "Copy a whole response transcript, or a single line, as plain text."
799
+ }
776
800
  },
777
801
  // Went live globally (#4920); gated in the dashboard via companyHasMediaPlayer
778
802
  // (kill switch: set enabled:false + status:'beta' - 'live' with enabled:false throws
@@ -783,9 +807,20 @@ var FEATURES = {
783
807
  enabled: true,
784
808
  status: "live",
785
809
  category: "responses",
786
- wentLiveAt: "2026-10-16"
810
+ wentLiveAt: "2026-10-16",
811
+ announce: {
812
+ headline: "A better player for voice and video answers",
813
+ benefit: "Change the playback speed, adjust volume and seek through answers in Responses."
814
+ }
787
815
  }
788
816
  };
817
+ var ANNOUNCE_PALETTES = {
818
+ violet: { stops: ["#7C3AED", "#EC4899", "#60A5FA"], ink: "#2E1065" },
819
+ lime: { stops: ["#84CC16", "#FACC15", "#22D3EE"], ink: "#1A2E05" },
820
+ sky: { stops: ["#3B82F6", "#A78BFA", "#F9A8D4"], ink: "#172554" },
821
+ peach: { stops: ["#FB923C", "#F43F5E", "#3B82F6"], ink: "#431407" },
822
+ indigo: { stops: ["#4F46E5", "#A855F7", "#F472B6"], ink: "#1E1B4B" }
823
+ };
789
824
  for (const [key, f] of Object.entries(FEATURES)) {
790
825
  if (f.status === "live" && !f.enabled) {
791
826
  throw new Error(`FEATURES.${key}: status 'live' requires enabled:true (shipped features must be exposed)`);
@@ -801,6 +836,41 @@ for (const [key, f] of Object.entries(FEATURES)) {
801
836
  throw new Error(`FEATURES.${key}: wentLiveAt must be 'YYYY-MM-DD' (got ${JSON.stringify(f.wentLiveAt)})`);
802
837
  }
803
838
  }
839
+ if (f.announce !== void 0) {
840
+ const a = f.announce;
841
+ if (!f.wentLiveAt) {
842
+ throw new Error(`FEATURES.${key}: announce requires wentLiveAt (an announcement needs a go-live date)`);
843
+ }
844
+ for (const field of ["headline", "benefit"]) {
845
+ if (typeof a?.[field] !== "string" || !a[field].trim()) {
846
+ throw new Error(`FEATURES.${key}: announce.${field} must be a non-empty string`);
847
+ }
848
+ if (/\u2014/.test(a[field])) {
849
+ throw new Error(`FEATURES.${key}: announce.${field} must not contain an em dash (use ' - ')`);
850
+ }
851
+ }
852
+ if (a.palette !== void 0 && !Object.prototype.hasOwnProperty.call(ANNOUNCE_PALETTES, a.palette)) {
853
+ throw new Error(`FEATURES.${key}: announce.palette must be one of ${Object.keys(ANNOUNCE_PALETTES).join(", ")} (got ${JSON.stringify(a.palette)})`);
854
+ }
855
+ if (a.media !== void 0) {
856
+ const m = a.media;
857
+ if (!m || m.kind !== "image" && m.kind !== "video") {
858
+ throw new Error(`FEATURES.${key}: announce.media.kind must be 'image' or 'video'`);
859
+ }
860
+ if (typeof m.src !== "string" || !m.src.startsWith("/whats-new/")) {
861
+ throw new Error(`FEATURES.${key}: announce.media.src must start with '/whats-new/'`);
862
+ }
863
+ if (!Number.isInteger(m.width) || m.width <= 0 || !Number.isInteger(m.height) || m.height <= 0) {
864
+ throw new Error(`FEATURES.${key}: announce.media.width/height must be positive integers`);
865
+ }
866
+ if (m.poster !== void 0 && (typeof m.poster !== "string" || !m.poster.startsWith("/whats-new/"))) {
867
+ throw new Error(`FEATURES.${key}: announce.media.poster must start with '/whats-new/'`);
868
+ }
869
+ }
870
+ if (a.href !== void 0 && (typeof a.href !== "string" || !a.href || a.href.startsWith("/") || /^[a-z][a-z0-9+.-]*:/i.test(a.href))) {
871
+ throw new Error(`FEATURES.${key}: announce.href must be a workspace-relative path (no leading slash or protocol)`);
872
+ }
873
+ }
804
874
  }
805
875
  var FEATURE_FLAGS = {
806
876
  get ENABLE_BRANCHING() {
@@ -927,6 +997,33 @@ var DRAW_PRESETS = [
927
997
  ];
928
998
  var DRAW_PRESET_IDS = DRAW_PRESETS.map((p) => p.id);
929
999
 
1000
+ // ../config/logic-types.js
1001
+ var LOGIC_TARGET_TYPES = ["node", "end_screen", "redirect", "link_list"];
1002
+ function isBranchingActive(node) {
1003
+ if (!node) return true;
1004
+ if (isMultiSelectChoice(node)) return false;
1005
+ return node.type === "choice" || node.type === "binary" ? node.config?.choice?.enable_branching === true : true;
1006
+ }
1007
+ function isMultiSelectChoice(node) {
1008
+ return node?.type === "choice" && node.config?.selection_mode === "multiple";
1009
+ }
1010
+ function isOptionEdge(action) {
1011
+ return !!action?.condition?.vars?.some((v) => v.type === "option");
1012
+ }
1013
+ function isNodeLevelAction(action, nodeId) {
1014
+ const vars = action?.condition?.vars;
1015
+ if (!vars || vars.some((v) => v.type === "option")) return false;
1016
+ return vars.some((v) => v.type === "node" && (nodeId === void 0 || v.value === nodeId));
1017
+ }
1018
+ function isInactiveOptionEdge(node, action) {
1019
+ return isOptionEdge(action) && !isBranchingActive(node);
1020
+ }
1021
+
1022
+ // ../config/variables.js
1023
+ var VARIABLE_KEY_MAX_LENGTH = 40;
1024
+ var VARIABLE_KEY_PATTERN = new RegExp(`^[a-z][a-z0-9_]{0,${VARIABLE_KEY_MAX_LENGTH - 1}}$`);
1025
+ var CHOICE_POINTS_MAX = 999;
1026
+
930
1027
  // ../config/node-types.js
931
1028
  var RESPONSE_FORMATS = ["text", "audio", "video"];
932
1029
  var CONSENT_TYPES = ["consent", "opt_in"];
@@ -1082,6 +1179,17 @@ var NODE_TYPES = {
1082
1179
  default: "single",
1083
1180
  description: 'Let respondents pick one option (single) or several (multiple). "multiple" is gated by the multi_select feature - while it is off, the API coerces it to "single" (the viewer renders single-select only).'
1084
1181
  },
1182
+ // Points for a correct answer (#5764). A memory for re-ticking: the live points live on the
1183
+ // ticked options' `score`; this only seeds a newly ticked option when it carries none.
1184
+ points: {
1185
+ type: "number",
1186
+ min: 0,
1187
+ max: CHOICE_POINTS_MAX,
1188
+ default: 1,
1189
+ feature: "variables",
1190
+ label: "Points",
1191
+ description: `Points a correct answer is worth (a whole number from 0 to ${CHOICE_POINTS_MAX}). Applied to a ticked option that sets no score.`
1192
+ },
1085
1193
  // Pick limits for multiple mode. Inert on single (kept stored, never read).
1086
1194
  min_selections: {
1087
1195
  type: "number",
@@ -2934,10 +3042,6 @@ function isAnonMcpLockedNode(node) {
2934
3042
  );
2935
3043
  }
2936
3044
 
2937
- // ../config/variables.js
2938
- var VARIABLE_KEY_MAX_LENGTH = 40;
2939
- var VARIABLE_KEY_PATTERN = new RegExp(`^[a-z][a-z0-9_]{0,${VARIABLE_KEY_MAX_LENGTH - 1}}$`);
2940
-
2941
3045
  // ../config/recall.js
2942
3046
  var RECALL_FALLBACK_MAX_LENGTH = 60;
2943
3047
  var RECALL_FIELD_ID_MAX_LENGTH = 64;
@@ -2958,7 +3062,7 @@ function parseRecallRef(ref) {
2958
3062
  if (KEY_REF.test(ref)) return { kind: "variable", ref, key: ref };
2959
3063
  return null;
2960
3064
  }
2961
- var RECALL_RESERVED_LABELS = { score: "Quiz score", max_score: "Quiz max score" };
3065
+ var RECALL_RESERVED_LABELS = { score: "Score", max_score: "Max score" };
2962
3066
 
2963
3067
  // ../config/validate.js
2964
3068
  function lettersCapError(nodeType, config, count) {
@@ -3218,28 +3322,6 @@ function getDiscoveryParams(formType, variant, mode = "full") {
3218
3322
  return params;
3219
3323
  }
3220
3324
 
3221
- // ../config/logic-types.js
3222
- var LOGIC_TARGET_TYPES = ["node", "end_screen", "redirect", "link_list"];
3223
- function isBranchingActive(node) {
3224
- if (!node) return true;
3225
- if (isMultiSelectChoice(node)) return false;
3226
- return node.type === "choice" || node.type === "binary" ? node.config?.choice?.enable_branching === true : true;
3227
- }
3228
- function isMultiSelectChoice(node) {
3229
- return node?.type === "choice" && node.config?.selection_mode === "multiple";
3230
- }
3231
- function isOptionEdge(action) {
3232
- return !!action?.condition?.vars?.some((v) => v.type === "option");
3233
- }
3234
- function isNodeLevelAction(action, nodeId) {
3235
- const vars = action?.condition?.vars;
3236
- if (!vars || vars.some((v) => v.type === "option")) return false;
3237
- return vars.some((v) => v.type === "node" && (nodeId === void 0 || v.value === nodeId));
3238
- }
3239
- function isInactiveOptionEdge(node, action) {
3240
- return isOptionEdge(action) && !isBranchingActive(node);
3241
- }
3242
-
3243
3325
  // ../config/anon-mcp-limits.js
3244
3326
  var ANON_MCP_RESPONSE_CAP = 3;
3245
3327
  var ANON_MCP_STARTED_SESSION_MULTIPLE = 5;
@@ -3974,6 +4056,10 @@ function structuredResult(text, structuredContent) {
3974
4056
 
3975
4057
  export {
3976
4058
  FEATURE_FLAGS,
4059
+ LOGIC_TARGET_TYPES,
4060
+ isOptionEdge,
4061
+ isNodeLevelAction,
4062
+ isInactiveOptionEdge,
3977
4063
  CHOICE_MAX_OPTIONS,
3978
4064
  NODE_TYPES,
3979
4065
  gatedEnumValues,
@@ -3994,10 +4080,6 @@ export {
3994
4080
  ALL_VARIANTS,
3995
4081
  resolveFormType,
3996
4082
  getDiscoveryParams,
3997
- LOGIC_TARGET_TYPES,
3998
- isOptionEdge,
3999
- isNodeLevelAction,
4000
- isInactiveOptionEdge,
4001
4083
  ANON_MCP_RESPONSE_CAP,
4002
4084
  ANON_MCP_LIVE_TTL_DAYS,
4003
4085
  defaultTarget,
@@ -4023,4 +4105,4 @@ export {
4023
4105
  textResult,
4024
4106
  structuredResult
4025
4107
  };
4026
- //# sourceMappingURL=chunk-QT2M5FQQ.js.map
4108
+ //# sourceMappingURL=chunk-MDTLZRW2.js.map