@bike4mind/cli 0.2.42-fix-6890-math-evaluate-multi-statement.20439 → 0.2.42-fix-delegate-agent-timeout.20443
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/{chunk-NJSBLVJI.js → chunk-4F4ZR5VZ.js} +6 -6
- package/dist/{chunk-MU5VN5FJ.js → chunk-W56Y4NQ3.js} +10 -17
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/headlessCommand.js +1 -1
- package/dist/commands/updateCommand.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.42-fix-
|
|
6
|
+
version: "0.2.42-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -117,10 +117,10 @@ var package_default = {
|
|
|
117
117
|
},
|
|
118
118
|
devDependencies: {
|
|
119
119
|
"@bike4mind/agents": "0.1.0",
|
|
120
|
-
"@bike4mind/common": "2.61.2-fix-
|
|
121
|
-
"@bike4mind/mcp": "1.33.4-fix-
|
|
122
|
-
"@bike4mind/services": "2.57.2-fix-
|
|
123
|
-
"@bike4mind/utils": "2.12.4-fix-
|
|
120
|
+
"@bike4mind/common": "2.61.2-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
121
|
+
"@bike4mind/mcp": "1.33.4-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
122
|
+
"@bike4mind/services": "2.57.2-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
123
|
+
"@bike4mind/utils": "2.12.4-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
124
124
|
"@types/better-sqlite3": "^7.6.13",
|
|
125
125
|
"@types/diff": "^5.0.9",
|
|
126
126
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -138,7 +138,7 @@ var package_default = {
|
|
|
138
138
|
optionalDependencies: {
|
|
139
139
|
"@vscode/ripgrep": "^1.17.0"
|
|
140
140
|
},
|
|
141
|
-
gitHead: "
|
|
141
|
+
gitHead: "ac4b2169699b63da431adc2d65d264b54623c7d3"
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// src/utils/updateChecker.ts
|
|
@@ -5196,20 +5196,6 @@ async function evaluateMath(params) {
|
|
|
5196
5196
|
console.log("\u{1F522} Math Tool: Starting evaluation of expression:", params.expression);
|
|
5197
5197
|
try {
|
|
5198
5198
|
let expression = params.expression.trim();
|
|
5199
|
-
if (expression.includes(";")) {
|
|
5200
|
-
console.log("\u{1F522} Math Tool: Detected multi-statement expression, evaluating with shared scope...");
|
|
5201
|
-
const result2 = math.evaluate(expression);
|
|
5202
|
-
if (math.typeOf(result2) === "ResultSet") {
|
|
5203
|
-
const entries = result2.entries;
|
|
5204
|
-
const lastResult = entries[entries.length - 1];
|
|
5205
|
-
if (math.typeOf(lastResult) === "Matrix") {
|
|
5206
|
-
return `Matrix result:
|
|
5207
|
-
${math.format(lastResult, { precision: params.precision })}`;
|
|
5208
|
-
}
|
|
5209
|
-
return math.format(lastResult, { precision: params.precision });
|
|
5210
|
-
}
|
|
5211
|
-
return math.format(result2, { precision: params.precision });
|
|
5212
|
-
}
|
|
5213
5199
|
if (expression.includes("=") || expression.match(/solve\s*\(/)) {
|
|
5214
5200
|
console.log("\u{1F522} Math Tool: Detected equation, processing...");
|
|
5215
5201
|
const solveMatch = expression.match(/solve\s*\(\s*([^,=]+)\s*=\s*([^,)]+)\s*(?:,\s*([a-zA-Z]\w*))?\s*\)/);
|
|
@@ -5342,7 +5328,7 @@ var mathTool = {
|
|
|
5342
5328
|
toolFn: (value) => evaluateMath(value),
|
|
5343
5329
|
toolSchema: {
|
|
5344
5330
|
name: "math_evaluate",
|
|
5345
|
-
description: `Evaluate mathematical expressions using mathjs syntax. Supports arithmetic, algebra, trigonometry, calculus, and statistics.
|
|
5331
|
+
description: `Evaluate mathematical expressions using mathjs syntax. Supports arithmetic, algebra, trigonometry, calculus, and statistics. IMPORTANT: Use simple mathematical notation only - no loops, variables assignments, or programming constructs. For multi-step calculations, make multiple separate tool calls.
|
|
5346
5332
|
|
|
5347
5333
|
**LaTeX Rendering Support:**
|
|
5348
5334
|
When showing mathematical work, equations, or formulas in your response, use LaTeX syntax for professional rendering:
|
|
@@ -5373,7 +5359,7 @@ Always use LaTeX for mathematical notation to ensure clear, professional present
|
|
|
5373
5359
|
properties: {
|
|
5374
5360
|
expression: {
|
|
5375
5361
|
type: "string",
|
|
5376
|
-
description: 'The mathematical expression to evaluate using mathjs syntax.
|
|
5362
|
+
description: 'The mathematical expression to evaluate. Must be a single mathematical expression using mathjs syntax. Examples: "5 * 6 + 3", "sin(pi/4)", "solve(x^2 - 4 = 0, x)". DO NOT use: variable assignments (base=1.6), loops (for/while), comments (//), or multi-line code. For complex calculations, break into multiple tool calls.'
|
|
5377
5363
|
},
|
|
5378
5364
|
precision: {
|
|
5379
5365
|
type: "number",
|
|
@@ -13366,7 +13352,14 @@ var generateMcpToolsFromCache = (serverName, cachedTools, callTool) => {
|
|
|
13366
13352
|
};
|
|
13367
13353
|
|
|
13368
13354
|
// ../../b4m-core/packages/services/dist/src/llm/agents/ServerSubagentOrchestrator.js
|
|
13369
|
-
var
|
|
13355
|
+
var SUBAGENT_TIMEOUT_BY_THOROUGHNESS = {
|
|
13356
|
+
quick: 2 * 60 * 1e3,
|
|
13357
|
+
// 2 minutes
|
|
13358
|
+
medium: 5 * 60 * 1e3,
|
|
13359
|
+
// 5 minutes
|
|
13360
|
+
very_thorough: 10 * 60 * 1e3
|
|
13361
|
+
// 10 minutes
|
|
13362
|
+
};
|
|
13370
13363
|
|
|
13371
13364
|
// ../../b4m-core/packages/services/dist/src/llm/ChatCompletionProcess.js
|
|
13372
13365
|
import throttle2 from "lodash/throttle.js";
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
setWebSocketToolExecutor,
|
|
47
47
|
substituteArguments,
|
|
48
48
|
warmFileCache
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-W56Y4NQ3.js";
|
|
50
50
|
import "./chunk-BDQBOLYG.js";
|
|
51
51
|
import "./chunk-LASSRSY5.js";
|
|
52
52
|
import "./chunk-GQGOWACU.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
checkForUpdate,
|
|
64
64
|
package_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-4F4ZR5VZ.js";
|
|
66
66
|
import {
|
|
67
67
|
selectActiveBackgroundAgents,
|
|
68
68
|
useCliStore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.42-fix-
|
|
3
|
+
"version": "0.2.42-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
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.61.2-fix-
|
|
118
|
-
"@bike4mind/mcp": "1.33.4-fix-
|
|
119
|
-
"@bike4mind/services": "2.57.2-fix-
|
|
120
|
-
"@bike4mind/utils": "2.12.4-fix-
|
|
117
|
+
"@bike4mind/common": "2.61.2-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
118
|
+
"@bike4mind/mcp": "1.33.4-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
119
|
+
"@bike4mind/services": "2.57.2-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
120
|
+
"@bike4mind/utils": "2.12.4-fix-delegate-agent-timeout.20443+ac4b21696",
|
|
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": "ac4b2169699b63da431adc2d65d264b54623c7d3"
|
|
139
139
|
}
|