Skip to content

Commit 88067a4

Browse files
committed
Init merge
2 parents ad75b69 + e075fbf commit 88067a4

539 files changed

Lines changed: 72120 additions & 22141 deletions

File tree

Some content is hidden

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

.changeset/wise-icons-sort.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+
Support mentioning binary files

.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

.dockerignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
**/dist/
12+
out/
13+
**/out/
14+
15+
# Dependencies
16+
node_modules/
17+
**/node_modules/
18+
19+
# Test and development files
20+
coverage/
21+
**/.vscode-test/
22+
23+
# Configuration files
24+
# .env*
25+
knip.json
26+
.husky/
27+
28+
# CI/CD
29+
# .changeset/
30+
# .github/
31+
# ellipsis.yaml
32+
33+
# OS specific
34+
.DS_Store
35+
36+
# Logs
37+
logs/
38+
*.log
39+
40+
# Nix
41+
# flake.lock
42+
# flake.nix
43+
44+
# Monorepo
45+
benchmark/exercises/

.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/changeset-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
REPO_PATH: ${{ github.repository }}
1111
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
12+
NODE_VERSION: 20.18.1
1213

1314
jobs:
1415
# Job 1: Create version bump PR when changesets are merged to main
@@ -33,7 +34,7 @@ jobs:
3334
- name: Setup Node.js
3435
uses: actions/setup-node@v4
3536
with:
36-
node-version: 20
37+
node-version: ${{ env.NODE_VERSION }}
3738
cache: 'npm'
3839

3940
- name: Install Dependencies

.github/workflows/code-qa.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
types: [opened, reopened, ready_for_review, synchronize]
99
branches: [main]
1010

11+
env:
12+
NODE_VERSION: 20.18.1
13+
1114
jobs:
1215
compile:
1316
runs-on: ubuntu-latest
@@ -17,7 +20,7 @@ jobs:
1720
- name: Setup Node.js
1821
uses: actions/setup-node@v4
1922
with:
20-
node-version: '18'
23+
node-version: ${{ env.NODE_VERSION }}
2124
cache: 'npm'
2225
- name: Install dependencies
2326
run: npm run install:all
@@ -28,6 +31,21 @@ jobs:
2831
- name: Lint
2932
run: npm run lint
3033

34+
check-translations:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '18'
43+
cache: 'npm'
44+
- name: Install dependencies
45+
run: npm run install:all
46+
- name: Verify all translations are complete
47+
run: node scripts/find-missing-translations.js
48+
3149
knip:
3250
runs-on: ubuntu-latest
3351
steps:
@@ -51,7 +69,7 @@ jobs:
5169
- name: Setup Node.js
5270
uses: actions/setup-node@v4
5371
with:
54-
node-version: '18'
72+
node-version: ${{ env.NODE_VERSION }}
5573
cache: 'npm'
5674
- name: Install dependencies
5775
run: npm run install:all
@@ -106,11 +124,13 @@ jobs:
106124
- name: Setup Node.js
107125
uses: actions/setup-node@v4
108126
with:
109-
node-version: '18'
127+
node-version: ${{ env.NODE_VERSION }}
110128
cache: 'npm'
111-
- name: Create env.integration file
112-
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
113129
- name: Install dependencies
114130
run: npm run install:all
131+
- name: Create .env.local file
132+
working-directory: e2e
133+
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
115134
- name: Run integration tests
116-
run: xvfb-run -a npm run test:integration
135+
working-directory: e2e
136+
run: xvfb-run -a npm run ci

.github/workflows/marketplace-publish.yml

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ on:
66

77
env:
88
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
9+
NODE_VERSION: 20.18.1
910

1011
jobs:
1112
publish-extension:
1213
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # Required for pushing tags.
1316
if: >
1417
( github.event_name == 'pull_request' &&
1518
github.event.pull_request.base.ref == 'main' &&
@@ -19,33 +22,64 @@ jobs:
1922
- uses: actions/checkout@v4
2023
with:
2124
ref: ${{ env.GIT_REF }}
22-
2325
- uses: actions/setup-node@v4
2426
with:
25-
node-version: 18
27+
node-version: ${{ env.NODE_VERSION }}
2628
- run: |
27-
git config user.name github-actions
28-
git config user.email github-actions@github.com
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
2931
- name: Install Dependencies
3032
run: |
3133
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 }}
34+
npm run install:all
35+
- name: Create .env file
36+
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
37+
- name: Package Extension
4038
run: |
4139
current_package_version=$(node -p "require('./package.json').version")
42-
4340
npm run vsix
4441
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4542
echo "$package"
4643
echo "$package" | grep -q "dist/extension.js" || exit 1
4744
echo "$package" | grep -q "extension/webview-ui/build/assets/index.js" || exit 1
4845
echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1
49-
46+
echo "$package" | grep -q ".env" || exit 1
47+
- name: Create and Push Git Tag
48+
run: |
49+
current_package_version=$(node -p "require('./package.json').version")
50+
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
51+
git push origin "v${current_package_version}"
52+
echo "Successfully created and pushed git tag v${current_package_version}"
53+
- name: Publish Extension
54+
env:
55+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
56+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
57+
run: |
58+
current_package_version=$(node -p "require('./package.json').version")
5059
npm run publish:marketplace
5160
echo "Successfully published version $current_package_version to VS Code Marketplace"
61+
- name: Create GitHub Release
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
run: |
65+
current_package_version=$(node -p "require('./package.json').version")
66+
67+
# Extract changelog for current version
68+
echo "Extracting changelog for version ${current_package_version}"
69+
changelog_content=$(sed -n "/## \\[${current_package_version}\\]/,/## \\[/p" CHANGELOG.md | sed '$d')
70+
71+
# If changelog extraction failed, use a default message
72+
if [ -z "$changelog_content" ]; then
73+
echo "Warning: No changelog section found for version ${current_package_version}"
74+
changelog_content="Release v${current_package_version}"
75+
else
76+
echo "Found changelog section for version ${current_package_version}"
77+
fi
78+
79+
# Create release with changelog content
80+
gh release create "v${current_package_version}" \
81+
--title "Release v${current_package_version}" \
82+
--notes "$changelog_content" \
83+
--target ${{ env.GIT_REF }} \
84+
bin/roo-cline-${current_package_version}.vsix
85+
echo "Successfully created GitHub Release v${current_package_version}"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Update Contributors
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: # Allows manual triggering
8+
9+
jobs:
10+
update-contributors:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Needed for pushing changes
14+
pull-requests: write # Needed for creating PRs
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '18'
23+
cache: 'npm'
24+
25+
- name: Disable Husky
26+
run: |
27+
echo "HUSKY=0" >> $GITHUB_ENV
28+
git config --global core.hooksPath /dev/null
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Update contributors and format
34+
run: |
35+
npm run update-contributors
36+
npx prettier --write README.md
37+
if git diff --quiet; then echo "changes=false" >> $GITHUB_OUTPUT; else echo "changes=true" >> $GITHUB_OUTPUT; fi
38+
id: check-changes
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
42+
- name: Create Pull Request
43+
if: steps.check-changes.outputs.changes == 'true'
44+
uses: peter-evans/create-pull-request@v5
45+
with:
46+
token: ${{ secrets.GITHUB_TOKEN }}
47+
commit-message: "docs: update contributors list [skip ci]"
48+
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
49+
branch: update-contributors
50+
delete-branch: true
51+
title: "Update contributors list"
52+
body: |
53+
Automated update of contributors list and related files
54+
55+
This PR was created automatically by a GitHub Action workflow and includes all changed files.
56+
base: main

0 commit comments

Comments
 (0)