@next-vibe/checker 1.0.20 → 1.0.21
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.
|
@@ -46828,13 +46828,6 @@ var init_endpoint_to_metadata = __esm(() => {
|
|
|
46828
46828
|
});
|
|
46829
46829
|
|
|
46830
46830
|
// src/app/api/[locale]/system/unified-interface/mcp/converter.ts
|
|
46831
|
-
function toolNameToApiPath(toolName) {
|
|
46832
|
-
const parts = toolName.split("_");
|
|
46833
|
-
const method = parts.at(-1);
|
|
46834
|
-
const pathParts = parts.slice(0, -1);
|
|
46835
|
-
const apiPath = pathParts.join("/");
|
|
46836
|
-
return `api/[locale]/${apiPath} (${method})`;
|
|
46837
|
-
}
|
|
46838
46831
|
function generateInputSchema(endpoint, locale) {
|
|
46839
46832
|
if (!endpoint.fields) {
|
|
46840
46833
|
return exports_external.object({});
|
|
@@ -46880,13 +46873,11 @@ function addFieldDescriptions(shape, fields, locale, endpoint) {
|
|
|
46880
46873
|
return enhancedShape;
|
|
46881
46874
|
}
|
|
46882
46875
|
function endpointToMCPTool(endpoint, locale) {
|
|
46883
|
-
const toolName =
|
|
46884
|
-
const apiPath = toolNameToApiPath(toolName);
|
|
46876
|
+
const toolName = endpoint.aliases && endpoint.aliases.length > 0 ? endpoint.aliases[0] : endpointToToolName(endpoint);
|
|
46885
46877
|
const { t } = endpoint.scopedTranslation.scopedT(locale);
|
|
46886
46878
|
const descriptionKey = endpoint.description || endpoint.title;
|
|
46887
46879
|
const translatedDescription = descriptionKey ? t(descriptionKey) : "";
|
|
46888
|
-
const description = translatedDescription
|
|
46889
|
-
\uD83D\uDCC1 ${apiPath}` : apiPath;
|
|
46880
|
+
const description = translatedDescription || toolName;
|
|
46890
46881
|
const zodSchema = generateInputSchema(endpoint, locale);
|
|
46891
46882
|
const jsonSchema = zodSchemaToJsonSchema(zodSchema);
|
|
46892
46883
|
return {
|
|
@@ -57560,4 +57551,4 @@ export {
|
|
|
57560
57551
|
binaryStartTime
|
|
57561
57552
|
};
|
|
57562
57553
|
|
|
57563
|
-
//# debugId=
|
|
57554
|
+
//# debugId=21464CB9E9F4A15C64756E2164756E21
|