@bike4mind/cli 0.2.17-feat-ripgrep-integration.17657 → 0.2.17-feat-ripgrep-integration.17676
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 +47 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3022,6 +3022,39 @@ SUBAGENT DELEGATION:
|
|
|
3022
3022
|
- Subagents keep the main conversation clean and run faster with optimized models
|
|
3023
3023
|
- Delegate when you need to search extensively or analyze code structure
|
|
3024
3024
|
|
|
3025
|
+
CODE SEARCH BEST PRACTICES:
|
|
3026
|
+
When searching code, follow this hierarchy for speed and efficiency:
|
|
3027
|
+
|
|
3028
|
+
1. Start Narrow \u2192 Go Broad
|
|
3029
|
+
\u2705 Efficient: ${TOOL_GLOB_FILES}("src/**/*.test.ts") \u2192 ${TOOL_GREP_SEARCH}("test('user login'") \u2192 ${TOOL_FILE_READ}("src/auth/login.test.ts")
|
|
3030
|
+
\u274C Inefficient: ${TOOL_GREP_SEARCH}("login") \u2192 Read 50 files individually \u2192 Repeat with different term
|
|
3031
|
+
|
|
3032
|
+
2. Leverage Git Information
|
|
3033
|
+
Before searching, check recent changes:
|
|
3034
|
+
- ${TOOL_BASH_EXECUTE}("git log --name-only --oneline -20")
|
|
3035
|
+
- ${TOOL_BASH_EXECUTE}("git log --oneline -10 -- src/auth/")
|
|
3036
|
+
|
|
3037
|
+
3. File Patterns
|
|
3038
|
+
Use specific patterns instead of broad searches:
|
|
3039
|
+
\u2705 Good: ${TOOL_GLOB_FILES}("**/*.{ts,tsx}"), ${TOOL_GLOB_FILES}("src/components/**/Button*")
|
|
3040
|
+
\u274C Bad: ${TOOL_GLOB_FILES}("**/*"), ${TOOL_GREP_SEARCH}("auth")
|
|
3041
|
+
|
|
3042
|
+
4. Test Files as Documentation
|
|
3043
|
+
When learning about a feature, check tests first:
|
|
3044
|
+
${TOOL_GLOB_FILES}("**/*.test.{ts,tsx}") \u2192 ${TOOL_GREP_SEARCH}("describe('AuthProvider'") \u2192 ${TOOL_FILE_READ} test file \u2192 Read implementation
|
|
3045
|
+
|
|
3046
|
+
5. Batch Operations
|
|
3047
|
+
Prefer glob patterns over multiple calls:
|
|
3048
|
+
\u2705 ${TOOL_GLOB_FILES}("src/**/*.{ts,tsx,js,jsx}") (one call)
|
|
3049
|
+
\u274C 4 separate ${TOOL_GLOB_FILES} calls for each extension
|
|
3050
|
+
|
|
3051
|
+
6. Tool Selection Decision Tree
|
|
3052
|
+
Goal: Find where "AuthProvider" is defined
|
|
3053
|
+
\u2192 ${TOOL_GLOB_FILES}("**/*Auth*.{ts,tsx}") (narrow the search)
|
|
3054
|
+
\u2192 ${TOOL_GREP_SEARCH}("(class|interface|type) AuthProvider") (find exact location)
|
|
3055
|
+
\u2192 ${TOOL_FILE_READ}("src/auth/AuthProvider.tsx") (read only that file)
|
|
3056
|
+
Result: 3 tool calls instead of 10-15
|
|
3057
|
+
|
|
3025
3058
|
FOR GENERAL TASKS:
|
|
3026
3059
|
- Use available tools to get information (weather, web search, calculations, etc.)
|
|
3027
3060
|
- When user asks follow-up questions, use conversation context to understand what they're referring to
|
|
@@ -11438,7 +11471,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
11438
11471
|
// package.json
|
|
11439
11472
|
var package_default = {
|
|
11440
11473
|
name: "@bike4mind/cli",
|
|
11441
|
-
version: "0.2.17-feat-ripgrep-integration.
|
|
11474
|
+
version: "0.2.17-feat-ripgrep-integration.17676+0f83d84db",
|
|
11442
11475
|
type: "module",
|
|
11443
11476
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
11444
11477
|
license: "UNLICENSED",
|
|
@@ -11545,10 +11578,10 @@ var package_default = {
|
|
|
11545
11578
|
},
|
|
11546
11579
|
devDependencies: {
|
|
11547
11580
|
"@bike4mind/agents": "0.1.0",
|
|
11548
|
-
"@bike4mind/common": "2.43.1-feat-ripgrep-integration.
|
|
11549
|
-
"@bike4mind/mcp": "1.22.3-feat-ripgrep-integration.
|
|
11550
|
-
"@bike4mind/services": "2.40.1-feat-ripgrep-integration.
|
|
11551
|
-
"@bike4mind/utils": "2.2.1-feat-ripgrep-integration.
|
|
11581
|
+
"@bike4mind/common": "2.43.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
11582
|
+
"@bike4mind/mcp": "1.22.3-feat-ripgrep-integration.17676+0f83d84db",
|
|
11583
|
+
"@bike4mind/services": "2.40.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
11584
|
+
"@bike4mind/utils": "2.2.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
11552
11585
|
"@types/better-sqlite3": "^7.6.13",
|
|
11553
11586
|
"@types/diff": "^5.0.9",
|
|
11554
11587
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -11565,7 +11598,7 @@ var package_default = {
|
|
|
11565
11598
|
optionalDependencies: {
|
|
11566
11599
|
"@vscode/ripgrep": "^1.17.0"
|
|
11567
11600
|
},
|
|
11568
|
-
gitHead: "
|
|
11601
|
+
gitHead: "0f83d84dbabacf4d4a783634589cac64d45df2a2"
|
|
11569
11602
|
};
|
|
11570
11603
|
|
|
11571
11604
|
// src/config/constants.ts
|
|
@@ -11765,6 +11798,14 @@ Focus on:
|
|
|
11765
11798
|
|
|
11766
11799
|
You have read-only access. Use file_read, grep_search, and glob_files to explore.
|
|
11767
11800
|
|
|
11801
|
+
CODE SEARCH EFFICIENCY:
|
|
11802
|
+
1. Start narrow with glob_files using specific patterns (e.g., "**/*Auth*.ts")
|
|
11803
|
+
2. Then use grep_search with precise regex on narrowed results
|
|
11804
|
+
3. Finally use file_read only on relevant files
|
|
11805
|
+
4. Leverage git log to find recent changes
|
|
11806
|
+
5. Check test files first to understand feature usage
|
|
11807
|
+
6. Batch glob operations instead of multiple separate calls
|
|
11808
|
+
|
|
11768
11809
|
When you find what you're looking for, provide a clear summary including:
|
|
11769
11810
|
1. What you found (files, functions, patterns)
|
|
11770
11811
|
2. Key insights or observations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.17-feat-ripgrep-integration.
|
|
3
|
+
"version": "0.2.17-feat-ripgrep-integration.17676+0f83d84db",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@bike4mind/agents": "0.1.0",
|
|
110
|
-
"@bike4mind/common": "2.43.1-feat-ripgrep-integration.
|
|
111
|
-
"@bike4mind/mcp": "1.22.3-feat-ripgrep-integration.
|
|
112
|
-
"@bike4mind/services": "2.40.1-feat-ripgrep-integration.
|
|
113
|
-
"@bike4mind/utils": "2.2.1-feat-ripgrep-integration.
|
|
110
|
+
"@bike4mind/common": "2.43.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
111
|
+
"@bike4mind/mcp": "1.22.3-feat-ripgrep-integration.17676+0f83d84db",
|
|
112
|
+
"@bike4mind/services": "2.40.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
113
|
+
"@bike4mind/utils": "2.2.1-feat-ripgrep-integration.17676+0f83d84db",
|
|
114
114
|
"@types/better-sqlite3": "^7.6.13",
|
|
115
115
|
"@types/diff": "^5.0.9",
|
|
116
116
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"optionalDependencies": {
|
|
128
128
|
"@vscode/ripgrep": "^1.17.0"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "0f83d84dbabacf4d4a783634589cac64d45df2a2"
|
|
131
131
|
}
|