Skip to content

Commit e8a4692

Browse files
committed
More progress
1 parent ac8104a commit e8a4692

File tree

8 files changed

+136
-75
lines changed

8 files changed

+136
-75
lines changed

.dockerignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Version control
2+
.git/
3+
.gitignore
4+
.gitattributes
5+
.git-blame-ignore-revs
6+
.gitconfig
7+
8+
# Build artifacts
9+
bin/
10+
dist/
11+
out/
12+
13+
# Dependencies
14+
node_modules/
15+
**/node_modules/
16+
17+
# Test and development files
18+
coverage/
19+
.vscode-test/
20+
21+
# Configuration files
22+
.env*
23+
knip.json
24+
.husky/
25+
26+
# CI/CD
27+
.changeset/
28+
.github/
29+
ellipsis.yaml
30+
31+
# OS specific
32+
.DS_Store
33+
34+
# Logs
35+
logs/
36+
*.log
37+
38+
# Nix
39+
flake.lock
40+
flake.nix

.github/workflows/changeset-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cache: 'npm'
3838

3939
- name: Install Dependencies
40-
run: npm run install:ci
40+
run: npm run install:all
4141

4242
# Check if there are any new changesets to process
4343
- name: Check for changesets

.github/workflows/code-qa.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: '18'
2121
cache: 'npm'
2222
- name: Install dependencies
23-
run: npm run install:ci
23+
run: npm run install:all
2424
- name: Compile
2525
run: npm run compile
2626
- name: Check types
@@ -39,7 +39,7 @@ jobs:
3939
node-version: '18'
4040
cache: 'npm'
4141
- name: Install dependencies
42-
run: npm run install:ci
42+
run: npm run install:all
4343
- name: Run knip checks
4444
run: npm run knip
4545

@@ -54,7 +54,7 @@ jobs:
5454
node-version: '18'
5555
cache: 'npm'
5656
- name: Install dependencies
57-
run: npm run install:ci
57+
run: npm run install:all
5858
- name: Run unit tests
5959
run: npx jest --silent
6060

@@ -69,7 +69,7 @@ jobs:
6969
node-version: '18'
7070
cache: 'npm'
7171
- name: Install dependencies
72-
run: npm run install:ci
72+
run: npm run install:all
7373
- name: Run unit tests
7474
working-directory: webview-ui
7575
run: npx jest --silent
@@ -109,7 +109,7 @@ jobs:
109109
node-version: '18'
110110
cache: 'npm'
111111
- name: Install dependencies
112-
run: npm run install:ci
112+
run: npm run install:all
113113
- name: Create env.integration file
114114
working-directory: e2e
115115
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration

.github/workflows/marketplace-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install Dependencies
3030
run: |
3131
npm install -g vsce ovsx
32-
npm run install:ci
32+
npm run install:all
3333
- name: Create .env file
3434
run: |
3535
echo "# PostHog API Keys for telemetry" > .env

README.md

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,40 @@ Make Roo Code work your way with:
115115
## Local Setup & Development
116116

117117
1. **Clone** the repo:
118-
```bash
119-
git clone https://github.com/RooVetGit/Roo-Code.git
120-
```
118+
119+
```sh
120+
git clone https://github.com/RooVetGit/Roo-Code.git
121+
```
122+
121123
2. **Install dependencies**:
122-
```bash
123-
npm run install:all
124-
```
125-
126-
if that fails, try:
127-
```bash
128-
npm run install:ci
129-
```
130-
131-
3. **Build** the extension:
132-
```bash
133-
npm run build
134-
```
135-
- A `.vsix` file will appear in the `bin/` directory.
136-
4. **Install** the `.vsix` manually if desired:
137-
```bash
138-
code --install-extension bin/roo-code-4.0.0.vsix
139-
```
140-
5. **Start the webview (Vite/React app with HMR)**:
141-
```bash
142-
npm run dev
143-
```
144-
6. **Debug**:
145-
- Press `F5` (or **Run****Start Debugging**) in VSCode to open a new session with Roo Code loaded.
124+
125+
```sh
126+
npm run install:all
127+
```
128+
129+
3. **Start the webview (Vite/React app with HMR)**:
130+
131+
```sh
132+
npm run dev
133+
```
134+
135+
4. **Debug**:
136+
Press `F5` (or **Run****Start Debugging**) in VSCode to open a new session with Roo Code loaded.
146137

147138
Changes to the webview will appear immediately. Changes to the core extension will require a restart of the extension host.
148139

140+
Alternatively you can build a .vsix and install it directly in VSCode:
141+
142+
```sh
143+
npm run build
144+
```
145+
146+
A `.vsix` file will appear in the `bin/` directory which can be installed with:
147+
148+
```sh
149+
code --install-extension bin/roo-cline-<version>.vsix
150+
```
151+
149152
We use [changesets](https://github.com/changesets/changesets) for versioning and publishing. Check our `CHANGELOG.md` for release notes.
150153

151154
---

benchmark/Dockerfile

Lines changed: 52 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,56 @@
1+
# docker -f benchmark/Dockerfile build -t roo-code-benchmark .
2+
# docker run -d -p 2222:22 -it roo-code-benchmark
13

2-
# docker build -f benchmark/Dockerfile -t roo-code-benchmark .
3-
4-
FROM debian:bullseye-slim
5-
6-
RUN apt-get update && \
7-
apt-get install -y \
8-
apt-transport-https \
9-
ca-certificates \
10-
curl \
11-
gnupg \
12-
--no-install-recommendsRUN curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | apt-key add - RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable ma in" > /etc/apt/sources.list.d/vscode.listRUN apt-get update && apt-get -y install \
13-
code git \
14-
libasound2 \
15-
libatk1.0-0 \
16-
libcairo2 \
17-
libcups2 \
18-
libexpat1 \
19-
libfontconfig1 \
20-
libfreetype6 \
21-
libgtk2.0-0 \
22-
libpango-1.0-0 \
23-
libx11-xcb1 \
24-
libxcomposite1 \
25-
libxcursor1 \
26-
libxdamage1 \
27-
libxext6 \
28-
libxfixes3 \
29-
libxi6 \
30-
libxrandr2 \
31-
libxrender1 \
32-
libxss1 \
33-
libxtst6 \
34-
libxshmfence-dev\
35-
openssh-client \
36-
--no-install-recommends && \
37-
rm -rf /var/lib/apt/lists/*
38-
39-
CMD [ "/usr/bin/code", "--verbose" ]
4+
FROM ubuntu:latest
5+
6+
# Install dependencies
7+
RUN apt update && apt install -y curl git
8+
9+
# Install VS Code
10+
# https://code.visualstudio.com/docs/setup/linux
11+
RUN apt update && apt install -y wget gpg apt-transport-https
12+
RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
13+
RUN install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
14+
RUN echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | tee /etc/apt/sources.list.d/vscode.list > /dev/null
15+
RUN rm -f packages.microsoft.gpg
16+
RUN apt update && apt install -y code
17+
18+
# Install Xvfb
19+
RUN apt install -y xvfb
20+
21+
# Install SSH server
22+
RUN apt install -y openssh-server
23+
RUN mkdir -p /var/run/sshd && \
24+
echo 'PermitRootLogin no' >> /etc/ssh/sshd_config && \
25+
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
26+
RUN ssh-keygen -A
27+
28+
# Install node.js
29+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
30+
RUN apt update && apt install -y nodejs
31+
32+
# Create a `vscode` user
33+
RUN apt install -y sudo && \
34+
useradd -m vscode -s /bin/bash && \
35+
echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode && \
36+
chmod 0440 /etc/sudoers.d/vscode
37+
38+
WORKDIR /home/vscode
39+
USER vscode
40+
41+
RUN mkdir -p /home/vscode/.ssh
42+
RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDKGzg3BQ0QHU4m6G6CAdQ57LnBVljlPWfdySrsjV3twQaOYoJ8eEy1ck7kYZfH7DIbCteH4hkNIk32ghjWE84j3unO2/3wGC+CId9raZMudi8UbNgAFMYZZqTcrWR1lCxSLpDNT01JHYHw4BCMkJ4XjH2so+b5t/OzKVqvLJHOVTE7aZARsqrdQdiAmd9bbArFIoaLnvHYvArPprLU9clfhQJrAXi484t4eK2h2lMtiitmHph9WpcTxYiDdEg4fxlA2yYDkQZGcjoNPFTBEP5RpmXMcNV7/Zb2U0rJIOPrFqIwZ5yG79Kic8ajPdtmGdVpYec/OlR1Oer0kfakU2RImTzJPZeGnXy/hvcQErAqgpzTLn7dz2YaWMYdcLm6HOmZl1nj3LauWmRcCB8cxM34GjFXMpNm+6Ey8pmgoCMGLdBjL5/xqT6PbQxbYgUJNXMc51qMX8C3lkX/muQD8pDaj5kLXJhYkCgVGwcoC+hbJAOYSry4NQ8aTsFmjyTkaTE= cte@monstera" > /home/vscode/.ssh/authorized_keys
43+
RUN chown -R vscode:vscode /home/vscode/.ssh
44+
RUN chmod 700 /home/vscode/.ssh
45+
RUN chmod 600 /home/vscode/.ssh/authorized_keys
46+
47+
COPY benchmark/entrypoint.sh /usr/local/bin/
48+
COPY --chown=vscode:vscode . /home/vscode/repo
49+
50+
RUN cd repo && npm run install:all
51+
52+
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
53+
CMD ["/bin/bash"]
4054

4155
# FROM buildpack-deps:jammy
4256

benchmark/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
sudo /usr/sbin/sshd
4+
exec "$@"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@
230230
"build": "npm run build:webview && npm run vsix",
231231
"build:webview": "cd webview-ui && npm run build",
232232
"compile": "tsc -p . --outDir out && node esbuild.js",
233-
"install:all": "npm-run-all -p install-*",
234-
"install:ci": "npm install npm-run-all && npm run install:all",
233+
"install:all": "npm install npm-run-all && npm run install:_all",
234+
"install:_all": "npm-run-all -p install-*",
235235
"install-extension": "npm install",
236236
"install-webview-ui": "cd webview-ui && npm install",
237237
"install-e2e": "cd e2e && npm install",
@@ -268,8 +268,8 @@
268268
"@anthropic-ai/sdk": "^0.37.0",
269269
"@anthropic-ai/vertex-sdk": "^0.7.0",
270270
"@aws-sdk/client-bedrock-runtime": "^3.706.0",
271-
"@google/generative-ai": "^0.18.0",
272271
"@google-cloud/vertexai": "^1.9.3",
272+
"@google/generative-ai": "^0.18.0",
273273
"@mistralai/mistralai": "^1.3.6",
274274
"@modelcontextprotocol/sdk": "^1.0.1",
275275
"@types/clone-deep": "^4.0.4",

0 commit comments

Comments
 (0)