@clipform/mcp-server 5.7.1 → 5.7.2
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-7UIXBPTS.js → chunk-AZ2MC7BU.js} +3 -3
- package/dist/{chunk-7F36T6AQ.js → chunk-F42Q6ZMK.js} +14 -6
- package/dist/{chunk-7F36T6AQ.js.map → chunk-F42Q6ZMK.js.map} +1 -1
- package/dist/{chunk-7M2APEB6.js → chunk-GIELHE2Y.js} +2 -2
- package/dist/{chunk-S4S6H7GF.js → chunk-KQI22YZM.js} +3 -3
- package/dist/{chunk-S4S6H7GF.js.map → chunk-KQI22YZM.js.map} +1 -1
- package/dist/{chunk-D65NJDP5.js → chunk-PW7O7KZF.js} +41 -1
- package/dist/chunk-PW7O7KZF.js.map +1 -0
- 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-D65NJDP5.js.map +0 -1
- /package/dist/{chunk-7UIXBPTS.js.map → chunk-AZ2MC7BU.js.map} +0 -0
- /package/dist/{chunk-7M2APEB6.js.map → chunk-GIELHE2Y.js.map} +0 -0
|
@@ -1064,6 +1064,7 @@ var GOOGLE_MEET_BOOKING_DEFAULTS = Object.freeze({
|
|
|
1064
1064
|
sat: [],
|
|
1065
1065
|
sun: []
|
|
1066
1066
|
}),
|
|
1067
|
+
buffer_minutes: 0,
|
|
1067
1068
|
min_notice_minutes: 240,
|
|
1068
1069
|
days_ahead: 14
|
|
1069
1070
|
});
|
|
@@ -1554,6 +1555,8 @@ var NODE_TYPES = {
|
|
|
1554
1555
|
calendar_name: { type: "string", label: "Calendar name", description: "Display name for the selected calendar" },
|
|
1555
1556
|
duration: { type: "number", label: "Duration (minutes)", default: 30, minimum: 15, maximum: 240, description: "Meeting duration in minutes" },
|
|
1556
1557
|
event_title: { type: "string", label: "Event title", maxLength: 80, description: "Calendar event title; the form title when unset" },
|
|
1558
|
+
// Kept free on both sides of every busy event in the calendar, not just bookings (#5856).
|
|
1559
|
+
buffer_minutes: { type: "number", label: "Gap between meetings (minutes)", default: 0, minimum: 0, maximum: 60, description: "Minutes kept free before and after every busy event in the calendar" },
|
|
1557
1560
|
// Notice (4h), window (14 days) and timezone (the owner's calendar) are fixed:
|
|
1558
1561
|
// GOOGLE_MEET_BOOKING_DEFAULTS, scope change on #5309 (2026-10-29).
|
|
1559
1562
|
availability: {
|
|
@@ -3478,7 +3481,10 @@ var MEDIA_IMAGE_MAX_BYTES = 10 * 1024 * 1024;
|
|
|
3478
3481
|
var DRAW_DIAGRAM_SPEC = `PNG with simple dark outlines on a light or transparent background (no shading or text), portrait, at least 1000px wide. Up to ${Math.round(MEDIA_IMAGE_MAX_BYTES / (1024 * 1024))}MB.`;
|
|
3479
3482
|
var MEDIA_DOCUMENT_MAX_BYTES = 20 * 1024 * 1024;
|
|
3480
3483
|
var SUPABASE_STORAGE_MAX_BYTES = 200 * 1024 * 1024;
|
|
3484
|
+
var VIDEO_COMPRESS_BITRATE = 35e5;
|
|
3481
3485
|
var VIDEO_COMPRESS_FLOOR_BYTES = 1 * 1024 * 1024;
|
|
3486
|
+
var MEDIA_VIDEO_MAX_BYTES = 200 * 1024 * 1024;
|
|
3487
|
+
var VIDEO_COMPRESS_SKIP_BITRATE = VIDEO_COMPRESS_BITRATE * 1.5;
|
|
3482
3488
|
var HELP_LINKS = buildHelpLinks(BUSINESS.urls.docs);
|
|
3483
3489
|
var PLAN_LIMITS = {
|
|
3484
3490
|
free_v1: {
|
|
@@ -3734,6 +3740,37 @@ function contactFieldNotes(result) {
|
|
|
3734
3740
|
if (result.madeCustom.length) notes.push(madeCustomContactNote(result.madeCustom));
|
|
3735
3741
|
return notes;
|
|
3736
3742
|
}
|
|
3743
|
+
function normalizeConsentType(type) {
|
|
3744
|
+
if (type === void 0 || type === null) return type;
|
|
3745
|
+
const v = typeof type === "string" ? type.trim().toLowerCase() : type;
|
|
3746
|
+
if (CONSENT_TYPES.includes(v)) return v;
|
|
3747
|
+
if (["optional", "opt-in", "optin", "opt in"].includes(v)) return "opt_in";
|
|
3748
|
+
return "consent";
|
|
3749
|
+
}
|
|
3750
|
+
function normalizeConsentItems(items) {
|
|
3751
|
+
if (!Array.isArray(items)) return { items, coerced: [] };
|
|
3752
|
+
const coerced = [];
|
|
3753
|
+
const out = items.map((item) => {
|
|
3754
|
+
if (!item || typeof item !== "object") return item;
|
|
3755
|
+
const to = normalizeConsentType(item.type);
|
|
3756
|
+
if (to === item.type) return { ...item };
|
|
3757
|
+
coerced.push({ id: item.id, from: item.type, to });
|
|
3758
|
+
return { ...item, type: to };
|
|
3759
|
+
});
|
|
3760
|
+
return { items: out, coerced };
|
|
3761
|
+
}
|
|
3762
|
+
function consentItemNotes(result) {
|
|
3763
|
+
if (!result.coerced.length) return [];
|
|
3764
|
+
const clip = (v) => {
|
|
3765
|
+
const t = typeof v === "string" ? v : v === void 0 || v === null ? "(none)" : JSON.stringify(v) ?? String(v);
|
|
3766
|
+
return t.length > NOTE_MAX_ID_LENGTH ? t.slice(0, NOTE_MAX_ID_LENGTH) + "..." : t;
|
|
3767
|
+
};
|
|
3768
|
+
const shown = result.coerced.slice(0, NOTE_MAX_IDS).map((c) => `"${clip(typeof c.id === "string" ? c.id : "(no id)")}" ("${clip(c.from)}" -> "${clip(c.to)}")`);
|
|
3769
|
+
const more = result.coerced.length - NOTE_MAX_IDS;
|
|
3770
|
+
return [
|
|
3771
|
+
`Consent item(s) ${shown.join(", ")}${more > 0 ? ` and ${more} more` : ""} had a type that is not a consent type, so they were saved as shown. Use "consent" for a required agreement or "opt_in" for an optional one.`
|
|
3772
|
+
];
|
|
3773
|
+
}
|
|
3737
3774
|
var COMPOSITION_REGISTRY = [
|
|
3738
3775
|
// Beds (full-bleed backgrounds)
|
|
3739
3776
|
{ id: "Slideshow", tier: "public", kind: "bed", scene_layer: true },
|
|
@@ -4085,6 +4122,7 @@ export {
|
|
|
4085
4122
|
isOptionEdge,
|
|
4086
4123
|
isNodeLevelAction,
|
|
4087
4124
|
isInactiveOptionEdge,
|
|
4125
|
+
CONSENT_TYPES,
|
|
4088
4126
|
CHOICE_MAX_OPTIONS,
|
|
4089
4127
|
NODE_TYPES,
|
|
4090
4128
|
gatedEnumValues,
|
|
@@ -4115,6 +4153,8 @@ export {
|
|
|
4115
4153
|
CONTACT_FIELDS,
|
|
4116
4154
|
normalizeContactFields,
|
|
4117
4155
|
contactFieldNotes,
|
|
4156
|
+
normalizeConsentItems,
|
|
4157
|
+
consentItemNotes,
|
|
4118
4158
|
exposedCompositionIds,
|
|
4119
4159
|
MCP_TOOL_TIERS,
|
|
4120
4160
|
MCP_TOOL_TOOLSETS,
|
|
@@ -4130,4 +4170,4 @@ export {
|
|
|
4130
4170
|
textResult,
|
|
4131
4171
|
structuredResult
|
|
4132
4172
|
};
|
|
4133
|
-
//# sourceMappingURL=chunk-
|
|
4173
|
+
//# sourceMappingURL=chunk-PW7O7KZF.js.map
|