@bike4mind/cli 0.2.49-fix-cli-stream-resilience-v2.21034 → 0.2.49-fix-cli-stream-resilience-v2.21035
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-ZRPYKOGY.js → chunk-E3SJSVGD.js} +1 -1
- package/dist/{chunk-QVLM2SPH.js → chunk-FXIXD2A6.js} +19 -10
- package/dist/{chunk-IIZOOF6Y.js → chunk-MIPUEVI4.js} +6 -6
- package/dist/{chunk-2JIF5XRA.js → chunk-QDHVYPMB.js} +1 -1
- package/dist/{chunk-23TGZ6N5.js → chunk-XCWGH6DY.js} +2 -2
- package/dist/{chunk-IQ7YLDB3.js → chunk-YF76VW3F.js} +1 -1
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/headlessCommand.js +5 -5
- package/dist/commands/updateCommand.js +1 -1
- package/dist/{create-HESERR22.js → create-CDHT7VGP.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/{mementoService-SN66CF7P.js → mementoService-CPVQWJ6T.js} +2 -2
- package/dist/{src-T2NKBHHO.js → src-MJ4NBDRU.js} +1 -1
- package/dist/{subtractCredits-TW7H7B6I.js → subtractCredits-BUDQ4UP5.js} +2 -2
- package/package.json +6 -6
|
@@ -6583,25 +6583,34 @@ import { Agent as Agent2 } from "undici";
|
|
|
6583
6583
|
function hasToolCalls(msg) {
|
|
6584
6584
|
return msg.role === "assistant" && "tool_calls" in msg;
|
|
6585
6585
|
}
|
|
6586
|
+
function isToolUseBlock(block) {
|
|
6587
|
+
return block.type === "tool_use";
|
|
6588
|
+
}
|
|
6589
|
+
function isToolResultBlock(block) {
|
|
6590
|
+
return block.type === "tool_result";
|
|
6591
|
+
}
|
|
6592
|
+
function isTextBlock(block) {
|
|
6593
|
+
return block.type === "text";
|
|
6594
|
+
}
|
|
6586
6595
|
function convertMessageToOpenAIFormat(msg) {
|
|
6587
6596
|
if (hasToolCalls(msg)) {
|
|
6588
6597
|
return [{ role: "assistant", content: null, tool_calls: msg.tool_calls }];
|
|
6589
6598
|
}
|
|
6590
6599
|
if (msg.role === "assistant" && Array.isArray(msg.content)) {
|
|
6591
6600
|
const contentBlocks = msg.content;
|
|
6592
|
-
const toolUseBlocks = contentBlocks.filter(
|
|
6601
|
+
const toolUseBlocks = contentBlocks.filter(isToolUseBlock);
|
|
6593
6602
|
if (toolUseBlocks.length > 0) {
|
|
6594
|
-
const textParts = contentBlocks.filter(
|
|
6603
|
+
const textParts = contentBlocks.filter(isTextBlock).map((block) => block.text).filter(Boolean);
|
|
6595
6604
|
return [
|
|
6596
6605
|
{
|
|
6597
6606
|
role: "assistant",
|
|
6598
6607
|
content: textParts.length > 0 ? textParts.join("\n") : null,
|
|
6599
|
-
tool_calls: toolUseBlocks.map((
|
|
6600
|
-
id:
|
|
6608
|
+
tool_calls: toolUseBlocks.map((block) => ({
|
|
6609
|
+
id: block.id,
|
|
6601
6610
|
type: "function",
|
|
6602
6611
|
function: {
|
|
6603
|
-
name:
|
|
6604
|
-
arguments:
|
|
6612
|
+
name: block.name,
|
|
6613
|
+
arguments: JSON.stringify(block.input)
|
|
6605
6614
|
}
|
|
6606
6615
|
}))
|
|
6607
6616
|
}
|
|
@@ -6610,12 +6619,12 @@ function convertMessageToOpenAIFormat(msg) {
|
|
|
6610
6619
|
}
|
|
6611
6620
|
if (msg.role === "user" && Array.isArray(msg.content)) {
|
|
6612
6621
|
const contentBlocks = msg.content;
|
|
6613
|
-
const toolResultBlocks = contentBlocks.filter(
|
|
6622
|
+
const toolResultBlocks = contentBlocks.filter(isToolResultBlock);
|
|
6614
6623
|
if (toolResultBlocks.length > 0) {
|
|
6615
|
-
return toolResultBlocks.map((
|
|
6624
|
+
return toolResultBlocks.map((block) => ({
|
|
6616
6625
|
role: "tool",
|
|
6617
|
-
content:
|
|
6618
|
-
tool_call_id:
|
|
6626
|
+
content: block.content,
|
|
6627
|
+
tool_call_id: block.tool_use_id
|
|
6619
6628
|
}));
|
|
6620
6629
|
}
|
|
6621
6630
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.49-fix-cli-stream-resilience-v2.
|
|
6
|
+
version: "0.2.49-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -118,10 +118,10 @@ var package_default = {
|
|
|
118
118
|
},
|
|
119
119
|
devDependencies: {
|
|
120
120
|
"@bike4mind/agents": "0.1.0",
|
|
121
|
-
"@bike4mind/common": "2.67.1-fix-cli-stream-resilience-v2.
|
|
122
|
-
"@bike4mind/mcp": "1.33.11-fix-cli-stream-resilience-v2.
|
|
123
|
-
"@bike4mind/services": "2.63.1-fix-cli-stream-resilience-v2.
|
|
124
|
-
"@bike4mind/utils": "2.15.4-fix-cli-stream-resilience-v2.
|
|
121
|
+
"@bike4mind/common": "2.67.1-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
122
|
+
"@bike4mind/mcp": "1.33.11-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
123
|
+
"@bike4mind/services": "2.63.1-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
124
|
+
"@bike4mind/utils": "2.15.4-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
125
125
|
"@types/better-sqlite3": "^7.6.13",
|
|
126
126
|
"@types/diff": "^5.0.9",
|
|
127
127
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -140,7 +140,7 @@ var package_default = {
|
|
|
140
140
|
optionalDependencies: {
|
|
141
141
|
"@vscode/ripgrep": "^1.17.0"
|
|
142
142
|
},
|
|
143
|
-
gitHead: "
|
|
143
|
+
gitHead: "a2916622a2bca713ac78a8c40ae58bdf92c0785f"
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
// src/utils/updateChecker.ts
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getOpenWeatherKey,
|
|
5
5
|
getSerperKey,
|
|
6
6
|
getWolframAlphaKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QDHVYPMB.js";
|
|
8
8
|
import {
|
|
9
9
|
BFLImageService,
|
|
10
10
|
BaseStorage,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
OpenAIBackend,
|
|
17
17
|
OpenAIImageService,
|
|
18
18
|
XAIImageService
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FXIXD2A6.js";
|
|
20
20
|
import {
|
|
21
21
|
Logger
|
|
22
22
|
} from "./chunk-PFBYGCOW.js";
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
isReadOnlyTool,
|
|
37
37
|
loadContextFiles,
|
|
38
38
|
setWebSocketToolExecutor
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-XCWGH6DY.js";
|
|
40
40
|
import "../chunk-BDQBOLYG.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-QDHVYPMB.js";
|
|
42
42
|
import "../chunk-GQGOWACU.js";
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-E3SJSVGD.js";
|
|
44
|
+
import "../chunk-YF76VW3F.js";
|
|
45
|
+
import "../chunk-FXIXD2A6.js";
|
|
46
46
|
import "../chunk-PFBYGCOW.js";
|
|
47
47
|
import "../chunk-BPFEGDC7.js";
|
|
48
48
|
import {
|
package/dist/index.js
CHANGED
|
@@ -46,15 +46,15 @@ import {
|
|
|
46
46
|
setWebSocketToolExecutor,
|
|
47
47
|
substituteArguments,
|
|
48
48
|
warmFileCache
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XCWGH6DY.js";
|
|
50
50
|
import "./chunk-BDQBOLYG.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-QDHVYPMB.js";
|
|
52
52
|
import "./chunk-GQGOWACU.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-E3SJSVGD.js";
|
|
54
|
+
import "./chunk-YF76VW3F.js";
|
|
55
55
|
import {
|
|
56
56
|
OllamaBackend
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-FXIXD2A6.js";
|
|
58
58
|
import "./chunk-PFBYGCOW.js";
|
|
59
59
|
import "./chunk-BPFEGDC7.js";
|
|
60
60
|
import {
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
checkForUpdate,
|
|
66
66
|
package_default
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MIPUEVI4.js";
|
|
68
68
|
import {
|
|
69
69
|
selectActiveBackgroundAgents,
|
|
70
70
|
useCliStore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.49-fix-cli-stream-resilience-v2.
|
|
3
|
+
"version": "0.2.49-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@bike4mind/agents": "0.1.0",
|
|
118
|
-
"@bike4mind/common": "2.67.1-fix-cli-stream-resilience-v2.
|
|
119
|
-
"@bike4mind/mcp": "1.33.11-fix-cli-stream-resilience-v2.
|
|
120
|
-
"@bike4mind/services": "2.63.1-fix-cli-stream-resilience-v2.
|
|
121
|
-
"@bike4mind/utils": "2.15.4-fix-cli-stream-resilience-v2.
|
|
118
|
+
"@bike4mind/common": "2.67.1-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
119
|
+
"@bike4mind/mcp": "1.33.11-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
120
|
+
"@bike4mind/services": "2.63.1-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
121
|
+
"@bike4mind/utils": "2.15.4-fix-cli-stream-resilience-v2.21035+a2916622a",
|
|
122
122
|
"@types/better-sqlite3": "^7.6.13",
|
|
123
123
|
"@types/diff": "^5.0.9",
|
|
124
124
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
"optionalDependencies": {
|
|
138
138
|
"@vscode/ripgrep": "^1.17.0"
|
|
139
139
|
},
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "a2916622a2bca713ac78a8c40ae58bdf92c0785f"
|
|
141
141
|
}
|