Skip to content

Commit 42287ad

Browse files
authored
Merge pull request #2 from cannuri/feature/update-main
Feature/update main
2 parents 58532bc + 4a54294 commit 42287ad

Some content is hidden

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

48 files changed

+584
-244
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/empty-bees-suffer.md

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

.changeset/sixty-ants-begin.md renamed to .changeset/lemon-bulldogs-unite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"roo-cline": patch
33
---
44

5-
v3.8.4
5+
App tab layout fixes

.env.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# PostHog API Keys for telemetry
2-
POSTHOG_API_KEY=key-goes-here
1+
POSTHOG_API_KEY=key-goes-here

.github/workflows/marketplace-publish.yml

Lines changed: 20 additions & 5 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,24 +25,24 @@ 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
3236
npm run install:ci
37+
3338
- name: Create .env file
3439
run: |
3540
echo "# PostHog API Keys for telemetry" > .env
3641
echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
37-
- name: Package and Publish Extension
38-
env:
39-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
40-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
42+
43+
- name: Package Extension
4144
run: |
4245
current_package_version=$(node -p "require('./package.json').version")
43-
4446
npm run vsix
4547
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4648
echo "$package"
@@ -49,5 +51,18 @@ jobs:
4951
echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1
5052
echo "$package" | grep -q ".env" || exit 1
5153
54+
- name: Create and Push Git Tag
55+
run: |
56+
current_package_version=$(node -p "require('./package.json').version")
57+
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
58+
git push origin "v${current_package_version}"
59+
echo "Successfully created and pushed git tag v${current_package_version}"
60+
61+
- name: Publish Extension
62+
env:
63+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
64+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
65+
run: |
66+
current_package_version=$(node -p "require('./package.json').version")
5267
npm run publish:marketplace
5368
echo "Successfully published version $current_package_version to VS Code Marketplace"

CHANGELOG.md

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

3+
## [3.8.4] - 2025-03-09
4+
5+
- Roll back multi-diff progress indicator temporarily to fix a double-confirmation in saving edits
6+
- Add an option in the prompts tab to save tokens by disabling the ability to ask Roo to create/edit custom modes for you (thanks @hannesrudolph!)
7+
38
## [3.8.3] - 2025-03-09
49

510
- Fix VS Code LM API model picker truncation issue

esbuild.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const copyWasmFiles = {
5252
"java",
5353
"php",
5454
"swift",
55+
"kotlin",
5556
]
5657

5758
languages.forEach((lang) => {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Roo Code (prev. Roo Cline)",
44
"description": "A whole dev team of AI agents in your editor.",
55
"publisher": "RooVeterinaryInc",
6-
"version": "3.8.3",
6+
"version": "3.8.4",
77
"icon": "assets/icons/rocket.png",
88
"galleryBanner": {
99
"color": "#617A91",

src/api/providers/__tests__/requesty.test.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ describe("RequestyHandler", () => {
2222
contextWindow: 4000,
2323
supportsPromptCache: false,
2424
supportsImages: true,
25-
inputPrice: 0,
26-
outputPrice: 0,
25+
inputPrice: 1,
26+
outputPrice: 10,
27+
cacheReadsPrice: 0.1,
28+
cacheWritesPrice: 1.5,
2729
},
2830
openAiStreamingEnabled: true,
2931
includeMaxTokens: true, // Add this to match the implementation
@@ -83,8 +85,12 @@ describe("RequestyHandler", () => {
8385
yield {
8486
choices: [{ delta: { content: " world" } }],
8587
usage: {
86-
prompt_tokens: 10,
87-
completion_tokens: 5,
88+
prompt_tokens: 30,
89+
completion_tokens: 10,
90+
prompt_tokens_details: {
91+
cached_tokens: 15,
92+
caching_tokens: 5,
93+
},
8894
},
8995
}
9096
},
@@ -105,10 +111,11 @@ describe("RequestyHandler", () => {
105111
{ type: "text", text: " world" },
106112
{
107113
type: "usage",
108-
inputTokens: 10,
109-
outputTokens: 5,
110-
cacheWriteTokens: undefined,
111-
cacheReadTokens: undefined,
114+
inputTokens: 30,
115+
outputTokens: 10,
116+
cacheWriteTokens: 5,
117+
cacheReadTokens: 15,
118+
totalCost: 0.000119, // (10 * 1 / 1,000,000) + (5 * 1.5 / 1,000,000) + (15 * 0.1 / 1,000,000) + (10 * 10 / 1,000,000)
112119
},
113120
])
114121

@@ -182,6 +189,9 @@ describe("RequestyHandler", () => {
182189
type: "usage",
183190
inputTokens: 10,
184191
outputTokens: 5,
192+
cacheWriteTokens: 0,
193+
cacheReadTokens: 0,
194+
totalCost: 0.00006, // (10 * 1 / 1,000,000) + (5 * 10 / 1,000,000)
185195
},
186196
])
187197

0 commit comments

Comments
 (0)