@bike4mind/cli 0.2.30-ja-refactor-slack-direct-completion.19270 → 0.2.30-ja-fix-normalize-tool-parameters.19253
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
|
@@ -11708,21 +11708,22 @@ var generateTools = (userId, user, logger2, { db }, storage, imageGenerateStorag
|
|
|
11708
11708
|
[key]: tool.implementation(context, config[key])
|
|
11709
11709
|
}), {});
|
|
11710
11710
|
};
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
if (rawParameters
|
|
11714
|
-
return {
|
|
11715
|
-
...rawParameters,
|
|
11716
|
-
properties: rawParameters.properties ?? {}
|
|
11717
|
-
};
|
|
11711
|
+
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.";
|
|
11712
|
+
function normalizeMcpToolParameters(rawParameters) {
|
|
11713
|
+
if (!rawParameters || typeof rawParameters !== "object" || Array.isArray(rawParameters)) {
|
|
11714
|
+
return { type: "object", properties: {} };
|
|
11718
11715
|
}
|
|
11716
|
+
const raw = rawParameters;
|
|
11717
|
+
const properties = raw.properties && typeof raw.properties === "object" && !Array.isArray(raw.properties) ? raw.properties : {};
|
|
11719
11718
|
return {
|
|
11720
11719
|
type: "object",
|
|
11721
|
-
properties
|
|
11722
|
-
|
|
11720
|
+
properties,
|
|
11721
|
+
...Array.isArray(raw.required) && {
|
|
11722
|
+
required: raw.required.filter((item) => typeof item === "string")
|
|
11723
|
+
},
|
|
11724
|
+
...typeof raw.additionalProperties === "boolean" && { additionalProperties: raw.additionalProperties }
|
|
11723
11725
|
};
|
|
11724
11726
|
}
|
|
11725
|
-
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.";
|
|
11726
11727
|
var generateMcpTools = async (mcpData) => {
|
|
11727
11728
|
let tools;
|
|
11728
11729
|
try {
|
|
@@ -11748,7 +11749,8 @@ var generateMcpTools = async (mcpData) => {
|
|
|
11748
11749
|
const namespacedToolName = `${serverName}__${originalToolName}`;
|
|
11749
11750
|
const providerMetadata = getMcpProviderMetadata(serverName);
|
|
11750
11751
|
const fallbackDescription = providerMetadata?.defaultToolDescriptions?.[originalToolName] ?? "";
|
|
11751
|
-
const
|
|
11752
|
+
const rawParameters = rest?.input_schema ?? rest?.inputSchema ?? rest?.parameters;
|
|
11753
|
+
const parameters = normalizeMcpToolParameters(rawParameters);
|
|
11752
11754
|
const optionTools = {
|
|
11753
11755
|
toolFn: async (args) => {
|
|
11754
11756
|
Logger.debug(`Calling ${originalToolName} tool via ${mcpData.serverName}`, args);
|
|
@@ -14701,7 +14703,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
14701
14703
|
// package.json
|
|
14702
14704
|
var package_default = {
|
|
14703
14705
|
name: "@bike4mind/cli",
|
|
14704
|
-
version: "0.2.30-ja-
|
|
14706
|
+
version: "0.2.30-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
14705
14707
|
type: "module",
|
|
14706
14708
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
14707
14709
|
license: "UNLICENSED",
|
|
@@ -14812,10 +14814,10 @@ var package_default = {
|
|
|
14812
14814
|
},
|
|
14813
14815
|
devDependencies: {
|
|
14814
14816
|
"@bike4mind/agents": "0.1.0",
|
|
14815
|
-
"@bike4mind/common": "2.51.1-ja-
|
|
14816
|
-
"@bike4mind/mcp": "1.30.1-ja-
|
|
14817
|
-
"@bike4mind/services": "2.49.1-ja-
|
|
14818
|
-
"@bike4mind/utils": "2.6.1-ja-
|
|
14817
|
+
"@bike4mind/common": "2.51.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
14818
|
+
"@bike4mind/mcp": "1.30.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
14819
|
+
"@bike4mind/services": "2.49.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
14820
|
+
"@bike4mind/utils": "2.6.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
14819
14821
|
"@types/better-sqlite3": "^7.6.13",
|
|
14820
14822
|
"@types/diff": "^5.0.9",
|
|
14821
14823
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -14836,7 +14838,7 @@ var package_default = {
|
|
|
14836
14838
|
optionalDependencies: {
|
|
14837
14839
|
"@vscode/ripgrep": "^1.17.0"
|
|
14838
14840
|
},
|
|
14839
|
-
gitHead: "
|
|
14841
|
+
gitHead: "13319fa3f57ae59fe4b71029f129c41eb65aa2a3"
|
|
14840
14842
|
};
|
|
14841
14843
|
|
|
14842
14844
|
// src/agents/toolFilter.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.19253+13319fa3f",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@bike4mind/agents": "0.1.0",
|
|
114
|
-
"@bike4mind/common": "2.51.1-ja-
|
|
115
|
-
"@bike4mind/mcp": "1.30.1-ja-
|
|
116
|
-
"@bike4mind/services": "2.49.1-ja-
|
|
117
|
-
"@bike4mind/utils": "2.6.1-ja-
|
|
114
|
+
"@bike4mind/common": "2.51.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
115
|
+
"@bike4mind/mcp": "1.30.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
116
|
+
"@bike4mind/services": "2.49.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
117
|
+
"@bike4mind/utils": "2.6.1-ja-fix-normalize-tool-parameters.19253+13319fa3f",
|
|
118
118
|
"@types/better-sqlite3": "^7.6.13",
|
|
119
119
|
"@types/diff": "^5.0.9",
|
|
120
120
|
"@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": "13319fa3f57ae59fe4b71029f129c41eb65aa2a3"
|
|
139
139
|
}
|