mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 20:17:42 +00:00
Describe facades by domain rather than by listing operations
The method list accompanies every facade description, so naming operations in it was redundant.
This commit is contained in:
1 parent
8e4d68cd40
commit
c0e74c7d7e
4 files changed
+4
-7
No files matched your search
@@ -64,8 +64,7 @@ class EditApi(FacadeApi):
|
||||
super().__init__(
|
||||
agent,
|
||||
name="edit",
|
||||
description="editing operations independent of the language backend (creating files, replacing content in one or "
|
||||
"many files, editing at the symbol or line level)",
|
||||
description="modifying content within existing files (independent of the language backend)",
|
||||
)
|
||||
|
||||
# file-level operations
|
||||
|
||||
@@ -164,8 +164,7 @@ class JetBrainsApi(FacadeApi):
|
||||
super().__init__(
|
||||
agent,
|
||||
name="jb",
|
||||
description="JetBrains IDE-backed operations (symbol search, references, type hierarchies, refactorings, "
|
||||
"inspections, debugging)",
|
||||
description="operations on the codebase backed by the JetBrains IDE's code intelligence",
|
||||
)
|
||||
|
||||
@contextmanager
|
||||
|
||||
@@ -291,8 +291,7 @@ class LspApi(FacadeApi):
|
||||
super().__init__(
|
||||
agent,
|
||||
name="lsp",
|
||||
description="language server-backed operations on the codebase (finding symbols, references, implementations, "
|
||||
"declarations and diagnostics; editing and renaming symbols)",
|
||||
description="symbol-level operations on the codebase backed by language servers",
|
||||
)
|
||||
|
||||
def _create_symbol_retriever(self) -> LanguageServerSymbolRetriever:
|
||||
|
||||
@@ -50,7 +50,7 @@ class MemoryApi(FacadeApi):
|
||||
super().__init__(
|
||||
agent,
|
||||
name="mem",
|
||||
description="project memories (persistent notes for future tasks): listing, reading, writing, editing; onboarding",
|
||||
description="project memories, i.e. persistent notes for future tasks",
|
||||
)
|
||||
|
||||
def _get_memory_manager(self) -> MemoryManager:
|
||||
|
||||
Reference in new issue
Block a user