@bike4mind/cli 0.2.24-cli-file-read-offset.18477 → 0.2.24-cli-file-read-offset.18478
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 +19 -11
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3489,8 +3489,16 @@ CORE BEHAVIOR:
|
|
|
3489
3489
|
|
|
3490
3490
|
FOR SOFTWARE ENGINEERING TASKS:
|
|
3491
3491
|
When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this sequence:
|
|
3492
|
-
1. **Understand:** Think about the user's request and the relevant codebase context. Use '${TOOL_GREP_SEARCH}' and '${TOOL_GLOB_FILES}' search tools extensively (in parallel if independent) to understand file structures, existing code patterns, and conventions. Use '${TOOL_FILE_READ}' to understand context and validate any assumptions you may have.
|
|
3493
|
-
|
|
3492
|
+
1. **Understand:** Think about the user's request and the relevant codebase context. Use '${TOOL_GREP_SEARCH}' and '${TOOL_GLOB_FILES}' search tools extensively (in parallel if independent) to understand file structures, existing code patterns, and conventions. Use '${TOOL_FILE_READ}' to understand context and validate any assumptions you may have.
|
|
3493
|
+
|
|
3494
|
+
IMPORTANT FILE READING RULES:
|
|
3495
|
+
- Read each file ONCE and refer to it in conversation history instead of re-reading
|
|
3496
|
+
- Read files COMPLETELY by default (without offset/limit parameters)
|
|
3497
|
+
- Only use offset/limit for files that are too large to fit in context (thousands of lines)
|
|
3498
|
+
- If you need to read multiple DIFFERENT files, make multiple parallel calls to '${TOOL_FILE_READ}'
|
|
3499
|
+
- NEVER make multiple calls to read the SAME file with different offsets unless it's truly too large
|
|
3500
|
+
|
|
3501
|
+
When the task involves **complex refactoring, codebase exploration or system-wide analysis**, your **first and primary action** must be to delegate to the '${EXPLORE_SUBAGENT_TYPE}' agent using the '${TOOL_SUBAGENT_DELEGATE}' tool. Use it to build a comprehensive understanding of the code, its structure, and dependencies. For **simple, targeted searches** (like finding a specific function name, file path, or variable declaration), you should use '${TOOL_GREP_SEARCH}' or '${TOOL_GLOB_FILES}' directly.
|
|
3494
3502
|
2. **Plan:** Build a coherent and grounded (based on the understanding in step 1) plan for how you intend to resolve the user's task. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.
|
|
3495
3503
|
If '${EXPLORE_SUBAGENT_TYPE}' subagent was used, do not ignore the output of the agent, you must use it as the foundation of your plan. For complex tasks, break them down into smaller, manageable subtasks and use the \`${TOOL_WRITE_TODOS}\` tool to track your progress. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.
|
|
3496
3504
|
3. **Implement:** Use the available tools (e.g., '${TOOL_EDIT_LOCAL_FILE}', '${TOOL_CREATE_FILE}', '${TOOL_BASH_EXECUTE}' ...) to act on the plan, strictly adhering to the project's established conventions.
|
|
@@ -8941,7 +8949,7 @@ var fileReadTool = {
|
|
|
8941
8949
|
},
|
|
8942
8950
|
toolSchema: {
|
|
8943
8951
|
name: "file_read",
|
|
8944
|
-
description: "Read the contents of a file from the local filesystem. Supports text files with various encodings. Files are restricted to the current working directory and subdirectories for security.
|
|
8952
|
+
description: "Read the contents of a file from the local filesystem. Supports text files with various encodings. Files are restricted to the current working directory and subdirectories for security. IMPORTANT: Read files completely by default (without offset/limit). Only use offset/limit for extremely large files (thousands of lines) that exceed context limits. Never re-read the same file multiple times - refer to previous reads in conversation history instead.",
|
|
8945
8953
|
parameters: {
|
|
8946
8954
|
type: "object",
|
|
8947
8955
|
properties: {
|
|
@@ -8956,11 +8964,11 @@ var fileReadTool = {
|
|
|
8956
8964
|
},
|
|
8957
8965
|
offset: {
|
|
8958
8966
|
type: "number",
|
|
8959
|
-
description: "For text files, the 0-based line number to start reading from (
|
|
8967
|
+
description: "OPTIONAL: For text files, the 0-based line number to start reading from. Only use for extremely large files (thousands of lines) that cannot fit in context. Default behavior is to read the entire file, which is preferred for most cases."
|
|
8960
8968
|
},
|
|
8961
8969
|
limit: {
|
|
8962
8970
|
type: "number",
|
|
8963
|
-
description: "
|
|
8971
|
+
description: "OPTIONAL: Maximum number of lines to read from offset. Only use for extremely large files (thousands of lines) that cannot fit in context. Default behavior is to read the entire file, which is preferred for most cases."
|
|
8964
8972
|
}
|
|
8965
8973
|
},
|
|
8966
8974
|
required: ["path"]
|
|
@@ -12536,7 +12544,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
12536
12544
|
// package.json
|
|
12537
12545
|
var package_default = {
|
|
12538
12546
|
name: "@bike4mind/cli",
|
|
12539
|
-
version: "0.2.24-cli-file-read-offset.
|
|
12547
|
+
version: "0.2.24-cli-file-read-offset.18478+9538467fd",
|
|
12540
12548
|
type: "module",
|
|
12541
12549
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
12542
12550
|
license: "UNLICENSED",
|
|
@@ -12644,10 +12652,10 @@ var package_default = {
|
|
|
12644
12652
|
},
|
|
12645
12653
|
devDependencies: {
|
|
12646
12654
|
"@bike4mind/agents": "0.1.0",
|
|
12647
|
-
"@bike4mind/common": "2.47.1-cli-file-read-offset.
|
|
12648
|
-
"@bike4mind/mcp": "1.27.1-cli-file-read-offset.
|
|
12649
|
-
"@bike4mind/services": "2.45.1-cli-file-read-offset.
|
|
12650
|
-
"@bike4mind/utils": "2.3.3-cli-file-read-offset.
|
|
12655
|
+
"@bike4mind/common": "2.47.1-cli-file-read-offset.18478+9538467fd",
|
|
12656
|
+
"@bike4mind/mcp": "1.27.1-cli-file-read-offset.18478+9538467fd",
|
|
12657
|
+
"@bike4mind/services": "2.45.1-cli-file-read-offset.18478+9538467fd",
|
|
12658
|
+
"@bike4mind/utils": "2.3.3-cli-file-read-offset.18478+9538467fd",
|
|
12651
12659
|
"@types/better-sqlite3": "^7.6.13",
|
|
12652
12660
|
"@types/diff": "^5.0.9",
|
|
12653
12661
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -12664,7 +12672,7 @@ var package_default = {
|
|
|
12664
12672
|
optionalDependencies: {
|
|
12665
12673
|
"@vscode/ripgrep": "^1.17.0"
|
|
12666
12674
|
},
|
|
12667
|
-
gitHead: "
|
|
12675
|
+
gitHead: "9538467fd3acaaf1c31be03ff723e206139a8469"
|
|
12668
12676
|
};
|
|
12669
12677
|
|
|
12670
12678
|
// src/config/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.24-cli-file-read-offset.
|
|
3
|
+
"version": "0.2.24-cli-file-read-offset.18478+9538467fd",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
110
|
"@bike4mind/agents": "0.1.0",
|
|
111
|
-
"@bike4mind/common": "2.47.1-cli-file-read-offset.
|
|
112
|
-
"@bike4mind/mcp": "1.27.1-cli-file-read-offset.
|
|
113
|
-
"@bike4mind/services": "2.45.1-cli-file-read-offset.
|
|
114
|
-
"@bike4mind/utils": "2.3.3-cli-file-read-offset.
|
|
111
|
+
"@bike4mind/common": "2.47.1-cli-file-read-offset.18478+9538467fd",
|
|
112
|
+
"@bike4mind/mcp": "1.27.1-cli-file-read-offset.18478+9538467fd",
|
|
113
|
+
"@bike4mind/services": "2.45.1-cli-file-read-offset.18478+9538467fd",
|
|
114
|
+
"@bike4mind/utils": "2.3.3-cli-file-read-offset.18478+9538467fd",
|
|
115
115
|
"@types/better-sqlite3": "^7.6.13",
|
|
116
116
|
"@types/diff": "^5.0.9",
|
|
117
117
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"optionalDependencies": {
|
|
129
129
|
"@vscode/ripgrep": "^1.17.0"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "9538467fd3acaaf1c31be03ff723e206139a8469"
|
|
132
132
|
}
|