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
Copy file name to clipboardExpand all lines: backend/src/__tests__/__snapshots__/tools.test.ts.snap
+36-12Lines changed: 36 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -499,6 +499,8 @@ Indicate the location and nature of the modifications (additions and deletions)
499
499
500
500
Make sure that you preserve the indentation and code structure of exactly how you believe the final code will look like (do not output lines that will not be in the final code after they are merged).
501
501
502
+
##### **IMPORTANT** Deletion Comments
503
+
502
504
**CRITICAL FOR DELETIONS** If you plan on deleting a section, you MUST provide a comment giving the relevant context such that the code is understood to be removed. This is REQUIRED for the fast-apply model to understand what to delete.
503
505
504
506
Examples:
@@ -518,7 +520,9 @@ Block 3
518
520
// rest of code
519
521
\`\`\`
520
522
521
-
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
523
+
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing **anything**: single lines, code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
524
+
525
+
Merely omitting the code block may or may not work. In order to guarantee the deletion of the code, you must include a deletion comment.
522
526
523
527
#### Additional Info
524
528
@@ -547,17 +551,19 @@ Example 1 - Simple file creation:
547
551
Example 2 - Editing with placeholder comments:
548
552
<write_file>
549
553
<path>foo.ts</path>
550
-
<content>// no change to imports
554
+
<content>// ... existing code ...
551
555
552
556
function foo() {
553
557
console.log('foo');
554
558
for (leti=0; i<10; i++) {
555
559
console.log(i);
556
560
}
557
561
doSomething();
562
+
563
+
// Delete the console.log line from here
558
564
}
559
565
560
-
// rest of code</content>
566
+
// ... existing code ...</content>
561
567
</write_file>
562
568
563
569
### str_replace
@@ -1047,6 +1053,8 @@ Indicate the location and nature of the modifications (additions and deletions)
1047
1053
1048
1054
Make sure that you preserve the indentation and code structure of exactly how you believe the final code will look like (do not output lines that will not be in the final code after they are merged).
1049
1055
1056
+
##### **IMPORTANT** Deletion Comments
1057
+
1050
1058
**CRITICAL FOR DELETIONS** If you plan on deleting a section, you MUST provide a comment giving the relevant context such that the code is understood to be removed. This is REQUIRED for the fast-apply model to understand what to delete.
1051
1059
1052
1060
Examples:
@@ -1066,7 +1074,9 @@ Block 3
1066
1074
// rest of code
1067
1075
\`\`\`
1068
1076
1069
-
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
1077
+
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing **anything**: single lines, code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
1078
+
1079
+
Merely omitting the code block may or may not work. In order to guarantee the deletion of the code, you must include a deletion comment.
1070
1080
1071
1081
#### Additional Info
1072
1082
@@ -1095,17 +1105,19 @@ Example 1 - Simple file creation:
1095
1105
Example 2 - Editing with placeholder comments:
1096
1106
<write_file>
1097
1107
<path>foo.ts</path>
1098
-
<content>// no change to imports
1108
+
<content>// ... existing code ...
1099
1109
1100
1110
function foo() {
1101
1111
console.log('foo');
1102
1112
for (leti=0; i<10; i++) {
1103
1113
console.log(i);
1104
1114
}
1105
1115
doSomething();
1116
+
1117
+
// Delete the console.log line from here
1106
1118
}
1107
1119
1108
-
// rest of code</content>
1120
+
// ... existing code ...</content>
1109
1121
</write_file>
1110
1122
1111
1123
### str_replace
@@ -1595,6 +1607,8 @@ Indicate the location and nature of the modifications (additions and deletions)
1595
1607
1596
1608
Make sure that you preserve the indentation and code structure of exactly how you believe the final code will look like (do not output lines that will not be in the final code after they are merged).
1597
1609
1610
+
##### **IMPORTANT** Deletion Comments
1611
+
1598
1612
**CRITICAL FOR DELETIONS** If you plan on deleting a section, you MUST provide a comment giving the relevant context such that the code is understood to be removed. This is REQUIRED for the fast-apply model to understand what to delete.
1599
1613
1600
1614
Examples:
@@ -1614,7 +1628,9 @@ Block 3
1614
1628
// rest of code
1615
1629
\`\`\`
1616
1630
1617
-
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
1631
+
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing **anything**: single lines, code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
1632
+
1633
+
Merely omitting the code block may or may not work. In order to guarantee the deletion of the code, you must include a deletion comment.
1618
1634
1619
1635
#### Additional Info
1620
1636
@@ -1643,17 +1659,19 @@ Example 1 - Simple file creation:
1643
1659
Example 2 - Editing with placeholder comments:
1644
1660
<write_file>
1645
1661
<path>foo.ts</path>
1646
-
<content>// no change to imports
1662
+
<content>// ... existing code ...
1647
1663
1648
1664
function foo() {
1649
1665
console.log('foo');
1650
1666
for (leti=0; i<10; i++) {
1651
1667
console.log(i);
1652
1668
}
1653
1669
doSomething();
1670
+
1671
+
// Delete the console.log line from here
1654
1672
}
1655
1673
1656
-
// rest of code</content>
1674
+
// ... existing code ...</content>
1657
1675
</write_file>
1658
1676
1659
1677
### str_replace
@@ -2143,6 +2161,8 @@ Indicate the location and nature of the modifications (additions and deletions)
2143
2161
2144
2162
Make sure that you preserve the indentation and code structure of exactly how you believe the final code will look like (do not output lines that will not be in the final code after they are merged).
2145
2163
2164
+
##### **IMPORTANT** Deletion Comments
2165
+
2146
2166
**CRITICAL FOR DELETIONS** If you plan on deleting a section, you MUST provide a comment giving the relevant context such that the code is understood to be removed. This is REQUIRED for the fast-apply model to understand what to delete.
2147
2167
2148
2168
Examples:
@@ -2162,7 +2182,9 @@ Block 3
2162
2182
// rest of code
2163
2183
\`\`\`
2164
2184
2165
-
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
2185
+
**YOU MUST ALWAYS INCLUDE DELETION COMMENTS** when removing **anything**: single lines, code blocks, functions, variables, or any other code elements. The fast-apply model cannot understand deletions without these explicit comments.
2186
+
2187
+
Merely omitting the code block may or may not work. In order to guarantee the deletion of the code, you must include a deletion comment.
2166
2188
2167
2189
#### Additional Info
2168
2190
@@ -2191,17 +2213,19 @@ Example 1 - Simple file creation:
0 commit comments