Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Change icons for trajectory viewer (#370)

Kilian Lieret7b742efc92a4
diff --git a/inspector/fileViewer.js b/inspector/fileViewer.js
index 459c91ef..cfbad69b 100644
--- a/inspector/fileViewer.js
+++ b/inspector/fileViewer.js
@@ -41,6 +41,7 @@ const roleMap = {
subroutine: "SWE-Agent subroutine",
default: "Default",
system: "System",
+ demo: "Demonstration",
};
function getRoleText(role) {
diff --git a/inspector/static.py b/inspector/static.py
index 6288ad18..dab97593 100644
--- a/inspector/static.py
+++ b/inspector/static.py
@@ -49,6 +49,7 @@ def _load_file(file_name, gold_patches, test_patches):
"subroutine": "SWE-Agent subroutine",
"default": "Default",
"system": "System",
+ "demo": "Demonstration",
}
content = load_content(file_name, gold_patches, test_patches)
if 'history' in content and isinstance(content['history'], list):
diff --git a/inspector/style.css b/inspector/style.css
index 99313a0d..f4165972 100644
--- a/inspector/style.css
+++ b/inspector/style.css
@@ -128,21 +128,21 @@ h2 {
padding-right: 35px; /* Same padding on the right for balance */
}
.role-bar.user {
- background-image: url("icons/swellama_brown.png");
+ background-image: url("icons/computer.png");
background-color: #9cdcff;
justify-content: flex-end; /* Aligns content to the right */
background-position: right 10px center; /* Moves the image to the right */
text-align: right; /* Text aligned right */
}
.role-bar.tool {
- background-image: url("icons/swellama_brown.png");
+ background-image: url("icons/computer.png");
background-color: #1eacf8;
justify-content: flex-end; /* Aligns content to the right */
background-position: right 10px center; /* Moves the image to the right */
text-align: right; /* Text aligned right */
}
.role-bar.system {
- background-image: url("icons/swellama_blue.png");
+ background-image: url("icons/computer.png");
background-color: #8aa8bd;
justify-content: center; /* Center the flex container contents */
background-position: calc(50% - 32px) center; /* Adjust position */
@@ -152,7 +152,7 @@ h2 {
padding-left: 32px;
}
.role-bar.subroutine {
- background-image: url("icons/swellama_blue.png");
+ background-image: url("icons/computer.png");
background-color: #7bb776;
justify-content: center;
background-position: calc(50% - 45px) center;