Skip to content

Commit ceac0f2

Browse files
committed
Update edit format instructions to use consistent example file paths
1 parent 8d8d83f commit ceac0f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export const EDIT_FORMAT_INSTRUCTIONS_WHOLE =
2-
"Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file `src/index.ts`, ### Updated file: `src/index.ts`), followed by a markdown code block with full contents—as I have a disability which means I can't type and need to be able to just copy and paste. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```python\ncount = 20\n```"
2+
"Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file `src/counter.py`, ### Updated file: `src/counter.py`), followed by a markdown code block with full contents—as I have a disability which means I can't type and need to be able to just copy and paste. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```python\ncount = 20\n```"
33

44
export const EDIT_FORMAT_INSTRUCTIONS_TRUNCATED =
5-
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/index.ts`, ### Updated file: `src/index.ts`), followed by a markdown code block with truncated contents—as a space saving measure unchanged parts should be hidden behind ellipsis comments, e.g. "// ...". Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```python\n// ...\ncount = 20\n// ...\n```'
5+
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/counter.py`, ### Updated file: `src/counter.py`), followed by a markdown code block with truncated contents—as a space saving measure unchanged parts should be hidden behind ellipsis comments, e.g. "// ...". Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```python\n// ...\ncount = 20\n// ...\n```'
66

77
export const EDIT_FORMAT_INSTRUCTIONS_DIFF =
8-
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/index.ts`, ### Updated file: `src/index.ts`), followed by a unified diff within a markdown code block. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```diff\n--- a/src/counter.py\n+++ b/src/counter.py\n@@ -2,1 +2,1 @@\n-count = 10\n+count = 20\n```'
8+
'Whenever showing a new or updated file, provide brief explanation, then print path in a markdown heading (e.g. ### New file: `src/counter.py`, ### Updated file: `src/counter.py`), followed by a unified diff within a markdown code block. Example:\nThe count variable has been incremented.\n### Updated file: `src/counter.py`\n```diff\n--- a/src/counter.py\n+++ b/src/counter.py\n@@ -2,1 +2,1 @@\n-count = 10\n+count = 20\n```'

0 commit comments

Comments
 (0)