Skip to content

Commit eaf63b1

Browse files
committed
Merge branch 'main' into cte/fix-terminal-output-parsing
2 parents 7d53368 + 54c6874 commit eaf63b1

30 files changed

+1493
-194
lines changed

.changeset/sour-parents-hug.md

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

CHANGELOG.md

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

3+
## [3.7.8]
4+
5+
- Add Vertex AI prompt caching support for Claude models (thanks @aitoroses and @lupuletic!)
6+
- Add gpt-4.5-preview
7+
- Add an advanced feature to customize the system prompt
8+
9+
## [3.7.7]
10+
11+
- Graduate checkpoints out of beta
12+
- Fix enhance prompt button when using Thinking Sonnet
13+
- Add tooltips to make what buttons do more obvious
14+
315
## [3.7.6]
416

517
- Handle really long text better in the in the ChatRow similar to TaskHeader (thanks @joemanley201!)

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
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.7.6",
6+
"version": "3.7.8",
77
"icon": "assets/icons/rocket.png",
88
"galleryBanner": {
99
"color": "#617A91",
@@ -305,7 +305,7 @@
305305
"dependencies": {
306306
"@anthropic-ai/bedrock-sdk": "^0.10.2",
307307
"@anthropic-ai/sdk": "^0.37.0",
308-
"@anthropic-ai/vertex-sdk": "^0.4.1",
308+
"@anthropic-ai/vertex-sdk": "^0.7.0",
309309
"@aws-sdk/client-bedrock-runtime": "^3.706.0",
310310
"@google/generative-ai": "^0.18.0",
311311
"@mistralai/mistralai": "^1.3.6",

src/__mocks__/fs/promises.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ const mockFs = {
140140
currentPath += "/" + parts[parts.length - 1]
141141
mockDirectories.add(currentPath)
142142
return Promise.resolve()
143-
return Promise.resolve()
144143
}),
145144

146145
access: jest.fn().mockImplementation(async (path: string) => {

src/__mocks__/jest.setup.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,33 @@ jest.mock("../utils/logging", () => ({
1515
}),
1616
},
1717
}))
18+
19+
// Add toPosix method to String prototype for all tests, mimicking src/utils/path.ts
20+
// This is needed because the production code expects strings to have this method
21+
// Note: In production, this is added via import in the entry point (extension.ts)
22+
export {}
23+
24+
declare global {
25+
interface String {
26+
toPosix(): string
27+
}
28+
}
29+
30+
// Implementation that matches src/utils/path.ts
31+
function toPosixPath(p: string) {
32+
// Extended-Length Paths in Windows start with "\\?\" to allow longer paths
33+
// and bypass usual parsing. If detected, we return the path unmodified.
34+
const isExtendedLengthPath = p.startsWith("\\\\?\\")
35+
36+
if (isExtendedLengthPath) {
37+
return p
38+
}
39+
40+
return p.replace(/\\/g, "/")
41+
}
42+
43+
if (!String.prototype.toPosix) {
44+
String.prototype.toPosix = function (this: string): string {
45+
return toPosixPath(this)
46+
}
47+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe("AnthropicHandler", () => {
153153
})
154154

155155
it("should handle API errors", async () => {
156-
mockCreate.mockRejectedValueOnce(new Error("API Error"))
156+
mockCreate.mockRejectedValueOnce(new Error("Anthropic completion error: API Error"))
157157
await expect(handler.completePrompt("Test prompt")).rejects.toThrow("Anthropic completion error: API Error")
158158
})
159159

src/api/providers/__tests__/openai-native.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe("OpenAiNativeHandler", () => {
357357
const modelInfo = handler.getModel()
358358
expect(modelInfo.id).toBe(mockOptions.apiModelId)
359359
expect(modelInfo.info).toBeDefined()
360-
expect(modelInfo.info.maxTokens).toBe(4096)
360+
expect(modelInfo.info.maxTokens).toBe(16384)
361361
expect(modelInfo.info.contextWindow).toBe(128_000)
362362
})
363363

0 commit comments

Comments
 (0)