mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: move watch prompt text to separate module
This commit is contained in:
parent
2649e736fb
commit
4a7fc084ce
2 changed files with 8 additions and 6 deletions
|
@ -9,6 +9,7 @@ from pathspec.patterns import GitWildMatchPattern
|
|||
from watchfiles import watch
|
||||
|
||||
from aider.dump import dump # noqa
|
||||
from aider.watch_prompts import watch_prompt
|
||||
|
||||
|
||||
def is_source_file(path: Path) -> bool:
|
||||
|
@ -186,12 +187,7 @@ class FileWatcher:
|
|||
self.analytics.event("ai-comments execute")
|
||||
self.io.tool_output("Processing your request...")
|
||||
|
||||
res = """
|
||||
The "AI" comments below marked with █ can be found in the code files I've shared with you.
|
||||
They contain your instructions.
|
||||
Make the requested changes.
|
||||
Be sure to remove all these "AI" comments from the code!
|
||||
"""
|
||||
res = watch_prompt
|
||||
|
||||
# Refresh all AI comments from tracked files
|
||||
for fname in self.coder.abs_fnames:
|
||||
|
|
6
aider/watch_prompts.py
Normal file
6
aider/watch_prompts.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
watch_prompt = """
|
||||
Find the "AI" comments below (marked with █) in the code files I've shared with you.
|
||||
They contain your instructions.
|
||||
Make the requested changes.
|
||||
Be sure to remove all these "AI" comments from the code!
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue