Skip to content

Commit 8b09566

Browse files
authored
Merge branch 'main' into support-custom-baseUrl-for-google-ai-studio-gemini
2 parents 85b54b3 + ff54c63 commit 8b09566

File tree

263 files changed

+27682
-8535
lines changed

Some content is hidden

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

263 files changed

+27682
-8535
lines changed
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+
Update GitHub Actions workflow to automatically create and push git tags during release

.changeset/lemon-bulldogs-unite.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+
App tab layout fixes

.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

.clinerules

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@
66

77
2. Lint Rules:
88
- Never disable any lint rules without explicit user approval
9-
- If a lint rule needs to be disabled, ask the user first and explain why
10-
- Prefer fixing the underlying issue over disabling the lint rule
11-
- Document any approved lint rule disabling with a comment explaining the reason
129

13-
3. Logging Guidelines:
14-
- Always instrument code changes using the logger exported from `src\utils\logging\index.ts`.
15-
- This will facilitate efficient debugging without impacting production (as the logger no-ops outside of a test environment.)
16-
- Logs can be found in `logs\app.log`
17-
- Logfile is overwritten on each run to keep it to a manageable volume.
18-
19-
4. Styling Guidelines:
10+
3. Styling Guidelines:
2011
- Use Tailwind CSS classes instead of inline style objects for new markup
2112
- VSCode CSS variables must be added to webview-ui/src/index.css before using them in Tailwind classes
2213
- Example: `<div className="text-md text-vscode-descriptionForeground mb-2" />` instead of style objects
2314

24-
2515
# Adding a New Setting
2616

2717
To add a new setting that persists its state, follow the steps in cline_docs/settings.md

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
POSTHOG_API_KEY=key-goes-here

.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/pull_request_template.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
1-
<!-- **Note:** Consider creating PRs as a DRAFT. For early feedback and self-review. -->
1+
## Context
22

3-
## Description
3+
<!-- Brief description of WHAT you’re doing and WHY. -->
44

5-
## Type of change
5+
## Implementation
66

7-
<!-- Please ignore options that are not relevant -->
7+
<!--
88
9-
- [ ] Bug fix (non-breaking change which fixes an issue)
10-
- [ ] New feature
11-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12-
- [ ] This change requires a documentation update
9+
Some description of HOW you achieved it. Perhaps give a high level description of the program flow. Did you need to refactor something? What tradeoffs did you take? Are there things in here which you’d particularly like people to pay close attention to?
1310
14-
## How Has This Been Tested?
11+
-->
1512

16-
<!-- Please describe the tests that you ran to verify your changes -->
13+
## Screenshots
1714

18-
## Checklist:
15+
| before | after |
16+
| ------ | ----- |
17+
| | |
1918

20-
<!-- Go over all the following points, and put an `x` in all the boxes that apply -->
19+
## How to Test
2120

22-
- [ ] My code follows the patterns of this project
23-
- [ ] I have performed a self-review of my own code
24-
- [ ] I have commented my code, particularly in hard-to-understand areas
25-
- [ ] I have made corresponding changes to the documentation
21+
<!--
2622
27-
## Additional context
23+
A straightforward scenario of how to test your changes will help reviewers that are not familiar with the part of the code that you are changing but want to see it in action. This section can include a description or step-by-step instructions of how to get to the state of v2 that your change affects.
2824
29-
<!-- Add any other context or screenshots about the pull request here -->
25+
A "How To Test" section can look something like this:
3026
31-
## Related Issues
27+
- Sign in with a user with tracks
28+
- Activate `show_awesome_cat_gifs` feature (add `?feature.show_awesome_cat_gifs=1` to your URL)
29+
- You should see a GIF with cats dancing
3230
33-
<!-- List any related issues here. Use the GitHub issue linking syntax: #issue-number -->
31+
-->
3432

35-
## Reviewers
33+
## Get in Touch
3634

37-
<!-- @mention specific team members or individuals who should review this PR -->
35+
<!-- We'd love to have a way to chat with you about your changes if necessary. If you're in the [Roo Code Discord](https://discord.gg/roocode), please share your handle here. -->

.github/workflows/code-qa.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ jobs:
108108
with:
109109
node-version: '18'
110110
cache: 'npm'
111-
- name: Create env.integration file
112-
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
113111
- name: Install dependencies
114112
run: npm run install:all
113+
- name: Create env.integration file
114+
working-directory: e2e
115+
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
115116
- name: Run integration tests
116-
run: xvfb-run -a npm run test:integration
117+
working-directory: e2e
118+
run: xvfb-run -a npm run ci

.github/workflows/marketplace-publish.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
jobs:
1111
publish-extension:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # Required for pushing tags.
1315
if: >
1416
( github.event_name == 'pull_request' &&
1517
github.event.pull_request.base.ref == 'main' &&
@@ -23,29 +25,40 @@ jobs:
2325
- uses: actions/setup-node@v4
2426
with:
2527
node-version: 18
28+
2629
- run: |
2730
git config user.name github-actions
2831
git config user.email [email protected]
32+
2933
- name: Install Dependencies
3034
run: |
3135
npm install -g vsce ovsx
32-
npm install
33-
cd webview-ui
34-
npm install
35-
cd ..
36-
- name: Package and Publish Extension
37-
env:
38-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
39-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
36+
npm run install:all
37+
- name: Create .env file
38+
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
39+
- name: Package Extension
4040
run: |
4141
current_package_version=$(node -p "require('./package.json').version")
42-
4342
npm run vsix
4443
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4544
echo "$package"
4645
echo "$package" | grep -q "dist/extension.js" || exit 1
4746
echo "$package" | grep -q "extension/webview-ui/build/assets/index.js" || exit 1
4847
echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1
48+
echo "$package" | grep -q ".env" || exit 1
49+
50+
- name: Create and Push Git Tag
51+
run: |
52+
current_package_version=$(node -p "require('./package.json').version")
53+
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
54+
git push origin "v${current_package_version}"
55+
echo "Successfully created and pushed git tag v${current_package_version}"
4956
57+
- name: Publish Extension
58+
env:
59+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
60+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
61+
run: |
62+
current_package_version=$(node -p "require('./package.json').version")
5063
npm run publish:marketplace
5164
echo "Successfully published version $current_package_version to VS Code Marketplace"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ roo-cline-*.vsix
2121
docs/_site/
2222

2323
# Dotenv
24+
.env
2425
.env.integration
2526

2627
#Local lint config

0 commit comments

Comments
 (0)