@clipform/mcp-server 5.4.1 → 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.
- package/dist/api-client.js +1 -1
- package/dist/{chunk-HOKPAJLX.js → chunk-GT7V45HP.js} +3 -3
- package/dist/{chunk-IWMRSNMO.js → chunk-MDTLZRW2.js} +144 -39
- package/dist/chunk-MDTLZRW2.js.map +1 -0
- package/dist/{chunk-QZZFZGY6.js → chunk-MVF3AIQX.js} +3 -3
- package/dist/{chunk-3YKZSC7H.js → chunk-RTAHKKU4.js} +45 -10
- package/dist/chunk-RTAHKKU4.js.map +1 -0
- package/dist/{chunk-NWOLQJ3Z.js → chunk-SOK5Z76R.js} +2 -2
- 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 +1 -1
- package/server.json +2 -2
- package/dist/chunk-3YKZSC7H.js.map +0 -1
- package/dist/chunk-IWMRSNMO.js.map +0 -1
- /package/dist/{chunk-HOKPAJLX.js.map → chunk-GT7V45HP.js.map} +0 -0
- /package/dist/{chunk-QZZFZGY6.js.map → chunk-MVF3AIQX.js.map} +0 -0
- /package/dist/{chunk-NWOLQJ3Z.js.map → chunk-SOK5Z76R.js.map} +0 -0
package/dist/api-client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContextWithAuth
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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",
|
|
@@ -2735,6 +2843,29 @@ var NODE_TYPES = {
|
|
|
2735
2843
|
}
|
|
2736
2844
|
}
|
|
2737
2845
|
},
|
|
2846
|
+
score_line: {
|
|
2847
|
+
type: "string",
|
|
2848
|
+
label: "Score line",
|
|
2849
|
+
feature: "variables",
|
|
2850
|
+
description: 'Sentence shown with the score, with variable codes (e.g. "You scored {{score}} out of 10"). Replaces the default "You scored X out of Y" line.'
|
|
2851
|
+
},
|
|
2852
|
+
outcomes: {
|
|
2853
|
+
type: "array",
|
|
2854
|
+
label: "Variable-based results",
|
|
2855
|
+
feature: "variables",
|
|
2856
|
+
description: "Show different content based on a number variable. The first outcome whose range (inclusive) holds the variable value wins.",
|
|
2857
|
+
items: {
|
|
2858
|
+
type: "object",
|
|
2859
|
+
required: ["variable_id", "min", "max", "title"],
|
|
2860
|
+
properties: {
|
|
2861
|
+
variable_id: { type: "string", label: "Number variable id" },
|
|
2862
|
+
min: { type: "number", label: "Minimum (inclusive)" },
|
|
2863
|
+
max: { type: "number", label: "Maximum (inclusive)" },
|
|
2864
|
+
title: { type: "string", label: "Title" },
|
|
2865
|
+
message: { type: "string", label: "Message" }
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
},
|
|
2738
2869
|
scoring_results: {
|
|
2739
2870
|
type: "array",
|
|
2740
2871
|
label: "Category-based results",
|
|
@@ -2911,10 +3042,6 @@ function isAnonMcpLockedNode(node) {
|
|
|
2911
3042
|
);
|
|
2912
3043
|
}
|
|
2913
3044
|
|
|
2914
|
-
// ../config/variables.js
|
|
2915
|
-
var VARIABLE_KEY_MAX_LENGTH = 40;
|
|
2916
|
-
var VARIABLE_KEY_PATTERN = new RegExp(`^[a-z][a-z0-9_]{0,${VARIABLE_KEY_MAX_LENGTH - 1}}$`);
|
|
2917
|
-
|
|
2918
3045
|
// ../config/recall.js
|
|
2919
3046
|
var RECALL_FALLBACK_MAX_LENGTH = 60;
|
|
2920
3047
|
var RECALL_FIELD_ID_MAX_LENGTH = 64;
|
|
@@ -2935,7 +3062,7 @@ function parseRecallRef(ref) {
|
|
|
2935
3062
|
if (KEY_REF.test(ref)) return { kind: "variable", ref, key: ref };
|
|
2936
3063
|
return null;
|
|
2937
3064
|
}
|
|
2938
|
-
var RECALL_RESERVED_LABELS = { score: "
|
|
3065
|
+
var RECALL_RESERVED_LABELS = { score: "Score", max_score: "Max score" };
|
|
2939
3066
|
|
|
2940
3067
|
// ../config/validate.js
|
|
2941
3068
|
function lettersCapError(nodeType, config, count) {
|
|
@@ -3195,28 +3322,6 @@ function getDiscoveryParams(formType, variant, mode = "full") {
|
|
|
3195
3322
|
return params;
|
|
3196
3323
|
}
|
|
3197
3324
|
|
|
3198
|
-
// ../config/logic-types.js
|
|
3199
|
-
var LOGIC_TARGET_TYPES = ["node", "end_screen", "redirect", "link_list"];
|
|
3200
|
-
function isBranchingActive(node) {
|
|
3201
|
-
if (!node) return true;
|
|
3202
|
-
if (isMultiSelectChoice(node)) return false;
|
|
3203
|
-
return node.type === "choice" || node.type === "binary" ? node.config?.choice?.enable_branching === true : true;
|
|
3204
|
-
}
|
|
3205
|
-
function isMultiSelectChoice(node) {
|
|
3206
|
-
return node?.type === "choice" && node.config?.selection_mode === "multiple";
|
|
3207
|
-
}
|
|
3208
|
-
function isOptionEdge(action) {
|
|
3209
|
-
return !!action?.condition?.vars?.some((v) => v.type === "option");
|
|
3210
|
-
}
|
|
3211
|
-
function isNodeLevelAction(action, nodeId) {
|
|
3212
|
-
const vars = action?.condition?.vars;
|
|
3213
|
-
if (!vars || vars.some((v) => v.type === "option")) return false;
|
|
3214
|
-
return vars.some((v) => v.type === "node" && (nodeId === void 0 || v.value === nodeId));
|
|
3215
|
-
}
|
|
3216
|
-
function isInactiveOptionEdge(node, action) {
|
|
3217
|
-
return isOptionEdge(action) && !isBranchingActive(node);
|
|
3218
|
-
}
|
|
3219
|
-
|
|
3220
3325
|
// ../config/anon-mcp-limits.js
|
|
3221
3326
|
var ANON_MCP_RESPONSE_CAP = 3;
|
|
3222
3327
|
var ANON_MCP_STARTED_SESSION_MULTIPLE = 5;
|
|
@@ -3951,6 +4056,10 @@ function structuredResult(text, structuredContent) {
|
|
|
3951
4056
|
|
|
3952
4057
|
export {
|
|
3953
4058
|
FEATURE_FLAGS,
|
|
4059
|
+
LOGIC_TARGET_TYPES,
|
|
4060
|
+
isOptionEdge,
|
|
4061
|
+
isNodeLevelAction,
|
|
4062
|
+
isInactiveOptionEdge,
|
|
3954
4063
|
CHOICE_MAX_OPTIONS,
|
|
3955
4064
|
NODE_TYPES,
|
|
3956
4065
|
gatedEnumValues,
|
|
@@ -3971,10 +4080,6 @@ export {
|
|
|
3971
4080
|
ALL_VARIANTS,
|
|
3972
4081
|
resolveFormType,
|
|
3973
4082
|
getDiscoveryParams,
|
|
3974
|
-
LOGIC_TARGET_TYPES,
|
|
3975
|
-
isOptionEdge,
|
|
3976
|
-
isNodeLevelAction,
|
|
3977
|
-
isInactiveOptionEdge,
|
|
3978
4083
|
ANON_MCP_RESPONSE_CAP,
|
|
3979
4084
|
ANON_MCP_LIVE_TTL_DAYS,
|
|
3980
4085
|
defaultTarget,
|
|
@@ -4000,4 +4105,4 @@ export {
|
|
|
4000
4105
|
textResult,
|
|
4001
4106
|
structuredResult
|
|
4002
4107
|
};
|
|
4003
|
-
//# sourceMappingURL=chunk-
|
|
4108
|
+
//# sourceMappingURL=chunk-MDTLZRW2.js.map
|