@bike4mind/cli 0.2.30-ja-refactor-slack-direct-completion.19213 → 0.2.30-ja-fix-normalize-tool-parameters.19182
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/index.js +19 -17
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -11652,21 +11652,22 @@ var generateTools = (userId, user, logger2, { db }, storage, imageGenerateStorag
|
|
|
11652
11652
|
[key]: tool.implementation(context, config[key])
|
|
11653
11653
|
}), {});
|
|
11654
11654
|
};
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
if (rawParameters
|
|
11658
|
-
return {
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11655
|
+
var ATLASSIAN_RECONNECT_MESSAGE = "\u26A0\uFE0F Your Atlassian connection has expired.\n\nPlease reconnect your Atlassian account in Settings > Connected Apps to continue using Confluence and Jira tools.";
|
|
11656
|
+
function normalizeMcpToolParameters(rawParameters, toolName) {
|
|
11657
|
+
if (!rawParameters || typeof rawParameters !== "object" || Array.isArray(rawParameters)) {
|
|
11658
|
+
return { type: "object", properties: {} };
|
|
11659
|
+
}
|
|
11660
|
+
const raw = rawParameters;
|
|
11661
|
+
if (raw.type !== "object" || !raw.properties) {
|
|
11662
|
+
Logger.info(`[MCP Schema Fix] ${toolName}: patching schema (type=${String(raw.type ?? "undefined")}, properties=${raw.properties ? "present" : "missing"})`);
|
|
11662
11663
|
}
|
|
11663
11664
|
return {
|
|
11664
11665
|
type: "object",
|
|
11665
|
-
properties: {},
|
|
11666
|
-
|
|
11666
|
+
properties: raw.properties ?? {},
|
|
11667
|
+
...Array.isArray(raw.required) && { required: raw.required },
|
|
11668
|
+
...typeof raw.additionalProperties === "boolean" && { additionalProperties: raw.additionalProperties }
|
|
11667
11669
|
};
|
|
11668
11670
|
}
|
|
11669
|
-
var ATLASSIAN_RECONNECT_MESSAGE = "\u26A0\uFE0F Your Atlassian connection has expired.\n\nPlease reconnect your Atlassian account in Settings > Connected Apps to continue using Confluence and Jira tools.";
|
|
11670
11671
|
var generateMcpTools = async (mcpData) => {
|
|
11671
11672
|
let tools;
|
|
11672
11673
|
try {
|
|
@@ -11692,7 +11693,8 @@ var generateMcpTools = async (mcpData) => {
|
|
|
11692
11693
|
const namespacedToolName = `${serverName}__${originalToolName}`;
|
|
11693
11694
|
const providerMetadata = getMcpProviderMetadata(serverName);
|
|
11694
11695
|
const fallbackDescription = providerMetadata?.defaultToolDescriptions?.[originalToolName] ?? "";
|
|
11695
|
-
const
|
|
11696
|
+
const rawParameters = rest?.input_schema ?? rest?.inputSchema ?? rest?.parameters;
|
|
11697
|
+
const parameters = normalizeMcpToolParameters(rawParameters, namespacedToolName);
|
|
11696
11698
|
const optionTools = {
|
|
11697
11699
|
toolFn: async (args) => {
|
|
11698
11700
|
Logger.debug(`Calling ${originalToolName} tool via ${mcpData.serverName}`, args);
|
|
@@ -14645,7 +14647,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
14645
14647
|
// package.json
|
|
14646
14648
|
var package_default = {
|
|
14647
14649
|
name: "@bike4mind/cli",
|
|
14648
|
-
version: "0.2.30-ja-
|
|
14650
|
+
version: "0.2.30-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
14649
14651
|
type: "module",
|
|
14650
14652
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
14651
14653
|
license: "UNLICENSED",
|
|
@@ -14759,10 +14761,10 @@ var package_default = {
|
|
|
14759
14761
|
},
|
|
14760
14762
|
devDependencies: {
|
|
14761
14763
|
"@bike4mind/agents": "0.1.0",
|
|
14762
|
-
"@bike4mind/common": "2.51.1-ja-
|
|
14763
|
-
"@bike4mind/mcp": "1.30.1-ja-
|
|
14764
|
-
"@bike4mind/services": "2.49.1-ja-
|
|
14765
|
-
"@bike4mind/utils": "2.6.1-ja-
|
|
14764
|
+
"@bike4mind/common": "2.51.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
14765
|
+
"@bike4mind/mcp": "1.30.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
14766
|
+
"@bike4mind/services": "2.49.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
14767
|
+
"@bike4mind/utils": "2.6.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
14766
14768
|
"@types/better-sqlite3": "^7.6.13",
|
|
14767
14769
|
"@types/diff": "^5.0.9",
|
|
14768
14770
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -14780,7 +14782,7 @@ var package_default = {
|
|
|
14780
14782
|
optionalDependencies: {
|
|
14781
14783
|
"@vscode/ripgrep": "^1.17.0"
|
|
14782
14784
|
},
|
|
14783
|
-
gitHead: "
|
|
14785
|
+
gitHead: "aaa8e015377bda2b2cbad2613d335b72c88c3210"
|
|
14784
14786
|
};
|
|
14785
14787
|
|
|
14786
14788
|
// src/config/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.30-ja-
|
|
3
|
+
"version": "0.2.30-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.51.1-ja-
|
|
118
|
-
"@bike4mind/mcp": "1.30.1-ja-
|
|
119
|
-
"@bike4mind/services": "2.49.1-ja-
|
|
120
|
-
"@bike4mind/utils": "2.6.1-ja-
|
|
117
|
+
"@bike4mind/common": "2.51.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
118
|
+
"@bike4mind/mcp": "1.30.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
119
|
+
"@bike4mind/services": "2.49.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
120
|
+
"@bike4mind/utils": "2.6.1-ja-fix-normalize-tool-parameters.19182+aaa8e0153",
|
|
121
121
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
122
|
"@types/diff": "^5.0.9",
|
|
123
123
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"optionalDependencies": {
|
|
136
136
|
"@vscode/ripgrep": "^1.17.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "aaa8e015377bda2b2cbad2613d335b72c88c3210"
|
|
139
139
|
}
|