Skip to content

Commit 965a3c1

Browse files
committed
add
1 parent 91698e9 commit 965a3c1

49 files changed

Lines changed: 7975 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"mcp__kaggle__get_forum_topic",
2626
"mcp__kaggle__get_writeup_by_topic",
2727
"mcp__plugin_serena_serena__list_dir",
28-
"mcp__plugin_context7_context7__query-docs"
28+
"mcp__plugin_context7_context7__query-docs",
29+
"mcp__plugin_serena_serena__activate_project",
30+
"mcp__plugin_serena_serena__read_file"
2931
],
3032
"deny": [
3133
"Bash(rm:*)",

.serena/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/cache
2+
/project.local.yml

.serena/project.yml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# the name by which the project can be referenced within Serena
2+
project_name: "HappyHackingTools.py_2022"
3+
4+
5+
# list of languages for which language servers are started; choose from:
6+
# al bash clojure cpp csharp
7+
# csharp_omnisharp dart elixir elm erlang
8+
# fortran fsharp go groovy haskell
9+
# java julia kotlin lua markdown
10+
# matlab nix pascal perl php
11+
# php_phpactor powershell python python_jedi r
12+
# rego ruby ruby_solargraph rust scala
13+
# swift terraform toml typescript typescript_vts
14+
# vue yaml zig
15+
# (This list may be outdated. For the current list, see values of Language enum here:
16+
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
17+
# For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
18+
# Note:
19+
# - For C, use cpp
20+
# - For JavaScript, use typescript
21+
# - For Free Pascal/Lazarus, use pascal
22+
# Special requirements:
23+
# Some languages require additional setup/installations.
24+
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
25+
# When using multiple languages, the first language server that supports a given file will be used for that file.
26+
# The first language is the default language and the respective language server will be used as a fallback.
27+
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
28+
languages:
29+
- typescript
30+
31+
# the encoding used by text files in the project
32+
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
33+
encoding: "utf-8"
34+
35+
# line ending convention to use when writing source files.
36+
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
37+
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
38+
line_ending:
39+
40+
# The language backend to use for this project.
41+
# If not set, the global setting from serena_config.yml is used.
42+
# Valid values: LSP, JetBrains
43+
# Note: the backend is fixed at startup. If a project with a different backend
44+
# is activated post-init, an error will be returned.
45+
language_backend:
46+
47+
# whether to use project's .gitignore files to ignore files
48+
ignore_all_files_in_gitignore: true
49+
50+
# list of additional paths to ignore in this project.
51+
# Same syntax as gitignore, so you can use * and **.
52+
# Note: global ignored_paths from serena_config.yml are also applied additively.
53+
ignored_paths: []
54+
55+
# whether the project is in read-only mode
56+
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
57+
# Added on 2025-04-18
58+
read_only: false
59+
60+
# list of tool names to exclude.
61+
# This extends the existing exclusions (e.g. from the global configuration)
62+
#
63+
# Below is the complete list of tools for convenience.
64+
# To make sure you have the latest list of tools, and to view their descriptions,
65+
# execute `uv run scripts/print_tool_overview.py`.
66+
#
67+
# * `activate_project`: Activates a project by name.
68+
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
69+
# * `create_text_file`: Creates/overwrites a file in the project directory.
70+
# * `delete_lines`: Deletes a range of lines within a file.
71+
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
72+
# * `execute_shell_command`: Executes a shell command.
73+
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
74+
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
75+
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
76+
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
77+
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
78+
# * `initial_instructions`: Gets the initial instructions for the current project.
79+
# Should only be used in settings where the system prompt cannot be set,
80+
# e.g. in clients you have no control over, like Claude Desktop.
81+
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
82+
# * `insert_at_line`: Inserts content at a given line in a file.
83+
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
84+
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
85+
# * `list_memories`: Lists memories in Serena's project-specific memory store.
86+
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
87+
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
88+
# * `read_file`: Reads a file within the project directory.
89+
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
90+
# * `remove_project`: Removes a project from the Serena configuration.
91+
# * `replace_lines`: Replaces a range of lines within a file with new content.
92+
# * `replace_symbol_body`: Replaces the full definition of a symbol.
93+
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
94+
# * `search_for_pattern`: Performs a search for a pattern in the project.
95+
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
96+
# * `switch_modes`: Activates modes by providing a list of their names
97+
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
98+
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
99+
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
100+
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
101+
excluded_tools: []
102+
103+
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
104+
# This extends the existing inclusions (e.g. from the global configuration).
105+
included_optional_tools: []
106+
107+
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
108+
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
109+
fixed_tools: []
110+
111+
# list of mode names to that are always to be included in the set of active modes
112+
# The full set of modes to be activated is base_modes + default_modes.
113+
# If the setting is undefined, the base_modes from the global configuration (serena_config.yml) apply.
114+
# Otherwise, this setting overrides the global configuration.
115+
# Set this to [] to disable base modes for this project.
116+
# Set this to a list of mode names to always include the respective modes for this project.
117+
base_modes:
118+
119+
# list of mode names that are to be activated by default.
120+
# The full set of modes to be activated is base_modes + default_modes.
121+
# If the setting is undefined, the default_modes from the global configuration (serena_config.yml) apply.
122+
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
123+
# This setting can, in turn, be overridden by CLI parameters (--mode).
124+
default_modes:
125+
126+
# initial prompt for the project. It will always be given to the LLM upon activating the project
127+
# (contrary to the memories, which are loaded on demand).
128+
initial_prompt: ""
129+
130+
# time budget (seconds) per tool call for the retrieval of additional symbol information
131+
# such as docstrings or parameter information.
132+
# This overrides the corresponding setting in the global configuration; see the documentation there.
133+
# If null or missing, use the setting from the global configuration.
134+
symbol_info_budget:
135+
136+
# list of regex patterns which, when matched, mark a memory entry as read‑only.
137+
# Extends the list from the global configuration, merging the two lists.
138+
read_only_memory_patterns: []

coverage/base.css

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
body, html {
2+
margin:0; padding: 0;
3+
height: 100%;
4+
}
5+
body {
6+
font-family: Helvetica Neue, Helvetica, Arial;
7+
font-size: 14px;
8+
color:#333;
9+
}
10+
.small { font-size: 12px; }
11+
*, *:after, *:before {
12+
-webkit-box-sizing:border-box;
13+
-moz-box-sizing:border-box;
14+
box-sizing:border-box;
15+
}
16+
h1 { font-size: 20px; margin: 0;}
17+
h2 { font-size: 14px; }
18+
pre {
19+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20+
margin: 0;
21+
padding: 0;
22+
-moz-tab-size: 2;
23+
-o-tab-size: 2;
24+
tab-size: 2;
25+
}
26+
a { color:#0074D9; text-decoration:none; }
27+
a:hover { text-decoration:underline; }
28+
.strong { font-weight: bold; }
29+
.space-top1 { padding: 10px 0 0 0; }
30+
.pad2y { padding: 20px 0; }
31+
.pad1y { padding: 10px 0; }
32+
.pad2x { padding: 0 20px; }
33+
.pad2 { padding: 20px; }
34+
.pad1 { padding: 10px; }
35+
.space-left2 { padding-left:55px; }
36+
.space-right2 { padding-right:20px; }
37+
.center { text-align:center; }
38+
.clearfix { display:block; }
39+
.clearfix:after {
40+
content:'';
41+
display:block;
42+
height:0;
43+
clear:both;
44+
visibility:hidden;
45+
}
46+
.fl { float: left; }
47+
@media only screen and (max-width:640px) {
48+
.col3 { width:100%; max-width:100%; }
49+
.hide-mobile { display:none!important; }
50+
}
51+
52+
.quiet {
53+
color: #7f7f7f;
54+
color: rgba(0,0,0,0.5);
55+
}
56+
.quiet a { opacity: 0.7; }
57+
58+
.fraction {
59+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60+
font-size: 10px;
61+
color: #555;
62+
background: #E8E8E8;
63+
padding: 4px 5px;
64+
border-radius: 3px;
65+
vertical-align: middle;
66+
}
67+
68+
div.path a:link, div.path a:visited { color: #333; }
69+
table.coverage {
70+
border-collapse: collapse;
71+
margin: 10px 0 0 0;
72+
padding: 0;
73+
}
74+
75+
table.coverage td {
76+
margin: 0;
77+
padding: 0;
78+
vertical-align: top;
79+
}
80+
table.coverage td.line-count {
81+
text-align: right;
82+
padding: 0 5px 0 20px;
83+
}
84+
table.coverage td.line-coverage {
85+
text-align: right;
86+
padding-right: 10px;
87+
min-width:20px;
88+
}
89+
90+
table.coverage td span.cline-any {
91+
display: inline-block;
92+
padding: 0 5px;
93+
width: 100%;
94+
}
95+
.missing-if-branch {
96+
display: inline-block;
97+
margin-right: 5px;
98+
border-radius: 3px;
99+
position: relative;
100+
padding: 0 4px;
101+
background: #333;
102+
color: yellow;
103+
}
104+
105+
.skip-if-branch {
106+
display: none;
107+
margin-right: 10px;
108+
position: relative;
109+
padding: 0 4px;
110+
background: #ccc;
111+
color: white;
112+
}
113+
.missing-if-branch .typ, .skip-if-branch .typ {
114+
color: inherit !important;
115+
}
116+
.coverage-summary {
117+
border-collapse: collapse;
118+
width: 100%;
119+
}
120+
.coverage-summary tr { border-bottom: 1px solid #bbb; }
121+
.keyline-all { border: 1px solid #ddd; }
122+
.coverage-summary td, .coverage-summary th { padding: 10px; }
123+
.coverage-summary tbody { border: 1px solid #bbb; }
124+
.coverage-summary td { border-right: 1px solid #bbb; }
125+
.coverage-summary td:last-child { border-right: none; }
126+
.coverage-summary th {
127+
text-align: left;
128+
font-weight: normal;
129+
white-space: nowrap;
130+
}
131+
.coverage-summary th.file { border-right: none !important; }
132+
.coverage-summary th.pct { }
133+
.coverage-summary th.pic,
134+
.coverage-summary th.abs,
135+
.coverage-summary td.pct,
136+
.coverage-summary td.abs { text-align: right; }
137+
.coverage-summary td.file { white-space: nowrap; }
138+
.coverage-summary td.pic { min-width: 120px !important; }
139+
.coverage-summary tfoot td { }
140+
141+
.coverage-summary .sorter {
142+
height: 10px;
143+
width: 7px;
144+
display: inline-block;
145+
margin-left: 0.5em;
146+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147+
}
148+
.coverage-summary .sorted .sorter {
149+
background-position: 0 -20px;
150+
}
151+
.coverage-summary .sorted-desc .sorter {
152+
background-position: 0 -10px;
153+
}
154+
.status-line { height: 10px; }
155+
/* yellow */
156+
.cbranch-no { background: yellow !important; color: #111; }
157+
/* dark red */
158+
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159+
.low .chart { border:1px solid #C21F39 }
160+
.highlighted,
161+
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162+
background: #C21F39 !important;
163+
}
164+
/* medium red */
165+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166+
/* light red */
167+
.low, .cline-no { background:#FCE1E5 }
168+
/* light green */
169+
.high, .cline-yes { background:rgb(230,245,208) }
170+
/* medium green */
171+
.cstat-yes { background:rgb(161,215,106) }
172+
/* dark green */
173+
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174+
.high .chart { border:1px solid rgb(77,146,33) }
175+
/* dark yellow (gold) */
176+
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177+
.medium .chart { border:1px solid #f9cd0b; }
178+
/* light yellow */
179+
.medium { background: #fff4c2; }
180+
181+
.cstat-skip { background: #ddd; color: #111; }
182+
.fstat-skip { background: #ddd; color: #111 !important; }
183+
.cbranch-skip { background: #ddd !important; color: #111; }
184+
185+
span.cline-neutral { background: #eaeaea; }
186+
187+
.coverage-summary td.empty {
188+
opacity: .5;
189+
padding-top: 4px;
190+
padding-bottom: 4px;
191+
line-height: 1;
192+
color: #888;
193+
}
194+
195+
.cover-fill, .cover-empty {
196+
display:inline-block;
197+
height: 12px;
198+
}
199+
.chart {
200+
line-height: 0;
201+
}
202+
.cover-empty {
203+
background: white;
204+
}
205+
.cover-full {
206+
border-right: none !important;
207+
}
208+
pre.prettyprint {
209+
border: none !important;
210+
padding: 0 !important;
211+
margin: 0 !important;
212+
}
213+
.com { color: #999 !important; }
214+
.ignore-none { color: #999; font-weight: normal; }
215+
216+
.wrapper {
217+
min-height: 100%;
218+
height: auto !important;
219+
height: 100%;
220+
margin: 0 auto -48px;
221+
}
222+
.footer, .push {
223+
height: 48px;
224+
}

0 commit comments

Comments
 (0)