Skip to content

Commit 1d94297

Browse files
chore: reformat Rust imports and update serena project config
1 parent d2030d4 commit 1d94297

3 files changed

Lines changed: 34 additions & 59 deletions

File tree

.serena/project.yml

Lines changed: 27 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,7 @@ read_only: false
1414

1515
# list of tool names to exclude.
1616
# This extends the existing exclusions (e.g. from the global configuration)
17-
#
18-
# Below is the complete list of tools for convenience.
19-
# To make sure you have the latest list of tools, and to view their descriptions,
20-
# execute `uv run scripts/print_tool_overview.py`.
21-
#
22-
# * `activate_project`: Activates a project by name.
23-
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
24-
# * `create_text_file`: Creates/overwrites a file in the project directory.
25-
# * `delete_lines`: Deletes a range of lines within a file.
26-
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
27-
# * `execute_shell_command`: Executes a shell command.
28-
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
29-
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
30-
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
31-
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
32-
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
33-
# * `initial_instructions`: Gets the initial instructions for the current project.
34-
# Should only be used in settings where the system prompt cannot be set,
35-
# e.g. in clients you have no control over, like Claude Desktop.
36-
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
37-
# * `insert_at_line`: Inserts content at a given line in a file.
38-
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
39-
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
40-
# * `list_memories`: Lists memories in Serena's project-specific memory store.
41-
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
42-
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
43-
# * `read_file`: Reads a file within the project directory.
44-
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
45-
# * `remove_project`: Removes a project from the Serena configuration.
46-
# * `replace_lines`: Replaces a range of lines within a file with new content.
47-
# * `replace_symbol_body`: Replaces the full definition of a symbol.
48-
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
49-
# * `search_for_pattern`: Performs a search for a pattern in the project.
50-
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
51-
# * `switch_modes`: Activates modes by providing a list of their names
52-
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
53-
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
54-
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
55-
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
17+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
5618
excluded_tools: []
5719

5820
# initial prompt for the project. It will always be given to the LLM upon activating the project
@@ -69,35 +31,44 @@ project_name: "mt"
6931
# Set this to a list of mode names to always include the respective modes for this project.
7032
base_modes:
7133

72-
# list of mode names that are to be activated by default.
73-
# The full set of modes to be activated is base_modes + default_modes.
74-
# If the setting is undefined, the default_modes from the global configuration (serena_config.yml) apply.
34+
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
35+
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
36+
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
7537
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
38+
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
39+
# for this project.
7640
# This setting can, in turn, be overridden by CLI parameters (--mode).
41+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
7742
default_modes:
7843

7944
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
8045
# This extends the existing inclusions (e.g. from the global configuration).
46+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
8147
included_optional_tools: []
8248

8349
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
8450
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
51+
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
8552
fixed_tools: []
8653

8754
# the encoding used by text files in the project
8855
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
8956
encoding: utf-8
9057

58+
9159
# list of languages for which language servers are started; choose from:
92-
# al bash clojure cpp csharp
93-
# csharp_omnisharp dart elixir elm erlang
94-
# fortran fsharp go groovy haskell
95-
# java julia kotlin lua markdown
96-
# matlab nix pascal perl php
97-
# php_phpactor powershell python python_jedi r
98-
# rego ruby ruby_solargraph rust scala
99-
# swift terraform toml typescript typescript_vts
100-
# vue yaml zig
60+
# al ansible bash clojure cpp
61+
# cpp_ccls crystal csharp csharp_omnisharp dart
62+
# elixir elm erlang fortran fsharp
63+
# go groovy haskell haxe hlsl
64+
# java json julia kotlin lean4
65+
# lua luau markdown matlab msl
66+
# nix ocaml pascal perl php
67+
# php_phpactor powershell python python_jedi python_ty
68+
# r rego ruby ruby_solargraph rust
69+
# scala solidity swift systemverilog terraform
70+
# toml typescript typescript_vts vue yaml
71+
# zig
10172
# (This list may be outdated. For the current list, see values of Language enum here:
10273
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
10374
# For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
@@ -150,3 +121,8 @@ ignored_memory_patterns: []
150121
# Have a look at the docstring of the constructors of the LS implementations within solidlsp (e.g., for C# or PHP) to see which options are available.
151122
# No documentation on options means no options are available.
152123
ls_specific_settings: {}
124+
125+
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
126+
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
127+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
128+
added_modes:

crates/mt-tauri/src/commands/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ pub(crate) use playlists::{
3434

3535
pub(crate) use queue::{
3636
queue_add, queue_add_files, queue_add_play_next, queue_check_integrity, queue_clear, queue_get,
37-
queue_get_playback_state, queue_play_context, queue_play_context_query,
38-
queue_play_next_track, queue_play_previous_track,
39-
queue_remove, queue_reorder, queue_set_current_index, queue_set_loop, queue_set_shuffle,
40-
queue_shuffle, queue_skip_next, queue_skip_previous,
37+
queue_get_playback_state, queue_play_context, queue_play_context_query, queue_play_next_track,
38+
queue_play_previous_track, queue_remove, queue_reorder, queue_set_current_index,
39+
queue_set_loop, queue_set_shuffle, queue_shuffle, queue_skip_next, queue_skip_previous,
4140
};
4241

4342
pub(crate) use lyrics::{lyrics_clear_cache, lyrics_get};

crates/mt-tauri/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ use dialog::{open_add_music_dialog, open_file_dialog, open_folder_dialog};
4343
use library::commands::{
4444
library_check_status, library_delete_all, library_delete_track, library_delete_tracks,
4545
library_find_offset, library_find_track_offset, library_get_all, library_get_artwork,
46-
library_get_artwork_url,
47-
library_get_count, library_get_missing, library_get_section, library_get_stats,
48-
library_get_track, library_locate_track, library_mark_missing, library_mark_present,
49-
library_purge_missing, library_reconcile_scan, library_rescan_track, library_update_play_count,
46+
library_get_artwork_url, library_get_count, library_get_missing, library_get_section,
47+
library_get_stats, library_get_track, library_locate_track, library_mark_missing,
48+
library_mark_present, library_purge_missing, library_reconcile_scan, library_rescan_track,
49+
library_update_play_count,
5050
};
5151
use media_keys::{MediaKeyManager, NowPlayingInfo};
5252
use metadata::{get_track_metadata, get_tracks_metadata_batch, save_track_metadata};

0 commit comments

Comments
 (0)