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 63774be
Browse filesBrowse the repository at this point in the historyBrowse files
Centralize edit format utilities and update intelligent update processing to use search and replace blocks
- rename 'conflict markers' to 'search replace'
- For the intelligent update, we should request and apply 'search replace' blocks. That would speed-up the process.
- intelligent_update_instructions should not directly use [Fragment] but duplicate and simplify for our needs
- the intelligent update process should use intelligent_update_edit_format_instructions in "# System" paragraph. below place markdown separator "---" and intelligent_update_task_instructions. don't edit `apps/editor/src/constants/instructions.ts`
Copy file name to clipboardExpand all lines: apps/editor/src/commands/apply-response-command/utils/edit-formats/conflict-markers/apply-conflict-markers-to-content/index.ts
Copy file name to clipboardExpand all lines: apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/relevant-files-parser/relevant-files-parser.ts
Copy file name to clipboardExpand all lines: apps/editor/src/constants/instructions.ts
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,25 @@ The variable is possibly not defined.
25
25
26
26
Find correct replacement text for the <missing_text> symbol.`
27
27
28
-
exportconstintelligent_update_instructions=
29
-
'Refactor the file according to the attached changes without explanations or any other text. Print the file in FULL.'
28
+
exportconstintelligent_update_task_instructions=
29
+
'Refactor the file according to the attached changes without explanations or any other text.'
30
+
31
+
exportconstintelligent_update_edit_format_instructions=`Output a markdown code block showing the original and updated code snippets with Git-style merge conflict syntax. Example:
32
+
33
+
\`\`\`python
34
+
<<<<<<< SEARCH
35
+
GREETING = "Welcome everyone!"
36
+
=======
37
+
WISHES = "Have a nice day!"
38
+
>>>>>>> REPLACE
39
+
<<<<<<< SEARCH
40
+
def show_greeting():
41
+
print(GREETING)
42
+
=======
43
+
def show_wishes():
44
+
print(WISHES)
45
+
>>>>>>> REPLACE
46
+
\`\`\``
30
47
31
48
exportconstcommit_message_instructions=
32
49
"Write a brief and precise summary for the changes, limited to a single sentence. Because the summary will be used for a commit message, don't use any markdown formatting and don't include a trailing dot. Use an imperative tone to ensure clarity and focus on the primary change or purpose."
0 commit comments