Skip to content

Commit 77e9ae1

Browse files
committed
Merge branch 'feat/3676-mcp-reload-on-enable' of https://github.com/seedlord/Roo-Code into feat/3676-mcp-reload
2 parents f0596ac + fe34086 commit 77e9ae1

File tree

89 files changed

+1462
-153
lines changed

Some content is hidden

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

89 files changed

+1462
-153
lines changed

.changeset/changelog-config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Half-works to simplify the format but needs 'overwrite_changeset_changelog.py' in GHA to finish formatting
2-
31
const getReleaseLine = async (changeset) => {
42
const [firstLine] = changeset.summary
53
.split("\n")

.changeset/sweet-turtles-wink.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 OpenRouter names
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
"""
2+
This script updates a specific version's release notes section in CHANGELOG.md with new content
3+
or reformats existing content.
4+
5+
The script:
6+
1. Takes a version number, changelog path, and optionally new content as input from environment variables
7+
2. Finds the section in the changelog for the specified version
8+
3. Either:
9+
a) Replaces the content with new content if provided, or
10+
b) Reformats existing content by:
11+
- Removing the first two lines of the changeset format
12+
- Ensuring version numbers are wrapped in square brackets
13+
4. Writes the updated changelog back to the file
14+
15+
Environment Variables:
16+
CHANGELOG_PATH: Path to the changelog file (defaults to 'CHANGELOG.md')
17+
VERSION: The version number to update/format
18+
PREV_VERSION: The previous version number (used to locate section boundaries)
19+
NEW_CONTENT: Optional new content to insert for this version
20+
"""
21+
22+
#!/usr/bin/env python3
23+
24+
import os
25+
26+
CHANGELOG_PATH = os.environ.get("CHANGELOG_PATH", "CHANGELOG.md")
27+
VERSION = os.environ["VERSION"]
28+
PREV_VERSION = os.environ.get("PREV_VERSION", "")
29+
NEW_CONTENT = os.environ.get("NEW_CONTENT", "")
30+
31+
32+
def overwrite_changelog_section(changelog_text: str, new_content: str):
33+
# Find the section for the specified version
34+
version_pattern = f"## {VERSION}\n"
35+
prev_version_pattern = f"## [{PREV_VERSION}]\n"
36+
print(f"latest version: {VERSION}")
37+
print(f"prev_version: {PREV_VERSION}")
38+
39+
notes_start_index = changelog_text.find(version_pattern) + len(version_pattern)
40+
notes_end_index = (
41+
changelog_text.find(prev_version_pattern, notes_start_index)
42+
if PREV_VERSION and prev_version_pattern in changelog_text
43+
else len(changelog_text)
44+
)
45+
46+
if new_content:
47+
return (
48+
changelog_text[:notes_start_index]
49+
+ f"{new_content}\n"
50+
+ changelog_text[notes_end_index:]
51+
)
52+
else:
53+
changeset_lines = changelog_text[notes_start_index:notes_end_index].split("\n")
54+
# Remove the first two lines from the regular changeset format, ex: \n### Patch Changes
55+
parsed_lines = "\n".join(changeset_lines[2:])
56+
updated_changelog = (
57+
changelog_text[:notes_start_index]
58+
+ parsed_lines
59+
+ changelog_text[notes_end_index:]
60+
)
61+
updated_changelog = updated_changelog.replace(
62+
f"## {VERSION}", f"## [{VERSION}]"
63+
)
64+
return updated_changelog
65+
66+
67+
with open(CHANGELOG_PATH, "r") as f:
68+
changelog_content = f.read()
69+
70+
new_changelog = overwrite_changelog_section(changelog_content, NEW_CONTENT)
71+
print(
72+
"----------------------------------------------------------------------------------"
73+
)
74+
print(new_changelog)
75+
print(
76+
"----------------------------------------------------------------------------------"
77+
)
78+
# Write back to CHANGELOG.md
79+
with open(CHANGELOG_PATH, "w") as f:
80+
f.write(new_changelog)
81+
82+
print(f"{CHANGELOG_PATH} updated successfully!")

.github/workflows/changeset-release.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
commit: "changeset version bump"
6262
title: "Changeset version bump"
63-
version: pnpm --filter roo-cline version-packages # This performs the changeset version bump
63+
version: pnpm changeset:version # This performs the changeset version bump
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666

@@ -100,25 +100,6 @@ jobs:
100100
fetch-depth: 0
101101
ref: ${{ steps.checkout-ref.outputs.git_ref }}
102102

103-
# Get current and previous versions to edit changelog entry
104-
- name: Get version
105-
id: get_version
106-
run: |
107-
VERSION=$(git show HEAD:package.json | jq -r '.version')
108-
echo "version=$VERSION" >> $GITHUB_OUTPUT
109-
PREV_VERSION=$(git show origin/main:package.json | jq -r '.version')
110-
echo "prev_version=$PREV_VERSION" >> $GITHUB_OUTPUT
111-
echo "version=$VERSION"
112-
echo "prev_version=$PREV_VERSION"
113-
114-
# Update CHANGELOG.md with proper format
115-
- name: Update Changelog Format
116-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}
117-
env:
118-
VERSION: ${{ steps.get_version.outputs.version }}
119-
PREV_VERSION: ${{ steps.get_version.outputs.prev_version }}
120-
run: python .github/scripts/overwrite_changeset_changelog.py
121-
122103
# Commit and push changelog updates
123104
- name: Push Changelog updates
124105
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}

.github/workflows/code-qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
- name: Install dependencies
160160
run: pnpm install
161161
- name: Create .env.local file
162-
working-directory: e2e
162+
working-directory: apps/vscode-e2e
163163
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
164164
- name: Run integration tests
165-
working-directory: e2e
165+
working-directory: apps/vscode-e2e
166166
run: xvfb-run -a pnpm test:ci

.github/workflows/marketplace-publish.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
env:
88
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
99
NODE_VERSION: 20.18.1
10+
PNPM_VERSION: 10.8.1
1011

1112
jobs:
1213
publish-extension:
@@ -19,23 +20,31 @@ jobs:
1920
contains(github.event.pull_request.title, 'Changeset version bump') ) ||
2021
github.event_name == 'workflow_dispatch'
2122
steps:
22-
- uses: actions/checkout@v4
23+
- name: Checkout code
24+
uses: actions/checkout@v4
2325
with:
2426
ref: ${{ env.GIT_REF }}
25-
- uses: actions/setup-node@v4
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: ${{ env.PNPM_VERSION }}
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
2633
with:
2734
node-version: ${{ env.NODE_VERSION }}
28-
- run: |
35+
cache: 'pnpm'
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Configure Git
39+
run: |
2940
git config user.name "github-actions[bot]"
3041
git config user.email "github-actions[bot]@users.noreply.github.com"
31-
- name: Install Dependencies
32-
run: pnpm install
3342
- name: Create .env file
3443
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
3544
- name: Package Extension
3645
run: |
37-
current_package_version=$(node -p "require('./package.json').version")
38-
pnpm vsix
46+
current_package_version=$(node -p "require('./src/package.json').version")
47+
pnpm build
3948
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4049
echo "$package" | grep -q "extension/package.json" || exit 1
4150
echo "$package" | grep -q "extension/package.nls.json" || exit 1
@@ -47,23 +56,23 @@ jobs:
4756
echo "$package" | grep -q ".env" || exit 1
4857
- name: Create and Push Git Tag
4958
run: |
50-
current_package_version=$(node -p "require('./package.json').version")
59+
current_package_version=$(node -p "require('./src/package.json').version")
5160
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
52-
git push origin "v${current_package_version}"
61+
git push origin "v${current_package_version}" --no-verify
5362
echo "Successfully created and pushed git tag v${current_package_version}"
5463
- name: Publish Extension
5564
env:
5665
VSCE_PAT: ${{ secrets.VSCE_PAT }}
5766
OVSX_PAT: ${{ secrets.OVSX_PAT }}
5867
run: |
59-
current_package_version=$(node -p "require('./package.json').version")
60-
pnpm publish:marketplace
68+
current_package_version=$(node -p "require('./src/package.json').version")
69+
pnpm --filter roo-cline publish:marketplace
6170
echo "Successfully published version $current_package_version to VS Code Marketplace"
6271
- name: Create GitHub Release
6372
env:
6473
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6574
run: |
66-
current_package_version=$(node -p "require('./package.json').version")
75+
current_package_version=$(node -p "require('./src/package.json').version")
6776
6877
# Extract changelog for current version
6978
echo "Extracting changelog for version ${current_package_version}"

CHANGELOG.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Roo Code Changelog
22

3+
## [3.18.1] - 2025-05-22
4+
5+
- Add support for Claude Sonnet 4 and Claude Opus 4 models with thinking variants in Anthropic, Bedrock, and Vertex (thanks @shariqriazz!)
6+
- Fix README gif display in all localized versions
7+
- Fix referer URL
8+
- Switch codebase to a monorepo and create an automated "nightly" build
9+
310
## [3.18.0] - 2025-05-21
411

512
- Add support for Gemini 2.5 Flash preview models (thanks @shariqriazz and @daniel-lxs!)
@@ -1116,7 +1123,7 @@ Join us at https://www.reddit.com/r/RooCode to share your custom modes and be pa
11161123

11171124
## [2.2.16]
11181125

1119-
- Incorporate Premshay's [PR](https://github.com/RooCodeInc/Roo-Cline/pull/60) to add support for Amazon Nova and Meta Llama Models via Bedrock (3, 3.1, 3.2) and unified Bedrock calls using BedrockClient and Bedrock Runtime API
1126+
- Incorporate Premshay's [PR](https://github.com/RooCodeInc/Roo-Code/pull/60) to add support for Amazon Nova and Meta Llama Models via Bedrock (3, 3.1, 3.2) and unified Bedrock calls using BedrockClient and Bedrock Runtime API
11201127

11211128
## [2.2.14 - 2.2.15]
11221129

@@ -1188,7 +1195,7 @@ Join us at https://www.reddit.com/r/RooCode to share your custom modes and be pa
11881195

11891196
## [2.1.15]
11901197

1191-
- Incorporate dbasclpy's [PR](https://github.com/RooCodeInc/Roo-Cline/pull/54) to add support for gemini-exp-1206
1198+
- Incorporate dbasclpy's [PR](https://github.com/RooCodeInc/Roo-Code/pull/54) to add support for gemini-exp-1206
11921199
- Make it clear that diff editing is very experimental
11931200

11941201
## [2.1.14]
@@ -1198,15 +1205,15 @@ Join us at https://www.reddit.com/r/RooCode to share your custom modes and be pa
11981205

11991206
## [2.1.13]
12001207

1201-
- Fix https://github.com/RooCodeInc/Roo-Cline/issues/50 where sound effects were not respecting settings
1208+
- Fix https://github.com/RooCodeInc/Roo-Code/issues/50 where sound effects were not respecting settings
12021209

12031210
## [2.1.12]
12041211

12051212
- Incorporate JoziGila's [PR](https://github.com/cline/cline/pull/158) to add support for editing through diffs
12061213

12071214
## [2.1.11]
12081215

1209-
- Incorporate lloydchang's [PR](https://github.com/RooCodeInc/Roo-Cline/pull/42) to add support for OpenRouter compression
1216+
- Incorporate lloydchang's [PR](https://github.com/RooCodeInc/Roo-Code/pull/42) to add support for OpenRouter compression
12101217

12111218
## [2.1.10]
12121219

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ English • [Català](locales/ca/README.md) • [Deutsch](locales/de/README.md)
1414
<div align="center">
1515
<h1>Roo Code (prev. Roo Cline)</h1>
1616
<p align="center">
17-
<img src="https://media.githubusercontent.com/media/RooCodeInc/Roo-Code/main/assets/docs/demo.gif" width="100%" />
17+
<img src="https://media.githubusercontent.com/media/RooCodeInc/Roo-Code/main/src/assets/docs/demo.gif" width="100%" />
1818
</p>
1919
<p>Connect with developers, contribute ideas, and stay ahead with the latest AI-powered coding tools.</p>
2020

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)