Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
}
],
"@typescript-eslint/semi": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
Expand Down
2 changes: 1 addition & 1 deletion .roo/rules-translate/001-general-rules.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 1. SUPPORTED LANGUAGES AND LOCATION

- Localize all strings into the following locale files: ca, de, en, es, fr, hi, it, ja, ko, pl, pt-BR, tr, vi, zh-CN, zh-TW
- Localize all strings into the following locale files: ca, de, en, es, fr, hi, it, ja, ko, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW
- The VSCode extension has two main areas that require localization:
- Core Extension: src/i18n/locales/ (extension backend)
- WebView UI: webview-ui/src/i18n/locales/ (user interface)
Expand Down
37 changes: 35 additions & 2 deletions .roomodes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"customModes": [
{
"slug": "test",
"name": "Test",
"name": "🧪 Test",
"roleDefinition": "You are Roo, a Jest testing specialist with deep expertise in:\n- Writing and maintaining Jest test suites\n- Test-driven development (TDD) practices\n- Mocking and stubbing with Jest\n- Integration testing strategies\n- TypeScript testing patterns\n- Code coverage analysis\n- Test performance optimization\n\nYour focus is on maintaining high test quality and coverage across the codebase, working primarily with:\n- Test files in __tests__ directories\n- Mock implementations in __mocks__\n- Test utilities and helpers\n- Jest configuration and setup\n\nYou ensure tests are:\n- Well-structured and maintainable\n- Following Jest best practices\n- Properly typed with TypeScript\n- Providing meaningful coverage\n- Using appropriate mocking strategies",
"groups": [
"read",
Expand All @@ -20,7 +20,7 @@
},
{
"slug": "translate",
"name": "Translate",
"name": "🌐 Translate",
"roleDefinition": "You are Roo, a linguistic specialist focused on translating and managing localization files. Your responsibility is to help maintain and update translation files for the application, ensuring consistency and accuracy across all language resources.",
"groups": [
"read",
Expand All @@ -34,6 +34,39 @@
]
],
"source": "project"
},
{
"slug": "design-engineer",
"name": "🎨 Design Engineer",
"roleDefinition": "You are Roo, an expert Design Engineer focused on VSCode Extension development. Your expertise includes: \n- Implementing UI designs with high fidelity using React, Shadcn, Tailwind and TypeScript. \n- Ensuring interfaces are responsive and adapt to different screen sizes. \n- Collaborating with team members to translate broad directives into robust and detailed designs capturing edge cases. \n- Maintaining uniformity and consistency across the user interface.",
"groups": [
"read",
[
"edit",
{
"fileRegex": "\\.(css|html|json|mdx?|jsx?|tsx?|svg)$",
"description": "Frontend & SVG files"
}
],
"browser",
"command",
"mcp"
],
"customInstructions": "Focus on UI refinement, component creation, and adherence to design best-practices. When the user requests a new component, start off by asking them questions one-by-one to ensure the requirements are understood. Always use Tailwind utility classes (instead of direct variable references) for styling components when possible. If editing an existing file, transition explicit style definitions to Tailwind CSS classes when possible. Refer to the Tailwind CSS definitions for utility classes at webview-ui/src/index.css. Always use the latest version of Tailwind CSS (V4), and never create a tailwind.config.js file. Prefer Shadcn components for UI elements intead of VSCode's built-in ones. This project uses i18n for localization, so make sure to use the i18n functions and components for any text that needs to be translated. Do not leave placeholder strings in the markup, as they will be replaced by i18n. Prefer the @roo (/src) and @src (/webview-ui/src) aliases for imports in typescript files. Suggest the user refactor large files (over 1000 lines) if they are encountered, and provide guidance. Suggest the user switch into Translate mode to complete translations when your task is finished.",
"source": "project"
},
{
"slug": "release-engineer",
"name": "🚀 Release Engineer",
"roleDefinition": "You are Roo, a release engineer specialized in automating the release process for software projects. You have expertise in version control, changelogs, release notes, creating changesets, and coordinating with translation teams to ensure a smooth release process.",
"customInstructions": "When preparing a release:\n1. Identify the SHA corresponding to the most recent release using GitHub CLI: `gh release view --json tagName,targetCommitish,publishedAt `\n2. Analyze changes since the last release using: `gh pr list --state merged --json number,title,author,url,mergedAt --limit 100 | jq '[.[] | select(.mergedAt > \"TIMESTAMP\") | {number, title, author: .author.login, url, mergedAt}]'`\n3. Summarize the changes and ask the user whether this should be a major, minor, or patch release\n4. Create a changeset in .changeset/v[version].md instead of directly modifying package.json. The format is:\n\n```\n---\n\"roo-cline\": patch|minor|major\n---\n\n[list of changes]\n```\n\n- Always include contributor attribution using format: (thanks @username!)\n- Provide brief descriptions of each item to explain the change\n- Order the list from most important to least important\n- Example: \"- Add support for Gemini 2.5 Pro caching (thanks @contributor!)\"\n\n5. If a major or minor release, update the English version relevant announcement files and documentation (webview-ui/src/components/chat/Announcement.tsx, README.md, and the `latestAnnouncementId` in src/core/webview/ClineProvider.ts)\n6. Ask the user to confirm the English version\n7. Use the new_task tool to create a subtask in `translate` mode with detailed instructions of which content needs to be translated into all supported languages\n8. Commit and push the changeset file to the repository\n9. The GitHub Actions workflow will automatically:\n - Create a version bump PR when changesets are merged to main\n - Update the CHANGELOG.md with proper formatting\n - Publish the release when the version bump PR is merged",
"groups": [
"read",
"edit",
"command",
"browser"
],
"source": "project"
}
]
}
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"preLaunchTask": "npm: package",
"env": {
"NODE_ENV": "development",
"VSCODE_DEBUG_MODE": "true"
Expand Down
42 changes: 26 additions & 16 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,45 @@
# Default
.changeset/**
.github/**
.husky/**
.vscode/**
.vscode-test/**
out/**
out-integration/**
evals/**
e2e/**
coverage/**
node_modules/**
src/**
scripts/**
.gitignore
.yarnrc
esbuild.js
vsc-extension-quickstart.md
jest.*
**/tsconfig.json
**/.eslintrc.json
.prettierignore
**/*.map
**/*.ts
**/.vscode-test.*
**/.gitignore

# Custom
.nvmrc
.env.sample
.git-blame-ignore-revs
.gitconfig
.gitattributes
.prettierignore
.tool-versions
.vite-port
.nvmrc
.clinerules*
.roomodes
.rooignore
.roo/**
benchmark/**
cline_docs/**
coverage/**
e2e/**
evals/**
locales/**
benchmark/**
.direnv/**
out/**
ellipsis.yaml
knip.json

# Ignore all webview-ui files except the build directory (https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/frameworks/hello-world-react-cra/.vscodeignore)
# Ignore all webview-ui files except the build directory.
# https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/frameworks/hello-world-react-cra/.vscodeignore
webview-ui/src/**
webview-ui/public/**
webview-ui/scripts/**
Expand All @@ -41,17 +48,20 @@ webview-ui/README.md
webview-ui/package.json
webview-ui/package-lock.json
webview-ui/node_modules/**
**/.gitignore

# Fix issue where codicons don't get packaged (https://github.com/microsoft/vscode-extension-samples/issues/692)
# Include codicons
!node_modules/@vscode/codicons/dist/codicon.css
!node_modules/@vscode/codicons/dist/codicon.ttf

# Include material icons
!node_modules/vscode-material-icons/generated/**

# Include default themes JSON files used in getTheme
!src/integrations/theme/default-themes/**

# Ignore doc assets
assets/docs/**

# Include icons and images
!assets/icons/**
!assets/images/**
Expand Down
177 changes: 177 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,182 @@
# Roo Code Changelog


## [Unreleased]

### Added
- Add LiteLLM provider support - adapted from Cline's implementation (PR #1618) - allowing connection to any LLM via a LiteLLM proxy server. Includes configuration for API URL, API Key, and Model ID, plus cost calculation support via the `/spend/calculate` endpoint.

=======
## [3.15.5] - 2025-05-05

- Update @google/genai to 0.12 (includes some streaming completion bug fixes)
- Rendering performance improvements for code blocks in chat (thanks @KJ7LNW)

## [3.15.4] - 2025-05-04

- Fix a nasty bug that would cause Roo Code to hang, particularly in orchestrator mode
- Improve Gemini caching efficiency

## [3.15.3] - 2025-05-02

- Terminal: Fix empty command bug
- Terminal: More robust process killing
- Optimize Gemini prompt caching for OpenRouter
- Chat view performance improvements

## [3.15.2] - 2025-05-02

- Fix terminal performance issues
- Handle Mermaid validation errors
- Add customizable headers for OpenAI-compatible provider (thanks @mark-bradshaw!)
- Add config option to overwrite OpenAI's API base (thanks @GOODBOY008!)
- Fixes to padding and height issues when resizing the sidebar (thanks @zhangtony239!)
- Remove tool groups from orchestrator mode definition
- Add telemetry for title button clicks

## [3.15.1] - 2025-04-30

- Capture stderr in execa-spawned processes
- Play sound only when action needed from the user (thanks @olearycrew)
- Make retries respect the global auto approve checkbox
- Fix a selection mode bug in the history view (thanks @jr)

## [3.15.0] - 2025-04-30

- Add prompt caching to the Google Vertex provider (thanks @ashktn)
- Add a fallback mechanism for executing terminal commands if VSCode terminal shell integration fails
- Improve the UI/UX of code snippets in the chat (thanks @KJ7LNW)
- Add a reasoning effort setting for the OpenAI Compatible provider (thanks @mr-ryan-james)
- Allow terminal commands to be stopped directly from the chat UI
- Adjust chat view padding to accommodate small width layouts (thanks @zhangtony239)
- Fix file mentions for filenames containing spaces
- Improve the auto-approve toggle buttons for some high-contrast VSCode themes
- Offload expensive count token operations to a web worker (thanks @samhvw8)
- Improve support for mult-root workspaces (thanks @snoyiatk)
- Simplify and streamline Roo Code's quick actions
- Allow Roo Code settings to be imported from the welcome screen (thanks @julionav)
- Remove unused types (thanks @wkordalski)
- Improve the performance of mode switching (thanks @dlab-anton)
- Fix importing & exporting of custom modes (thanks @julionav)

## [3.14.3] - 2025-04-25

- Add Boomerang Orchestrator as a built-in mode
- Improve home screen UI
- Make token count estimation more efficient to reduce gray screens
- Revert change to automatically close files after edit until we figure out how to make it work well with diagnostics
- Clean up settings data model
- Omit reasoning params for non-reasoning models
- Clearer documentation for adding settings (thanks @shariqriazz!)
- Fix word wrapping in Roo message title (thanks @zhangtony239!)
- Update default model id for Unbound from claude 3.5 to 3.7 (thanks @pugazhendhi-m!)

## [3.14.2] - 2025-04-24

- Enable prompt caching for Gemini (with some improvements)
- Allow users to turn prompt caching on / off for Gemini 2.5 on OpenRouter
- Compress terminal output with backspace characters (thanks @KJ7LNW)
- Add Russian language (Спасибо @asychin)

## [3.14.1] - 2025-04-24

- Disable Gemini caching while we investigate issues reported by the community.

## [3.14.0] - 2025-04-23

- Add prompt caching for `gemini-2.5-pro-preview-03-25` in the Gemini provider (Vertex and OpenRouter coming soon!)
- Improve the search_and_replace and insert_content tools and bring them out of experimental, and deprecate append_to_file (thanks @samhvw8!)
- Use material icons for files and folders in mentions (thanks @elianiva!)
- Make the list_files tool more efficient and smarter about excluding directories like .git/
- Fix file drag and drop on Windows and when using SSH tunnels (thanks @NyxJae!)
- Correctly revert changes and suggest alternative tools when write_to_file fails on a missing line count
- Allow interpolation of `workspace`, `mode`, `language`, `shell`, and `operatingSystem` into custom system prompt overrides (thanks @daniel-lxs!)
- Fix interpolation bug in the “add to context” code action (thanks @elianiva!)
- Preserve editor state and prevent tab unpinning during diffs (thanks @seedlord!)
- Improvements to icon rendering on Linux (thanks @elianiva!)
- Improvements to Requesty model list fetching (thanks @dtrugman!)
- Fix user feedback not being added to conversation history in API error state, redundant ‘TASK RESUMPTION’ prompts, and error messages not showing after cancelling API requests (thanks @System233!)
- Track tool use errors in evals
- Fix MCP hub error when dragging extension to another sidebar
- Improve display of long MCP tool arguments
- Fix redundant ‘TASK RESUMPTION’ prompts (thanks @System233!)
- Fix bug opening files when editor has no workspace root
- Make the VS Code LM provider show the correct model information (thanks @QuinsZouls!)
- Fixes to make the focusInput command more reliable (thanks @hongzio!)
- Better handling of aftercursor content in context mentions (thanks @elianiva!)
- Support injecting environment variables in MCP config (thanks @NamesMT!)
- Better handling of FakeAI “controller” object (thanks @wkordalski)
- Remove unnecessary calculation from VS Code LM provider (thanks @d-oit!)
- Allow Amazon Bedrock Marketplace ARNs (thanks @mlopezr!)
- Give better loading feedback on chat rows (thanks @elianiva!)
- Performance improvements to task size calculations
- Don’t immediately show a model ID error when changing API providers
- Fix apply_diff edge cases
- Use a more sensible task export icon
- Use path aliases in webview source files
- Display a warning when the system prompt is overridden
- Better progress indicator for apply_diff tools (thanks @qdaxb!)
- Fix terminal carriage return handling for correct progress bar display (thanks @Yikai-Liao!)

## [3.13.2] - 2025-04-18

- Allow custom URLs for Gemini provider

## [3.13.1] - 2025-04-18

- Support Gemini 2.5 Flash thinking mode (thanks @monotykamary)
- Make auto-approval toggle on/off states more obvious (thanks @sachasayan)
- Add telemetry for shell integration errors
- Fix the path of files dragging into the chat textarea on Windows (thanks @NyxJae)

## [3.13.0] - 2025-04-17

- UI improvements to task header, chat view, history preview, and welcome view (thanks @sachasayan!)
- Add append_to_file tool for appending content to files (thanks @samhvw8!)
- Add Gemini 2.5 Flash Preview to Gemini and Vertex providers (thanks @nbihan-mediware!)
- Fix image support in Bedrock (thanks @Smartsheet-JB-Brown!)
- Make diff edits more resilient to models passing in incorrect parameters

## [3.12.3] - 2025-04-17

- Fix character escaping issues in Gemini diff edits
- Support dragging and dropping tabs into the chat box (thanks @NyxJae!)
- Make sure slash commands only fire at the beginning of the chat box (thanks @logosstone!)

## [3.12.2] - 2025-04-16

- Add OpenAI o3 & 4o-mini (thanks @PeterDaveHello!)
- Improve file/folder context mention UI (thanks @elianiva!)
- Improve diff error telemetry

## [3.12.1] - 2025-04-16

- Bugfix to Edit button visibility in the select dropdowns

## [3.12.0] - 2025-04-15

- Add xAI provider and expose reasoning effort options for Grok on OpenRouter (thanks Cline!)
- Make diff editing config per-profile and improve pre-diff string normalization
- Make checkpoints faster and more reliable
- Add a search bar to mode and profile select dropdowns (thanks @samhvw8!)
- Add telemetry for code action usage, prompt enhancement usage, and consecutive mistake errors
- Suppress zero cost values in the task header (thanks @do-it!)
- Make JSON parsing safer to avoid crashing the webview on bad input
- Allow users to bind a keyboard shortcut for accepting suggestions or input in the chat view (thanks @axkirillov!)

## [3.11.17] - 2025-04-14

- Improvements to OpenAI cache reporting and cost estimates (thanks @monotykamary and Cline!)
- Visual improvements to the auto-approve toggles (thanks @sachasayan!)
- Bugfix to diff apply logic (thanks @avtc for the test case!) and telemetry to track errors going forward
- Fix race condition in capturing short-running terminal commands (thanks @KJ7LNW!)
- Fix eslint error (thanks @nobu007!)

## [3.11.16] - 2025-04-14

- Add gpt-4.1, gpt-4.1-mini, and gpt-4.1-nano to the OpenAI provider
- Include model ID in environment details and when exporting tasks (thanks @feifei325!)

## [3.11.15] - 2025-04-13

- Add ability to filter task history by workspace (thanks @samhvw8!)
Expand Down
Loading