You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1136
-
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file:\n\n`+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
`1. You do not need to re-write the file with these changes, as they have already been applied.\n`+
1140
1140
`2. Proceed with the task using this updated file content as the new baseline.\n`+
@@ -1245,8 +1245,8 @@ export class Cline {
1245
1245
)
1246
1246
pushToolResult(
1247
1247
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1248
-
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file:\n\n`+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
Copy file name to clipboardExpand all lines: src/core/prompts/system.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Usage:
46
46
</execute_command>
47
47
48
48
## read_file
49
-
Description: Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files. Automatically extracts raw text from PDF and DOCX files. May not be suitable for other types of binary files, as it returns the raw content as a string.
49
+
Description: Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files. The output includes line numbers prefixed to each line (e.g. "1 | const x = 1"), making it easier to reference specific lines when creating diffs or discussing code. Automatically extracts raw text from PDF and DOCX files. May not be suitable for other types of binary files, as it returns the raw content as a string.
50
50
Parameters:
51
51
- path: (required) The path of the file to read (relative to the current working directory ${cwd.toPosix()})
52
52
Usage:
@@ -361,3 +361,4 @@ The following additional instructions are provided by the user, and should be fo
0 commit comments