mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +00:00
feat: add analytics event hooks to file watcher
This commit is contained in:
parent
a997dd6c49
commit
89bc3b6b16
2 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,7 @@ class FileWatcher:
|
|||
|
||||
if fname in self.coder.abs_fnames:
|
||||
continue
|
||||
# AI: fire an event()
|
||||
self.coder.abs_fnames.add(fname)
|
||||
rel_fname = self.coder.get_rel_fname(fname)
|
||||
self.io.tool_output(f"Added {rel_fname} to the chat")
|
||||
|
@ -179,6 +180,7 @@ class FileWatcher:
|
|||
if not has_bangs:
|
||||
return ""
|
||||
|
||||
# fire a different event. AI!
|
||||
self.io.tool_output("Processing your request...")
|
||||
|
||||
res = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue