@clipform/mcp-server 4.10.6 → 4.11.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-GQQ3LUAC.js → chunk-GDHIIUZR.js} +18 -5
- package/dist/chunk-GDHIIUZR.js.map +1 -0
- package/dist/{chunk-ZQNMSNWA.js → chunk-NHV5MS4J.js} +2 -2
- package/dist/{chunk-CVYFKBBY.js → chunk-S2GEKYOU.js} +3 -3
- package/dist/{chunk-GQA6MFO7.js → chunk-VKMZAGHJ.js} +14 -8
- package/dist/{chunk-GQA6MFO7.js.map → chunk-VKMZAGHJ.js.map} +1 -1
- package/dist/{chunk-AAULLE63.js → chunk-VYKTDKCM.js} +3 -3
- 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-GQQ3LUAC.js.map +0 -1
- /package/dist/{chunk-ZQNMSNWA.js.map → chunk-NHV5MS4J.js.map} +0 -0
- /package/dist/{chunk-CVYFKBBY.js.map → chunk-S2GEKYOU.js.map} +0 -0
- /package/dist/{chunk-AAULLE63.js.map → chunk-VYKTDKCM.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CURRENT_PLAN_VERSIONS,
|
|
3
3
|
PLAN_LIMITS,
|
|
4
4
|
callApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GDHIIUZR.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-
|
|
148
|
+
//# sourceMappingURL=chunk-NHV5MS4J.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NHV5MS4J.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-GDHIIUZR.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-S2GEKYOU.js.map
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
union,
|
|
30
30
|
unknown,
|
|
31
31
|
url
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VYKTDKCM.js";
|
|
33
33
|
import {
|
|
34
34
|
GUIDE_TYPES,
|
|
35
35
|
QUIZ_VARIANTS,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
getGuideUri,
|
|
39
39
|
guideFallbackText,
|
|
40
40
|
registerResources
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-S2GEKYOU.js";
|
|
42
42
|
import {
|
|
43
43
|
ANON_PREVIEW_LINK_LABEL,
|
|
44
44
|
ANON_PREVIEW_NOTICE,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
isPreviewViewerUrl,
|
|
53
53
|
previewOnlyNotice,
|
|
54
54
|
withAdoptedNotice
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NHV5MS4J.js";
|
|
56
56
|
import {
|
|
57
57
|
ACTIVE_NODE_TYPES,
|
|
58
58
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
@@ -77,11 +77,12 @@ import {
|
|
|
77
77
|
gatedConfigKeys,
|
|
78
78
|
isAnonMcpLockedNode,
|
|
79
79
|
isAnonymousAccountRequired,
|
|
80
|
+
lettersCapError,
|
|
80
81
|
resolveFormType,
|
|
81
82
|
stripGatedConfigKeys,
|
|
82
83
|
structuredResult,
|
|
83
84
|
textResult
|
|
84
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-GDHIIUZR.js";
|
|
85
86
|
import {
|
|
86
87
|
getMcpAuth,
|
|
87
88
|
runWithMcpAuth,
|
|
@@ -16240,12 +16241,13 @@ var OPTIONS_DESCRIPTION = (() => {
|
|
|
16240
16241
|
const parts = [`${type}: required`];
|
|
16241
16242
|
if (def.min_options !== void 0) parts.push(`min ${def.min_options}`);
|
|
16242
16243
|
if (def.max_options !== void 0) parts.push(`max ${def.max_options}`);
|
|
16244
|
+
if (def.max_letters_options !== void 0) parts.push(`max ${def.max_letters_options} when option_display is "letters"`);
|
|
16243
16245
|
if (def.max_option_length !== void 0) parts.push(`content max ${def.max_option_length} chars`);
|
|
16244
16246
|
hints.push(parts.join(", "));
|
|
16245
16247
|
}
|
|
16246
16248
|
return hints.join(" ");
|
|
16247
16249
|
})();
|
|
16248
|
-
function refineNodeOptions(ctx, type, options, basePath) {
|
|
16250
|
+
function refineNodeOptions(ctx, type, options, basePath, config) {
|
|
16249
16251
|
const def = NODE_TYPES[type];
|
|
16250
16252
|
if (!def?.has_options || !options) return;
|
|
16251
16253
|
if (def.max_option_length !== void 0) {
|
|
@@ -16268,6 +16270,10 @@ function refineNodeOptions(ctx, type, options, basePath) {
|
|
|
16268
16270
|
message: `${type} has ${options.length} options; max is ${def.max_options}. Remove extras.`
|
|
16269
16271
|
});
|
|
16270
16272
|
}
|
|
16273
|
+
const lettersError = lettersCapError(type, config, options.length);
|
|
16274
|
+
if (lettersError) {
|
|
16275
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [...basePath, "options"], message: lettersError });
|
|
16276
|
+
}
|
|
16271
16277
|
}
|
|
16272
16278
|
var NodeSchema = external_exports.object({
|
|
16273
16279
|
type: external_exports.enum(ACTIVE_NODE_TYPES2),
|
|
@@ -16276,7 +16282,7 @@ var NodeSchema = external_exports.object({
|
|
|
16276
16282
|
required: external_exports.boolean().optional().default(true),
|
|
16277
16283
|
config: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(CONFIG_FIELD_DESCRIPTION),
|
|
16278
16284
|
options: external_exports.array(OptionSchema).optional().describe(OPTIONS_DESCRIPTION)
|
|
16279
|
-
}).superRefine((node, ctx) => refineNodeOptions(ctx, node.type, node.options, []));
|
|
16285
|
+
}).superRefine((node, ctx) => refineNodeOptions(ctx, node.type, node.options, [], node.config));
|
|
16280
16286
|
function stripGatedNodeConfig(node) {
|
|
16281
16287
|
const { config, dropped } = stripGatedConfigKeys(node.type, node.config);
|
|
16282
16288
|
if (dropped.length > 0) node.config = config;
|
|
@@ -17978,7 +17984,7 @@ var NodeUpdateSchema = external_exports.object({
|
|
|
17978
17984
|
)
|
|
17979
17985
|
}).superRefine((update, ctx) => {
|
|
17980
17986
|
if (update.type && update.options !== void 0) {
|
|
17981
|
-
refineNodeOptions(ctx, update.type, update.options, []);
|
|
17987
|
+
refineNodeOptions(ctx, update.type, update.options, [], update.config);
|
|
17982
17988
|
}
|
|
17983
17989
|
});
|
|
17984
17990
|
function registerUpdateNodeTool(server) {
|
|
@@ -20427,4 +20433,4 @@ export {
|
|
|
20427
20433
|
* MIT Licensed
|
|
20428
20434
|
*)
|
|
20429
20435
|
*/
|
|
20430
|
-
//# sourceMappingURL=chunk-
|
|
20436
|
+
//# sourceMappingURL=chunk-VKMZAGHJ.js.map
|