Skip to content

Commit afc1278

Browse files
committed
More progress
1 parent cd60b34 commit afc1278

File tree

6 files changed

+1443
-170
lines changed

6 files changed

+1443
-170
lines changed

benchmark/Dockerfile

Lines changed: 0 additions & 86 deletions
This file was deleted.

benchmark/README.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,14 @@
22

33
## Get Started
44

5-
Clone the Roo Code repo:
5+
Clone the Roo Code repo and run the setup script:
66

77
```sh
88
git clone https://github.com/RooVetGit/Roo-Code.git
9-
```
10-
11-
Install nvm:
12-
13-
```sh
14-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
15-
# Reload shell.
16-
nvm install
17-
node --version
18-
# Verify the version is v20.18.1.
19-
```
20-
21-
Install pnpm:
22-
23-
```sh
24-
npm install --global corepack@latest
25-
corepack enable pnpm
26-
corepack use pnpm@latest-10
27-
```
28-
29-
Build the Roo Code extension:
30-
31-
```sh
32-
npm run install:all
33-
npx vsce package --out bin/roo-code-latest.vsix
9+
cd Roo-Code
10+
git checkout cte/benchmark-monorepo
11+
cd benchmark
12+
./scripts/setup.sh
3413
```
3514

3615
[Install](https://docs.docker.com/desktop/) and run Docker Desktop.

benchmark/package.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@
88
"test": "turbo test --log-order grouped --output-logs new-only",
99
"format": "turbo format --log-order grouped --output-logs new-only",
1010
"build": "turbo build --log-order grouped --output-logs new-only",
11-
"web": "turbo dev --filter @benchmark/web --output-logs new-only --ui tui",
12-
"cli": "turbo dev --filter @benchmark/cli --output-logs new-only --ui tui -- run",
13-
"drizzle:studio": "pnpm --filter @benchmark/db db:studio",
14-
"docker:build": "docker build -f Dockerfile -t roo-code-benchmark --progress=plain ..",
15-
"docker:run": "docker run -d -it -p 3000:3000 -v /tmp/benchmarks.db:/tmp/benchmarks.db roo-code-benchmark",
16-
"docker:start": "pnpm docker:build && pnpm docker:run",
17-
"docker:shell": "docker exec -it $(docker ps --filter \"ancestor=roo-code-benchmark\" -q) /bin/zsh",
18-
"docker:stop": "docker stop $(docker ps --filter \"ancestor=roo-code-benchmark\" -q) >/dev/null 2>&1 || true",
19-
"docker:rm": "docker rm $(docker ps -a --filter \"ancestor=roo-code-benchmark\" -q) >/dev/null 2>&1 || true",
20-
"docker:clean": "pnpm docker:stop && pnpm docker:rm"
11+
"web": "turbo dev --filter @benchmark/web",
12+
"cli": "turbo dev --filter @benchmark/cli -- run",
13+
"drizzle:studio": "pnpm --filter @benchmark/db db:studio"
2114
},
2215
"devDependencies": {
2316
"@dotenvx/dotenvx": "^1.39.0",

benchmark/scripts/setup.sh

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ done
6565

6666
[[ "$empty" == true ]] && exit 0
6767

68-
echo -e "\nInstalling dependencies..."
68+
printf "\n"
6969

7070
if ! command -v brew &>/dev/null; then
7171
if [[ -f "/opt/homebrew/bin/brew" ]]; then
@@ -255,7 +255,7 @@ else
255255
echo "✅ pnpm is installed ($PNPM_VERSION)"
256256
fi
257257

258-
pnpm install || exit 1
258+
pnpm install --silent || exit 1
259259

260260
if [[ ! -d "evals" ]]; then
261261
if gh auth status &>/dev/null; then
@@ -279,5 +279,27 @@ if ! grep -q "OPENROUTER_API_KEY" .env; then
279279
read -p "Enter your OpenRouter API Key (sk-or-v1-...): " openrouter_api_key
280280
echo "Validating OpenRouter API Key..."
281281
curl --silent --fail https://openrouter.ai/api/v1/key -H "Authorization: Bearer $openrouter_api_key" | jq || exit 1
282-
echo "OPENROUTER_API_KEY=$openrouter_api_key" >> .env
282+
echo "OPENROUTER_API_KEY=$openrouter_api_key" >>.env
283+
fi
284+
285+
if [[ ! -s "../bin/roo-code-latest.vsix" ]]; then
286+
echo "Building the Roo Code extension..."
287+
cd .. &&
288+
npm run install-extension -- --silent --no-audit &&
289+
npm run install-webview -- --silent --no-audit &&
290+
npx vsce package --out bin/roo-code-latest.vsix || exit 1
291+
fi
292+
293+
echo -e "\n🤘 You're ready to rock and roll!\n"
294+
295+
if ! nc -z localhost 3000; then
296+
read -p "Would you like to start the evals web app? (y/N): " start_evals
297+
298+
if [[ "$start_evals" =~ ^[Yy]$ ]]; then
299+
pnpm web
300+
else
301+
echo "You can start it anytime with 'pnpm web'."
302+
fi
303+
else
304+
echo "🤖 The evals web app is running at http://localhost:3000"
283305
fi

0 commit comments

Comments
 (0)