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]
Web feat: Include the rest of the demo code
Kilian Lieretd2d2518448ab
diff --git a/sweagent/frontend/package-lock.json b/sweagent/frontend/package-lock.jsonindex f2d20650..cdaf74cf 100644--- a/sweagent/frontend/package-lock.json+++ b/sweagent/frontend/package-lock.json@@ -15,6 +15,7 @@"react": "^18.2.0","react-dom": "^18.2.0","react-markdown": "^9.0.1",+ "react-router-dom": "^6.22.3","react-scripts": "5.0.1","react-syntax-highlighter": "^15.5.0","socket.io-client": "^4.7.5",@@ -3372,6 +3373,14 @@}}},+ "node_modules/@remix-run/router": {+ "version": "1.16.0",+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.16.0.tgz",+ "integrity": "sha512-Quz1KOffeEf/zwkCBM3kBtH4ZoZ+pT3xIXBG4PPW/XFtDP7EGhtTiC2+gpL9GnR7+Qdet5Oa6cYSvwKYg6kN9Q==",+ "engines": {+ "node": ">=14.0.0"+ }+ },"node_modules/@rollup/plugin-babel": {"version": "5.3.1","resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz",@@ -16171,6 +16180,36 @@"node": ">=0.10.0"}},+ "node_modules/react-router": {+ "version": "6.23.0",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.23.0.tgz",+ "integrity": "sha512-wPMZ8S2TuPadH0sF5irFGjkNLIcRvOSaEe7v+JER8508dyJumm6XZB1u5kztlX0RVq6AzRVndzqcUh6sFIauzA==",+ "dependencies": {+ "@remix-run/router": "1.16.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8"+ }+ },+ "node_modules/react-router-dom": {+ "version": "6.23.0",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.23.0.tgz",+ "integrity": "sha512-Q9YaSYvubwgbal2c9DJKfx6hTNoBp3iJDsl+Duva/DwxoJH+OTXkxGpql4iUK2sla/8z4RpjAm6EWx1qUDuopQ==",+ "dependencies": {+ "@remix-run/router": "1.16.0",+ "react-router": "6.23.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8",+ "react-dom": ">=16.8"+ }+ },"node_modules/react-scripts": {"version": "5.0.1","resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",diff --git a/sweagent/frontend/package.json b/sweagent/frontend/package.jsonindex ca704fae..462afffd 100644--- a/sweagent/frontend/package.json+++ b/sweagent/frontend/package.json@@ -13,7 +13,8 @@"socket.io-client": "^4.7.5","web-vitals": "^2.1.4","react-markdown": "^9.0.1",- "react-syntax-highlighter": "^15.5.0"+ "react-syntax-highlighter": "^15.5.0",+ "react-router-dom": "^6.22.3"},"scripts": {"start": "react-scripts start",diff --git a/sweagent/frontend/src/App.js b/sweagent/frontend/src/App.jsindex cb101bcc..a1d02fe2 100644--- a/sweagent/frontend/src/App.js+++ b/sweagent/frontend/src/App.js@@ -1,145 +1,19 @@-import React, { useState, useRef, useEffect } from 'react';-import axios from 'axios';-import io from 'socket.io-client';-import './static/app.css';-import AgentFeed from './components/panels/AgentFeed';-import EnvFeed from './components/panels/EnvFeed';-import LogPanel from './components/panels/LogPanel';--const url = ''; // Will get this from .env-// Connect to Socket.io-const socket = io(url);+import Footer from './components/Footer';+import { Routes, Route } from 'react-router-dom';+import Run from './Run';+import Header from './components/Header';+import './static/font.css';+import './static/index.css';function App() {- const [dataPath, setDataPath] = useState('https://github.com/klieret/swe-agent-test-repo/issues/1');- const [testRun, setTestRun] = useState(true);- const [agentFeed, setAgentFeed] = useState([]);- const [envFeed, setEnvFeed] = useState([]);- const [highlightedStep, setHighlightedStep] = useState(null);- const [logs, setLogs] = useState('');- const [isComputing, setIsComputing] = useState(false);-- const [isTerminalExpanded, setIsTerminalExpanded] = useState(false);- const [isLogsExpanded, setIsLogsExpanded] = useState(false);-- const agentFeedRef = useRef(null);- const envFeedRef = useRef(null);- const logsRef = useRef(null);-- axios.defaults.baseURL = url;--- function scrollToHighlightedStep(highlightedStep, ref) {- if (highlightedStep && ref.current) {- console.log('Scrolling to highlighted step', highlightedStep, ref.current);- const firstStepMessage = ref.current.querySelector(`.step${highlightedStep}`);- if (firstStepMessage) {- window.requestAnimationFrame(() => {- ref.current.scrollTo({- top: firstStepMessage.offsetTop - ref.current.offsetTop,- behavior: 'smooth'- });- });- }- }- }-- function getOtherFeed(feedRef) {- return feedRef === agentFeedRef ? envFeedRef : agentFeedRef;- }-- const handleMouseEnter = (item, feedRef) => {- const highlightedStep = item.step;- if (!isComputing) {- setHighlightedStep(highlightedStep);- scrollToHighlightedStep(highlightedStep, getOtherFeed(feedRef));- }- };--- // Handle form submission- const handleSubmit = async (event) => {- setIsComputing(true);- event.preventDefault();- setAgentFeed([]);- setEnvFeed([]);- setLogs('');- try {- await axios.get(`/run`, { params: { data_path: dataPath, test_run: testRun } });- } catch (error) {- console.error('Error:', error);- }- };--- const handleStop = async () => {- setIsComputing(false);- try {- const response = await axios.get('/stop');- console.log(response.data);- } catch (error) {- console.error('Error stopping:', error);- }- };-- // Use effect to listen to socket updates- React.useEffect(() => {- const handleUpdate = (data) => {- if (data.feed === 'agent') {- setAgentFeed(prevMessages => [...prevMessages, { title: data.title, message: data.message, format: data.format, step: data.thought_idx }]);- }- else if (data.feed === "env") {- setEnvFeed(prevMessages => [...prevMessages, { message: data.message, type: data.type, format: data.format, step: data.thought_idx }]);- }- };-- const handleLogMessage = (data) => {- setLogs(prevLogs => prevLogs + data.message);- if (logsRef.current) {-- setTimeout(() => {- logsRef.current.scrollTop = logsRef.current.scrollHeight;- console.log('Scrolling to bottom', logsRef.current.scrollHeight);- }, 100);- }- }-- const handleFinishedRun = (data) => {- setIsComputing(false);- }-- socket.on('update', handleUpdate);- socket.on('log_message', handleLogMessage);- socket.on('finish_run', handleFinishedRun);-- return () => {- socket.off('update', handleUpdate);- socket.off('log_message', handleLogMessage);- socket.off('finish_run', handleFinishedRun);- };- }, []);-+return (<div>- <div className="container-demo">- <hr />- <form onSubmit={handleSubmit}>- <label htmlFor="data_path">Data Path:</label>- <input type="text" value={dataPath} onChange={(e) => setDataPath(e.target.value)} required />- <label htmlFor="test_run">Test run (no LM queries)</label>- <input type="checkbox" checked={testRun} onChange={(e) => setTestRun(e.target.checked)} />- <button type="submit" disabled={isComputing}>Run</button>- </form>- <button onClick={handleStop} disabled={!isComputing}>Stop Computation</button>- <div id="demo">- <hr />- <div className="panels">- <AgentFeed feed={agentFeed} id="agent" highlightedStep={highlightedStep} handleMouseEnter={handleMouseEnter} selfRef={agentFeedRef} otherRef={envFeedRef} title="Agent Feed" />- <EnvFeed feed={envFeed} id="env" highlightedStep={highlightedStep} handleMouseEnter={handleMouseEnter} selfRef={envFeedRef} otherRef={agentFeedRef} setIsTerminalExpanded={setIsTerminalExpanded} title="Environment Feed" />- <LogPanel logs={logs} logsRef={logsRef} setIsTerminalExpanded={setIsLogsExpanded} />- </div>- </div>- </div>+ <Header />+ <Routes>+ <Route path="/" element={<Run/>} />+ </Routes>+ <Footer /></div>);}diff --git a/sweagent/frontend/src/Run.js b/sweagent/frontend/src/Run.jsnew file mode 100644index 00000000..7601f385--- /dev/null+++ b/sweagent/frontend/src/Run.js@@ -0,0 +1,149 @@+import React, { useState, useRef, useEffect } from 'react';+import axios from 'axios';+import io from 'socket.io-client';+import './static/run.css';+import AgentFeed from './components/panels/AgentFeed';+import EnvFeed from './components/panels/EnvFeed';+import LogPanel from './components/panels/LogPanel';++const url = ''; // Will get this from .env+// Connect to Socket.io+const socket = io(url);++function Run() {+ const [dataPath, setDataPath] = useState('https://github.com/klieret/swe-agent-test-repo/issues/1');+ const [testRun, setTestRun] = useState(true);+ const [agentFeed, setAgentFeed] = useState([]);+ const [envFeed, setEnvFeed] = useState([]);+ const [highlightedStep, setHighlightedStep] = useState(null);+ const [logs, setLogs] = useState('');+ const [isComputing, setIsComputing] = useState(false);++ const [isTerminalExpanded, setIsTerminalExpanded] = useState(false);+ const [isLogsExpanded, setIsLogsExpanded] = useState(false);++ const agentFeedRef = useRef(null);+ const envFeedRef = useRef(null);+ const logsRef = useRef(null);++ axios.defaults.baseURL = url;+++ function scrollToHighlightedStep(highlightedStep, ref) {+ if (highlightedStep && ref.current) {+ console.log('Scrolling to highlighted step', highlightedStep, ref.current);+ const firstStepMessage = ref.current.querySelector(`.step${highlightedStep}`);+ if (firstStepMessage) {+ window.requestAnimationFrame(() => {+ ref.current.scrollTo({+ top: firstStepMessage.offsetTop - ref.current.offsetTop,+ behavior: 'smooth'+ });+ });+ }+ }+ }++ function getOtherFeed(feedRef) {+ return feedRef === agentFeedRef ? envFeedRef : agentFeedRef;+ }++ const handleMouseEnter = (item, feedRef) => {+ const highlightedStep = item.step;+ if (!isComputing) {+ setHighlightedStep(highlightedStep);+ scrollToHighlightedStep(highlightedStep, getOtherFeed(feedRef));+ }+ };+++ // Handle form submission+ const handleSubmit = async (event) => {+ setIsComputing(true);+ event.preventDefault();+ setAgentFeed([]);+ setEnvFeed([]);+ setLogs('');+ try {+ await axios.get(`/run`, { params: { data_path: dataPath, test_run: testRun } });+ } catch (error) {+ console.error('Error:', error);+ }+ };+++ const handleStop = async () => {+ setIsComputing(false);+ try {+ const response = await axios.get('/stop');+ console.log(response.data);+ } catch (error) {+ console.error('Error stopping:', error);+ }+ };++ // Use effect to listen to socket updates+ React.useEffect(() => {+ const handleUpdate = (data) => {+ if (data.feed === 'agent') {+ setAgentFeed(prevMessages => [...prevMessages, { title: data.title, message: data.message, format: data.format, step: data.thought_idx }]);+ }+ else if (data.feed === "env") {+ setEnvFeed(prevMessages => [...prevMessages, { message: data.message, type: data.type, format: data.format, step: data.thought_idx }]);+ }+ };++ const handleLogMessage = (data) => {+ setLogs(prevLogs => prevLogs + data.message);+ if (logsRef.current) {++ setTimeout(() => {+ logsRef.current.scrollTop = logsRef.current.scrollHeight;+ console.log('Scrolling to bottom', logsRef.current.scrollHeight);+ }, 100);+ }+ }++ const handleFinishedRun = (data) => {+ setIsComputing(false);+ }++ socket.on('update', handleUpdate);+ socket.on('log_message', handleLogMessage);+ socket.on('finish_run', handleFinishedRun);++ return () => {+ socket.off('update', handleUpdate);+ socket.off('log_message', handleLogMessage);+ socket.off('finish_run', handleFinishedRun);+ };+ }, []);++ return (++ <div className="container-demo">+ <hr />+ <form onSubmit={handleSubmit}>+ <label htmlFor="data_path">Data Path:</label>+ <input type="text" value={dataPath} onChange={(e) => setDataPath(e.target.value)} required />+ <label htmlFor="test_run">Test run (no LM queries)</label>+ <input type="checkbox" checked={testRun} onChange={(e) => setTestRun(e.target.checked)} />+ <button type="submit" disabled={isComputing}>Run</button>+ </form>+ <button onClick={handleStop} disabled={!isComputing}>Stop Computation</button>+ <div id="demo">+ <hr />+ <div className="panels">+ <AgentFeed feed={agentFeed} id="agent" highlightedStep={highlightedStep} handleMouseEnter={handleMouseEnter} selfRef={agentFeedRef} otherRef={envFeedRef} title="Agent Feed" />+ <EnvFeed feed={envFeed} id="env" highlightedStep={highlightedStep} handleMouseEnter={handleMouseEnter} selfRef={envFeedRef} otherRef={agentFeedRef} setIsTerminalExpanded={setIsTerminalExpanded} title="Environment Feed" />+ <LogPanel logs={logs} logsRef={logsRef} setIsTerminalExpanded={setIsLogsExpanded} />+ </div>+ </div>+ <hr />+ </div>++ );+}++export default Run;+diff --git a/sweagent/frontend/src/components/AgentMessage.js b/sweagent/frontend/src/components/AgentMessage.jsnew file mode 100644index 00000000..e87c35fb--- /dev/null+++ b/sweagent/frontend/src/components/AgentMessage.js@@ -0,0 +1,20 @@+import React from 'react';++import "../static/message.css";++const AgentMessage = ({ item, handleMouseEnter, isHighlighted, feedRef }) => {+ const stepClass = item.step !== null ? `step${item.step}` : '';+ const highlightClass = isHighlighted ? 'highlight' : '';++ return (+ <div+ className={`message ${item.format} ${stepClass} ${highlightClass}`}+ onMouseEnter={() => handleMouseEnter(item, feedRef)}+ >+ { item.title && <h4>{item.title}</h4>}+ <span>{item.message}</span>+ </div>+ );+};++export default AgentMessage;\ No newline at end of filediff --git a/sweagent/frontend/src/components/EnvMessage.js b/sweagent/frontend/src/components/EnvMessage.jsnew file mode 100644index 00000000..cef330ad--- /dev/null+++ b/sweagent/frontend/src/components/EnvMessage.js@@ -0,0 +1,84 @@+import React from 'react';++import "../static/message.css";+import "../static/envMessage.css";++import {+ Prism as SyntaxHighlighter,+ PrismLight as SyntaxHighlighterBash+ } from 'react-syntax-highlighter';+// import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash';+import { prism } from 'react-syntax-highlighter/dist/esm/styles/prism';++function capitalizeFirstLetter(str) {+ return str[0].toUpperCase() + str.slice(1);+ }+++const EnvMessage = ({ item, handleMouseEnter, isHighlighted, feedRef}) => {+ const stepClass = item.step !== null ? `step${item.step}` : '';+ const highlightClass = isHighlighted ? 'highlight' : '';+ const messageTypeClass = "envMessage" + capitalizeFirstLetter(item.type);++ const textStyle={+ backgroundColor: '#f5f2f0',+ boxShadow: "none",+ margin: "0",+ overflowY: "hidden",+ padding: "0.25em 0.5em 0.75em 0.5em",+ }++ const customStyle={+ backgroundColor: 'inherit',+ }+++ const customStyleMerged = {+ margin: 0,+ padding: '0 0.5em',+ overflowX: 'hidden',+ lineHeight: 'inherit',+ ...customStyle,+ }++ const codeTagProps = {+ style: {+ lineHeight: 'inherit',+ fontSize: 'inherit',+ ...textStyle,+ }+ }++ if (item.type === "command" || item.type === "output") {+ const language = item.type === "command" ? "bash" : "markdown";+ return (+ <div+ className={`message ${item.format} ${stepClass} ${highlightClass} ${messageTypeClass}`}+ onMouseEnter={() => handleMouseEnter(item, feedRef)}+ >+ <SyntaxHighlighterBash+ codeTagProps={codeTagProps}+ customStyle={customStyleMerged}+ language={language}+ lineProps={{ style: {wordBreak: 'break-word', whiteSpace: 'pre-wrap'} }}+ style={prism}+ wrapLines={true}+ showLineNumbers={false}+ >+ {item.message}+ </SyntaxHighlighterBash>+ </div>+ );+ } else {+ return (+ <div+ className={`message ${item.format} ${stepClass} ${highlightClass} ${messageTypeClass}`}+ onMouseEnter={() => handleMouseEnter(item, feedRef)}+ >+ <span>{item.message}</span>+ </div>+ );+ }+};++export default EnvMessage;\ No newline at end of filediff --git a/sweagent/frontend/src/components/Footer.js b/sweagent/frontend/src/components/Footer.jsnew file mode 100644index 00000000..937b2ab2--- /dev/null+++ b/sweagent/frontend/src/components/Footer.js@@ -0,0 +1,13 @@+import "../static/footer.css"++const Footer = () => {+ return (+ <footer>+ <div>+ <p style={{ fontSize: "smaller" }}>© 2024 John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, Ofir Press</p>+ </div>+ </footer>+ );+};++export default Footer;\ No newline at end of filediff --git a/sweagent/frontend/src/components/Header.js b/sweagent/frontend/src/components/Header.jsnew file mode 100644index 00000000..01e0d9c9--- /dev/null+++ b/sweagent/frontend/src/components/Header.js@@ -0,0 +1,27 @@+import React from "react";+import "../static/header.css";+import { Link } from 'react-router-dom';++const Header = () => {+ return (+ <>+ <header>+ <Link to="/">+ <button>Home</button>+ </Link>+ <Link to="/demo">+ <button>Demo</button>+ </Link>+ <Link+ to="https://discord.gg/AVEFbBn2rH"+ target="_blank"+ rel="noopener noreferrer"+ >+ <button>Discord</button>+ </Link>+ </header>+ </>+ );+};++export default Header;\ No newline at end of filediff --git a/sweagent/frontend/src/components/panels/LogPanel.js b/sweagent/frontend/src/components/panels/LogPanel.jsindex f0e04249..da3f2084 100644--- a/sweagent/frontend/src/components/panels/LogPanel.js+++ b/sweagent/frontend/src/components/panels/LogPanel.js@@ -26,7 +26,7 @@ const LogPanel = ({ logs, logsRef, setIsTerminalExpanded}) => {expandFillColor={"black"}setIsExpanded={setIsTerminalExpanded}/>- <div className="scrollableDiv" ref={logsRef} >+ <div className="scrollableDiv" ref={logsRef} style={{ backgroundColor: "#1e1e1e" }}><div className="innerDiv"><pre>{logs}</pre><div style={{ clear: "both", marginTop: '1em' }}/>diff --git a/sweagent/frontend/src/index.js b/sweagent/frontend/src/index.jsindex d563c0fb..b06319c6 100644--- a/sweagent/frontend/src/index.js+++ b/sweagent/frontend/src/index.js@@ -1,14 +1,15 @@import React from 'react';-import ReactDOM from 'react-dom/client';-import './index.css';+import { createRoot } from 'react-dom/client';+import { BrowserRouter } from 'react-router-dom';import App from './App';import reportWebVitals from './reportWebVitals';-const root = ReactDOM.createRoot(document.getElementById('root'));+const container = document.getElementById('root');+const root = createRoot(container); // Create a root.root.render(- <React.StrictMode>+ <BrowserRouter><App />- </React.StrictMode>+ </BrowserRouter>);// If you want to start measuring performance in your app, pass a functiondiff --git a/sweagent/frontend/src/static/envMessage.css b/sweagent/frontend/src/static/envMessage.cssnew file mode 100644index 00000000..d2668375--- /dev/null+++ b/sweagent/frontend/src/static/envMessage.css@@ -0,0 +1,10 @@+.envMessageCommand {+ border-radius: 1em 1em 0em 0em;+ margin: 1em 1em 0em 1em;+ border-bottom: 1px dashed black;+}++.envMessageOutput{+ border-radius: 0em 0em 1em 1em;+ margin: 0em 1em 1em 1em;+}diff --git a/sweagent/frontend/src/static/font.css b/sweagent/frontend/src/static/font.cssnew file mode 100644index 00000000..5d2396a6--- /dev/null+++ b/sweagent/frontend/src/static/font.css@@ -0,0 +1,23 @@+@font-face {+font-family:"basic-sans";+src:url("https://use.typekit.net/af/8883dd/00000000000000007735abe1/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i6&v=3") format("woff2"),url("https://use.typekit.net/af/8883dd/00000000000000007735abe1/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i6&v=3") format("woff"),url("https://use.typekit.net/af/8883dd/00000000000000007735abe1/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i6&v=3") format("opentype");+font-display:auto;font-style:italic;font-weight:600;font-stretch:normal;+}++@font-face {+font-family:"basic-sans";+src:url("https://use.typekit.net/af/c68f64/00000000000000007735abe6/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3") format("woff2"),url("https://use.typekit.net/af/c68f64/00000000000000007735abe6/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3") format("woff"),url("https://use.typekit.net/af/c68f64/00000000000000007735abe6/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3") format("opentype");+font-display:auto;font-style:normal;font-weight:600;font-stretch:normal;+}++@font-face {+font-family:"basic-sans";+src:url("https://use.typekit.net/af/49252d/00000000000000007735abed/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff2"),url("https://use.typekit.net/af/49252d/00000000000000007735abed/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff"),url("https://use.typekit.net/af/49252d/00000000000000007735abed/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("opentype");+font-display:auto;font-style:italic;font-weight:400;font-stretch:normal;+}++@font-face {+font-family:"basic-sans";+src:url("https://use.typekit.net/af/721f9c/00000000000000007735abf2/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/721f9c/00000000000000007735abf2/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/721f9c/00000000000000007735abf2/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");+font-display:auto;font-style:normal;font-weight:400;font-stretch:normal;+}\ No newline at end of filediff --git a/sweagent/frontend/src/static/footer.css b/sweagent/frontend/src/static/footer.cssnew file mode 100644index 00000000..5d471843--- /dev/null+++ b/sweagent/frontend/src/static/footer.css@@ -0,0 +1,9 @@+footer {+ flex: 0 0 auto;+}++footer {+ align-items: center;+ justify-content: center;+ display: flex;+}\ No newline at end of filediff --git a/sweagent/frontend/src/static/header.css b/sweagent/frontend/src/static/header.cssnew file mode 100644index 00000000..416243ae--- /dev/null+++ b/sweagent/frontend/src/static/header.css@@ -0,0 +1,41 @@+header {+ margin-bottom: 1em;+ margin-top: 1.5em;+ align-items: center;+ justify-content: center;+ display: flex;+}++header button {+ background: none;+ border: none;+ padding: 0;+ font-family: inherit;+ font-size: inherit;+ color: inherit;+ text-decoration: none;+ cursor: pointer;+ position: relative;+}++header button::before {+ content: '';+ position: absolute;+ bottom: 0;+ left: 0;+ width: 0;+ height: 2px;+ background-color: #000; /* Change color as needed */+ transition: width 0.3s;+}++header button:hover::before {+ width: 100%;+}++/* to revert Link colors to default */+header a {+ text-decoration: none;+ color: inherit;+ margin: 0 0.75em;+}diff --git a/sweagent/frontend/src/static/index.css b/sweagent/frontend/src/static/index.cssnew file mode 100644index 00000000..605a75c0--- /dev/null+++ b/sweagent/frontend/src/static/index.css@@ -0,0 +1,45 @@+body {+ font-family: 'basic-sans';+ background-color: #FFF7EC;+}++hr {+ border: none;+ border-top: 1px solid #bbb;+ margin: 0 auto;+ margin-top: 1em;+}++.container-demo {+ margin: 0 auto;+ width: 54%;+}++.container-about {+ margin: 0 auto;+ width: 50%;+}++@media only screen and (max-width: 768px) {+ hr {+ width: 95%;+ }+ .container-demo {+ width: 95%;+ }+ .container-about {+ width: 95%;+ }+}++@media only screen and (max-width: 1440px) {+ .container-about {+ width: 75%;+ }+}++@media only screen and (max-width: 2400px) {+ .container-demo {+ width: 80%;+ }+}diff --git a/sweagent/frontend/src/static/app.css b/sweagent/frontend/src/static/run.csssimilarity index 97%rename from sweagent/frontend/src/static/app.cssrename to sweagent/frontend/src/static/run.cssindex 80838b68..c65baf4a 100644--- a/sweagent/frontend/src/static/app.css+++ b/sweagent/frontend/src/static/run.css@@ -73,7 +73,7 @@display: grid;height: 65vh;grid-template-columns: 1fr 1fr 1fr 1fr 1fr;- grid-template-rows: 1fr 1fr 1fr 1fr;+ grid-template-rows: 1fr 2fr 1fr 1fr;.agentFeed,.envFeed,@@ -119,6 +119,7 @@.logPanel {grid-column: 3 / 6;grid-row: 3 / 5;+ color: white;}.innerDiv {