Skip to content

Commit 8d796c2

Browse files
authored
Merge branch 'main' into mistral-rewrite-feat-fix
2 parents 1f716ca + 891a55d commit 8d796c2

File tree

420 files changed

+37875
-7030
lines changed

Some content is hidden

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

420 files changed

+37875
-7030
lines changed

.changeset/automatic-tags-publish.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lemon-bulldogs-unite.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tidy-queens-pay.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

.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: 23 additions & 5 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,13 +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'
111129
- name: Install dependencies
112130
run: npm run install:all
113-
- name: Create env.integration file
131+
- name: Create .env.local file
114132
working-directory: e2e
115-
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
133+
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
116134
- name: Run integration tests
117135
working-directory: e2e
118136
run: xvfb-run -a npm run ci

.github/workflows/marketplace-publish.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ 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:
@@ -21,15 +22,12 @@ jobs:
2122
- uses: actions/checkout@v4
2223
with:
2324
ref: ${{ env.GIT_REF }}
24-
2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version: 18
28-
27+
node-version: ${{ env.NODE_VERSION }}
2928
- run: |
30-
git config user.name github-actions
31-
git config user.email [email protected]
32-
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
3331
- name: Install Dependencies
3432
run: |
3533
npm install -g vsce ovsx
@@ -46,14 +44,12 @@ jobs:
4644
echo "$package" | grep -q "extension/webview-ui/build/assets/index.js" || exit 1
4745
echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1
4846
echo "$package" | grep -q ".env" || exit 1
49-
5047
- name: Create and Push Git Tag
5148
run: |
5249
current_package_version=$(node -p "require('./package.json').version")
5350
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
5451
git push origin "v${current_package_version}"
5552
echo "Successfully created and pushed git tag v${current_package_version}"
56-
5753
- name: Publish Extension
5854
env:
5955
VSCE_PAT: ${{ secrets.VSCE_PAT }}
@@ -62,3 +58,28 @@ jobs:
6258
current_package_version=$(node -p "require('./package.json').version")
6359
npm run publish:marketplace
6460
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+
changelog_content=$(awk -v ver="## [${current_package_version}]" '
69+
$0 ~ ver {flag=1; next}
70+
/^## \[/ {if (flag) exit}
71+
flag {print}
72+
' CHANGELOG.md)
73+
74+
# If changelog extraction failed, use a default message
75+
if [ -z "$changelog_content" ]; then
76+
changelog_content="Release v${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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ docs/_site/
2222

2323
# Dotenv
2424
.env
25-
.env.integration
25+
.env.*
26+
!.env.*.sample
27+
2628

2729
#Local lint config
2830
.eslintrc.local.json

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
v20.18.1

0 commit comments

Comments
 (0)