feat: reduce tool entrypoints in synopsis for text editor, bash, process manager#191
Conversation
| self.notifier.log(Rule(RULEPREFIX + "processes", style=RULESTYLE, align="left")) | ||
| self.notifier.log(Markdown(f"```\nreading {process_id}\n```")) | ||
| self.notifier.log("") | ||
| output = system.view_process_output(process_id) |
There was a problem hiding this comment.
out of scope for this PR but we should test failures. i believe in the event a process failed we don't catch stderr so that would be important to capture (which may aid in system recovery).
goose/src/goose/synopsis/system.py
Lines 62 to 71 in 300c4b6
| if command not in self.command_dispatch: | ||
| raise ValueError(f"Unknown command '{command}'.") | ||
|
|
||
| # Call the corresponding method from the command dispatch |
There was a problem hiding this comment.
not necessary comment, delete?
|
also out of scope we but in a follow up i think we should pick a different command for testing the process management 65% of the testing time is taken up by these |
|
to save confusion should the other PR be closed and we just try this one out? |
| "cancel": self._cancel_process, | ||
| } | ||
|
|
||
| def logshell(self, command: str, title: str = "shell") -> None: |
There was a problem hiding this comment.
nit: should we make a top level util out of this?
src/goose/synopsis/text_editor.py
Outdated
| content = content[start_line - 1 : (end_line if end_line != -1 else len(content))] | ||
|
|
||
| system.remember_file(str(patho)) | ||
| self._log_file_operation(str(patho), "".join(content), get_language(str(patho))) |
There was a problem hiding this comment.
nit: imo, this is too verbose to show every read - it is consistent, but i'd consider only showing this on writes?
* main: chore: housekeeping (#202) feat: reduce tool entrypoints in synopsis for text editor, bash, process manager (#191) feat: list moderators (#204) chore: Minor changes in providers envs logic (#161) chore: add `.vscode` workspace settings and suggested extensions (#200) feat: license checker (#201) feat: include new anthropic model in docs and recommended config (#198) feat: tiny change so you know what processing is doing (#196) docs: correct intellij link (#197) docs: remove small duplication (#194) chore: add tracing option to run and group traces under session name (#187) docs: fix mkdocs, update to new references (#193)
builds on top of the changes in #186
we collect similar tools into a collection: