Skip to content

Commit 5dc6b42

Browse files
committed
Merge main into fix/kangaroo-bounce-animation and resolve conflicts
2 parents 7dc65d8 + e3b90fb commit 5dc6b42

File tree

616 files changed

+49809
-8179
lines changed

Some content is hidden

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

616 files changed

+49809
-8179
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,18 @@ src/node_modules
7676
!pnpm-workspace.yaml
7777
!scripts/bootstrap.mjs
7878
!apps/web-evals/
79+
!apps/cli/
7980
!src/
8081
!webview-ui/
8182
!packages/evals/.docker/entrypoints/runner.sh
8283
!packages/build/
8384
!packages/config-eslint/
8485
!packages/config-typescript/
86+
!packages/core/
8587
!packages/evals/
8688
!packages/ipc/
8789
!packages/telemetry/
8890
!packages/types/
91+
!packages/vscode-shim/
92+
!packages/cloud/
8993
!locales/

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ body:
8484
- Google Gemini
8585
- Google Vertex AI
8686
- Groq
87-
- Human Relay Provider
8887
- LiteLLM
8988
- LM Studio
9089
- Mistral AI

.roo/commands/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: "Create a new release of the Roo Code extension"
33
argument-hint: patch | minor | major
4+
mode: code
45
---
56

67
1. Identify the SHA corresponding to the most recent release using GitHub CLI: `gh release view --json tagName,targetCommitish,publishedAt`

.roo/rules-translate/instructions-zh-cn.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
| Auto-approve | 自动批准 | 始终批准 | 权限相关术语 |
1717
| Checkpoint | 存档点 | 检查点/快照 | 技术概念统一 |
1818
| MCP Server | MCP 服务 | MCP 服务器 | 技术组件 |
19-
| Human Relay | 人工辅助模式 | 人工中继 | 功能描述清晰 |
2019
| Network Timeout | 请求超时 | 网络超时 | 更准确描述 |
2120
| Terminal | 终端 | 命令行 | 技术术语统一 |
2221
| diff | 差异更新 | 差分/补丁 | 代码变更 |

.roo/skills/evals-context/SKILL.md

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
---
2+
name: evals-context
3+
description: Provides context about the Roo Code evals system structure in this monorepo. Use when tasks mention "evals", "evaluation", "eval runs", "eval exercises", or working with the evals infrastructure. Helps distinguish between the evals execution system (packages/evals, apps/web-evals) and the public website evals display page (apps/web-roo-code/src/app/evals).
4+
---
5+
6+
# Evals Codebase Context
7+
8+
## When to Use This Skill
9+
10+
Use this skill when the task involves:
11+
12+
- Modifying or debugging the evals execution infrastructure
13+
- Adding new eval exercises or languages
14+
- Working with the evals web interface (apps/web-evals)
15+
- Modifying the public evals display page on roocode.com
16+
- Understanding where evals code lives in this monorepo
17+
18+
## When NOT to Use This Skill
19+
20+
Do NOT use this skill when:
21+
22+
- Working on unrelated parts of the codebase (extension, webview-ui, etc.)
23+
- The task is purely about the VS Code extension's core functionality
24+
- Working on the main website pages that don't involve evals
25+
26+
## Key Disambiguation: Two "Evals" Locations
27+
28+
This monorepo has **two distinct evals-related locations** that can cause confusion:
29+
30+
| Component | Path | Purpose |
31+
| --------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
32+
| **Evals Execution System** | `packages/evals/` | Core eval infrastructure: CLI, DB schema, Docker configs |
33+
| **Evals Management UI** | `apps/web-evals/` | Next.js app for creating/monitoring eval runs (localhost:3446) |
34+
| **Website Evals Page** | `apps/web-roo-code/src/app/evals/` | Public roocode.com page displaying eval results |
35+
| **External Exercises Repo** | [Roo-Code-Evals](https://github.com/RooCodeInc/Roo-Code-Evals) | Actual coding exercises (NOT in this monorepo) |
36+
37+
## Directory Structure Reference
38+
39+
### `packages/evals/` - Core Evals Package
40+
41+
```
42+
packages/evals/
43+
├── ARCHITECTURE.md # Detailed architecture documentation
44+
├── ADDING-EVALS.md # Guide for adding new exercises/languages
45+
├── README.md # Setup and running instructions
46+
├── docker-compose.yml # Container orchestration
47+
├── Dockerfile.runner # Runner container definition
48+
├── Dockerfile.web # Web app container
49+
├── drizzle.config.ts # Database ORM config
50+
├── src/
51+
│ ├── index.ts # Package exports
52+
│ ├── cli/ # CLI commands for running evals
53+
│ │ ├── runEvals.ts # Orchestrates complete eval runs
54+
│ │ ├── runTask.ts # Executes individual tasks in containers
55+
│ │ ├── runUnitTest.ts # Validates task completion via tests
56+
│ │ └── redis.ts # Redis pub/sub integration
57+
│ ├── db/
58+
│ │ ├── schema.ts # Database schema (runs, tasks)
59+
│ │ ├── queries/ # Database query functions
60+
│ │ └── migrations/ # SQL migrations
61+
│ └── exercises/
62+
│ └── index.ts # Exercise loading utilities
63+
└── scripts/
64+
└── setup.sh # Local macOS setup script
65+
```
66+
67+
### `apps/web-evals/` - Evals Management Web App
68+
69+
```
70+
apps/web-evals/
71+
├── src/
72+
│ ├── app/
73+
│ │ ├── page.tsx # Home page (runs list)
74+
│ │ ├── runs/
75+
│ │ │ ├── new/ # Create new eval run
76+
│ │ │ └── [id]/ # View specific run status
77+
│ │ └── api/runs/ # SSE streaming endpoint
78+
│ ├── actions/ # Server actions
79+
│ │ ├── runs.ts # Run CRUD operations
80+
│ │ ├── tasks.ts # Task queries
81+
│ │ ├── exercises.ts # Exercise listing
82+
│ │ └── heartbeat.ts # Controller health checks
83+
│ ├── hooks/ # React hooks (SSE, models, etc.)
84+
│ └── lib/ # Utilities and schemas
85+
```
86+
87+
### `apps/web-roo-code/src/app/evals/` - Public Website Evals Page
88+
89+
```
90+
apps/web-roo-code/src/app/evals/
91+
├── page.tsx # Fetches and displays public eval results
92+
├── evals.tsx # Main evals display component
93+
├── plot.tsx # Visualization component
94+
└── types.ts # EvalRun type (extends packages/evals types)
95+
```
96+
97+
This page **displays** eval results on the public roocode.com website. It imports types from `@roo-code/evals` but does NOT run evals.
98+
99+
## Architecture Overview
100+
101+
The evals system is a distributed evaluation platform that runs AI coding tasks in isolated VS Code environments:
102+
103+
```
104+
┌─────────────────────────────────────────────────────────────┐
105+
│ Web App (apps/web-evals) ──────────────────────────────── │
106+
│ │ │
107+
│ ▼ │
108+
│ PostgreSQL ◄────► Controller Container │
109+
│ │ │ │
110+
│ ▼ ▼ │
111+
│ Redis ◄───► Runner Containers (1-25 parallel) │
112+
└─────────────────────────────────────────────────────────────┘
113+
```
114+
115+
**Key components:**
116+
117+
- **Controller**: Orchestrates eval runs, spawns runners, manages task queue (p-queue)
118+
- **Runner**: Isolated Docker container with VS Code + Roo Code extension + language runtimes
119+
- **Redis**: Pub/sub for real-time events (NOT task queuing)
120+
- **PostgreSQL**: Stores runs, tasks, metrics
121+
122+
## Common Tasks Quick Reference
123+
124+
### Adding a New Eval Exercise
125+
126+
1. Add exercise to [Roo-Code-Evals](https://github.com/RooCodeInc/Roo-Code-Evals) repo (external)
127+
2. See [`packages/evals/ADDING-EVALS.md`](packages/evals/ADDING-EVALS.md) for structure
128+
129+
### Modifying Eval CLI Behavior
130+
131+
Edit files in [`packages/evals/src/cli/`](packages/evals/src/cli/):
132+
133+
- [`runEvals.ts`](packages/evals/src/cli/runEvals.ts) - Run orchestration
134+
- [`runTask.ts`](packages/evals/src/cli/runTask.ts) - Task execution
135+
- [`runUnitTest.ts`](packages/evals/src/cli/runUnitTest.ts) - Test validation
136+
137+
### Modifying the Evals Web Interface
138+
139+
Edit files in [`apps/web-evals/src/`](apps/web-evals/src/):
140+
141+
- [`app/runs/new/new-run.tsx`](apps/web-evals/src/app/runs/new/new-run.tsx) - New run form
142+
- [`actions/runs.ts`](apps/web-evals/src/actions/runs.ts) - Run server actions
143+
144+
### Modifying the Public Evals Display Page
145+
146+
Edit files in [`apps/web-roo-code/src/app/evals/`](apps/web-roo-code/src/app/evals/):
147+
148+
- [`evals.tsx`](apps/web-roo-code/src/app/evals/evals.tsx) - Display component
149+
- [`plot.tsx`](apps/web-roo-code/src/app/evals/plot.tsx) - Charts
150+
151+
### Database Schema Changes
152+
153+
1. Edit [`packages/evals/src/db/schema.ts`](packages/evals/src/db/schema.ts)
154+
2. Generate migration: `cd packages/evals && pnpm drizzle-kit generate`
155+
3. Apply migration: `pnpm drizzle-kit migrate`
156+
157+
## Running Evals Locally
158+
159+
```bash
160+
# From repo root
161+
pnpm evals
162+
163+
# Opens web UI at http://localhost:3446
164+
```
165+
166+
**Ports (defaults):**
167+
168+
- PostgreSQL: 5433
169+
- Redis: 6380
170+
- Web: 3446
171+
172+
## Testing
173+
174+
```bash
175+
# packages/evals tests
176+
cd packages/evals && npx vitest run
177+
178+
# apps/web-evals tests
179+
cd apps/web-evals && npx vitest run
180+
```
181+
182+
## Key Types/Exports from `@roo-code/evals`
183+
184+
The package exports are defined in [`packages/evals/src/index.ts`](packages/evals/src/index.ts):
185+
186+
- Database queries: `getRuns`, `getTasks`, `getTaskMetrics`, etc.
187+
- Schema types: `Run`, `Task`, `TaskMetrics`
188+
- Used by both `apps/web-evals` and `apps/web-roo-code`

0 commit comments

Comments
 (0)