Michael Panchenko
9d493d8aab
Added base class for SerenaConfig, use in-memory config for tests
...
Also:
1. now the normal config will always save to disk (no longer handled by a flag in the methods)
2. the commented yaml is always loaded in the beginning (instead of loading every time on save). Has the upside of simpler code and less i/o, inisignificant "downside" of comments permanently staying in RAM
3. small improvements in typing
2025-05-28 15:11:33 +02:00
Michael Panchenko
22e72a5769
Refactored project config management and activation
...
Project activation is now always enabled
Projects are lists to dirs
Activation works based on name or path
Activating a new project always registers it
2025-05-26 21:47:19 +02:00
Michael Panchenko
13c71bb216
Allow activation of projects without registration
2025-05-26 12:49:16 +02:00
Michael Panchenko
f85aabb40e
Merge branch 'main' into feature/context-and-mode
...
# Conflicts:
# scripts/gen_prompt_factory.py
# src/serena/agent.py
# src/serena/llm/multilang_prompt.py
2025-05-23 17:42:37 +02:00
Michael Panchenko
3584ce47eb
Proper first implementation of mode and context setting, WIP
2025-05-23 17:34:46 +02:00
Michael Panchenko and Michael Panchenko
0884fc7a8c
Support for multiple usage contexts and modes
...
The context and mode system allows for tool selection and
prompt adjustments, thus customizing the behavior of the agent
to the user's needs.
2025-05-21 19:34:11 +02:00
Michael Panchenko
0cf0ff3d48
Improvements and renamings of symbol name_path matching
2025-05-21 12:35:26 +02:00
Michael Panchenko
39854c8baa
Fix minor typing issues, fix initialization of gopls, remove hack
2025-05-20 17:21:21 +02:00
Michael Panchenko
a7f1af7174
Allow finding symbols by qualname. Also allow finding parents in Symbol
...
Fairly extensive testing included
2025-05-20 15:40:45 +02:00
Michael Panchenko
c848e8a7ca
Extended tests
2025-05-20 01:41:15 +02:00
Michael Panchenko
e8d493f4d6
Use utf8 in all file read operations
2025-05-19 17:18:51 +02:00
Michael Panchenko
7975675a98
More explicit asserts (debugging in CI)
2025-05-19 16:11:02 +02:00
Michael Panchenko
4901f72629
Made paths in test os independent
2025-05-19 12:57:26 +02:00
Michael Panchenko
81b7192410
Added tests for PhP language server
2025-05-19 12:51:44 +02:00
Michael Panchenko
515870b55b
Tests: use markers
2025-05-01 22:57:55 +02:00
Michael Panchenko
801bef4998
Typo in test
2025-04-29 14:20:48 +02:00
Michael Panchenko
adad5008c7
Integration tests of SerenaAgen
2025-04-29 14:16:49 +02:00
Michael Panchenko
7293478fa5
Tests: don't import util from conftest
2025-04-28 15:44:37 +02:00
Michael Panchenko
e48031ea73
Tests for TS and Go, general improvements in tests
2025-04-28 15:34:29 +02:00
Michael Panchenko
14f58c9c2e
Tests: removed for-loops over col for finding references
2025-04-27 16:04:27 +02:00
Michael Panchenko
6a46a3768d
Use selectionRange for referencing symbols in tests
2025-04-27 15:42:55 +02:00
Michael Panchenko
e6f0ddacef
Tests for LS on rust, written by windsurf with GPT4.1
2025-04-27 15:34:29 +02:00
Michael Panchenko
fadfcc4f26
Tests for java, minor extension for multilspy
...
Written by windsurf ang GPT4.1
2025-04-27 13:43:23 +02:00
Michael Panchenko
433d7f4d59
Refactoring in tests: prepare for testing with multiple languages
2025-04-27 13:00:45 +02:00
Michael Panchenko
e51cb768db
Cleanup after ai
2025-04-22 17:32:45 +02:00
openhands
4d969844c8
Update iter_tool_classes to only iterate over tools in the same module by default
2025-04-22 15:13:20 +00:00
openhands
d9b90f26af
Improve tests for make_tool function
2025-04-22 15:03:16 +00:00
openhands
2737dd2b3f
Use empty string instead of 'No description available' for missing descriptions
2025-04-22 14:18:30 +00:00
openhands
5cc4086c4f
Add BasicTool to the list of classes to skip in test_make_tool_all_tools
2025-04-22 14:14:11 +00:00
openhands
6bb0074587
Fix test_make_tool_all_tools to skip test mock classes
2025-04-22 14:12:11 +00:00
openhands
f1b9b3bf3d
Fix parsing of tools with missing docstring descriptions
2025-04-22 14:10:24 +00:00
Marcelo Soares
cf029146d1
Refactor test to target the make_tool function
2025-04-21 20:50:09 -03:00
Marcelo Soares
46b7d79c81
Parse parameter descriptions from docstring into MCP tool
2025-04-21 09:05:30 -03:00
Michael Panchenko
efb0690cf9
Minor cleanup after serena
2025-04-18 20:53:29 +02:00
Michael Panchenko
468beb8fb1
Add read-only mode with EditingTool marker class (entire change performed by Serena)
2025-04-18 20:33:46 +02:00
Michael Panchenko
b6afe6d89d
Use pathspec instead of fnmatch in search_file. Added tests for it
...
Also several small improvements
2025-04-10 20:26:44 +02:00
Michael Panchenko
54588962b7
LS: option to add_gitignore_content_to_config
...
Defaults to true since it's probably always a good idea
2025-04-07 16:44:25 +02:00
Michael Panchenko
c4384682f2
LS: support glob ignores using pathspec
2025-04-07 15:43:41 +02:00
Michael Panchenko
78b43d2a63
LS: support for configuring ignored paths
...
Introduced per-language always ignored paths
2025-04-07 00:54:34 +02:00
Michael Panchenko
ba03ec431f
FindSymbolTool: allow passing a file for restricting search, not just a directory
2025-04-06 22:23:06 +02:00
Dominik Jain
1c71b1e5d1
Remove unused imports
2025-04-04 11:02:44 +02:00
Michael Panchenko
9f3bbc8fc9
Tests: removed unused input fixture
2025-04-03 18:58:15 +02:00
Michael Panchenko
be29beaf38
LS: possibility to include file symbols in find_referencing_symbols
...
Some minor fixes and deduplication. Adjusted tests to only use relative paths.
2025-04-01 17:08:22 +02:00
Michael Panchenko
1c4bfe8ed8
Fix path issue in test and request_dir_overview
2025-03-29 19:52:09 +01:00
Michael Panchenko
1afe45805f
New tool and LS method: get_document_overview
2025-03-26 22:58:28 +01:00
Dominik Jain
d172758b29
Fix path separators in tests
2025-03-26 00:06:24 +01:00
Michael Panchenko
d7262ad190
Added columns to overview
2025-03-25 23:49:04 +01:00
Michael Panchenko
68dc60ac97
LS: new method request_dir_overview
2025-03-25 23:21:21 +01:00
Michael Panchenko
79140e9f80
LS: use File symbol instead of Module
2025-03-25 22:24:00 +01:00
Michael Panchenko
739a416943
LS: fixed request_parsed_files, added search_files_for_pattern
2025-03-25 20:18:52 +01:00