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
{{ message }}
Repository navigation
Commit d11d62e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/editor/src/constants/edit-format-instructions.ts
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
constintro=`Whenever showing a new, updated, renamed, or deleted file, provide a brief explanation, then print the path in a markdown heading (e.g. - New file: \`src/examples/hello.py\`, - Updated file: \`src/examples/hello.py\`, - Renamed file: \`src/examples/hello.py\` (old) \`src/welcome.py\` (new), - Deleted file: \`src/examples/hello.py\`)`
1
+
constintro=`Whenever showing a new, updated, renamed, or deleted file, provide a brief explanation, then print the path in a markdown heading (e.g. ### New file: \`src/examples/hello.py\`, ### Updated file: \`src/examples/hello.py\`, ### Renamed file: \`src/examples/hello.py\` (old) \`src/welcome.py\` (new), ### Deleted file: \`src/examples/hello.py\`)`
2
2
3
3
exportconstEDIT_FORMAT_INSTRUCTIONS_WHOLE=`${intro}, followed by a markdown code block with the file's FULL (from cover to cover) contents. Example:
4
4
Updated the greeting text.
5
5
6
-
- Updated file: \`src/examples/hello.py\`
6
+
### Updated file: \`src/examples/hello.py\`
7
7
8
8
\`\`\`python
9
9
GREETING = "Hello, World!"
@@ -14,7 +14,7 @@ def show_greeting():
14
14
15
15
Created a simple calculator with addition and subtraction.
exportconstEDIT_FORMAT_INSTRUCTIONS_TRUNCATED=`${intro}, followed by a markdown code block with file's contents. As a space saving measure, truncate blocks like unchanged function bodies (code inside {}) by replacing with ellipsis comments. Example:
32
32
Updated the greeting text.
33
33
34
-
- Updated file: \`src/examples/hello.js\`
34
+
### Updated file: \`src/examples/hello.js\`
35
35
36
36
\`\`\`javascript
37
37
const DURATION = 5;
@@ -48,7 +48,7 @@ function showGreeting() {
48
48
49
49
Updated the purpose text.
50
50
51
-
- Updated file: \`src/README.md\`
51
+
### Updated file: \`src/README.md\`
52
52
53
53
\`\`\`markdown
54
54
## Purpose
@@ -66,7 +66,7 @@ Greet user saying "Hello, World!", for a duration of 5 seconds.
66
66
67
67
Created a simple calculator with addition and subtraction.
exportconstEDIT_FORMAT_INSTRUCTIONS_SEARCH_REPLACE=`${intro}, followed by a markdown code block showing the original and updated code snippets with Git-style merge conflict syntax. Example:
119
119
Changed greeting to wishes.
120
120
121
-
- Updated file: \`src/examples/hello.py\`
121
+
### Updated file: \`src/examples/hello.py\`
122
122
123
123
\`\`\`python
124
124
<<<<<<< SEARCH
@@ -137,7 +137,7 @@ WISHES = "Have a nice day!"
137
137
138
138
Created a simple calculator with addition and subtraction.
0 commit comments