@bike4mind/cli 0.2.30-ja-fix-normalize-tool-parameters.19253 → 0.2.30-ja-refactor-slack-direct-completion.19286

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