@cryptiklemur/lattice 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.serena/project.yml +138 -0
- package/client/src/components/project-settings/ProjectClaude.tsx +14 -0
- package/client/src/components/settings/ClaudeSettings.tsx +14 -0
- package/client/src/components/sidebar/AddProjectModal.tsx +3 -2
- package/client/src/styles/global.css +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# the name by which the project can be referenced within Serena
|
|
2
|
+
project_name: "lattice"
|
|
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: []
|
|
@@ -109,6 +109,20 @@ export function ProjectClaude({ settings, updateSection }: ProjectClaudeProps) {
|
|
|
109
109
|
rows={10}
|
|
110
110
|
className="w-full px-3 py-2.5 bg-base-300 border border-base-content/15 rounded-xl text-base-content text-[12px] font-mono leading-relaxed resize-y focus:border-primary focus-visible:outline-none transition-colors duration-[120ms]"
|
|
111
111
|
/>
|
|
112
|
+
{(function () {
|
|
113
|
+
var lineCount = claudeMd ? claudeMd.split("\n").length : 0;
|
|
114
|
+
var overLimit = lineCount > 200;
|
|
115
|
+
return (
|
|
116
|
+
<div className="flex items-center justify-between mt-1.5">
|
|
117
|
+
<div className={"text-[11px] " + (overLimit ? "text-warning" : "text-base-content/25")}>
|
|
118
|
+
{lineCount} line{lineCount !== 1 ? "s" : ""}{overLimit ? " — consider moving content to rules or imports" : ""}
|
|
119
|
+
</div>
|
|
120
|
+
{overLimit && (
|
|
121
|
+
<div className="text-[10px] text-warning/70">soft limit: 200 lines</div>
|
|
122
|
+
)}
|
|
123
|
+
</div>
|
|
124
|
+
);
|
|
125
|
+
})()}
|
|
112
126
|
<button
|
|
113
127
|
type="button"
|
|
114
128
|
onClick={function () { setShowGlobalMd(!showGlobalMd); }}
|
|
@@ -138,6 +138,20 @@ export function ClaudeSettings() {
|
|
|
138
138
|
rows={14}
|
|
139
139
|
className="w-full px-3 py-2.5 bg-base-300 border border-base-content/15 rounded-xl text-base-content text-[12px] font-mono leading-relaxed resize-y focus:border-primary focus-visible:outline-none transition-colors duration-[120ms]"
|
|
140
140
|
/>
|
|
141
|
+
{(function () {
|
|
142
|
+
var lineCount = claudeMd ? claudeMd.split("\n").length : 0;
|
|
143
|
+
var overLimit = lineCount > 200;
|
|
144
|
+
return (
|
|
145
|
+
<div className="flex items-center justify-between mt-1.5">
|
|
146
|
+
<div className={"text-[11px] " + (overLimit ? "text-warning" : "text-base-content/25")}>
|
|
147
|
+
{lineCount} line{lineCount !== 1 ? "s" : ""}{overLimit ? " — consider moving content to rules or imports" : ""}
|
|
148
|
+
</div>
|
|
149
|
+
{overLimit && (
|
|
150
|
+
<div className="text-[10px] text-warning/70">soft limit: 200 lines</div>
|
|
151
|
+
)}
|
|
152
|
+
</div>
|
|
153
|
+
);
|
|
154
|
+
})()}
|
|
141
155
|
</div>
|
|
142
156
|
|
|
143
157
|
<SaveFooter
|
|
@@ -281,7 +281,7 @@ export function AddProjectModal({ isOpen, onClose }: AddProjectModalProps) {
|
|
|
281
281
|
return (
|
|
282
282
|
<div className="fixed inset-0 z-[9999] flex items-center justify-center">
|
|
283
283
|
<div className="absolute inset-0 bg-black/50" onClick={onClose} />
|
|
284
|
-
<div className="relative bg-base-200 border border-base-content/15 rounded-2xl shadow-2xl w-full max-w-
|
|
284
|
+
<div className="relative bg-base-200 border border-base-content/15 rounded-2xl shadow-2xl w-full max-w-3xl mx-4 overflow-hidden">
|
|
285
285
|
<div className="flex items-center justify-between px-5 py-4 border-b border-base-content/15">
|
|
286
286
|
<h2 className="text-[15px] font-mono font-bold text-base-content">Add Project</h2>
|
|
287
287
|
<button
|
|
@@ -357,11 +357,12 @@ export function AddProjectModal({ isOpen, onClose }: AddProjectModalProps) {
|
|
|
357
357
|
{!path.trim() && suggestions.length > 0 && !dropdownOpen && (
|
|
358
358
|
<div className="mt-2">
|
|
359
359
|
<div className="text-[11px] font-semibold text-base-content/30 mb-1.5">Projects Claude has worked in</div>
|
|
360
|
-
<div className="flex flex-col gap-1 max-h-
|
|
360
|
+
<div className="flex flex-col gap-1 max-h-48 overflow-y-auto">
|
|
361
361
|
{suggestions.map(function (s) {
|
|
362
362
|
return (
|
|
363
363
|
<button
|
|
364
364
|
key={s.path}
|
|
365
|
+
title={s.path}
|
|
365
366
|
onClick={function () {
|
|
366
367
|
setPath(s.path + "/");
|
|
367
368
|
if (!titleManuallySet) setTitle(s.name);
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
@plugin "daisyui";
|
|
3
3
|
@plugin "@tailwindcss/typography";
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
button:not(:disabled),
|
|
7
|
+
a[href],
|
|
8
|
+
[role="button"]:not([aria-disabled="true"]) {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
4
12
|
@plugin "daisyui/theme" {
|
|
5
13
|
name: "lattice-dark";
|
|
6
14
|
default: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aaron Scherer <me@aaronscherer.me>",
|