@bike4mind/cli 0.2.11-fix-cli-edit-file.17320 → 0.2.11-fix-cli-edit-file.17321
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 +10 -10
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -9542,7 +9542,7 @@ Diff:
|
|
|
9542
9542
|
${diffResult.diff}`;
|
|
9543
9543
|
}
|
|
9544
9544
|
var editLocalFileTool = {
|
|
9545
|
-
name: "
|
|
9545
|
+
name: "edit_local_file",
|
|
9546
9546
|
implementation: (context) => ({
|
|
9547
9547
|
toolFn: async (value) => {
|
|
9548
9548
|
const params = value;
|
|
@@ -9561,7 +9561,7 @@ var editLocalFileTool = {
|
|
|
9561
9561
|
}
|
|
9562
9562
|
},
|
|
9563
9563
|
toolSchema: {
|
|
9564
|
-
name: "
|
|
9564
|
+
name: "edit_local_file",
|
|
9565
9565
|
description: "Edit a file by replacing a specific string with new content. The old_string must match exactly one location in the file (including whitespace). Use this for precise edits to existing files. For creating new files or complete rewrites, use create_file instead.",
|
|
9566
9566
|
parameters: {
|
|
9567
9567
|
type: "object",
|
|
@@ -10211,10 +10211,10 @@ var SERVER_TOOLS = ["weather_info", "web_search"];
|
|
|
10211
10211
|
var LOCAL_TOOLS = [
|
|
10212
10212
|
"file_read",
|
|
10213
10213
|
"create_file",
|
|
10214
|
+
"edit_local_file",
|
|
10214
10215
|
"glob_files",
|
|
10215
10216
|
"grep_search",
|
|
10216
10217
|
"delete_file",
|
|
10217
|
-
"edit_file",
|
|
10218
10218
|
"dice_roll",
|
|
10219
10219
|
"math_evaluate",
|
|
10220
10220
|
"current_datetime",
|
|
@@ -10294,7 +10294,7 @@ function wrapToolWithPermission(tool, permissionManager, showPermissionPrompt, a
|
|
|
10294
10294
|
return result2;
|
|
10295
10295
|
}
|
|
10296
10296
|
let preview;
|
|
10297
|
-
if (toolName === "
|
|
10297
|
+
if (toolName === "edit_local_file" && args?.path && args?.old_string && typeof args?.new_string === "string") {
|
|
10298
10298
|
try {
|
|
10299
10299
|
preview = generateEditLocalFilePreview({
|
|
10300
10300
|
path: args.path,
|
|
@@ -11654,7 +11654,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
11654
11654
|
// package.json
|
|
11655
11655
|
var package_default = {
|
|
11656
11656
|
name: "@bike4mind/cli",
|
|
11657
|
-
version: "0.2.11-fix-cli-edit-file.
|
|
11657
|
+
version: "0.2.11-fix-cli-edit-file.17321+e2e930d6a",
|
|
11658
11658
|
type: "module",
|
|
11659
11659
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
11660
11660
|
license: "UNLICENSED",
|
|
@@ -11758,10 +11758,10 @@ var package_default = {
|
|
|
11758
11758
|
},
|
|
11759
11759
|
devDependencies: {
|
|
11760
11760
|
"@bike4mind/agents": "0.1.0",
|
|
11761
|
-
"@bike4mind/common": "2.40.1-fix-cli-edit-file.
|
|
11762
|
-
"@bike4mind/mcp": "1.20.5-fix-cli-edit-file.
|
|
11763
|
-
"@bike4mind/services": "2.35.1-fix-cli-edit-file.
|
|
11764
|
-
"@bike4mind/utils": "2.1.5-fix-cli-edit-file.
|
|
11761
|
+
"@bike4mind/common": "2.40.1-fix-cli-edit-file.17321+e2e930d6a",
|
|
11762
|
+
"@bike4mind/mcp": "1.20.5-fix-cli-edit-file.17321+e2e930d6a",
|
|
11763
|
+
"@bike4mind/services": "2.35.1-fix-cli-edit-file.17321+e2e930d6a",
|
|
11764
|
+
"@bike4mind/utils": "2.1.5-fix-cli-edit-file.17321+e2e930d6a",
|
|
11765
11765
|
"@types/better-sqlite3": "^7.6.13",
|
|
11766
11766
|
"@types/diff": "^5.0.9",
|
|
11767
11767
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -11774,7 +11774,7 @@ var package_default = {
|
|
|
11774
11774
|
typescript: "^5.9.3",
|
|
11775
11775
|
vitest: "^3.2.4"
|
|
11776
11776
|
},
|
|
11777
|
-
gitHead: "
|
|
11777
|
+
gitHead: "e2e930d6a6add8a7c1ffa5ebc415a82dabca82e9"
|
|
11778
11778
|
};
|
|
11779
11779
|
|
|
11780
11780
|
// src/config/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.11-fix-cli-edit-file.
|
|
3
|
+
"version": "0.2.11-fix-cli-edit-file.17321+e2e930d6a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@bike4mind/agents": "0.1.0",
|
|
107
|
-
"@bike4mind/common": "2.40.1-fix-cli-edit-file.
|
|
108
|
-
"@bike4mind/mcp": "1.20.5-fix-cli-edit-file.
|
|
109
|
-
"@bike4mind/services": "2.35.1-fix-cli-edit-file.
|
|
110
|
-
"@bike4mind/utils": "2.1.5-fix-cli-edit-file.
|
|
107
|
+
"@bike4mind/common": "2.40.1-fix-cli-edit-file.17321+e2e930d6a",
|
|
108
|
+
"@bike4mind/mcp": "1.20.5-fix-cli-edit-file.17321+e2e930d6a",
|
|
109
|
+
"@bike4mind/services": "2.35.1-fix-cli-edit-file.17321+e2e930d6a",
|
|
110
|
+
"@bike4mind/utils": "2.1.5-fix-cli-edit-file.17321+e2e930d6a",
|
|
111
111
|
"@types/better-sqlite3": "^7.6.13",
|
|
112
112
|
"@types/diff": "^5.0.9",
|
|
113
113
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"typescript": "^5.9.3",
|
|
121
121
|
"vitest": "^3.2.4"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "e2e930d6a6add8a7c1ffa5ebc415a82dabca82e9"
|
|
124
124
|
}
|