@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
package/dist/api-client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GIELHE2Y.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-PW7O7KZF.js";
|
|
11
11
|
import {
|
|
12
12
|
getMcpAuth
|
|
13
13
|
} from "./chunk-ENVV65JX.js";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
getGuideUri,
|
|
147
147
|
registerResources
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-AZ2MC7BU.js.map
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
union,
|
|
32
32
|
unknown,
|
|
33
33
|
url
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KQI22YZM.js";
|
|
35
35
|
import {
|
|
36
36
|
GUIDE_TYPES,
|
|
37
37
|
QUIZ_VARIANTS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
getGuideUri,
|
|
41
41
|
guideFallbackText,
|
|
42
42
|
registerResources
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AZ2MC7BU.js";
|
|
44
44
|
import {
|
|
45
45
|
ANON_PREVIEW_LINK_LABEL,
|
|
46
46
|
ANON_PREVIEW_NOTICE,
|
|
@@ -54,13 +54,14 @@ import {
|
|
|
54
54
|
isPreviewViewerUrl,
|
|
55
55
|
previewOnlyNotice,
|
|
56
56
|
withAdoptedNotice
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GIELHE2Y.js";
|
|
58
58
|
import {
|
|
59
59
|
ACTIVE_NODE_TYPES,
|
|
60
60
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
61
61
|
ANON_MCP_LIVE_TTL_DAYS,
|
|
62
62
|
ANON_MCP_RESPONSE_CAP,
|
|
63
63
|
CHOICE_MAX_OPTIONS,
|
|
64
|
+
CONSENT_TYPES,
|
|
64
65
|
CONTACT_FIELDS,
|
|
65
66
|
FEATURE_FLAGS,
|
|
66
67
|
FORM_TYPES_LIST,
|
|
@@ -77,6 +78,7 @@ import {
|
|
|
77
78
|
authChallengeMeta,
|
|
78
79
|
bfsOrder,
|
|
79
80
|
callApi,
|
|
81
|
+
consentItemNotes,
|
|
80
82
|
contactFieldNotes,
|
|
81
83
|
defaultTarget,
|
|
82
84
|
errorResult,
|
|
@@ -89,13 +91,14 @@ import {
|
|
|
89
91
|
isOptionEdge,
|
|
90
92
|
isTerminalType,
|
|
91
93
|
lettersCapError,
|
|
94
|
+
normalizeConsentItems,
|
|
92
95
|
normalizeContactFields,
|
|
93
96
|
recallDisplayText,
|
|
94
97
|
resolveFormType,
|
|
95
98
|
stripGatedConfigKeys,
|
|
96
99
|
structuredResult,
|
|
97
100
|
textResult
|
|
98
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-PW7O7KZF.js";
|
|
99
102
|
import {
|
|
100
103
|
getMcpAuth,
|
|
101
104
|
runWithMcpAuth,
|
|
@@ -16184,7 +16187,7 @@ function generateConfigSummary(configSchema, typeKey) {
|
|
|
16184
16187
|
}
|
|
16185
16188
|
}
|
|
16186
16189
|
if (typeKey === "details") {
|
|
16187
|
-
parts.push(`Available field IDs: ${CONTACT_FIELD_IDS.join(", ")}. Standard fields keep their names (no label needed); for other wording or a non-English form, add a custom field ({ id, is_custom: true, label, type })`);
|
|
16190
|
+
parts.push(`Available field IDs: ${CONTACT_FIELD_IDS.join(", ")}. Standard fields keep their names (no label needed); for other wording or a non-English form, add a custom field ({ id, is_custom: true, label, type }). consent_items[].type is "${CONSENT_TYPES[0]}" (required agreement) or "${CONSENT_TYPES[1]}" (optional)`);
|
|
16188
16191
|
}
|
|
16189
16192
|
return parts.length > 0 ? `Config: ${parts.join(", ")}` : "";
|
|
16190
16193
|
}
|
|
@@ -16581,6 +16584,11 @@ Example: A form that asks a question, collects contact info, then finishes:
|
|
|
16581
16584
|
q.config = { ...q.config, fields: result.fields };
|
|
16582
16585
|
for (const note of contactFieldNotes(result)) ignoredNotes.push(`[details] ${note}`);
|
|
16583
16586
|
}
|
|
16587
|
+
if (q.type === "details" && Array.isArray(q.config?.consent_items)) {
|
|
16588
|
+
const result = normalizeConsentItems(q.config.consent_items);
|
|
16589
|
+
q.config = { ...q.config, consent_items: result.items };
|
|
16590
|
+
for (const note of consentItemNotes(result)) ignoredNotes.push(`[details] ${note}`);
|
|
16591
|
+
}
|
|
16584
16592
|
}
|
|
16585
16593
|
const settings = {};
|
|
16586
16594
|
if (show_step_counter !== void 0) settings.show_step_counter = show_step_counter;
|
|
@@ -20665,4 +20673,4 @@ export {
|
|
|
20665
20673
|
* MIT Licensed
|
|
20666
20674
|
*)
|
|
20667
20675
|
*/
|
|
20668
|
-
//# sourceMappingURL=chunk-
|
|
20676
|
+
//# sourceMappingURL=chunk-F42Q6ZMK.js.map
|