Skip to content

Commit 29aa464

Browse files
author
aheizi
committed
Merge remote-tracking branch 'origin/main' into feature/add_sse_mcp
2 parents 8b76206 + b5f6e37 commit 29aa464

Some content is hidden

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

41 files changed

+2373
-377
lines changed

.changeset/tidy-queens-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix usage tracking for SiliconFlow etc

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"no-throw-literal": "warn",
2020
"semi": "off"
2121
},
22-
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
22+
"ignorePatterns": ["out", "dist", "**/*.d.ts", "!roo-code.d.ts"]
2323
}

.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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
publish-extension:
1212
runs-on: ubuntu-latest
1313
permissions:
14-
contents: write # Required for pushing tags
14+
contents: write # Required for pushing tags.
1515
if: >
1616
( github.event_name == 'pull_request' &&
1717
github.event.pull_request.base.ref == 'main' &&
@@ -33,13 +33,9 @@ jobs:
3333
- name: Install Dependencies
3434
run: |
3535
npm install -g vsce ovsx
36-
npm run install:ci
37-
36+
npm run install:all
3837
- name: Create .env file
39-
run: |
40-
echo "# PostHog API Keys for telemetry" > .env
41-
echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
42-
38+
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
4339
- name: Package Extension
4440
run: |
4541
current_package_version=$(node -p "require('./package.json').version")

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
---

e2e/VSCODE_INTEGRATION_TESTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ The following global objects are available in tests:
5858

5959
```typescript
6060
declare global {
61-
var api: ClineAPI
61+
var api: RooCodeAPI
6262
var provider: ClineProvider
63-
var extension: vscode.Extension<ClineAPI>
63+
var extension: vscode.Extension<RooCodeAPI>
6464
var panel: vscode.WebviewPanel
6565
}
6666
```

e2e/src/suite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as path from "path"
22
import Mocha from "mocha"
33
import { glob } from "glob"
4-
import { ClineAPI, ClineProvider } from "../../../src/exports/cline"
4+
import { RooCodeAPI, ClineProvider } from "../../../src/exports/roo-code"
55
import * as vscode from "vscode"
66

77
declare global {
8-
var api: ClineAPI
8+
var api: RooCodeAPI
99
var provider: ClineProvider
10-
var extension: vscode.Extension<ClineAPI> | undefined
10+
var extension: vscode.Extension<RooCodeAPI> | undefined
1111
var panel: vscode.WebviewPanel | undefined
1212
}
1313

e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"useUnknownInCatchVariables": false,
1212
"outDir": "out"
1313
},
14-
"include": ["src", "../src/exports/cline.d.ts"],
14+
"include": ["src", "../src/exports/roo-code.d.ts"],
1515
"exclude": [".vscode-test", "**/node_modules/**", "out"]
1616
}

package.json

Lines changed: 5 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",
@@ -246,7 +246,9 @@
246246
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
247247
"pretest": "npm run compile",
248248
"dev": "cd webview-ui && npm run dev",
249-
"test": "jest && cd webview-ui && npm run test",
249+
"test": "npm-run-all -p test:*",
250+
"test:extension": "jest",
251+
"test:webview": "cd webview-ui && npm run test",
250252
"prepare": "husky",
251253
"publish:marketplace": "vsce publish && ovsx publish",
252254
"publish": "npm run build && changeset publish && npm install --package-lock-only",

0 commit comments

Comments
 (0)